var yB=Object.defineProperty;var vB=(e,t,n)=>t in e?yB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pl=(e,t,n)=>vB(e,typeof t!="symbol"?t+"":t,n);function xB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(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 i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var Kh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FI={exports:{}},d0={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var SB=Symbol.for("react.transitional.element"),wB=Symbol.for("react.fragment");function BI(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:SB,type:e,key:r,ref:t!==void 0?t:null,props:n}}d0.Fragment=wB;d0.jsx=BI;d0.jsxs=BI;FI.exports=d0;var d=FI.exports,UI={exports:{}},et={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var kx=Symbol.for("react.transitional.element"),EB=Symbol.for("react.portal"),kB=Symbol.for("react.fragment"),TB=Symbol.for("react.strict_mode"),CB=Symbol.for("react.profiler"),AB=Symbol.for("react.consumer"),_B=Symbol.for("react.context"),RB=Symbol.for("react.forward_ref"),NB=Symbol.for("react.suspense"),IB=Symbol.for("react.memo"),$I=Symbol.for("react.lazy"),PC=Symbol.iterator;function OB(e){return e===null||typeof e!="object"?null:(e=PC&&e[PC]||e["@@iterator"],typeof e=="function"?e:null)}var HI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VI=Object.assign,GI={};function Uu(e,t,n){this.props=e,this.context=t,this.refs=GI,this.updater=n||HI}Uu.prototype.isReactComponent={};Uu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Uu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function WI(){}WI.prototype=Uu.prototype;function Tx(e,t,n){this.props=e,this.context=t,this.refs=GI,this.updater=n||HI}var Cx=Tx.prototype=new WI;Cx.constructor=Tx;VI(Cx,Uu.prototype);Cx.isPureReactComponent=!0;var jC=Array.isArray,Vt={H:null,A:null,T:null,S:null,V:null},qI=Object.prototype.hasOwnProperty;function Ax(e,t,n,r,a,i){return n=i.ref,{$$typeof:kx,type:e,key:t,ref:n!==void 0?n:null,props:i}}function DB(e,t){return Ax(e.type,t,void 0,void 0,void 0,e.props)}function _x(e){return typeof e=="object"&&e!==null&&e.$$typeof===kx}function LB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var FC=/\/+/g;function rb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?LB(""+e.key):t.toString(36)}function BC(){}function MB(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(BC,BC):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function wl(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case kx:case EB:o=!0;break;case $I:return o=e._init,wl(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+rb(e,0):r,jC(a)?(n="",o!=null&&(n=o.replace(FC,"$&/")+"/"),wl(a,t,n,"",function(u){return u})):a!=null&&(_x(a)&&(a=DB(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(FC,"$&/")+"/")+o)),t.push(a)),1;o=0;var s=r===""?".":r+":";if(jC(e))for(var l=0;l<e.length;l++)r=e[l],i=s+rb(r,l),o+=wl(r,t,n,i,a);else if(l=OB(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,i=s+rb(r,l++),o+=wl(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return wl(MB(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function of(e,t,n){if(e==null)return e;var r=[],a=0;return wl(e,r,"","",function(i){return t.call(n,i,a++)}),r}function zB(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var UC=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function PB(){}et.Children={map:of,forEach:function(e,t,n){of(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return of(e,function(){t++}),t},toArray:function(e){return of(e,function(t){return t})||[]},only:function(e){if(!_x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};et.Component=Uu;et.Fragment=kB;et.Profiler=CB;et.PureComponent=Tx;et.StrictMode=TB;et.Suspense=NB;et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Vt;et.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Vt.H.useMemoCache(e)}};et.cache=function(e){return function(){return e.apply(null,arguments)}};et.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=VI({},e.props),a=e.key,i=void 0;if(t!=null)for(o in t.ref!==void 0&&(i=void 0),t.key!==void 0&&(a=""+t.key),t)!qI.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];r.children=s}return Ax(e.type,a,void 0,void 0,i,r)};et.createContext=function(e){return e={$$typeof:_B,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:AB,_context:e},e};et.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)qI.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)a[r]===void 0&&(a[r]=o[r]);return Ax(e,i,void 0,void 0,null,a)};et.createRef=function(){return{current:null}};et.forwardRef=function(e){return{$$typeof:RB,render:e}};et.isValidElement=_x;et.lazy=function(e){return{$$typeof:$I,_payload:{_status:-1,_result:e},_init:zB}};et.memo=function(e,t){return{$$typeof:IB,type:e,compare:t===void 0?null:t}};et.startTransition=function(e){var t=Vt.T,n={};Vt.T=n;try{var r=e(),a=Vt.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(PB,UC)}catch(i){UC(i)}finally{Vt.T=t}};et.unstable_useCacheRefresh=function(){return Vt.H.useCacheRefresh()};et.use=function(e){return Vt.H.use(e)};et.useActionState=function(e,t,n){return Vt.H.useActionState(e,t,n)};et.useCallback=function(e,t){return Vt.H.useCallback(e,t)};et.useContext=function(e){return Vt.H.useContext(e)};et.useDebugValue=function(){};et.useDeferredValue=function(e,t){return Vt.H.useDeferredValue(e,t)};et.useEffect=function(e,t,n){var r=Vt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)};et.useId=function(){return Vt.H.useId()};et.useImperativeHandle=function(e,t,n){return Vt.H.useImperativeHandle(e,t,n)};et.useInsertionEffect=function(e,t){return Vt.H.useInsertionEffect(e,t)};et.useLayoutEffect=function(e,t){return Vt.H.useLayoutEffect(e,t)};et.useMemo=function(e,t){return Vt.H.useMemo(e,t)};et.useOptimistic=function(e,t){return Vt.H.useOptimistic(e,t)};et.useReducer=function(e,t,n){return Vt.H.useReducer(e,t,n)};et.useRef=function(e){return Vt.H.useRef(e)};et.useState=function(e){return Vt.H.useState(e)};et.useSyncExternalStore=function(e,t,n){return Vt.H.useSyncExternalStore(e,t,n)};et.useTransition=function(){return Vt.H.useTransition()};et.version="19.1.0";UI.exports=et;var w=UI.exports;const Xn=dp(w),$C=xB({__proto__:null,default:Xn},[w]);var YI={exports:{}},p0={},XI={exports:{}},KI={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(A,j){var B=A.length;A.push(j);e:for(;0<B;){var V=B-1>>>1,D=A[V];if(0<a(D,j))A[V]=j,A[B]=D,B=V;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var j=A[0],B=A.pop();if(B!==j){A[0]=B;e:for(var V=0,D=A.length,Z=D>>>1;V<Z;){var J=2*(V+1)-1,H=A[J],se=J+1,we=A[se];if(0>a(H,B))se<D&&0>a(we,H)?(A[V]=we,A[se]=B,V=se):(A[V]=H,A[J]=B,V=J);else if(se<D&&0>a(we,B))A[V]=we,A[se]=B,V=se;else break e}}return j}function a(A,j){var B=A.sortIndex-j.sortIndex;return B!==0?B:A.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,p=null,f=3,h=!1,g=!1,y=!1,x=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function S(A){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=A)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function C(A){if(y=!1,S(A),!g)if(n(l)!==null)g=!0,k||(k=!0,I());else{var j=n(u);j!==null&&F(C,j.startTime-A)}}var k=!1,R=-1,O=5,N=-1;function _(){return x?!0:!(e.unstable_now()-N<O)}function L(){if(x=!1,k){var A=e.unstable_now();N=A;var j=!0;try{e:{g=!1,y&&(y=!1,v(R),R=-1),h=!0;var B=f;try{t:{for(S(A),p=n(l);p!==null&&!(p.expirationTime>A&&_());){var V=p.callback;if(typeof V=="function"){p.callback=null,f=p.priorityLevel;var D=V(p.expirationTime<=A);if(A=e.unstable_now(),typeof D=="function"){p.callback=D,S(A),j=!0;break t}p===n(l)&&r(l),S(A)}else r(l);p=n(l)}if(p!==null)j=!0;else{var Z=n(u);Z!==null&&F(C,Z.startTime-A),j=!1}}break e}finally{p=null,f=B,h=!1}j=void 0}}finally{j?I():k=!1}}}var I;if(typeof b=="function")I=function(){b(L)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,M=P.port2;P.port1.onmessage=L,I=function(){M.postMessage(null)}}else I=function(){m(L,0)};function F(A,j){R=m(function(){A(e.unstable_now())},j)}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(A){A.callback=null},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(A){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var B=f;f=j;try{return A()}finally{f=B}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(A,j){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var B=f;f=A;try{return j()}finally{f=B}},e.unstable_scheduleCallback=function(A,j,B){var V=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?V+B:V):B=V,A){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=B+D,A={id:c++,callback:j,priorityLevel:A,startTime:B,expirationTime:D,sortIndex:-1},B>V?(A.sortIndex=B,t(u,A),n(l)===null&&A===n(u)&&(y?(v(R),R=-1):y=!0,F(C,B-V))):(A.sortIndex=D,t(l,A),g||h||(g=!0,k||(k=!0,I()))),A},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(A){var j=f;return function(){var B=f;f=j;try{return A.apply(this,arguments)}finally{f=B}}}})(KI);XI.exports=KI;var jB=XI.exports,ZI={exports:{}},vr={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var FB=w;function QI(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function uo(){}var mr={d:{f:uo,r:function(){throw Error(QI(522))},D:uo,C:uo,L:uo,m:uo,X:uo,S:uo,M:uo},p:0,findDOMNode:null},BB=Symbol.for("react.portal");function UB(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:BB,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Jc=FB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f0(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}vr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=mr;vr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(QI(299));return UB(e,t,null,n)};vr.flushSync=function(e){var t=Jc.T,n=mr.p;try{if(Jc.T=null,mr.p=2,e)return e()}finally{Jc.T=t,mr.p=n,mr.d.f()}};vr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,mr.d.C(e,t))};vr.prefetchDNS=function(e){typeof e=="string"&&mr.d.D(e)};vr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=f0(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?mr.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&mr.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};vr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=f0(t.as,t.crossOrigin);mr.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&mr.d.M(e)};vr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=f0(n,t.crossOrigin);mr.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};vr.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=f0(t.as,t.crossOrigin);mr.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else mr.d.m(e)};vr.requestFormReset=function(e){mr.d.r(e)};vr.unstable_batchedUpdates=function(e,t){return e(t)};vr.useFormState=function(e,t,n){return Jc.H.useFormState(e,t,n)};vr.useFormStatus=function(){return Jc.H.useHostTransitionStatus()};vr.version="19.1.0";function JI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JI)}catch(e){console.error(e)}}JI(),ZI.exports=vr;var Ks=ZI.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Dn=jB,eO=w,$B=Ks;function oe(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function tO(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pp(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function nO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function HC(e){if(pp(e)!==e)throw Error(oe(188))}function HB(e){var t=e.alternate;if(!t){if(t=pp(e),t===null)throw Error(oe(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return HC(a),e;if(i===r)return HC(a),t;i=i.sibling}throw Error(oe(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o)throw Error(oe(189))}}if(n.alternate!==r)throw Error(oe(190))}if(n.tag!==3)throw Error(oe(188));return n.stateNode.current===n?e:t}function rO(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=rO(e),t!==null)return t;e=e.sibling}return null}var $t=Object.assign,VB=Symbol.for("react.element"),sf=Symbol.for("react.transitional.element"),Uc=Symbol.for("react.portal"),Il=Symbol.for("react.fragment"),aO=Symbol.for("react.strict_mode"),i1=Symbol.for("react.profiler"),GB=Symbol.for("react.provider"),iO=Symbol.for("react.consumer"),Di=Symbol.for("react.context"),Rx=Symbol.for("react.forward_ref"),o1=Symbol.for("react.suspense"),s1=Symbol.for("react.suspense_list"),Nx=Symbol.for("react.memo"),xo=Symbol.for("react.lazy"),l1=Symbol.for("react.activity"),WB=Symbol.for("react.memo_cache_sentinel"),VC=Symbol.iterator;function bc(e){return e===null||typeof e!="object"?null:(e=VC&&e[VC]||e["@@iterator"],typeof e=="function"?e:null)}var qB=Symbol.for("react.client.reference");function u1(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qB?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Il:return"Fragment";case i1:return"Profiler";case aO:return"StrictMode";case o1:return"Suspense";case s1:return"SuspenseList";case l1:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Uc:return"Portal";case Di:return(e.displayName||"Context")+".Provider";case iO:return(e._context.displayName||"Context")+".Consumer";case Rx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nx:return t=e.displayName||null,t!==null?t:u1(e.type)||"Memo";case xo:t=e._payload,e=e._init;try{return u1(e(t))}catch{}}return null}var $c=Array.isArray,$e=eO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vt=$B.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,As={pending:!1,data:null,method:null,action:null},c1=[],Ol=-1;function ci(e){return{current:e}}function Hn(e){0>Ol||(e.current=c1[Ol],c1[Ol]=null,Ol--)}function Gt(e,t){Ol++,c1[Ol]=e.current,e.current=t}var Ja=ci(null),Td=ci(null),Lo=ci(null),Zh=ci(null);function Qh(e,t){switch(Gt(Lo,t),Gt(Td,e),Gt(Ja,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?X3(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=X3(t),e=w8(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Hn(Ja),Gt(Ja,e)}function fu(){Hn(Ja),Hn(Td),Hn(Lo)}function d1(e){e.memoizedState!==null&&Gt(Zh,e);var t=Ja.current,n=w8(t,e.type);t!==n&&(Gt(Td,e),Gt(Ja,n))}function Jh(e){Td.current===e&&(Hn(Ja),Hn(Td)),Zh.current===e&&(Hn(Zh),Md._currentValue=As)}var p1=Object.prototype.hasOwnProperty,Ix=Dn.unstable_scheduleCallback,ab=Dn.unstable_cancelCallback,YB=Dn.unstable_shouldYield,XB=Dn.unstable_requestPaint,ei=Dn.unstable_now,KB=Dn.unstable_getCurrentPriorityLevel,oO=Dn.unstable_ImmediatePriority,sO=Dn.unstable_UserBlockingPriority,eg=Dn.unstable_NormalPriority,ZB=Dn.unstable_LowPriority,lO=Dn.unstable_IdlePriority,QB=Dn.log,JB=Dn.unstable_setDisableYieldValue,fp=null,Wr=null;function Ao(e){if(typeof QB=="function"&&JB(e),Wr&&typeof Wr.setStrictMode=="function")try{Wr.setStrictMode(fp,e)}catch{}}var qr=Math.clz32?Math.clz32:nU,eU=Math.log,tU=Math.LN2;function nU(e){return e>>>=0,e===0?32:31-(eU(e)/tU|0)|0}var lf=256,uf=4194304;function ys(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function h0(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s!==0?(r=s&~i,r!==0?a=ys(r):(o&=s,o!==0?a=ys(o):n||(n=s&~e,n!==0&&(a=ys(n))))):(s=r&~i,s!==0?a=ys(s):o!==0?a=ys(o):n||(n=r&~e,n!==0&&(a=ys(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function hp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rU(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uO(){var e=lf;return lf<<=1,!(lf&4194048)&&(lf=256),e}function cO(){var e=uf;return uf<<=1,!(uf&62914560)&&(uf=4194304),e}function ib(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gp(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function aU(e,t,n,r,a,i){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=o&~n;0<n;){var c=31-qr(n),p=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];h!==null&&(h.lane&=-536870913)}n&=~p}r!==0&&dO(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function dO(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qr(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&4194090}function pO(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qr(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function Ox(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Dx(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function fO(){var e=vt.p;return e!==0?e:(e=window.event,e===void 0?32:O8(e.type))}function iU(e,t){var n=vt.p;try{return vt.p=e,t()}finally{vt.p=n}}var ts=Math.random().toString(36).slice(2),rr="__reactFiber$"+ts,Or="__reactProps$"+ts,$u="__reactContainer$"+ts,f1="__reactEvents$"+ts,oU="__reactListeners$"+ts,sU="__reactHandles$"+ts,GC="__reactResources$"+ts,mp="__reactMarker$"+ts;function Lx(e){delete e[rr],delete e[Or],delete e[f1],delete e[oU],delete e[sU]}function Dl(e){var t=e[rr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$u]||n[rr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Q3(e);e!==null;){if(n=e[rr])return n;e=Q3(e)}return t}e=n,n=e.parentNode}return null}function Hu(e){if(e=e[rr]||e[$u]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Hc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(oe(33))}function Xl(e){var t=e[GC];return t||(t=e[GC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Un(e){e[mp]=!0}var hO=new Set,gO={};function Zs(e,t){hu(e,t),hu(e+"Capture",t)}function hu(e,t){for(gO[e]=t,e=0;e<t.length;e++)hO.add(t[e])}var lU=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),WC={},qC={};function uU(e){return p1.call(qC,e)?!0:p1.call(WC,e)?!1:lU.test(e)?qC[e]=!0:(WC[e]=!0,!1)}function ih(e,t,n){if(uU(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function cf(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ei(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}var ob,YC;function El(e){if(ob===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ob=t&&t[1]||"",YC=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ob+e+YC}var sb=!1;function lb(e,t){if(!e||sb)return"";sb=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(h){var f=h}Reflect.construct(e,[],p)}else{try{p.call()}catch(h){f=h}e.call(p.prototype)}}else{try{throw Error()}catch(h){f=h}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split(`
`),u=s.split(`
`);for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===u.length)for(r=l.length-1,a=u.length-1;1<=r&&0<=a&&l[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||l[r]!==u[a]){var c=`
`+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=a);break}}}finally{sb=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?El(n):""}function cU(e){switch(e.tag){case 26:case 27:case 5:return El(e.type);case 16:return El("Lazy");case 13:return El("Suspense");case 19:return El("SuspenseList");case 0:case 15:return lb(e.type,!1);case 11:return lb(e.type.render,!1);case 1:return lb(e.type,!0);case 31:return El("Activity");default:return""}}function XC(e){try{var t="";do t+=cU(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function pa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dU(e){var t=mO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tg(e){e._valueTracker||(e._valueTracker=dU(e))}function bO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ng(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var pU=/[\n"\\]/g;function ya(e){return e.replace(pU,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function h1(e,t,n,r,a,i,o,s){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pa(t)):e.value!==""+pa(t)&&(e.value=""+pa(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?g1(e,o,pa(t)):n!=null?g1(e,o,pa(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+pa(s):e.removeAttribute("name")}function yO(e,t,n,r,a,i,o,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;n=n!=null?""+pa(n):"",t=t!=null?""+pa(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o)}function g1(e,t,n){t==="number"&&ng(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Kl(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pa(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function vO(e,t,n){if(t!=null&&(t=""+pa(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+pa(n):""}function xO(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(oe(92));if($c(r)){if(1<r.length)throw Error(oe(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=pa(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r)}function gu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function KC(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||fU.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function SO(e,t,n){if(t!=null&&typeof t!="object")throw Error(oe(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&KC(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&KC(e,i,t[i])}function Mx(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hU=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),gU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function oh(e){return gU.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var m1=null;function zx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,Zl=null;function ZC(e){var t=Hu(e);if(t&&(e=t.stateNode)){var n=e[Or]||null;e:switch(e=t.stateNode,t.type){case"input":if(h1(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ya(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Or]||null;if(!a)throw Error(oe(90));h1(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&bO(r)}break e;case"textarea":vO(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Kl(e,!!n.multiple,t,!1)}}}var ub=!1;function wO(e,t,n){if(ub)return e(t,n);ub=!0;try{var r=e(t);return r}finally{if(ub=!1,(Ll!==null||Zl!==null)&&(k0(),Ll&&(t=Ll,e=Zl,Zl=Ll=null,ZC(t),e)))for(t=0;t<e.length;t++)ZC(e[t])}}function Cd(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Or]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(oe(231,t,typeof n));return n}var Hi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),b1=!1;if(Hi)try{var yc={};Object.defineProperty(yc,"passive",{get:function(){b1=!0}}),window.addEventListener("test",yc,yc),window.removeEventListener("test",yc,yc)}catch{b1=!1}var _o=null,Px=null,sh=null;function EO(){if(sh)return sh;var e,t=Px,n=t.length,r,a="value"in _o?_o.value:_o.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);return sh=a.slice(e,1<r?1-r:void 0)}function lh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function df(){return!0}function QC(){return!1}function Mr(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?df:QC,this.isPropagationStopped=QC,this}return $t(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=df)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=df)},persist:function(){},isPersistent:df}),t}var Qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},g0=Mr(Qs),bp=$t({},Qs,{view:0,detail:0}),mU=Mr(bp),cb,db,vc,m0=$t({},bp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jx,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vc&&(vc&&e.type==="mousemove"?(cb=e.screenX-vc.screenX,db=e.screenY-vc.screenY):db=cb=0,vc=e),cb)},movementY:function(e){return"movementY"in e?e.movementY:db}}),JC=Mr(m0),bU=$t({},m0,{dataTransfer:0}),yU=Mr(bU),vU=$t({},bp,{relatedTarget:0}),pb=Mr(vU),xU=$t({},Qs,{animationName:0,elapsedTime:0,pseudoElement:0}),SU=Mr(xU),wU=$t({},Qs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),EU=Mr(wU),kU=$t({},Qs,{data:0}),e3=Mr(kU),TU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CU={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"},AU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _U(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AU[e])?!!t[e]:!1}function jx(){return _U}var RU=$t({},bp,{key:function(e){if(e.key){var t=TU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=lh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?CU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jx,charCode:function(e){return e.type==="keypress"?lh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?lh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NU=Mr(RU),IU=$t({},m0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),t3=Mr(IU),OU=$t({},bp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jx}),DU=Mr(OU),LU=$t({},Qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),MU=Mr(LU),zU=$t({},m0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),PU=Mr(zU),jU=$t({},Qs,{newState:0,oldState:0}),FU=Mr(jU),BU=[9,13,27,32],Fx=Hi&&"CompositionEvent"in window,ed=null;Hi&&"documentMode"in document&&(ed=document.documentMode);var UU=Hi&&"TextEvent"in window&&!ed,kO=Hi&&(!Fx||ed&&8<ed&&11>=ed),n3=" ",r3=!1;function TO(e,t){switch(e){case"keyup":return BU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ml=!1;function $U(e,t){switch(e){case"compositionend":return CO(t);case"keypress":return t.which!==32?null:(r3=!0,n3);case"textInput":return e=t.data,e===n3&&r3?null:e;default:return null}}function HU(e,t){if(Ml)return e==="compositionend"||!Fx&&TO(e,t)?(e=EO(),sh=Px=_o=null,Ml=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kO&&t.locale!=="ko"?null:t.data;default:return null}}var VU={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 a3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!VU[e.type]:t==="textarea"}function AO(e,t,n,r){Ll?Zl?Zl.push(r):Zl=[r]:Ll=r,t=xg(t,"onChange"),0<t.length&&(n=new g0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var td=null,Ad=null;function GU(e){v8(e,0)}function b0(e){var t=Hc(e);if(bO(t))return e}function i3(e,t){if(e==="change")return t}var _O=!1;if(Hi){var fb;if(Hi){var hb="oninput"in document;if(!hb){var o3=document.createElement("div");o3.setAttribute("oninput","return;"),hb=typeof o3.oninput=="function"}fb=hb}else fb=!1;_O=fb&&(!document.documentMode||9<document.documentMode)}function s3(){td&&(td.detachEvent("onpropertychange",RO),Ad=td=null)}function RO(e){if(e.propertyName==="value"&&b0(Ad)){var t=[];AO(t,Ad,e,zx(e)),wO(GU,t)}}function WU(e,t,n){e==="focusin"?(s3(),td=t,Ad=n,td.attachEvent("onpropertychange",RO)):e==="focusout"&&s3()}function qU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return b0(Ad)}function YU(e,t){if(e==="click")return b0(t)}function XU(e,t){if(e==="input"||e==="change")return b0(t)}function KU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ea=typeof Object.is=="function"?Object.is:KU;function _d(e,t){if(ea(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!p1.call(t,a)||!ea(e[a],t[a]))return!1}return!0}function l3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function u3(e,t){var n=l3(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=l3(n)}}function NO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function IO(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ng(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ng(e.document)}return t}function Bx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ZU=Hi&&"documentMode"in document&&11>=document.documentMode,zl=null,y1=null,nd=null,v1=!1;function c3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;v1||zl==null||zl!==ng(r)||(r=zl,"selectionStart"in r&&Bx(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),nd&&_d(nd,r)||(nd=r,r=xg(y1,"onSelect"),0<r.length&&(t=new g0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=zl)))}function us(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pl={animationend:us("Animation","AnimationEnd"),animationiteration:us("Animation","AnimationIteration"),animationstart:us("Animation","AnimationStart"),transitionrun:us("Transition","TransitionRun"),transitionstart:us("Transition","TransitionStart"),transitioncancel:us("Transition","TransitionCancel"),transitionend:us("Transition","TransitionEnd")},gb={},OO={};Hi&&(OO=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function Js(e){if(gb[e])return gb[e];if(!Pl[e])return e;var t=Pl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in OO)return gb[e]=t[n];return e}var DO=Js("animationend"),LO=Js("animationiteration"),MO=Js("animationstart"),QU=Js("transitionrun"),JU=Js("transitionstart"),e$=Js("transitioncancel"),zO=Js("transitionend"),PO=new Map,x1="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");x1.push("scrollEnd");function Ba(e,t){PO.set(e,t),Zs(t,[e])}var d3=new WeakMap;function va(e,t){if(typeof e=="object"&&e!==null){var n=d3.get(e);return n!==void 0?n:(t={value:e,source:t,stack:XC(t)},d3.set(e,t),t)}return{value:e,source:t,stack:XC(t)}}var da=[],jl=0,Ux=0;function y0(){for(var e=jl,t=Ux=jl=0;t<e;){var n=da[t];da[t++]=null;var r=da[t];da[t++]=null;var a=da[t];da[t++]=null;var i=da[t];if(da[t++]=null,r!==null&&a!==null){var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}i!==0&&jO(n,a,i)}}function v0(e,t,n,r){da[jl++]=e,da[jl++]=t,da[jl++]=n,da[jl++]=r,Ux|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $x(e,t,n,r){return v0(e,t,n,r),rg(e)}function Vu(e,t){return v0(e,null,null,t),rg(e)}function jO(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-qr(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function rg(e){if(50<pd)throw pd=0,U1=null,Error(oe(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fl={};function t$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vr(e,t,n,r){return new t$(e,t,n,r)}function Hx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fi(e,t){var n=e.alternate;return n===null?(n=Vr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function FO(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function uh(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")Hx(e)&&(o=1);else if(typeof e=="string")o=rH(e,n,Ja.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case l1:return e=Vr(31,n,t,a),e.elementType=l1,e.lanes=i,e;case Il:return _s(n.children,a,i,t);case aO:o=8,a|=24;break;case i1:return e=Vr(12,n,t,a|2),e.elementType=i1,e.lanes=i,e;case o1:return e=Vr(13,n,t,a),e.elementType=o1,e.lanes=i,e;case s1:return e=Vr(19,n,t,a),e.elementType=s1,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case GB:case Di:o=10;break e;case iO:o=9;break e;case Rx:o=11;break e;case Nx:o=14;break e;case xo:o=16,r=null;break e}o=29,n=Error(oe(130,e===null?"null":typeof e,"")),r=null}return t=Vr(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function _s(e,t,n,r){return e=Vr(7,e,r,t),e.lanes=n,e}function mb(e,t,n){return e=Vr(6,e,null,t),e.lanes=n,e}function bb(e,t,n){return t=Vr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bl=[],Ul=0,ag=null,ig=0,fa=[],ha=0,Rs=null,Li=1,Mi="";function vs(e,t){Bl[Ul++]=ig,Bl[Ul++]=ag,ag=e,ig=t}function BO(e,t,n){fa[ha++]=Li,fa[ha++]=Mi,fa[ha++]=Rs,Rs=e;var r=Li;e=Mi;var a=32-qr(r)-1;r&=~(1<<a),n+=1;var i=32-qr(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Li=1<<32-qr(t)+a|n<<a|r,Mi=i+e}else Li=1<<i|n<<a|r,Mi=e}function Vx(e){e.return!==null&&(vs(e,1),BO(e,1,0))}function Gx(e){for(;e===ag;)ag=Bl[--Ul],Bl[Ul]=null,ig=Bl[--Ul],Bl[Ul]=null;for(;e===Rs;)Rs=fa[--ha],fa[ha]=null,Mi=fa[--ha],fa[ha]=null,Li=fa[--ha],fa[ha]=null}var hr=null,on=null,mt=!1,Ns=null,Xa=!1,S1=Error(oe(519));function zs(e){var t=Error(oe(418,""));throw Rd(va(t,e)),S1}function p3(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[rr]=e,t[Or]=r,n){case"dialog":at("cancel",t),at("close",t);break;case"iframe":case"object":case"embed":at("load",t);break;case"video":case"audio":for(n=0;n<Od.length;n++)at(Od[n],t);break;case"source":at("error",t);break;case"img":case"image":case"link":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"input":at("invalid",t),yO(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),tg(t);break;case"select":at("invalid",t);break;case"textarea":at("invalid",t),xO(t,r.value,r.defaultValue,r.children),tg(t)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||S8(t.textContent,n)?(r.popover!=null&&(at("beforetoggle",t),at("toggle",t)),r.onScroll!=null&&at("scroll",t),r.onScrollEnd!=null&&at("scrollend",t),r.onClick!=null&&(t.onclick=A0),t=!0):t=!1,t||zs(e)}function f3(e){for(hr=e.return;hr;)switch(hr.tag){case 5:case 13:Xa=!1;return;case 27:case 3:Xa=!0;return;default:hr=hr.return}}function xc(e){if(e!==hr)return!1;if(!mt)return f3(e),mt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||q1(e.type,e.memoizedProps)),n=!n),n&&on&&zs(e),f3(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){on=Da(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}on=null}}else t===27?(t=on,ns(e.type)?(e=K1,K1=null,on=e):on=t):on=hr?Da(e.stateNode.nextSibling):null;return!0}function yp(){on=hr=null,mt=!1}function h3(){var e=Ns;return e!==null&&(Ar===null?Ar=e:Ar.push.apply(Ar,e),Ns=null),e}function Rd(e){Ns===null?Ns=[e]:Ns.push(e)}var w1=ci(null),el=null,zi=null;function wo(e,t,n){Gt(w1,t._currentValue),t._currentValue=n}function Bi(e){e._currentValue=w1.current,Hn(w1)}function E1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function k1(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=a;for(var l=0;l<t.length;l++)if(s.context===t[l]){i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),E1(i.return,n,e),r||(o=null);break e}i=s.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(oe(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),E1(o,n,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function vp(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(oe(387));if(o=o.memoizedProps,o!==null){var s=a.type;ea(a.pendingProps.value,o.value)||(e!==null?e.push(s):e=[s])}}else if(a===Zh.current){if(o=a.alternate,o===null)throw Error(oe(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Md):e=[Md])}a=a.return}e!==null&&k1(t,e,n,r),t.flags|=262144}function og(e){for(e=e.firstContext;e!==null;){if(!ea(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ps(e){el=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ar(e){return UO(el,e)}function pf(e,t){return el===null&&Ps(e),UO(e,t)}function UO(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zi===null){if(e===null)throw Error(oe(308));zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zi=zi.next=t;return n}var n$=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},r$=Dn.unstable_scheduleCallback,a$=Dn.unstable_NormalPriority,Rn={$$typeof:Di,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wx(){return{controller:new n$,data:new Map,refCount:0}}function xp(e){e.refCount--,e.refCount===0&&r$(a$,function(){e.controller.abort()})}var rd=null,T1=0,mu=0,Ql=null;function i$(e,t){if(rd===null){var n=rd=[];T1=0,mu=gS(),Ql={status:"pending",value:void 0,then:function(r){n.push(r)}}}return T1++,t.then(g3,g3),t}function g3(){if(--T1===0&&rd!==null){Ql!==null&&(Ql.status="fulfilled");var e=rd;rd=null,mu=0,Ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function o$(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var m3=$e.S;$e.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&i$(e,t),m3!==null&&m3(e,t)};var Is=ci(null);function qx(){var e=Is.current;return e!==null?e:Ut.pooledCache}function ch(e,t){t===null?Gt(Is,Is.current):Gt(Is,t.pool)}function $O(){var e=qx();return e===null?null:{parent:Rn._currentValue,pool:e}}var Sp=Error(oe(460)),HO=Error(oe(474)),x0=Error(oe(542)),C1={then:function(){}};function b3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ff(){}function VO(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ff,ff),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,v3(e),e;default:if(typeof t.status=="string")t.then(ff,ff);else{if(e=Ut,e!==null&&100<e.shellSuspendCounter)throw Error(oe(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,v3(e),e}throw ad=t,Sp}}var ad=null;function y3(){if(ad===null)throw Error(oe(459));var e=ad;return ad=null,e}function v3(e){if(e===Sp||e===x0)throw Error(oe(483))}var So=!1;function Yx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function A1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Mo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,kt&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=rg(e),jO(e,null,n),t}return v0(e,r,t,n),rg(e)}function id(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pO(e,n)}}function yb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _1=!1;function od(){if(_1){var e=Ql;if(e!==null)throw e}}function sd(e,t,n,r){_1=!1;var a=e.updateQueue;So=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var p=a.baseState;o=0,c=u=l=null,s=i;do{var f=s.lane&-536870913,h=f!==s.lane;if(h?(ut&f)===f:(r&f)===f){f!==0&&f===mu&&(_1=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,y=s;f=t;var x=n;switch(y.tag){case 1:if(g=y.payload,typeof g=="function"){p=g.call(x,p,f);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,f=typeof g=="function"?g.call(x,p,f):g,f==null)break e;p=$t({},p,f);break e;case 2:So=!0}}f=s.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=p):c=c.next=h,o|=f;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;h=s,s=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);c===null&&(l=p),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,i===null&&(a.shared.lanes=0),Wo|=o,e.lanes=o,e.memoizedState=p}}function GO(e,t){if(typeof e!="function")throw Error(oe(191,e));e.call(t)}function WO(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)GO(n[e],t)}var bu=ci(null),sg=ci(0);function x3(e,t){e=Wi,Gt(sg,e),Gt(bu,t),Wi=e|t.baseLanes}function R1(){Gt(sg,Wi),Gt(bu,bu.current)}function Xx(){Wi=sg.current,Hn(bu),Hn(sg)}var Vo=0,nt=null,_t=null,hn=null,lg=!1,Jl=!1,js=!1,ug=0,Nd=0,eu=null,s$=0;function cn(){throw Error(oe(321))}function Kx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ea(e[n],t[n]))return!1;return!0}function Zx(e,t,n,r,a,i){return Vo=i,nt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$e.H=e===null||e.memoizedState===null?E7:k7,js=!1,i=n(r,a),js=!1,Jl&&(i=YO(t,n,r,a)),qO(e),i}function qO(e){$e.H=cg;var t=_t!==null&&_t.next!==null;if(Vo=0,hn=_t=nt=null,lg=!1,Nd=0,eu=null,t)throw Error(oe(300));e===null||$n||(e=e.dependencies,e!==null&&og(e)&&($n=!0))}function YO(e,t,n,r){nt=e;var a=0;do{if(Jl&&(eu=null),Nd=0,Jl=!1,25<=a)throw Error(oe(301));if(a+=1,hn=_t=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}$e.H=h$,i=t(n,r)}while(Jl);return i}function l$(){var e=$e.H,t=e.useState()[0];return t=typeof t.then=="function"?wp(t):t,e=e.useState()[0],(_t!==null?_t.memoizedState:null)!==e&&(nt.flags|=1024),t}function Qx(){var e=ug!==0;return ug=0,e}function Jx(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function eS(e){if(lg){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lg=!1}Vo=0,hn=_t=nt=null,Jl=!1,Nd=ug=0,eu=null}function Tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hn===null?nt.memoizedState=hn=e:hn=hn.next=e,hn}function vn(){if(_t===null){var e=nt.alternate;e=e!==null?e.memoizedState:null}else e=_t.next;var t=hn===null?nt.memoizedState:hn.next;if(t!==null)hn=t,_t=e;else{if(e===null)throw nt.alternate===null?Error(oe(467)):Error(oe(310));_t=e,e={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},hn===null?nt.memoizedState=hn=e:hn=hn.next=e}return hn}function tS(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wp(e){var t=Nd;return Nd+=1,eu===null&&(eu=[]),e=VO(eu,e,t),t=nt,(hn===null?t.memoizedState:hn.next)===null&&(t=t.alternate,$e.H=t===null||t.memoizedState===null?E7:k7),e}function S0(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wp(e);if(e.$$typeof===Di)return ar(e)}throw Error(oe(438,String(e)))}function nS(e){var t=null,n=nt.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=nt.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=tS(),nt.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=WB;return t.index++,n}function Vi(e,t){return typeof t=="function"?t(e):t}function dh(e){var t=vn();return rS(t,_t,e)}function rS(e,t,n){var r=e.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var s=o=null,l=null,u=t,c=!1;do{var p=u.lane&-536870913;if(p!==u.lane?(ut&p)===p:(Vo&p)===p){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===mu&&(c=!0);else if((Vo&f)===f){u=u.next,f===mu&&(c=!0);continue}else p={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=p,o=i):l=l.next=p,nt.lanes|=f,Wo|=f;p=u.action,js&&n(i,p),i=u.hasEagerState?u.eagerState:n(i,p)}else f={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,o=i):l=l.next=f,nt.lanes|=p,Wo|=p;u=u.next}while(u!==null&&u!==t);if(l===null?o=i:l.next=s,!ea(i,e.memoizedState)&&($n=!0,c&&(n=Ql,n!==null)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=l,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function vb(e){var t=vn(),n=t.queue;if(n===null)throw Error(oe(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);ea(i,t.memoizedState)||($n=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function XO(e,t,n){var r=nt,a=vn(),i=mt;if(i){if(n===void 0)throw Error(oe(407));n=n()}else n=t();var o=!ea((_t||a).memoizedState,n);o&&(a.memoizedState=n,$n=!0),a=a.queue;var s=QO.bind(null,r,a,e);if(Ep(2048,8,s,[e]),a.getSnapshot!==t||o||hn!==null&&hn.memoizedState.tag&1){if(r.flags|=2048,yu(9,w0(),ZO.bind(null,r,a,n,t),null),Ut===null)throw Error(oe(349));i||Vo&124||KO(r,t,n)}return n}function KO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=nt.updateQueue,t===null?(t=tS(),nt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ZO(e,t,n,r){t.value=n,t.getSnapshot=r,JO(t)&&e7(e)}function QO(e,t,n){return n(function(){JO(t)&&e7(e)})}function JO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ea(e,n)}catch{return!0}}function e7(e){var t=Vu(e,2);t!==null&&Xr(t,e,2)}function N1(e){var t=Tr();if(typeof e=="function"){var n=e;if(e=n(),js){Ao(!0);try{n()}finally{Ao(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:e},t}function t7(e,t,n,r){return e.baseState=n,rS(e,_t,typeof r=="function"?r:Vi)}function u$(e,t,n,r,a){if(E0(e))throw Error(oe(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};$e.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,n7(t,i)):(i.next=n.next,t.pending=n.next=i)}}function n7(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=$e.T,o={};$e.T=o;try{var s=n(a,r),l=$e.S;l!==null&&l(o,s),S3(e,t,s)}catch(u){I1(e,t,u)}finally{$e.T=i}}else try{i=n(a,r),S3(e,t,i)}catch(u){I1(e,t,u)}}function S3(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){w3(e,t,r)},function(r){return I1(e,t,r)}):w3(e,t,n)}function w3(e,t,n){t.status="fulfilled",t.value=n,r7(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,n7(e,n)))}function I1(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,r7(t),t=t.next;while(t!==r)}e.action=null}function r7(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function a7(e,t){return t}function E3(e,t){if(mt){var n=Ut.formState;if(n!==null){e:{var r=nt;if(mt){if(on){t:{for(var a=on,i=Xa;a.nodeType!==8;){if(!i){a=null;break t}if(a=Da(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){on=Da(a.nextSibling),r=a.data==="F!";break e}}zs(r)}r=!1}r&&(t=n[0])}}return n=Tr(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a7,lastRenderedState:t},n.queue=r,n=x7.bind(null,nt,r),r.dispatch=n,r=N1(!1),i=sS.bind(null,nt,!1,r.queue),r=Tr(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=u$.bind(null,nt,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function k3(e){var t=vn();return i7(t,_t,e)}function i7(e,t,n){if(t=rS(e,t,a7)[0],e=dh(Vi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=wp(t)}catch(o){throw o===Sp?x0:o}else r=t;t=vn();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(nt.flags|=2048,yu(9,w0(),c$.bind(null,a,n),null)),[r,i,e]}function c$(e,t){e.action=t}function T3(e){var t=vn(),n=_t;if(n!==null)return i7(t,n,e);vn(),t=t.memoizedState,n=vn();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function yu(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=nt.updateQueue,t===null&&(t=tS(),nt.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function w0(){return{destroy:void 0,resource:void 0}}function o7(){return vn().memoizedState}function ph(e,t,n,r){var a=Tr();r=r===void 0?null:r,nt.flags|=e,a.memoizedState=yu(1|t,w0(),n,r)}function Ep(e,t,n,r){var a=vn();r=r===void 0?null:r;var i=a.memoizedState.inst;_t!==null&&r!==null&&Kx(r,_t.memoizedState.deps)?a.memoizedState=yu(t,i,n,r):(nt.flags|=e,a.memoizedState=yu(1|t,i,n,r))}function C3(e,t){ph(8390656,8,e,t)}function s7(e,t){Ep(2048,8,e,t)}function l7(e,t){return Ep(4,2,e,t)}function u7(e,t){return Ep(4,4,e,t)}function c7(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function d7(e,t,n){n=n!=null?n.concat([e]):null,Ep(4,4,c7.bind(null,t,e),n)}function aS(){}function p7(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Kx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function f7(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Kx(t,r[1]))return r[0];if(r=e(),js){Ao(!0);try{e()}finally{Ao(!1)}}return n.memoizedState=[r,t],r}function iS(e,t,n){return n===void 0||Vo&1073741824?e.memoizedState=t:(e.memoizedState=n,e=r8(),nt.lanes|=e,Wo|=e,n)}function h7(e,t,n,r){return ea(n,t)?n:bu.current!==null?(e=iS(e,n,r),ea(e,t)||($n=!0),e):Vo&42?(e=r8(),nt.lanes|=e,Wo|=e,t):($n=!0,e.memoizedState=n)}function g7(e,t,n,r,a){var i=vt.p;vt.p=i!==0&&8>i?i:8;var o=$e.T,s={};$e.T=s,sS(e,!1,t,n);try{var l=a(),u=$e.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=o$(l,r);ld(e,t,c,Yr(e))}else ld(e,t,r,Yr(e))}catch(p){ld(e,t,{then:function(){},status:"rejected",reason:p},Yr())}finally{vt.p=i,$e.T=o}}function d$(){}function O1(e,t,n,r){if(e.tag!==5)throw Error(oe(476));var a=m7(e).queue;g7(e,a,t,As,n===null?d$:function(){return b7(e),n(r)})}function m7(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:As,baseState:As,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:As},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function b7(e){var t=m7(e).next.queue;ld(e,t,{},Yr())}function oS(){return ar(Md)}function y7(){return vn().memoizedState}function v7(){return vn().memoizedState}function p$(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Yr();e=Mo(n);var r=zo(t,e,n);r!==null&&(Xr(r,t,n),id(r,t,n)),t={cache:Wx()},e.payload=t;return}t=t.return}}function f$(e,t,n){var r=Yr();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},E0(e)?S7(t,n):(n=$x(e,t,n,r),n!==null&&(Xr(n,e,r),w7(n,t,r)))}function x7(e,t,n){var r=Yr();ld(e,t,n,r)}function ld(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(E0(e))S7(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,ea(s,o))return v0(e,t,a,0),Ut===null&&y0(),!1}catch{}finally{}if(n=$x(e,t,a,r),n!==null)return Xr(n,e,r),w7(n,t,r),!0}return!1}function sS(e,t,n,r){if(r={lane:2,revertLane:gS(),action:r,hasEagerState:!1,eagerState:null,next:null},E0(e)){if(t)throw Error(oe(479))}else t=$x(e,n,r,2),t!==null&&Xr(t,e,2)}function E0(e){var t=e.alternate;return e===nt||t!==null&&t===nt}function S7(e,t){Jl=lg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function w7(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pO(e,n)}}var cg={readContext:ar,use:S0,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useLayoutEffect:cn,useInsertionEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useSyncExternalStore:cn,useId:cn,useHostTransitionStatus:cn,useFormState:cn,useActionState:cn,useOptimistic:cn,useMemoCache:cn,useCacheRefresh:cn},E7={readContext:ar,use:S0,useCallback:function(e,t){return Tr().memoizedState=[e,t===void 0?null:t],e},useContext:ar,useEffect:C3,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ph(4194308,4,c7.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ph(4194308,4,e,t)},useInsertionEffect:function(e,t){ph(4,2,e,t)},useMemo:function(e,t){var n=Tr();t=t===void 0?null:t;var r=e();if(js){Ao(!0);try{e()}finally{Ao(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Tr();if(n!==void 0){var a=n(t);if(js){Ao(!0);try{n(t)}finally{Ao(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=f$.bind(null,nt,e),[r.memoizedState,e]},useRef:function(e){var t=Tr();return e={current:e},t.memoizedState=e},useState:function(e){e=N1(e);var t=e.queue,n=x7.bind(null,nt,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:aS,useDeferredValue:function(e,t){var n=Tr();return iS(n,e,t)},useTransition:function(){var e=N1(!1);return e=g7.bind(null,nt,e.queue,!0,!1),Tr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=nt,a=Tr();if(mt){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),Ut===null)throw Error(oe(349));ut&124||KO(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,C3(QO.bind(null,r,i,e),[e]),r.flags|=2048,yu(9,w0(),ZO.bind(null,r,i,n,t),null),n},useId:function(){var e=Tr(),t=Ut.identifierPrefix;if(mt){var n=Mi,r=Li;n=(r&~(1<<32-qr(r)-1)).toString(32)+n,t="«"+t+"R"+n,n=ug++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=s$++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:oS,useFormState:E3,useActionState:E3,useOptimistic:function(e){var t=Tr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=sS.bind(null,nt,!0,n),n.dispatch=t,[e,t]},useMemoCache:nS,useCacheRefresh:function(){return Tr().memoizedState=p$.bind(null,nt)}},k7={readContext:ar,use:S0,useCallback:p7,useContext:ar,useEffect:s7,useImperativeHandle:d7,useInsertionEffect:l7,useLayoutEffect:u7,useMemo:f7,useReducer:dh,useRef:o7,useState:function(){return dh(Vi)},useDebugValue:aS,useDeferredValue:function(e,t){var n=vn();return h7(n,_t.memoizedState,e,t)},useTransition:function(){var e=dh(Vi)[0],t=vn().memoizedState;return[typeof e=="boolean"?e:wp(e),t]},useSyncExternalStore:XO,useId:y7,useHostTransitionStatus:oS,useFormState:k3,useActionState:k3,useOptimistic:function(e,t){var n=vn();return t7(n,_t,e,t)},useMemoCache:nS,useCacheRefresh:v7},h$={readContext:ar,use:S0,useCallback:p7,useContext:ar,useEffect:s7,useImperativeHandle:d7,useInsertionEffect:l7,useLayoutEffect:u7,useMemo:f7,useReducer:vb,useRef:o7,useState:function(){return vb(Vi)},useDebugValue:aS,useDeferredValue:function(e,t){var n=vn();return _t===null?iS(n,e,t):h7(n,_t.memoizedState,e,t)},useTransition:function(){var e=vb(Vi)[0],t=vn().memoizedState;return[typeof e=="boolean"?e:wp(e),t]},useSyncExternalStore:XO,useId:y7,useHostTransitionStatus:oS,useFormState:T3,useActionState:T3,useOptimistic:function(e,t){var n=vn();return _t!==null?t7(n,_t,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:nS,useCacheRefresh:v7},tu=null,Id=0;function hf(e){var t=Id;return Id+=1,tu===null&&(tu=[]),VO(tu,e,t)}function Sc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gf(e,t){throw t.$$typeof===VB?Error(oe(525)):(e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function A3(e){var t=e._init;return t(e._payload)}function T7(e){function t(m,v){if(e){var b=m.deletions;b===null?(m.deletions=[v],m.flags|=16):b.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m){for(var v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function a(m,v){return m=Fi(m,v),m.index=0,m.sibling=null,m}function i(m,v,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<v?(m.flags|=67108866,v):b):(m.flags|=67108866,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,v,b,S){return v===null||v.tag!==6?(v=mb(b,m.mode,S),v.return=m,v):(v=a(v,b),v.return=m,v)}function l(m,v,b,S){var C=b.type;return C===Il?c(m,v,b.props.children,S,b.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===xo&&A3(C)===v.type)?(v=a(v,b.props),Sc(v,b),v.return=m,v):(v=uh(b.type,b.key,b.props,null,m.mode,S),Sc(v,b),v.return=m,v)}function u(m,v,b,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=bb(b,m.mode,S),v.return=m,v):(v=a(v,b.children||[]),v.return=m,v)}function c(m,v,b,S,C){return v===null||v.tag!==7?(v=_s(b,m.mode,S,C),v.return=m,v):(v=a(v,b),v.return=m,v)}function p(m,v,b){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=mb(""+v,m.mode,b),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case sf:return b=uh(v.type,v.key,v.props,null,m.mode,b),Sc(b,v),b.return=m,b;case Uc:return v=bb(v,m.mode,b),v.return=m,v;case xo:var S=v._init;return v=S(v._payload),p(m,v,b)}if($c(v)||bc(v))return v=_s(v,m.mode,b,null),v.return=m,v;if(typeof v.then=="function")return p(m,hf(v),b);if(v.$$typeof===Di)return p(m,pf(m,v),b);gf(m,v)}return null}function f(m,v,b,S){var C=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return C!==null?null:s(m,v,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case sf:return b.key===C?l(m,v,b,S):null;case Uc:return b.key===C?u(m,v,b,S):null;case xo:return C=b._init,b=C(b._payload),f(m,v,b,S)}if($c(b)||bc(b))return C!==null?null:c(m,v,b,S,null);if(typeof b.then=="function")return f(m,v,hf(b),S);if(b.$$typeof===Di)return f(m,v,pf(m,b),S);gf(m,b)}return null}function h(m,v,b,S,C){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(b)||null,s(v,m,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case sf:return m=m.get(S.key===null?b:S.key)||null,l(v,m,S,C);case Uc:return m=m.get(S.key===null?b:S.key)||null,u(v,m,S,C);case xo:var k=S._init;return S=k(S._payload),h(m,v,b,S,C)}if($c(S)||bc(S))return m=m.get(b)||null,c(v,m,S,C,null);if(typeof S.then=="function")return h(m,v,b,hf(S),C);if(S.$$typeof===Di)return h(m,v,b,pf(v,S),C);gf(v,S)}return null}function g(m,v,b,S){for(var C=null,k=null,R=v,O=v=0,N=null;R!==null&&O<b.length;O++){R.index>O?(N=R,R=null):N=R.sibling;var _=f(m,R,b[O],S);if(_===null){R===null&&(R=N);break}e&&R&&_.alternate===null&&t(m,R),v=i(_,v,O),k===null?C=_:k.sibling=_,k=_,R=N}if(O===b.length)return n(m,R),mt&&vs(m,O),C;if(R===null){for(;O<b.length;O++)R=p(m,b[O],S),R!==null&&(v=i(R,v,O),k===null?C=R:k.sibling=R,k=R);return mt&&vs(m,O),C}for(R=r(R);O<b.length;O++)N=h(R,m,O,b[O],S),N!==null&&(e&&N.alternate!==null&&R.delete(N.key===null?O:N.key),v=i(N,v,O),k===null?C=N:k.sibling=N,k=N);return e&&R.forEach(function(L){return t(m,L)}),mt&&vs(m,O),C}function y(m,v,b,S){if(b==null)throw Error(oe(151));for(var C=null,k=null,R=v,O=v=0,N=null,_=b.next();R!==null&&!_.done;O++,_=b.next()){R.index>O?(N=R,R=null):N=R.sibling;var L=f(m,R,_.value,S);if(L===null){R===null&&(R=N);break}e&&R&&L.alternate===null&&t(m,R),v=i(L,v,O),k===null?C=L:k.sibling=L,k=L,R=N}if(_.done)return n(m,R),mt&&vs(m,O),C;if(R===null){for(;!_.done;O++,_=b.next())_=p(m,_.value,S),_!==null&&(v=i(_,v,O),k===null?C=_:k.sibling=_,k=_);return mt&&vs(m,O),C}for(R=r(R);!_.done;O++,_=b.next())_=h(R,m,O,_.value,S),_!==null&&(e&&_.alternate!==null&&R.delete(_.key===null?O:_.key),v=i(_,v,O),k===null?C=_:k.sibling=_,k=_);return e&&R.forEach(function(I){return t(m,I)}),mt&&vs(m,O),C}function x(m,v,b,S){if(typeof b=="object"&&b!==null&&b.type===Il&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case sf:e:{for(var C=b.key;v!==null;){if(v.key===C){if(C=b.type,C===Il){if(v.tag===7){n(m,v.sibling),S=a(v,b.props.children),S.return=m,m=S;break e}}else if(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===xo&&A3(C)===v.type){n(m,v.sibling),S=a(v,b.props),Sc(S,b),S.return=m,m=S;break e}n(m,v);break}else t(m,v);v=v.sibling}b.type===Il?(S=_s(b.props.children,m.mode,S,b.key),S.return=m,m=S):(S=uh(b.type,b.key,b.props,null,m.mode,S),Sc(S,b),S.return=m,m=S)}return o(m);case Uc:e:{for(C=b.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(m,v.sibling),S=a(v,b.children||[]),S.return=m,m=S;break e}else{n(m,v);break}else t(m,v);v=v.sibling}S=bb(b,m.mode,S),S.return=m,m=S}return o(m);case xo:return C=b._init,b=C(b._payload),x(m,v,b,S)}if($c(b))return g(m,v,b,S);if(bc(b)){if(C=bc(b),typeof C!="function")throw Error(oe(150));return b=C.call(b),y(m,v,b,S)}if(typeof b.then=="function")return x(m,v,hf(b),S);if(b.$$typeof===Di)return x(m,v,pf(m,b),S);gf(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,v!==null&&v.tag===6?(n(m,v.sibling),S=a(v,b),S.return=m,m=S):(n(m,v),S=mb(b,m.mode,S),S.return=m,m=S),o(m)):n(m,v)}return function(m,v,b,S){try{Id=0;var C=x(m,v,b,S);return tu=null,C}catch(R){if(R===Sp||R===x0)throw R;var k=Vr(29,R,null,m.mode);return k.lanes=S,k.return=m,k}finally{}}}var vu=T7(!0),C7=T7(!1),wa=ci(null),ti=null;function Eo(e){var t=e.alternate;Gt(Nn,Nn.current&1),Gt(wa,e),ti===null&&(t===null||bu.current!==null||t.memoizedState!==null)&&(ti=e)}function A7(e){if(e.tag===22){if(Gt(Nn,Nn.current),Gt(wa,e),ti===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ti=e)}}else ko()}function ko(){Gt(Nn,Nn.current),Gt(wa,wa.current)}function Pi(e){Hn(wa),ti===e&&(ti=null),Hn(Nn)}var Nn=ci(0);function dg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||X1(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function xb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:$t({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var D1={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yr(),a=Mo(r);a.payload=t,n!=null&&(a.callback=n),t=zo(e,a,r),t!==null&&(Xr(t,e,r),id(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yr(),a=Mo(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=zo(e,a,r),t!==null&&(Xr(t,e,r),id(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yr(),r=Mo(n);r.tag=2,t!=null&&(r.callback=t),t=zo(e,r,n),t!==null&&(Xr(t,e,n),id(t,e,n))}};function _3(e,t,n,r,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!_d(n,r)||!_d(a,i):!0}function R3(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&D1.enqueueReplaceState(t,t.state,null)}function Fs(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=$t({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}var pg=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function _7(e){pg(e)}function R7(e){console.error(e)}function N7(e){pg(e)}function fg(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function N3(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function L1(e,t,n){return n=Mo(n),n.tag=3,n.payload={element:null},n.callback=function(){fg(e,t)},n}function I7(e){return e=Mo(e),e.tag=3,e}function O7(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){N3(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){N3(t,n,r),typeof a!="function"&&(Po===null?Po=new Set([this]):Po.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function g$(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&vp(t,n,a,!0),n=wa.current,n!==null){switch(n.tag){case 13:return ti===null?$1():n.alternate===null&&sn===0&&(sn=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===C1?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ib(e,r,a)),!1;case 22:return n.flags|=65536,r===C1?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ib(e,r,a)),!1}throw Error(oe(435,n.tag))}return Ib(e,r,a),$1(),!1}if(mt)return t=wa.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==S1&&(e=Error(oe(422),{cause:r}),Rd(va(e,n)))):(r!==S1&&(t=Error(oe(423),{cause:r}),Rd(va(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=va(r,n),a=L1(e.stateNode,r,a),yb(e,a),sn!==4&&(sn=2)),!1;var i=Error(oe(520),{cause:r});if(i=va(i,n),dd===null?dd=[i]:dd.push(i),sn!==4&&(sn=2),t===null)return!0;r=va(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=L1(n.stateNode,r,e),yb(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Po===null||!Po.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=I7(a),O7(a,e,n,r),yb(n,a),!1}n=n.return}while(n!==null);return!1}var D7=Error(oe(461)),$n=!1;function Gn(e,t,n,r){t.child=e===null?C7(t,null,n,r):vu(t,e.child,n,r)}function I3(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var o={};for(var s in r)s!=="ref"&&(o[s]=r[s])}else o=r;return Ps(t),r=Zx(e,t,n,o,i,a),s=Qx(),e!==null&&!$n?(Jx(e,t,a),Gi(e,t,a)):(mt&&s&&Vx(t),t.flags|=1,Gn(e,t,r,a),t.child)}function O3(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Hx(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,L7(e,t,i,r,a)):(e=uh(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!lS(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:_d,n(o,r)&&e.ref===t.ref)return Gi(e,t,a)}return t.flags|=1,e=Fi(i,r),e.ref=t.ref,e.return=t,t.child=e}function L7(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(_d(i,r)&&e.ref===t.ref)if($n=!1,t.pendingProps=r=i,lS(e,a))e.flags&131072&&($n=!0);else return t.lanes=e.lanes,Gi(e,t,a)}return M1(e,t,n,r,a)}function M7(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden"){if(t.flags&128){if(r=i!==null?i.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return D3(e,t,r,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ch(t,i!==null?i.cachePool:null),i!==null?x3(t,i):R1(),A7(t);else return t.lanes=t.childLanes=536870912,D3(e,t,i!==null?i.baseLanes|n:n,n)}else i!==null?(ch(t,i.cachePool),x3(t,i),ko(),t.memoizedState=null):(e!==null&&ch(t,null),R1(),ko());return Gn(e,t,a,n),t.child}function D3(e,t,n,r){var a=qx();return a=a===null?null:{parent:Rn._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ch(t,null),R1(),A7(t),e!==null&&vp(e,t,r,!0),null}function fh(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(oe(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function M1(e,t,n,r,a){return Ps(t),n=Zx(e,t,n,r,void 0,a),r=Qx(),e!==null&&!$n?(Jx(e,t,a),Gi(e,t,a)):(mt&&r&&Vx(t),t.flags|=1,Gn(e,t,n,a),t.child)}function L3(e,t,n,r,a,i){return Ps(t),t.updateQueue=null,n=YO(t,r,n,a),qO(e),r=Qx(),e!==null&&!$n?(Jx(e,t,i),Gi(e,t,i)):(mt&&r&&Vx(t),t.flags|=1,Gn(e,t,n,i),t.child)}function M3(e,t,n,r,a){if(Ps(t),t.stateNode===null){var i=Fl,o=n.contextType;typeof o=="object"&&o!==null&&(i=ar(o)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=D1,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},Yx(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?ar(o):Fl,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(xb(t,n,o,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&D1.enqueueReplaceState(i,i.state,null),sd(t,r,i,a),od(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,l=Fs(n,s);i.props=l;var u=i.context,c=n.contextType;o=Fl,typeof c=="object"&&c!==null&&(o=ar(c));var p=n.getDerivedStateFromProps;c=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==o)&&R3(t,i,r,o),So=!1;var f=t.memoizedState;i.state=f,sd(t,r,i,a),od(),u=t.memoizedState,s||f!==u||So?(typeof p=="function"&&(xb(t,n,p,r),u=t.memoizedState),(l=So||_3(t,n,l,r,f,u,o))?(c||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"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=o,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,A1(e,t),o=t.memoizedProps,c=Fs(n,o),i.props=c,p=t.pendingProps,f=i.context,u=n.contextType,l=Fl,typeof u=="object"&&u!==null&&(l=ar(u)),s=n.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==p||f!==l)&&R3(t,i,r,l),So=!1,f=t.memoizedState,i.state=f,sd(t,r,i,a),od();var h=t.memoizedState;o!==p||f!==h||So||e!==null&&e.dependencies!==null&&og(e.dependencies)?(typeof s=="function"&&(xb(t,n,s,r),h=t.memoizedState),(c=So||_3(t,n,c,r,f,h,l)||e!==null&&e.dependencies!==null&&og(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,h,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,fh(e,t),r=(t.flags&128)!==0,i||r?(i=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&r?(t.child=vu(t,e.child,null,a),t.child=vu(t,null,n,a)):Gn(e,t,n,a),t.memoizedState=i.state,e=t.child):e=Gi(e,t,a),e}function z3(e,t,n,r){return yp(),t.flags|=256,Gn(e,t,n,r),t.child}var Sb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wb(e){return{baseLanes:e,cachePool:$O()}}function Eb(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=xa),e}function z7(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Nn.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(mt){if(a?Eo(t):ko(),mt){var s=on,l;if(l=s){e:{for(l=s,s=Xa;l.nodeType!==8;){if(!s){s=null;break e}if(l=Da(l.nextSibling),l===null){s=null;break e}}s=l}s!==null?(t.memoizedState={dehydrated:s,treeContext:Rs!==null?{id:Li,overflow:Mi}:null,retryLane:536870912,hydrationErrors:null},l=Vr(18,null,null,0),l.stateNode=s,l.return=t,t.child=l,hr=t,on=null,l=!0):l=!1}l||zs(t)}if(s=t.memoizedState,s!==null&&(s=s.dehydrated,s!==null))return X1(s)?t.lanes=32:t.lanes=536870912,null;Pi(t)}return s=r.children,r=r.fallback,a?(ko(),a=t.mode,s=hg({mode:"hidden",children:s},a),r=_s(r,a,n,null),s.return=t,r.return=t,s.sibling=r,t.child=s,a=t.child,a.memoizedState=wb(n),a.childLanes=Eb(e,o,n),t.memoizedState=Sb,r):(Eo(t),z1(t,s))}if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null)){if(i)t.flags&256?(Eo(t),t.flags&=-257,t=kb(e,t,n)):t.memoizedState!==null?(ko(),t.child=e.child,t.flags|=128,t=null):(ko(),a=r.fallback,s=t.mode,r=hg({mode:"visible",children:r.children},s),a=_s(a,s,n,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,vu(t,e.child,null,n),r=t.child,r.memoizedState=wb(n),r.childLanes=Eb(e,o,n),t.memoizedState=Sb,t=a);else if(Eo(t),X1(s)){if(o=s.nextSibling&&s.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(oe(419)),r.stack="",r.digest=o,Rd({value:r,source:null,stack:null}),t=kb(e,t,n)}else if($n||vp(e,t,n,!1),o=(n&e.childLanes)!==0,$n||o){if(o=Ut,o!==null&&(r=n&-n,r=r&42?1:Ox(r),r=r&(o.suspendedLanes|n)?0:r,r!==0&&r!==l.retryLane))throw l.retryLane=r,Vu(e,r),Xr(o,e,r),D7;s.data==="$?"||$1(),t=kb(e,t,n)}else s.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,on=Da(s.nextSibling),hr=t,mt=!0,Ns=null,Xa=!1,e!==null&&(fa[ha++]=Li,fa[ha++]=Mi,fa[ha++]=Rs,Li=e.id,Mi=e.overflow,Rs=t),t=z1(t,r.children),t.flags|=4096);return t}return a?(ko(),a=r.fallback,s=t.mode,l=e.child,u=l.sibling,r=Fi(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u!==null?a=Fi(u,a):(a=_s(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s===null?s=wb(n):(l=s.cachePool,l!==null?(u=Rn._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=$O(),s={baseLanes:s.baseLanes|n,cachePool:l}),a.memoizedState=s,a.childLanes=Eb(e,o,n),t.memoizedState=Sb,r):(Eo(t),n=e.child,e=n.sibling,n=Fi(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function z1(e,t){return t=hg({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hg(e,t){return e=Vr(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function kb(e,t,n){return vu(t,e.child,null,n),e=z1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P3(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),E1(e.return,t,n)}function Tb(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function P7(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Gn(e,t,r.children,n),r=Nn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&P3(e,n,t);else if(e.tag===19)P3(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(Gt(Nn,r),a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&dg(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Tb(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&dg(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Tb(t,!0,n,null,i);break;case"together":Tb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wo|=t.lanes,!(n&t.childLanes))if(e!==null){if(vp(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,n=Fi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function lS(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&og(e)))}function m$(e,t,n){switch(t.tag){case 3:Qh(t,t.stateNode.containerInfo),wo(t,Rn,e.memoizedState.cache),yp();break;case 27:case 5:d1(t);break;case 4:Qh(t,t.stateNode.containerInfo);break;case 10:wo(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Eo(t),t.flags|=128,null):n&t.child.childLanes?z7(e,t,n):(Eo(t),e=Gi(e,t,n),e!==null?e.sibling:null);Eo(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(vp(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return P7(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Gt(Nn,Nn.current),r)break;return null;case 22:case 23:return t.lanes=0,M7(e,t,n);case 24:wo(t,Rn,e.memoizedState.cache)}return Gi(e,t,n)}function j7(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$n=!0;else{if(!lS(e,n)&&!(t.flags&128))return $n=!1,m$(e,t,n);$n=!!(e.flags&131072)}else $n=!1,mt&&t.flags&1048576&&BO(t,ig,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,a=r._init;if(r=a(r._payload),t.type=r,typeof r=="function")Hx(r)?(e=Fs(r,e),t.tag=1,t=M3(null,t,r,e,n)):(t.tag=0,t=M1(null,t,r,e,n));else{if(r!=null){if(a=r.$$typeof,a===Rx){t.tag=11,t=I3(null,t,r,e,n);break e}else if(a===Nx){t.tag=14,t=O3(null,t,r,e,n);break e}}throw t=u1(r)||r,Error(oe(306,t,""))}}return t;case 0:return M1(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Fs(r,t.pendingProps),M3(e,t,r,a,n);case 3:e:{if(Qh(t,t.stateNode.containerInfo),e===null)throw Error(oe(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,A1(e,t),sd(t,r,null,n);var o=t.memoizedState;if(r=o.cache,wo(t,Rn,r),r!==i.cache&&k1(t,[Rn],n,!0),od(),r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=z3(e,t,r,n);break e}else if(r!==a){a=va(Error(oe(424)),t),Rd(a),t=z3(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(on=Da(e.firstChild),hr=t,mt=!0,Ns=null,Xa=!0,n=C7(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(yp(),r===a){t=Gi(e,t,n);break e}Gn(e,t,r,n)}t=t.child}return t;case 26:return fh(e,t),e===null?(n=eA(t.type,null,t.pendingProps,null))?t.memoizedState=n:mt||(n=t.type,e=t.pendingProps,r=Sg(Lo.current).createElement(n),r[rr]=t,r[Or]=e,Zn(r,n,e),Un(r),t.stateNode=r):t.memoizedState=eA(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return d1(t),e===null&&mt&&(r=t.stateNode=k8(t.type,t.pendingProps,Lo.current),hr=t,Xa=!0,a=on,ns(t.type)?(K1=a,on=Da(r.firstChild)):on=a),Gn(e,t,t.pendingProps.children,n),fh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&mt&&((a=r=on)&&(r=V$(r,t.type,t.pendingProps,Xa),r!==null?(t.stateNode=r,hr=t,on=Da(r.firstChild),Xa=!1,a=!0):a=!1),a||zs(t)),d1(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,q1(a,i)?r=null:o!==null&&q1(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=Zx(e,t,l$,null,null,n),Md._currentValue=a),fh(e,t),Gn(e,t,r,n),t.child;case 6:return e===null&&mt&&((e=n=on)&&(n=G$(n,t.pendingProps,Xa),n!==null?(t.stateNode=n,hr=t,on=null,e=!0):e=!1),e||zs(t)),null;case 13:return z7(e,t,n);case 4:return Qh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vu(t,null,r,n):Gn(e,t,r,n),t.child;case 11:return I3(e,t,t.type,t.pendingProps,n);case 7:return Gn(e,t,t.pendingProps,n),t.child;case 8:return Gn(e,t,t.pendingProps.children,n),t.child;case 12:return Gn(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,wo(t,t.type,r.value),Gn(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ps(t),a=ar(a),r=r(a),t.flags|=1,Gn(e,t,r,n),t.child;case 14:return O3(e,t,t.type,t.pendingProps,n);case 15:return L7(e,t,t.type,t.pendingProps,n);case 19:return P7(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},e===null?(n=hg(r,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Fi(e.child,r),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return M7(e,t,n);case 24:return Ps(t),r=ar(Rn),e===null?(a=qx(),a===null&&(a=Ut,i=Wx(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},Yx(t),wo(t,Rn,a)):(e.lanes&n&&(A1(e,t),sd(t,null,null,n),od()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),wo(t,Rn,r)):(r=i.cache,wo(t,Rn,r),r!==a.cache&&k1(t,[Rn],n,!0))),Gn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(oe(156,t.tag))}function ki(e){e.flags|=4}function j3(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!A8(t)){if(t=wa.current,t!==null&&((ut&4194048)===ut?ti!==null:(ut&62914560)!==ut&&!(ut&536870912)||t!==ti))throw ad=C1,HO;e.flags|=8192}}function mf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cO():536870912,e.lanes|=t,xu|=t)}function wc(e,t){if(!mt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function b$(e,t,n){var r=t.pendingProps;switch(Gx(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(t),null;case 1:return Qt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Bi(Rn),fu(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(xc(t)?ki(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,h3())),Qt(t),null;case 26:return n=t.memoizedState,e===null?(ki(t),n!==null?(Qt(t),j3(t,n)):(Qt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ki(t),Qt(t),j3(t,n)):(Qt(t),t.flags&=-16777217):(e.memoizedProps!==r&&ki(t),Qt(t),t.flags&=-16777217),null;case 27:Jh(t),n=Lo.current;var a=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ki(t);else{if(!r){if(t.stateNode===null)throw Error(oe(166));return Qt(t),null}e=Ja.current,xc(t)?p3(t):(e=k8(a,r,n),t.stateNode=e,ki(t))}return Qt(t),null;case 5:if(Jh(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ki(t);else{if(!r){if(t.stateNode===null)throw Error(oe(166));return Qt(t),null}if(e=Ja.current,xc(t))p3(t);else{switch(a=Sg(Lo.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?a.createElement(n,{is:r.is}):a.createElement(n)}}e[rr]=t,e[Or]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Zn(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ki(t)}}return Qt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ki(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(oe(166));if(e=Lo.current,xc(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=hr,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[rr]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||S8(e.nodeValue,n)),e||zs(t)}else e=Sg(e).createTextNode(r),e[rr]=t,t.stateNode=e}return Qt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=xc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(oe(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(oe(317));a[rr]=t}else yp(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qt(t),a=!1}else a=h3(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Pi(t),t):(Pi(t),null)}if(Pi(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool);var i=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),mf(t,t.updateQueue),Qt(t),null;case 4:return fu(),e===null&&mS(t.stateNode.containerInfo),Qt(t),null;case 10:return Bi(t.type),Qt(t),null;case 19:if(Hn(Nn),a=t.memoizedState,a===null)return Qt(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)wc(a,!1);else{if(sn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=dg(e),i!==null){for(t.flags|=128,wc(a,!1),e=i.updateQueue,t.updateQueue=e,mf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)FO(n,e),n=n.sibling;return Gt(Nn,Nn.current&1|2),t.child}e=e.sibling}a.tail!==null&&ei()>mg&&(t.flags|=128,r=!0,wc(a,!1),t.lanes=4194304)}else{if(!r)if(e=dg(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,mf(t,e),wc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!mt)return Qt(t),null}else 2*ei()-a.renderingStartTime>mg&&n!==536870912&&(t.flags|=128,r=!0,wc(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ei(),t.sibling=null,e=Nn.current,Gt(Nn,r?e&1|2:e&1),t):(Qt(t),null);case 22:case 23:return Pi(t),Xx(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Qt(t),t.subtreeFlags&6&&(t.flags|=8192)):Qt(t),n=t.updateQueue,n!==null&&mf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Hn(Is),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Bi(Rn),Qt(t),null;case 25:return null;case 30:return null}throw Error(oe(156,t.tag))}function y$(e,t){switch(Gx(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bi(Rn),fu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Jh(t),null;case 13:if(Pi(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));yp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hn(Nn),null;case 4:return fu(),null;case 10:return Bi(t.type),null;case 22:case 23:return Pi(t),Xx(),e!==null&&Hn(Is),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bi(Rn),null;case 25:return null;default:return null}}function F7(e,t){switch(Gx(t),t.tag){case 3:Bi(Rn),fu();break;case 26:case 27:case 5:Jh(t);break;case 4:fu();break;case 13:Pi(t);break;case 19:Hn(Nn);break;case 10:Bi(t.type);break;case 22:case 23:Pi(t),Xx(),e!==null&&Hn(Is);break;case 24:Bi(Rn)}}function kp(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,o=n.inst;r=i(),o.destroy=r}n=n.next}while(n!==a)}}catch(s){Lt(t,t.return,s)}}function Go(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,a=t;var l=n,u=s;try{u()}catch(c){Lt(a,l,c)}}}r=r.next}while(r!==i)}}catch(c){Lt(t,t.return,c)}}function B7(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{WO(t,n)}catch(r){Lt(e,e.return,r)}}}function U7(e,t,n){n.props=Fs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Lt(e,t,r)}}function ud(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Lt(e,t,a)}}function Ka(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Lt(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Lt(e,t,a)}else n.current=null}function $7(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Lt(e,e.return,a)}}function Cb(e,t,n){try{var r=e.stateNode;F$(r,e.type,n,t),r[Or]=t}catch(a){Lt(e,e.return,a)}}function H7(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ns(e.type)||e.tag===4}function Ab(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||H7(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ns(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function P1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=A0));else if(r!==4&&(r===27&&ns(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(P1(e,t,n),e=e.sibling;e!==null;)P1(e,t,n),e=e.sibling}function gg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ns(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(gg(e,t,n),e=e.sibling;e!==null;)gg(e,t,n),e=e.sibling}function V7(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Zn(t,r,n),t[rr]=e,t[Or]=n}catch(i){Lt(e,e.return,i)}}var Oi=!1,dn=!1,_b=!1,F3=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function v$(e,t){if(e=e.containerInfo,G1=Tg,e=IO(e),Bx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,c=0,p=e,f=null;t:for(;;){for(var h;p!==n||a!==0&&p.nodeType!==3||(s=o+a),p!==i||r!==0&&p.nodeType!==3||(l=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(h=p.firstChild)!==null;)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(W1={focusedElem:e,selectionRange:n},Tg=!1,Bn=t;Bn!==null;)if(t=Bn,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Bn=e;else for(;Bn!==null;){switch(t=Bn,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var g=Fs(n.type,a,n.elementType===n.type);e=r.getSnapshotBeforeUpdate(g,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){Lt(n,n.return,y)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Y1(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Y1(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(oe(163))}if(e=t.sibling,e!==null){e.return=t.return,Bn=e;break}Bn=t.return}}function G7(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:co(e,n),r&4&&kp(5,n);break;case 1:if(co(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Lt(n,n.return,o)}else{var a=Fs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Lt(n,n.return,o)}}r&64&&B7(n),r&512&&ud(n,n.return);break;case 3:if(co(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{WO(e,t)}catch(o){Lt(n,n.return,o)}}break;case 27:t===null&&r&4&&V7(n);case 26:case 5:co(e,n),t===null&&r&4&&$7(n),r&512&&ud(n,n.return);break;case 12:co(e,n);break;case 13:co(e,n),r&4&&Y7(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_$.bind(null,n),W$(e,n))));break;case 22:if(r=n.memoizedState!==null||Oi,!r){t=t!==null&&t.memoizedState!==null||dn,a=Oi;var i=dn;Oi=r,(dn=t)&&!i?bo(e,n,(n.subtreeFlags&8772)!==0):co(e,n),Oi=a,dn=i}break;case 30:break;default:co(e,n)}}function W7(e){var t=e.alternate;t!==null&&(e.alternate=null,W7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lx(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ht=null,Cr=!1;function Ti(e,t,n){for(n=n.child;n!==null;)q7(e,t,n),n=n.sibling}function q7(e,t,n){if(Wr&&typeof Wr.onCommitFiberUnmount=="function")try{Wr.onCommitFiberUnmount(fp,n)}catch{}switch(n.tag){case 26:dn||Ka(n,t),Ti(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:dn||Ka(n,t);var r=Ht,a=Cr;ns(n.type)&&(Ht=n.stateNode,Cr=!1),Ti(e,t,n),fd(n.stateNode),Ht=r,Cr=a;break;case 5:dn||Ka(n,t);case 6:if(r=Ht,a=Cr,Ht=null,Ti(e,t,n),Ht=r,Cr=a,Ht!==null)if(Cr)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(n.stateNode)}catch(i){Lt(n,t,i)}else try{Ht.removeChild(n.stateNode)}catch(i){Lt(n,t,i)}break;case 18:Ht!==null&&(Cr?(e=Ht,Z3(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),jd(e)):Z3(Ht,n.stateNode));break;case 4:r=Ht,a=Cr,Ht=n.stateNode.containerInfo,Cr=!0,Ti(e,t,n),Ht=r,Cr=a;break;case 0:case 11:case 14:case 15:dn||Go(2,n,t),dn||Go(4,n,t),Ti(e,t,n);break;case 1:dn||(Ka(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&U7(n,t,r)),Ti(e,t,n);break;case 21:Ti(e,t,n);break;case 22:dn=(r=dn)||n.memoizedState!==null,Ti(e,t,n),dn=r;break;default:Ti(e,t,n)}}function Y7(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jd(e)}catch(n){Lt(t,t.return,n)}}function x$(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new F3),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new F3),t;default:throw Error(oe(435,e.tag))}}function Rb(e,t){var n=x$(e);t.forEach(function(r){var a=R$.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}function Pr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 27:if(ns(s.type)){Ht=s.stateNode,Cr=!1;break e}break;case 5:Ht=s.stateNode,Cr=!1;break e;case 3:case 4:Ht=s.stateNode.containerInfo,Cr=!0;break e}s=s.return}if(Ht===null)throw Error(oe(160));q7(i,o,a),Ht=null,Cr=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)X7(t,e),t=t.sibling}var Ca=null;function X7(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pr(t,e),jr(e),r&4&&(Go(3,e,e.return),kp(3,e),Go(5,e,e.return));break;case 1:Pr(t,e),jr(e),r&512&&(dn||n===null||Ka(n,n.return)),r&64&&Oi&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Ca;if(Pr(t,e),jr(e),r&512&&(dn||n===null||Ka(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[mp]||i[rr]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),Zn(i,r,n),i[rr]=e,Un(i),r=i;break e;case"link":var o=nA("link","href",a).get(r+(n.href||""));if(o){for(var s=0;s<o.length;s++)if(i=o[s],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break t}}i=a.createElement(r),Zn(i,r,n),a.head.appendChild(i);break;case"meta":if(o=nA("meta","content",a).get(r+(n.content||""))){for(s=0;s<o.length;s++)if(i=o[s],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(s,1);break t}}i=a.createElement(r),Zn(i,r,n),a.head.appendChild(i);break;default:throw Error(oe(468,r))}i[rr]=e,Un(i),r=i}e.stateNode=r}else rA(a,e.type,e.stateNode);else e.stateNode=tA(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?rA(a,e.type,e.stateNode):tA(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Cb(e,e.memoizedProps,n.memoizedProps)}break;case 27:Pr(t,e),jr(e),r&512&&(dn||n===null||Ka(n,n.return)),n!==null&&r&4&&Cb(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Pr(t,e),jr(e),r&512&&(dn||n===null||Ka(n,n.return)),e.flags&32){a=e.stateNode;try{gu(a,"")}catch(h){Lt(e,e.return,h)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Cb(e,a,n!==null?n.memoizedProps:a)),r&1024&&(_b=!0);break;case 6:if(Pr(t,e),jr(e),r&4){if(e.stateNode===null)throw Error(oe(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(h){Lt(e,e.return,h)}}break;case 3:if(mh=null,a=Ca,Ca=wg(t.containerInfo),Pr(t,e),Ca=a,jr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{jd(t.containerInfo)}catch(h){Lt(e,e.return,h)}_b&&(_b=!1,K7(e));break;case 4:r=Ca,Ca=wg(e.stateNode.containerInfo),Pr(t,e),jr(e),Ca=r;break;case 12:Pr(t,e),jr(e);break;case 13:Pr(t,e),jr(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(fS=ei()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Rb(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Oi,c=dn;if(Oi=u||a,dn=c||l,Pr(t,e),dn=c,Oi=u,jr(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Oi||dn||xs(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(i=l.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{s=l.stateNode;var p=l.memoizedProps.style,f=p!=null&&p.hasOwnProperty("display")?p.display:null;s.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){Lt(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(h){Lt(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Rb(e,n))));break;case 19:Pr(t,e),jr(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Rb(e,r)));break;case 30:break;case 21:break;default:Pr(t,e),jr(e)}}function jr(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(H7(r)){n=r;break}r=r.return}if(n==null)throw Error(oe(160));switch(n.tag){case 27:var a=n.stateNode,i=Ab(e);gg(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(gu(o,""),n.flags&=-33);var s=Ab(e);gg(e,s,o);break;case 3:case 4:var l=n.stateNode.containerInfo,u=Ab(e);P1(e,u,l);break;default:throw Error(oe(161))}}catch(c){Lt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function K7(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;K7(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function co(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)G7(e,t.alternate,t),t=t.sibling}function xs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Go(4,t,t.return),xs(t);break;case 1:Ka(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&U7(t,t.return,n),xs(t);break;case 27:fd(t.stateNode);case 26:case 5:Ka(t,t.return),xs(t);break;case 22:t.memoizedState===null&&xs(t);break;case 30:xs(t);break;default:xs(t)}e=e.sibling}}function bo(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:bo(a,i,n),kp(4,i);break;case 1:if(bo(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Lt(r,r.return,u)}if(r=i,a=r.updateQueue,a!==null){var s=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)GO(l[a],s)}catch(u){Lt(r,r.return,u)}}n&&o&64&&B7(i),ud(i,i.return);break;case 27:V7(i);case 26:case 5:bo(a,i,n),n&&r===null&&o&4&&$7(i),ud(i,i.return);break;case 12:bo(a,i,n);break;case 13:bo(a,i,n),n&&o&4&&Y7(a,i);break;case 22:i.memoizedState===null&&bo(a,i,n),ud(i,i.return);break;case 30:break;default:bo(a,i,n)}t=t.sibling}}function uS(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&xp(n))}function cS(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xp(e))}function Ha(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Z7(e,t,n,r),t=t.sibling}function Z7(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ha(e,t,n,r),a&2048&&kp(9,t);break;case 1:Ha(e,t,n,r);break;case 3:Ha(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xp(e)));break;case 12:if(a&2048){Ha(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,s=i.onPostCommit;typeof s=="function"&&s(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Lt(t,t.return,l)}}else Ha(e,t,n,r);break;case 13:Ha(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Ha(e,t,n,r):cd(e,t):i._visibility&2?Ha(e,t,n,r):(i._visibility|=2,kl(e,t,n,r,(t.subtreeFlags&10256)!==0)),a&2048&&uS(o,t);break;case 24:Ha(e,t,n,r),a&2048&&cS(t.alternate,t);break;default:Ha(e,t,n,r)}}function kl(e,t,n,r,a){for(a=a&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,o=t,s=n,l=r,u=o.flags;switch(o.tag){case 0:case 11:case 15:kl(i,o,s,l,a),kp(8,o);break;case 23:break;case 22:var c=o.stateNode;o.memoizedState!==null?c._visibility&2?kl(i,o,s,l,a):cd(i,o):(c._visibility|=2,kl(i,o,s,l,a)),a&&u&2048&&uS(o.alternate,o);break;case 24:kl(i,o,s,l,a),a&&u&2048&&cS(o.alternate,o);break;default:kl(i,o,s,l,a)}t=t.sibling}}function cd(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:cd(n,r),a&2048&&uS(r.alternate,r);break;case 24:cd(n,r),a&2048&&cS(r.alternate,r);break;default:cd(n,r)}t=t.sibling}}var Vc=8192;function fl(e){if(e.subtreeFlags&Vc)for(e=e.child;e!==null;)Q7(e),e=e.sibling}function Q7(e){switch(e.tag){case 26:fl(e),e.flags&Vc&&e.memoizedState!==null&&iH(Ca,e.memoizedState,e.memoizedProps);break;case 5:fl(e);break;case 3:case 4:var t=Ca;Ca=wg(e.stateNode.containerInfo),fl(e),Ca=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Vc,Vc=16777216,fl(e),Vc=t):fl(e));break;default:fl(e)}}function J7(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ec(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Bn=r,t8(r,e)}J7(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)e8(e),e=e.sibling}function e8(e){switch(e.tag){case 0:case 11:case 15:Ec(e),e.flags&2048&&Go(9,e,e.return);break;case 3:Ec(e);break;case 12:Ec(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hh(e)):Ec(e);break;default:Ec(e)}}function hh(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Bn=r,t8(r,e)}J7(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Go(8,t,t.return),hh(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,hh(t));break;default:hh(t)}e=e.sibling}}function t8(e,t){for(;Bn!==null;){var n=Bn;switch(n.tag){case 0:case 11:case 15:Go(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:xp(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Bn=r;else e:for(n=e;Bn!==null;){r=Bn;var a=r.sibling,i=r.return;if(W7(r),r===n){Bn=null;break e}if(a!==null){a.return=i,Bn=a;break e}Bn=i}}}var S$={getCacheForType:function(e){var t=ar(Rn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},w$=typeof WeakMap=="function"?WeakMap:Map,kt=0,Ut=null,it=null,ut=0,wt=0,Ur=null,Ro=!1,Gu=!1,dS=!1,Wi=0,sn=0,Wo=0,Os=0,pS=0,xa=0,xu=0,dd=null,Ar=null,j1=!1,fS=0,mg=1/0,bg=null,Po=null,Kn=0,jo=null,Su=null,nu=0,F1=0,B1=null,n8=null,pd=0,U1=null;function Yr(){if(kt&2&&ut!==0)return ut&-ut;if($e.T!==null){var e=mu;return e!==0?e:gS()}return fO()}function r8(){xa===0&&(xa=!(ut&536870912)||mt?uO():536870912);var e=wa.current;return e!==null&&(e.flags|=32),xa}function Xr(e,t,n){(e===Ut&&(wt===2||wt===9)||e.cancelPendingCommit!==null)&&(wu(e,0),No(e,ut,xa,!1)),gp(e,n),(!(kt&2)||e!==Ut)&&(e===Ut&&(!(kt&2)&&(Os|=n),sn===4&&No(e,ut,xa,!1)),di(e))}function a8(e,t,n){if(kt&6)throw Error(oe(327));var r=!n&&(t&124)===0&&(t&e.expiredLanes)===0||hp(e,t),a=r?T$(e,t):Nb(e,t,!0),i=r;do{if(a===0){Gu&&!r&&No(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!E$(n)){a=Nb(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var s=e;a=dd;var l=s.current.memoizedState.isDehydrated;if(l&&(wu(s,o).flags|=256),o=Nb(s,o,!1),o!==2){if(dS&&!l){s.errorRecoveryDisabledLanes|=i,Os|=i,a=4;break e}i=Ar,Ar=a,i!==null&&(Ar===null?Ar=i:Ar.push.apply(Ar,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){wu(e,0),No(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(oe(345));case 4:if((t&4194048)!==t)break;case 6:No(r,t,xa,!Ro);break e;case 2:Ar=null;break;case 3:case 5:break;default:throw Error(oe(329))}if((t&62914560)===t&&(a=fS+300-ei(),10<a)){if(No(r,t,xa,!Ro),h0(r,0,!0)!==0)break e;r.timeoutHandle=E8(B3.bind(null,r,n,Ar,bg,j1,t,xa,Os,xu,Ro,i,2,-0,0),a);break e}B3(r,n,Ar,bg,j1,t,xa,Os,xu,Ro,i,0,-0,0)}}break}while(!0);di(e)}function B3(e,t,n,r,a,i,o,s,l,u,c,p,f,h){if(e.timeoutHandle=-1,p=t.subtreeFlags,(p&8192||(p&16785408)===16785408)&&(Ld={stylesheets:null,count:0,unsuspend:aH},Q7(t),p=oH(),p!==null)){e.cancelPendingCommit=p($3.bind(null,e,t,i,n,r,a,o,s,l,c,1,f,h)),No(e,i,o,!u);return}$3(e,t,i,n,r,a,o,s,l)}function E$(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!ea(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function No(e,t,n,r){t&=~pS,t&=~Os,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-qr(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&dO(e,n,t)}function k0(){return kt&6?!0:(Tp(0),!1)}function hS(){if(it!==null){if(wt===0)var e=it.return;else e=it,zi=el=null,eS(e),tu=null,Id=0,e=it;for(;e!==null;)F7(e.alternate,e),e=e.return;it=null}}function wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,U$(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),hS(),Ut=e,it=n=Fi(e.current,null),ut=t,wt=0,Ur=null,Ro=!1,Gu=hp(e,t),dS=!1,xu=xa=pS=Os=Wo=sn=0,Ar=dd=null,j1=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-qr(r),i=1<<a;t|=e[a],r&=~i}return Wi=t,y0(),n}function i8(e,t){nt=null,$e.H=cg,t===Sp||t===x0?(t=y3(),wt=3):t===HO?(t=y3(),wt=4):wt=t===D7?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ur=t,it===null&&(sn=1,fg(e,va(t,e.current)))}function o8(){var e=$e.H;return $e.H=cg,e===null?cg:e}function s8(){var e=$e.A;return $e.A=S$,e}function $1(){sn=4,Ro||(ut&4194048)!==ut&&wa.current!==null||(Gu=!0),!(Wo&134217727)&&!(Os&134217727)||Ut===null||No(Ut,ut,xa,!1)}function Nb(e,t,n){var r=kt;kt|=2;var a=o8(),i=s8();(Ut!==e||ut!==t)&&(bg=null,wu(e,t)),t=!1;var o=sn;e:do try{if(wt!==0&&it!==null){var s=it,l=Ur;switch(wt){case 8:hS(),o=6;break e;case 3:case 2:case 9:case 6:wa.current===null&&(t=!0);var u=wt;if(wt=0,Ur=null,$l(e,s,l,u),n&&Gu){o=0;break e}break;default:u=wt,wt=0,Ur=null,$l(e,s,l,u)}}k$(),o=sn;break}catch(c){i8(e,c)}while(!0);return t&&e.shellSuspendCounter++,zi=el=null,kt=r,$e.H=a,$e.A=i,it===null&&(Ut=null,ut=0,y0()),o}function k$(){for(;it!==null;)l8(it)}function T$(e,t){var n=kt;kt|=2;var r=o8(),a=s8();Ut!==e||ut!==t?(bg=null,mg=ei()+500,wu(e,t)):Gu=hp(e,t);e:do try{if(wt!==0&&it!==null){t=it;var i=Ur;t:switch(wt){case 1:wt=0,Ur=null,$l(e,t,i,1);break;case 2:case 9:if(b3(i)){wt=0,Ur=null,U3(t);break}t=function(){wt!==2&&wt!==9||Ut!==e||(wt=7),di(e)},i.then(t,t);break e;case 3:wt=7;break e;case 4:wt=5;break e;case 7:b3(i)?(wt=0,Ur=null,U3(t)):(wt=0,Ur=null,$l(e,t,i,7));break;case 5:var o=null;switch(it.tag){case 26:o=it.memoizedState;case 5:case 27:var s=it;if(!o||A8(o)){wt=0,Ur=null;var l=s.sibling;if(l!==null)it=l;else{var u=s.return;u!==null?(it=u,T0(u)):it=null}break t}}wt=0,Ur=null,$l(e,t,i,5);break;case 6:wt=0,Ur=null,$l(e,t,i,6);break;case 8:hS(),sn=6;break e;default:throw Error(oe(462))}}C$();break}catch(c){i8(e,c)}while(!0);return zi=el=null,$e.H=r,$e.A=a,kt=n,it!==null?0:(Ut=null,ut=0,y0(),sn)}function C$(){for(;it!==null&&!YB();)l8(it)}function l8(e){var t=j7(e.alternate,e,Wi);e.memoizedProps=e.pendingProps,t===null?T0(e):it=t}function U3(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=L3(n,t,t.pendingProps,t.type,void 0,ut);break;case 11:t=L3(n,t,t.pendingProps,t.type.render,t.ref,ut);break;case 5:eS(t);default:F7(n,t),t=it=FO(t,Wi),t=j7(n,t,Wi)}e.memoizedProps=e.pendingProps,t===null?T0(e):it=t}function $l(e,t,n,r){zi=el=null,eS(t),tu=null,Id=0;var a=t.return;try{if(g$(e,a,t,n,ut)){sn=1,fg(e,va(n,e.current)),it=null;return}}catch(i){if(a!==null)throw it=a,i;sn=1,fg(e,va(n,e.current)),it=null;return}t.flags&32768?(mt||r===1?e=!0:Gu||ut&536870912?e=!1:(Ro=e=!0,(r===2||r===9||r===3||r===6)&&(r=wa.current,r!==null&&r.tag===13&&(r.flags|=16384))),u8(t,e)):T0(t)}function T0(e){var t=e;do{if(t.flags&32768){u8(t,Ro);return}e=t.return;var n=b$(t.alternate,t,Wi);if(n!==null){it=n;return}if(t=t.sibling,t!==null){it=t;return}it=t=e}while(t!==null);sn===0&&(sn=5)}function u8(e,t){do{var n=y$(e.alternate,e);if(n!==null){n.flags&=32767,it=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){it=e;return}it=e=n}while(e!==null);sn=6,it=null}function $3(e,t,n,r,a,i,o,s,l){e.cancelPendingCommit=null;do C0();while(Kn!==0);if(kt&6)throw Error(oe(327));if(t!==null){if(t===e.current)throw Error(oe(177));if(i=t.lanes|t.childLanes,i|=Ux,aU(e,n,i,o,s,l),e===Ut&&(it=Ut=null,ut=0),Su=t,jo=e,nu=n,F1=i,B1=a,n8=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,N$(eg,function(){return h8(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=$e.T,$e.T=null,a=vt.p,vt.p=2,o=kt,kt|=4;try{v$(e,t,n)}finally{kt=o,vt.p=a,$e.T=r}}Kn=1,c8(),d8(),p8()}}function c8(){if(Kn===1){Kn=0;var e=jo,t=Su,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=$e.T,$e.T=null;var r=vt.p;vt.p=2;var a=kt;kt|=4;try{X7(t,e);var i=W1,o=IO(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(o!==s&&s&&s.ownerDocument&&NO(s.ownerDocument.documentElement,s)){if(l!==null&&Bx(s)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var p=s.ownerDocument||document,f=p&&p.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=s.textContent.length,y=Math.min(l.start,g),x=l.end===void 0?y:Math.min(l.end,g);!h.extend&&y>x&&(o=x,x=y,y=o);var m=u3(s,y),v=u3(s,x);if(m&&v&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var b=p.createRange();b.setStart(m.node,m.offset),h.removeAllRanges(),y>x?(h.addRange(b),h.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),h.addRange(b))}}}}for(p=[],h=s;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<p.length;s++){var S=p[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Tg=!!G1,W1=G1=null}finally{kt=a,vt.p=r,$e.T=n}}e.current=t,Kn=2}}function d8(){if(Kn===2){Kn=0;var e=jo,t=Su,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=$e.T,$e.T=null;var r=vt.p;vt.p=2;var a=kt;kt|=4;try{G7(e,t.alternate,t)}finally{kt=a,vt.p=r,$e.T=n}}Kn=3}}function p8(){if(Kn===4||Kn===3){Kn=0,XB();var e=jo,t=Su,n=nu,r=n8;t.subtreeFlags&10256||t.flags&10256?Kn=5:(Kn=0,Su=jo=null,f8(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Po=null),Dx(n),t=t.stateNode,Wr&&typeof Wr.onCommitFiberRoot=="function")try{Wr.onCommitFiberRoot(fp,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=$e.T,a=vt.p,vt.p=2,$e.T=null;try{for(var i=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];i(s.value,{componentStack:s.stack})}}finally{$e.T=t,vt.p=a}}nu&3&&C0(),di(e),a=e.pendingLanes,n&4194090&&a&42?e===U1?pd++:(pd=0,U1=e):pd=0,Tp(0)}}function f8(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xp(t)))}function C0(e){return c8(),d8(),p8(),h8()}function h8(){if(Kn!==5)return!1;var e=jo,t=F1;F1=0;var n=Dx(nu),r=$e.T,a=vt.p;try{vt.p=32>n?32:n,$e.T=null,n=B1,B1=null;var i=jo,o=nu;if(Kn=0,Su=jo=null,nu=0,kt&6)throw Error(oe(331));var s=kt;if(kt|=4,e8(i.current),Z7(i,i.current,o,n),kt=s,Tp(0,!1),Wr&&typeof Wr.onPostCommitFiberRoot=="function")try{Wr.onPostCommitFiberRoot(fp,i)}catch{}return!0}finally{vt.p=a,$e.T=r,f8(e,t)}}function H3(e,t,n){t=va(n,t),t=L1(e.stateNode,t,2),e=zo(e,t,2),e!==null&&(gp(e,2),di(e))}function Lt(e,t,n){if(e.tag===3)H3(e,e,n);else for(;t!==null;){if(t.tag===3){H3(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Po===null||!Po.has(r))){e=va(n,e),n=I7(2),r=zo(t,n,2),r!==null&&(O7(n,r,t,e),gp(r,2),di(r));break}}t=t.return}}function Ib(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new w$;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(dS=!0,a.add(n),e=A$.bind(null,e,t,n),t.then(e,e))}function A$(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ut===e&&(ut&n)===n&&(sn===4||sn===3&&(ut&62914560)===ut&&300>ei()-fS?!(kt&2)&&wu(e,0):pS|=n,xu===ut&&(xu=0)),di(e)}function g8(e,t){t===0&&(t=cO()),e=Vu(e,t),e!==null&&(gp(e,t),di(e))}function _$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),g8(e,n)}function R$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(oe(314))}r!==null&&r.delete(t),g8(e,n)}function N$(e,t){return Ix(e,t)}var yg=null,Tl=null,H1=!1,vg=!1,Ob=!1,Ds=0;function di(e){e!==Tl&&e.next===null&&(Tl===null?yg=Tl=e:Tl=Tl.next=e),vg=!0,H1||(H1=!0,O$())}function Tp(e,t){if(!Ob&&vg){Ob=!0;do for(var n=!1,r=yg;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var o=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-qr(42|e)+1)-1,i&=a&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,V3(r,i))}else i=ut,i=h0(r,r===Ut?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||hp(r,i)||(n=!0,V3(r,i));r=r.next}while(n);Ob=!1}}function I$(){m8()}function m8(){vg=H1=!1;var e=0;Ds!==0&&(B$()&&(e=Ds),Ds=0);for(var t=ei(),n=null,r=yg;r!==null;){var a=r.next,i=b8(r,t);i===0?(r.next=null,n===null?yg=a:n.next=a,a===null&&(Tl=n)):(n=r,(e!==0||i&3)&&(vg=!0)),r=a}Tp(e)}function b8(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-qr(i),s=1<<o,l=a[o];l===-1?(!(s&n)||s&r)&&(a[o]=rU(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(t=Ut,n=ut,n=h0(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(wt===2||wt===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ab(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||hp(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ab(r),Dx(n)){case 2:case 8:n=sO;break;case 32:n=eg;break;case 268435456:n=lO;break;default:n=eg}return r=y8.bind(null,e),n=Ix(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ab(r),e.callbackPriority=2,e.callbackNode=null,2}function y8(e,t){if(Kn!==0&&Kn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(C0()&&e.callbackNode!==n)return null;var r=ut;return r=h0(e,e===Ut?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(a8(e,r,t),b8(e,ei()),e.callbackNode!=null&&e.callbackNode===n?y8.bind(null,e):null)}function V3(e,t){if(C0())return null;a8(e,t,!0)}function O$(){$$(function(){kt&6?Ix(oO,I$):m8()})}function gS(){return Ds===0&&(Ds=uO()),Ds}function G3(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:oh(""+e)}function W3(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function D$(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=G3((a[Or]||null).action),o=r.submitter;o&&(t=(t=o[Or]||null)?G3(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var s=new g0("action","action",null,r,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ds!==0){var l=o?W3(a,o):new FormData(a);O1(n,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=o?W3(a,o):new FormData(a),O1(n,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var Db=0;Db<x1.length;Db++){var Lb=x1[Db],L$=Lb.toLowerCase(),M$=Lb[0].toUpperCase()+Lb.slice(1);Ba(L$,"on"+M$)}Ba(DO,"onAnimationEnd");Ba(LO,"onAnimationIteration");Ba(MO,"onAnimationStart");Ba("dblclick","onDoubleClick");Ba("focusin","onFocus");Ba("focusout","onBlur");Ba(QU,"onTransitionRun");Ba(JU,"onTransitionStart");Ba(e$,"onTransitionCancel");Ba(zO,"onTransitionEnd");hu("onMouseEnter",["mouseout","mouseover"]);hu("onMouseLeave",["mouseout","mouseover"]);hu("onPointerEnter",["pointerout","pointerover"]);hu("onPointerLeave",["pointerout","pointerover"]);Zs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Od="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(" "),z$=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Od));function v8(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=u;try{i(a)}catch(c){pg(c)}a.currentTarget=null,i=l}else for(o=0;o<r.length;o++){if(s=r[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=u;try{i(a)}catch(c){pg(c)}a.currentTarget=null,i=l}}}}function at(e,t){var n=t[f1];n===void 0&&(n=t[f1]=new Set);var r=e+"__bubble";n.has(r)||(x8(t,e,2,!1),n.add(r))}function Mb(e,t,n){var r=0;t&&(r|=4),x8(n,e,r,t)}var bf="_reactListening"+Math.random().toString(36).slice(2);function mS(e){if(!e[bf]){e[bf]=!0,hO.forEach(function(n){n!=="selectionchange"&&(z$.has(n)||Mb(n,!1,e),Mb(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bf]||(t[bf]=!0,Mb("selectionchange",!1,t))}}function x8(e,t,n,r){switch(O8(t)){case 2:var a=uH;break;case 8:a=cH;break;default:a=xS}n=a.bind(null,t,n,e),a=void 0,!b1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function zb(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===a)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;s!==null;){if(o=Dl(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=i=o;continue e}s=s.parentNode}}r=r.return}wO(function(){var u=i,c=zx(n),p=[];e:{var f=PO.get(e);if(f!==void 0){var h=g0,g=e;switch(e){case"keypress":if(lh(n)===0)break e;case"keydown":case"keyup":h=NU;break;case"focusin":g="focus",h=pb;break;case"focusout":g="blur",h=pb;break;case"beforeblur":case"afterblur":h=pb;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=JC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=yU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=DU;break;case DO:case LO:case MO:h=SU;break;case zO:h=MU;break;case"scroll":case"scrollend":h=mU;break;case"wheel":h=PU;break;case"copy":case"cut":case"paste":h=EU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=t3;break;case"toggle":case"beforetoggle":h=FU}var y=(t&4)!==0,x=!y&&(e==="scroll"||e==="scrollend"),m=y?f!==null?f+"Capture":null:f;y=[];for(var v=u,b;v!==null;){var S=v;if(b=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||b===null||m===null||(S=Cd(v,m),S!=null&&y.push(Dd(v,S,b))),x)break;v=v.return}0<y.length&&(f=new h(f,g,null,n,c),p.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==m1&&(g=n.relatedTarget||n.fromElement)&&(Dl(g)||g[$u]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?Dl(g):null,g!==null&&(x=pp(g),y=g.tag,g!==x||y!==5&&y!==27&&y!==6)&&(g=null)):(h=null,g=u),h!==g)){if(y=JC,S="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=t3,S="onPointerLeave",m="onPointerEnter",v="pointer"),x=h==null?f:Hc(h),b=g==null?f:Hc(g),f=new y(S,v+"leave",h,n,c),f.target=x,f.relatedTarget=b,S=null,Dl(c)===u&&(y=new y(m,v+"enter",g,n,c),y.target=b,y.relatedTarget=x,S=y),x=S,h&&g)t:{for(y=h,m=g,v=0,b=y;b;b=hl(b))v++;for(b=0,S=m;S;S=hl(S))b++;for(;0<v-b;)y=hl(y),v--;for(;0<b-v;)m=hl(m),b--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=hl(y),m=hl(m)}y=null}else y=null;h!==null&&q3(p,f,h,y,!1),g!==null&&x!==null&&q3(p,x,g,y,!0)}}e:{if(f=u?Hc(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=i3;else if(a3(f))if(_O)C=XU;else{C=qU;var k=WU}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&Mx(u.elementType)&&(C=i3):C=YU;if(C&&(C=C(e,u))){AO(p,C,n,c);break e}k&&k(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&g1(f,"number",f.value)}switch(k=u?Hc(u):window,e){case"focusin":(a3(k)||k.contentEditable==="true")&&(zl=k,y1=u,nd=null);break;case"focusout":nd=y1=zl=null;break;case"mousedown":v1=!0;break;case"contextmenu":case"mouseup":case"dragend":v1=!1,c3(p,n,c);break;case"selectionchange":if(ZU)break;case"keydown":case"keyup":c3(p,n,c)}var R;if(Fx)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Ml?TO(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(kO&&n.locale!=="ko"&&(Ml||O!=="onCompositionStart"?O==="onCompositionEnd"&&Ml&&(R=EO()):(_o=c,Px="value"in _o?_o.value:_o.textContent,Ml=!0)),k=xg(u,O),0<k.length&&(O=new e3(O,e,null,n,c),p.push({event:O,listeners:k}),R?O.data=R:(R=CO(n),R!==null&&(O.data=R)))),(R=UU?$U(e,n):HU(e,n))&&(O=xg(u,"onBeforeInput"),0<O.length&&(k=new e3("onBeforeInput","beforeinput",null,n,c),p.push({event:k,listeners:O}),k.data=R)),D$(p,e,u,n,c)}v8(p,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xg(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Cd(e,n),a!=null&&r.unshift(Dd(e,a,i)),a=Cd(e,t),a!=null&&r.push(Dd(e,a,i))),e.tag===3)return r;e=e.return}return[]}function hl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function q3(e,t,n,r,a){for(var i=t._reactName,o=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===r)break;s!==5&&s!==26&&s!==27||u===null||(l=u,a?(u=Cd(n,i),u!=null&&o.unshift(Dd(n,u,l))):a||(u=Cd(n,i),u!=null&&o.push(Dd(n,u,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var P$=/\r\n?/g,j$=/\u0000|\uFFFD/g;function Y3(e){return(typeof e=="string"?e:""+e).replace(P$,`
`).replace(j$,"")}function S8(e,t){return t=Y3(t),Y3(e)===t}function A0(){}function At(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||gu(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&gu(e,""+r);break;case"className":cf(e,"class",r);break;case"tabIndex":cf(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":cf(e,n,r);break;case"style":SO(e,r,i);break;case"data":if(t!=="object"){cf(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=oh(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&At(e,t,"name",a.name,a,null),At(e,t,"formEncType",a.formEncType,a,null),At(e,t,"formMethod",a.formMethod,a,null),At(e,t,"formTarget",a.formTarget,a,null)):(At(e,t,"encType",a.encType,a,null),At(e,t,"method",a.method,a,null),At(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=oh(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=A0);break;case"onScroll":r!=null&&at("scroll",e);break;case"onScrollEnd":r!=null&&at("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(oe(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(oe(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=oh(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":at("beforetoggle",e),at("toggle",e),ih(e,"popover",r);break;case"xlinkActuate":Ei(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Ei(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Ei(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Ei(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Ei(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Ei(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Ei(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Ei(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Ei(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ih(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=hU.get(n)||n,ih(e,n,r))}}function V1(e,t,n,r,a,i){switch(n){case"style":SO(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(oe(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(oe(60));e.innerHTML=n}}break;case"children":typeof r=="string"?gu(e,r):(typeof r=="number"||typeof r=="bigint")&&gu(e,""+r);break;case"onScroll":r!=null&&at("scroll",e);break;case"onScrollEnd":r!=null&&at("scrollend",e);break;case"onClick":r!=null&&(e.onclick=A0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gO.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[Or]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):ih(e,n,r)}}}function Zn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",e),at("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var o=n[i];if(o!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(oe(137,t));default:At(e,t,i,o,n,null)}}a&&At(e,t,"srcSet",n.srcSet,n,null),r&&At(e,t,"src",n.src,n,null);return;case"input":at("invalid",e);var s=i=o=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var c=n[r];if(c!=null)switch(r){case"name":a=c;break;case"type":o=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":i=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(oe(137,t));break;default:At(e,t,r,c,n,null)}}yO(e,i,s,l,u,o,a,!1),tg(e);return;case"select":at("invalid",e),r=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":r=s;default:At(e,t,a,s,n,null)}t=i,n=o,e.multiple=!!r,t!=null?Kl(e,!!r,t,!1):n!=null&&Kl(e,!!r,n,!0);return;case"textarea":at("invalid",e),i=a=r=null;for(o in n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case"value":r=s;break;case"defaultValue":a=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(oe(91));break;default:At(e,t,o,s,n,null)}xO(e,r,a,i),tg(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:At(e,t,l,r,n,null)}return;case"dialog":at("beforetoggle",e),at("toggle",e),at("cancel",e),at("close",e);break;case"iframe":case"object":at("load",e);break;case"video":case"audio":for(r=0;r<Od.length;r++)at(Od[r],e);break;case"image":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"embed":case"source":case"link":at("error",e),at("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(oe(137,t));default:At(e,t,u,r,n,null)}return;default:if(Mx(t)){for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!==void 0&&V1(e,t,c,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&At(e,t,s,r,n,null))}function F$(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,s=null,l=null,u=null,c=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=p;default:r.hasOwnProperty(h)||At(e,t,h,null,r,p)}}for(var f in r){var h=r[f];if(p=n[f],r.hasOwnProperty(f)&&(h!=null||p!=null))switch(f){case"type":i=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":o=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(oe(137,t));break;default:h!==p&&At(e,t,f,h,r,p)}}h1(e,o,s,l,u,c,i,a);return;case"select":h=o=s=f=null;for(i in n)if(l=n[i],n.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":h=l;default:r.hasOwnProperty(i)||At(e,t,i,null,r,l)}for(a in r)if(i=r[a],l=n[a],r.hasOwnProperty(a)&&(i!=null||l!=null))switch(a){case"value":f=i;break;case"defaultValue":s=i;break;case"multiple":o=i;default:i!==l&&At(e,t,a,i,r,l)}t=s,n=o,r=h,f!=null?Kl(e,!!n,f,!1):!!r!=!!n&&(t!=null?Kl(e,!!n,t,!0):Kl(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(s in n)if(a=n[s],n.hasOwnProperty(s)&&a!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:At(e,t,s,null,r,a)}for(o in r)if(a=r[o],i=n[o],r.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(oe(91));break;default:a!==i&&At(e,t,o,a,r,i)}vO(e,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!r.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:At(e,t,g,null,r,f)}for(l in r)if(f=r[l],h=n[l],r.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:At(e,t,l,f,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in n)f=n[y],n.hasOwnProperty(y)&&f!=null&&!r.hasOwnProperty(y)&&At(e,t,y,null,r,f);for(u in r)if(f=r[u],h=n[u],r.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(oe(137,t));break;default:At(e,t,u,f,r,h)}return;default:if(Mx(t)){for(var x in n)f=n[x],n.hasOwnProperty(x)&&f!==void 0&&!r.hasOwnProperty(x)&&V1(e,t,x,void 0,r,f);for(c in r)f=r[c],h=n[c],!r.hasOwnProperty(c)||f===h||f===void 0&&h===void 0||V1(e,t,c,f,r,h);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m)&&At(e,t,m,null,r,f);for(p in r)f=r[p],h=n[p],!r.hasOwnProperty(p)||f===h||f==null&&h==null||At(e,t,p,f,r,h)}var G1=null,W1=null;function Sg(e){return e.nodeType===9?e:e.ownerDocument}function X3(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function w8(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function q1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pb=null;function B$(){var e=window.event;return e&&e.type==="popstate"?e===Pb?!1:(Pb=e,!0):(Pb=null,!1)}var E8=typeof setTimeout=="function"?setTimeout:void 0,U$=typeof clearTimeout=="function"?clearTimeout:void 0,K3=typeof Promise=="function"?Promise:void 0,$$=typeof queueMicrotask=="function"?queueMicrotask:typeof K3<"u"?function(e){return K3.resolve(null).then(e).catch(H$)}:E8;function H$(e){setTimeout(function(){throw e})}function ns(e){return e==="head"}function Z3(e,t){var n=t,r=0,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(0<r&&8>r){n=r;var o=e.ownerDocument;if(n&1&&fd(o.documentElement),n&2&&fd(o.body),n&4)for(n=o.head,fd(n),o=n.firstChild;o;){var s=o.nextSibling,l=o.nodeName;o[mp]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=s}}if(a===0){e.removeChild(i),jd(t);return}a--}else n==="$"||n==="$?"||n==="$!"?a++:r=n.charCodeAt(0)-48;else r=0;n=i}while(n);jd(t)}function Y1(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Y1(n),Lx(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function V$(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[mp])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Da(e.nextSibling),e===null)break}return null}function G$(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Da(e.nextSibling),e===null))return null;return e}function X1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function W$(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Da(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var K1=null;function Q3(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function k8(e,t,n){switch(t=Sg(n),e){case"html":if(e=t.documentElement,!e)throw Error(oe(452));return e;case"head":if(e=t.head,!e)throw Error(oe(453));return e;case"body":if(e=t.body,!e)throw Error(oe(454));return e;default:throw Error(oe(451))}}function fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lx(e)}var Ea=new Map,J3=new Set;function wg(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var to=vt.d;vt.d={f:q$,r:Y$,D:X$,C:K$,L:Z$,m:Q$,X:eH,S:J$,M:tH};function q$(){var e=to.f(),t=k0();return e||t}function Y$(e){var t=Hu(e);t!==null&&t.tag===5&&t.type==="form"?b7(t):to.r(e)}var Wu=typeof document>"u"?null:document;function T8(e,t,n){var r=Wu;if(r&&typeof t=="string"&&t){var a=ya(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),J3.has(a)||(J3.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Zn(t,"link",e),Un(t),r.head.appendChild(t)))}}function X$(e){to.D(e),T8("dns-prefetch",e,null)}function K$(e,t){to.C(e,t),T8("preconnect",e,t)}function Z$(e,t,n){to.L(e,t,n);var r=Wu;if(r&&e&&t){var a='link[rel="preload"][as="'+ya(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+ya(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+ya(n.imageSizes)+'"]')):a+='[href="'+ya(e)+'"]';var i=a;switch(t){case"style":i=Eu(e);break;case"script":i=qu(e)}Ea.has(i)||(e=$t({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ea.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Cp(i))||t==="script"&&r.querySelector(Ap(i))||(t=r.createElement("link"),Zn(t,"link",e),Un(t),r.head.appendChild(t)))}}function Q$(e,t){to.m(e,t);var n=Wu;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+ya(r)+'"][href="'+ya(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=qu(e)}if(!Ea.has(i)&&(e=$t({rel:"modulepreload",href:e},t),Ea.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ap(i)))return}r=n.createElement("link"),Zn(r,"link",e),Un(r),n.head.appendChild(r)}}}function J$(e,t,n){to.S(e,t,n);var r=Wu;if(r&&e){var a=Xl(r).hoistableStyles,i=Eu(e);t=t||"default";var o=a.get(i);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Cp(i)))s.loading=5;else{e=$t({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ea.get(i))&&bS(e,n);var l=o=r.createElement("link");Un(l),Zn(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,gh(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:s},a.set(i,o)}}}function eH(e,t){to.X(e,t);var n=Wu;if(n&&e){var r=Xl(n).hoistableScripts,a=qu(e),i=r.get(a);i||(i=n.querySelector(Ap(a)),i||(e=$t({src:e,async:!0},t),(t=Ea.get(a))&&yS(e,t),i=n.createElement("script"),Un(i),Zn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function tH(e,t){to.M(e,t);var n=Wu;if(n&&e){var r=Xl(n).hoistableScripts,a=qu(e),i=r.get(a);i||(i=n.querySelector(Ap(a)),i||(e=$t({src:e,async:!0,type:"module"},t),(t=Ea.get(a))&&yS(e,t),i=n.createElement("script"),Un(i),Zn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function eA(e,t,n,r){var a=(a=Lo.current)?wg(a):null;if(!a)throw Error(oe(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Eu(n.href),n=Xl(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Eu(n.href);var i=Xl(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(Cp(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Ea.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ea.set(e,n),i||nH(a,e,n,o.state))),t&&r===null)throw Error(oe(528,""));return o}if(t&&r!==null)throw Error(oe(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qu(n),n=Xl(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(oe(444,e))}}function Eu(e){return'href="'+ya(e)+'"'}function Cp(e){return'link[rel="stylesheet"]['+e+"]"}function C8(e){return $t({},e,{"data-precedence":e.precedence,precedence:null})}function nH(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Zn(t,"link",n),Un(t),e.head.appendChild(t))}function qu(e){return'[src="'+ya(e)+'"]'}function Ap(e){return"script[async]"+e}function tA(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ya(n.href)+'"]');if(r)return t.instance=r,Un(r),r;var a=$t({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Un(r),Zn(r,"style",a),gh(r,n.precedence,e),t.instance=r;case"stylesheet":a=Eu(n.href);var i=e.querySelector(Cp(a));if(i)return t.state.loading|=4,t.instance=i,Un(i),i;r=C8(n),(a=Ea.get(a))&&bS(r,a),i=(e.ownerDocument||e).createElement("link"),Un(i);var o=i;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Zn(i,"link",r),t.state.loading|=4,gh(i,n.precedence,e),t.instance=i;case"script":return i=qu(n.src),(a=e.querySelector(Ap(i)))?(t.instance=a,Un(a),a):(r=n,(a=Ea.get(i))&&(r=$t({},n),yS(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Un(a),Zn(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(oe(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,gh(r,n.precedence,e));return t.instance}function gh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)i=s;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function bS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mh=null;function nA(e,t,n){if(mh===null){var r=new Map,a=mh=new Map;a.set(n,r)}else a=mh,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[mp]||i[rr]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var s=r.get(o);s?s.push(i):r.set(o,[i])}}return r}function rA(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function rH(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function A8(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Ld=null;function aH(){}function iH(e,t,n){if(Ld===null)throw Error(oe(475));var r=Ld;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var a=Eu(n.href),i=e.querySelector(Cp(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=Eg.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,Un(i);return}i=e.ownerDocument||e,n=C8(n),(a=Ea.get(a))&&bS(n,a),i=i.createElement("link"),Un(i);var o=i;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Zn(i,"link",n),t.instance=i}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=Eg.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function oH(){if(Ld===null)throw Error(oe(475));var e=Ld;return e.stylesheets&&e.count===0&&Z1(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Z1(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Eg(){if(this.count--,this.count===0){if(this.stylesheets)Z1(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var kg=null;function Z1(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,kg=new Map,t.forEach(sH,e),kg=null,Eg.call(e))}function sH(e,t){if(!(t.state.loading&4)){var n=kg.get(e);if(n)var r=n.get(null);else{n=new Map,kg.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}a=t.instance,o=a.getAttribute("data-precedence"),i=n.get(o)||r,i===r&&n.set(null,a),n.set(o,a),this.count++,r=Eg.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Md={$$typeof:Di,Provider:null,Consumer:null,_currentValue:As,_currentValue2:As,_threadCount:0};function lH(e,t,n,r,a,i,o,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ib(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.hiddenUpdates=ib(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function _8(e,t,n,r,a,i,o,s,l,u,c,p){return e=new lH(e,t,n,o,s,l,u,p),t=1,i===!0&&(t|=24),i=Vr(3,null,null,t),e.current=i,i.stateNode=e,t=Wx(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},Yx(i),e}function R8(e){return e?(e=Fl,e):Fl}function N8(e,t,n,r,a,i){a=R8(a),r.context===null?r.context=a:r.pendingContext=a,r=Mo(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=zo(e,r,t),n!==null&&(Xr(n,e,t),id(n,e,t))}function aA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vS(e,t){aA(e,t),(e=e.alternate)&&aA(e,t)}function I8(e){if(e.tag===13){var t=Vu(e,67108864);t!==null&&Xr(t,e,67108864),vS(e,67108864)}}var Tg=!0;function uH(e,t,n,r){var a=$e.T;$e.T=null;var i=vt.p;try{vt.p=2,xS(e,t,n,r)}finally{vt.p=i,$e.T=a}}function cH(e,t,n,r){var a=$e.T;$e.T=null;var i=vt.p;try{vt.p=8,xS(e,t,n,r)}finally{vt.p=i,$e.T=a}}function xS(e,t,n,r){if(Tg){var a=Q1(r);if(a===null)zb(e,t,r,Cg,n),iA(e,r);else if(pH(a,e,t,n,r))r.stopPropagation();else if(iA(e,r),t&4&&-1<dH.indexOf(e)){for(;a!==null;){var i=Hu(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=ys(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-qr(o);s.entanglements[1]|=l,o&=~l}di(i),!(kt&6)&&(mg=ei()+500,Tp(0))}}break;case 13:s=Vu(i,2),s!==null&&Xr(s,i,2),k0(),vS(i,2)}if(i=Q1(r),i===null&&zb(e,t,r,Cg,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else zb(e,t,r,null,n)}}function Q1(e){return e=zx(e),SS(e)}var Cg=null;function SS(e){if(Cg=null,e=Dl(e),e!==null){var t=pp(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=nO(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cg=e,null}function O8(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(KB()){case oO:return 2;case sO:return 8;case eg:case ZB:return 32;case lO:return 268435456;default:return 32}default:return 32}}var J1=!1,Fo=null,Bo=null,Uo=null,zd=new Map,Pd=new Map,To=[],dH="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function iA(e,t){switch(e){case"focusin":case"focusout":Fo=null;break;case"dragenter":case"dragleave":Bo=null;break;case"mouseover":case"mouseout":Uo=null;break;case"pointerover":case"pointerout":zd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pd.delete(t.pointerId)}}function kc(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Hu(t),t!==null&&I8(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function pH(e,t,n,r,a){switch(t){case"focusin":return Fo=kc(Fo,e,t,n,r,a),!0;case"dragenter":return Bo=kc(Bo,e,t,n,r,a),!0;case"mouseover":return Uo=kc(Uo,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return zd.set(i,kc(zd.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Pd.set(i,kc(Pd.get(i)||null,e,t,n,r,a)),!0}return!1}function D8(e){var t=Dl(e.target);if(t!==null){var n=pp(t);if(n!==null){if(t=n.tag,t===13){if(t=nO(n),t!==null){e.blockedOn=t,iU(e.priority,function(){if(n.tag===13){var r=Yr();r=Ox(r);var a=Vu(n,r);a!==null&&Xr(a,n,r),vS(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Q1(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);m1=r,n.target.dispatchEvent(r),m1=null}else return t=Hu(n),t!==null&&I8(t),e.blockedOn=n,!1;t.shift()}return!0}function oA(e,t,n){bh(e)&&n.delete(t)}function fH(){J1=!1,Fo!==null&&bh(Fo)&&(Fo=null),Bo!==null&&bh(Bo)&&(Bo=null),Uo!==null&&bh(Uo)&&(Uo=null),zd.forEach(oA),Pd.forEach(oA)}function yf(e,t){e.blockedOn===t&&(e.blockedOn=null,J1||(J1=!0,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,fH)))}var vf=null;function sA(e){vf!==e&&(vf=e,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,function(){vf===e&&(vf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(SS(r||n)===null)continue;break}var i=Hu(n);i!==null&&(e.splice(t,3),t-=3,O1(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function jd(e){function t(l){return yf(l,e)}Fo!==null&&yf(Fo,e),Bo!==null&&yf(Bo,e),Uo!==null&&yf(Uo,e),zd.forEach(t),Pd.forEach(t);for(var n=0;n<To.length;n++){var r=To[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<To.length&&(n=To[0],n.blockedOn===null);)D8(n),n.blockedOn===null&&To.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],o=a[Or]||null;if(typeof i=="function")o||sA(n);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[Or]||null)s=o.formAction;else if(SS(a)!==null)continue}else s=o.action;typeof s=="function"?n[r+1]=s:(n.splice(r,3),r-=3),sA(n)}}}function wS(e){this._internalRoot=e}_0.prototype.render=wS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));var n=t.current,r=Yr();N8(n,r,e,t,null,null)};_0.prototype.unmount=wS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;N8(e.current,2,null,e,null,null),k0(),t[$u]=null}};function _0(e){this._internalRoot=e}_0.prototype.unstable_scheduleHydration=function(e){if(e){var t=fO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<To.length&&t!==0&&t<To[n].priority;n++);To.splice(n,0,e),n===0&&D8(e)}};var lA=eO.version;if(lA!=="19.1.0")throw Error(oe(527,lA,"19.1.0"));vt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(oe(188)):(e=Object.keys(e).join(","),Error(oe(268,e)));return e=HB(t),e=e!==null?rO(e):null,e=e===null?null:e.stateNode,e};var hH={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:$e,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xf.isDisabled&&xf.supportsFiber)try{fp=xf.inject(hH),Wr=xf}catch{}}p0.createRoot=function(e,t){if(!tO(e))throw Error(oe(299));var n=!1,r="",a=_7,i=R7,o=N7,s=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(s=t.unstable_transitionCallbacks)),t=_8(e,1,!1,null,null,n,r,a,i,o,s,null),e[$u]=t.current,mS(e),new wS(t)};p0.hydrateRoot=function(e,t,n){if(!tO(e))throw Error(oe(299));var r=!1,a="",i=_7,o=R7,s=N7,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=_8(e,1,!0,t,n??null,r,a,i,o,s,l,u),t.context=R8(null),n=t.current,r=Yr(),r=Ox(r),a=Mo(r),a.callback=null,zo(n,a,r),n=r,t.current.lanes=n,gp(t,n),di(t),e[$u]=t.current,mS(e),new _0(t)};p0.version="19.1.0";function L8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L8)}catch(e){console.error(e)}}L8(),YI.exports=p0;var gH=YI.exports,ES={};Object.defineProperty(ES,"__esModule",{value:!0});ES.parse=wH;ES.serialize=EH;const mH=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,bH=/^[\u0021-\u003A\u003C-\u007E]*$/,yH=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,vH=/^[\u0020-\u003A\u003D-\u007E]*$/,xH=Object.prototype.toString,SH=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function wH(e,t){const n=new SH,r=e.length;if(r<2)return n;const a=(t==null?void 0:t.decode)||kH;let i=0;do{const o=e.indexOf("=",i);if(o===-1)break;const s=e.indexOf(";",i),l=s===-1?r:s;if(o>l){i=e.lastIndexOf(";",o-1)+1;continue}const u=uA(e,i,o),c=cA(e,o,u),p=e.slice(u,c);if(n[p]===void 0){let f=uA(e,o+1,l),h=cA(e,l,f);const g=a(e.slice(f,h));n[p]=g}i=l+1}while(i<r);return n}function uA(e,t,n){do{const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function cA(e,t,n){for(;t>n;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function EH(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!mH.test(e))throw new TypeError(`argument name is invalid: ${e}`);const a=r(t);if(!bH.test(a))throw new TypeError(`argument val is invalid: ${t}`);let i=e+"="+a;if(!n)return i;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);i+="; Max-Age="+n.maxAge}if(n.domain){if(!yH.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);i+="; Domain="+n.domain}if(n.path){if(!vH.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);i+="; Path="+n.path}if(n.expires){if(!TH(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);i+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.partitioned&&(i+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return i}function kH(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function TH(e){return xH.call(e)==="[object Date]"}var dA="popstate";function CH(e={}){function t(a,i){let{pathname:o="/",search:s="",hash:l=""}=tl(a.location.hash.substring(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),ev("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let l=a.location.href,u=l.indexOf("#");s=u===-1?l:l.slice(0,u)}return s+"#"+(typeof i=="string"?i:Fd(i))}function r(a,i){za(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(i)})`)}return _H(t,n,r,e)}function nn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function za(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function AH(){return Math.random().toString(36).substring(2,10)}function pA(e,t){return{usr:e.state,key:e.key,idx:t}}function ev(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?tl(t):t,state:n,key:t&&t.key||r||AH()}}function Fd({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 tl(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 _H(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s="POP",l=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function p(){s="POP";let x=c(),m=x==null?null:x-u;u=x,l&&l({action:s,location:y.location,delta:m})}function f(x,m){s="PUSH";let v=ev(y.location,x,m);n&&n(v,x),u=c()+1;let b=pA(v,u),S=y.createHref(v);try{o.pushState(b,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:y.location,delta:1})}function h(x,m){s="REPLACE";let v=ev(y.location,x,m);n&&n(v,x),u=c();let b=pA(v,u),S=y.createHref(v);o.replaceState(b,"",S),i&&l&&l({action:s,location:y.location,delta:0})}function g(x){return RH(x)}let y={get action(){return s},get location(){return e(a,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(dA,p),l=x,()=>{a.removeEventListener(dA,p),l=null}},createHref(x){return t(a,x)},createURL:g,encodeLocation(x){let m=g(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(x){return o.go(x)}};return y}function RH(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),nn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Fd(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function M8(e,t,n="/"){return NH(e,t,n,!1)}function NH(e,t,n,r){let a=typeof t=="string"?tl(t):t,i=qi(a.pathname||"/",n);if(i==null)return null;let o=z8(e);IH(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=$H(i);s=BH(o[l],u,r)}return s}function z8(e,t=[],n=[],r=""){let a=(i,o,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(nn(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=Ui([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(nn(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),z8(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:jH(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of P8(i.path))a(i,o,l)}),t}function P8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=P8(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function IH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:FH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var OH=/^:[\w-]+$/,DH=3,LH=2,MH=1,zH=10,PH=-2,fA=e=>e==="*";function jH(e,t){let n=e.split("/"),r=n.length;return n.some(fA)&&(r+=PH),t&&(r+=LH),n.filter(a=>!fA(a)).reduce((a,i)=>a+(OH.test(i)?DH:i===""?MH:zH),r)}function FH(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 BH(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",o=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",p=Ag({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=Ag({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!p)return null;Object.assign(a,p.params),o.push({params:a,pathname:Ui([i,p.pathname]),pathnameBase:WH(Ui([i,p.pathnameBase])),route:f}),p.pathnameBase!=="/"&&(i=Ui([i,p.pathnameBase]))}return o}function Ag(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=UH(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:p},f)=>{if(c==="*"){let g=s[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const h=s[f];return p&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function UH(e,t=!1,n=!0){za(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,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function $H(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return za(!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 qi(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)||"/"}function HH(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?tl(e):e;return{pathname:n?n.startsWith("/")?n:VH(n,t):t,search:qH(r),hash:YH(a)}}function VH(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 jb(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 GH(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function j8(e){let t=GH(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function F8(e,t,n,r=!1){let a;typeof e=="string"?a=tl(e):(a={...e},nn(!a.pathname||!a.pathname.includes("?"),jb("?","pathname","search",a)),nn(!a.pathname||!a.pathname.includes("#"),jb("#","pathname","hash",a)),nn(!a.search||!a.search.includes("#"),jb("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),p-=1;a.pathname=f.join("/")}s=p>=0?t[p]:"/"}let l=HH(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Ui=e=>e.join("/").replace(/\/\/+/g,"/"),WH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function XH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var B8=["POST","PUT","PATCH","DELETE"];new Set(B8);var KH=["GET",...B8];new Set(KH);var Yu=w.createContext(null);Yu.displayName="DataRouter";var R0=w.createContext(null);R0.displayName="DataRouterState";var U8=w.createContext({isTransitioning:!1});U8.displayName="ViewTransition";var ZH=w.createContext(new Map);ZH.displayName="Fetchers";var QH=w.createContext(null);QH.displayName="Await";var pi=w.createContext(null);pi.displayName="Navigation";var _p=w.createContext(null);_p.displayName="Location";var fi=w.createContext({outlet:null,matches:[],isDataRoute:!1});fi.displayName="Route";var kS=w.createContext(null);kS.displayName="RouteError";function JH(e,{relative:t}={}){nn(Rp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(pi),{hash:a,pathname:i,search:o}=Np(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Ui([n,i])),r.createHref({pathname:s,search:o,hash:a})}function Rp(){return w.useContext(_p)!=null}function no(){return nn(Rp(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(_p).location}var $8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function H8(e){w.useContext(pi).static||w.useLayoutEffect(e)}function nl(){let{isDataRoute:e}=w.useContext(fi);return e?pV():eV()}function eV(){nn(Rp(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(Yu),{basename:t,navigator:n}=w.useContext(pi),{matches:r}=w.useContext(fi),{pathname:a}=no(),i=JSON.stringify(j8(r)),o=w.useRef(!1);return H8(()=>{o.current=!0}),w.useCallback((l,u={})=>{if(za(o.current,$8),!o.current)return;if(typeof l=="number"){n.go(l);return}let c=F8(l,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Ui([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,a,e])}w.createContext(null);function TS(){let{matches:e}=w.useContext(fi),t=e[e.length-1];return t?t.params:{}}function Np(e,{relative:t}={}){let{matches:n}=w.useContext(fi),{pathname:r}=no(),a=JSON.stringify(j8(n));return w.useMemo(()=>F8(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function tV(e,t){return V8(e,t)}function V8(e,t,n,r){var m;nn(Rp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=w.useContext(pi),{matches:i}=w.useContext(fi),o=i[i.length-1],s=o?o.params:{},l=o?o.pathname:"/",u=o?o.pathnameBase:"/",c=o&&o.route;{let v=c&&c.path||"";G8(l,!c||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (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.

Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let p=no(),f;if(t){let v=typeof t=="string"?tl(t):t;nn(u==="/"||((m=v.pathname)==null?void 0:m.startsWith(u)),`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 "${u}" but pathname "${v.pathname}" was given in the \`location\` prop.`),f=v}else f=p;let h=f.pathname||"/",g=h;if(u!=="/"){let v=u.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let y=M8(e,{pathname:g});za(c||y!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),za(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.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 x=oV(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Ui([u,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:Ui([u,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&x?w.createElement(_p.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},x):x}function nV(){let e=dV(),t=XH(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},i={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:i},"ErrorBoundary")," or"," ",w.createElement("code",{style:i},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:a},n):null,o)}var rV=w.createElement(nV,null),aV=class extends w.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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?w.createElement(fi.Provider,{value:this.props.routeContext},w.createElement(kS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function iV({routeContext:e,match:t,children:n}){let r=w.useContext(Yu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(fi.Provider,{value:e},n)}function oV(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,i=n==null?void 0:n.errors;if(i!=null){let l=a.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id])!==void 0);nn(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,l+1))}let o=!1,s=-1;if(n)for(let l=0;l<a.length;l++){let u=a[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(s=l),u.route.id){let{loaderData:c,errors:p}=n,f=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||f){o=!0,s>=0?a=a.slice(0,s+1):a=[a[0]];break}}}return a.reduceRight((l,u,c)=>{let p,f=!1,h=null,g=null;n&&(p=i&&u.route.id?i[u.route.id]:void 0,h=u.route.errorElement||rV,o&&(s<0&&c===0?(G8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,g=null):s===c&&(f=!0,g=u.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,c+1)),x=()=>{let m;return p?m=h:f?m=g:u.route.Component?m=w.createElement(u.route.Component,null):u.route.element?m=u.route.element:m=l,w.createElement(iV,{match:u,routeContext:{outlet:l,matches:y,isDataRoute:n!=null},children:m})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?w.createElement(aV,{location:n.location,revalidation:n.revalidation,component:h,error:p,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}function CS(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function sV(e){let t=w.useContext(Yu);return nn(t,CS(e)),t}function lV(e){let t=w.useContext(R0);return nn(t,CS(e)),t}function uV(e){let t=w.useContext(fi);return nn(t,CS(e)),t}function AS(e){let t=uV(e),n=t.matches[t.matches.length-1];return nn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function cV(){return AS("useRouteId")}function dV(){var r;let e=w.useContext(kS),t=lV("useRouteError"),n=AS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function pV(){let{router:e}=sV("useNavigate"),t=AS("useNavigate"),n=w.useRef(!1);return H8(()=>{n.current=!0}),w.useCallback(async(a,i={})=>{za(n.current,$8),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var hA={};function G8(e,t,n){!t&&!hA[e]&&(hA[e]=!0,za(!1,n))}w.memo(fV);function fV({routes:e,future:t,state:n}){return V8(e,void 0,n,t)}function Er(e){nn(!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 hV({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){nn(!Rp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=w.useMemo(()=>({basename:o,navigator:a,static:i,future:{}}),[o,a,i]);typeof n=="string"&&(n=tl(n));let{pathname:l="/",search:u="",hash:c="",state:p=null,key:f="default"}=n,h=w.useMemo(()=>{let g=qi(l,o);return g==null?null:{location:{pathname:g,search:u,hash:c,state:p,key:f},navigationType:r}},[o,l,u,c,p,f,r]);return za(h!=null,`<Router basename="${o}"> is not able to match the URL "${l}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:w.createElement(pi.Provider,{value:s},w.createElement(_p.Provider,{children:t,value:h}))}function gV({children:e,location:t}){return tV(tv(e),t)}function tv(e,t=[]){let n=[];return w.Children.forEach(e,(r,a)=>{if(!w.isValidElement(r))return;let i=[...t,a];if(r.type===w.Fragment){n.push.apply(n,tv(r.props.children,i));return}nn(r.type===Er,`[${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>`),nn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,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=tv(r.props.children,i)),n.push(o)}),n}var yh="get",vh="application/x-www-form-urlencoded";function N0(e){return e!=null&&typeof e.tagName=="string"}function mV(e){return N0(e)&&e.tagName.toLowerCase()==="button"}function bV(e){return N0(e)&&e.tagName.toLowerCase()==="form"}function yV(e){return N0(e)&&e.tagName.toLowerCase()==="input"}function vV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xV(e,t){return e.button===0&&(!t||t==="_self")&&!vV(e)}var Sf=null;function SV(){if(Sf===null)try{new FormData(document.createElement("form"),0),Sf=!1}catch{Sf=!0}return Sf}var wV=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fb(e){return e!=null&&!wV.has(e)?(za(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vh}"`),null):e}function EV(e,t){let n,r,a,i,o;if(bV(e)){let s=e.getAttribute("action");r=s?qi(s,t):null,n=e.getAttribute("method")||yh,a=Fb(e.getAttribute("enctype"))||vh,i=new FormData(e)}else if(mV(e)||yV(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?qi(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||yh,a=Fb(e.getAttribute("formenctype"))||Fb(s.getAttribute("enctype"))||vh,i=new FormData(s,e),!SV()){let{name:u,type:c,value:p}=e;if(c==="image"){let f=u?`${u}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else u&&i.append(u,p)}}else{if(N0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yh,r=null,a=vh,o=e}return i&&a==="text/plain"&&(o=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:o}}function _S(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function kV(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 TV(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 CV(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await kV(i,n);return o.links?o.links():[]}return[]}));return NV(r.flat(1).filter(TV).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function gA(e,t,n,r,a,i){let o=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>o(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var p;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(o(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function AV(e,t,{includeHydrateFallback:n}={}){return _V(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function _V(e){return[...new Set(e)]}function RV(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function NV(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(RV(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var IV=new Set([100,101,204,205]);function OV(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&qi(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function W8(){let e=w.useContext(Yu);return _S(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function DV(){let e=w.useContext(R0);return _S(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var RS=w.createContext(void 0);RS.displayName="FrameworkContext";function q8(){let e=w.useContext(RS);return _S(e,"You must render this element inside a <HydratedRouter> element"),e}function LV(e,t){let n=w.useContext(RS),[r,a]=w.useState(!1),[i,o]=w.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:p}=t,f=w.useRef(null);w.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let y=m=>{m.forEach(v=>{o(v.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return f.current&&x.observe(f.current),()=>{x.disconnect()}}},[e]),w.useEffect(()=>{if(r){let y=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(y)}}},[r]);let h=()=>{a(!0)},g=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,f,{}]:[i,f,{onFocus:Tc(s,h),onBlur:Tc(l,g),onMouseEnter:Tc(u,h),onMouseLeave:Tc(c,g),onTouchStart:Tc(p,h)}]:[!1,f,{}]}function Tc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function MV({page:e,...t}){let{router:n}=W8(),r=w.useMemo(()=>M8(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(PV,{page:e,matches:r,...t}):null}function zV(e){let{manifest:t,routeModules:n}=q8(),[r,a]=w.useState([]);return w.useEffect(()=>{let i=!1;return CV(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function PV({page:e,matches:t,...n}){let r=no(),{manifest:a,routeModules:i}=q8(),{basename:o}=W8(),{loaderData:s,matches:l}=DV(),u=w.useMemo(()=>gA(e,t,l,a,r,"data"),[e,t,l,a,r]),c=w.useMemo(()=>gA(e,t,l,a,r,"assets"),[e,t,l,a,r]),p=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,y=!1;if(t.forEach(m=>{var b;let v=a.routes[m.route.id];!v||!v.hasLoader||(!u.some(S=>S.route.id===m.route.id)&&m.route.id in s&&((b=i[m.route.id])!=null&&b.shouldRevalidate)||v.hasClientLoader?y=!0:g.add(m.route.id))}),g.size===0)return[];let x=OV(e,o);return y&&g.size>0&&x.searchParams.set("_routes",t.filter(m=>g.has(m.route.id)).map(m=>m.route.id).join(",")),[x.pathname+x.search]},[o,s,r,a,u,t,e,i]),f=w.useMemo(()=>AV(c,a),[c,a]),h=zV(c);return w.createElement(w.Fragment,null,p.map(g=>w.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),f.map(g=>w.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),h.map(({key:g,link:y})=>w.createElement("link",{key:g,...y})))}function jV(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Y8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y8&&(window.__reactRouterVersion="7.6.3")}catch{}function FV({basename:e,children:t,window:n}){let r=w.useRef();r.current==null&&(r.current=CH({window:n,v5Compat:!0}));let a=r.current,[i,o]=w.useState({action:a.action,location:a.location}),s=w.useCallback(l=>{w.startTransition(()=>o(l))},[o]);return w.useLayoutEffect(()=>a.listen(s),[a,s]),w.createElement(hV,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a})}var X8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hd=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,viewTransition:p,...f},h){let{basename:g}=w.useContext(pi),y=typeof u=="string"&&X8.test(u),x,m=!1;if(typeof u=="string"&&y&&(x=u,Y8))try{let N=new URL(window.location.href),_=u.startsWith("//")?new URL(N.protocol+u):new URL(u),L=qi(_.pathname,g);_.origin===N.origin&&L!=null?u=L+_.search+_.hash:m=!0}catch{za(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=JH(u,{relative:a}),[b,S,C]=LV(r,f),k=HV(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,viewTransition:p});function R(N){t&&t(N),N.defaultPrevented||k(N)}let O=w.createElement("a",{...f,...C,href:x||v,onClick:m||i?t:R,ref:jV(h,S),target:l,"data-discover":!y&&n==="render"?"true":void 0});return b&&!y?w.createElement(w.Fragment,null,O,w.createElement(MV,{page:v})):O});hd.displayName="Link";var BV=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:s,children:l,...u},c){let p=Np(o,{relative:u.relative}),f=no(),h=w.useContext(R0),{navigator:g,basename:y}=w.useContext(pi),x=h!=null&&YV(p)&&s===!0,m=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,v=f.pathname,b=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(v=v.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&y&&(b=qi(b,y)||b);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let C=v===m||!a&&v.startsWith(m)&&v.charAt(S)==="/",k=b!=null&&(b===m||!a&&b.startsWith(m)&&b.charAt(m.length)==="/"),R={isActive:C,isPending:k,isTransitioning:x},O=C?t:void 0,N;typeof r=="function"?N=r(R):N=[r,C?"active":null,k?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let _=typeof i=="function"?i(R):i;return w.createElement(hd,{...u,"aria-current":O,className:N,ref:c,style:_,to:o,viewTransition:s},typeof l=="function"?l(R):l)});BV.displayName="NavLink";var UV=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=yh,action:s,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:p,...f},h)=>{let g=WV(),y=qV(s,{relative:u}),x=o.toLowerCase()==="get"?"get":"post",m=typeof s=="string"&&X8.test(s),v=b=>{if(l&&l(b),b.defaultPrevented)return;b.preventDefault();let S=b.nativeEvent.submitter,C=(S==null?void 0:S.getAttribute("formmethod"))||o;g(S||b.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:a,state:i,relative:u,preventScrollReset:c,viewTransition:p})};return w.createElement("form",{ref:h,method:x,action:y,onSubmit:r?l:v,...f,"data-discover":!m&&e==="render"?"true":void 0})});UV.displayName="Form";function $V(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function K8(e){let t=w.useContext(Yu);return nn(t,$V(e)),t}function HV(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:o}={}){let s=nl(),l=no(),u=Np(e,{relative:i});return w.useCallback(c=>{if(xV(c,t)){c.preventDefault();let p=n!==void 0?n:Fd(l)===Fd(u);s(e,{replace:p,state:r,preventScrollReset:a,relative:i,viewTransition:o})}},[l,s,u,n,r,t,e,a,i,o])}var VV=0,GV=()=>`__${String(++VV)}__`;function WV(){let{router:e}=K8("useSubmit"),{basename:t}=w.useContext(pi),n=cV();return w.useCallback(async(r,a={})=>{let{action:i,method:o,encType:s,formData:l,body:u}=EV(r,t);if(a.navigate===!1){let c=a.fetcherKey||GV();await e.fetch(c,n,a.action||i,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||o,formEncType:a.encType||s,flushSync:a.flushSync})}else await e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||o,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function qV(e,{relative:t}={}){let{basename:n}=w.useContext(pi),r=w.useContext(fi);nn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Np(e||".",{relative:t})},o=no();if(e==null){i.search=o.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(c=>c==="")){s.delete("index"),l.filter(p=>p).forEach(p=>s.append("index",p));let c=s.toString();i.search=c?`?${c}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Ui([n,i.pathname])),Fd(i)}function YV(e,t={}){let n=w.useContext(U8);nn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=K8("useViewTransitionState"),a=Np(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=qi(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=qi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ag(a.pathname,o)!=null||Ag(a.pathname,i)!=null}[...IV];const Kr=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function XV(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ru(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:a="Provider",errorMessage:i,defaultValue:o}=e,s=w.createContext(o);s.displayName=t;function l(){var c;const u=w.useContext(s);if(!u&&n){const p=new Error(i??XV(r,a));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,l),p}return u}return[s.Provider,l,s]}function KV(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}const ZV=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),QV=/^on[A-Z]/;function Bd(...e){let t={};for(let n of e){for(let r in t){if(QV.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=KV(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=ZV(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}const JV=Object.freeze({}),eG=Object.freeze({});function Z8(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tG=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nG=Z8(function(e){return tG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function rG(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function aG(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var iG=function(){function e(n){var r=this;this._insertTag=function(a){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,i),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(aG(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=rG(a);try{i.insertRule(r,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e}(),nr="-ms-",_g="-moz-",ht="-webkit-",Q8="comm",NS="rule",IS="decl",oG="@import",J8="@keyframes",sG="@layer",lG=Math.abs,I0=String.fromCharCode,uG=Object.assign;function cG(e,t){return Yn(e,0)^45?(((t<<2^Yn(e,0))<<2^Yn(e,1))<<2^Yn(e,2))<<2^Yn(e,3):0}function e9(e){return e.trim()}function dG(e,t){return(e=t.exec(e))?e[0]:e}function gt(e,t,n){return e.replace(t,n)}function nv(e,t){return e.indexOf(t)}function Yn(e,t){return e.charCodeAt(t)|0}function Ud(e,t,n){return e.slice(t,n)}function Ga(e){return e.length}function OS(e){return e.length}function wf(e,t){return t.push(e),e}function pG(e,t){return e.map(t).join("")}var O0=1,ku=1,t9=0,Dr=0,gn=0,Xu="";function D0(e,t,n,r,a,i,o){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:O0,column:ku,length:o,return:""}}function Cc(e,t){return uG(D0("",null,null,"",null,null,0),e,{length:-e.length},t)}function fG(){return gn}function hG(){return gn=Dr>0?Yn(Xu,--Dr):0,ku--,gn===10&&(ku=1,O0--),gn}function Zr(){return gn=Dr<t9?Yn(Xu,Dr++):0,ku++,gn===10&&(ku=1,O0++),gn}function ni(){return Yn(Xu,Dr)}function xh(){return Dr}function Ip(e,t){return Ud(Xu,e,t)}function $d(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function n9(e){return O0=ku=1,t9=Ga(Xu=e),Dr=0,[]}function r9(e){return Xu="",e}function Sh(e){return e9(Ip(Dr-1,rv(e===91?e+2:e===40?e+1:e)))}function gG(e){for(;(gn=ni())&&gn<33;)Zr();return $d(e)>2||$d(gn)>3?"":" "}function mG(e,t){for(;--t&&Zr()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Ip(e,xh()+(t<6&&ni()==32&&Zr()==32))}function rv(e){for(;Zr();)switch(gn){case e:return Dr;case 34:case 39:e!==34&&e!==39&&rv(gn);break;case 40:e===41&&rv(e);break;case 92:Zr();break}return Dr}function bG(e,t){for(;Zr()&&e+gn!==57;)if(e+gn===84&&ni()===47)break;return"/*"+Ip(t,Dr-1)+"*"+I0(e===47?e:Zr())}function yG(e){for(;!$d(ni());)Zr();return Ip(e,Dr)}function vG(e){return r9(wh("",null,null,null,[""],e=n9(e),0,[0],e))}function wh(e,t,n,r,a,i,o,s,l){for(var u=0,c=0,p=o,f=0,h=0,g=0,y=1,x=1,m=1,v=0,b="",S=a,C=i,k=r,R=b;x;)switch(g=v,v=Zr()){case 40:if(g!=108&&Yn(R,p-1)==58){nv(R+=gt(Sh(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:R+=Sh(v);break;case 9:case 10:case 13:case 32:R+=gG(g);break;case 92:R+=mG(xh()-1,7);continue;case 47:switch(ni()){case 42:case 47:wf(xG(bG(Zr(),xh()),t,n),l);break;default:R+="/"}break;case 123*y:s[u++]=Ga(R)*m;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:m==-1&&(R=gt(R,/\f/g,"")),h>0&&Ga(R)-p&&wf(h>32?bA(R+";",r,n,p-1):bA(gt(R," ","")+";",r,n,p-2),l);break;case 59:R+=";";default:if(wf(k=mA(R,t,n,u,c,a,s,b,S=[],C=[],p),i),v===123)if(c===0)wh(R,t,k,k,S,i,p,s,C);else switch(f===99&&Yn(R,3)===110?100:f){case 100:case 108:case 109:case 115:wh(e,k,k,r&&wf(mA(e,k,k,0,0,a,s,b,a,S=[],p),C),a,C,p,s,r?S:C);break;default:wh(R,k,k,k,[""],C,0,s,C)}}u=c=h=0,y=m=1,b=R="",p=o;break;case 58:p=1+Ga(R),h=g;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&hG()==125)continue}switch(R+=I0(v),v*y){case 38:m=c>0?1:(R+="\f",-1);break;case 44:s[u++]=(Ga(R)-1)*m,m=1;break;case 64:ni()===45&&(R+=Sh(Zr())),f=ni(),c=p=Ga(b=R+=yG(xh())),v++;break;case 45:g===45&&Ga(R)==2&&(y=0)}}return i}function mA(e,t,n,r,a,i,o,s,l,u,c){for(var p=a-1,f=a===0?i:[""],h=OS(f),g=0,y=0,x=0;g<r;++g)for(var m=0,v=Ud(e,p+1,p=lG(y=o[g])),b=e;m<h;++m)(b=e9(y>0?f[m]+" "+v:gt(v,/&\f/g,f[m])))&&(l[x++]=b);return D0(e,t,n,a===0?NS:s,l,u,c)}function xG(e,t,n){return D0(e,t,n,Q8,I0(fG()),Ud(e,2,-2),0)}function bA(e,t,n,r){return D0(e,t,n,IS,Ud(e,0,r),Ud(e,r+1,-1),r)}function au(e,t){for(var n="",r=OS(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function SG(e,t,n,r){switch(e.type){case sG:if(e.children.length)break;case oG:case IS:return e.return=e.return||e.value;case Q8:return"";case J8:return e.return=e.value+"{"+au(e.children,r)+"}";case NS:e.value=e.props.join(",")}return Ga(n=au(e.children,r))?e.return=e.value+"{"+n+"}":""}function wG(e){var t=OS(e);return function(n,r,a,i){for(var o="",s=0;s<t;s++)o+=e[s](n,r,a,i)||"";return o}}function EG(e){return function(t){t.root||(t=t.return)&&e(t)}}var kG=function(t,n,r){for(var a=0,i=0;a=i,i=ni(),a===38&&i===12&&(n[r]=1),!$d(i);)Zr();return Ip(t,Dr)},TG=function(t,n){var r=-1,a=44;do switch($d(a)){case 0:a===38&&ni()===12&&(n[r]=1),t[r]+=kG(Dr-1,n,r);break;case 2:t[r]+=Sh(a);break;case 4:if(a===44){t[++r]=ni()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=I0(a)}while(a=Zr());return t},CG=function(t,n){return r9(TG(n9(t),n))},yA=new WeakMap,AG=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!yA.get(r))&&!a){yA.set(t,!0);for(var i=[],o=CG(n,i),s=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=i[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},_G=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function a9(e,t){switch(cG(e,t)){case 5103:return ht+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+_g+e+nr+e+e;case 6828:case 4268:return ht+e+nr+e+e;case 6165:return ht+e+nr+"flex-"+e+e;case 5187:return ht+e+gt(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+nr+"flex-$1$2")+e;case 5443:return ht+e+nr+"flex-item-"+gt(e,/flex-|-self/,"")+e;case 4675:return ht+e+nr+"flex-line-pack"+gt(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+nr+gt(e,"shrink","negative")+e;case 5292:return ht+e+nr+gt(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+gt(e,"-grow","")+ht+e+nr+gt(e,"grow","positive")+e;case 4554:return ht+gt(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return gt(gt(gt(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return gt(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return gt(gt(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+nr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return gt(e,/(.+)-inline(.+)/,ht+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ga(e)-1-t>6)switch(Yn(e,t+1)){case 109:if(Yn(e,t+4)!==45)break;case 102:return gt(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+_g+(Yn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nv(e,"stretch")?a9(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yn(e,t+1)!==115)break;case 6444:switch(Yn(e,Ga(e)-3-(~nv(e,"!important")&&10))){case 107:return gt(e,":",":"+ht)+e;case 101:return gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(Yn(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+nr+"$2box$3")+e}break;case 5936:switch(Yn(e,t+11)){case 114:return ht+e+nr+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+nr+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+nr+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+nr+e+e}return e}var RG=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case IS:t.return=a9(t.value,t.length);break;case J8:return au([Cc(t,{value:gt(t.value,"@","@"+ht)})],a);case NS:if(t.length)return pG(t.props,function(i){switch(dG(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return au([Cc(t,{props:[gt(i,/:(read-\w+)/,":"+_g+"$1")]})],a);case"::placeholder":return au([Cc(t,{props:[gt(i,/:(plac\w+)/,":"+ht+"input-$1")]}),Cc(t,{props:[gt(i,/:(plac\w+)/,":"+_g+"$1")]}),Cc(t,{props:[gt(i,/:(plac\w+)/,nr+"input-$1")]})],a)}return""})}},NG=[RG],IG=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||NG,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),m=1;m<x.length;m++)i[x[m]]=!0;s.push(y)});var l,u=[AG,_G];{var c,p=[SG,EG(function(y){c.insert(y)})],f=wG(u.concat(a,p)),h=function(x){return au(vG(x),f)};l=function(x,m,v,b){c=v,h(x?x+"{"+m.styles+"}":m.styles),b&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new iG({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(s),g};function av(){return av=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},av.apply(null,arguments)}var i9={exports:{}},Tt={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vn=typeof Symbol=="function"&&Symbol.for,DS=Vn?Symbol.for("react.element"):60103,LS=Vn?Symbol.for("react.portal"):60106,L0=Vn?Symbol.for("react.fragment"):60107,M0=Vn?Symbol.for("react.strict_mode"):60108,z0=Vn?Symbol.for("react.profiler"):60114,P0=Vn?Symbol.for("react.provider"):60109,j0=Vn?Symbol.for("react.context"):60110,MS=Vn?Symbol.for("react.async_mode"):60111,F0=Vn?Symbol.for("react.concurrent_mode"):60111,B0=Vn?Symbol.for("react.forward_ref"):60112,U0=Vn?Symbol.for("react.suspense"):60113,OG=Vn?Symbol.for("react.suspense_list"):60120,$0=Vn?Symbol.for("react.memo"):60115,H0=Vn?Symbol.for("react.lazy"):60116,DG=Vn?Symbol.for("react.block"):60121,LG=Vn?Symbol.for("react.fundamental"):60117,MG=Vn?Symbol.for("react.responder"):60118,zG=Vn?Symbol.for("react.scope"):60119;function aa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case DS:switch(e=e.type,e){case MS:case F0:case L0:case z0:case M0:case U0:return e;default:switch(e=e&&e.$$typeof,e){case j0:case B0:case H0:case $0:case P0:return e;default:return t}}case LS:return t}}}function o9(e){return aa(e)===F0}Tt.AsyncMode=MS;Tt.ConcurrentMode=F0;Tt.ContextConsumer=j0;Tt.ContextProvider=P0;Tt.Element=DS;Tt.ForwardRef=B0;Tt.Fragment=L0;Tt.Lazy=H0;Tt.Memo=$0;Tt.Portal=LS;Tt.Profiler=z0;Tt.StrictMode=M0;Tt.Suspense=U0;Tt.isAsyncMode=function(e){return o9(e)||aa(e)===MS};Tt.isConcurrentMode=o9;Tt.isContextConsumer=function(e){return aa(e)===j0};Tt.isContextProvider=function(e){return aa(e)===P0};Tt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===DS};Tt.isForwardRef=function(e){return aa(e)===B0};Tt.isFragment=function(e){return aa(e)===L0};Tt.isLazy=function(e){return aa(e)===H0};Tt.isMemo=function(e){return aa(e)===$0};Tt.isPortal=function(e){return aa(e)===LS};Tt.isProfiler=function(e){return aa(e)===z0};Tt.isStrictMode=function(e){return aa(e)===M0};Tt.isSuspense=function(e){return aa(e)===U0};Tt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===L0||e===F0||e===z0||e===M0||e===U0||e===OG||typeof e=="object"&&e!==null&&(e.$$typeof===H0||e.$$typeof===$0||e.$$typeof===P0||e.$$typeof===j0||e.$$typeof===B0||e.$$typeof===LG||e.$$typeof===MG||e.$$typeof===zG||e.$$typeof===DG)};Tt.typeOf=aa;i9.exports=Tt;var PG=i9.exports,s9=PG,jG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},FG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l9={};l9[s9.ForwardRef]=jG;l9[s9.Memo]=FG;var BG=!0;function u9(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var zS=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||BG===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},PS=function(t,n,r){zS(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function UG(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $G={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},HG=/[A-Z]|^ms/g,VG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c9=function(t){return t.charCodeAt(1)===45},vA=function(t){return t!=null&&typeof t!="boolean"},Bb=Z8(function(e){return c9(e)?e:e.replace(HG,"-$&").toLowerCase()}),xA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(VG,function(r,a,i){return Wa={name:a,styles:i,next:Wa},a})}return $G[t]!==1&&!c9(t)&&typeof n=="number"&&n!==0?n+"px":n};function Hd(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Wa={name:a.name,styles:a.styles,next:Wa},a.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Wa={name:o.name,styles:o.styles,next:Wa},o=o.next;var s=i.styles+";";return s}return GG(e,t,n)}case"function":{if(e!==void 0){var l=Wa,u=n(e);return Wa=l,Hd(e,t,u)}break}}var c=n;if(t==null)return c;var p=t[c];return p!==void 0?p:c}function GG(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Hd(e,t,n[a])+";";else for(var i in n){var o=n[i];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":vA(s)&&(r+=Bb(i)+":"+xA(i,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)vA(o[l])&&(r+=Bb(i)+":"+xA(i,o[l])+";");else{var u=Hd(e,t,o);switch(i){case"animation":case"animationName":{r+=Bb(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var SA=/label:\s*([^\s;{]+)\s*(;|$)/g,Wa;function jS(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Wa=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,a+=Hd(n,t,i);else{var o=i;a+=o[0]}for(var s=1;s<e.length;s++)if(a+=Hd(n,t,e[s]),r){var l=i;a+=l[s]}SA.lastIndex=0;for(var u="",c;(c=SA.exec(a))!==null;)u+="-"+c[1];var p=UG(a)+u;return{name:p,styles:a,next:Wa}}var WG=function(t){return t()},d9=$C.useInsertionEffect?$C.useInsertionEffect:!1,p9=d9||WG,wA=d9||w.useLayoutEffect,f9=w.createContext(typeof HTMLElement<"u"?IG({key:"css"}):null);f9.Provider;var FS=function(t){return w.forwardRef(function(n,r){var a=w.useContext(f9);return t(n,a,r)})},BS=w.createContext({}),US={}.hasOwnProperty,iv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qG=function(t,n){var r={};for(var a in n)US.call(n,a)&&(r[a]=n[a]);return r[iv]=t,r},YG=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return zS(n,r,a),p9(function(){return PS(n,r,a)}),null},XG=FS(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[iv],i=[r],o="";typeof e.className=="string"?o=u9(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=jS(i,void 0,w.useContext(BS));o+=t.key+"-"+s.name;var l={};for(var u in e)US.call(e,u)&&u!=="css"&&u!==iv&&(l[u]=e[u]);return l.className=o,n&&(l.ref=n),w.createElement(w.Fragment,null,w.createElement(YG,{cache:t,serialized:s,isStringTag:typeof a=="string"}),w.createElement(a,l))}),KG=XG,EA=function(t,n){var r=arguments;if(n==null||!US.call(n,"css"))return w.createElement.apply(void 0,r);var a=r.length,i=new Array(a);i[0]=KG,i[1]=qG(t,n);for(var o=2;o<a;o++)i[o]=r[o];return w.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(EA||(EA={}));var kA=FS(function(e,t){var n=e.styles,r=jS([n],void 0,w.useContext(BS)),a=w.useRef();return wA(function(){var i=t.key+"-global",o=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),o.hydrate([l])),a.current=[o,s],function(){o.flush()}},[t]),wA(function(){var i=a.current,o=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&PS(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});function ZG(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function QG(...e){return t=>{e.forEach(n=>{ZG(n,t)})}}function Op(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function JG(e){return e.default||e}const Rr=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),oi=e=>typeof e=="string",$S=e=>typeof e=="function";function eW(e){var n;const t=w.version;return!oi(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const h9=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(a=>n.add(a)),n),new Set([]));return Array.from(t)},[tW,V0]=ru({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function nW(e){const{value:t,children:n}=e;return d.jsxs(tW,{value:t,children:[!t._config.disableLayers&&d.jsx(kA,{styles:t.layers.atRule}),d.jsx(kA,{styles:t._global}),n]})}const rW=(e,t)=>{const n={},r={},a=Object.keys(e);for(const i of a)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},iu=(e,t)=>{const n=$S(t)?t:r=>t.includes(r);return rW(e,n)},aW=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function iW(e){return typeof e=="string"&&aW.has(e)}function oW(e,t,n){const{css:r,isValidProperty:a}=V0(),{children:i,...o}=e,s=w.useMemo(()=>{const[f,h]=iu(o,v=>n(v,t.variantKeys)),[g,y]=iu(h,t.variantKeys),[x,m]=iu(y,a);return{forwardedProps:f,variantProps:g,styleProps:x,elementProps:m}},[t.variantKeys,n,o,a]),{css:l,...u}=s.styleProps,c=w.useMemo(()=>{const f={...s.variantProps};return t.variantKeys.includes("colorPalette")||(f.colorPalette=o.colorPalette),t.variantKeys.includes("orientation")||(f.orientation=o.orientation),t(f)},[t,s.variantProps,o.colorPalette,o.orientation]);return{styles:w.useMemo(()=>r(c,...sW(l),u),[r,c,l,u]),props:{...s.forwardedProps,...s.elementProps,children:i}}}const sW=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),lW=JG(nG),uW=lW,cW=e=>e!=="theme",dW=(e,t,n)=>{let r;if(t){const a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?i=>e.__emotion_forwardProp(i)&&a(i):a}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let pW=typeof document<"u";const TA=({cache:e,serialized:t,isStringTag:n})=>{zS(e,t,n);const r=p9(()=>PS(e,t,n));if(!pW&&r!==void 0){let a=t.name,i=t.next;for(;i!==void 0;)a=Kr(a,i.name),i=i.next;return d.jsx("style",{"data-emotion":Kr(e.key,a),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},CA={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},fW=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),hW=(e,t={},n={})=>{if(fW(CA,e)){n.forwardProps||(n.forwardProps=[]);const u=CA[e];n.forwardProps=h9([...n.forwardProps,...u])}const r=e.__emotion_real===e,a=r&&e.__emotion_base||e;let i,o;n!==void 0&&(i=n.label,o=n.target);let s=[];const l=FS((u,c,p)=>{var M;const{cva:f,isValidProperty:h}=V0(),g=t.__cva__?t:f(t),y=mW(e.__emotion_cva,g),x=F=>(A,j)=>F.includes(A)?!0:!(j!=null&&j.includes(A))&&!h(A);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=x(n.forwardProps));const m=(F,A)=>{const j=typeof e=="string"&&e.charCodeAt(0)>96?uW:cW,B=!(A!=null&&A.includes(F))&&!h(F);return j(F)&&B},v=dW(e,n,r)||m,b=w.useMemo(()=>Object.assign({},n.defaultProps,Op(u)),[u]),{props:S,styles:C}=oW(b,y,v);let k="",R=[C],O=S;if(S.theme==null){O={};for(let F in S)O[F]=S[F];O.theme=w.useContext(BS)}typeof S.className=="string"?k=u9(c.registered,R,S.className):S.className!=null&&(k=Kr(k,S.className));const N=jS(s.concat(R),c.registered,O);k=Kr(k,`${c.key}-${N.name}`),o!==void 0&&(k=Kr(k,o));const _=!v("as");let L=_&&S.as||a,I={};for(let F in S)if(!(_&&F==="as")){if(iW(F)){const A=F.replace("html","").toLowerCase();I[A]=S[F];continue}v(F)&&(I[F]=S[F])}I.className=k.trim(),I.ref=p;const P=n.forwardAsChild||((M=n.forwardProps)==null?void 0:M.includes("asChild"));if(S.asChild&&!P){const F=w.Children.only(S.children);L=F.type,I.children=null,Reflect.deleteProperty(I,"asChild"),I=Bd(I,F.props),I.ref=QG(p,eW(F))}return I.as&&P?(I.as=void 0,d.jsxs(w.Fragment,{children:[d.jsx(TA,{cache:c,serialized:N,isStringTag:typeof L=="string"}),d.jsx(L,{asChild:!0,...I,children:d.jsx(S.as,{children:I.children})})]})):d.jsxs(w.Fragment,{children:[d.jsx(TA,{cache:c,serialized:N,isStringTag:typeof L=="string"}),d.jsx(L,{...I})]})});return l.displayName=i!==void 0?i:`chakra(${typeof a=="string"?a:a.displayName||a.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=a,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${o}`}}),l},Ub=hW.bind(),$b=new Map,gW=new Proxy(Ub,{apply(e,t,n){return Ub(...n)},get(e,t){return $b.has(t)||$b.set(t,Ub(t)),$b.get(t)}}),Lr=gW,mW=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t);function bW(e){const{key:t,recipe:n}=e,r=V0();return w.useMemo(()=>{const a=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(a))},[t,n,r])}const yW=e=>e.charAt(0).toUpperCase()+e.slice(1);function rs(e){const{key:t,recipe:n}=e,r=yW(t||n.className||"Component"),[a,i]=ru({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function o(u){const{unstyled:c,...p}=u,f=bW({key:t,recipe:p.recipe||n}),[h,g]=w.useMemo(()=>f.splitVariantProps(p),[f,p]);return{styles:c?JV:f(h),className:f.className,props:g}}const s=(u,c)=>{const p=Lr(u,{},c),f=w.forwardRef((h,g)=>{const y=i(),x=w.useMemo(()=>Bd(y,h),[h,y]),{styles:m,className:v,props:b}=o(x);return d.jsx(p,{...b,ref:g,css:[m,x.css],className:Kr(v,x.className)})});return f.displayName=u.displayName||u.name,f};function l(){return a}return{withContext:s,PropsProvider:a,withPropsProvider:l,usePropsContext:i,useRecipeResult:o}}function vW(e){return e?Array.isArray(e)?e:[e]:[]}var g9=e=>e[0],m9=e=>e[e.length-1],xW=(e,t)=>e.indexOf(t)!==-1,b9=(e,...t)=>e.concat(t),HS=(e,...t)=>e.filter(n=>!t.includes(n)),Rg=(e,t)=>xW(e,t)?HS(e,t):b9(e,t);function y9(e,t,n={}){const{step:r=1,loop:a=!0}=n,i=t+r,o=e.length,s=o-1;return t===-1?r>0?0:s:i<0?a?s:0:i>=o?a?0:t>o?o:t:i}function SW(e,t,n={}){return e[y9(e,t,n)]}function wW(e,t,n={}){const{step:r=1,loop:a=!0}=n;return y9(e,t,{step:-r,loop:a})}function EW(e,t,n={}){return e[wW(e,t,n)]}var AA=e=>(e==null?void 0:e.constructor.name)==="Array",kW=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ku(e[n],t[n]))return!1;return!0},Ku=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(AA(e)&&AA(t))return kW(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let a=0;a<r;a++)if(!Reflect.has(e,n[a]))return!1;for(let a=0;a<r;a++){const i=n[a];if(!Ku(e[i],t[i]))return!1}return!0},TW=e=>Array.isArray(e),CW=e=>e===!0||e===!1,AW=e=>e!=null&&typeof e=="object",Hb=e=>AW(e)&&!TW(e),Eh=e=>typeof e=="string",Io=e=>typeof e=="function",_W=e=>e==null,Vb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),RW=Function.prototype.toString;RW.call(Object);var Gc=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,NW=e=>e(),IW=()=>{},Ng=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})},v9=(()=>{let e=0;return()=>(e++,e.toString(36))})();function gd(e,t,...n){var a;if(e in t){const i=t[e];return Io(i)?i(...n):i}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(a=Error.captureStackTrace)==null||a.call(Error,r,gd),r}var x9=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,x9)),t==null?void 0:t()}},{floor:S9,abs:_A,round:G0,min:OW,max:DW,pow:LW,sign:MW}=Math,ov=e=>Number.isNaN(e),Yi=e=>ov(e)?0:e,w9=(e,t)=>(e%t+t)%t,zW=(e,t)=>(e%t+t)%t,PW=(e,t)=>Yi(e)>=t,jW=(e,t)=>Yi(e)<=t,FW=(e,t,n)=>Yi(e)>=t&&Yi(e)<=n,BW=(e,t,n)=>G0((Yi(e)-t)/n)*n+t,Nr=(e,t,n)=>OW(DW(Yi(e),t),n),UW=(e,t,n)=>(Yi(e)-t)/(n-t),$W=(e,t,n,r)=>Nr(BW(e*(n-t)+t,t,r),t,n),RA=(e,t)=>{let n=e,r=t.toString(),a=r.indexOf("."),i=a>=0?r.length-a:0;if(i>0){let o=LW(10,i);n=G0(n*o)/o}return n},Gb=(e,t)=>typeof t=="number"?S9(e*t+.5)/t:G0(e),NA=(e,t,n,r)=>{const a=t!=null?Number(t):0,i=Number(n),o=(e-a)%r;let s=_A(o)*2>=r?e+MW(o)*(r-_A(o)):e-o;if(s=RA(s,r),!ov(a)&&s<a)s=a;else if(!ov(i)&&s>i){const l=S9((i-a)/r),u=a+l*r;s=l<=0||u<a?i:u}return RA(s,r)},Bt=(e,t=0,n=10)=>{const r=Math.pow(n,t);return G0(e*r)/r},IA=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},E9=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const a=10**Math.max(IA(e),IA(n));e=Math.round(e*a),n=Math.round(n*a),r=t==="+"?e+n:e-n,r/=a}return r},HW=(e,t)=>E9(Yi(e),"+",t),VW=(e,t)=>E9(Yi(e),"-",t);function W0(e){if(!GW(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const a=e[r];a!==void 0&&(n[r]=W0(a))}return n}var GW=e=>e&&typeof e=="object"&&e.constructor===Object;function Wb(e,t){const n=performance.now();let r;function a(i){r=requestAnimationFrame(a),i-n>=t&&e()}return r=requestAnimationFrame(a),()=>cancelAnimationFrame(r)}function Vd(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function WW(e,t){if(e==null)throw new Error(t())}function qW(e,t,n){let r=[];for(const a of t)e[a]==null&&r.push(a);if(r.length>0)throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`)}function YW(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Zu(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:a="Provider",errorMessage:i,defaultValue:o}=e,s=w.createContext(o);s.displayName=t;function l(){var c;const u=w.useContext(s);if(!u&&n){const p=new Error(i??YW(r,a));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,l),p}return u}return[s.Provider,l,s]}const[$we,q0]=Zu({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function XW(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var OA=e=>Math.max(0,Math.min(1,e)),KW=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),ZW=()=>{},Y0=e=>typeof e=="object"&&e!==null,k9=2147483647,Ss=e=>e?"":void 0,QW=1,JW=9,eq=11,yr=e=>Y0(e)&&e.nodeType===QW&&typeof e.nodeName=="string",T9=e=>Y0(e)&&e.nodeType===JW,tq=e=>Y0(e)&&e===e.window,C9=e=>yr(e)?e.localName||"":"#document";function nq(e){return["html","body","#document"].includes(C9(e))}var rq=e=>Y0(e)&&e.nodeType!==void 0,Tu=e=>rq(e)&&e.nodeType===eq&&"host"in e,aq=e=>yr(e)&&e.localName==="input",iq=e=>yr(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,oq=/(textarea|select)/;function sq(e){if(e==null||!yr(e))return!1;try{return aq(e)&&e.selectionStart!=null||oq.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Bs(e,t){var r;if(!e||!t||!yr(e)||!yr(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&Tu(n)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function Ua(e){return T9(e)?e:tq(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function lq(e){return Ua(e).documentElement}function sr(e){var t;return Tu(e)?sr(e.host):T9(e)?e.defaultView??window:yr(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function uq(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function cq(e){if(C9(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tu(e)&&e.host||lq(e);return Tu(t)?t.host:t}var qb=new WeakMap;function VS(e){return qb.has(e)||qb.set(e,sr(e).getComputedStyle(e)),qb.get(e)}var X0=()=>typeof document<"u";function dq(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function pq(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var GS=e=>X0()&&e.test(dq()),A9=e=>X0()&&e.test(pq()),fq=e=>X0()&&e.test(navigator.vendor),DA=()=>X0()&&!!navigator.maxTouchPoints,hq=()=>GS(/^iPhone/i),gq=()=>GS(/^iPad/i)||K0()&&navigator.maxTouchPoints>1,WS=()=>hq()||gq(),mq=()=>K0()||WS(),K0=()=>GS(/^Mac/i),_9=()=>mq()&&fq(/apple/i),bq=()=>A9(/Firefox/i),yq=()=>A9(/Android/i);function vq(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function qo(e){const t=vq(e);return(t==null?void 0:t[0])??e.target}function xq(e){return kq(e).isComposing||e.keyCode===229}function Sq(e){return e.mozInputSource===0&&e.isTrusted?!0:yq()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var wq=e=>e.button===2||K0()&&e.ctrlKey&&e.button===0,Eq=e=>"touches"in e&&e.touches.length>0;function kq(e){return e.nativeEvent??e}function Tq(e,t="client"){const n=Eq(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var In=(e,t,n,r)=>{const a=typeof e=="function"?e():e;return a==null||a.addEventListener(t,n,r),()=>{a==null||a.removeEventListener(t,n,r)}};function Cq(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,a=sr(e)[n].prototype;return Object.getOwnPropertyDescriptor(a,r)??{}}function Aq(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Z0(e,t,n="value"){var a;if(!e)return;const r=Aq(e);r&&((a=Cq(e,{type:r,property:n}).set)==null||a.call(e,t)),e.setAttribute(n,t)}function _q(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const a=sr(e);e instanceof a.HTMLInputElement&&(Z0(e,`${n}`),e.dispatchEvent(new a.Event("input",{bubbles:r})))}function Rq(e){return Nq(e)?e.form:e.closest("form")}function Nq(e){return e.matches("textarea, input, select, button")}function Iq(e,t){if(!e)return;const n=Rq(e),r=a=>{a.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function Oq(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=sr(n),a=new r.MutationObserver(()=>t(n.disabled));return a.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>a.disconnect()}function qS(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,a=[Iq(e,r),Oq(e,n)];return()=>a.forEach(i=>i==null?void 0:i())}var Dq=e=>yr(e)&&e.tagName==="IFRAME",Lq=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,R9="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";function YS(e){return!e||e.closest("[inert]")?!1:e.matches(R9)&&iq(e)}function N9(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(R9)).filter(Mq);return r.forEach((a,i)=>{if(Dq(a)&&a.contentDocument){const o=a.contentDocument.body,s=N9(o);r.splice(i,1,...s)}}),r.length,r}function Mq(e){return e!=null&&e.tabIndex>0?!0:YS(e)&&!Lq(e)}function XS(e){const{root:t,getInitialEl:n,filter:r,enabled:a=!0}=e;if(!a)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!i){const o=N9(t);i=r?o.filter(r)[0]:o[0]}return i||t||void 0}function I9(e){const t=new Set;function n(r){const a=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(a))}return n(()=>n(e)),function(){t.forEach(a=>a())}}function tt(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function zq(e,t,n){const r=tt(()=>{e.removeEventListener(t,a,!0),n()}),a=()=>{r(),n()};return e.addEventListener(t,a,{once:!0,capture:!0}),r}function Pq(e,t){if(!e)return;const{attributes:n,callback:r}=t,a=e.ownerDocument.defaultView||window,i=new a.MutationObserver(o=>{for(const s of o)s.type==="attributes"&&s.attributeName&&n.includes(s.attributeName)&&r(s)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function Q0(e,t){const{defer:n}=t,r=n?tt:i=>i(),a=[];return a.push(r(()=>{const i=typeof e=="function"?e():e;a.push(Pq(i,t))})),()=>{a.forEach(i=>i==null?void 0:i())}}function jq(e,t){const{callback:n}=t;if(!e)return;const r=e.ownerDocument.defaultView||window,a=new r.MutationObserver(n);return a.observe(e,{childList:!0,subtree:!0}),()=>a.disconnect()}function Fq(e,t){const n=tt,r=[];return r.push(n(()=>{const a=typeof e=="function"?e():e;r.push(jq(a,t))})),()=>{r.forEach(a=>a==null?void 0:a())}}function O9(e){const t=()=>e.click();bq()?zq(e,"keyup",t):queueMicrotask(t)}function Ig(e){const t=cq(e);return nq(t)?Ua(t).body:yr(t)&&KS(t)?t:Ig(t)}function D9(e,t=[]){const n=Ig(e),r=n===e.ownerDocument.body,a=sr(n);return r?t.concat(a,a.visualViewport||[],KS(n)?n:[]):t.concat(n,D9(n,[]))}var Bq=/auto|scroll|overlay|hidden|clip/;function KS(e){const t=sr(e),{overflow:n,overflowX:r,overflowY:a,display:i}=t.getComputedStyle(e);return Bq.test(n+a+r)&&!["inline","contents"].includes(i)}function Uq(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function ZS(e,t){const{rootEl:n,...r}=t||{};!e||!n||!KS(n)||!Uq(n)||e.scrollIntoView(r)}function L9(e,t){const{left:n,top:r,width:a,height:i}=t.getBoundingClientRect(),o={x:e.x-n,y:e.y-r},s={x:OA(o.x/a),y:OA(o.y/i)};function l(u={}){const{dir:c="ltr",orientation:p="horizontal",inverted:f}=u,h=typeof f=="object"?f.x:f,g=typeof f=="object"?f.y:f;return p==="horizontal"?c==="rtl"||h?1-s.x:s.x:g?1-s.y:s.y}return{offset:o,percent:s,getPercentValue:l}}function $q(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,a=()=>!!e.pointerLockElement;function i(){}function o(l){a(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const s=[In(e,"pointerlockchange",i,!1),In(e,"pointerlockerror",o,!1)];return()=>{s.forEach(l=>l()),e.exitPointerLock()}}var Hl="default",sv="",kh=new WeakMap;function Hq(e={}){const{target:t,doc:n}=e,r=n??document,a=r.documentElement;return WS()?(Hl==="default"&&(sv=a.style.webkitUserSelect,a.style.webkitUserSelect="none"),Hl="disabled"):t&&(kh.set(t,t.style.userSelect),t.style.userSelect="none"),()=>Vq({target:t,doc:r})}function Vq(e={}){const{target:t,doc:n}=e,a=(n??document).documentElement;if(WS()){if(Hl!=="disabled")return;Hl="restoring",setTimeout(()=>{I9(()=>{Hl==="restoring"&&(a.style.webkitUserSelect==="none"&&(a.style.webkitUserSelect=sv||""),sv="",Hl="default")})},300)}else if(t&&kh.has(t)){const i=kh.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),kh.delete(t)}}function M9(e={}){const{defer:t,target:n,...r}=e,a=t?tt:o=>o(),i=[];return i.push(a(()=>{const o=typeof n=="function"?n():n;i.push(Hq({...r,target:o}))})),()=>{i.forEach(o=>o==null?void 0:o())}}function Gq(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[In(e,"pointermove",o=>{const s=Tq(o),l=Math.sqrt(s.x**2+s.y**2),u=o.pointerType==="touch"?10:5;if(!(l<u)){if(o.pointerType==="mouse"&&o.button===0){r();return}n({point:s,event:o})}},!1),In(e,"pointerup",r,!1),In(e,"pointercancel",r,!1),In(e,"contextmenu",r,!1),M9({doc:e})];return()=>{i.forEach(o=>o())}}function Og(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Wq(e,t){return(e==null?void 0:e.querySelector(t))??null}var QS=e=>e.id;function qq(e,t,n=QS){return e.find(r=>n(r)===t)}function JS(e,t,n=QS){const r=qq(e,t,n);return r?e.indexOf(r):-1}function Yq(e,t,n=!0){let r=JS(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Xq(e,t,n=!0){let r=JS(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var Kq=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),Zq=e=>{var t;return Kq(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},Qq=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Jq(e,t,n,r=QS){const a=n?JS(e,n,r):-1;let i=n?KW(e,a):e;return t.length===1&&(i=i.filter(s=>r(s)!==n)),i.find(s=>Qq(Zq(s),t))}function z9(e,t){if(!e)return ZW;const n=Object.keys(t).reduce((r,a)=>(r[a]=e.style.getPropertyValue(a),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function eY(e,t){const{state:n,activeId:r,key:a,timeout:i=350,itemToId:o}=t,s=n.keysSoFar+a,u=s.length>1&&Array.from(s).every(g=>g===s[0])?s[0]:s;let c=e.slice();const p=Jq(c,u,r,o);function f(){clearTimeout(n.timer),n.timer=-1}function h(g){n.keysSoFar=g,f(),g!==""&&(n.timer=+setTimeout(()=>{h(""),f()},i))}return h(s),p}var ew=Object.assign(eY,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:tY});function tY(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var nY=1e3/60;function rY(e,t){const n=e();if(yr(n)&&n.isConnected)return t(n),()=>{};{const r=setInterval(()=>{const a=e();yr(a)&&a.isConnected&&(t(a),clearInterval(r))},nY);return()=>clearInterval(r)}}function aY(e,t){const n=[];return e==null||e.forEach(r=>{const a=rY(r,t);n.push(a)}),()=>{n.forEach(r=>r())}}var iY=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),oY=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,LA=e=>{const t={};let n;for(;n=oY.exec(e);)t[n[1]]=n[2];return t},sY=(e,t)=>{if(Eh(e)){if(Eh(t))return`${e};${t}`;e=LA(e)}else Eh(t)&&(t=LA(t));return Object.assign({},e??{},t??{})};function Qn(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Ng(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=iY(t[r],n[r]);continue}if(r==="style"){t[r]=sY(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function MA(e,t,n){let r=[],a;return i=>{const o=e(i);return(o.length!==r.length||o.some((l,u)=>!Ku(r[u],l)))&&(r=o,a=t(...o)),a}}function as(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function P9(){return{guards:as(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}var Cl=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Cl||{}),Yb="__init__";function lY(e){const t=()=>{var s;return((s=e.getRootNode)==null?void 0:s.call(e))??document},n=()=>Ua(t()),r=()=>n().defaultView??window,a=()=>uq(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:a,isActiveElement:s=>s===a(),getById:s=>t().getElementById(s)}}function tw(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const a=r(t);typeof a=="function"&&n.push(a)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function uY(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Xb=e=>{const t=w.memo(w.forwardRef((n,r)=>{const{asChild:a,children:i,...o}=n;if(!a)return w.createElement(e,{...o,ref:r},i);const s=w.Children.only(i);if(!w.isValidElement(s))return null;const l=uY(s);return w.cloneElement(s,{...Qn(o,s.props),ref:r?tw(r,l):l})}));return t.displayName=e.displayName||e.name,t},cY=()=>{const e=new Map;return new Proxy(Xb,{apply(t,n,r){return Xb(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Xb(r)),e.get(r)}})},ia=cY(),[Hwe,j9]=Zu({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),dY=()=>(e,t)=>t.reduce((n,r)=>{const[a,i]=n,o=r;return i[o]!==void 0&&(a[o]=i[o]),delete i[o],[a,i]},[{},{...e}]),F9=e=>dY()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function pY(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var Xe=()=>e=>Array.from(new Set(e));function fY(e,t){const{state:n,send:r,context:a}=e,i=n.matches("mounted","unmountSuspended");return{skip:!a.get("initial"),present:i,setNode(o){o&&r({type:"NODE.SET",node:o})},unmount(){r({type:"UNMOUNT"})}}}var hY={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:n}){e([()=>n("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",VS(t.node))},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const a=r("present");if(a)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!a&&(i==null?void 0:i.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});tt(()=>{var s,l;const o=Ef(t.get("styles"));e.set("unmountAnimationName",o),o==="none"||o===e.get("prevAnimationName")||((s=t.get("styles"))==null?void 0:s.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{tt(()=>{e.set("prevAnimationName",Ef(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const a=s=>{var u,c;(((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])??s.target)===r&&e.set("prevAnimationName",Ef(t.get("styles")))},i=s=>{const l=Ef(t.get("styles"));qo(s)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",a),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i);const o=z9(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i),I9(()=>o())}}}}};function Ef(e){return(e==null?void 0:e.animationName)||"none"}Xe()(["onExitComplete","present","immediate"]);var B9=typeof globalThis.document<"u"?w.useLayoutEffect:w.useEffect;function Dg(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=w.useState(t),[a,i]=w.useState(r),o=e().value!==void 0,s=w.useRef(a);s.current=o?e().value:a;const l=w.useRef(s.current);B9(()=>{l.current=s.current},[a,e().value]);const u=p=>{var g,y;const f=l.current,h=Io(p)?p(f):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:h,prev:f}),o||i(h),n(h,f)||(y=(g=e()).onChange)==null||y.call(g,h,f)};function c(){return o?e().value:a}return{initial:r,ref:s,get:c,set(p){(e().sync?Ks.flushSync:NW)(()=>u(p))},invoke(p,f){var h,g;(g=(h=e()).onChange)==null||g.call(h,p,f)},hash(p){var f,h;return((h=(f=e()).hash)==null?void 0:h.call(f,p))??String(p)}}}Dg.cleanup=e=>{w.useEffect(()=>e,[])};Dg.ref=e=>{const t=w.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function gY(e){const t=w.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var mY=(e,t)=>{const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(a=>typeof a=="function"?a():a)]),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function J0(e,t={}){var L,I,P,M;const n=w.useMemo(()=>{const{id:F,ids:A,getRootNode:j}=t;return lY({id:F,ids:A,getRootNode:j})},[t]),r=(...F)=>{e.debug&&console.log(...F)},a=((L=e.props)==null?void 0:L.call(e,{props:W0(t),scope:n}))??t,i=bY(a),o=(I=e.context)==null?void 0:I.call(e,{prop:i,bindable:Dg,scope:n,flush:zA,getContext(){return l},getComputed(){return C},getRefs(){return y}}),s=U9(o),l={get(F){var A;return(A=s.current)==null?void 0:A[F].ref.current},set(F,A){var j;(j=s.current)==null||j[F].set(A)},initial(F){var A;return(A=s.current)==null?void 0:A[F].initial},hash(F){var j,B;const A=(j=s.current)==null?void 0:j[F].get();return(B=s.current)==null?void 0:B[F].hash(A)}},u=w.useRef(new Map),c=w.useRef(null),p=w.useRef(null),f=w.useRef({type:""}),h=()=>({...f.current,current(){return f.current},previous(){return p.current}}),g=()=>({...k,matches(...F){return F.includes(k.ref.current)},hasTag(F){var A,j;return!!((j=(A=e.states[k.ref.current])==null?void 0:A.tags)!=null&&j.includes(F))}}),y=gY(((P=e.refs)==null?void 0:P.call(e,{prop:i,context:l}))??{}),x=()=>({state:g(),context:l,event:h(),prop:i,send:_,action:m,guard:v,track:mY,refs:y,computed:C,flush:zA,scope:n,choose:S}),m=F=>{const A=Io(F)?F(x()):F;if(!A)return;const j=A.map(B=>{var D,Z;const V=(Z=(D=e.implementations)==null?void 0:D.actions)==null?void 0:Z[B];return V||Vd(`[zag-js] No implementation found for action "${JSON.stringify(B)}"`),V});for(const B of j)B==null||B(x())},v=F=>{var A,j;return Io(F)?F(x()):(j=(A=e.implementations)==null?void 0:A.guards)==null?void 0:j[F](x())},b=F=>{const A=Io(F)?F(x()):F;if(!A)return;const j=A.map(V=>{var Z,J;const D=(J=(Z=e.implementations)==null?void 0:Z.effects)==null?void 0:J[V];return D||Vd(`[zag-js] No implementation found for effect "${JSON.stringify(V)}"`),D}),B=[];for(const V of j){const D=V==null?void 0:V(x());D&&B.push(D)}return()=>B.forEach(V=>V==null?void 0:V())},S=F=>vW(F).find(A=>{let j=!A.guard;return Eh(A.guard)?j=!!v(A.guard):Io(A.guard)&&(j=A.guard(x())),j}),C=F=>{WW(e.computed,()=>"[zag-js] No computed object found on machine");const A=e.computed[F];return A({context:l,event:h(),prop:i,refs:y,scope:n,computed:C})},k=Dg(()=>({defaultValue:e.initialState({prop:i}),onChange(F,A){var B,V,D,Z;if(A){const J=u.current.get(A);J==null||J(),u.current.delete(A)}A&&m((B=e.states[A])==null?void 0:B.exit),m((V=c.current)==null?void 0:V.actions);const j=b((D=e.states[F])==null?void 0:D.effects);if(j&&u.current.set(F,j),A===Yb){m(e.entry);const J=b(e.effects);J&&u.current.set(Yb,J)}m((Z=e.states[F])==null?void 0:Z.entry)}})),R=w.useRef(void 0),O=w.useRef(Cl.NotStarted);B9(()=>{queueMicrotask(()=>{const j=O.current===Cl.Started;O.current=Cl.Started,r(j?"rehydrating...":"initializing...");const B=R.current??k.initial;k.invoke(B,j?k.get():Yb)});const F=u.current,A=k.ref.current;return()=>{r("unmounting..."),R.current=A,O.current=Cl.Stopped,F.forEach(j=>j==null?void 0:j()),u.current=new Map,c.current=null,queueMicrotask(()=>{m(e.exit)})}},[]);const N=()=>"ref"in k?k.ref.current:k.get(),_=F=>{queueMicrotask(()=>{var Z,J;if(O.current!==Cl.Started)return;p.current=f.current,f.current=F,r("send",F);let A=N();const j=((Z=e.states[A].on)==null?void 0:Z[F.type])??((J=e.on)==null?void 0:J[F.type]),B=S(j);if(!B)return;c.current=B;const V=B.target??A;r("transition",B);const D=V!==A;D?Ks.flushSync(()=>k.set(V)):B.reenter&&!D?k.invoke(A,A):m(B.actions??[])})};return(M=e.watch)==null||M.call(e,x()),{state:g(),send:_,context:l,prop:i,scope:n,refs:y,computed:C,event:h(),getStatus:()=>O.current}}function U9(e){const t=w.useRef(e);return t.current=e,t}function bY(e){const t=U9(e);return function(r){return t.current[r]}}function zA(e){queueMicrotask(()=>{Ks.flushSync(()=>e())})}var nw=pY(e=>e);function yY(e,t={}){const{sync:n=!1}=t,r=vY(e);return w.useCallback((...a)=>{var i;return n?queueMicrotask(()=>{var o;return(o=r.current)==null?void 0:o.call(r,...a)}):(i=r.current)==null?void 0:i.call(r,...a)},[n,r])}function vY(e){const t=w.useRef(e);return t.current=e,t}const $9=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:a=!1,...i}=e,o=w.useRef(!1),s={...i,present:r,onExitComplete:yY(e.onExitComplete)},l=J0(hY,s),u=fY(l);u.present&&(o.current=!0);const c=!u.present&&!o.current&&t||n&&!u.present&&o.current,p=()=>({"data-state":u.skip&&a?void 0:r?"open":"closed",hidden:!u.present});return{ref:u.setNode,getPresenceProps:p,present:u.present,unmounted:c}},[H9,V9]=Zu({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var Ve=(e,t=[])=>({parts:(...n)=>{if(xY(t))return Ve(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>Ve(e,[...t,...n]),rename:n=>Ve(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${gl(e)}"][data-part="${gl(r)}"]`,`& [data-scope="${gl(e)}"][data-part="${gl(r)}"]`].join(", "),attrs:{"data-scope":gl(e),"data-part":gl(r)}}}),{})}),gl=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),xY=e=>e.length===0,G9=Ve("collapsible").parts("root","trigger","content","indicator");G9.build();Xe()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var SY=Object.defineProperty,wY=(e,t,n)=>t in e?SY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rw=(e,t,n)=>wY(e,t+"",n),EY=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},aw=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(t){if(t in this)return this[t];throw new Error("Unsupported color channel: "+t)}getChannelValuePercent(t,n){const r=n??this.getChannelValue(t),{minValue:a,maxValue:i}=this.getChannelRange(t);return UW(r,a,i)}getChannelPercentValue(t,n){const{minValue:r,maxValue:a,step:i}=this.getChannelRange(t),o=$W(n,r,a,i);return NA(o,r,a,i)}withChannelValue(t,n){const{minValue:r,maxValue:a}=this.getChannelRange(t);if(t in this){let i=this.clone();return i[t]=Nr(n,r,a),i}throw new Error("Unsupported color channel: "+t)}getColorAxes(t){let{xChannel:n,yChannel:r}=t,a=n||this.getChannels().find(s=>s!==r),i=r||this.getChannels().find(s=>s!==a),o=this.getChannels().find(s=>s!==a&&s!==i);return{xChannel:a,yChannel:i,zChannel:o}}incrementChannel(t,n){const{minValue:r,maxValue:a,step:i}=this.getChannelRange(t),o=NA(Nr(this.getChannelValue(t)+n,r,a),r,a,i);return this.withChannelValue(t,o)}decrementChannel(t,n){return this.incrementChannel(t,-n)}isEqual(t){return EY(this.toJSON(),t.toJSON())&&this.getChannelValue("alpha")===t.getChannelValue("alpha")}},W9=class Th extends aw{constructor(t,n,r,a){super(),this.red=t,this.green=n,this.blue=r,this.alpha=a}static parse(t){let n=[];if(/^#[\da-f]+$/i.test(t)&&[4,5,7,9].includes(t.length)){const a=(t.length<6?t.replace(/[^#]/gi,"$&$&"):t).slice(1).split("");for(;a.length>0;)n.push(parseInt(a.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(/^rgba?\((.*)\)$/);return r!=null&&r[1]&&(n=r[1].split(",").map(a=>Number(a.trim())).map((a,i)=>Nr(a,0,i<3?255:1))),n.length<3?void 0:new Th(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a,s=i===0?0:o/i;let l=0;if(o!==0){switch(i){case t:l=(n-r)/o+(n<r?6:0);break;case n:l=(r-t)/o+2;break;case r:l=(t-n)/o+4;break}l/=6}return new sw(Bt(l*360,2),Bt(s*100,2),Bt(i*100,2),Bt(this.alpha,2))}toHSL(){const t=this.red/255,n=this.green/255,r=this.blue/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=(i+a)/2,s=i-a;let l=-1,u=-1;if(s===0)l=u=0;else{switch(u=s/(o<.5?i+a:2-i-a),i){case t:l=(n-r)/s+(n<r?6:0);break;case n:l=(r-t)/s+2;break;case r:l=(t-n)/s+4;break}l/=6}return new ow(Bt(l*360,2),Bt(u*100,2),Bt(o*100,2),Bt(this.alpha,2))}clone(){return new Th(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),a=this.getChannelValue(t);return new Intl.NumberFormat(n,r).format(a)}getChannelRange(t){switch(t){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return Th.colorChannels}};rw(W9,"colorChannels",["red","green","blue"]);var iw=W9,kY=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,q9=class Ch extends aw{constructor(t,n,r,a){super(),this.hue=t,this.saturation=n,this.lightness=r,this.alpha=a}static parse(t){let n;if(n=t.match(kY)){const[r,a,i,o]=(n[1]??n[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new Ch(w9(r,360),Nr(a,0,100),Nr(i,0,100),Nr(o??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Bt(this.saturation,2)}%, ${Bt(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Bt(this.saturation,2)}%, ${Bt(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new sw(Bt(this.hue,2),Bt(t*100,2),Bt(r*100,2),Bt(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,a=n*Math.min(r,1-r),i=(o,s=(o+t/30)%12)=>r-a*Math.max(Math.min(s-3,9-s,1),-1);return new iw(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),Bt(this.alpha,2))}clone(){return new Ch(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),a=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(a/=100),new Intl.NumberFormat(n,r).format(a)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Ch.colorChannels}};rw(q9,"colorChannels",["hue","saturation","lightness"]);var ow=q9,TY=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Y9=class Ah extends aw{constructor(t,n,r,a){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=a}static parse(t){let n;if(n=t.match(TY)){const[r,a,i,o]=(n[1]??n[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new Ah(w9(r,360),Nr(a,0,100),Nr(i,0,100),Nr(o??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${Bt(this.saturation,2)}%, ${Bt(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Bt(this.saturation,2)}%, ${Bt(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new ow(Bt(this.hue,2),Bt(t*100,2),Bt(r*100,2),Bt(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,a=(i,o=(i+t/60)%6)=>r-n*r*Math.max(Math.min(o,4-o,1),0);return new iw(Math.round(a(5)*255),Math.round(a(3)*255),Math.round(a(1)*255),Bt(this.alpha,2))}clone(){return new Ah(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),a=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(a/=100),new Intl.NumberFormat(n,r).format(a)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Ah.colorChannels}};rw(Y9,"colorChannels",["hue","saturation","brightness"]);var sw=Y9,CY="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",AY=e=>{const t=new Map,n=e.split(",");for(let r=0;r<n.length;r++){const[a,i]=n[r].split(":");t.set(a,`#${i}`),a.includes("gray")&&t.set(a.replace("gray","grey"),`#${i}`)}return t},PA=AY(CY),Lg=e=>{var n;if(PA.has(e))return Lg(PA.get(e));const t=iw.parse(e)||sw.parse(e)||ow.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,Lg),r}return t};const _Y=["top","right","bottom","left"],Yo=Math.min,Hr=Math.max,Mg=Math.round,kf=Math.floor,ri=e=>({x:e,y:e}),RY={left:"right",right:"left",bottom:"top",top:"bottom"},NY={start:"end",end:"start"};function lv(e,t,n){return Hr(e,Yo(t,n))}function Xi(e,t){return typeof e=="function"?e(t):e}function Ki(e){return e.split("-")[0]}function Qu(e){return e.split("-")[1]}function lw(e){return e==="x"?"y":"x"}function uw(e){return e==="y"?"height":"width"}function Za(e){return["top","bottom"].includes(Ki(e))?"y":"x"}function cw(e){return lw(Za(e))}function IY(e,t,n){n===void 0&&(n=!1);const r=Qu(e),a=cw(e),i=uw(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=zg(o)),[o,zg(o)]}function OY(e){const t=zg(e);return[uv(e),t,uv(t)]}function uv(e){return e.replace(/start|end/g,t=>NY[t])}function DY(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}function LY(e,t,n,r){const a=Qu(e);let i=DY(Ki(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(uv)))),i}function zg(e){return e.replace(/left|right|bottom|top/g,t=>RY[t])}function MY(e){return{top:0,right:0,bottom:0,left:0,...e}}function X9(e){return typeof e!="number"?MY(e):{top:e,right:e,bottom:e,left:e}}function Pg(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function jA(e,t,n){let{reference:r,floating:a}=e;const i=Za(t),o=cw(t),s=uw(o),l=Ki(t),u=i==="y",c=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,f=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-a.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-a.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Qu(t)){case"start":h[o]-=f*(n&&u?-1:1);break;case"end":h[o]+=f*(n&&u?-1:1);break}return h}const zY=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:p}=jA(u,r,l),f=r,h={},g=0;for(let y=0;y<s.length;y++){const{name:x,fn:m}=s[y],{x:v,y:b,data:S,reset:C}=await m({x:c,y:p,initialPlacement:r,placement:f,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=v??c,p=b??p,h={...h,[x]:{...h[x],...S}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:c,y:p}=jA(u,f,l)),y=-1)}return{x:c,y:p,placement:f,strategy:a,middlewareData:h}};async function Gd(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=Xi(t,e),g=X9(h),x=s[f?p==="floating"?"reference":"floating":p],m=Pg(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=p==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=Pg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(m.top-C.top+g.top)/S.y,bottom:(C.bottom-m.bottom+g.bottom)/S.y,left:(m.left-C.left+g.left)/S.x,right:(C.right-m.right+g.right)/S.x}}const PY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Xi(e,t)||{};if(u==null)return{};const p=X9(c),f={x:n,y:r},h=cw(a),g=uw(h),y=await o.getDimensions(u),x=h==="y",m=x?"top":"left",v=x?"bottom":"right",b=x?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[h]-f[h]-i.floating[g],C=f[h]-i.reference[h],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let R=k?k[b]:0;(!R||!await(o.isElement==null?void 0:o.isElement(k)))&&(R=s.floating[b]||i.floating[g]);const O=S/2-C/2,N=R/2-y[g]/2-1,_=Yo(p[m],N),L=Yo(p[v],N),I=_,P=R-y[g]-L,M=R/2-y[g]/2+O,F=lv(I,M,P),A=!l.arrow&&Qu(a)!=null&&M!==F&&i.reference[g]/2-(M<I?_:L)-y[g]/2<0,j=A?M<I?M-I:M-P:0;return{[h]:f[h]+j,data:{[h]:F,centerOffset:M-F-j,...A&&{alignmentOffset:j}},reset:A}}}),jY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=Xi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Ki(a),v=Za(s),b=Ki(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(b||!y?[zg(s)]:OY(s)),k=g!=="none";!f&&k&&C.push(...LY(s,y,g,S));const R=[s,...C],O=await Gd(t,x),N=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&N.push(O[m]),p){const M=IY(a,o,S);N.push(O[M[0]],O[M[1]])}if(_=[..._,{placement:a,overflows:N}],!N.every(M=>M<=0)){var L,I;const M=(((L=i.flip)==null?void 0:L.index)||0)+1,F=R[M];if(F&&(!(p==="alignment"?v!==Za(F):!1)||_.every(B=>B.overflows[0]>0&&Za(B.placement)===v)))return{data:{index:M,overflows:_},reset:{placement:F}};let A=(I=_.filter(j=>j.overflows[0]<=0).sort((j,B)=>j.overflows[1]-B.overflows[1])[0])==null?void 0:I.placement;if(!A)switch(h){case"bestFit":{var P;const j=(P=_.filter(B=>{if(k){const V=Za(B.placement);return V===v||V==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(V=>V>0).reduce((V,D)=>V+D,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:P[0];j&&(A=j);break}case"initialPlacement":A=s;break}if(a!==A)return{reset:{placement:A}}}return{}}}};function FA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function BA(e){return _Y.some(t=>e[t]>=0)}const FY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Xi(e,t);switch(r){case"referenceHidden":{const i=await Gd(t,{...a,elementContext:"reference"}),o=FA(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:BA(o)}}}case"escaped":{const i=await Gd(t,{...a,altBoundary:!0}),o=FA(i,n.floating);return{data:{escapedOffsets:o,escaped:BA(o)}}}default:return{}}}}};async function BY(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Ki(n),s=Qu(n),l=Za(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,p=Xi(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const UY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await BY(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},$Y=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:x=>{let{x:m,y:v}=x;return{x:m,y:v}}},...l}=Xi(e,t),u={x:n,y:r},c=await Gd(t,l),p=Za(Ki(a)),f=lw(p);let h=u[f],g=u[p];if(i){const x=f==="y"?"top":"left",m=f==="y"?"bottom":"right",v=h+c[x],b=h-c[m];h=lv(v,h,b)}if(o){const x=p==="y"?"top":"left",m=p==="y"?"bottom":"right",v=g+c[x],b=g-c[m];g=lv(v,g,b)}const y=s.fn({...t,[f]:h,[p]:g});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:i,[p]:o}}}}}},HY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Xi(e,t),c={x:n,y:r},p=Za(a),f=lw(p);let h=c[f],g=c[p];const y=Xi(s,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const b=f==="y"?"height":"width",S=i.reference[f]-i.floating[b]+x.mainAxis,C=i.reference[f]+i.reference[b]-x.mainAxis;h<S?h=S:h>C&&(h=C)}if(u){var m,v;const b=f==="y"?"width":"height",S=["top","left"].includes(Ki(a)),C=i.reference[p]-i.floating[b]+(S&&((m=o.offset)==null?void 0:m[p])||0)+(S?0:x.crossAxis),k=i.reference[p]+i.reference[b]+(S?0:((v=o.offset)==null?void 0:v[p])||0)-(S?x.crossAxis:0);g<C?g=C:g>k&&(g=k)}return{[f]:h,[p]:g}}}},VY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...u}=Xi(e,t),c=await Gd(t,u),p=Ki(a),f=Qu(a),h=Za(a)==="y",{width:g,height:y}=i.floating;let x,m;p==="top"||p==="bottom"?(x=p,m=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=p,x=f==="end"?"top":"bottom");const v=y-c.top-c.bottom,b=g-c.left-c.right,S=Yo(y-c[x],v),C=Yo(g-c[m],b),k=!t.middlewareData.shift;let R=S,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=v),k&&!f){const _=Hr(c.left,0),L=Hr(c.right,0),I=Hr(c.top,0),P=Hr(c.bottom,0);h?O=g-2*(_!==0||L!==0?_+L:Hr(c.left,c.right)):R=y-2*(I!==0||P!==0?I+P:Hr(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:R});const N=await o.getDimensions(s.floating);return g!==N.width||y!==N.height?{reset:{rects:!0}}:{}}}};function em(){return typeof window<"u"}function Ju(e){return K9(e)?(e.nodeName||"").toLowerCase():"#document"}function Qr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hi(e){var t;return(t=(K9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function K9(e){return em()?e instanceof Node||e instanceof Qr(e).Node:!1}function Pa(e){return em()?e instanceof Element||e instanceof Qr(e).Element:!1}function si(e){return em()?e instanceof HTMLElement||e instanceof Qr(e).HTMLElement:!1}function UA(e){return!em()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qr(e).ShadowRoot}function Dp(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=ja(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function GY(e){return["table","td","th"].includes(Ju(e))}function tm(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function dw(e){const t=pw(),n=Pa(e)?ja(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function WY(e){let t=Xo(e);for(;si(t)&&!Cu(t);){if(dw(t))return t;if(tm(t))return null;t=Xo(t)}return null}function pw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cu(e){return["html","body","#document"].includes(Ju(e))}function ja(e){return Qr(e).getComputedStyle(e)}function nm(e){return Pa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xo(e){if(Ju(e)==="html")return e;const t=e.assignedSlot||e.parentNode||UA(e)&&e.host||hi(e);return UA(t)?t.host:t}function Z9(e){const t=Xo(e);return Cu(t)?e.ownerDocument?e.ownerDocument.body:e.body:si(t)&&Dp(t)?t:Z9(t)}function Wd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Z9(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Qr(a);if(i){const s=cv(o);return t.concat(o,o.visualViewport||[],Dp(a)?a:[],s&&n?Wd(s):[])}return t.concat(a,Wd(a,[],n))}function cv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q9(e){const t=ja(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=si(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=Mg(n)!==i||Mg(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function fw(e){return Pa(e)?e:e.contextElement}function ou(e){const t=fw(e);if(!si(t))return ri(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=Q9(t);let o=(i?Mg(n.width):n.width)/r,s=(i?Mg(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const qY=ri(0);function J9(e){const t=Qr(e);return!pw()||!t.visualViewport?qY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function YY(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qr(e)?!1:t}function Us(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=fw(e);let o=ri(1);t&&(r?Pa(r)&&(o=ou(r)):o=ou(e));const s=YY(i,n,r)?J9(i):ri(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,c=a.width/o.x,p=a.height/o.y;if(i){const f=Qr(i),h=r&&Pa(r)?Qr(r):r;let g=f,y=cv(g);for(;y&&r&&h!==g;){const x=ou(y),m=y.getBoundingClientRect(),v=ja(y),b=m.left+(y.clientLeft+parseFloat(v.paddingLeft))*x.x,S=m.top+(y.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,p*=x.y,l+=b,u+=S,g=Qr(y),y=cv(g)}}return Pg({width:c,height:p,x:l,y:u})}function hw(e,t){const n=nm(e).scrollLeft;return t?t.left+n:Us(hi(e)).left+n}function eD(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:hw(e,r)),i=r.top+t.scrollTop;return{x:a,y:i}}function XY(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=hi(r),s=t?tm(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ri(1);const c=ri(0),p=si(r);if((p||!p&&!i)&&((Ju(r)!=="body"||Dp(o))&&(l=nm(r)),si(r))){const h=Us(r);u=ou(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const f=o&&!p&&!i?eD(o,l,!0):ri(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function KY(e){return Array.from(e.getClientRects())}function ZY(e){const t=hi(e),n=nm(e),r=e.ownerDocument.body,a=Hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+hw(e);const s=-n.scrollTop;return ja(r).direction==="rtl"&&(o+=Hr(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function QY(e,t){const n=Qr(e),r=hi(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=pw();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function JY(e,t){const n=Us(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=si(e)?ou(e):ri(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function $A(e,t,n){let r;if(t==="viewport")r=QY(e,n);else if(t==="document")r=ZY(hi(e));else if(Pa(t))r=JY(t,n);else{const a=J9(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Pg(r)}function tD(e,t){const n=Xo(e);return n===t||!Pa(n)||Cu(n)?!1:ja(n).position==="fixed"||tD(n,t)}function eX(e,t){const n=t.get(e);if(n)return n;let r=Wd(e,[],!1).filter(s=>Pa(s)&&Ju(s)!=="body"),a=null;const i=ja(e).position==="fixed";let o=i?Xo(e):e;for(;Pa(o)&&!Cu(o);){const s=ja(o),l=dw(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Dp(o)&&!l&&tD(e,o))?r=r.filter(c=>c!==o):a=s,o=Xo(o)}return t.set(e,r),r}function tX(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?tm(t)?[]:eX(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const p=$A(t,c,a);return u.top=Hr(p.top,u.top),u.right=Yo(p.right,u.right),u.bottom=Yo(p.bottom,u.bottom),u.left=Hr(p.left,u.left),u},$A(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nX(e){const{width:t,height:n}=Q9(e);return{width:t,height:n}}function rX(e,t,n){const r=si(t),a=hi(t),i=n==="fixed",o=Us(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ri(0);function u(){l.x=hw(a)}if(r||!r&&!i)if((Ju(t)!=="body"||Dp(a))&&(s=nm(t)),r){const h=Us(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else a&&u();i&&!r&&a&&u();const c=a&&!r&&!i?eD(a,s):ri(0),p=o.left+s.scrollLeft-l.x-c.x,f=o.top+s.scrollTop-l.y-c.y;return{x:p,y:f,width:o.width,height:o.height}}function Kb(e){return ja(e).position==="static"}function HA(e,t){if(!si(e)||ja(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return hi(e)===n&&(n=n.ownerDocument.body),n}function nD(e,t){const n=Qr(e);if(tm(e))return n;if(!si(e)){let a=Xo(e);for(;a&&!Cu(a);){if(Pa(a)&&!Kb(a))return a;a=Xo(a)}return n}let r=HA(e,t);for(;r&&GY(r)&&Kb(r);)r=HA(r,t);return r&&Cu(r)&&Kb(r)&&!dw(r)?n:r||WY(e)||n}const aX=async function(e){const t=this.getOffsetParent||nD,n=this.getDimensions,r=await n(e.floating);return{reference:rX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function iX(e){return ja(e).direction==="rtl"}const oX={convertOffsetParentRelativeRectToViewportRelativeRect:XY,getDocumentElement:hi,getClippingRect:tX,getOffsetParent:nD,getElementRects:aX,getClientRects:KY,getDimensions:nX,getScale:ou,isElement:Pa,isRTL:iX};function rD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sX(e,t){let n=null,r;const a=hi(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:p,width:f,height:h}=u;if(s||t(),!f||!h)return;const g=kf(p),y=kf(a.clientWidth-(c+f)),x=kf(a.clientHeight-(p+h)),m=kf(c),b={rootMargin:-g+"px "+-y+"px "+-x+"px "+-m+"px",threshold:Hr(0,Yo(1,l))||1};let S=!0;function C(k){const R=k[0].intersectionRatio;if(R!==l){if(!S)return o();R?o(!1,R):r=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!rD(u,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return o(!0),i}function lX(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=fw(e),c=a||i?[...u?Wd(u):[],...Wd(t)]:[];c.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const p=u&&s?sX(u,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,y=l?Us(e):null;l&&x();function x(){const m=Us(e);y&&!rD(y,m)&&n(),y=m,g=requestAnimationFrame(x)}return n(),()=>{var m;c.forEach(v=>{a&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),p==null||p(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const uX=UY,cX=$Y,dX=jY,pX=VY,fX=FY,hX=PY,gX=HY,mX=(e,t,n)=>{const r=new Map,a={platform:oX,...n},i={...a.platform,_c:r};return zY(e,t,{...a,platform:i})};function VA(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const a={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...a,toJSON:()=>a}}function bX(e){if(!e)return VA();const{x:t,y:n,width:r,height:a}=e;return VA(t,n,r,a)}function yX(e,t){return{contextElement:yr(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?bX(r):n.getBoundingClientRect()}}}var Ac=e=>({variable:e,reference:`var(${e})`}),Ri={arrowSize:Ac("--arrow-size"),arrowSizeHalf:Ac("--arrow-size-half"),arrowBg:Ac("--arrow-background"),transformOrigin:Ac("--transform-origin"),arrowOffset:Ac("--arrow-offset")},vX=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),xX={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:n}){const{arrow:r}=n,a=vX(r)[e],{floating:i}=t;return i.style.setProperty(Ri.transformOrigin.variable,a),{data:{transformOrigin:a}}}},SX={name:"rects",fn({rects:e}){return{data:e}}},wX=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:a}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:a!=null?`${a}px`:"",[i]:`calc(100% + ${Ri.arrowOffset.reference})`}),{}}}};function EX(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function kX(e){return e.split("-")[0]}var TX={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function GA(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function aD(e){return Gc(e.boundary)}function CX(e,t){if(e)return hX({element:e,padding:t.arrowPadding})}function AX(e,t){if(!_W(t.offset??t.gutter))return uX(({placement:n})=>{var u,c;const r=((e==null?void 0:e.clientHeight)||0)/2,a=((u=t.offset)==null?void 0:u.mainAxis)??t.gutter,i=typeof a=="number"?a+r:a??r,{hasAlign:o}=EX(n),s=o?void 0:t.shift,l=((c=t.offset)==null?void 0:c.crossAxis)??s;return W0({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function _X(e){if(e.flip)return dX({boundary:aD(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function RX(e){if(!(!e.slide&&!e.overlap))return cX({boundary:aD(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:gX()})}function NX(e){return pX({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:a}){const i=t.floating,o=Math.round(n.reference.width);a=Math.floor(a),r=Math.floor(r),i.style.setProperty("--reference-width",`${o}px`),i.style.setProperty("--available-width",`${a}px`),i.style.setProperty("--available-height",`${r}px`)}})}function IX(e){var t;if(e.hideWhenDetached)return fX({strategy:"referenceHidden",boundary:((t=e.boundary)==null?void 0:t.call(e))??"clippingAncestors"})}function OX(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function DX(e,t,n={}){const r=yX(e,n.getAnchorRect);if(!t||!r)return;const a=Object.assign({},TX,n),i=t.querySelector("[data-part=arrow]"),o=[AX(i,a),_X(a),RX(a),CX(i,a),wX(i),xX,NX(a),IX(a),SX],{placement:s,strategy:l,onComplete:u,onPositioned:c}=a,p=async()=>{var S;if(!r||!t)return;const y=await mX(r,t,{placement:s,middleware:o,strategy:l});u==null||u(y),c==null||c({placed:!0});const x=sr(t),m=GA(x,y.x),v=GA(x,y.y);t.style.setProperty("--x",`${m}px`),t.style.setProperty("--y",`${v}px`),a.hideWhenDetached&&(((S=y.middlewareData.hide)==null?void 0:S.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const b=t.firstElementChild;if(b){const C=VS(b);t.style.setProperty("--z-index",C.zIndex)}},f=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:p}),c==null||c({placed:!0})):await p()},h=OX(a.listeners),g=a.listeners?lX(r,t,f,h):IW;return f(),()=>{g==null||g(),c==null||c({placed:!1})}}function Fa(e,t,n={}){const{defer:r,...a}=n,i=r?tt:s=>s(),o=[];return o.push(i(()=>{const s=typeof e=="function"?e():e,l=typeof t=="function"?t():t;o.push(DX(s,l,a))})),()=>{o.forEach(s=>s==null?void 0:s())}}var LX={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function MX(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:a="absolute"}=e;return{arrow:{position:"absolute",width:Ri.arrowSize.reference,height:Ri.arrowSize.reference,[Ri.arrowSizeHalf.variable]:`calc(${Ri.arrowSize.reference} / 2)`,[Ri.arrowOffset.variable]:`calc(${Ri.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?LX[t.split("-")[0]]:void 0,background:Ri.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:a,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function zX(e){const t={each(n){var r;for(let a=0;a<((r=e.frames)==null?void 0:r.length);a+=1){const i=e.frames[a];i&&n(i)}},addEventListener(n,r,a){return t.each(i=>{try{i.document.addEventListener(n,r,a)}catch{}}),()=>{try{t.removeEventListener(n,r,a)}catch{}}},removeEventListener(n,r,a){t.each(i=>{try{i.document.removeEventListener(n,r,a)}catch{}})}};return t}function PX(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,a)=>{try{t==null||t.addEventListener(n,r,a)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,a)}catch{}}},removeEventListener:(n,r,a)=>{try{t==null||t.removeEventListener(n,r,a)}catch{}}}}var WA="pointerdown.outside",qA="focus.outside";function jX(e){for(const t of e)if(yr(t)&&YS(t))return!0;return!1}var iD=e=>"clientY"in e;function FX(e,t){if(!iD(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function BX(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function YA(e,t){if(!t||!iD(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,a=t.scrollWidth>t.clientWidth,i=a&&e.clientY>t.offsetTop+t.clientHeight,o={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(a?16:0)},s={x:e.clientX,y:e.clientY};return BX(o,s)?r||i:!1}function UX(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:a,onInteractOutside:i,defer:o}=t;if(!e)return;const s=Ua(e),l=sr(e),u=zX(l),c=PX(l);function p(v,b){if(!yr(b)||!b.isConnected||Bs(e,b)||FX(e,v))return!1;const S=s.querySelector(`[aria-controls="${e.id}"]`);if(S){const k=Ig(S);if(YA(v,k))return!1}const C=Ig(e);return YA(v,C)?!1:!(n!=null&&n(b))}const f=new Set,h=Tu(e==null?void 0:e.getRootNode());function g(v){function b(S){var O;const C=o&&!DA()?tt:N=>N(),k=S??v,R=((O=k==null?void 0:k.composedPath)==null?void 0:O.call(k))??[k==null?void 0:k.target];C(()=>{const N=h?R[0]:qo(v);if(!(!e||!p(v,N))){if(a||i){const _=Ng(a,i);e.addEventListener(WA,_,{once:!0})}XA(e,WA,{bubbles:!1,cancelable:!0,detail:{originalEvent:k,contextmenu:wq(k),focusable:jX(R),target:N}})}})}v.pointerType==="touch"?(f.forEach(S=>S()),f.add(In(s,"click",b,{once:!0})),f.add(c.addEventListener("click",b,{once:!0})),f.add(u.addEventListener("click",b,{once:!0}))):b()}const y=new Set,x=setTimeout(()=>{y.add(In(s,"pointerdown",g,!0)),y.add(c.addEventListener("pointerdown",g,!0)),y.add(u.addEventListener("pointerdown",g,!0))},0);function m(v){(o?tt:S=>S())(()=>{const S=qo(v);if(!(!e||!p(v,S))){if(r||i){const C=Ng(r,i);e.addEventListener(qA,C,{once:!0})}XA(e,qA,{bubbles:!1,cancelable:!0,detail:{originalEvent:v,contextmenu:!1,focusable:YS(S),target:S}})}})}return DA()||(y.add(In(s,"focusin",m,!0)),y.add(c.addEventListener("focusin",m,!0)),y.add(u.addEventListener("focusin",m,!0))),()=>{clearTimeout(x),f.forEach(v=>v()),y.forEach(v=>v())}}function $X(e,t){const{defer:n}=t,r=n?tt:i=>i(),a=[];return a.push(r(()=>{const i=typeof e=="function"?e():e;a.push(UX(i,t))})),()=>{a.forEach(i=>i==null?void 0:i())}}function XA(e,t,n){const r=e.ownerDocument.defaultView||window,a=new r.CustomEvent(t,n);return e.dispatchEvent(a)}function HX(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return In(Ua(e),"keydown",n,{capture:!0})}var $r={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return t<n},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Bs(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Bs(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){var t;(t=this.layers[this.indexOf(e)])==null||t.dismiss()},clear(){this.remove(this.layers[0].node)}},KA;function ZA(){$r.layers.forEach(({node:e})=>{e.style.pointerEvents=$r.isBelowPointerBlockingLayer(e)?"none":"auto"})}function VX(e){e.style.pointerEvents=""}function GX(e,t){const n=Ua(e),r=[];if($r.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(KA=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t){const a=aY(t,i=>{r.push(z9(i,{pointerEvents:"auto"}))});r.push(a)}return()=>{$r.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=KA,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(a=>a()))}}function WX(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Vd("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:a,exclude:i,debug:o}=t,s={dismiss:r,node:e,pointerBlocking:a};$r.add(s),ZA();function l(h){var y,x;const g=qo(h.detail.originalEvent);$r.isBelowPointerBlockingLayer(e)||$r.isInBranch(g)||((y=t.onPointerDownOutside)==null||y.call(t,h),(x=t.onInteractOutside)==null||x.call(t,h),!h.defaultPrevented&&(o&&console.log("onPointerDownOutside:",h.detail.originalEvent),r==null||r()))}function u(h){var y,x;const g=qo(h.detail.originalEvent);$r.isInBranch(g)||((y=t.onFocusOutside)==null||y.call(t,h),(x=t.onInteractOutside)==null||x.call(t,h),!h.defaultPrevented&&(o&&console.log("onFocusOutside:",h.detail.originalEvent),r==null||r()))}function c(h){var g;$r.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,h),!h.defaultPrevented&&r&&(h.preventDefault(),r()))}function p(h){var m;if(!e)return!1;const g=typeof i=="function"?i():i,y=Array.isArray(g)?g:[g],x=(m=t.persistentElements)==null?void 0:m.map(v=>v()).filter(yr);return x&&y.push(...x),y.some(v=>Bs(v,h))||$r.isInNestedLayer(e,h)}const f=[a?GX(e,t.persistentElements):void 0,HX(e,c),$X(e,{exclude:p,onFocusOutside:u,onPointerDownOutside:l,defer:t.defer})];return()=>{$r.remove(e),ZA(),VX(e),f.forEach(h=>h==null?void 0:h())}}function Lp(e,t){const{defer:n}=t,r=n?tt:i=>i(),a=[];return a.push(r(()=>{const i=Io(e)?e():e;a.push(WX(i,t))})),()=>{a.forEach(i=>i==null?void 0:i())}}function qX(e,t={}){const{defer:n}=t,r=n?tt:i=>i(),a=[];return a.push(r(()=>{const i=Io(e)?e():e;if(!i){Vd("[@zag-js/dismissable] branch node is `null` or `undefined`");return}$r.addBranch(i),a.push(()=>{$r.removeBranch(i)})})),()=>{a.forEach(i=>i==null?void 0:i())}}var oD=Ve("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);oD.build();var YX=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},XX=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},KX=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},ZX=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},QX=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},JX=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},eK=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},tK=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},nK=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},rK=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},_h=e=>e.getById(ZX(e)),aK=e=>e.getById(tK(e)),iK=(e,t)=>e.getById(rK(e,t)),oK=e=>e.getById(JX(e)),QA=e=>e.getById(YX(e)),sK=e=>e.getById(eK(e)),lK=(e,t)=>{const n=sK(e);if(!n)return;const{percent:r}=L9(t,n);return r},uK=e=>e.getById(XX(e)),Zb=e=>e.getById(KX(e)),cK=e=>e.getById(QX(e)),dK=(e,t)=>e.getById(nK(e,t)),pK=(e,t,n)=>{const r=dK(e,n);if(!r)return;const{percent:a}=L9(t,r);return a},fK=e=>[...Og(_h(e),"input[data-channel]"),...Og(uK(e),"input[data-channel]")];function hK(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var JA=e=>Lg(e),{and:gK}=as();gK("isOpenControlled","closeOnSelect");function e5(e,t,n){const r=fK(e);tt(()=>{r.forEach(a=>{const i=a.dataset.channel;Z0(a,hK(n||t,i))})})}function mK(e,t){const n=oK(e);n&&tt(()=>Z0(n,t))}Xe()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);Xe()(["xChannel","yChannel"]);Xe()(["channel","orientation"]);Xe()(["value","disabled"]);Xe()(["value","respectAlpha"]);Xe()(["size"]);var sD=Ve("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");sD.build();var lD=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},uD=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},bK=e=>e.getById(lD(e)),rm=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(lD(e))}']:not([disabled])`;return Og(bK(e),n)},yK=e=>g9(rm(e)),vK=e=>m9(rm(e)),xK=(e,t)=>Yq(rm(e),uD(e,t)),SK=(e,t)=>Xq(rm(e),uD(e,t)),{and:wK,not:EK}=as();wK("isExpanded","canToggle"),EK("isExpanded");Xe()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);Xe()(["value","disabled"]);var Wc=(e,t)=>({x:e,y:t});function kK(e){const{x:t,y:n,width:r,height:a}=e,i=t+r/2,o=n+a/2;return{x:t,y:n,width:r,height:a,minX:t,minY:n,maxX:t+r,maxY:n+a,midX:i,midY:o,center:Wc(i,o)}}function TK(e){const t=Wc(e.minX,e.minY),n=Wc(e.maxX,e.minY),r=Wc(e.maxX,e.maxY),a=Wc(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:a}}function CK(e,t){const n=kK(e),{top:r,right:a,left:i,bottom:o}=TK(n),[s]=t.split("-");return{top:[i,r,a,o],right:[r,a,o,i],bottom:[r,i,o,a],left:[a,r,i,o]}[s]}function AK(e,t){const{x:n,y:r}=t;let a=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const s=e[i].x,l=e[i].y,u=e[o].x,c=e[o].y;l>r!=c>r&&n<(u-s)*(r-l)/(c-l)+s&&(a=!a)}return a}var cD=Ve("avatar").parts("root","image","fallback");cD.build();Xe()(["dir","id","ids","onStatusChange","getRootNode"]);function _K(e){return!(e.metaKey||!K0()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var RK=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function NK(e,t,n){const r=n?qo(n):null,a=sr(r);return e=e||r instanceof a.HTMLInputElement&&!RK.has(r==null?void 0:r.type)||r instanceof a.HTMLTextAreaElement||r instanceof a.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof a.KeyboardEvent&&!Reflect.has(IK,n.key))}var rl=null,dv=new Set,md=new Map,$s=!1,pv=!1,IK={Tab:!0,Escape:!0};function am(e,t){for(let n of dv)n(e,t)}function jg(e){$s=!0,_K(e)&&(rl="keyboard",am("keyboard",e))}function ga(e){rl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&($s=!0,am("pointer",e))}function dD(e){Sq(e)&&($s=!0,rl="virtual")}function pD(e){const t=qo(e);t===sr(t)||t===Ua(t)||(!$s&&!pv&&(rl="virtual",am("virtual",e)),$s=!1,pv=!1)}function fD(){$s=!1,pv=!0}function OK(e){if(typeof window>"u"||md.get(sr(e)))return;const t=sr(e),n=Ua(e);let r=t.HTMLElement.prototype.focus;function a(){rl="virtual",am("virtual",null),$s=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:a}),n.addEventListener("keydown",jg,!0),n.addEventListener("keyup",jg,!0),n.addEventListener("click",dD,!0),t.addEventListener("focus",pD,!0),t.addEventListener("blur",fD,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",ga,!0),n.addEventListener("pointermove",ga,!0),n.addEventListener("pointerup",ga,!0)):(n.addEventListener("mousedown",ga,!0),n.addEventListener("mousemove",ga,!0),n.addEventListener("mouseup",ga,!0)),t.addEventListener("beforeunload",()=>{DK(e)},{once:!0}),md.set(t,{focus:r})}var DK=(e,t)=>{const n=sr(e),r=Ua(e);md.has(n)&&(n.HTMLElement.prototype.focus=md.get(n).focus,r.removeEventListener("keydown",jg,!0),r.removeEventListener("keyup",jg,!0),r.removeEventListener("click",dD,!0),n.removeEventListener("focus",pD,!0),n.removeEventListener("blur",fD,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",ga,!0),r.removeEventListener("pointermove",ga,!0),r.removeEventListener("pointerup",ga,!0)):(r.removeEventListener("mousedown",ga,!0),r.removeEventListener("mousemove",ga,!0),r.removeEventListener("mouseup",ga,!0)),md.delete(n))};function fv(){return rl==="keyboard"}function LK(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:a}=e;OK(a),r==null||r({isFocusVisible:n||fv(),modality:rl});const i=(o,s)=>{NK(!!t,o,s)&&(r==null||r({isFocusVisible:fv(),modality:o}))};return dv.add(i),()=>{dv.delete(i)}}var hD=Ve("checkbox").parts("root","label","control","indicator");hD.build();Xe()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const MK=hD.extendWith("group"),[Gwe,im]=Zu({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),zK=oD.extendWith("view");var PK=Object.defineProperty,jK=(e,t,n)=>t in e?PK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ze=(e,t,n)=>jK(e,typeof t!="symbol"?t+"":t,n),Rh={itemToValue(e){return typeof e=="string"?e:Hb(e)&&Vb(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Hb(e)&&Vb(e,"label")?e.label:Rh.itemToValue(e)},isItemDisabled(e){return Hb(e)&&Vb(e,"disabled")?!!e.disabled:!1}},om=class gD{constructor(t){this.options=t,Ze(this,"items"),Ze(this,"copy",n=>new gD({...this.options,items:n??[...this.items]})),Ze(this,"isEqual",n=>Ku(this.items,n.items)),Ze(this,"setItems",n=>this.copy(n)),Ze(this,"getValues",(n=this.items)=>Array.from(n).map(r=>this.getItemValue(r)).filter(Boolean)),Ze(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!=null?this.at(r):null}),Ze(this,"findMany",n=>Array.from(n).map(r=>this.find(r)).filter(r=>r!=null)),Ze(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const a=this.group();for(const[,i]of a)for(const o of i){if(r===n)return o;r++}return null}),Ze(this,"sortFn",(n,r)=>{const a=this.indexOf(n),i=this.indexOf(r);return(a??0)-(i??0)}),Ze(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),Ze(this,"getItemValue",n=>{var r,a;return n==null?null:((a=(r=this.options).itemToValue)==null?void 0:a.call(r,n))??Rh.itemToValue(n)}),Ze(this,"getItemDisabled",n=>{var r,a;return n==null?!1:((a=(r=this.options).isItemDisabled)==null?void 0:a.call(r,n))??Rh.isItemDisabled(n)}),Ze(this,"stringifyItem",n=>{var r,a;return n==null?null:((a=(r=this.options).itemToString)==null?void 0:a.call(r,n))??Rh.itemToString(n)}),Ze(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),Ze(this,"stringifyItems",(n,r=", ")=>Array.from(n).map(a=>this.stringifyItem(a)).filter(Boolean).join(r)),Ze(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),Ze(this,"has",n=>this.indexOf(n)!==-1),Ze(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),Ze(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const a=new Map;this.items.forEach((o,s)=>{const l=n(o,s);a.has(l)||a.set(l,[]),a.get(l).push(o)});let i=Array.from(a.entries());return r&&i.sort(([o],[s])=>{if(typeof r=="function")return r(o,s);if(Array.isArray(r)){const l=r.indexOf(o),u=r.indexOf(s);return l===-1?1:u===-1?-1:l-u}return r==="asc"?o.localeCompare(s):r==="desc"?s.localeCompare(o):0}),i}),Ze(this,"getNextValue",(n,r=1,a=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=a?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),Ze(this,"getPreviousValue",(n,r=1,a=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=a?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),Ze(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(i=>this.getItemValue(i)===n);let r=0;const a=this.group();for(const[,i]of a)for(const o of i){if(this.getItemValue(o)===n)return r;r++}return-1}),Ze(this,"getByText",(n,r)=>{let a=r!=null?BK(this.items,this.indexOf(r)):this.items;return n.length===1&&(a=a.filter(o=>this.getItemValue(o)!==r)),a.find(o=>FK(this.stringifyItem(o),n))}),Ze(this,"search",(n,r)=>{const{state:a,currentValue:i,timeout:o=350}=r,s=a.keysSoFar+n,u=s.length>1&&Array.from(s).every(g=>g===s[0])?s[0]:s,c=this.getByText(u,i),p=this.getItemValue(c);function f(){clearTimeout(a.timer),a.timer=-1}function h(g){a.keysSoFar=g,f(),g!==""&&(a.timer=+setTimeout(()=>{h(""),f()},o))}return h(s),p}),Ze(this,"update",(n,r)=>{let a=this.items.findIndex(i=>this.getItemValue(i)===n);return a===-1?this:this.copy([...this.items.slice(0,a),r,...this.items.slice(a+1)])}),Ze(this,"insert",(n,...r)=>this.copy(_c(this.items,n,...r))),Ze(this,"insertBefore",(n,...r)=>{let a=this.indexOf(n);if(a===-1)if(this.items.length===0)a=0;else return this;return this.copy(_c(this.items,a,...r))}),Ze(this,"insertAfter",(n,...r)=>{let a=this.indexOf(n);if(a===-1)if(this.items.length===0)a=0;else return this;return this.copy(_c(this.items,a+1,...r))}),Ze(this,"prepend",(...n)=>this.copy(_c(this.items,0,...n))),Ze(this,"append",(...n)=>this.copy(_c(this.items,this.items.length,...n))),Ze(this,"filter",n=>{const r=this.items.filter((a,i)=>n(this.stringifyItem(a),i));return this.copy(r)}),Ze(this,"remove",(...n)=>{const r=n.map(a=>typeof a=="string"?a:this.getItemValue(a));return this.copy(this.items.filter(a=>{const i=this.getItemValue(a);return i==null?!1:!r.includes(i)}))}),Ze(this,"move",(n,r)=>{const a=this.indexOf(n);return a===-1?this:this.copy(Tf(this.items,[a],r))}),Ze(this,"moveBefore",(n,...r)=>{let a=this.items.findIndex(o=>this.getItemValue(o)===n);if(a===-1)return this;let i=r.map(o=>this.items.findIndex(s=>this.getItemValue(s)===o)).sort((o,s)=>o-s);return this.copy(Tf(this.items,i,a))}),Ze(this,"moveAfter",(n,...r)=>{let a=this.items.findIndex(o=>this.getItemValue(o)===n);if(a===-1)return this;let i=r.map(o=>this.items.findIndex(s=>this.getItemValue(s)===o)).sort((o,s)=>o-s);return this.copy(Tf(this.items,i,a+1))}),Ze(this,"reorder",(n,r)=>this.copy(Tf(this.items,[n],r))),Ze(this,"compareValue",(n,r)=>{const a=this.indexOf(n),i=this.indexOf(r);return a<i?-1:a>i?1:0}),Ze(this,"range",(n,r)=>{let a=[],i=n;for(;i!=null;){if(this.find(i)&&a.push(i),i===r)return a;i=this.getNextValue(i)}return[]}),Ze(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),Ze(this,"toString",()=>{let n="";for(const r of this.items){const a=this.getItemValue(r),i=this.stringifyItem(r),o=this.getItemDisabled(r),s=[a,i,o].filter(Boolean).join(":");n+=s+","}return n}),Ze(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},FK=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase())),BK=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]);function _c(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Tf(e,t,n){t=[...t].sort((a,i)=>a-i);const r=t.map(a=>e[a]);for(let a=t.length-1;a>=0;a--)e=[...e.slice(0,t[a]),...e.slice(t[a]+1)];return n=Math.max(0,n-t.filter(a=>a<n).length),[...e.slice(0,n),...r,...e.slice(n)]}var ml=new WeakMap,Cf=new WeakMap,Af={},Qb=0,mD=e=>e&&(e.host||mD(e.parentNode)),UK=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=mD(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),$K=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),HK=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:a}=t,i=UK(n,Array.isArray(e)?e:[e]);Af[r]||(Af[r]=new WeakMap);const o=Af[r],s=[],l=new Set,u=new Set(i),c=f=>{!f||l.has(f)||(l.add(f),c(f.parentNode))};i.forEach(c);const p=f=>{!f||u.has(f)||Array.prototype.forEach.call(f.children,h=>{if(l.has(h))p(h);else try{if($K(h))return;const y=h.getAttribute(a)==="true",x=(ml.get(h)||0)+1,m=(o.get(h)||0)+1;ml.set(h,x),o.set(h,m),s.push(h),x===1&&y&&Cf.set(h,!0),m===1&&h.setAttribute(r,""),y||h.setAttribute(a,"true")}catch(g){console.error("[zag-js > ariaHidden] cannot operate on ",h,g)}})};return p(n),l.clear(),Qb++,()=>{s.forEach(f=>{const h=ml.get(f)-1,g=o.get(f)-1;ml.set(f,h),o.set(f,g),h||(Cf.has(f)||f.removeAttribute(a),Cf.delete(f)),g||f.removeAttribute(r)}),Qb--,Qb||(ml=new WeakMap,ml=new WeakMap,Cf=new WeakMap,Af={})}},VK=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,GK=(e,t=VK(e),n="data-aria-hidden")=>{if(t)return HK(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},WK=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function qK(e,t={}){const{defer:n=!0}=t,r=n?WK:i=>i(),a=[];return a.push(r(()=>{const o=(typeof e=="function"?e():e).filter(Boolean);o.length!==0&&a.push(GK(o))})),()=>{a.forEach(i=>i==null?void 0:i())}}var bD=Ve("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");bD.build();var yD=e=>new om(e);yD.empty=()=>new om({items:[]});var YK=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},XK=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},KK=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},ZK=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},QK=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},JK=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},yo=e=>e.getById(KK(e)),Al=e=>e.getById(XK(e)),t5=e=>e.getById(ZK(e)),n5=e=>e.getById(YK(e)),qc=e=>e.getById(QK(e)),r5=e=>e.getById(JK(e)),eZ=(e,t)=>{if(t==null)return;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Wq(yo(e),n)},a5=e=>{const t=Al(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},tZ=e=>{const t=qc(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:nZ,createMachine:rZ,choose:aZ}=P9(),{and:Pn,not:Fr}=nZ;rZ({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){O9(t)},collection:yD.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Ku,hash(r){return r.join(",")},onChange(r){var l;const a=n(),i=a.get("selectedItems"),o=e("collection"),s=r.map(u=>i.find(p=>o.getItemValue(p)===u)||o.find(u));a.set("selectedItems",s),a.set("valueAsString",o.stringifyItems(s)),(l=e("onValueChange"))==null||l({value:r,items:s})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(r){var i;const a=e("collection").find(r);(i=e("onHighlightChange"))==null||i({highlightedValue:r,highlightedItem:a})}})),inputValue:t(()=>{let r=e("inputValue")||e("defaultInputValue")||"";const a=e("defaultValue")||e("value")||[];if(!r.trim()&&!e("multiple")){const i=e("collection").stringifyMany(a);r=gd(e("selectionBehavior"),{preserve:r||i,replace:i,clear:""})}return{defaultValue:r,value:e("inputValue"),onChange(i){var o;(o=e("onInputValueChange"))==null||o({inputValue:i})}}}),highlightedItem:t(()=>{const r=e("highlightedValue");return{defaultValue:e("collection").find(r)}}),selectedItems:t(()=>{const r=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(r)}}),valueAsString:t(()=>{const r=e("value")||e("defaultValue")||[];return{sync:!0,defaultValue:e("collection").stringifyMany(r)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0},watch({context:e,prop:t,track:n,action:r}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:aZ([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedItem"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedItem"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Pn("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Pn("isCustomValue",Fr("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Pn("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Pn("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedItem","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Pn("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedItem"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Pn("isOpenControlled","isCustomValue",Fr("hasHighlightedItem"),Fr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pn("isCustomValue",Fr("hasHighlightedItem"),Fr("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pn("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedItem","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"ITEM.CLICK":[{guard:Pn("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Pn("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Pn("isOpenControlled","isCustomValue",Fr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pn("isCustomValue",Fr("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","trackChildNodes","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:{guard:"autoHighlight",actions:["highlightFirstItem"]},"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Pn("isOpenControlled","isCustomValue",Fr("hasHighlightedItem"),Fr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pn("isCustomValue",Fr("hasHighlightedItem"),Fr("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pn("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"LAYER.INTERACT_OUTSIDE":[{guard:Pn("isOpenControlled","isCustomValue",Fr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pn("isCustomValue",Fr("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Pn("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({context:e})=>e.get("inputValue")!==e.get("valueAsString"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return CW(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.type)==="INPUT.CHANGE"},autoFocus:({prop:e})=>!!e("autoFocus")},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Lp(()=>yo(n),{defer:!0,exclude:()=>[Al(n),qc(n),r5(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(a){a.preventDefault(),a.stopPropagation(),e({type:"LAYER.ESCAPE"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",restoreFocus:!1})}})},hideOtherElements({scope:e}){return qK([Al(e),yo(e),qc(e),r5(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>n5(n)||qc(n),a=()=>t5(n);return e.set("currentPlacement",t("positioning").placement),Fa(r,a,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},trackChildNodes({scope:e,computed:t,send:n}){return t("autoHighlight")?Fq(()=>yo(e),{callback:()=>n({type:"CHILDREN_CHANGE"})}):void 0},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const a=Al(n);let i=[];const o=u=>{const c=r.current().type.includes("POINTER"),p=e.get("highlightedValue");if(c||!p)return;const f=eZ(n,p),h=yo(n),g=t("scrollToIndexFn");if(g){const x=t("collection").indexOf(p);g({index:x,immediate:u});return}const y=tt(()=>{ZS(f,{rootEl:h,block:"nearest"})});i.push(y)},s=tt(()=>o(!0));i.push(s);const l=Q0(a,{attributes:["aria-activedescendant"],callback:()=>o(!1)});return i.push(l),()=>{i.forEach(u=>u())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){Fa(()=>n5(n),()=>t5(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(o){e.set("currentPlacement",o.placement)}})},setHighlightedItem(e){const{context:t,event:n}=e;n.value!=null&&t.set("highlightedValue",n.value)},clearHighlightedItem(e){const{context:t}=e;t.set("highlightedValue",null)},selectHighlightedItem(e){var i;const{context:t,prop:n}=e,r=t.get("highlightedValue");if(!r)return;const a=n("multiple")?Rg(t.get("value"),r):[r];(i=n("onSelect"))==null||i({value:a,itemValue:r}),t.set("value",a),t.set("inputValue",Rc(e))},selectItem(e){const{context:t,event:n,flush:r,prop:a}=e;n.value!=null&&r(()=>{var o;const i=a("multiple")?Rg(t.get("value"),n.value):[n.value];(o=a("onSelect"))==null||o({value:i,itemValue:n.value}),t.set("value",i),t.set("inputValue",Rc(e))})},clearItem(e){const{context:t,event:n,flush:r}=e;n.value!=null&&r(()=>{const a=HS(t.get("value"),n.value);t.set("value",a),t.set("inputValue",Rc(e))})},setInitialFocus({scope:e}){tt(()=>{a5(e)})},setFinalFocus({scope:e}){tt(()=>{const t=qc(e);(t==null?void 0:t.dataset.focusable)==null?a5(e):tZ(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Al(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&XW(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),a=gd(r,{replace:n("hasSelectedItems")?e.get("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",a)},setValue(e){const{context:t,flush:n,event:r}=e;n(()=>{t.set("value",r.value),t.set("inputValue",Rc(e))})},clearSelectedItems(e){const{context:t,flush:n}=e;n(()=>{t.set("value",[]),t.set("inputValue",Rc(e))})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n)n({index:0,immediate:!0});else{const r=yo(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},highlightFirstItem({context:e,prop:t,scope:n}){(yo(n)?queueMicrotask:tt)(()=>{const a=t("collection").firstValue;a&&e.set("highlightedValue",a)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(yo(n)?queueMicrotask:tt)(()=>{const a=t("collection").lastValue;a&&e.set("highlightedValue",a)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getNextValue(r),!n&&t("loopFocus")&&(n=a.firstValue)):n=a.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getPreviousValue(r),!n&&t("loopFocus")&&(n=a.lastValue)):n=a.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){tt(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){tt(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){tt(()=>{const r=t("collection");let a=null;n("hasSelectedItems")?a=r.sort(e.get("value"))[0]:a=r.lastValue,a&&e.set("highlightedValue",a)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:a}){const i=Al(a),o=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const s=o.stringify(e.get("highlightedValue"));tt(()=>{i.value=s||e.get("inputValue")})},syncSelectedItems(e){const{context:t,prop:n}=e,r=gd(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(t.get("value")),clear:""});t.set("selectedItems",iZ(e)),t.set("inputValue",r)},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Rc({context:e,prop:t}){return gd(t("selectionBehavior"),{preserve:e.get("inputValue"),replace:e.get("valueAsString"),clear:""})}function iZ({context:e,prop:t}){const n=t("collection");return e.get("value").map(r=>{const a=e.get("selectedItems").find(i=>n.getItemValue(i)===r);return a||n.find(r)})}Xe()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]);Xe()(["htmlFor"]);Xe()(["id"]);Xe()(["item","persistFocus"]);var gw=Ve("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");gw.build();Xe()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var vD=Ve("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");vD.build();Xe()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const xD=w.forwardRef((e,t)=>{const n=im(),r=Qn(n==null?void 0:n.getInputProps(),e);return d.jsx(ia.input,{...r,ref:t})});xD.displayName="FieldInput";const SD=Ve("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");SD.build();const wD=w.forwardRef((e,t)=>{const n=im(),r=Qn(n==null?void 0:n.getSelectProps(),e);return d.jsx(ia.select,{...r,ref:t})});wD.displayName="FieldSelect";var oZ=e=>{var u,c;if(!e)return;const t=VS(e),n=sr(e),r=Ua(e),a=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",a),(u=e.form)==null||u.addEventListener("reset",a);const i=Object.getPrototypeOf(e),o=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...o,set(){var p;(p=o==null?void 0:o.set)==null||p.apply(this,arguments),a()}});const s=new n.ResizeObserver(()=>{requestAnimationFrame(()=>a())});s.observe(e);const l=new n.MutationObserver(()=>a());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(c=r.fonts)==null||c.addEventListener("loadingdone",a),()=>{var p,f;e.removeEventListener("input",a),(p=e.form)==null||p.removeEventListener("reset",a),(f=r.fonts)==null||f.removeEventListener("loadingdone",a),s.disconnect(),l.disconnect()}};const ED=w.forwardRef((e,t)=>{const{autoresize:n,...r}=e,a=w.useRef(null),i=im(),o=Qn(i==null?void 0:i.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return w.useEffect(()=>{if(n)return oZ(a.current)},[n]),d.jsx(ia.textarea,{...o,ref:tw(t,a)})});ED.displayName="FieldTextarea";const kD=Ve("fieldset").parts("root","errorText","helperText","legend");kD.build();var TD=Ve("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");TD.build();Xe()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","transformFiles","validate"]);Xe()(["file"]);const sZ=Symbol(),i5=Object.getPrototypeOf,hv=new WeakMap,lZ=e=>e&&(hv.has(e)?hv.get(e):i5(e)===Object.prototype||i5(e)===Array.prototype),uZ=e=>lZ(e)&&e[sZ]||null,o5=(e,t=!0)=>{hv.set(e,t)};function cZ(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function CD(e,t){const n=cZ();return n?(n[e]||(n[e]=t()),n[e]):t()}var Nh=CD("__zag__refSet",()=>new WeakSet),dZ=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,pZ=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,fZ=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",hZ=e=>dZ(e)||pZ(e)||fZ(e),gv=e=>e!==null&&typeof e=="object",s5=e=>gv(e)&&!Nh.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!hZ(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Es=CD("__zag__proxyStateMap",()=>new WeakMap),gZ=(e=Object.is,t=(s,l)=>new Proxy(s,l),n=new WeakMap,r=(s,l)=>{const u=n.get(s);if((u==null?void 0:u[0])===l)return u[1];const c=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s));return o5(c,!0),n.set(s,[l,c]),Reflect.ownKeys(s).forEach(p=>{const f=Reflect.get(s,p);Nh.has(f)?(o5(f,!1),c[p]=f):Es.has(f)?c[p]=yZ(f):c[p]=f}),Object.freeze(c)},a=new WeakMap,i=[1,1],o=s=>{if(!gv(s))throw new Error("object required");const l=a.get(s);if(l)return l;let u=i[0];const c=new Set,p=(R,O=++i[0])=>{u!==O&&(u=O,c.forEach(N=>N(R,O)))};let f=i[1];const h=(R=++i[1])=>(f!==R&&!c.size&&(f=R,y.forEach(([O])=>{const N=O[1](R);N>u&&(u=N)})),u),g=R=>(O,N)=>{const _=[...O];_[1]=[R,..._[1]],p(_,N)},y=new Map,x=(R,O)=>{if(c.size){const N=O[3](g(R));y.set(R,[O,N])}else y.set(R,[O])},m=R=>{var N;const O=y.get(R);O&&(y.delete(R),(N=O[1])==null||N.call(O))},v=R=>(c.add(R),c.size===1&&y.forEach(([N,_],L)=>{const I=N[3](g(L));y.set(L,[N,I])}),()=>{c.delete(R),c.size===0&&y.forEach(([N,_],L)=>{_&&(_(),y.set(L,[N]))})}),b=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s)),C=t(b,{deleteProperty(R,O){const N=Reflect.get(R,O);m(O);const _=Reflect.deleteProperty(R,O);return _&&p(["delete",[O],N]),_},set(R,O,N,_){var M;const L=Reflect.has(R,O),I=Reflect.get(R,O,_);if(L&&(e(I,N)||a.has(N)&&e(I,a.get(N))))return!0;m(O),gv(N)&&(N=uZ(N)||N);let P=N;if(!((M=Object.getOwnPropertyDescriptor(R,O))!=null&&M.set)){!Es.has(N)&&s5(N)&&(P=AD(N));const F=!Nh.has(P)&&Es.get(P);F&&x(O,F)}return Reflect.set(R,O,P,_),p(["set",[O],N,I]),!0}});a.set(s,C);const k=[b,h,r,v];return Es.set(C,k),Reflect.ownKeys(s).forEach(R=>{const O=Object.getOwnPropertyDescriptor(s,R);O.get||O.set?Object.defineProperty(b,R,O):C[R]=s[R]}),C})=>[o,Es,Nh,e,t,s5,n,r,a,i],[mZ]=gZ();function AD(e={}){return mZ(e)}function bZ(e,t,n){const r=Es.get(e);let a;const i=[],o=r[3];let s=!1;const u=o(c=>{i.push(c),a||(a=Promise.resolve().then(()=>{a=void 0,s&&t(i.splice(0))}))});return s=!0,()=>{s=!1,u()}}function yZ(e){const t=Es.get(e),[n,r,a]=t;return a(n,r())}var _D=Ve("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");_D.build();var vZ=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},xZ=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},SZ=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},Jb=e=>e.getById(vZ(e)),wZ=e=>e.getById(xZ(e)),l5=e=>e.getById(SZ(e)),{not:_f,and:u5}=as();u5("isOpenControlled",_f("isPointer")),_f("isPointer"),u5("isOpenControlled",_f("isPointer")),_f("isPointer");Xe()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var RD=Ve("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");RD.build();var ND=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},EZ=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},ID=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},kZ=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},mv=(e,t)=>`${e.id}/${t}`,cs=e=>(e==null?void 0:e.dataset.value)??null,vo=e=>e.getById(ID(e)),c5=e=>e.getById(kZ(e)),Rf=e=>e.getById(ND(e)),TZ=(e,t)=>t?e.getById(mv(e,t)):null,d5=e=>e.getById(EZ(e)),Mp=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(ID(e))}]:not([data-disabled])`;return Og(vo(e),n)},CZ=e=>g9(Mp(e)),AZ=e=>m9(Mp(e)),mw=(e,t)=>t?e.id===t||e.dataset.value===t:!1,_Z=(e,t)=>{const n=Mp(e),r=n.findIndex(a=>mw(a,t.value));return SW(n,r,{loop:t.loop??t.loopFocus})},RZ=(e,t)=>{const n=Mp(e),r=n.findIndex(a=>mw(a,t.value));return EW(n,r,{loop:t.loop??t.loopFocus})},NZ=(e,t)=>{const n=Mp(e),r=n.find(a=>mw(a,t.value));return ew(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},IZ=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},OZ="menu:select";function DZ(e,t){if(!e)return;const n=sr(e),r=new n.CustomEvent(OZ,{detail:{value:t}});e.dispatchEvent(r)}var{not:ua,and:bl,or:LZ}=as();ua("isSubmenu"),LZ("isOpenAutoFocusEvent","isArrowDownEvent"),bl(ua("isTriggerItem"),"isOpenControlled"),ua("isTriggerItem"),bl("isSubmenu","isOpenControlled"),ua("isPointerSuspended"),bl(ua("isPointerSuspended"),ua("isTriggerItem")),bl(ua("isTriggerItemHighlighted"),ua("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),bl(ua("isTriggerItemHighlighted"),ua("isHighlightedItemEditable"),"closeOnSelect"),bl(ua("isTriggerItemHighlighted"),ua("isHighlightedItemEditable"));function p5(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function MZ(e,t){return e?AK(e,t):!1}function zZ(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return mv(n,t);for(const a in e){const i=e[a],o=ND(i.scope);if(o===t)return o}return mv(n,t)}Xe()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);Xe()(["closeOnSelect","disabled","value","valueText"]);Xe()(["htmlFor"]);Xe()(["id"]);Xe()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let ey=new Map,bv=!1;try{bv=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Fg=!1;try{Fg=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const OD={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class PZ{format(t){let n="";if(!bv&&this.options.signDisplay!=null?n=FZ(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Fg){var r;let{unit:a,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!a)return n;let s=(r=OD[a])===null||r===void 0?void 0:r[i];n+=s[o]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!bv&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Fg&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=jZ(t,n),this.options=n}}function jZ(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Fg){var r;let{unit:o,unitDisplay:s="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=OD[o])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let a=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(ey.has(a))return ey.get(a);let i=new Intl.NumberFormat(e,t);return ey.set(a,i),i}function FZ(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let a=e.format(-n),i=e.format(n),o=a.replace(i,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(i,"!!!").replace(o,"+").replace("!!!",i)}else return e.format(n)}}const BZ=new RegExp("^.*\\(.*\\).*$"),UZ=["latn","arab","hanidec","deva","beng"];class DD{parse(t){return ty(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ty(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ty(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const f5=new Map;function ty(e,t,n){let r=h5(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let a of UZ)if(a!==r.options.numberingSystem){let i=h5(e+(e.includes("-u-")?"-nu-":"-u-nu-")+a,t);if(i.isValidPartialNumber(n))return i}}return r}function h5(e,t){let n=e+(t?Object.entries(t).sort((a,i)=>a[0]<i[0]?-1:1).join():""),r=f5.get(n);return r||(r=new $Z(e,t),f5.set(n,r)),r}class $Z{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Nc(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let s=n.indexOf(".");s===-1&&(s=n.length),n=n.replace(".",""),s-2===0?n=`0.${n}`:s-2===-1?n=`0.0${n}`:s-2===-2?n="0.00":n=`${n.slice(0,s-2)}.${n.slice(s-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var a,i;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((a=this.options.minimumFractionDigits)!==null&&a!==void 0?a:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new DD(this.locale,o).parse(new PZ(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&BZ.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Nc(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Nc(t," ",this.symbols.group),t=Nc(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Nc(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=VZ(t,this.formatter,this.options,n);var r,a;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const g5=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),HZ=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function VZ(e,t,n,r){var a,i,o,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),p=HZ.map(_=>l.formatToParts(_));var f;let h=(f=(a=u.find(_=>_.type==="minusSign"))===null||a===void 0?void 0:a.value)!==null&&f!==void 0?f:"-",g=(i=c.find(_=>_.type==="plusSign"))===null||i===void 0?void 0:i.value;!g&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(g="+");let x=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(_=>_.type==="decimal"))===null||o===void 0?void 0:o.value,m=(s=u.find(_=>_.type==="group"))===null||s===void 0?void 0:s.value,v=u.filter(_=>!g5.has(_.type)).map(_=>m5(_.value)),b=p.flatMap(_=>_.filter(L=>!g5.has(L.type)).map(L=>m5(L.value))),S=[...new Set([...v,...b])].sort((_,L)=>L.length-_.length),C=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),R=new Map(k.map((_,L)=>[_,L])),O=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:g,decimal:x,group:m,literals:C,numeral:O,index:_=>String(R.get(_))}}function Nc(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function m5(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var LD=Ve("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");LD.build();var GZ=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},WZ=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},qZ=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},MD=e=>`number-input:${e.id}:cursor`,Nf=e=>e.getById(GZ(e)),YZ=e=>e.getById(WZ(e)),XZ=e=>e.getById(qZ(e)),zD=e=>e.getDoc().getElementById(MD(e)),KZ=(e,t)=>{let n=null;return t==="increment"&&(n=YZ(e)),t==="decrement"&&(n=XZ(e)),n},ZZ=(e,t)=>{if(!_9())return eQ(e,t),()=>{var n;(n=zD(e))==null||n.remove()}},QZ=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},JZ=(e,t)=>{const{point:n,isRtl:r,event:a}=t,i=e.getWin(),o=Gb(a.movementX,i.devicePixelRatio),s=Gb(a.movementY,i.devicePixelRatio);let l=o>0?"increment":o<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const u={x:n.x+o,y:n.y+s},c=i.innerWidth,p=Gb(7.5,i.devicePixelRatio);return u.x=zW(u.x+p,c)-p,{hint:l,point:u}},eQ=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=MD(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:k9,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
      <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
        <g transform="translate(2 3)">
          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
        </g>
      </svg>`,n.body.appendChild(r)};function tQ(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,a=r.substring(0,t),i=r.substring(n);return{start:t,end:n,value:r,beforeTxt:a,afterTxt:i}}catch{}}function nQ(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:a="",start:i}=t;let o=n.length;if(n.endsWith(a))o=n.length-a.length;else if(n.startsWith(r))o=r.length;else if(i!=null){const s=r[i-1],l=n.indexOf(s,i-1);l!==-1&&(o=l+1)}e.setSelectionRange(o,o)}catch{}}}var rQ=(e,t={})=>new Intl.NumberFormat(e,t),aQ=(e,t={})=>new DD(e,t),ny=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?r("parser").parse(String(e)):parseFloat(e)},ds=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},iQ=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:oQ,guards:sQ,createMachine:lQ}=P9(),{not:b5,and:y5}=sQ;lQ({props({props:e}){const t=iQ(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){var o;const a=n(),i=ny(r,{computed:a,prop:e});(o=e("onValueChange"))==null||o({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>ny(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>ds(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>jW(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>PW(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!FW(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:MA(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>rQ(e,t)),parser:MA(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>aQ(e,t))},watch({track:e,action:t,context:n,computed:r,prop:a}){e([()=>n.get("value"),()=>a("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:y5("clampValueOnBlur",b5("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:b5("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:oQ([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:y5("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=Nf(t);return qS(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return ZZ(t,n)},preventTextSelection({scope:e}){return QZ(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),a=KZ(t,r);return Q0(a,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=Nf(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function a(i){i.preventDefault();const o=Math.sign(i.deltaY)*-1;o===1?t({type:"VALUE.INCREMENT"}):o===-1&&t({type:"VALUE.DECREMENT"})}return In(r,"wheel",a,{passive:!1})},activatePointerLock({scope:e}){if(!_9())return $q(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const a=e.getDoc();function i(s){const l=n.get("scrubberCursorPoint"),u=r("isRtl"),c=JZ(e,{point:l,isRtl:u,event:s});c.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:c.hint,point:c.point})}function o(){t({type:"SCRUBBER.POINTER_UP"})}return Ng(In(a,"mousemove",i,!1),In(a,"mouseup",o,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=Nf(e);e.isActiveElement(n)||tt(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let a=HW(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(a=Nr(a,n("min"),n("max"))),e.set("value",ds(a,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let a=VW(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(a=Nr(a,n("min"),n("max"))),e.set("value",ds(a,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Nr(n("valueAsNumber"),t("min"),t("max"));e.set("value",ds(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let a=ny(t.value,{computed:r,prop:n});n("allowOverflow")||(a=Nr(a,n("min"),n("max"))),e.set("value",ds(a,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.value)??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=ds(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=ds(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var a;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(a=t("onValueInvalid"))==null||a({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const a=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=Nf(r),o=tQ(i);tt(()=>{Z0(i,a),nQ(i,o)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=zD(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}});Xe()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var PD=Ve("pinInput").parts("root","label","input","control");PD.build();Xe()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var jD=Ve("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");jD.build();Xe()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);const FD=e=>{var l;const{children:t,disabled:n}=e,[r,a]=w.useState((l=e.container)==null?void 0:l.current),i=w.useSyncExternalStore(cQ,()=>!1,()=>!0),{getRootNode:o}=q0();if(w.useEffect(()=>{a(()=>{var u;return(u=e.container)==null?void 0:u.current})},[e.container]),i||n)return d.jsx(d.Fragment,{children:t});const s=r??uQ(o);return d.jsx(d.Fragment,{children:w.Children.map(t,u=>Ks.createPortal(u,s))})},uQ=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return Tu(n)?n:Ua(t).body},cQ=()=>()=>{};var bw=Ve("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");bw.build();Xe()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var BD=Ve("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");BD.build();Xe()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var yw=Ve("radio-group").parts("root","label","item","itemText","itemControl","indicator");yw.build();Xe()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);Xe()(["value","disabled","invalid"]);var UD=Ve("rating-group").parts("root","label","item","control");UD.build();Xe()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);Xe()(["index"]);const $D=yw.rename("segment-group");$D.build();var HD=Ve("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");HD.build();var VD=e=>new om(e);VD.empty=()=>new om({items:[]});var dQ=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},pQ=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},fQ=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},hQ=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},gQ=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},mQ=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},ry=e=>e.getById(gQ(e)),Ic=e=>e.getById(dQ(e)),If=e=>e.getById(pQ(e)),bQ=e=>e.getById(fQ(e)),v5=e=>e.getById(mQ(e)),yQ=(e,t)=>e.getById(hQ(e,t)),{and:Oc,not:ps,or:vQ}=as();vQ("isTriggerArrowDownEvent","isTriggerEnterEvent"),Oc(ps("multiple"),"hasSelectedItems"),ps("multiple"),Oc(ps("multiple"),"hasSelectedItems"),ps("multiple"),ps("multiple"),ps("multiple"),ps("multiple"),Oc("closeOnSelect","isOpenControlled"),Oc("hasHighlightedItem","loop","isLastItemHighlighted"),Oc("hasHighlightedItem","loop","isFirstItemHighlighted");function x5(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.restoreFocus);return t==null||!!t}Xe()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);Xe()(["item","persistFocus"]);Xe()(["id"]);Xe()(["htmlFor"]);var GD=Ve("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");GD.build();Xe()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);Xe()(["index","name"]);var WD=Ve("switch").parts("root","label","control","thumb");WD.build();Xe()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var xQ=Ve("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),_l=xQ.build(),SQ=e=>`toast-group:${e}`,S5=(e,t)=>e.getById(`toast-group:${t}`),qD=e=>`toast:${e.id}`,w5=e=>e.getById(qD(e)),E5=e=>`toast:${e.id}:title`,k5=e=>`toast:${e.id}:description`,wQ=e=>`toast${e.id}:close`,T5={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function ay(e,t){return e??T5[t]??T5.DEFAULT}var EQ=e=>typeof e=="string"?{left:e,right:e,bottom:e,top:e}:e;function kQ(e,t){var y;const{prop:n,computed:r,context:a}=e,{offsets:i,gap:o}=n("store").attrs,s=a.get("heights"),l=EQ(i),u=n("dir")==="rtl",c=t.replace("-start",u?"-right":"-left").replace("-end",u?"-left":"-right"),p=c.includes("right"),f=c.includes("left"),h={position:"fixed",pointerEvents:r("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${o}px`,"--first-height":`${((y=s[0])==null?void 0:y.height)||0}px`,zIndex:k9};let g="center";if(p&&(g="flex-end"),f&&(g="flex-start"),h.alignItems=g,c.includes("top")){const x=l.top;h.top=`max(env(safe-area-inset-top, 0px), ${x})`}if(c.includes("bottom")){const x=l.bottom;h.bottom=`max(env(safe-area-inset-bottom, 0px), ${x})`}if(!c.includes("left")){const x=l.right;h.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${x})`}if(!c.includes("right")){const x=l.left;h.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${x})`}return h}function TQ(e,t){const{prop:n,context:r,computed:a}=e,i=n("parent"),o=i.computed("placement"),{gap:s}=i.prop("store").attrs,[l]=o.split("-"),u=r.get("mounted"),c=r.get("remainingTime"),p=a("height"),f=a("frontmost"),h=!f,g=!n("stacked"),y=n("stacked"),m=n("type")==="loading"?Number.MAX_SAFE_INTEGER:c,v=a("heightIndex")*s+a("heightBefore"),b={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${n("removeDelay")}ms`,"--duration":`${m}ms`,"--initial-height":`${p}px`,"--offset":`${v}px`,"--index":n("index"),"--z-index":a("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},S=C=>Object.assign(b,C);return l==="top"?S({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):l==="bottom"&&S({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),u&&(S({"--y":"0","--opacity":"1"}),y&&S({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||S({"--opacity":"0",pointerEvents:"none"}),h&&g&&(S({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||S({"--y":"calc(var(--sign) * 40%)"})),h&&y&&!t&&S({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),f&&!t&&S({"--y":"calc(var(--lift) * -100%)"}),b}function CQ(e,t){const{computed:n}=e,r={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"},a=i=>Object.assign(r,i);return n("frontmost")&&!t&&a({height:"calc(var(--initial-height) + 80%)"}),r}function AQ(){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function _Q(e,t){const{context:n,prop:r,send:a,refs:i,computed:o}=e;return{getCount(){return n.get("toasts").length},getToasts(){return n.get("toasts")},getGroupProps(s={}){const{label:l="Notifications"}=s,{hotkey:u}=r("store").attrs,c=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),p=o("placement"),[f,h="center"]=p.split("-");return t.element({..._l.group.attrs,dir:r("dir"),tabIndex:-1,"aria-label":`${p} ${l} ${c}`,id:SQ(p),"data-placement":p,"data-side":f,"data-align":h,"aria-live":"polite",role:"region",style:kQ(e,p),onMouseMove(){a({type:"REGION.POINTER_ENTER",placement:p})},onMouseLeave(){a({type:"REGION.POINTER_LEAVE",placement:p})},onFocus(g){a({type:"REGION.FOCUS",target:g.relatedTarget})},onBlur(g){i.get("isFocusWithin")&&!Bs(g.currentTarget,g.relatedTarget)&&queueMicrotask(()=>a({type:"REGION.BLUR"}))}})},subscribe(s){return r("store").subscribe(()=>s(n.get("toasts")))}}}var RQ={props({props:e}){return{dir:"ltr",id:v9(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(n=>n.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:n}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{n(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap")},effects:{subscribeToStore({context:e,prop:t}){return t("store").subscribe(n=>{if(n.dismiss){e.set("toasts",r=>r.filter(a=>a.id!==n.id));return}e.set("toasts",r=>{const a=r.findIndex(i=>i.id===n.id);return a!==-1?[...r.slice(0,a),{...r[a],...n},...r.slice(a+1)]:[n,...r]})})},trackHotKeyPress({prop:e,send:t}){return In(document,"keydown",r=>{const{hotkey:a}=e("store").attrs;a.every(o=>r[o]||r.code===o)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:n}){const{pauseOnPageIdle:r}=e("store").attrs;if(!r)return;const a=n.getDoc();return In(a,"visibilitychange",()=>{const i=a.visibilityState==="hidden";t({type:i?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:n,scope:r}){var u;const a=t.get("toasts"),i=n("placement"),o=a.length>0;if(!o){(u=e.get("dismissableCleanup"))==null||u();return}if(o&&e.get("dismissableCleanup"))return;const l=qX(()=>S5(r,i),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){var t;(t=e.get("dismissableCleanup"))==null||t()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{var n;(n=S5(e,t("placement")))==null||n.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){(e==null?void 0:e.id)!=null&&queueMicrotask(()=>{t.set("heights",n=>n.filter(r=>r.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreLastFocusedEl({refs:e}){var t;e.get("lastFocusedEl")&&((t=e.get("lastFocusedEl"))==null||t.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},clearLastFocusedEl({refs:e}){var t;e.get("lastFocusedEl")&&((t=e.get("lastFocusedEl"))==null||t.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))}}}};function NQ(e,t){const{state:n,send:r,prop:a,scope:i,context:o,computed:s}=e,l=n.hasTag("visible"),u=n.hasTag("paused"),c=o.get("mounted"),p=s("frontmost"),f=a("parent").computed("placement"),h=a("type"),g=a("stacked"),y=a("title"),x=a("description"),m=a("action"),[v,b="center"]=f.split("-");return{type:h,title:y,description:x,placement:f,visible:l,paused:u,closable:!!a("closable"),pause(){r({type:"PAUSE"})},resume(){r({type:"RESUME"})},dismiss(){r({type:"DISMISS",src:"programmatic"})},getRootProps(){return t.element({..._l.root.attrs,dir:a("dir"),id:qD(i),"data-state":l?"open":"closed","data-type":h,"data-placement":f,"data-align":b,"data-side":v,"data-mounted":Ss(c),"data-paused":Ss(u),"data-first":Ss(p),"data-sibling":Ss(!p),"data-stack":Ss(g),"data-overlap":Ss(!g),role:"status","aria-atomic":"true","aria-describedby":x?k5(i):void 0,"aria-labelledby":y?E5(i):void 0,tabIndex:0,style:TQ(e,l),onKeyDown(S){S.defaultPrevented||S.key=="Escape"&&(r({type:"DISMISS",src:"keyboard"}),S.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":"before",style:CQ(e,l)})},getGhostAfterProps(){return t.element({"data-ghost":"after",style:AQ()})},getTitleProps(){return t.element({..._l.title.attrs,id:E5(i)})},getDescriptionProps(){return t.element({..._l.description.attrs,id:k5(i)})},getActionTriggerProps(){return t.button({..._l.actionTrigger.attrs,type:"button",onClick(S){var C;S.defaultPrevented||((C=m==null?void 0:m.onClick)==null||C.call(m),r({type:"DISMISS",src:"user"}))}})},getCloseTriggerProps(){return t.button({id:wQ(i),..._l.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(S){S.defaultPrevented||r({type:"DISMISS",src:"user"})}})}}}var{not:IQ}=as(),OQ={props({props:e}){return qW(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:ay(e.duration,e.type)}},initialState({prop:e}){return e("type")==="loading"||e("duration")===1/0?"visible:persist":"visible"},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:ay(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),n=t.findIndex(r=>r.id===e("id"));return t.length-n},height:({prop:e})=>{const n=e("parent").context.get("heights").find(r=>r.id===e("id"));return(n==null?void 0:n.height)??0},heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(n=>n.id===e("id")),frontmost:({prop:e})=>e("index")===0,heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),n=t.findIndex(r=>r.id===e("id"));return t.reduce((r,a,i)=>i>=n?r:r+a.height,0)},shouldPersist:({prop:e})=>e("type")==="loading"||e("duration")===1/0},watch({track:e,prop:t,send:n}){e([()=>t("message")],()=>{const r=t("message");r&&n({type:r,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{n({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:IQ("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return Wb(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay"))},waitForDuration({send:e,context:t,computed:n}){if(!n("shouldPersist"))return Wb(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick({send:e}){return Wb(()=>{e({type:"SHOW",src:"timer"})},0)},trackHeight({scope:e,prop:t}){let n;return tt(()=>{const r=w5(e);if(!r)return;const a=()=>{const s=r.style.height;r.style.height="auto";const l=r.getBoundingClientRect().height;r.style.height=s;const u={id:t("id"),height:l};C5(t("parent"),u)},i=e.getWin(),o=new i.MutationObserver(a);o.observe(r,{childList:!0,subtree:!0,characterData:!0}),n=()=>o.disconnect()}),()=>n==null?void 0:n()}},guards:{isLoadingType:({prop:e})=>e("type")==="loading",shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){tt(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:n}){queueMicrotask(()=>{const r=w5(e);if(!r)return;const a=r.style.height;r.style.height="auto";const i=r.getBoundingClientRect().height;r.style.height=a,n.set("initialHeight",i);const o={id:t("id"),height:i};C5(t("parent"),o)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:n}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",ay(n("duration"),n("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",n=>{const r=t.get("closeTimerStartTime"),a=Date.now()-r;return t.set("lastCloseStartTimerStartTime",Date.now()),n-a})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){var n;(n=e("onStatusChange"))==null||n({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){var t;(t=e("onStatusChange"))==null||t({status:"unmounted"})},invokeOnVisible({prop:e}){var t;(t=e("onStatusChange"))==null||t({status:"visible"})}}}};function C5(e,t){const{id:n,height:r}=t;e.context.set("heights",a=>a.find(o=>o.id===n)?a.map(o=>o.id===n?{...o,height:r}:o):[{id:n,height:r},...a])}var DQ=(e,t)=>({...t,...W0(e)});function LQ(e){const t=DQ(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],a=new Set,i=[];const o=I=>(n.push(I),()=>{const P=n.indexOf(I);n.splice(P,1)}),s=I=>(n.forEach(P=>P(I)),I),l=I=>{if(r.length>=t.max){i.push(I);return}s(I),r.unshift(I)},u=()=>{for(;i.length>0&&r.length<t.max;){const I=i.shift();I&&(s(I),r.unshift(I))}},c=I=>{const P=I.id??`toast:${v9()}`,M=r.find(F=>F.id===P);return a.has(P)&&a.delete(P),M?r=r.map(F=>F.id===P?s({...F,...I,id:P}):F):l({id:P,duration:t.duration,removeDelay:t.removeDelay,type:"info",...I,stacked:!t.overlap,gap:t.gap}),P},p=I=>(a.add(I),I?(n.forEach(P=>P({id:I,dismiss:!0})),r=r.filter(P=>P.id!==I),u()):(r.forEach(P=>{n.forEach(M=>M({id:P.id,dismiss:!0}))}),r=[],i=[]),I);return{attrs:t,subscribe:o,create:c,update:(I,P)=>c({id:I,...P}),remove:p,dismiss:I=>{I!=null?r=r.map(P=>P.id===I?s({...P,message:"DISMISS"}):P):r=r.map(P=>s({...P,message:"DISMISS"}))},error:I=>c({...I,type:"error"}),success:I=>c({...I,type:"success"}),info:I=>c({...I,type:"info"}),warning:I=>c({...I,type:"warning"}),loading:I=>c({...I,type:"loading"}),getVisibleToasts:()=>r.filter(I=>!a.has(I.id)),getCount:()=>r.length,promise:(I,P,M={})=>{if(!P)return;let F;P.loading!==void 0&&(F=c({...M,...P.loading,promise:I,type:"loading"}));let A=F!==void 0,j;const B=Gc(I).then(async D=>{if(j=["resolve",D],MQ(D)&&!D.ok){A=!1;const Z=Gc(P.error,`HTTP Error! status: ${D.status}`);c({...M,...Z,id:F,type:"error"})}else if(P.success!==void 0){A=!1;const Z=Gc(P.success,D);c({...M,...Z,id:F,type:"success"})}}).catch(async D=>{if(j=["reject",D],P.error!==void 0){A=!1;const Z=Gc(P.error,D);c({...M,...Z,id:F,type:"error"})}}).finally(()=>{var D;A&&(p(F),F=void 0),(D=P.finally)==null||D.call(P)});return{id:F,unwrap:()=>new Promise((D,Z)=>B.then(()=>j[0]==="reject"?Z(j[1]):D(j[1])).catch(Z))}},pause:I=>{I!=null?r=r.map(P=>P.id===I?s({...P,message:"PAUSE"}):P):r=r.map(P=>s({...P,message:"PAUSE"}))},resume:I=>{I!=null?r=r.map(P=>P.id===I?s({...P,message:"RESUME"}):P):r=r.map(P=>s({...P,message:"RESUME"}))},isVisible:I=>!a.has(I)&&!!r.find(P=>P.id===I),isDismissed:I=>a.has(I),expand:()=>{r=r.map(I=>s({...I,stacked:!0}))},collapse:()=>{r=r.map(I=>s({...I,stacked:!1}))}}}var MQ=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",A5={connect:_Q,machine:RQ};const zQ=e=>LQ(e),[PQ,ec]=Zu({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),YD=w.forwardRef((e,t)=>{const n=ec(),r=Qn(n.getActionTriggerProps(),e);return d.jsx(ia.button,{...r,ref:t})});YD.displayName="ToastActionTrigger";const XD=w.forwardRef((e,t)=>{const n=ec(),r=Qn(n.getCloseTriggerProps(),e);return d.jsx(ia.button,{...r,ref:t})});XD.displayName="ToastCloseTrigger";const KD=w.forwardRef((e,t)=>{const n=ec(),r=Qn(n.getDescriptionProps(),e);return d.jsx(ia.div,{...r,ref:t})});KD.displayName="ToastDescription";const ZD=w.forwardRef((e,t)=>{const n=ec(),r=Qn(n.getRootProps(),e);return d.jsxs("div",{...r,ref:t,children:[d.jsx("div",{...n.getGhostBeforeProps()}),e.children,d.jsx("div",{...n.getGhostAfterProps()})]})});ZD.displayName="ToastRoot";const QD=w.forwardRef((e,t)=>{const n=ec(),r=Qn(n.getTitleProps(),e);return d.jsx(ia.div,{...r,ref:t})});QD.displayName="ToastTitle";const JD=w.forwardRef((e,t)=>{const{toaster:n,children:r,...a}=e,i=j9(),o=q0(),s=J0(A5.machine,{store:n,id:w.useId(),dir:i==null?void 0:i.dir,getRootNode:o==null?void 0:o.getRootNode}),l=A5.connect(s,nw),u=Qn(l.getGroupProps(),a);return d.jsx(ia.div,{...u,ref:t,children:l.getToasts().map((c,p)=>d.jsx(eL,{value:c,parent:s,index:p,children:f=>r(f)},c.id))})});JD.displayName="Toaster";const eL=e=>{const t=q0(),n={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},r=J0(OQ,{...n}),a=NQ(r,nw);return d.jsx(PQ,{value:a,children:e.children(e.value)})};eL.displayName="ToastActor";const[tL,zp]=Zu({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),nL=w.forwardRef((e,t)=>{const n=zp(),r=Qn(n.getArrowProps(),e);return d.jsx(ia.div,{...r,ref:t})});nL.displayName="TooltipArrow";const rL=w.forwardRef((e,t)=>{const n=zp(),r=Qn(n.getArrowTipProps(),e);return d.jsx(ia.div,{...r,ref:t})});rL.displayName="TooltipArrowTip";const aL=w.forwardRef((e,t)=>{const n=zp(),r=V9(),a=Qn(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:d.jsx(ia.div,{...a,ref:tw(r.ref,t)})});aL.displayName="TooltipContent";const iL=w.forwardRef((e,t)=>{const n=zp(),r=Qn(n.getPositionerProps(),e);return V9().unmounted?null:d.jsx(ia.div,{...r,ref:t})});iL.displayName="TooltipPositioner";var oL=Ve("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),Dc=oL.build(),sL=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},jQ=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`tooltip:${e.id}:content`},FQ=e=>{var t;return((t=e.ids)==null?void 0:t.arrow)??`tooltip:${e.id}:arrow`},lL=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},iy=e=>e.getById(sL(e)),_5=e=>e.getById(lL(e)),Ni=AD({id:null});function BQ(e,t){const{state:n,context:r,send:a,scope:i,prop:o,event:s}=e,l=o("id"),u=!!o("aria-label"),c=n.matches("open","closing"),p=sL(i),f=jQ(i),h=o("disabled"),g=MX({...o("positioning"),placement:r.get("currentPlacement")});return{open:c,setOpen(y){n.matches("open","closing")!==y&&a({type:y?"open":"close"})},reposition(y={}){a({type:"positioning.set",options:y})},getTriggerProps(){return t.button({...Dc.trigger.attrs,id:p,dir:o("dir"),"data-expanded":Ss(c),"data-state":c?"open":"closed","aria-describedby":c?f:void 0,onClick(y){y.defaultPrevented||h||o("closeOnClick")&&a({type:"close",src:"trigger.click"})},onFocus(y){queueMicrotask(()=>{y.defaultPrevented||h||s.src!=="trigger.pointerdown"&&fv()&&a({type:"open",src:"trigger.focus"})})},onBlur(y){y.defaultPrevented||h||l===Ni.id&&a({type:"close",src:"trigger.blur"})},onPointerDown(y){y.defaultPrevented||h||o("closeOnPointerDown")&&l===Ni.id&&a({type:"close",src:"trigger.pointerdown"})},onPointerMove(y){y.defaultPrevented||h||y.pointerType!=="touch"&&a({type:"pointer.move"})},onPointerLeave(){h||a({type:"pointer.leave"})},onPointerCancel(){h||a({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:FQ(i),...Dc.arrow.attrs,dir:o("dir"),style:g.arrow})},getArrowTipProps(){return t.element({...Dc.arrowTip.attrs,dir:o("dir"),style:g.arrowTip})},getPositionerProps(){return t.element({id:lL(i),...Dc.positioner.attrs,dir:o("dir"),style:g.floating})},getContentProps(){return t.element({...Dc.content.attrs,dir:o("dir"),hidden:!c,"data-state":c?"open":"closed",role:u?void 0:"tooltip",id:u?void 0:f,"data-placement":r.get("currentPlacement"),onPointerEnter(){a({type:"content.pointer.move"})},onPointerLeave(){a({type:"content.pointer.leave"})},style:{pointerEvents:o("interactive")?"auto":"none"}})}}}var{and:UQ,not:R5}=as(),$Q={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){return{id:"x",openDelay:1e3,closeDelay:500,closeOnPointerDown:!0,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,closeOnClick:!0,disabled:!1,...e,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:n}){e([()=>n("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:UQ("noVisibleTooltip",R5("hasPointerMoveOpened")),target:"opening"},{guard:R5("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>Ni.id===null,isVisible:({prop:e})=>e("id")===Ni.id,isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{Ni.id=e("id")},clearGlobalId:({prop:e})=>{e("id")===Ni.id&&(Ni.id=null)},invokeOnOpen:({prop:e})=>{var t;(t=e("onOpenChange"))==null||t({open:!0})},invokeOnClose:({prop:e})=>{var t;(t=e("onOpenChange"))==null||t({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:n,scope:r})=>{if(t.type!=="positioning.set")return;const a=()=>_5(r);return Fa(iy(r),a,{...n("positioning"),...t.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility:({prop:e,event:t,send:n})=>{queueMicrotask(()=>{n({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>{var t;return LK({root:(t=e.getRootNode)==null?void 0:t.call(e)})},trackPositioning:({context:e,prop:t,scope:n})=>{e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const r=()=>_5(n);return Fa(iy(n),r,{...t("positioning"),defer:!0,onComplete(a){e.set("currentPlacement",a.placement)}})},trackPointerlockChange:({send:e,scope:t})=>{const n=t.getDoc();return In(n,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:n})=>{if(!t("closeOnScroll"))return;const r=iy(n);if(!r)return;const i=D9(r).map(o=>In(o,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{i.forEach(o=>o==null?void 0:o())}},trackStore:({prop:e,send:t})=>{let n;return queueMicrotask(()=>{n=bZ(Ni,()=>{Ni.id!==e("id")&&t({type:"close",src:"id.change"})})}),()=>n==null?void 0:n()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?In(document,"keydown",r=>{xq(r)||r.key==="Escape"&&(r.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t})=>{const n=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay:({send:e,prop:t})=>{const n=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(n)}}}};Xe()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const HQ=e=>{const t=w.useId(),{getRootNode:n}=q0(),{dir:r}=j9(),a={id:t,dir:r,getRootNode:n,...e},i=J0($Q,a);return BQ(i,nw)},VQ=e=>{const[t,{children:n,...r}]=F9(e),a=HQ(r),i=$9(Qn({present:a.open},t));return d.jsx(tL,{value:a,children:d.jsx(H9,{value:i,children:n})})},GQ=e=>{const[t,{value:n,children:r}]=F9(e),a=$9(Qn({present:n.open},t));return d.jsx(tL,{value:n,children:d.jsx(H9,{value:a,children:r})})},uL=w.forwardRef((e,t)=>{const n=zp(),r=Qn(n.getTriggerProps(),e);return d.jsx(ia.button,{...r,ref:t})});uL.displayName="TooltipTrigger";function cL(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const WQ=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const a=t(`colors.${n}`),i=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const o=i?Number(i)*100+"%":`${r}%`,s=a??n;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${o}, transparent)`}},Dt=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const a="--mix-"+e;return{[a]:r.value,[e]:`var(${a}, ${r.color})`}};function yv(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>yv(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=yv(e[n]);return t}function vv(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Rr(e[n])&&Rr(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Rr(t[n]))vv(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)Rr(e[n][r])&&Rr(t[n][r])?vv(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function tc(e,...t){for(const n of t)vv(e,n);return e}const qQ=e=>e,Mn=e=>e,Ge=e=>e,YQ=e=>e,XQ=e=>e,dL=e=>e,KQ=e=>e,ZQ=e=>e,QQ=e=>e;function pL(){const e=t=>t;return new Proxy(e,{get(){return e}})}const xn=pL(),vw=pL(),fL=e=>e,hL=(...e)=>tc({},...e.map(yv)),JQ=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function eJ(e){return`${e}`.replace(JQ,t=>`\\${t}`)}const tJ=/[A-Z]/g;function nJ(e){return e.replace(tJ,t=>`-${t.toLowerCase()}`)}function gL(e,t={}){const{fallback:n="",prefix:r=""}=t,a=nJ(["-",r,eJ(e)].filter(Boolean).join("-"));return{var:a,ref:`var(${a}${n?`, ${n}`:""})`}}const rJ=e=>/^var\(--.+\)$/.test(e),jn=(e,t)=>t!=null?`${e}(${t})`:t,fs=e=>{if(rJ(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},N5=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),aJ=Dt("borderColor"),Ci=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),iJ=qQ({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Vl=gL("bg-currentcolor"),I5=e=>e===Vl.ref||e==="currentBg",Ot=e=>({...e("colors"),currentBg:Vl}),oJ=fL({conditions:iJ,utilities:{background:{values:Ot,shorthand:["bg"],transform(e,t){if(I5(t.raw))return{background:Vl.ref};const n=Dt("background")(e,t);return{...n,[Vl.var]:n==null?void 0:n.background}}},backgroundColor:{values:Ot,shorthand:["bgColor"],transform(e,t){if(I5(t.raw))return{backgroundColor:Vl.ref};const n=Dt("backgroundColor")(e,t);return{...n,[Vl.var]:n==null?void 0:n.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:Ot,transform:Dt("--gradient-from")},gradientTo:{values:Ot,transform:Dt("--gradient-to")},gradientVia:{values:Ot,transform(e,t){return{...Dt("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Ot,transform:Dt("borderColor")},borderTopColor:{values:Ot,transform:Dt("borderTopColor")},borderBlockStartColor:{values:Ot,transform:Dt("borderBlockStartColor")},borderBottomColor:{values:Ot,transform:Dt("borderBottomColor")},borderBlockEndColor:{values:Ot,transform:Dt("borderBlockEndColor")},borderLeftColor:{values:Ot,transform:Dt("borderLeftColor")},borderInlineStartColor:{values:Ot,shorthand:["borderStartColor"],transform:Dt("borderInlineStartColor")},borderRightColor:{values:Ot,transform:Dt("borderRightColor")},borderInlineEndColor:{values:Ot,shorthand:["borderEndColor"],transform:Dt("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Ot,transform:Dt("color")},fill:{values:Ot,transform:Dt("fill")},stroke:{values:Ot,transform:Dt("stroke")},accentColor:{values:Ot,transform:Dt("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:Ot,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":aJ(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Ot,transform:Dt("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":jn("blur",e)})},brightness:{transform:e=>({"--brightness":jn("brightness",e)})},contrast:{transform:e=>({"--contrast":jn("contrast",e)})},grayscale:{transform:e=>({"--grayscale":jn("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":jn("hue-rotate",fs(e))})},invert:{transform:e=>({"--invert":jn("invert",e)})},saturate:{transform:e=>({"--saturate":jn("saturate",e)})},sepia:{transform:e=>({"--sepia":jn("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":jn("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":jn("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":jn("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":jn("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":jn("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":jn("hue-rotate",fs(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":jn("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":jn("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":jn("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":jn("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Ot,transform:Dt("outlineColor")},focusRing:N5("&:is(:focus, [data-focus])"),focusVisibleRing:N5("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Ot,transform:Dt("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:Ot,transform:Dt("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:Ot,transform:Dt("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Ot,transform:Dt("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Ot,transform:Dt("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":fs(e)})},skewY:{transform:e=>({"--skew-y":fs(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:fs(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":fs(e)}}},rotateY:{transform(e){return{"--rotate-y":fs(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Ci("all");case"position":return Ci("left, right, top, bottom, inset-inline, inset-block");case"colors":return Ci("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Ci("opacity");case"shadow":return Ci("box-shadow");case"transform":return Ci("transform");case"size":return Ci("width, height");case"backgrounds":return Ci("background, background-color, background-image, background-position");case"common":return Ci("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},srOnly:{values:{type:"boolean"},transform(e){return sJ[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:Ot,transform:Dt("caretColor")},cursor:{values:"cursor"}}}),sJ={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var lJ="",uJ=lJ.split(","),cJ="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",dJ=cJ.split(",").concat(uJ),pJ=new Map(dJ.map(e=>[e,!0]));function fJ(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var hJ=/&|@/,gJ=fJ(e=>pJ.has(e)||e.startsWith("--")||hJ.test(e));const mJ=e=>e!=null;function Zi(e,t,n={}){const{stop:r,getKey:a}=n;function i(o,s=[]){if(Rr(o)||Array.isArray(o)){const l={};for(const[u,c]of Object.entries(o)){const p=(a==null?void 0:a(u,c))??u,f=[...s,p];if(r!=null&&r(o,f))return t(o,s);const h=i(c,f);mJ(h)&&(l[p]=h)}return l}return t(o,s)}return i(e)}function mL(e,t){return Array.isArray(e)?e.map(n=>t(n)):Rr(e)?Zi(e,n=>t(n)):e!=null?t(e):e}function bJ(e,t){const n={};return Zi(e,(r,a)=>{r&&(n[a.join(".")]=r.value)},{stop:t}),n}var yJ=qd;qd.default=qd;qd.stable=vL;qd.stableStringify=vL;var Bg="[...]",bL="[Circular]",Hs=[],Ts=[];function yL(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function qd(e,t,n,r){typeof r>"u"&&(r=yL()),xv(e,"",0,[],void 0,0,r);var a;try{Ts.length===0?a=JSON.stringify(e,t,n):a=JSON.stringify(e,xL(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Hs.length!==0;){var i=Hs.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function su(e,t,n,r){var a=Object.getOwnPropertyDescriptor(r,n);a.get!==void 0?a.configurable?(Object.defineProperty(r,n,{value:e}),Hs.push([r,n,t,a])):Ts.push([t,n,e]):(r[n]=e,Hs.push([r,n,t]))}function xv(e,t,n,r,a,i,o){i+=1;var s;if(typeof e=="object"&&e!==null){for(s=0;s<r.length;s++)if(r[s]===e){su(bL,e,t,a);return}if(typeof o.depthLimit<"u"&&i>o.depthLimit){su(Bg,e,t,a);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){su(Bg,e,t,a);return}if(r.push(e),Array.isArray(e))for(s=0;s<e.length;s++)xv(e[s],s,s,r,e,i,o);else{var l=Object.keys(e);for(s=0;s<l.length;s++){var u=l[s];xv(e[u],u,s,r,e,i,o)}}r.pop()}}function vJ(e,t){return e<t?-1:e>t?1:0}function vL(e,t,n,r){typeof r>"u"&&(r=yL());var a=Sv(e,"",0,[],void 0,0,r)||e,i;try{Ts.length===0?i=JSON.stringify(a,t,n):i=JSON.stringify(a,xL(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Hs.length!==0;){var o=Hs.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function Sv(e,t,n,r,a,i,o){i+=1;var s;if(typeof e=="object"&&e!==null){for(s=0;s<r.length;s++)if(r[s]===e){su(bL,e,t,a);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&i>o.depthLimit){su(Bg,e,t,a);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){su(Bg,e,t,a);return}if(r.push(e),Array.isArray(e))for(s=0;s<e.length;s++)Sv(e[s],s,s,r,e,i,o);else{var l={},u=Object.keys(e).sort(vJ);for(s=0;s<u.length;s++){var c=u[s];Sv(e[c],c,s,r,e,i,o),l[c]=e[c]}if(typeof a<"u")Hs.push([a,t,e]),a[t]=l;else return l}r.pop()}}function xL(e){return e=typeof e<"u"?e:function(t,n){return n},function(t,n){if(Ts.length>0)for(var r=0;r<Ts.length;r++){var a=Ts[r];if(a[1]===t&&a[0]===n){n=a[2],Ts.splice(r,1);break}}return e.call(this,t,n)}}const xJ=dp(yJ),Na=e=>{const t=Object.create(null);function n(...r){const a=r.map(i=>xJ(i)).join("|");return t[a]===void 0&&(t[a]=e(...r)),t[a]}return n},SL=16,Ug="px",xw="em",bd="rem";function wL(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${Ug}|${xw}|${bd}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function EL(e=""){if(typeof e=="number")return`${e}px`;const t=wL(e);if(!t||t===Ug)return e;if(t===xw||t===bd)return`${parseFloat(e)*SL}${Ug}`}function kL(e=""){const t=wL(e);if(!t||t===bd)return e;if(t===xw)return`${parseFloat(e)}${bd}`;if(t===Ug)return`${parseFloat(e)/SL}${bd}`}const SJ=e=>e.charAt(0).toUpperCase()+e.slice(1);function wJ(e){const t=EJ(e),n=Object.fromEntries(t);function r(f){return n[f]}function a(f){return yl(r(f))}function i(){const f=Object.keys(n),h=kJ(f),g=f.flatMap(y=>{const x=r(y),m=[`${y}Down`,yl({max:Ih(x.min)})],v=[y,yl({min:x.min})],b=[`${y}Only`,a(y)];return[v,b,m]}).filter(([,y])=>y!=="").concat(h.map(([y,x])=>{const m=r(y),v=r(x);return[`${y}To${SJ(x)}`,yl({min:m.min,max:Ih(v.min)})]}));return Object.fromEntries(g)}function o(){const f=i();return Object.fromEntries(Object.entries(f))}const s=o(),l=f=>s[f];function u(){return["base",...Object.keys(n)]}function c(f){return yl({min:r(f).min})}function p(f){return yl({max:Ih(r(f).min)})}return{values:Object.values(n),only:a,keys:u,conditions:s,getCondition:l,up:c,down:p}}function Ih(e){const t=parseFloat(EL(e)??"")-.04;return kL(`${t}px`)}function EJ(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10)<parseInt(r,10)?-1:1).map(([n,r],a,i)=>{var s;let o=null;return a<=i.length-1&&(o=(s=i[a+1])==null?void 0:s[1]),o!=null&&(o=Ih(o)),[n,{name:n,min:kL(r),max:o}]})}function kJ(e){const t=[];return e.forEach((n,r)=>{let a=r;a++;let i=e[a];for(;i;)t.push([n,i]),a++,i=e[a]}),t}function yl({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const TJ=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),CJ=e=>{const{breakpoints:t,conditions:n={}}=e,r=TJ(n,(c,p)=>[`_${c}`,p]),a=Object.assign({},r,t.conditions);function i(){return Object.keys(a)}function o(c){return i().includes(c)||/^@|&|&$/.test(c)||c.startsWith("_")}function s(c){return c.filter(p=>p!=="base").sort((p,f)=>{const h=o(p),g=o(f);return h&&!g?1:!h&&g?-1:0})}function l(c){return c.startsWith("@breakpoint")?t.getCondition(c.replace("@breakpoint ","")):c}function u(c){return Reflect.get(a,c)||c}return{keys:i,sort:s,has:o,resolve:u,breakpoints:t.keys(),expandAtRule:l}},TL=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),AJ=TL("width"),_J=TL("height"),CL=e=>({isMin:P5(e.minMax,e.maxMin,e.min),isMax:P5(e.maxMin,e.minMax,e.max)}),{isMin:wv,isMax:O5}=CL(AJ),{isMin:Ev,isMax:D5}=CL(_J),L5=/print/i,M5=/^print$/i,RJ=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,NJ=/(\d)/,Yc=Number.MAX_VALUE,IJ={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function z5(e){const t=RJ.exec(e)||(wv(e)||Ev(e)?NJ.exec(e):null);if(!t)return Yc;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(IJ[r]||1)}function P5(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function OJ(e,t){const n=L5.test(e),r=M5.test(e),a=L5.test(t),i=M5.test(t);return n&&a?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:a?-1:null}const DJ=Na((e,t)=>{const n=OJ(e,t);if(n!==null)return n;const r=wv(e)||Ev(e),a=O5(e)||D5(e),i=wv(t)||Ev(t),o=O5(t)||D5(t);if(r&&o)return-1;if(a&&i)return 1;const s=z5(e),l=z5(t);return s===Yc&&l===Yc?e.localeCompare(t):s===Yc?1:l===Yc?-1:s!==l?s>l?a?-1:1:a?1:-1:e.localeCompare(t)});function j5(e){return e.sort(([t],[n])=>DJ(t,n))}function AL(e){const t=[],n=[],r={};for(const[o,s]of Object.entries(e))o.startsWith("@media")?t.push([o,s]):o.startsWith("@container")?n.push([o,s]):Rr(s)?r[o]=AL(s):r[o]=s;const a=j5(t),i=j5(n);return{...r,...Object.fromEntries(a),...Object.fromEntries(i)}}const _L=/\s*!(important)?/i,LJ=e=>oi(e)?_L.test(e):!1,MJ=e=>oi(e)?e.replace(_L,"").trim():e;function RL(e){const{transform:t,conditions:n,normalize:r}=e,a=jJ(e);return Na(function(...o){const s=a(...o),l=r(s),u=Object.create(null);return Zi(l,(c,p)=>{const f=LJ(c);if(c==null)return;const[h,...g]=n.sort(p).map(n.resolve);f&&(c=MJ(c));let y=t(h,c)??Object.create(null);y=Zi(y,x=>oi(x)&&f?`${x} !important`:x,{getKey:x=>n.expandAtRule(x)}),zJ(u,g.flat(),y)}),AL(u)})}function zJ(e,t,n){let r=e;for(const a of t)a&&(r[a]||(r[a]=Object.create(null)),r=r[a]);tc(r,n)}function PJ(...e){return e.filter(t=>Rr(t)&&Object.keys(Op(t)).length>0)}function jJ(e){function t(n){const r=PJ(...n);return r.length===1?r:r.map(a=>e.normalize(a))}return Na(function(...r){return tc({},...t(r))})}const NL=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function FJ(e){const{css:t,conditions:n,normalize:r,layers:a}=e;function i(s={}){const{base:l,variants:u,defaultVariants:c,compoundVariants:p}=NL(s),f=RL({conditions:n,normalize:r,transform(v,b){var S;return(S=u[v])==null?void 0:S[b]}}),h=(v={})=>{const b=r({...c,...Op(v)});let S={...l};tc(S,f(b));const C=o(p,b);return a.wrap("recipes",t(S,C))},g=Object.keys(u),y=v=>{const b=cL(v,["recipe"]),[S,C]=iu(b,g);return g.includes("colorPalette")||(S.colorPalette=v.colorPalette||c.colorPalette),g.includes("orientation")&&(C.orientation=v.orientation),[S,C]},x=Object.fromEntries(Object.entries(u).map(([v,b])=>[v,Object.keys(b)]));return Object.assign(v=>t(h(v)),{className:s.className,__cva__:!0,variantMap:x,variantKeys:g,raw:h,config:s,splitVariantProps:y,merge(v){return i(BJ(e)(this,v))}})}function o(s,l){let u={};return s.forEach(c=>{Object.entries(c).every(([f,h])=>f==="css"?!0:(Array.isArray(h)?h:[h]).some(y=>l[f]===y))&&(u=t(u,c.css))}),u}return i}function BJ(e){const{css:t}=e;return function(r,a){const i=NL(a.config),o=h9(r.variantKeys,Object.keys(a.variants)),s=t(r.base,i.base),l=Object.fromEntries(o.map(f=>[f,t(r.config.variants[f],i.variants[f])])),u=tc(r.config.defaultVariants,i.defaultVariants),c=[...r.compoundVariants,...i.compoundVariants];return{className:Kr(r.className,a.className),base:s,variants:l,defaultVariants:u,compoundVariants:c}}}const UJ={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},F5={reset:0,base:1,tokens:2,recipes:3};function $J(e){const t=e.layers??UJ,r=Object.values(t).sort((a,i)=>F5[a]-F5[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(a,i){return e.disableLayers?i:{[`@layer ${t[a]}`]:i}}}}function HJ(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:a}=t;return function(i){return Zi(i,n,{stop:o=>Array.isArray(o),getKey:r?a:void 0})}}function VJ(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Rr(t)?t:{};let a="";n&&r==="parent"?a=`${n} `:n&&r==="element"&&(a=`&${n}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},o={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const s=Object.entries(i).reduce((l,[u,c])=>(l[u]={[a]:c},l),{});Object.assign(o,s)}else a?o[a]=i:Object.assign(o,i);return o}function GJ(e){const{conditions:t,isValidProperty:n}=e;return function(a){return Zi(a,i=>i,{getKey:(i,o)=>Rr(o)&&!t.has(i)&&!n(i)?WJ(i).map(s=>"&"+s).join(", "):i})}}function WJ(e){const t=[];let n=0,r="",a=!1;for(let i=0;i<e.length;i++){const o=e[i];if(o==="\\"&&!a){a=!0,r+=o;continue}if(a){a=!1,r+=o;continue}o==="("?n++:o===")"&&n--,o===","&&n===0?(t.push(r.trim()),r=""):r+=o}return r&&t.push(r.trim()),t}const qJ=(e={})=>{const t=a=>{var i;return{base:((i=e.base)==null?void 0:i[a])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?YJ(e.compoundVariants,a):[]}},r=(e.slots??[]).map(a=>[a,t(a)]);for(const[a,i]of Object.entries(e.variants??{}))for(const[o,s]of Object.entries(i))r.forEach(([l,u])=>{var c;(c=u.variants)[a]??(c[a]={}),u.variants[a][o]=s[l]??{}});return Object.fromEntries(r)},YJ=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function XJ(e){const{cva:t}=e;return function(r={}){const a=Object.entries(qJ(r)).map(([p,f])=>[p,t(f)]);function i(p){const f=a.map(([h,g])=>[h,g(p)]);return Object.fromEntries(f)}const o=r.variants??{},s=Object.keys(o);function l(p){var y;const f=cL(p,["recipe"]),[h,g]=iu(f,s);return s.includes("colorPalette")||(h.colorPalette=p.colorPalette||((y=r.defaultVariants)==null?void 0:y.colorPalette)),s.includes("orientation")&&(g.orientation=p.orientation),[h,g]}const u=Object.fromEntries(Object.entries(o).map(([p,f])=>[p,Object.keys(f)]));let c={};return r.className&&(c=Object.fromEntries(r.slots.map(p=>[p,`${r.className}__${p}`]))),Object.assign(i,{variantMap:u,variantKeys:s,splitVariantProps:l,classNameMap:c})}}const KJ=()=>e=>Array.from(new Set(e)),ZJ=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,QJ=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},IL=e=>(e+"").replace(ZJ,QJ),OL=(e,t)=>{let n="",r=0,a="char",i="",o="";const s=[];for(;r<e.length;){const l=e[r];if(l==="{"){const c=e.indexOf("}",r);if(c===-1)break;const p=e.slice(r+1,c),f=t(p);n+=f??p,r=c+1;continue}if(a==="token"&&l===","){e[r]===""&&r++,a="fallback",s.push(a);const c=t(i);c!=null&&c.endsWith(")")&&(n+=c.slice(0,-1)),i="",o="";continue}if(a==="fallback"&&o+l===", var("){const f=JJ(e.slice(r+1))+r+1,h=e.slice(r+1,f);if(f===-1)break;n+=", var("+h+")",r=f+1,a=s.pop()??a,o="";continue}if(a==="token"||a==="fallback"){if(r++,l===")"){a=s.pop()??a??"char",o+=l;const c=i&&(t(i)??IL(i));if(o){if(o=o.slice(1).trim(),!o.startsWith("token(")&&o.endsWith(")")&&(o=o.slice(0,-1)),o.includes("token(")){const f=OL(o,t);f&&(o=f.slice(0,-1))}else if(o){const f=t(o);f&&(o=f)}}const p=n.at(-1);o?p!=null&&p.trim()?n+=c.slice(0,-1)+(", "+o+")"):n+=o:n+=c||")",i="",o="",a="char";continue}a==="token"&&(i+=l),a==="fallback"&&(o+=l);continue}const u=e.indexOf("token(",r);if(u!==-1){const c=u+6;n+=e.slice(r,u),r=c,a="token",s.push(a);continue}n+=l,r++}return n},JJ=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if(r==="(")n.push(r);else if(r===")"&&(n.pop(),n.length===0))return t;t++}return t};function DL(e){const t={};return e.forEach((n,r)=>{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const LL=/({([^}]*)})/g,eee=/[{}]/g,tee=/\w+\.\w+/,ML=e=>{if(!oi(e))return[];const t=e.match(LL);return t?t.map(n=>n.replace(eee,"")).map(n=>n.trim()):[]},nee=e=>LL.test(e);function zL(e){var n,r,a;if(!((n=e.extensions)!=null&&n.references))return((a=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:a.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((i,o)=>{const s=t[o];if(s.extensions.conditions)return i;const l=zL(s);return i.replace(`{${o}}`,l)},e.value),delete e.extensions.references,e.value}function PL(e){return Rr(e)&&e.reference?e.reference:String(e)}const sm=(e,...t)=>t.map(PL).join(` ${e} `).replace(/calc/g,""),B5=(...e)=>`calc(${sm("+",...e)})`,U5=(...e)=>`calc(${sm("-",...e)})`,kv=(...e)=>`calc(${sm("*",...e)})`,$5=(...e)=>`calc(${sm("/",...e)})`,H5=e=>{const t=PL(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:kv(t,-1)},Rl=Object.assign(e=>({add:(...t)=>Rl(B5(e,...t)),subtract:(...t)=>Rl(U5(e,...t)),multiply:(...t)=>Rl(kv(e,...t)),divide:(...t)=>Rl($5(e,...t)),negate:()=>Rl(H5(e)),toString:()=>e.toString()}),{add:B5,subtract:U5,multiply:kv,divide:$5,negate:H5}),ree={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:a,registerToken:i}=e;n.filter(({extensions:s})=>s.category==="spacing").forEach(s=>{const l=s.path.slice(),u=r(l,t);if(oi(s.value)&&s.value==="0rem")return;const c=structuredClone(s);Object.assign(c.extensions,{negative:!0,prop:`-${s.extensions.prop}`,originalPath:l}),c.value=Rl.negate(u.ref);const p=c.path[c.path.length-1];p!=null&&(c.path[c.path.length-1]=`-${p}`),c.path&&(c.name=a(c.path)),i(c)})}},aee=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),iee={enforce:"post",transform(e){e.allTokens.filter(n=>aee.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:EL(n.value)})})}},oee={enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,a=t.filter(({extensions:s})=>s.category==="colors"),i=new Map,o=new Map;a.forEach(s=>{const{colorPalette:l}=s.extensions;l&&(l.keys.forEach(u=>{i.set(r(u),u)}),l.roots.forEach(u=>{var f;const c=r(u),p=o.get(c)||[];if(p.push(s),o.set(c,p),s.extensions.default&&u.length===1){const h=(f=l.keys[0])==null?void 0:f.filter(Boolean);if(!h.length)return;const g=u.concat(h);i.set(r(g),[])}}))}),i.forEach(s=>{const l=["colors","colorPalette",...s].filter(Boolean),u=r(l),c=r(l.slice(1));n({name:u,value:u,originalValue:u,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:c,virtual:!0}},"pre")})}},see={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},lee=[ree,oee,iee,see],uee={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:a,originalPath:i}=e.extensions,o=a?i:e.path;return{cssVar:r(o.filter(Boolean),n)}}},cee={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,a=ML(e.value);return a.length&&a.forEach(i=>{const o=r(i.split("."),n);e.value=e.value.replace(`{${o.ref}}`,o)}),e.value}},dee={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const s=[...e.path];s.shift(),n=s}if(n.length===0)return{};const r=n.reduce((s,l,u,c)=>{const p=c.slice(0,u+1);return s.push(p),s},[]),a=n[0],i=t.formatTokenName(n),o=e.path.slice(e.path.indexOf(a)+1).reduce((s,l,u,c)=>(s.push(c.slice(u)),s),[]);return o.length===0&&o.push([""]),{colorPalette:{value:i,roots:r,keys:o}}}},pee=[uee,cee,dee],V5=e=>Rr(e)&&Object.prototype.hasOwnProperty.call(e,"value");function fee(e){return e?{breakpoints:mL(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function hee(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:a={}}=e,i=X=>X.join("."),o=(X,te)=>gL(X.join("-"),{prefix:te}),s=[],l=new Map,u=new Map,c=new Map,p=new Map,f=new Map,h=new Map,g=new Map,y=new Map,x=[];function m(X,te){s.push(X),l.set(X.name,X),te&&y.forEach(ie=>{ie.enforce===te&&D(ie,X)})}const v=fee(a),b=Op({...n,breakpoints:v.breakpoints,sizes:{...n.sizes,...v.sizes}});function S(){Zi(b,(X,te)=>{const ie=te.includes("DEFAULT");te=G5(te);const he=te[0],le=i(te),ce=oi(X)?{value:X}:X,Re={value:ce.value,originalValue:ce.value,name:le,path:te,extensions:{condition:"base",originalPath:te,category:he,prop:i(te.slice(1))}};ie&&(Re.extensions.default=!0),m(Re)},{stop:V5}),Zi(r,(X,te)=>{const ie=te.includes("DEFAULT");te=jL(G5(te));const he=te[0],le=i(te),ce=oi(X.value)?{value:{base:X.value}}:X,Re={value:ce.value.base||"",originalValue:ce.value.base||"",name:le,path:te,extensions:{originalPath:te,category:he,conditions:ce.value,condition:"base",prop:i(te.slice(1))}};ie&&(Re.extensions.default=!0),m(Re)},{stop:V5})}function C(X){return l.get(X)}function k(X){const{condition:te}=X.extensions;te&&(u.has(te)||u.set(te,new Set),u.get(te).add(X))}function R(X){const{category:te,prop:ie}=X.extensions;te&&(g.has(te)||g.set(te,new Map),g.get(te).set(ie,X))}function O(X){const{condition:te,negative:ie,virtual:he,cssVar:le}=X.extensions;ie||he||!te||!le||(c.has(te)||c.set(te,new Map),c.get(te).set(le.var,X.value))}function N(X){const{category:te,prop:ie,cssVar:he,negative:le}=X.extensions;if(!te)return;h.has(te)||h.set(te,new Map);const ce=le?X.extensions.conditions?X.originalValue:X.value:he.ref;h.get(te).set(ie,ce),f.set([te,ie].join("."),ce)}function _(X){const{colorPalette:te,virtual:ie,default:he}=X.extensions;!te||ie||te.roots.forEach(le=>{var Rt;const ce=i(le);p.has(ce)||p.set(ce,new Map);const Re=mee([...X.path],[...le]),Be=i(Re),De=C(Be);if(!De||!De.extensions.cssVar)return;const{var:Ke}=De.extensions.cssVar;if(p.get(ce).set(Ke,X.extensions.cssVar.ref),he&&le.length===1){const Nt=i(["colors","colorPalette"]),It=C(Nt);if(!It)return;const zn=i(X.path),En=C(zn);if(!En)return;const ln=(Rt=te.keys[0])==null?void 0:Rt.filter(Boolean);if(!ln.length)return;const kn=i(le.concat(ln));p.has(kn)||p.set(kn,new Map),p.get(kn).set(It.extensions.cssVar.var,En.extensions.cssVar.ref)}})}let L={};function I(){s.forEach(X=>{k(X),R(X),O(X),N(X),_(X)}),L=DL(h)}const P=(X,te)=>{var De;if(!X||typeof X!="string")return{invalid:!0,value:X};const[ie,he]=X.split("/");if(!ie||!he)return{invalid:!0,value:ie};const le=te(ie),ce=(De=C(`opacity.${he}`))==null?void 0:De.value;if(!ce&&isNaN(Number(he)))return{invalid:!0,value:ie};const Re=ce?Number(ce)*100+"%":`${he}%`,Be=le??ie;return{invalid:!1,color:Be,value:`color-mix(in srgb, ${Be} ${Re}, transparent)`}},M=Na((X,te)=>f.get(X)??te),F=Na(X=>L[X]||null),A=Na(X=>OL(X,te=>{if(!te)return;if(te.includes("/")){const he=P(te,le=>M(le));if(he.invalid)throw new Error("Invalid color mix at "+te+": "+he.value);return he.value}const ie=M(te);return ie||(tee.test(te)?IL(te):te)})),j={prefix:t,allTokens:s,tokenMap:l,registerToken:m,getByName:C,formatTokenName:i,formatCssVar:o,flatMap:f,cssVarMap:c,categoryMap:g,colorPaletteMap:p,getVar:M,getCategoryValues:F,expandReferenceInValue:A};function B(...X){X.forEach(te=>{y.set(te.name,te)})}function V(...X){x.push(...X)}function D(X,te){if(te.extensions.references||$S(X.match)&&!X.match(te))return;const he=(le=>X.transform(le,j))(te);switch(!0){case X.type==="extensions":Object.assign(te.extensions,he);break;case X.type==="value":te.value=he;break;default:te[X.type]=he;break}}function Z(X){x.forEach(te=>{te.enforce===X&&te.transform(j)})}function J(X){y.forEach(te=>{te.enforce===X&&s.forEach(ie=>{D(te,ie)})})}function H(){s.forEach(X=>{const te=gee(X);!te||te.length===0||te.forEach(ie=>{m(ie)})})}function se(X){return ML(X).map(ie=>C(ie)).filter(Boolean)}function we(){s.forEach(X=>{if(!nee(X.value))return;const te=se(X.value);X.extensions.references=te.reduce((ie,he)=>(ie[he.name]=he,ie),{})})}function xe(){s.forEach(X=>{zL(X)})}function pe(){Z("pre"),J("pre"),H(),we(),xe(),Z("post"),J("post"),I()}return S(),B(...pee),V(...lee),pe(),j}function G5(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function jL(e){return e.filter(t=>t!=="base")}function gee(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return Zi(t,(r,a)=>{const i=jL(a);if(!i.length)return;const o=structuredClone(e);o.value=r,o.extensions.condition=i.join(":"),n.push(o)}),n}function mee(e,t){const n=e.findIndex((r,a)=>t.every((i,o)=>e[a+o]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}KJ()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function bee(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function yee(e){const t=bee(e.config),n=e.tokens,r=new Map,a=new Map;function i(O,N){t[O]=N,o(O,N)}const o=(O,N)=>{const _=y(N);_&&(a.set(O,_),p(O,N))},s=()=>{for(const[O,N]of Object.entries(t))N&&o(O,N)},l=()=>{for(const[O,N]of Object.entries(t)){const{shorthand:_}=N??{};if(!_)continue;(Array.isArray(_)?_:[_]).forEach(I=>r.set(I,O))}},u=()=>{const O=DL(n.colorPaletteMap);i("colorPalette",{values:Object.keys(O),transform:Na(N=>O[N])})},c=new Map,p=(O,N)=>{if(!N)return;const _=y(N,I=>`type:Tokens["${I}"]`);if(typeof _=="object"&&_.type){c.set(O,new Set([`type:${_.type}`]));return}if(_){const I=new Set(Object.keys(_));c.set(O,I)}const L=c.get(O)??new Set;N.property&&c.set(O,L.add(`CssProperties["${N.property}"]`))},f=()=>{for(const[O,N]of Object.entries(t))N&&p(O,N)},h=(O,N)=>{const _=c.get(O)??new Set;c.set(O,new Set([..._,...N]))},g=()=>{const O=new Map;for(const[N,_]of c.entries()){if(_.size===0){O.set(N,["string"]);continue}const L=Array.from(_).map(I=>I.startsWith("CssProperties")?I:I.startsWith("type:")?I.replace("type:",""):JSON.stringify(I));O.set(N,L)}return O},y=(O,N)=>{const{values:_}=O,L=I=>{const P=N==null?void 0:N(I);return P?{[P]:P}:void 0};return oi(_)?(L==null?void 0:L(_))??n.getCategoryValues(_)??{}:Array.isArray(_)?_.reduce((I,P)=>(I[P]=P,I),{}):$S(_)?_(N?L:n.getCategoryValues):_},x=Na((O,N)=>({[O]:O.startsWith("--")?n.getVar(N,N):N})),m=Object.assign(n.getVar,{raw:O=>n.getByName(O)}),v=Na((O,N)=>{var M;const _=C(O);oi(N)&&!N.includes("_EMO_")&&(N=n.expandReferenceInValue(N));const L=t[_];if(!L)return x(_,N);const I=(M=a.get(_))==null?void 0:M[N];if(!L.transform)return x(O,I??N);const P=F=>WQ(F,m);return L.transform(I??N,{raw:N,token:m,utils:{colorMix:P}})});function b(){l(),u(),s(),f()}b();const S=r.size>0,C=Na(O=>r.get(O)??O);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:S,transform:v,shorthands:r,resolveShorthand:C,register:i,getTypes:g,addPropertyType:h}}function FL(...e){const t=hL(...e),{theme:n={},utilities:r={},globalCss:a={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:o="chakra",preflight:s}=t,l=$J(t),u=hee({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:o}),c=wJ(n.breakpoints??{}),p=CJ({conditions:t.conditions??{},breakpoints:c}),f=yee({config:r,tokens:u});function h(){const{textStyles:B,layerStyles:V,animationStyles:D}=n,Z=Op({textStyle:B,layerStyle:V,animationStyle:D});for(const[J,H]of Object.entries(Z)){const se=bJ(H??{},we=>Rr(we)&&"value"in we);f.register(J,{values:Object.keys(se),transform(we){return b(se[we])}})}}h(),f.addPropertyType("animationName",Object.keys(n.keyframes??{}));const g=new Set(["css",...f.keys(),...p.keys()]),y=Na(B=>g.has(B)||gJ(B)),x=B=>Array.isArray(B)?B.reduce((V,D,Z)=>{const J=p.breakpoints[Z];return D!=null&&(V[J]=D),V},{}):B,m=HJ({utility:f,normalize:x}),v=GJ({conditions:p,isValidProperty:y}),b=RL({transform:f.transform,conditions:p,normalize:m}),S=FJ({css:b,conditions:p,normalize:m,layers:l}),C=XJ({cva:S});function k(){const B={};for(const[V,D]of u.cssVarMap.entries()){const Z=Object.fromEntries(D);if(Object.keys(Z).length===0)continue;const J=V==="base"?i:p.resolve(V),H=J.startsWith("@"),se=b(v({[J]:H?{[i]:Z}:Z}));tc(B,se)}return l.wrap("tokens",B)}function R(){const B=Object.fromEntries(Object.entries(n.keyframes??{}).map(([D,Z])=>[`@keyframes ${D}`,Z])),V=Object.assign({},B,b(v(a)));return l.wrap("base",V)}function O(B){return iu(B,y)}function N(){const B=VJ({preflight:s});return l.wrap("reset",B)}const _=vee(u),L=(B,V)=>{var D;return((D=_.get(B))==null?void 0:D.value)||V};L.var=(B,V)=>{var D;return((D=_.get(B))==null?void 0:D.variable)||V};function I(B,V){var D;return((D=n.recipes)==null?void 0:D[B])??V}function P(B,V){var D;return((D=n.slotRecipes)==null?void 0:D[B])??V}function M(B){return Object.hasOwnProperty.call(n.recipes??{},B)}function F(B){return Object.hasOwnProperty.call(n.slotRecipes??{},B)}function A(B){return M(B)||F(B)}const j=[N(),R(),k()];return{$$chakra:!0,_config:t,_global:j,breakpoints:c,tokens:u,conditions:p,utility:f,token:L,properties:g,layers:l,isValidProperty:y,splitCssProps:O,normalizeValue:x,getTokenCss:k,getGlobalCss:R,getPreflightCss:N,css:b,cva:S,sva:C,getRecipe:I,getSlotRecipe:P,hasRecipe:A,isRecipe:M,isSlotRecipe:F}}function vee(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:a,conditions:i}=n.extensions,o=i||a?r.ref:n.value;t.set(n.name,{value:o,variable:r.ref})}),t}const xee={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},oy="var(--chakra-empty,/*!*/ /*!*/)",See=XQ({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":oy,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,oy])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,oy])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),wee=QQ({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),Eee=ZQ({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Sw=Mn({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),kee=Mn({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Wn=Mn({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:Tee,defaultVariants:Cee}=Sw,Aee=Mn({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:Tee,defaultVariants:Cee}),BL=Mn({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),_ee=Mn({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),Ree=Mn({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),Nee=Mn({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),fn=Mn({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),Iee=Mn({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:fn.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),Oee=Mn({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),Dee=Mn({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),Lee=Mn({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),qn=Mn({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}}},defaultVariants:{variant:"solid",size:"md"}}),Mee=Mn({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),zee=Mn({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),Pee=Mn({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),jee=Mn({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),Fee=Mn({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),Bee={badge:Sw,button:kee,code:Aee,container:_ee,heading:Ree,input:fn,inputAddon:Iee,kbd:Oee,link:Dee,mark:Lee,separator:Mee,skeleton:zee,skipNavLink:Pee,spinner:jee,textarea:Fee,icon:Nee,checkmark:Wn,radiomark:qn,colorSwatch:BL},Uee=vw.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.400}",_dark:"{colors.red.400}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.400}",_dark:"{colors.orange.400}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.400}",_dark:"{colors.green.400}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.400}",_dark:"{colors.blue.400}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.400}",_dark:"{colors.yellow.400}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.400}",_dark:"{colors.teal.400}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.400}",_dark:"{colors.purple.400}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.400}",_dark:"{colors.pink.400}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.400}",_dark:"{colors.cyan.400}"}}}}),$ee=vw.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Hee=vw.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),Vee=sD.extendWith("itemBody"),Gee=Ve("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),Wee=Ve("alert").parts("title","description","root","indicator","content"),qee=Ve("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Yee=Ve("blockquote").parts("root","icon","content","caption"),Xee=Ve("card").parts("root","header","body","footer","title","description"),Kee=Ve("checkbox-card",["root","control","label","description","addon","indicator","content"]),Zee=Ve("data-list").parts("root","item","itemLabel","itemValue"),Qee=gw.extendWith("header","body","footer","backdrop"),Jee=gw.extendWith("header","body","footer","backdrop"),ete=vD.extendWith("textarea"),tte=Ve("empty-state",["root","content","indicator","title","description"]),nte=SD.extendWith("requiredIndicator"),rte=kD.extendWith("content"),ate=TD.extendWith("itemContent","dropzoneContent","fileText"),ite=Ve("list").parts("root","item","indicator"),ote=RD.extendWith("itemCommand"),ste=Ve("select").parts("root","field","indicator"),lte=jD.extendWith("header","body","footer"),UL=yw.extendWith("itemAddon","itemIndicator"),ute=UL.extendWith("itemContent","itemDescription"),cte=UD.extendWith("itemIndicator"),dte=HD.extendWith("indicatorGroup"),pte=bD.extendWith("indicatorGroup","empty"),fte=GD.extendWith("markerIndicator"),hte=Ve("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),gte=Ve("status").parts("root","indicator"),mte=Ve("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),bte=WD.extendWith("indicator"),yte=Ve("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),vte=Ve("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),xte=Ve("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Ste=Ve("tag").parts("root","label","closeTrigger","startElement","endElement"),wte=Ve("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Ete=zK.extendWith("channelText"),kte=Ge({className:"chakra-accordion",slots:Vee.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),Tte=Ge({className:"chakra-action-bar",slots:Gee.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),Cte=Ge({slots:Wee.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),Ate=Ge({slots:cD.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),_te=Ge({className:"chakra-blockquote",slots:Yee.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),Rte=Ge({className:"chakra-breadcrumb",slots:qee.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),Nte=Ge({className:"chakra-card",slots:Xee.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}});var NN,IN,ON,DN,LN,MN,zN,PN,jN,FN,BN,UN,$N,HN;const Ite=Ge({slots:MK.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Wn.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(IN=(NN=Wn.variants)==null?void 0:NN.size)==null?void 0:IN.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(DN=(ON=Wn.variants)==null?void 0:ON.size)==null?void 0:DN.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(MN=(LN=Wn.variants)==null?void 0:LN.size)==null?void 0:MN.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(PN=(zN=Wn.variants)==null?void 0:zN.size)==null?void 0:PN.lg}},variant:{outline:{control:(FN=(jN=Wn.variants)==null?void 0:jN.variant)==null?void 0:FN.outline},solid:{control:(UN=(BN=Wn.variants)==null?void 0:BN.variant)==null?void 0:UN.solid},subtle:{control:(HN=($N=Wn.variants)==null?void 0:$N.variant)==null?void 0:HN.subtle}}},defaultVariants:{variant:"solid",size:"md"}});var VN,GN,WN,qN,YN,XN,KN;const Ote=Ge({slots:Kee.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Wn.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(VN=Wn.variants)==null?void 0:VN.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(GN=Wn.variants)==null?void 0:GN.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(WN=Wn.variants)==null?void 0:WN.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(qN=Wn.variants)==null?void 0:qN.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(YN=Wn.variants)==null?void 0:YN.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(XN=Wn.variants)==null?void 0:XN.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(KN=Wn.variants)==null?void 0:KN.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),Dte=Ge({slots:G9.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}});var ZN,QN,JN,eI,tI,nI,rI,aI,iI,oI,sI,lI,uI,cI,dI,pI,fI,hI;const Lte=Ge({className:"colorPicker",slots:Ete.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...BL.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...fn.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(QN=(ZN=fn.variants)==null?void 0:ZN.size)==null?void 0:QN["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(eI=(JN=fn.variants)==null?void 0:JN.size)==null?void 0:eI.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(nI=(tI=fn.variants)==null?void 0:tI.size)==null?void 0:nI.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(aI=(rI=fn.variants)==null?void 0:rI.size)==null?void 0:aI.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(oI=(iI=fn.variants)==null?void 0:iI.size)==null?void 0:oI.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(lI=(sI=fn.variants)==null?void 0:sI.size)==null?void 0:lI.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(cI=(uI=fn.variants)==null?void 0:uI.size)==null?void 0:cI["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(pI=(dI=fn.variants)==null?void 0:dI.variant)==null?void 0:pI.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(hI=(fI=fn.variants)==null?void 0:fI.variant)==null?void 0:hI.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Mte=Ge({className:"chakra-combobox",slots:pte.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),zte=Ge({slots:Zee.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),Pte=Ge({slots:Qee.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),jte=Ge({slots:Jee.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),W5=dL({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),Fte=Ge({slots:ete.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...W5,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"normal",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...W5,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),Bte=Ge({slots:tte.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),Ute=Ge({className:"chakra-field",slots:nte.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),$te=Ge({className:"fieldset",slots:rte.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),Hte=Ge({className:"chakra-file-upload",slots:ate.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),Vte=Ge({className:"chakra-hover-card",slots:_D.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),Gte=Ge({className:"chakra-list",slots:ite.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),Wte=Ge({className:"chakra-menu",slots:ote.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),Oh=Ge({className:"chakra-select",slots:dte.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}});var gI,mI;const qte=Ge({className:"chakra-native-select",slots:ste.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(gI=Oh.variants)==null?void 0:gI.variant.outline.trigger},subtle:{field:(mI=Oh.variants)==null?void 0:mI.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{field:{textStyle:"xs",ps:"2",pe:"6",height:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{field:{textStyle:"sm",ps:"2.5",pe:"8",height:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{field:{textStyle:"sm",ps:"3",pe:"8",height:"10"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{field:{textStyle:"md",ps:"4",pe:"8",height:"11"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{field:{textStyle:"md",ps:"4.5",pe:"10",height:"12"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Oh.defaultVariants});function Tv(e,t){const n={};for(const r in e){const a=t(r,e[r]);n[a[0]]=a[1]}return n}const q5=dL({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),Yte=Ge({className:"chakra-number-input",slots:LD.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...fn.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...q5,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...q5,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:fn.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:fn.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:fn.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:fn.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Tv(fn.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Y5,defaultVariants:Xte}=fn,Kte=Ge({className:"chakra-pin-input",slots:PD.keys(),base:{input:{...fn.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Tv(Y5.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Tv(Y5.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Xte}),Zte=Ge({className:"chakra-popover",slots:lte.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),Qte=Ge({slots:bw.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),Jte=Ge({className:"chakra-progress-circle",slots:bw.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),ene=Ge({slots:BD.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}});var bI,yI,vI,xI,SI,wI,EI;const tne=Ge({className:"chakra-radio-card",slots:ute.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:qn.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(bI=qn.variants)==null?void 0:bI.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(yI=qn.variants)==null?void 0:yI.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(vI=qn.variants)==null?void 0:vI.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(xI=qn.variants)==null?void 0:xI.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(SI=qn.variants)==null?void 0:SI.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(wI=qn.variants)==null?void 0:wI.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(EI=qn.variants)==null?void 0:EI.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}});var kI,TI,CI,AI,_I,RI,NI,II,OI,DI,LI,MI,zI,PI;const nne=Ge({className:"chakra-radio-group",slots:UL.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:qn.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(TI=(kI=qn.variants)==null?void 0:kI.variant)==null?void 0:TI.outline},subtle:{itemControl:(AI=(CI=qn.variants)==null?void 0:CI.variant)==null?void 0:AI.subtle},solid:{itemControl:(RI=(_I=qn.variants)==null?void 0:_I.variant)==null?void 0:RI.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(II=(NI=qn.variants)==null?void 0:NI.size)==null?void 0:II.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(DI=(OI=qn.variants)==null?void 0:OI.size)==null?void 0:DI.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(MI=(LI=qn.variants)==null?void 0:LI.size)==null?void 0:MI.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(PI=(zI=qn.variants)==null?void 0:zI.size)==null?void 0:PI.lg}}},defaultVariants:{size:"md",variant:"solid"}}),rne=Ge({className:"chakra-rating-group",slots:cte.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),ane=Ge({className:"chakra-segment-group",slots:$D.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),ine=Ge({className:"chakra-slider",slots:fte.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),one=Ge({className:"chakra-stat",slots:hte.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),sne=Ge({className:"chakra-status",slots:gte.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),lne=Ge({className:"chakra-steps",slots:mte.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),une=Ge({slots:bte.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),cne=Ge({className:"chakra-table",slots:yte.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),dne=Ge({slots:xte.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}});var jI;const ca=(jI=Sw.variants)==null?void 0:jI.variant,pne=Ge({slots:Ste.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:ca==null?void 0:ca.subtle},solid:{root:ca==null?void 0:ca.solid},outline:{root:ca==null?void 0:ca.outline},surface:{root:ca==null?void 0:ca.surface}}},defaultVariants:{size:"md",variant:"surface"}}),fne=Ge({slots:wte.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),hne=Ge({slots:vte.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),gne=Ge({slots:oL.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),mne={accordion:kte,actionBar:Tte,alert:Cte,avatar:Ate,blockquote:_te,breadcrumb:Rte,card:Nte,checkbox:Ite,checkboxCard:Ote,collapsible:Dte,dataList:zte,dialog:Pte,drawer:jte,editable:Fte,emptyState:Bte,field:Ute,fieldset:$te,fileUpload:Hte,hoverCard:Vte,list:Gte,menu:Wte,nativeSelect:qte,numberInput:Yte,pinInput:Kte,popover:Zte,progress:Qte,progressCircle:Jte,radioCard:tne,radioGroup:nne,ratingGroup:rne,segmentGroup:ane,select:Oh,combobox:Mte,slider:ine,stat:one,steps:lne,switch:une,table:cne,tabs:dne,tag:pne,toast:hne,tooltip:gne,status:sne,timeline:fne,colorPicker:Lte,qrCode:ene},bne=KQ({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),yne=xn.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),vne=xn.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),xne=xn.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),Sne=xn.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),wne=xn.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),Ene=xn.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),kne=xn.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),Tne=xn.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),Cne=xn.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),Ane=xn.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),X5='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',_ne=xn.fonts({heading:{value:`Inter, ${X5}`},body:{value:`Inter, ${X5}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Rne=YQ({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),Nne=xn.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Ine=xn.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),One=xn.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),$L=xn.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),Dne=xn.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),Lne=xn.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),Mne=xn.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),zne=xn.sizes({...Dne,...$L,...Mne,...Lne}),Pne=xn.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),jne=fL({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:See,theme:{breakpoints:xee,keyframes:Rne,tokens:{aspectRatios:vne,animations:yne,blurs:xne,borders:Sne,colors:wne,durations:kne,easings:Tne,fonts:_ne,fontSizes:Cne,fontWeights:Ane,letterSpacings:Nne,lineHeights:Ine,radii:One,spacing:$L,sizes:zne,zIndex:Pne,cursor:Ene},semanticTokens:{colors:Uee,shadows:Hee,radii:$ee},recipes:Bee,slotRecipes:mne,textStyles:bne,layerStyles:wee,animationStyles:Eee}}),HL=hL(oJ,jne);FL(HL);function Fne(e){const{key:t,recipe:n}=e,r=V0();return w.useMemo(()=>{const a=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(a))},[t,n,r])}const Bne=e=>e.charAt(0).toUpperCase()+e.slice(1),ww=e=>{const{key:t,recipe:n}=e,r=Bne(t||n.className||"Component"),[a,i]=ru({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[o,s]=ru({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,u]=ru({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function c(g){const{unstyled:y,...x}=g,m=Fne({key:t,recipe:x.recipe||n}),[v,b]=w.useMemo(()=>m.splitVariantProps(x),[x,m]);return{styles:w.useMemo(()=>y?eG:m(v),[y,v,m]),classNames:m.classNameMap,props:b}}function p(g,y={}){const{defaultProps:x}=y,m=v=>{const b=u(),S=w.useMemo(()=>Bd(x,b,v),[b,v]),{styles:C,classNames:k,props:R}=c(S);return d.jsx(a,{value:C,children:d.jsx(o,{value:k,children:d.jsx(g,{...R})})})};return m.displayName=g.displayName||g.name,m}return{StylesProvider:a,ClassNamesProvider:o,PropsProvider:l,usePropsContext:u,useRecipeResult:c,withProvider:(g,y,x)=>{const{defaultProps:m,...v}=x??{},b=Lr(g,{},v),S=w.forwardRef((C,k)=>{var M;const R=u(),O=w.useMemo(()=>Bd(m??{},R,C),[R,C]),{styles:N,props:_,classNames:L}=c(O),I=L[y],P=d.jsx(a,{value:N,children:d.jsx(o,{value:L,children:d.jsx(b,{ref:k,..._,css:[N[y],O.css],className:Kr(O.className,I)})})});return((M=x==null?void 0:x.wrapElement)==null?void 0:M.call(x,P,O))??P});return S.displayName=g.displayName||g.name,S},withContext:(g,y,x)=>{const m=Lr(g,{},x),v=w.forwardRef((b,S)=>{const C=i(),k=s(),R=k==null?void 0:k[y];return d.jsx(m,{...b,css:[y?C[y]:void 0,b.css],ref:S,className:Kr(b.className,R)})});return v.displayName=g.displayName||g.name,v},withRootProvider:p,useStyles:i,useClassNames:s}},Une=e=>d.jsx(Lr.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:d.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),K5=e=>d.jsx(Lr.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:d.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),$ne=e=>d.jsx(Lr.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),VL=e=>e?"":void 0,{withContext:Hne}=rs({key:"badge"}),bt=Hne("span"),G=Lr("div");G.displayName="Box";const Vne=w.forwardRef(function(t,n){const{size:r,...a}=t;return d.jsx(G,{...a,ref:n,boxSize:r,css:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexGrow:0,...t.css}})}),Gne=w.forwardRef(function(t,n){const{size:r,...a}=t;return d.jsx(Vne,{size:r,ref:n,borderRadius:"9999px",...a})}),Gl=Lr("span"),{withContext:Wne}=rs({key:"spinner"}),On=Wne("span"),GL=Lr("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});GL.displayName="AbsoluteCenter";const qne=w.forwardRef(function(t,n){const{spinner:r=d.jsx(On,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:a="start",children:i,text:o,visible:s=!0,...l}=t;return s?o?d.jsxs(Gl,{ref:n,display:"contents",...l,children:[a==="start"&&r,o,a==="end"&&r]}):r?d.jsxs(Gl,{ref:n,display:"contents",...l,children:[d.jsx(GL,{display:"inline-flex",children:r}),d.jsx(Gl,{visibility:"hidden",display:"contents",children:i})]}):d.jsx(Gl,{ref:n,display:"contents",...l,children:i}):i}),{useRecipeResult:Yne,usePropsContext:Xne}=rs({key:"button"}),Et=w.forwardRef(function(t,n){const r=Xne(),a=w.useMemo(()=>Bd(r,t),[r,t]),i=Yne(a),{loading:o,loadingText:s,children:l,spinner:u,spinnerPlacement:c,...p}=i.props;return d.jsx(Lr.button,{type:"button",ref:n,...p,"data-loading":VL(o),disabled:o||p.disabled,className:Kr(i.className,a.className),css:[i.styles,a.css],children:!a.asChild&&o?d.jsx(qne,{spinner:u,text:s,spinnerPlacement:c,children:l}):l})}),dt=w.forwardRef(function(t,n){return d.jsx(Et,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})});function Kne(e){const{when:t,fallback:n,children:r}=e;let a;return t?a=typeof r=="function"?r(t):r:a=n,w.isValidElement(a)?a:d.jsx(d.Fragment,{children:a})}const Zne=e=>{const{children:t,fallback:n}=e,[r,a]=w.useState(!1);return w.useEffect(()=>{a(!0)},[]),d.jsx(Kne,{when:r,fallback:n,children:t})};function Qne(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":mL(n,a=>r[a])}}function Jne(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}const lm=w.forwardRef(function(t,n){const{direction:r="column",align:a,justify:i,gap:o="0.5rem",wrap:s,children:l,separator:u,className:c,...p}=t,f=w.useMemo(()=>Qne({gap:o,direction:r}),[o,r]),h=w.useMemo(()=>u?Jne(l).map((g,y,x)=>{const m=typeof g.key<"u"?g.key:y,v=w.cloneElement(u,{css:[f,u.props.css]});return d.jsxs(w.Fragment,{children:[g,y===x.length-1?null:v]},m)}):l,[l,u,f]);return d.jsx(Lr.div,{ref:n,display:"flex",alignItems:a,justifyContent:i,flexDirection:r,flexWrap:s,gap:u?void 0:o,className:Kr("chakra-stack",c),...p,children:h})}),WL=w.forwardRef(function(t,n){const{align:r,fit:a="cover",...i}=t;return d.jsx(Lr.img,{ref:n,objectFit:a,objectPosition:r,className:Kr("chakra-image",t.className),...i})}),{withContext:ere}=rs({key:"input"}),Ne=ere(xD),[tre,nre]=ru({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:rre,useClassNames:are,useStyles:ire}=ww({key:"nativeSelect"}),Wt=rre("div","root",{wrapElement(e,t){const n=im(),r=!!((n==null?void 0:n.disabled)??t.disabled),a=!!((n==null?void 0:n.invalid)??t.invalid);return d.jsx(tre,{value:{disabled:r,invalid:a},children:e})}}),ore=Lr(wD,{},{forwardAsChild:!0}),qt=w.forwardRef(function(t,n){const{children:r,placeholder:a,...i}=t,{disabled:o,invalid:s}=nre(),l=ire(),u=are();return d.jsxs(ore,{disabled:o,"data-invalid":VL(s),...i,ref:n,className:Kr(u.field,t.className),css:[l.field,t.css],children:[a&&d.jsx("option",{value:"",children:a}),r]})}),{withContext:sre}=rs({key:"skeleton"}),Ew=sre("div");w.forwardRef(function(t,n){const{size:r,...a}=t;return d.jsx(Gne,{size:r,asChild:!0,ref:n,children:d.jsx(Ew,{...a})})});w.forwardRef(function(t,n){const{noOfLines:r=3,gap:a,rootProps:i,...o}=t;return d.jsx(lm,{gap:a,width:"full",ref:n,...i,children:Array.from({length:r}).map((s,l)=>d.jsx(Ew,{height:"4",_last:{maxW:r===1?"100%":"80%"},...o},l))})});const ne=w.forwardRef(function(t,n){return d.jsx(lm,{align:"center",...t,direction:"row",ref:n})}),ze=w.forwardRef(function(t,n){return d.jsx(lm,{align:"center",...t,direction:"column",ref:n})}),{withContext:lre}=rs({key:"textarea"}),Qi=lre(ED),{withProvider:ure,withContext:um,useStyles:cre}=ww({key:"toast"}),dre=Lr(JD,{},{forwardAsChild:!0}),pre=ure(ZD,"root",{forwardAsChild:!0}),fre=um(XD,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:d.jsx($ne,{})}}),hre=um(QD,"title",{forwardAsChild:!0}),gre=um(KD,"description",{forwardAsChild:!0}),mre=um(YD,"actionTrigger",{forwardAsChild:!0}),bre={warning:K5,success:Une,error:K5},yre=w.forwardRef(function(t,n){const r=ec(),a=cre(),i=bre[r.type];return i?d.jsx(i,{ref:n,...t,css:[a.indicator,t.css]}):null}),{withRootProvider:qL,withContext:Pp}=ww({key:"tooltip"});qL(GQ);const vre=qL(VQ,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),xre=Pp(uL,"trigger",{forwardAsChild:!0}),Sre=Pp(iL,"positioner",{forwardAsChild:!0}),wre=Pp(aL,"content",{forwardAsChild:!0}),YL=Pp(rL,"arrowTip",{forwardAsChild:!0}),Ere=Pp(nL,"arrow",{forwardAsChild:!0,defaultProps:{children:d.jsx(YL,{})}}),{withContext:kre}=rs({key:"heading"}),ta=kre("h2"),{withContext:Tre}=rs({key:"text"}),W=Tre("p");var Cre=(e,t,n,r,a,i,o,s)=>{let l=document.documentElement,u=["light","dark"];function c(h){(Array.isArray(e)?e:[e]).forEach(g=>{let y=g==="class",x=y&&i?a.map(m=>i[m]||m):a;y?(l.classList.remove(...x),l.classList.add(i&&i[h]?i[h]:h)):l.setAttribute(g,h)}),p(h)}function p(h){s&&u.includes(h)&&(l.style.colorScheme=h)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)c(r);else try{let h=localStorage.getItem(t)||n,g=o&&h==="system"?f():h;c(g)}catch{}},Z5=["light","dark"],XL="(prefers-color-scheme: dark)",Are=typeof window>"u",kw=w.createContext(void 0),_re={setTheme:e=>{},themes:[]},Rre=()=>{var e;return(e=w.useContext(kw))!=null?e:_re},Nre=e=>w.useContext(kw)?w.createElement(w.Fragment,null,e.children):w.createElement(Ore,{...e}),Ire=["light","dark"],Ore=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:a="theme",themes:i=Ire,defaultTheme:o=n?"system":"light",attribute:s="data-theme",value:l,children:u,nonce:c,scriptProps:p})=>{let[f,h]=w.useState(()=>Lre(a,o)),[g,y]=w.useState(()=>f==="system"?sy():f),x=l?Object.values(l):i,m=w.useCallback(C=>{let k=C;if(!k)return;C==="system"&&n&&(k=sy());let R=l?l[k]:k,O=t?Mre(c):null,N=document.documentElement,_=L=>{L==="class"?(N.classList.remove(...x),R&&N.classList.add(R)):L.startsWith("data-")&&(R?N.setAttribute(L,R):N.removeAttribute(L))};if(Array.isArray(s)?s.forEach(_):_(s),r){let L=Z5.includes(o)?o:null,I=Z5.includes(k)?k:L;N.style.colorScheme=I}O==null||O()},[c]),v=w.useCallback(C=>{let k=typeof C=="function"?C(f):C;h(k);try{localStorage.setItem(a,k)}catch{}},[f]),b=w.useCallback(C=>{let k=sy(C);y(k),f==="system"&&n&&!e&&m("system")},[f,e]);w.useEffect(()=>{let C=window.matchMedia(XL);return C.addListener(b),b(C),()=>C.removeListener(b)},[b]),w.useEffect(()=>{let C=k=>{k.key===a&&(k.newValue?h(k.newValue):v(o))};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[v]),w.useEffect(()=>{m(e??f)},[e,f]);let S=w.useMemo(()=>({theme:f,setTheme:v,forcedTheme:e,resolvedTheme:f==="system"?g:f,themes:n?[...i,"system"]:i,systemTheme:n?g:void 0}),[f,v,e,g,n,i]);return w.createElement(kw.Provider,{value:S},w.createElement(Dre,{forcedTheme:e,storageKey:a,attribute:s,enableSystem:n,enableColorScheme:r,defaultTheme:o,value:l,themes:i,nonce:c,scriptProps:p}),u)},Dre=w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:o,themes:s,nonce:l,scriptProps:u})=>{let c=JSON.stringify([n,t,i,e,s,o,r,a]).slice(1,-1);return w.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${Cre.toString()})(${c})`}})}),Lre=(e,t)=>{if(Are)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},Mre=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},sy=e=>(e||(e=window.matchMedia(XL)),e.matches?"dark":"light"),KL={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Q5=Xn.createContext&&Xn.createContext(KL),zre=["attr","size","title"];function Pre(e,t){if(e==null)return{};var n=jre(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$g.apply(this,arguments)}function J5(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 Hg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J5(Object(n),!0).forEach(function(r){Fre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fre(e,t,n){return t=Bre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bre(e){var t=Ure(e,"string");return typeof t=="symbol"?t:t+""}function Ure(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZL(e){return e&&e.map((t,n)=>Xn.createElement(t.tag,Hg({key:n},t.attr),ZL(t.child)))}function QL(e){return t=>Xn.createElement($re,$g({attr:Hg({},e.attr)},t),ZL(e.child))}function $re(e){var t=n=>{var{attr:r,size:a,title:i}=e,o=Pre(e,zre),s=a||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Xn.createElement("svg",$g({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Hg(Hg({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&Xn.createElement("title",null,i),e.children)};return Q5!==void 0?Xn.createElement(Q5.Consumer,null,n=>t(n)):t(KL)}function Hre(e){return QL({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"},child:[]}]})(e)}function Vre(e){return QL({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"4"},child:[]},{tag:"path",attr:{d:"M12 2v2"},child:[]},{tag:"path",attr:{d:"M12 20v2"},child:[]},{tag:"path",attr:{d:"m4.93 4.93 1.41 1.41"},child:[]},{tag:"path",attr:{d:"m17.66 17.66 1.41 1.41"},child:[]},{tag:"path",attr:{d:"M2 12h2"},child:[]},{tag:"path",attr:{d:"M20 12h2"},child:[]},{tag:"path",attr:{d:"m6.34 17.66-1.41 1.41"},child:[]},{tag:"path",attr:{d:"m19.07 4.93-1.41 1.41"},child:[]}]})(e)}function Gre(e){return d.jsx(Nre,{attribute:"class",disableTransitionOnChange:!0,...e})}function JL(){const{resolvedTheme:e,setTheme:t,forcedTheme:n}=Rre();return{colorMode:n||e,setColorMode:t,toggleColorMode:()=>{t(e==="dark"?"light":"dark")}}}function Wre(){const{colorMode:e}=JL();return e==="dark"?d.jsx(Hre,{}):d.jsx(Vre,{})}const qre=w.forwardRef(function(t,n){const{toggleColorMode:r}=JL();return d.jsx(Zne,{fallback:d.jsx(Ew,{boxSize:"9"}),children:d.jsx(dt,{onClick:r,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:n,...t,css:{_icon:{width:"5",height:"5"}},children:d.jsx(Wre,{})})})});w.forwardRef(function(t,n){return d.jsx(Gl,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:n,...t})});w.forwardRef(function(t,n){return d.jsx(Gl,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:n,...t})});const li=Object.create(null);li.open="0";li.close="1";li.ping="2";li.pong="3";li.message="4";li.upgrade="5";li.noop="6";const Dh=Object.create(null);Object.keys(li).forEach(e=>{Dh[li[e]]=e});const Cv={type:"error",data:"parser error"},eM=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",tM=typeof ArrayBuffer=="function",nM=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Tw=({type:e,data:t},n,r)=>eM&&t instanceof Blob?n?r(t):e_(t,r):tM&&(t instanceof ArrayBuffer||nM(t))?n?r(t):e_(new Blob([t]),r):r(li[e]+(t||"")),e_=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function t_(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ly;function Yre(e,t){if(eM&&e.data instanceof Blob)return e.data.arrayBuffer().then(t_).then(t);if(tM&&(e.data instanceof ArrayBuffer||nM(e.data)))return t(t_(e.data));Tw(e,!1,n=>{ly||(ly=new TextEncoder),t(ly.encode(n))})}const n_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<n_.length;e++)Xc[n_.charCodeAt(e)]=e;const Xre=e=>{let t=e.length*.75,n=e.length,r,a=0,i,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)i=Xc[e.charCodeAt(r)],o=Xc[e.charCodeAt(r+1)],s=Xc[e.charCodeAt(r+2)],l=Xc[e.charCodeAt(r+3)],c[a++]=i<<2|o>>4,c[a++]=(o&15)<<4|s>>2,c[a++]=(s&3)<<6|l&63;return u},Kre=typeof ArrayBuffer=="function",Cw=(e,t)=>{if(typeof e!="string")return{type:"message",data:rM(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Zre(e.substring(1),t)}:Dh[n]?e.length>1?{type:Dh[n],data:e.substring(1)}:{type:Dh[n]}:Cv},Zre=(e,t)=>{if(Kre){const n=Xre(e);return rM(n,t)}else return{base64:!0,data:e}},rM=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},aM="",Qre=(e,t)=>{const n=e.length,r=new Array(n);let a=0;e.forEach((i,o)=>{Tw(i,!1,s=>{r[o]=s,++a===n&&t(r.join(aM))})})},Jre=(e,t)=>{const n=e.split(aM),r=[];for(let a=0;a<n.length;a++){const i=Cw(n[a],t);if(r.push(i),i.type==="error")break}return r};function eae(){return new TransformStream({transform(e,t){Yre(e,n=>{const r=n.length;let a;if(r<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,r);else if(r<65536){a=new Uint8Array(3);const i=new DataView(a.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{a=new Uint8Array(9);const i=new DataView(a.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(a[0]|=128),t.enqueue(a),t.enqueue(n)})}})}let uy;function Of(e){return e.reduce((t,n)=>t+n.length,0)}function Df(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let a=0;a<t;a++)n[a]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function tae(e,t){uy||(uy=new TextDecoder);const n=[];let r=0,a=-1,i=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(Of(n)<1)break;const l=Df(n,1);i=(l[0]&128)===128,a=l[0]&127,a<126?r=3:a===126?r=1:r=2}else if(r===1){if(Of(n)<2)break;const l=Df(n,2);a=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(Of(n)<8)break;const l=Df(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),c=u.getUint32(0);if(c>Math.pow(2,21)-1){s.enqueue(Cv);break}a=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Of(n)<a)break;const l=Df(n,a);s.enqueue(Cw(i?l:uy.decode(l),t)),r=0}if(a===0||a>e){s.enqueue(Cv);break}}}})}const iM=4;function mn(e){if(e)return nae(e)}function nae(e){for(var t in mn.prototype)e[t]=mn.prototype[t];return e}mn.prototype.on=mn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};mn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};mn.prototype.off=mn.prototype.removeListener=mn.prototype.removeAllListeners=mn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,a=0;a<n.length;a++)if(r=n[a],r===t||r.fn===t){n.splice(a,1);break}return n.length===0&&delete this._callbacks["$"+e],this};mn.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,a=n.length;r<a;++r)n[r].apply(this,t)}return this};mn.prototype.emitReserved=mn.prototype.emit;mn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};mn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const cm=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),ma=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),rae="arraybuffer";function oM(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const aae=ma.setTimeout,iae=ma.clearTimeout;function dm(e,t){t.useNativeTimers?(e.setTimeoutFn=aae.bind(ma),e.clearTimeoutFn=iae.bind(ma)):(e.setTimeoutFn=ma.setTimeout.bind(ma),e.clearTimeoutFn=ma.clearTimeout.bind(ma))}const oae=1.33;function sae(e){return typeof e=="string"?lae(e):Math.ceil((e.byteLength||e.size)*oae)}function lae(e){let t=0,n=0;for(let r=0,a=e.length;r<a;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function sM(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function uae(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function cae(e){let t={},n=e.split("&");for(let r=0,a=n.length;r<a;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class dae extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Aw extends mn{constructor(t){super(),this.writable=!1,dm(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new dae(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Cw(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=uae(t);return n.length?"?"+n:""}}class pae extends Aw{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Jre(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Qre(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=sM()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let lM=!1;try{lM=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const fae=lM;function hae(){}class gae extends pae{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(a,i)=>{this.onError("xhr post error",a,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ai extends mn{constructor(t,n,r){super(),this.createRequest=t,dm(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=oM(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&r.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var a;r.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=ai.requestsCount++,ai.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=hae,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ai.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ai.requestsCount=0;ai.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",r_);else if(typeof addEventListener=="function"){const e="onpagehide"in ma?"pagehide":"unload";addEventListener(e,r_,!1)}}function r_(){for(let e in ai.requests)ai.requests.hasOwnProperty(e)&&ai.requests[e].abort()}const mae=function(){const e=uM({xdomain:!1});return e&&e.responseType!==null}();class bae extends gae{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=mae&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ai(uM,this.uri(),t)}}function uM(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||fae))return new XMLHttpRequest}catch{}if(!t)try{return new ma[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const cM=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class yae extends Aw{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=cM?{}:oM(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],a=n===t.length-1;Tw(r,this.supportsBinary,i=>{try{this.doWrite(r,i)}catch{}a&&cm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=sM()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const cy=ma.WebSocket||ma.MozWebSocket;class vae extends yae{createSocket(t,n,r){return cM?new cy(t,n,r):n?new cy(t,n):new cy(t)}doWrite(t,n){this.ws.send(n)}}class xae extends Aw{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=tae(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),a=eae();a.readable.pipeTo(t.writable),this._writer=a.writable.getWriter();const i=()=>{r.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],a=n===t.length-1;this._writer.write(r).then(()=>{a&&cm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Sae={websocket:vae,webtransport:xae,polling:bae},wae=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Eae=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Av(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let a=wae.exec(e||""),i={},o=14;for(;o--;)i[Eae[o]]=a[o]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=kae(i,i.path),i.queryKey=Tae(i,i.query),i}function kae(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Tae(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,a,i){a&&(n[a]=i)}),n}const _v=typeof addEventListener=="function"&&typeof removeEventListener=="function",Lh=[];_v&&addEventListener("offline",()=>{Lh.forEach(e=>e())},!1);class $o extends mn{constructor(t,n){if(super(),this.binaryType=rae,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Av(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Av(n.host).host);dm(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const a=r.prototype.name;this.transports.push(a),this._transportsByName[a]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=cae(this.opts.query)),_v&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Lh.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=iM,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&$o.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",$o.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const a=this.writeBuffer[r].data;if(a&&(n+=sae(a)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,cm(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,a){if(typeof n=="function"&&(a=n,n=void 0),typeof r=="function"&&(a=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if($o.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),_v&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Lh.indexOf(this._offlineEventListener);r!==-1&&Lh.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}$o.protocol=iM;class Cae extends $o{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;$o.priorWebsocketSuccess=!1;const a=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!r)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;$o.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const o=p=>{const f=new Error("probe error: "+p);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function s(){o("transport closed")}function l(){o("socket closed")}function u(p){n&&p.name!==n.name&&i()}const c=()=>{n.removeListener("open",a),n.removeListener("error",o),n.removeListener("close",s),this.off("close",l),this.off("upgrading",u)};n.once("open",a),n.once("error",o),n.once("close",s),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Aae=class extends Cae{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(a=>Sae[a]).filter(a=>!!a)),super(t,r)}};function _ae(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Av(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const Rae=typeof ArrayBuffer=="function",Nae=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,dM=Object.prototype.toString,Iae=typeof Blob=="function"||typeof Blob<"u"&&dM.call(Blob)==="[object BlobConstructor]",Oae=typeof File=="function"||typeof File<"u"&&dM.call(File)==="[object FileConstructor]";function _w(e){return Rae&&(e instanceof ArrayBuffer||Nae(e))||Iae&&e instanceof Blob||Oae&&e instanceof File}function Mh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Mh(e[n]))return!0;return!1}if(_w(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Mh(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Mh(e[n]))return!0;return!1}function Dae(e){const t=[],n=e.data,r=e;return r.data=Rv(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Rv(e,t){if(!e)return e;if(_w(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Rv(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Rv(e[r],t));return n}return e}function Lae(e,t){return e.data=Nv(e.data,t),delete e.attachments,e}function Nv(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Nv(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Nv(e[n],t));return e}const Mae=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],zae=5;var lt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(lt||(lt={}));class Pae{constructor(t){this.replacer=t}encode(t){return(t.type===lt.EVENT||t.type===lt.ACK)&&Mh(t)?this.encodeAsBinary({type:t.type===lt.EVENT?lt.BINARY_EVENT:lt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===lt.BINARY_EVENT||t.type===lt.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Dae(t),r=this.encodeAsString(n.packet),a=n.buffers;return a.unshift(r),a}}function a_(e){return Object.prototype.toString.call(e)==="[object Object]"}class Rw extends mn{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===lt.BINARY_EVENT;r||n.type===lt.BINARY_ACK?(n.type=r?lt.EVENT:lt.ACK,this.reconstructor=new jae(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(_w(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(lt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===lt.BINARY_EVENT||r.type===lt.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(i,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const a=t.charAt(n+1);if(a!==""&&Number(a)==a){const i=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(Rw.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case lt.CONNECT:return a_(n);case lt.DISCONNECT:return n===void 0;case lt.CONNECT_ERROR:return typeof n=="string"||a_(n);case lt.EVENT:case lt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Mae.indexOf(n[0])===-1);case lt.ACK:case lt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class jae{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Lae(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Fae=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Rw,Encoder:Pae,get PacketType(){return lt},protocol:zae},Symbol.toStringTag,{value:"Module"}));function Aa(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Bae=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class pM extends mn{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Aa(t,"open",this.onopen.bind(this)),Aa(t,"packet",this.onpacket.bind(this)),Aa(t,"error",this.onerror.bind(this)),Aa(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,a,i;if(Bae.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:lt.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const c=this.ids++,p=n.pop();this._registerAckCallback(c,p),o.id=c}const s=(a=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||a===void 0?void 0:a.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const a=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(a===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},a),o=(...s)=>{this.io.clearTimeoutFn(i),n.apply(this,s)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,a)=>{const i=(o,s)=>o?a(o):r(s);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...i)=>r!==this._queue[0]?void 0:(a!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:lt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case lt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case lt.EVENT:case lt.BINARY_EVENT:this.onevent(t);break;case lt.ACK:case lt.BINARY_ACK:this.onack(t);break;case lt.DISCONNECT:this.ondisconnect();break;case lt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...a){r||(r=!0,n.packet({type:lt.ACK,id:t,data:a}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:lt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function nc(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}nc.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};nc.prototype.reset=function(){this.attempts=0};nc.prototype.setMin=function(e){this.ms=e};nc.prototype.setMax=function(e){this.max=e};nc.prototype.setJitter=function(e){this.jitter=e};class Iv extends mn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,dm(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new nc({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const a=n.parser||Fae;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Aae(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const a=Aa(n,"open",function(){r.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Aa(n,"error",i);if(this._timeout!==!1){const s=this._timeout,l=this.setTimeoutFn(()=>{a(),i(new Error("timeout")),n.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(a),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Aa(t,"ping",this.onping.bind(this)),Aa(t,"data",this.ondata.bind(this)),Aa(t,"error",this.onerror.bind(this)),Aa(t,"close",this.onclose.bind(this)),Aa(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){cm(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new pM(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Lc={};function zh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=_ae(e,t.path||"/socket.io"),r=n.source,a=n.id,i=n.path,o=Lc[a]&&i in Lc[a].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return s?l=new Iv(r,t):(Lc[a]||(Lc[a]=new Iv(r,t)),l=Lc[a]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(zh,{Manager:Iv,Socket:pM,io:zh,connect:zh});const fM=zQ({placement:"bottom-end",pauseOnPageIdle:!0}),Uae=()=>d.jsx(FD,{children:d.jsx(dre,{toaster:fM,insetInline:{mdDown:"4"},children:e=>d.jsxs(pre,{width:{md:"sm"},children:[e.type==="loading"?d.jsx(On,{size:"sm",color:"blue.solid"}):d.jsx(yre,{}),d.jsxs(lm,{gap:"1",flex:"1",maxWidth:"100%",children:[e.title&&d.jsx(hre,{children:e.title}),e.description&&d.jsx(gre,{children:e.description})]}),e.action&&d.jsx(mre,{children:e.action.label}),e.closable&&d.jsx(fre,{})]})})}),hM=w.createContext(void 0),rc=()=>{const e=w.useContext(hM);if(!e)throw new Error("useAgentSocket must be used within AgentSocketProvider");return e},$ae=({children:e})=>{const[t,n]=w.useState(null),[r,a]=w.useState(!1),[i,o]=w.useState([]),[s,l]=w.useState(null),[u,c]=w.useState([]),[p,f]=w.useState(null),[h,g]=w.useState(null);w.useEffect(()=>{const v=zh(window.location.origin,{transports:["websocket","polling"],reconnection:!0,reconnectionDelay:1e3,reconnectionAttempts:1/0,autoConnect:!0});return n(v),v.on("connect",()=>a(!0)),v.on("disconnect",()=>a(!1)),v.on("tasks",b=>o(b)),v.on("status",b=>l(b)),v.on("events",b=>c(b)),v.on("capabilities",b=>f(b)),v.on("telemetry",b=>g(b)),v.on("toast",b=>{const S=b.status==="success"||b.status==="error"||b.status==="warning"?b.status:"info";fM.create({title:b.title||void 0,description:b.message,type:S,duration:b.duration||5e3})}),()=>{v.disconnect(),n(null),a(!1)}},[]);const y=w.useCallback(()=>{t==null||t.emit("request_telemetry")},[t]),x=w.useCallback(v=>{t==null||t.emit("join_conversation",{conversation:v})},[t]),m=w.useCallback(v=>{t==null||t.emit("leave_conversation",{conversation:v})},[t]);return d.jsx(hM.Provider,{value:{socket:t,isConnected:r,tasks:i,status:s,events:u,capabilities:p,telemetry:h,requestTelemetry:y,joinConversation:x,leaveConversation:m},children:e})},i_=w.forwardRef(function(t,n){const{showArrow:r,children:a,disabled:i,portalled:o=!0,content:s,contentProps:l,portalRef:u,...c}=t;return i?a:d.jsxs(vre,{...c,children:[d.jsx(xre,{asChild:!0,children:a}),d.jsx(FD,{disabled:!o,container:u,children:d.jsx(Sre,{children:d.jsxs(wre,{ref:n,...l,padding:"10px",children:[r&&d.jsx(Ere,{children:d.jsx(YL,{})}),s]})})})]})}),dy=({values:e,color:t,width:n=60,height:r=20,fill:a=!1})=>{const{points:i,fillPath:o}=w.useMemo(()=>{if(e.length===0)return{points:"",fillPath:""};const l=2,u=n-l*2,c=r-l*2,p=0,h=100-p,g=e.map((m,v)=>{const b=l+v/(e.length-1||1)*u,C=(Math.max(0,Math.min(100,m))-p)/h,k=l+c-C*c;return{x:b,y:k}}),y=g.map(m=>`${m.x},${m.y}`).join(" ");let x="";if(a&&g.length>0){const m=g[0],v=g[g.length-1],b=l+c,S=g.map(C=>`L ${C.x},${C.y}`).join(" ");x=`M ${m.x},${b} ${S} L ${v.x},${b} Z`}return{points:y,fillPath:x}},[e,n,r,a]);return e.length===0?d.jsx(G,{w:n,h:r}):d.jsx(G,{flexShrink:0,className:"PLOT",children:d.jsxs("svg",{width:n,height:r,style:{display:"block"},children:[a&&o&&d.jsx("path",{d:o,fill:t,fillOpacity:.2}),d.jsx("polyline",{points:i,fill:"none",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})},o_=({uploadValues:e,downloadValues:t,uploadColor:n,downloadColor:r,width:a=60,height:i=20,fill:o=!1})=>{const{uploadPoints:s,downloadPoints:l,uploadFillPath:u,downloadFillPath:c,centerY:p}=w.useMemo(()=>{if(e.length===0&&t.length===0)return{uploadPoints:"",downloadPoints:"",uploadFillPath:"",downloadFillPath:"",centerY:i/2};const h=2,g=a-h*2,y=i-h*2,x=h+y/2,m=Math.max(...e.map(_=>Math.abs(_)),.01),v=Math.max(...t.map(_=>Math.abs(_)),.01),b=Math.max(e.length,t.length),S=[],C=[];for(let _=0;_<b;_++){const L=h+_/(b-1||1)*g,I=e[_]||0,P=m>0?I/m:0,M=x-P*(y/2);S.push({x:L,y:M});const F=t[_]||0,A=v>0?F/v:0,j=x+A*(y/2);C.push({x:L,y:j})}const k=S.map(_=>`${_.x},${_.y}`).join(" "),R=C.map(_=>`${_.x},${_.y}`).join(" ");let O="",N="";if(o){if(S.length>0){const _=S[0],L=S[S.length-1],I=S.map(P=>`L ${P.x},${P.y}`).join(" ");O=`M ${_.x},${x} ${I} L ${L.x},${x} Z`}if(C.length>0){const _=C[0],L=C[C.length-1],I=C.map(P=>`L ${P.x},${P.y}`).join(" ");N=`M ${_.x},${x} ${I} L ${L.x},${x} Z`}}return{uploadPoints:k,downloadPoints:R,uploadFillPath:O,downloadFillPath:N,centerY:x}},[e,t,a,i,o]);if(e.length===0&&t.length===0)return d.jsx(G,{w:a,h:i});const f=.2;return d.jsx(G,{flexShrink:0,className:"PLOT",children:d.jsxs("svg",{width:a,height:i,style:{display:"block"},children:[d.jsx("line",{x1:2,y1:p,x2:a-2,y2:p,stroke:"gray",strokeWidth:"0.5",strokeOpacity:"0.3"}),o&&u&&d.jsx("path",{d:u,fill:n,fillOpacity:f}),o&&c&&d.jsx("path",{d:c,fill:r,fillOpacity:f}),s&&d.jsx("polyline",{points:s,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l&&d.jsx("polyline",{points:l,fill:"none",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})},Hae=()=>d.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:[d.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),d.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]}),Vae=()=>d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("polygon",{points:"5 3 19 12 5 21"})}),Gae=()=>{const{socket:e,isConnected:t}=rc(),[n,r]=w.useState(null),[a,i]=w.useState(null),[o,s]=w.useState(!1),[l,u]=w.useState(1),[c,p]=w.useState(!0),[f,h]=w.useState([]),[g,y]=w.useState([]),[x,m]=w.useState([]),[v,b]=w.useState([]),[S,C]=w.useState([]),[k,R]=w.useState([]),[O,N]=w.useState([]),[_,L]=w.useState(200),I=w.useRef(null),P=w.useRef(!1),M=w.useRef(null),F=w.useRef(null),A=w.useRef(null),j=60,B=w.useCallback(pe=>{r(pe),i(null);const X=pe.cpu.load*100;h(he=>[...he,X].slice(-j));const te=Object.entries(pe.gpu),ie=te.length>0?te[0][1]:null;if(ie){const he=ie.load*100;y(ce=>[...ce,he].slice(-j));const le=ie.memory[0]/ie.memory[1]*100;m(ce=>[...ce,le].slice(-j))}if(pe.network){const he=Date.now()/1e3,le=M.current;if(le){const ce=he-le.time;if(ce>0){const Re=(pe.network.bytes_sent-le.bytes_sent)/ce,Be=(pe.network.bytes_recv-le.bytes_recv)/ce;b(De=>[...De,Re/1048576].slice(-j)),C(De=>[...De,Be/1048576].slice(-j))}}M.current={bytes_sent:pe.network.bytes_sent,bytes_recv:pe.network.bytes_recv,time:he}}if(pe.disk){const he=Date.now()/1e3,le=F.current;if(le){const ce=he-le.time;if(ce>0){const Re=(pe.disk.read_time-le.read_time)/ce,Be=(pe.disk.write_time-le.write_time)/ce;R(De=>[...De,Re].slice(-j)),N(De=>[...De,Be].slice(-j))}}F.current={read_time:pe.disk.read_time,write_time:pe.disk.write_time,time:he}}},[j]),V=w.useCallback(()=>{P.current||!e||!t||(P.current=!0,e.emit("request_telemetry"))},[e,t]);w.useEffect(()=>{if(!e||!t)return;const pe=te=>{P.current=!1,B(te)},X=te=>{P.current=!1;const ie=te.error||"Failed to load telemetry";console.error("Failed to fetch telemetry:",ie),i(ie)};return e.on("telemetry",pe),e.on("telemetry_error",X),()=>{e.off("telemetry",pe),e.off("telemetry_error",X)}},[e,t,B]),w.useEffect(()=>{if(!(!t||!e))return o||V(),I.current&&(clearInterval(I.current),I.current=null),o||(I.current=setInterval(()=>{V()},l*1e3)),()=>{I.current&&(clearInterval(I.current),I.current=null),P.current=!1}},[o,l,V,t,e]),w.useEffect(()=>{const pe=()=>{if(A.current){const ie=A.current.offsetWidth-57-40-20;L(Math.max(120,ie))}},X=setTimeout(pe,0);return window.addEventListener("resize",pe),()=>{clearTimeout(X),window.removeEventListener("resize",pe)}},[n]);const{firstGpu:D,gpuMemoryPercent:Z,cpuLoadPercent:J,networkUploadRate:H,networkDownloadRate:se,diskReadTimeRate:we,diskWriteTimeRate:xe}=w.useMemo(()=>{if(!n)return{firstGpu:null,gpuMemoryPercent:0,cpuLoadPercent:0,networkUploadRate:0,networkDownloadRate:0,diskReadTimeRate:0,diskWriteTimeRate:0};const pe=Object.entries(n.gpu),X=pe.length>0?pe[0][1]:null,te=X?X.memory[0]/X.memory[1]*100:0,ie=n.cpu.load*100,he=v.length>0?v[v.length-1]:0,le=S.length>0?S[S.length-1]:0,ce=k.length>0?k[k.length-1]:0,Re=O.length>0?O[O.length-1]:0;return{firstGpu:X,gpuMemoryPercent:te,cpuLoadPercent:ie,networkUploadRate:he,networkDownloadRate:le,diskReadTimeRate:ce,diskWriteTimeRate:Re}},[n,v,S,k,O]);return a&&!n?d.jsx(G,{w:"100%",pt:3,borderTop:"1px solid",borderColor:"var(--border-primary)",children:d.jsx(ze,{gap:1.5,align:"flex-start",children:d.jsxs(ne,{justify:"space-between",w:"100%",children:[d.jsx(W,{fontSize:"xs",fontWeight:"bold",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"wide",children:"System Stats"}),d.jsx(W,{fontSize:"xs",color:"var(--text-error)",children:a})]})})}):n?d.jsx(G,{w:"100%",pt:3,borderColor:"var(--border-primary)",children:d.jsxs(ze,{gap:1.5,align:"flex-start",children:[d.jsxs(ne,{justify:"space-between",w:"100%",children:[d.jsxs(ne,{gap:2,children:[d.jsx(W,{fontSize:"xs",fontWeight:"bold",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"wide",children:"System Stats"}),a&&d.jsx(W,{fontSize:"xs",color:"orange.400",title:a,children:"⚠"})]}),d.jsxs(ne,{gap:1,children:[d.jsx(Ne,{type:"number",size:"xs",value:l,onChange:pe=>{const X=parseInt(pe.target.value)||10;X>=1&&X<=300&&u(X)},min:1,max:300,w:"50px",h:"20px",px:1,fontSize:"xs",textAlign:"center",borderColor:"var(--border-secondary)",_focus:{borderColor:"var(--border-secondary)"}}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",w:"15px",children:"s"}),d.jsx(dt,{"aria-label":o?"Resume telemetry":"Pause telemetry",size:"xs",variant:"ghost",colorScheme:"gray",onClick:()=>s(!o),children:o?d.jsx(Vae,{}):d.jsx(Hae,{})})]})]}),d.jsx(G,{ref:A,w:"100%",children:d.jsxs(ze,{gap:1.5,align:"stretch",w:"100%",children:[d.jsxs(ne,{justify:"space-between",fontSize:"xs",align:"center",w:"100%",children:[d.jsx(W,{color:"var(--text-tertiary)",w:"57px",fontWeight:"medium",flexShrink:0,children:"CPU:"}),d.jsx(G,{flex:1,display:"flex",justifyContent:"center",children:d.jsx(dy,{values:f,color:"var(--spark-cpu)",fill:c,width:_})}),d.jsxs(W,{color:"var(--stat-cpu)",w:"40px",fontFamily:"mono",textAlign:"right",flexShrink:0,children:[J.toFixed(1),"%"]})]}),D&&d.jsxs(d.Fragment,{children:[d.jsxs(ne,{justify:"space-between",fontSize:"xs",align:"center",w:"100%",children:[d.jsx(W,{color:"var(--text-tertiary)",w:"57px",fontWeight:"medium",flexShrink:0,children:"GPU:"}),d.jsx(G,{flex:1,display:"flex",justifyContent:"center",children:d.jsx(dy,{values:g,color:"var(--spark-gpu)",fill:c,width:_})}),d.jsxs(W,{color:"var(--stat-gpu)",w:"40px",fontFamily:"mono",textAlign:"right",flexShrink:0,children:[(D.load*100).toFixed(1),"%"]})]}),d.jsxs(ne,{justify:"space-between",fontSize:"xs",align:"center",w:"100%",children:[d.jsx(W,{color:"var(--text-tertiary)",w:"57px",fontWeight:"medium",flexShrink:0,children:"GPU Mem:"}),d.jsx(G,{flex:1,display:"flex",justifyContent:"center",children:d.jsx(dy,{values:x,color:"var(--spark-gpu-mem)",fill:c,width:_})}),d.jsxs(W,{color:"var(--stat-gpu-mem)",w:"40px",fontFamily:"mono",textAlign:"right",flexShrink:0,children:[Z.toFixed(1),"%"]})]})]}),n.network&&d.jsxs(ne,{justify:"space-between",fontSize:"xs",align:"center",w:"100%",children:[d.jsx(W,{color:"var(--text-tertiary)",w:"57px",fontWeight:"medium",flexShrink:0,children:"Network:"}),d.jsx(G,{flex:1,display:"flex",justifyContent:"center",children:d.jsx(o_,{uploadValues:v,downloadValues:S,uploadColor:"var(--spark-net-up)",downloadColor:"var(--spark-net-down)",fill:c,width:_})}),d.jsx(i_,{content:"MB/s",openDelay:100,closeDelay:100,children:d.jsx(G,{as:"span",cursor:"help",children:d.jsxs(ze,{gap:0,align:"flex-end",flexShrink:0,w:"40px",children:[d.jsxs(W,{color:"var(--stat-net-up)",fontFamily:"mono",textAlign:"right",fontSize:"xs",lineHeight:"1",children:["↑",H.toFixed(2)]}),d.jsxs(W,{color:"var(--stat-net-down)",fontFamily:"mono",textAlign:"right",fontSize:"xs",lineHeight:"1",children:["↓",se.toFixed(2)]})]})})})]}),n.disk&&d.jsxs(ne,{justify:"space-between",fontSize:"xs",align:"center",w:"100%",children:[d.jsx(W,{color:"var(--text-tertiary)",w:"57px",fontWeight:"medium",flexShrink:0,children:"Disk R/W:"}),d.jsx(G,{flex:1,display:"flex",justifyContent:"center",children:d.jsx(o_,{uploadValues:k,downloadValues:O,uploadColor:"var(--spark-disk-read)",downloadColor:"var(--spark-disk-write)",fill:c,width:_})}),d.jsx(i_,{content:"ms/s",openDelay:100,closeDelay:100,children:d.jsx(G,{as:"span",cursor:"help",children:d.jsxs(ze,{gap:0,align:"flex-end",flexShrink:0,w:"40px",children:[d.jsxs(W,{color:"var(--stat-disk-read)",fontFamily:"mono",textAlign:"right",fontSize:"xs",lineHeight:"1",children:[we.toFixed(1),"R"]}),d.jsxs(W,{color:"var(--stat-disk-write)",fontFamily:"mono",textAlign:"right",fontSize:"xs",lineHeight:"1",children:[xe.toFixed(1),"W"]})]})})})]})]})})]})}):d.jsx(G,{w:"100%",pt:3,borderTop:"1px solid",borderColor:"var(--border-primary)",children:d.jsx(ze,{gap:1.5,align:"flex-start",children:d.jsxs(ne,{justify:"space-between",w:"100%",children:[d.jsx(W,{fontSize:"xs",fontWeight:"bold",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"wide",children:"System Stats"}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Loading..."})]})})})},Wae=()=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})}),qae=()=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),Yae=()=>d.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),d.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),Xae=()=>d.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:d.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),Kae=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M9 11l3 3L22 4"}),d.jsx("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})]}),Zae=()=>d.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:d.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),Qae=()=>d.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:d.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),Jae=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("circle",{cx:"12",cy:"8",r:"4"}),d.jsx("path",{d:"M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"}),d.jsx("path",{d:"M17 3a2 2 0 0 1 0 4"}),d.jsx("path",{d:"M21 21v-2a4 4 0 0 0-3-3.87"})]}),eie=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("rect",{x:"2",y:"3",width:"6",height:"5",rx:"1"}),d.jsx("rect",{x:"16",y:"3",width:"6",height:"5",rx:"1"}),d.jsx("rect",{x:"9",y:"16",width:"6",height:"5",rx:"1"}),d.jsx("path",{d:"M8 5.5h8"}),d.jsx("path",{d:"M5 8v5a2 2 0 002 2h2"}),d.jsx("path",{d:"M19 8v5a2 2 0 01-2 2h-2"})]}),tie=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("circle",{cx:"12",cy:"12",r:"10"}),d.jsx("path",{d:"M12 6v6l4 2"}),d.jsx("path",{d:"M8 12h8"})]}),nie=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),d.jsx("polyline",{points:"9 22 9 12 15 12 15 22"})]}),rie=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),d.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),aie=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("circle",{cx:"12",cy:"12",r:"3"}),d.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),iie=[{id:"home",name:"Home",path:"/",icon:nie,color:"green"},{id:"conversations",name:"Conversations",path:"/conversations",icon:Xae,color:"blue"},{id:"projects",name:"Projects",path:"/projects",icon:Zae,color:"orange"},{id:"agents",name:"Agents",path:"/agents",icon:Jae,color:"teal"},{id:"knowledge",name:"Knowledge",path:"/knowledge",icon:rie,color:"cyan"},{id:"tasks",name:"Work Queue",path:"/tasks",icon:Kae,color:"blue"},{id:"status",name:"Status",path:"/status",icon:Qae,color:"purple"},{id:"settings",name:"Settings",path:"/settings",icon:aie,color:"gray"}],oie=[{id:"workflows",name:"Workflows",path:"/workflows",icon:eie,color:"pink"},{id:"uber",name:"Uber Chat",path:"/uber",icon:tie,color:"purple"}],sie=({children:e})=>{const t=no(),n=nl(),[r,a]=w.useState(!1),{capabilities:i}=rc(),o=()=>{n("/"),a(!1)},s=()=>a(!1);return d.jsxs("div",{className:"layout",style:{height:"100vh",width:"100vw",overflow:"hidden"},children:[d.jsx(G,{position:"fixed",top:4,left:4,zIndex:1001,display:{base:"block",md:"none"},children:d.jsx(dt,{"aria-label":"Toggle menu",onClick:()=>a(!r),colorScheme:"green",size:"lg",borderRadius:"md",boxShadow:"lg",children:r?d.jsx(qae,{}):d.jsx(Wae,{})})}),d.jsxs(G,{className:`sidebar ${r?"mobile-open":""}`,w:"260px",h:"100vh",bg:"var(--bg-sidebar)",color:"var(--text-primary)",display:"flex",flexDirection:"column",position:"fixed",left:0,top:0,zIndex:1e3,transition:"transform 0.3s",transform:{base:r?"translateX(0)":"translateX(-100%)",md:"translateX(0)"},borderRight:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(G,{p:4,borderBottom:"1px solid",borderColor:"var(--border-primary)",children:d.jsxs(ne,{gap:2,children:[d.jsx(qre,{}),d.jsx(hd,{to:"/",style:{textDecoration:"none"},onClick:s,children:d.jsxs(ne,{gap:2,children:[d.jsx(WL,{src:"/logo192.png",alt:"Açaí",w:"32px",h:"32px"}),d.jsx(W,{fontSize:"xl",fontWeight:"bold",color:"var(--text-heading)",children:"Açaí"})]})})]})}),d.jsx(G,{p:3,children:d.jsx(Et,{w:"100%",onClick:o,variant:"outline",justifyContent:"flex-start",size:"md",color:"var(--text-secondary)",borderColor:"var(--border-secondary)",_hover:{bg:"var(--bg-hover)",borderColor:"var(--border-primary)"},children:d.jsxs(ne,{gap:2,children:[d.jsx(Yae,{}),d.jsx(W,{children:"New Chat"})]})})}),d.jsxs(G,{px:3,pb:3,flex:1,overflowY:"auto",children:[d.jsx(W,{fontSize:"xs",fontWeight:"bold",color:"var(--text-muted)",mb:2,px:2,textTransform:"uppercase",letterSpacing:"wide",children:"Navigation"}),d.jsx(ze,{gap:1,align:"stretch",children:iie.map(l=>{const u=l.icon,c=l.path==="/"?t.pathname==="/":t.pathname.startsWith(l.path);return d.jsx(hd,{to:l.path,style:{textDecoration:"none",width:"100%"},onClick:s,children:d.jsxs(ne,{p:2.5,borderRadius:"md",bg:c?"var(--bg-active)":"transparent",_hover:{bg:"var(--bg-hover)"},cursor:"pointer",gap:3,transition:"all 0.2s",children:[d.jsx(G,{color:c?`${l.color}.400`:"var(--text-muted)",children:d.jsx(u,{})}),d.jsx(W,{fontSize:"sm",color:c?"var(--text-heading)":"var(--text-secondary)",fontWeight:c?"medium":"normal",children:l.name})]})},l.id)})}),d.jsx(W,{fontSize:"xs",fontWeight:"bold",color:"var(--text-muted)",mt:4,mb:2,px:2,textTransform:"uppercase",letterSpacing:"wide",children:"Dev"}),d.jsx(ze,{gap:1,align:"stretch",children:oie.map(l=>{const u=l.icon,c=t.pathname.startsWith(l.path);return d.jsx(hd,{to:l.path,style:{textDecoration:"none",width:"100%"},onClick:s,children:d.jsxs(ne,{p:2.5,borderRadius:"md",bg:c?"var(--bg-active)":"transparent",_hover:{bg:"var(--bg-hover)"},cursor:"pointer",gap:3,transition:"all 0.2s",children:[d.jsx(G,{color:c?`${l.color}.400`:"var(--text-muted)",children:d.jsx(u,{})}),d.jsx(W,{fontSize:"sm",color:c?"var(--text-heading)":"var(--text-secondary)",fontWeight:c?"medium":"normal",children:l.name})]})},l.id)})})]}),d.jsx(G,{p:4,borderTop:"1px solid",borderColor:"var(--border-primary)",children:i!=null&&i.telemetry?d.jsx(Gae,{}):d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",textAlign:"center",children:"Açaí v0.1.0"})})]}),d.jsx(G,{className:"main-content",ml:{base:0,md:"260px"},h:"100vh",w:{base:"100vw",md:"calc(100vw - 260px)"},overflow:"hidden",children:e}),r&&d.jsx(G,{position:"fixed",top:0,left:0,right:0,bottom:0,bg:"var(--bg-overlay)",zIndex:999,onClick:s,display:{base:"block",md:"none"}})]})},pm="/api/agent";async function qe(e,t={}){const n=`${pm}${e}`,r={headers:{"Content-Type":"application/json",...t.headers},...t},a=await fetch(n,r);if(!a.ok){const i=await a.json().catch(()=>({}));throw new Error(i.error||`HTTP ${a.status}`)}return a.json()}async function Nw(e={}){const t=new URLSearchParams;e.project&&t.set("project",e.project),e.task_id&&t.set("task_id",e.task_id);const n=t.toString();return qe(`/conversations${n?`?${n}`:""}`)}async function gM(e){await qe(`/conversations/${e}`,{method:"DELETE"})}class Iw{constructor(t){pl(this,"reader",null);pl(this,"decoder",new TextDecoder);pl(this,"listeners",{});pl(this,"_closed",!1);pl(this,"onerror",null);if(!t.body)throw new Error("Response has no body");this.reader=t.body.getReader(),this._pump()}addEventListener(t,n){var r;((r=this.listeners)[t]||(r[t]=[])).push(n)}close(){this._closed=!0,this.onerror=null,this.listeners={};const t=this.reader;this.reader=null,t==null||t.cancel().catch(()=>{})}async _pump(){var n,r;let t="";try{for(;!this._closed&&this.reader;){const{done:a,value:i}=await this.reader.read();if(a||this._closed)break;t+=this.decoder.decode(i,{stream:!0});const o=t.split(`

`);t=o.pop();for(const s of o)!s.trim()||this._closed||this._dispatch(s)}}catch(a){if(this._closed)return;const i=a instanceof Error?a.message:"Connection lost";this._dispatch(`event: error
data: ${JSON.stringify({message:i})}`),(n=this.onerror)==null||n.call(this,i);return}this._closed||(r=this.onerror)==null||r.call(this,"Stream ended unexpectedly")}_dispatch(t){if(this._closed)return;let n="message";const r=[];for(const o of t.split(`
`))o.startsWith("event: ")?n=o.slice(7).trim():o.startsWith("data: ")?r.push(o.slice(6)):o.startsWith("data:")&&r.push(o.slice(5));const a=r.join(`
`),i=new MessageEvent(n,{data:a});for(const o of this.listeners[n]||[])o(i)}}async function lie(){return qe("/graphs")}async function Mc(e,t="",n="",r="",a="",i="",o,s,l){const u={message:e,conversation:t,project:n,parent_task:r,provider:a,agent:i};o!==void 0&&(u.enable_thinking=o),s&&(u.graph=s),l&&(u.ephemeral=!0);const c=await fetch(`${pm}/converse`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)});if(!c.ok){const f=await c.json().catch(()=>({}));throw new Error(f.error||f.message||`HTTP ${c.status}`)}return{conversation:c.headers.get("X-Conversation")||t,stream:new Iw(c)}}async function py(e,t="",n="",r="",a="",i=""){const o={message:e,conversation:t,project:n,parent_task:r,provider:a,agent:i},s=await fetch(`${pm}/think/converse`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!s.ok){const u=await s.json().catch(()=>({}));throw new Error(u.error||u.message||`HTTP ${s.status}`)}return{conversation:s.headers.get("X-Conversation")||t,stream:new Iw(s)}}async function uie(e){return qe(`/history?conversation=${encodeURIComponent(e)}`)}async function mM(e={}){const t=[];e.status&&t.push(`status=${encodeURIComponent(e.status)}`),e.project&&t.push(`project=${encodeURIComponent(e.project)}`),e.rootOnly&&t.push("root_only=true");const n=t.length?`?${t.join("&")}`:"";return qe(`/tasks${n}`)}async function bM(e){return qe(`/tasks/${e}/tree`)}async function yM(e,t="",n=0,r="",a=""){return qe("/tasks",{method:"POST",body:JSON.stringify({title:e,description:t,priority:n,project:r,parent_task:a,kind:"task"})})}async function cie(e,t){return qe(`/tasks/${e}`,{method:"PATCH",body:JSON.stringify(t)})}async function die(e=50){return qe(`/events?limit=${e}`)}async function pie(){return qe("/status")}async function vM(){return qe("/projects")}async function fie(e){return qe("/projects",{method:"POST",body:JSON.stringify(e)})}async function s_(e){return qe(`/projects/${e}`)}async function hie(e,t){return qe(`/projects/${e}`,{method:"PATCH",body:JSON.stringify(t)})}async function Ph(e,t){return qe(`/conversations/${e}`,{method:"PATCH",body:JSON.stringify(t)})}async function fm(){return qe("/providers")}async function gie(e){return qe("/providers",{method:"POST",body:JSON.stringify(e)})}async function mie(e,t){return qe(`/providers/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function bie(e){await qe(`/providers/${e}`,{method:"DELETE"})}async function yie(e){return qe(`/providers/${e}/activate`,{method:"POST"})}async function jp(){return qe("/agents")}async function vie(e){return qe("/agents",{method:"POST",body:JSON.stringify(e)})}async function xie(e,t){return qe(`/agents/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function Sie(e){await qe(`/agents/${e}`,{method:"DELETE"})}async function wie(e){return qe(`/agents/${e}/template`)}async function fy(e,t){return qe(`/agents/${e}/template`,{method:"PUT",body:JSON.stringify({content:t})})}async function Eie(){return qe("/tools/namespaces")}async function kie(){return qe("/workflows/node-types")}async function Tie(e){return(await qe(`/workflows/agent-inputs/${e}`)).inputs}async function Lf(){return qe("/workflows")}async function Cie(e){return qe(`/workflows/${e}`)}async function l_(e){return qe("/workflows",{method:"POST",body:JSON.stringify(e)})}async function u_(e,t){return qe(`/workflows/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function Aie(e){await qe(`/workflows/${e}`,{method:"DELETE"})}async function _ie(e){return qe(`/workflows/${e}/validate`,{method:"POST"})}async function Rie(e,t){return qe(`/workflows/builtin/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function xM(e,t="",n=""){const r=await fetch(`${pm}/uber/converse`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e,current_conversation:t,agent:n})});if(!r.ok){const a=await r.json().catch(()=>({}));throw new Error(a.error||a.message||`HTTP ${r.status}`)}return{stream:new Iw(r)}}async function Nie(e){return qe(`/conversations/${e}/inflight`)}async function Iie(e){return qe(`/conversations/${e}/context-stats`)}async function Oie(){return qe("/config")}async function Die(e){return qe("/config",{method:"PATCH",body:JSON.stringify(e)})}async function Lie(){return qe("/knowledge")}async function Mie(e,t,n){return qe(`/knowledge/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${encodeURIComponent(n)}`)}async function zie(e){return qe(`/knowledge/search?q=${encodeURIComponent(e)}`)}async function Pie(e,t,n){return qe(`/knowledge/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${encodeURIComponent(n)}/delete`,{method:"POST"})}async function jie(e,t,n,r){return qe(`/knowledge/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,{method:"PATCH",body:JSON.stringify({content:r})})}const Fie=({size:e=20})=>d.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})}),Bie=()=>{const e=nl(),[t,n]=w.useState(""),[r,a]=w.useState(!1),[i,o]=w.useState(null),[s,l]=w.useState([]),[u,c]=w.useState([]),[p,f]=w.useState(()=>localStorage.getItem("acai.provider")||"auto"),[h,g]=w.useState(()=>localStorage.getItem("acai.agent")||"default"),[y,x]=w.useState(()=>localStorage.getItem("acai.thinking")||"native"),m=w.useRef(null),v=w.useRef(null),b=w.useRef(null);w.useEffect(()=>(document.title="Açaí",fm().then(l).catch(()=>{}),jp().then(c).catch(()=>{}),()=>{var L;(L=b.current)==null||L.close()}),[]);const S=w.useCallback(()=>{v.current&&(clearInterval(v.current),v.current=null)},[]),C=w.useCallback((L,I)=>{S(),o(null),e(`/conversations/${L}`,{state:{pendingMessage:I,provider:p,agent:h,thinkingMode:y}})},[e,p,h,y,S]),k=w.useCallback(()=>{i&&C(i.conversation,i.message)},[i,C]),R=w.useCallback(()=>{i&&(S(),o(null),a(!1),e("/conversations",{state:{pendingMessage:i.message,provider:p,agent:h,thinkingMode:y}}))},[i,e,p,h,y,S]);w.useEffect(()=>{if(i)return S(),v.current=setInterval(()=>{o(L=>L?L.countdown<=1?{...L,countdown:0}:{...L,countdown:L.countdown-1}:null)},1e3),S},[i==null?void 0:i.conversation,S]),w.useEffect(()=>{i&&i.countdown<=0&&k()},[i==null?void 0:i.countdown]);const O=async()=>{var I;const L=t.trim();if(!(!L||r)){a(!0);try{(I=b.current)==null||I.close();const M=(await xM(L,"",h)).stream;b.current=M,M.addEventListener("route",F=>{const A=JSON.parse(F.data);if(M.close(),b.current=null,A.is_new){C(A.conversation,L);return}o({conversation:A.conversation,is_new:!1,title:A.title||"",message:L,countdown:5})}),M.addEventListener("error",F=>{let A="Routing failed";try{const j=JSON.parse(F.data);A=j.message||j.error||A}catch{}console.error("[UberRoute]",A),M.close(),b.current=null,a(!1)}),M.onerror=F=>{console.error("[UberRoute]",F||"Connection lost"),b.current=null,a(!1)}}catch(P){console.error("[UberRoute]",P instanceof Error?P.message:P),a(!1)}}},N=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),O())},_=L=>{n(L.target.value),L.target.style.height="auto",L.target.style.height=Math.min(L.target.scrollHeight,200)+"px"};return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",px:4,children:d.jsxs(ze,{gap:6,w:"100%",maxW:"48rem",mb:12,children:[d.jsxs(ze,{gap:3,children:[d.jsx(WL,{src:"/logo192.png",alt:"Açaí",w:"64px",h:"64px"}),d.jsx(W,{fontSize:"xl",fontWeight:"semibold",color:"var(--text-heading)",children:"What can I help you with?"}),d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",textAlign:"center",children:"Your message will be routed to the right conversation automatically."})]}),d.jsxs(G,{w:"100%",children:[d.jsxs(ne,{mb:2,justify:"flex-start",gap:3,children:[d.jsx(Wt,{size:"xs",w:"auto",children:d.jsx(qt,{value:h,onChange:L=>{const I=L.target.value;g(I),localStorage.setItem("acai.agent",I)},bg:"var(--bg-input)",color:"var(--text-tertiary)",borderColor:"var(--border-input)",fontSize:"xs",px:2,h:"26px",borderRadius:"md",children:u.map(L=>d.jsx("option",{value:L.name,style:{background:"var(--option-bg)"},children:L.avatar?`${L.avatar} ${L.name}`:L.name},L.name))})}),d.jsx(Wt,{size:"xs",w:"auto",children:d.jsxs(qt,{value:p,onChange:L=>{const I=L.target.value;f(I),localStorage.setItem("acai.provider",I)},bg:"var(--bg-input)",color:"var(--text-tertiary)",borderColor:"var(--border-input)",fontSize:"xs",px:2,h:"26px",borderRadius:"md",children:[d.jsx("option",{value:"auto",style:{background:"var(--option-bg)"},children:"Auto"}),s.map(L=>d.jsx("option",{value:L.name,style:{background:"var(--option-bg)"},children:L.name},L.name))]})}),d.jsx(Wt,{size:"xs",w:"auto",children:d.jsxs(qt,{value:y,onChange:L=>{const I=L.target.value;x(I),localStorage.setItem("acai.thinking",I)},bg:"var(--bg-input)",color:y==="off"?"var(--text-tertiary)":"var(--accent)",borderColor:"var(--border-input)",fontSize:"xs",px:2,h:"26px",borderRadius:"md",children:[d.jsx("option",{value:"off",style:{background:"var(--option-bg)"},children:"Think: Off"}),d.jsx("option",{value:"native",style:{background:"var(--option-bg)"},children:"Think: Native"}),d.jsx("option",{value:"emulated",style:{background:"var(--option-bg)"},children:"Think: Emulated"})]})})]}),d.jsxs(ne,{gap:2,align:"flex-end",children:[d.jsx(ne,{flex:1,bg:"var(--bg-card)",borderRadius:"xl",border:"1px solid",borderColor:"var(--border-secondary)",_focusWithin:{borderColor:"var(--accent)",boxShadow:"0 0 0 1px var(--accent)"},align:"flex-end",px:3,children:d.jsx(Qi,{ref:m,value:t,onChange:_,onKeyDown:N,placeholder:"Ask anything...",disabled:r,rows:1,resize:"none",border:"none",_focus:{outline:"none",boxShadow:"none"},py:3,px:2,fontSize:"md",maxH:"200px",overflow:"auto",bg:"transparent",flex:1,color:"var(--text-primary)",_placeholder:{color:"var(--text-muted)"}})}),d.jsx(dt,{"aria-label":"Send message",onMouseDown:L=>{L.preventDefault(),O()},disabled:r||!t.trim(),colorScheme:"green",size:"lg",borderRadius:"xl",h:"50px",w:"50px",flexShrink:0,type:"button",children:r?d.jsx(On,{size:"sm"}):d.jsx(Fie,{})})]})]}),r&&!i&&d.jsxs(ne,{gap:2,children:[d.jsx(On,{size:"xs",color:"var(--accent)"}),d.jsx(W,{fontSize:"xs",color:"var(--text-secondary)",children:"Finding the right conversation..."})]}),i&&d.jsx(G,{w:"100%",bg:"rgba(102,126,234,0.08)",py:3,px:4,borderRadius:"xl",border:"1px solid",borderColor:"var(--border-secondary)",children:d.jsxs(ne,{gap:3,justify:"space-between",flexWrap:"wrap",children:[d.jsxs(ne,{gap:2,flex:1,minW:0,children:[d.jsx(G,{w:"8px",h:"8px",borderRadius:"full",bg:"linear-gradient(135deg, #667eea, #764ba2)",flexShrink:0}),d.jsx(W,{fontSize:"sm",color:"var(--text-secondary)",isTruncated:!0,children:i.is_new?`New conversation: "${i.title||"Untitled"}"`:`Continue in "${i.title||"Untitled"}"`})]}),d.jsxs(ne,{gap:2,flexShrink:0,children:[d.jsxs(G,{as:"button",onClick:k,position:"relative",overflow:"hidden",px:4,py:1.5,borderRadius:"md",fontSize:"sm",fontWeight:"semibold",color:"white",cursor:"pointer",_hover:{opacity:.9},children:[d.jsx(G,{position:"absolute",inset:0,bg:"var(--accent)",opacity:.3,borderRadius:"md"}),d.jsx(G,{position:"absolute",top:0,left:0,bottom:0,borderRadius:"md",bg:"var(--accent)",style:{width:`${i.countdown/5*100}%`,transition:"width 1s linear"}}),d.jsx(W,{as:"span",position:"relative",zIndex:1,children:"Continue"})]}),d.jsx(G,{as:"button",onClick:R,px:4,py:1.5,borderRadius:"md",fontSize:"sm",fontWeight:"semibold",bg:"var(--bg-card)",color:"var(--text-secondary)",cursor:"pointer",border:"1px solid",borderColor:"var(--border-secondary)",_hover:{bg:"var(--bg-hover)"},children:"New Chat"})]})]})})]})})},Uie=()=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),d.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),hy=()=>d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),c_=()=>d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:d.jsx("polyline",{points:"20 6 9 17 4 12"})}),$ie=()=>d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("polyline",{points:"3 6 5 6 21 6"}),d.jsx("path",{d:"M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"}),d.jsx("path",{d:"M10 11v6"}),d.jsx("path",{d:"M14 11v6"}),d.jsx("path",{d:"M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"})]}),SM=({conv:e,onSave:t,onDelete:n,onClose:r})=>{const[a,i]=w.useState(e.title),[o,s]=w.useState(e.description||""),[l,u]=w.useState((e.tags||[]).join(", ")),[c,p]=w.useState(!1),f=()=>{const h=l.split(",").map(g=>g.trim()).filter(Boolean);t({title:a,description:o,tags:h})};return d.jsx(G,{position:"fixed",inset:0,bg:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",onClick:r,children:d.jsxs(G,{bg:"var(--bg-card)",p:6,borderRadius:"lg",minW:"420px",maxW:"520px",border:"1px solid",borderColor:"var(--border-primary)",boxShadow:"xl",onClick:h=>h.stopPropagation(),children:[d.jsxs(ne,{justify:"space-between",mb:4,children:[d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",children:"Edit Conversation"}),d.jsx(dt,{"aria-label":"Close",variant:"ghost",size:"xs",onClick:r,children:d.jsx(hy,{})})]}),d.jsxs(ze,{gap:3,align:"stretch",children:[d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Title"}),d.jsx(Ne,{value:a,onChange:h=>i(h.target.value),bg:"var(--bg-input)",borderColor:"var(--border-input)",color:"var(--text-primary)",fontSize:"sm"})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Description"}),d.jsx(Qi,{value:o,onChange:h=>s(h.target.value),bg:"var(--bg-input)",borderColor:"var(--border-input)",color:"var(--text-primary)",fontSize:"sm",rows:3,resize:"vertical"})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Tags (comma-separated)"}),d.jsx(Ne,{value:l,onChange:h=>u(h.target.value),bg:"var(--bg-input)",borderColor:"var(--border-input)",color:"var(--text-primary)",fontSize:"sm",placeholder:"python, api, backend"})]})]}),d.jsxs(ne,{justify:"space-between",mt:5,children:[c?d.jsxs(ne,{gap:2,children:[d.jsx(W,{fontSize:"xs",color:"red.400",children:"Delete?"}),d.jsx(dt,{"aria-label":"Confirm delete",size:"sm",variant:"ghost",color:"red.400",_hover:{bg:"rgba(229,62,62,0.15)"},onClick:()=>n(e.id),children:d.jsx(c_,{})}),d.jsx(dt,{"aria-label":"Cancel delete",size:"sm",variant:"ghost",color:"var(--text-muted)",_hover:{color:"var(--text-heading)"},onClick:()=>p(!1),children:d.jsx(hy,{})})]}):d.jsx(dt,{"aria-label":"Delete conversation",variant:"ghost",size:"sm",color:"var(--text-muted)",_hover:{color:"red.400"},onClick:()=>p(!0),children:d.jsx($ie,{})}),d.jsxs(ne,{gap:2,children:[d.jsx(dt,{"aria-label":"Cancel",variant:"ghost",size:"sm",onClick:r,color:"var(--text-muted)",_hover:{color:"var(--text-heading)"},children:d.jsx(hy,{})}),d.jsx(dt,{"aria-label":"Save",size:"sm",onClick:f,colorScheme:"green",children:d.jsx(c_,{})})]})]})]})})},wM=({conversations:e,activeId:t,onSelect:n,onEdit:r,header:a})=>d.jsxs(G,{w:"260px",flexShrink:0,borderRight:"1px solid",borderColor:"var(--border-primary)",display:"flex",flexDirection:"column",bg:"var(--bg-page)",children:[a||d.jsx(G,{px:3,py:3,borderBottom:"1px solid",borderColor:"var(--border-primary)",children:d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-secondary)",children:"Conversations"})}),d.jsx(G,{flex:1,overflowY:"auto",px:2,py:2,children:d.jsxs(ze,{gap:1,align:"stretch",children:[e.length===0&&d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",textAlign:"center",py:4,children:"No conversations yet"}),e.map(i=>d.jsxs(ne,{px:3,py:2,borderRadius:"md",cursor:"pointer",bg:t===i.id?"var(--bg-active)":"transparent",_hover:{bg:t===i.id?"var(--bg-active)":"var(--bg-hover)"},onClick:()=>n(i.id),role:"group",children:[d.jsxs(ze,{align:"flex-start",flex:1,gap:0,children:[d.jsx(W,{fontSize:"sm",lineClamp:1,color:t===i.id?"var(--text-heading)":"var(--text-tertiary)",children:i.title||"Untitled"}),i.tags&&i.tags.length>0&&d.jsx(ne,{gap:1,flexWrap:"wrap",children:i.tags.slice(0,3).map(o=>d.jsx(bt,{fontSize:"2xs",px:1.5,py:0,borderRadius:"full",bg:"rgba(102,126,234,0.12)",color:"var(--text-muted)",fontWeight:"normal",children:o},o))})]}),d.jsx(dt,{"aria-label":"Edit",onClick:o=>{o.stopPropagation(),r(i)},variant:"ghost",size:"xs",color:"var(--text-muted)",_hover:{color:"var(--text-heading)",bg:"transparent"},children:d.jsx(Uie,{})})]},i.id))]})})]});function d_(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function Hie(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Vie=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gie=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wie={};function p_(e,t){return(Wie.jsx?Gie:Vie).test(e)}const qie=/[ \t\n\f\r]/g;function Yie(e){return typeof e=="object"?e.type==="text"?f_(e.value):!1:f_(e)}function f_(e){return e.replace(qie,"")===""}class Fp{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Fp.prototype.normal={};Fp.prototype.property={};Fp.prototype.space=void 0;function EM(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Fp(n,r,t)}function Yd(e){return e.toLowerCase()}class zr{constructor(t,n){this.attribute=n,this.property=t}}zr.prototype.attribute="";zr.prototype.booleanish=!1;zr.prototype.boolean=!1;zr.prototype.commaOrSpaceSeparated=!1;zr.prototype.commaSeparated=!1;zr.prototype.defined=!1;zr.prototype.mustUseProperty=!1;zr.prototype.number=!1;zr.prototype.overloadedBoolean=!1;zr.prototype.property="";zr.prototype.spaceSeparated=!1;zr.prototype.space=void 0;let Xie=0;const Qe=al(),pn=al(),Ov=al(),ve=al(),Ft=al(),lu=al(),Br=al();function al(){return 2**++Xie}const Dv=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:pn,commaOrSpaceSeparated:Br,commaSeparated:lu,number:ve,overloadedBoolean:Ov,spaceSeparated:Ft},Symbol.toStringTag,{value:"Module"})),gy=Object.keys(Dv);class Ow extends zr{constructor(t,n,r,a){let i=-1;if(super(t,n),h_(this,"space",a),typeof r=="number")for(;++i<gy.length;){const o=gy[i];h_(this,gy[i],(r&Dv[o])===Dv[o])}}}Ow.prototype.defined=!0;function h_(e,t,n){n&&(e[t]=n)}function ac(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Ow(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Yd(r)]=r,n[Yd(i.attribute)]=r}return new Fp(t,n,e.space)}const kM=ac({properties:{ariaActiveDescendant:null,ariaAtomic:pn,ariaAutoComplete:null,ariaBusy:pn,ariaChecked:pn,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:Ft,ariaCurrent:null,ariaDescribedBy:Ft,ariaDetails:null,ariaDisabled:pn,ariaDropEffect:Ft,ariaErrorMessage:null,ariaExpanded:pn,ariaFlowTo:Ft,ariaGrabbed:pn,ariaHasPopup:null,ariaHidden:pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ft,ariaLevel:ve,ariaLive:null,ariaModal:pn,ariaMultiLine:pn,ariaMultiSelectable:pn,ariaOrientation:null,ariaOwns:Ft,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:pn,ariaReadOnly:pn,ariaRelevant:null,ariaRequired:pn,ariaRoleDescription:Ft,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:pn,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function TM(e,t){return t in e?e[t]:t}function CM(e,t){return TM(e,t.toLowerCase())}const Kie=ac({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lu,acceptCharset:Ft,accessKey:Ft,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Ft,autoFocus:Qe,autoPlay:Qe,blocking:Ft,capture:null,charSet:null,checked:Qe,cite:null,className:Ft,cols:ve,colSpan:null,content:null,contentEditable:pn,controls:Qe,controlsList:Ft,coords:ve|lu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:Ov,draggable:pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Ft,height:ve,hidden:Ov,high:ve,href:null,hrefLang:null,htmlFor:Ft,httpEquiv:Ft,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Ft,itemRef:Ft,itemScope:Qe,itemType:Ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,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:Qe,optimum:ve,pattern:null,ping:Ft,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Ft,required:Qe,reversed:Qe,rows:ve,rowSpan:ve,sandbox:Ft,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:pn,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ft,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:pn,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:CM}),Zie=ac({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:Br,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:Ft,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:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,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:lu,g2:lu,glyphName:lu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:Br,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,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:ve,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:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Br,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Br,rev:Br,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Br,requiredFeatures:Br,requiredFonts:Br,requiredFormats:Br,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:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:Br,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Br,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Br,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:TM}),AM=ac({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()}}),_M=ac({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:CM}),RM=ac({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Qie={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"},Jie=/[A-Z]/g,g_=/-[a-z]/g,eoe=/^data[-\w.:]+$/i;function NM(e,t){const n=Yd(t);let r=t,a=zr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&eoe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(g_,noe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!g_.test(i)){let o=i.replace(Jie,toe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Ow}return new a(r,t)}function toe(e){return"-"+e.toLowerCase()}function noe(e){return e.charAt(1).toUpperCase()}const IM=EM([kM,Kie,AM,_M,RM],"html"),hm=EM([kM,Zie,AM,_M,RM],"svg");function m_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function roe(e){return e.join(" ").trim()}var Dw={},b_=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,aoe=/\n/g,ioe=/^\s*/,ooe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,soe=/^:\s*/,loe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,uoe=/^[;\s]*/,coe=/^\s+|\s+$/g,doe=`
`,y_="/",v_="*",ks="",poe="comment",foe="declaration";function hoe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(g){var y=g.match(aoe);y&&(n+=y.length);var x=g.lastIndexOf(doe);r=~x?g.length-x:r+g.length}function i(){var g={line:n,column:r};return function(y){return y.position=new o(g),u(),y}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var y=new Error(t.source+":"+n+":"+r+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(g){var y=g.exec(e);if(y){var x=y[0];return a(x),e=e.slice(x.length),y}}function u(){l(ioe)}function c(g){var y;for(g=g||[];y=p();)y!==!1&&g.push(y);return g}function p(){var g=i();if(!(y_!=e.charAt(0)||v_!=e.charAt(1))){for(var y=2;ks!=e.charAt(y)&&(v_!=e.charAt(y)||y_!=e.charAt(y+1));)++y;if(y+=2,ks===e.charAt(y-1))return s("End of comment missing");var x=e.slice(2,y-2);return r+=2,a(x),e=e.slice(y),r+=2,g({type:poe,comment:x})}}function f(){var g=i(),y=l(ooe);if(y){if(p(),!l(soe))return s("property missing ':'");var x=l(loe),m=g({type:foe,property:x_(y[0].replace(b_,ks)),value:x?x_(x[0].replace(b_,ks)):ks});return l(uoe),m}}function h(){var g=[];c(g);for(var y;y=f();)y!==!1&&(g.push(y),c(g));return g}return u(),h()}function x_(e){return e?e.replace(coe,ks):ks}var goe=hoe,moe=Kh&&Kh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dw,"__esModule",{value:!0});Dw.default=yoe;const boe=moe(goe);function yoe(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,boe.default)(e),a=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:s}=i;a?t(o,s,i):s&&(n=n||{},n[o]=s)}),n}var gm={};Object.defineProperty(gm,"__esModule",{value:!0});gm.camelCase=void 0;var voe=/^--[a-zA-Z0-9_-]+$/,xoe=/-([a-z])/g,Soe=/^[^-]+$/,woe=/^-(webkit|moz|ms|o|khtml)-/,Eoe=/^-(ms)-/,koe=function(e){return!e||Soe.test(e)||voe.test(e)},Toe=function(e,t){return t.toUpperCase()},S_=function(e,t){return"".concat(t,"-")},Coe=function(e,t){return t===void 0&&(t={}),koe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Eoe,S_):e=e.replace(woe,S_),e.replace(xoe,Toe))};gm.camelCase=Coe;var Aoe=Kh&&Kh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_oe=Aoe(Dw),Roe=gm;function Lv(e,t){var n={};return!e||typeof e!="string"||(0,_oe.default)(e,function(r,a){r&&a&&(n[(0,Roe.camelCase)(r,t)]=a)}),n}Lv.default=Lv;var Noe=Lv;const Ioe=dp(Noe),OM=DM("end"),Lw=DM("start");function DM(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 Ooe(e){const t=Lw(e),n=OM(e);if(t&&n)return{start:t,end:n}}function yd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?w_(e.position):"start"in e||"end"in e?w_(e):"line"in e||"column"in e?Mv(e):""}function Mv(e){return E_(e&&e.line)+":"+E_(e&&e.column)}function w_(e){return Mv(e&&e.start)+"-"+Mv(e&&e.end)}function E_(e){return e&&typeof e=="number"?e:1}class lr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=yd(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}lr.prototype.file="";lr.prototype.name="";lr.prototype.reason="";lr.prototype.message="";lr.prototype.stack="";lr.prototype.column=void 0;lr.prototype.line=void 0;lr.prototype.ancestors=void 0;lr.prototype.cause=void 0;lr.prototype.fatal=void 0;lr.prototype.place=void 0;lr.prototype.ruleId=void 0;lr.prototype.source=void 0;const Mw={}.hasOwnProperty,Doe=new Map,Loe=/[A-Z]/g,Moe=new Set(["table","tbody","thead","tfoot","tr"]),zoe=new Set(["td","th"]),LM="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Poe(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=Goe(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=Voe(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"?hm:IM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=MM(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function MM(e,t,n){if(t.type==="element")return joe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Foe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Uoe(e,t,n);if(t.type==="mdxjsEsm")return Boe(e,t);if(t.type==="root")return $oe(e,t,n);if(t.type==="text")return Hoe(e,t)}function joe(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=hm,e.schema=a),e.ancestors.push(t);const i=PM(e,t.tagName,!1),o=Woe(e,t);let s=Pw(e,t);return Moe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Yie(l):!0})),zM(e,o,i,t),zw(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function Foe(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)}Xd(e,t.position)}function Boe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xd(e,t.position)}function Uoe(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=hm,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:PM(e,t.name,!0),o=qoe(e,t),s=Pw(e,t);return zM(e,o,i,t),zw(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function $oe(e,t,n){const r={};return zw(r,Pw(e,t)),e.create(t,e.Fragment,r,n)}function Hoe(e,t){return t.value}function zM(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function zw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Voe(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function Goe(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=Lw(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Woe(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Mw.call(t.properties,a)){const i=Yoe(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&zoe.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function qoe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Xd(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Xd(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Pw(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Doe;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=MM(e,i,o);s!==void 0&&n.push(s)}return n}function Yoe(e,t,n){const r=NM(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Hie(n):roe(n)),r.property==="style"){let a=typeof n=="object"?n:Xoe(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Koe(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Qie[r.property]||r.property:r.attribute,n]}}function Xoe(e,t){try{return Ioe(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new lr("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=LM+"#cannot-parse-style-attribute",a}}function PM(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=p_(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=p_(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Mw.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xd(e)}function Xd(e,t){const n=new lr("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=LM+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Koe(e){const t={};let n;for(n in e)Mw.call(e,n)&&(t[Zoe(n)]=e[n]);return t}function Zoe(e){let t=e.replace(Loe,Qoe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Qoe(e){return"-"+e.toLowerCase()}const my={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"]},Joe={};function jw(e,t){const n=Joe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return jM(e,r,a)}function jM(e,t,n){if(ese(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 k_(e.children,t,n)}return Array.isArray(e)?k_(e,t,n):""}function k_(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=jM(e[a],t,n);return r.join("")}function ese(e){return!!(e&&typeof e=="object")}const T_=document.createElement("i");function Kd(e){const t="&"+e+";";T_.innerHTML=t;const n=T_.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Jr(e,t,n,r){const a=e.length;let i=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);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function ba(e,t){return e.length>0?(Jr(e,e.length,0,t),e):t}const C_={}.hasOwnProperty;function FM(e){const t={};let n=-1;for(;++n<e.length;)tse(t,e[n]);return t}function tse(e,t){let n;for(n in t){const a=(C_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){C_.call(a,o)||(a[o]=[]);const s=i[o];nse(a[o],Array.isArray(s)?s:s?[s]:[])}}}function nse(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Jr(e,0,0,r)}function BM(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 La(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gr=is(/[A-Za-z]/),ir=is(/[\dA-Za-z]/),rse=is(/[#-'*+\--9=?A-Z^-~]/);function Vg(e){return e!==null&&(e<32||e===127)}const zv=is(/\d/),ase=is(/[\dA-Fa-f]/),ise=is(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function Mt(e){return e!==null&&(e<0||e===32)}function ot(e){return e===-2||e===-1||e===32}const mm=is(new RegExp("\\p{P}|\\p{S}","u")),Vs=is(/\s/);function is(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ic(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&ir(e.charCodeAt(n+1))&&ir(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);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 rt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return ot(l)?(e.enter(n),s(l)):t(l)}function s(l){return ot(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const ose={tokenize:sse};function sse(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),rt(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Oe(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const lse={tokenize:use},A_={tokenize:cse};function use(e){const t=this,n=[];let r=0,a,i,o;return s;function s(b){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(b)}return u(b)}function l(b){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();const S=t.events.length;let C=S,k;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){k=t.events[C][1].end;break}m(r);let R=S;for(;R<t.events.length;)t.events[R][1].end={...k},R++;return Jr(t.events,C+1,0,t.events.slice(S)),t.events.length=R,u(b)}return s(b)}function u(b){if(r===n.length){if(!a)return f(b);if(a.currentConstruct&&a.currentConstruct.concrete)return g(b);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(A_,c,p)(b)}function c(b){return a&&v(),m(r),f(b)}function p(b){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(b)}function f(b){return t.containerState={},e.attempt(A_,h,g)(b)}function h(b){return r++,n.push([t.currentConstruct,t.containerState]),f(b)}function g(b){if(b===null){a&&v(),m(0),e.consume(b);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),y(b)}function y(b){if(b===null){x(e.exit("chunkFlow"),!0),m(0),e.consume(b);return}return Oe(b)?(e.consume(b),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(b),y)}function x(b,S){const C=t.sliceStream(b);if(S&&C.push(null),b.previous=i,i&&(i.next=b),i=b,a.defineSkip(b.start),a.write(C),t.parser.lazy[b.start.line]){let k=a.events.length;for(;k--;)if(a.events[k][1].start.offset<o&&(!a.events[k][1].end||a.events[k][1].end.offset>o))return;const R=t.events.length;let O=R,N,_;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(N){_=t.events[O][1].end;break}N=!0}for(m(r),k=R;k<t.events.length;)t.events[k][1].end={..._},k++;Jr(t.events,O+1,0,t.events.slice(R)),t.events.length=k}}function m(b){let S=n.length;for(;S-- >b;){const C=n[S];t.containerState=C[1],C[0].exit.call(t,e)}n.length=b}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function cse(e,t,n){return rt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Au(e){if(e===null||Mt(e)||Vs(e))return 1;if(mm(e))return 2}function bm(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Pv={name:"attention",resolveAll:dse,tokenize:pse};function dse(e,t){let n=-1,r,a,i,o,s,l,u,c;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;l=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 p={...e[r][1].end},f={...e[n][1].start};__(p,-l),__(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ba(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ba(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=ba(u,bm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ba(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ba(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Jr(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function pse(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Au(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const u=e.exit("attentionSequence"),c=Au(l),p=!c||c===2&&a||n.includes(l),f=!a||a===2&&c||n.includes(r);return u._open=!!(i===42?p:p&&(a||!f)),u._close=!!(i===42?f:f&&(c||!p)),t(l)}}function __(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fse={name:"autolink",tokenize:hse};function hse(e,t,n){let r=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return gr(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||ir(h)?(r=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||ir(h))&&r++<32?(e.consume(h),s):(r=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Vg(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):rse(h)?(e.consume(h),u):n(h)}function c(h){return ir(h)?p(h):n(h)}function p(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||ir(h))&&r++<63){const g=h===45?f:p;return e.consume(h),g}return n(h)}}const Bp={partial:!0,tokenize:gse};function gse(e,t,n){return r;function r(i){return ot(i)?rt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Oe(i)?t(i):n(i)}}const UM={continuation:{tokenize:bse},exit:yse,name:"blockQuote",tokenize:mse};function mse(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return ot(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function bse(e,t,n){const r=this;return a;function a(o){return ot(o)?rt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(UM,t,n)(o)}}function yse(e){e.exit("blockQuote")}const $M={name:"characterEscape",tokenize:vse};function vse(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return ise(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const HM={name:"characterReference",tokenize:xse};function xse(e,t,n){const r=this;let a=0,i,o;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=ir,c(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=ase,c):(e.enter("characterReferenceValue"),i=7,o=zv,c(p))}function c(p){if(p===59&&a){const f=e.exit("characterReferenceValue");return o===ir&&!Kd(r.sliceSerialize(f))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&a++<i?(e.consume(p),c):n(p)}}const R_={partial:!0,tokenize:wse},N_={concrete:!0,name:"codeFenced",tokenize:Sse};function Sse(e,t,n){const r=this,a={partial:!0,tokenize:C};let i=0,o=0,s;return l;function l(k){return u(k)}function u(k){const R=r.events[r.events.length-1];return i=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===s?(o++,e.consume(k),c):o<3?n(k):(e.exit("codeFencedFenceSequence"),ot(k)?rt(e,p,"whitespace")(k):p(k))}function p(k){return k===null||Oe(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(R_,y,S)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||Oe(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(k)):ot(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rt(e,h,"whitespace")(k)):k===96&&k===s?n(k):(e.consume(k),f)}function h(k){return k===null||Oe(k)?p(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||Oe(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(k)):k===96&&k===s?n(k):(e.consume(k),g)}function y(k){return e.attempt(a,S,x)(k)}function x(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),m}function m(k){return i>0&&ot(k)?rt(e,v,"linePrefix",i+1)(k):v(k)}function v(k){return k===null||Oe(k)?e.check(R_,y,S)(k):(e.enter("codeFlowValue"),b(k))}function b(k){return k===null||Oe(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),b)}function S(k){return e.exit("codeFenced"),t(k)}function C(k,R,O){let N=0;return _;function _(F){return k.enter("lineEnding"),k.consume(F),k.exit("lineEnding"),L}function L(F){return k.enter("codeFencedFence"),ot(F)?rt(k,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):I(F)}function I(F){return F===s?(k.enter("codeFencedFenceSequence"),P(F)):O(F)}function P(F){return F===s?(N++,k.consume(F),P):N>=o?(k.exit("codeFencedFenceSequence"),ot(F)?rt(k,M,"whitespace")(F):M(F)):O(F)}function M(F){return F===null||Oe(F)?(k.exit("codeFencedFence"),R(F)):O(F)}}}function wse(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"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const by={name:"codeIndented",tokenize:kse},Ese={partial:!0,tokenize:Tse};function kse(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),rt(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):Oe(u)?e.attempt(Ese,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Oe(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Tse(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):rt(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Oe(o)?a(o):n(o)}}const Cse={name:"codeText",previous:_se,resolve:Ase,tokenize:Rse};function Ase(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 _se(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Rse(e,t,n){let r=0,a,i;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):p===96?(i=e.enter("codeTextSequence"),a=0,c(p)):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Oe(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),u)}function c(p){return p===96?(e.consume(p),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",u(p))}}class Nse{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 i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&zc(this.left,r),i.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),zc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),zc(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);zc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);zc(this.left,n.reverse())}}}function zc(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 VM(e){const t={};let n=-1,r,a,i,o,s,l,u;const c=new Nse(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ise(c,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=c.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},s=c.slice(a,n),s.unshift(r),c.splice(a,n-a+1,s))}}return Jr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Ise(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let c,p,f=-1,h=n,g=0,y=0;const x=[y];for(;h;){for(;e.get(++a)[1]!==h;);i.push(a),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),p&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(y=f+1,x.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):x.pop(),f=x.length;f--;){const m=s.slice(x[f],x[f+1]),v=i.pop();l.push([v,v+m.length-1]),e.splice(v,2,m)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const Ose={resolve:Lse,tokenize:Mse},Dse={partial:!0,tokenize:zse};function Lse(e){return VM(e),e}function Mse(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):Oe(s)?e.check(Dse,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function zse(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),rt(e,i,"linePrefix")}function i(o){if(o===null||Oe(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function GM(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return p;function p(m){return m===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(m),e.exit(i),f):m===null||m===32||m===41||Vg(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(m))}function f(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),f(m)):m===null||m===60||Oe(m)?n(m):(e.consume(m),m===92?g:h)}function g(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function y(m){return!c&&(m===null||m===41||Mt(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):c<u&&m===40?(e.consume(m),c++,y):m===41?(e.consume(m),c--,y):m===null||m===32||m===40||Vg(m)?n(m):(e.consume(m),m===92?x:y)}function x(m){return m===40||m===41||m===92?(e.consume(m),y):y(m)}}function WM(e,t,n,r,a,i){const o=this;let s=0,l;return u;function u(h){return e.enter(r),e.enter(a),e.consume(h),e.exit(a),e.enter(i),c}function c(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):Oe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Oe(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!ot(h)),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function qM(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),l(o)):f===null?n(f):Oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),rt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Oe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:c)}function p(f){return f===o||f===92?(e.consume(f),c):c(f)}}function vd(e,t){let n;return r;function r(a){return Oe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ot(a)?rt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Pse={name:"definition",tokenize:Fse},jse={partial:!0,tokenize:Bse};function Fse(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return WM.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return a=La(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Mt(h)?vd(e,u)(h):u(h)}function u(h){return GM(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(jse,p,p)(h)}function p(h){return ot(h)?rt(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Oe(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function Bse(e,t,n){return r;function r(s){return Mt(s)?vd(e,a)(s):n(s)}function a(s){return qM(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ot(s)?rt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Oe(s)?t(s):n(s)}}const Use={name:"hardBreakEscape",tokenize:$se};function $se(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Oe(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Hse={name:"headingAtx",resolve:Vse,tokenize:Gse};function Vse(e,t){let n=e.length-2,r=3,a,i;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},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Jr(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Gse(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Mt(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Oe(c)?(e.exit("atxHeading"),t(c)):ot(c)?rt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Mt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Wse=["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"],I_=["pre","script","style","textarea"],qse={concrete:!0,name:"htmlFlow",resolveTo:Kse,tokenize:Zse},Yse={partial:!0,tokenize:Jse},Xse={partial:!0,tokenize:Qse};function Kse(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 Zse(e,t,n){const r=this;let a,i,o,s,l;return u;function u(H){return c(H)}function c(H){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(H),p}function p(H){return H===33?(e.consume(H),f):H===47?(e.consume(H),i=!0,y):H===63?(e.consume(H),a=3,r.interrupt?t:D):gr(H)?(e.consume(H),o=String.fromCharCode(H),x):n(H)}function f(H){return H===45?(e.consume(H),a=2,h):H===91?(e.consume(H),a=5,s=0,g):gr(H)?(e.consume(H),a=4,r.interrupt?t:D):n(H)}function h(H){return H===45?(e.consume(H),r.interrupt?t:D):n(H)}function g(H){const se="CDATA[";return H===se.charCodeAt(s++)?(e.consume(H),s===se.length?r.interrupt?t:I:g):n(H)}function y(H){return gr(H)?(e.consume(H),o=String.fromCharCode(H),x):n(H)}function x(H){if(H===null||H===47||H===62||Mt(H)){const se=H===47,we=o.toLowerCase();return!se&&!i&&I_.includes(we)?(a=1,r.interrupt?t(H):I(H)):Wse.includes(o.toLowerCase())?(a=6,se?(e.consume(H),m):r.interrupt?t(H):I(H)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(H):i?v(H):b(H))}return H===45||ir(H)?(e.consume(H),o+=String.fromCharCode(H),x):n(H)}function m(H){return H===62?(e.consume(H),r.interrupt?t:I):n(H)}function v(H){return ot(H)?(e.consume(H),v):_(H)}function b(H){return H===47?(e.consume(H),_):H===58||H===95||gr(H)?(e.consume(H),S):ot(H)?(e.consume(H),b):_(H)}function S(H){return H===45||H===46||H===58||H===95||ir(H)?(e.consume(H),S):C(H)}function C(H){return H===61?(e.consume(H),k):ot(H)?(e.consume(H),C):b(H)}function k(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),l=H,R):ot(H)?(e.consume(H),k):O(H)}function R(H){return H===l?(e.consume(H),l=null,N):H===null||Oe(H)?n(H):(e.consume(H),R)}function O(H){return H===null||H===34||H===39||H===47||H===60||H===61||H===62||H===96||Mt(H)?C(H):(e.consume(H),O)}function N(H){return H===47||H===62||ot(H)?b(H):n(H)}function _(H){return H===62?(e.consume(H),L):n(H)}function L(H){return H===null||Oe(H)?I(H):ot(H)?(e.consume(H),L):n(H)}function I(H){return H===45&&a===2?(e.consume(H),A):H===60&&a===1?(e.consume(H),j):H===62&&a===4?(e.consume(H),Z):H===63&&a===3?(e.consume(H),D):H===93&&a===5?(e.consume(H),V):Oe(H)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Yse,J,P)(H)):H===null||Oe(H)?(e.exit("htmlFlowData"),P(H)):(e.consume(H),I)}function P(H){return e.check(Xse,M,J)(H)}function M(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),F}function F(H){return H===null||Oe(H)?P(H):(e.enter("htmlFlowData"),I(H))}function A(H){return H===45?(e.consume(H),D):I(H)}function j(H){return H===47?(e.consume(H),o="",B):I(H)}function B(H){if(H===62){const se=o.toLowerCase();return I_.includes(se)?(e.consume(H),Z):I(H)}return gr(H)&&o.length<8?(e.consume(H),o+=String.fromCharCode(H),B):I(H)}function V(H){return H===93?(e.consume(H),D):I(H)}function D(H){return H===62?(e.consume(H),Z):H===45&&a===2?(e.consume(H),D):I(H)}function Z(H){return H===null||Oe(H)?(e.exit("htmlFlowData"),J(H)):(e.consume(H),Z)}function J(H){return e.exit("htmlFlow"),t(H)}}function Qse(e,t,n){const r=this;return a;function a(o){return Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Jse(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Bp,t,n)}}const ele={name:"htmlText",tokenize:tle};function tle(e,t,n){const r=this;let a,i,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),l}function l(D){return D===33?(e.consume(D),u):D===47?(e.consume(D),C):D===63?(e.consume(D),b):gr(D)?(e.consume(D),O):n(D)}function u(D){return D===45?(e.consume(D),c):D===91?(e.consume(D),i=0,g):gr(D)?(e.consume(D),v):n(D)}function c(D){return D===45?(e.consume(D),h):n(D)}function p(D){return D===null?n(D):D===45?(e.consume(D),f):Oe(D)?(o=p,j(D)):(e.consume(D),p)}function f(D){return D===45?(e.consume(D),h):p(D)}function h(D){return D===62?A(D):D===45?f(D):p(D)}function g(D){const Z="CDATA[";return D===Z.charCodeAt(i++)?(e.consume(D),i===Z.length?y:g):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),x):Oe(D)?(o=y,j(D)):(e.consume(D),y)}function x(D){return D===93?(e.consume(D),m):y(D)}function m(D){return D===62?A(D):D===93?(e.consume(D),m):y(D)}function v(D){return D===null||D===62?A(D):Oe(D)?(o=v,j(D)):(e.consume(D),v)}function b(D){return D===null?n(D):D===63?(e.consume(D),S):Oe(D)?(o=b,j(D)):(e.consume(D),b)}function S(D){return D===62?A(D):b(D)}function C(D){return gr(D)?(e.consume(D),k):n(D)}function k(D){return D===45||ir(D)?(e.consume(D),k):R(D)}function R(D){return Oe(D)?(o=R,j(D)):ot(D)?(e.consume(D),R):A(D)}function O(D){return D===45||ir(D)?(e.consume(D),O):D===47||D===62||Mt(D)?N(D):n(D)}function N(D){return D===47?(e.consume(D),A):D===58||D===95||gr(D)?(e.consume(D),_):Oe(D)?(o=N,j(D)):ot(D)?(e.consume(D),N):A(D)}function _(D){return D===45||D===46||D===58||D===95||ir(D)?(e.consume(D),_):L(D)}function L(D){return D===61?(e.consume(D),I):Oe(D)?(o=L,j(D)):ot(D)?(e.consume(D),L):N(D)}function I(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),a=D,P):Oe(D)?(o=I,j(D)):ot(D)?(e.consume(D),I):(e.consume(D),M)}function P(D){return D===a?(e.consume(D),a=void 0,F):D===null?n(D):Oe(D)?(o=P,j(D)):(e.consume(D),P)}function M(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Mt(D)?N(D):(e.consume(D),M)}function F(D){return D===47||D===62||Mt(D)?N(D):n(D)}function A(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function j(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),B}function B(D){return ot(D)?rt(e,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):V(D)}function V(D){return e.enter("htmlTextData"),o(D)}}const Fw={name:"labelEnd",resolveAll:ile,resolveTo:ole,tokenize:sle},nle={tokenize:lle},rle={tokenize:ule},ale={tokenize:cle};function ile(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&&Jr(e,0,e.length,n),e}function ole(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){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&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=ba(s,e.slice(i+1,i+r+3)),s=ba(s,[["enter",c,t]]),s=ba(s,bm(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=ba(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=ba(s,e.slice(o+1)),s=ba(s,[["exit",l,t]]),Jr(e,i,e.length,s),e}function sle(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(f){return i?i._inactive?p(f):(o=r.parser.defined.includes(La(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(nle,c,o?c:p)(f):f===91?e.attempt(rle,c,o?u:p)(f):o?c(f):p(f)}function u(f){return e.attempt(ale,c,p)(f)}function c(f){return t(f)}function p(f){return i._balanced=!0,n(f)}}function lle(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return Mt(p)?vd(e,i)(p):i(p)}function i(p){return p===41?c(p):GM(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return Mt(p)?vd(e,l)(p):c(p)}function s(p){return n(p)}function l(p){return p===34||p===39||p===40?qM(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):c(p)}function u(p){return Mt(p)?vd(e,c)(p):c(p)}function c(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function ule(e,t,n){const r=this;return a;function a(s){return WM.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(La(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function cle(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const dle={name:"labelStartImage",resolveAll:Fw.resolveAll,tokenize:ple};function ple(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const fle={name:"labelStartLink",resolveAll:Fw.resolveAll,tokenize:hle};function hle(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"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const yy={name:"lineEnding",tokenize:gle};function gle(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),rt(e,t,"linePrefix")}}const jh={name:"thematicBreak",tokenize:mle};function mle(e,t,n){let r=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||Oe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ot(u)?rt(e,s,"whitespace")(u):s(u))}}const kr={continuation:{tokenize:xle},exit:wle,name:"list",tokenize:vle},ble={partial:!0,tokenize:Ele},yle={partial:!0,tokenize:Sle};function vle(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:zv(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(jh,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return zv(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Bp,r.interrupt?n:c,e.attempt(ble,f,p))}function c(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return ot(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function xle(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Bp,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rt(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!ot(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yle,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,rt(e,e.attempt(kr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Sle(e,t,n){const r=this;return rt(e,a,"listItemIndent",r.containerState.size+1);function a(i){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(i):n(i)}}function wle(e){e.exit(this.containerState.type)}function Ele(e,t,n){const r=this;return rt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!ot(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const O_={name:"setextUnderline",resolveTo:kle,tokenize:Tle};function kle(e,t){let n=e.length,r,a,i;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),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Tle(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,p;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){p=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),ot(u)?rt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Oe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Cle={tokenize:Ale};function Ale(e){const t=this,n=e.attempt(Bp,r,e.attempt(this.parser.constructs.flowInitial,a,rt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Ose,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const _le={resolveAll:XM()},Rle=YM("string"),Nle=YM("text");function YM(e){return{resolveAll:XM(e==="text"?Ile:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(c){return u(c)?i(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const p=a[c];let f=-1;if(p)for(;++f<p.length;){const h=p[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function XM(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function Ile(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 i=a.length,o=-1,s=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Ole={42:kr,43:kr,45:kr,48:kr,49:kr,50:kr,51:kr,52:kr,53:kr,54:kr,55:kr,56:kr,57:kr,62:UM},Dle={91:Pse},Lle={[-2]:by,[-1]:by,32:by},Mle={35:Hse,42:jh,45:[O_,jh],60:qse,61:O_,95:jh,96:N_,126:N_},zle={38:HM,92:$M},Ple={[-5]:yy,[-4]:yy,[-3]:yy,33:dle,38:HM,42:Pv,60:[fse,ele],91:fle,92:[Use,$M],93:Fw,95:Pv,96:Cse},jle={null:[Pv,_le]},Fle={null:[42,95]},Ble={null:[]},Ule=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Fle,contentInitial:Dle,disable:Ble,document:Ole,flow:Mle,flowInitial:Lle,insideSpan:jle,string:zle,text:Ple},Symbol.toStringTag,{value:"Module"}));function $le(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={},i=[];let o=[],s=[];const l={attempt:R(C),check:R(k),consume:v,enter:b,exit:S,interrupt:R(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:p};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function p(L){return o=ba(o,L),x(),o[o.length-1]!==null?[]:(O(t,0),u.events=bm(i,u.events,u),u.events)}function f(L,I){return Vle(h(L),I)}function h(L){return Hle(o,L)}function g(){const{_bufferIndex:L,_index:I,line:P,column:M,offset:F}=r;return{_bufferIndex:L,_index:I,line:P,column:M,offset:F}}function y(L){a[L.line]=L.column,_()}function x(){let L;for(;r._index<o.length;){const I=o[r._index];if(typeof I=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<I.length;)m(I.charCodeAt(r._bufferIndex));else m(I)}}function m(L){c=c(L)}function v(L){Oe(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,_()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=L}function b(L,I){const P=I||{};return P.type=L,P.start=g(),u.events.push(["enter",P,u]),s.push(P),P}function S(L){const I=s.pop();return I.end=g(),u.events.push(["exit",I,u]),I}function C(L,I){O(L,I.from)}function k(L,I){I.restore()}function R(L,I){return P;function P(M,F,A){let j,B,V,D;return Array.isArray(M)?J(M):"tokenize"in M?J([M]):Z(M);function Z(xe){return pe;function pe(X){const te=X!==null&&xe[X],ie=X!==null&&xe.null,he=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return J(he)(X)}}function J(xe){return j=xe,B=0,xe.length===0?A:H(xe[B])}function H(xe){return pe;function pe(X){return D=N(),V=xe,xe.partial||(u.currentConstruct=xe),xe.name&&u.parser.constructs.disable.null.includes(xe.name)?we():xe.tokenize.call(I?Object.assign(Object.create(u),I):u,l,se,we)(X)}}function se(xe){return L(V,D),F}function we(xe){return D.restore(),++B<j.length?H(j[B]):A}}}function O(L,I){L.resolveAll&&!i.includes(L)&&i.push(L),L.resolve&&Jr(u.events,I,u.events.length-I,L.resolve(u.events.slice(I),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function N(){const L=g(),I=u.previous,P=u.currentConstruct,M=u.events.length,F=Array.from(s);return{from:M,restore:A};function A(){r=L,u.previous=I,u.currentConstruct=P,u.events.length=M,s=F,_()}}function _(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Hle(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function Vle(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function Gle(e){const r={constructs:FM([Ule,...(e||{}).extensions||[]]),content:a(ose),defined:[],document:a(lse),flow:a(Cle),lazy:{},string:a(Rle),text:a(Nle)};return r;function a(i){return o;function o(s){return $le(r,i,s)}}}function Wle(e){for(;!VM(e););return e}const D_=/[\0\t\n\r]/g;function qle(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let u,c,p,f,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(D_.lastIndex=p,u=D_.exec(i),f=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(f),!u){t=i.slice(p);break}if(h===10&&p===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<f&&(l.push(i.slice(p,f)),e+=f-p),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Yle=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xle(e){return e.replace(Yle,Kle)}function Kle(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return BM(n.slice(i?2:1),i?16:10)}return Kd(n)||e}const KM={}.hasOwnProperty;function Zle(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Qle(n)(Wle(Gle(n).document().write(qle()(e,t,!0))))}function Qle(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Nt),autolinkProtocol:N,autolinkEmail:N,atxHeading:i(Be),blockQuote:i(ie),characterEscape:N,characterReference:N,codeFenced:i(he),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(he,o),codeText:i(le,o),codeTextData:N,data:N,codeFlowValue:N,definition:i(ce),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Re),hardBreakEscape:i(De),hardBreakTrailing:i(De),htmlFlow:i(Ke,o),htmlFlowData:N,htmlText:i(Ke,o),htmlTextData:N,image:i(Rt),label:o,link:i(Nt),listItem:i(zn),listItemValue:f,listOrdered:i(It,p),listUnordered:i(It),paragraph:i(En),reference:H,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Be),strong:i(ln),thematicBreak:i(Tn)},exit:{atxHeading:l(),atxHeadingSequence:C,autolink:l(),autolinkEmail:te,autolinkProtocol:X,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:xe,characterReference:pe,codeFenced:l(x),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:_,codeIndented:l(m),codeText:l(F),codeTextData:_,data:_,definition:l(),definitionDestinationString:S,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(I),hardBreakTrailing:l(I),htmlFlow:l(P),htmlFlowData:_,htmlText:l(M),htmlTextData:_,image:l(j),label:V,labelText:B,lineEnding:L,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:D,resourceTitleString:Z,resource:J,setextHeading:l(O),setextHeadingLineSequence:R,setextHeadingText:k,strong:l(),thematicBreak:l()}};ZM(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(re){let me={type:"root",children:[]};const Ie={stack:[me],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:n},je=[];let Ye=-1;for(;++Ye<re.length;)if(re[Ye][1].type==="listOrdered"||re[Ye][1].type==="listUnordered")if(re[Ye][0]==="enter")je.push(Ye);else{const Ct=je.pop();Ye=a(re,Ct,Ye)}for(Ye=-1;++Ye<re.length;){const Ct=t[re[Ye][0]];KM.call(Ct,re[Ye][1].type)&&Ct[re[Ye][1].type].call(Object.assign({sliceSerialize:re[Ye][2].sliceSerialize},Ie),re[Ye][1])}if(Ie.tokenStack.length>0){const Ct=Ie.tokenStack[Ie.tokenStack.length-1];(Ct[1]||L_).call(Ie,void 0,Ct[0])}for(me.position={start:po(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:po(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<t.transforms.length;)me=t.transforms[Ye](me)||me;return me}function a(re,me,Ie){let je=me-1,Ye=-1,Ct=!1,St,er,tr,Sr;for(;++je<=Ie;){const un=re[je];switch(un[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{un[0]==="enter"?Ye++:Ye--,Sr=void 0;break}case"lineEndingBlank":{un[0]==="enter"&&(St&&!Sr&&!Ye&&!tr&&(tr=je),Sr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Sr=void 0}if(!Ye&&un[0]==="enter"&&un[1].type==="listItemPrefix"||Ye===-1&&un[0]==="exit"&&(un[1].type==="listUnordered"||un[1].type==="listOrdered")){if(St){let la=je;for(er=void 0;la--;){const dr=re[la];if(dr[1].type==="lineEnding"||dr[1].type==="lineEndingBlank"){if(dr[0]==="exit")continue;er&&(re[er][1].type="lineEndingBlank",Ct=!0),dr[1].type="lineEnding",er=la}else if(!(dr[1].type==="linePrefix"||dr[1].type==="blockQuotePrefix"||dr[1].type==="blockQuotePrefixWhitespace"||dr[1].type==="blockQuoteMarker"||dr[1].type==="listItemIndent"))break}tr&&(!er||tr<er)&&(St._spread=!0),St.end=Object.assign({},er?re[er][1].start:un[1].end),re.splice(er||je,0,["exit",St,un[2]]),je++,Ie++}if(un[1].type==="listItemPrefix"){const la={type:"listItem",_spread:!1,start:Object.assign({},un[1].start),end:void 0};St=la,re.splice(je,0,["enter",la,un[2]]),je++,Ie++,tr=void 0,Sr=!0}}}return re[me][1]._spread=Ct,Ie}function i(re,me){return Ie;function Ie(je){s.call(this,re(je),je),me&&me.call(this,je)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(re,me,Ie){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([me,Ie||void 0]),re.position={start:po(me.start),end:void 0}}function l(re){return me;function me(Ie){re&&re.call(this,Ie),u.call(this,Ie)}}function u(re,me){const Ie=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==re.type&&(me?me.call(this,re,je[0]):(je[1]||L_).call(this,re,je[0]));else throw new Error("Cannot close `"+re.type+"` ("+yd({start:re.start,end:re.end})+"): it’s not open");Ie.position.end=po(re.end)}function c(){return jw(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(re){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function h(){const re=this.resume(),me=this.stack[this.stack.length-1];me.lang=re}function g(){const re=this.resume(),me=this.stack[this.stack.length-1];me.meta=re}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const re=this.resume(),me=this.stack[this.stack.length-1];me.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const re=this.resume(),me=this.stack[this.stack.length-1];me.value=re.replace(/(\r?\n|\r)$/g,"")}function v(re){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=me,Ie.identifier=La(this.sliceSerialize(re)).toLowerCase()}function b(){const re=this.resume(),me=this.stack[this.stack.length-1];me.title=re}function S(){const re=this.resume(),me=this.stack[this.stack.length-1];me.url=re}function C(re){const me=this.stack[this.stack.length-1];if(!me.depth){const Ie=this.sliceSerialize(re).length;me.depth=Ie}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function R(re){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function N(re){const Ie=this.stack[this.stack.length-1].children;let je=Ie[Ie.length-1];(!je||je.type!=="text")&&(je=kn(),je.position={start:po(re.start),end:void 0},Ie.push(je)),this.stack.push(je)}function _(re){const me=this.stack.pop();me.value+=this.sliceSerialize(re),me.position.end=po(re.end)}function L(re){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=me.children[me.children.length-1];Ie.position.end=po(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(me.type)&&(N.call(this,re),_.call(this,re))}function I(){this.data.atHardBreak=!0}function P(){const re=this.resume(),me=this.stack[this.stack.length-1];me.value=re}function M(){const re=this.resume(),me=this.stack[this.stack.length-1];me.value=re}function F(){const re=this.resume(),me=this.stack[this.stack.length-1];me.value=re}function A(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=me,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function j(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=me,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function B(re){const me=this.sliceSerialize(re),Ie=this.stack[this.stack.length-2];Ie.label=Xle(me),Ie.identifier=La(me).toLowerCase()}function V(){const re=this.stack[this.stack.length-1],me=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const je=re.children;Ie.children=je}else Ie.alt=me}function D(){const re=this.resume(),me=this.stack[this.stack.length-1];me.url=re}function Z(){const re=this.resume(),me=this.stack[this.stack.length-1];me.title=re}function J(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function se(re){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=me,Ie.identifier=La(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function we(re){this.data.characterReferenceType=re.type}function xe(re){const me=this.sliceSerialize(re),Ie=this.data.characterReferenceType;let je;Ie?(je=BM(me,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=Kd(me);const Ye=this.stack[this.stack.length-1];Ye.value+=je}function pe(re){const me=this.stack.pop();me.position.end=po(re.end)}function X(re){_.call(this,re);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(re)}function te(re){_.call(this,re);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(re)}function ie(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function le(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function De(){return{type:"break"}}function Ke(){return{type:"html",value:""}}function Rt(){return{type:"image",title:null,url:"",alt:null}}function Nt(){return{type:"link",title:null,url:"",children:[]}}function It(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function zn(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function En(){return{type:"paragraph",children:[]}}function ln(){return{type:"strong",children:[]}}function kn(){return{type:"text",value:""}}function Tn(){return{type:"thematicBreak"}}}function po(e){return{line:e.line,column:e.column,offset:e.offset}}function ZM(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ZM(e,r):Jle(e,r)}}function Jle(e,t){let n;for(n in t)if(KM.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 L_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yd({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yd({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yd({start:t.start,end:t.end})+") is still open")}function eue(e){const t=this;t.parser=n;function n(r){return Zle(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tue(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 nue(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function rue(e,t){const n=t.value?t.value+`
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function aue(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iue(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oue(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=ic(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function sue(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 lue(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function QM(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),i=a[0];i&&i.type==="text"?i.value="["+i.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 uue(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return QM(e,t);const a={src:ic(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function cue(e,t){const n={src:ic(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 due(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 pue(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return QM(e,t);const a={href:ic(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function fue(e,t){const n={href:ic(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 hue(e,t,n){const r=e.all(t),a=n?gue(n):JM(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let p;c&&c.type==="element"&&c.tagName==="p"?p=c:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const c=r[s];(a||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
`}),c.type==="element"&&c.tagName==="p"&&!a?o.push(...c.children):o.push(c)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function gue(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=JM(n[r])}return t}function JM(e){const t=e.spread;return t??e.children.length>1}function mue(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 i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function bue(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yue(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function vue(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xue(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)},s=Lw(t.children[1]),l=OM(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function Sue(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const p=t.children[l],f={},h=o?o[l]:void 0;h&&(f.align=h);let g={type:"element",tagName:i,properties:f,children:[]};p&&(g.children=e.all(p),e.patch(p,g),g=e.applyData(p,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function wue(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const M_=9,z_=32;function Eue(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(P_(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(P_(t.slice(a),a>0,!1)),i.join("")}function P_(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===M_||i===z_;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===M_||i===z_;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function kue(e,t){const n={type:"text",value:Eue(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Tue(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Cue={blockquote:tue,break:nue,code:rue,delete:aue,emphasis:iue,footnoteReference:oue,heading:sue,html:lue,imageReference:uue,image:cue,inlineCode:due,linkReference:pue,link:fue,listItem:hue,list:mue,paragraph:bue,root:yue,strong:vue,table:xue,tableCell:wue,tableRow:Sue,text:kue,thematicBreak:Tue,toml:Mf,yaml:Mf,definition:Mf,footnoteDefinition:Mf};function Mf(){}const ez=-1,ym=0,xd=1,Gg=2,Bw=3,Uw=4,$w=5,Hw=6,tz=7,nz=8,j_=typeof self=="object"?self:globalThis,Aue=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case ym:case ez:return n(o,a);case xd:{const s=n([],a);for(const l of o)s.push(r(l));return s}case Gg:{const s=n({},a);for(const[l,u]of o)s[r(l)]=r(u);return s}case Bw:return n(new Date(o),a);case Uw:{const{source:s,flags:l}=o;return n(new RegExp(s,l),a)}case $w:{const s=n(new Map,a);for(const[l,u]of o)s.set(r(l),r(u));return s}case Hw:{const s=n(new Set,a);for(const l of o)s.add(r(l));return s}case tz:{const{name:s,message:l}=o;return n(new j_[s](l),a)}case nz: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:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new j_[i](o),a)};return r},F_=e=>Aue(new Map,e)(0),vl="",{toString:_ue}={},{keys:Rue}=Object,Pc=e=>{const t=typeof e;if(t!=="object"||!e)return[ym,t];const n=_ue.call(e).slice(8,-1);switch(n){case"Array":return[xd,vl];case"Object":return[Gg,vl];case"Date":return[Bw,vl];case"RegExp":return[Uw,vl];case"Map":return[$w,vl];case"Set":return[Hw,vl];case"DataView":return[xd,n]}return n.includes("Array")?[xd,n]:n.includes("Error")?[tz,n]:[Gg,n]},zf=([e,t])=>e===ym&&(t==="function"||t==="symbol"),Nue=(e,t,n,r)=>{const a=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},i=o=>{if(n.has(o))return n.get(o);let[s,l]=Pc(o);switch(s){case ym:{let c=o;switch(l){case"bigint":s=nz,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([ez],o)}return a([s,c],o)}case xd:{if(l){let f=o;return l==="DataView"?f=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(o)),a([l,[...f]],o)}const c=[],p=a([s,c],o);for(const f of o)c.push(i(f));return p}case Gg:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],p=a([s,c],o);for(const f of Rue(o))(e||!zf(Pc(o[f])))&&c.push([i(f),i(o[f])]);return p}case Bw:return a([s,o.toISOString()],o);case Uw:{const{source:c,flags:p}=o;return a([s,{source:c,flags:p}],o)}case $w:{const c=[],p=a([s,c],o);for(const[f,h]of o)(e||!(zf(Pc(f))||zf(Pc(h))))&&c.push([i(f),i(h)]);return p}case Hw:{const c=[],p=a([s,c],o);for(const f of o)(e||!zf(Pc(f)))&&c.push(i(f));return p}}const{message:u}=o;return a([s,{name:l,message:u}],o)};return i},B_=(e,{json:t,lossy:n}={})=>{const r=[];return Nue(!(t||n),!!t,new Map,r)(e),r},Wg=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?F_(B_(e,t)):structuredClone(e):(e,t)=>F_(B_(e,t));function Iue(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 Oue(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Due(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Iue,r=e.options.footnoteBackLabel||Oue,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),p=String(u.identifier).toUpperCase(),f=ic(p.toLowerCase());let h=0;const g=[],y=e.footnoteCounts.get(p);for(;y!==void 0&&++h<=y;){g.length>0&&g.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const x=c[c.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const v=x.children[x.children.length-1];v&&v.type==="text"?v.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Wg(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
`}]}}const Up=function(e){if(e==null)return Pue;if(typeof e=="function")return vm(e);if(typeof e=="object")return Array.isArray(e)?Lue(e):Mue(e);if(typeof e=="string")return zue(e);throw new Error("Expected function, string, or object as test")};function Lue(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Up(e[n]);return vm(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function Mue(e){const t=e;return vm(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function zue(e){return vm(t);function t(n){return n&&n.type===e}}function vm(e){return t;function t(n,r,a){return!!(jue(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Pue(){return!0}function jue(e){return e!==null&&typeof e=="object"&&"type"in e}const rz=[],Fue=!0,jv=!1,az="skip";function Vw(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=Up(a),o=r?-1:1;s(e,void 0,[])();function s(l,u,c){const p=l&&typeof l=="object"?l:{};if(typeof p.type=="string"){const h=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=rz,g,y,x;if((!t||i(l,u,c[c.length-1]||void 0))&&(h=Bue(n(l,c)),h[0]===jv))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==az)for(y=(r?m.children.length:-1)+o,x=c.concat(m);y>-1&&y<m.children.length;){const v=m.children[y];if(g=s(v,y,x)(),g[0]===jv)return g;y=typeof g[1]=="number"?g[1]:y+o}}return h}}}function Bue(e){return Array.isArray(e)?e:typeof e=="number"?[Fue,e]:e==null?rz:[e]}function Gw(e,t,n,r){let a,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,a=n):(i=t,o=n,a=r),Vw(e,i,s,a);function s(l,u){const c=u[u.length-1],p=c?c.children.indexOf(l):void 0;return o(l,p,c)}}const Fv={}.hasOwnProperty,Uue={};function $ue(e,t){const n=t||Uue,r=new Map,a=new Map,i=new Map,o={...Cue,...n.handlers},s={all:u,applyData:Vue,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:l,options:n,patch:Hue,wrap:Wue};return Gw(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const p=c.type==="definition"?r:a,f=String(c.identifier).toUpperCase();p.has(f)||p.set(f,c)}}),s;function l(c,p){const f=c.type,h=s.handlers[f];if(Fv.call(s.handlers,f)&&h)return h(s,c,p);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in c){const{children:y,...x}=c,m=Wg(x);return m.children=s.all(c),m}return Wg(c)}return(s.options.unknownHandler||Gue)(s,c,p)}function u(c){const p=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const g=s.one(f[h],c);if(g){if(h&&f[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=U_(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=U_(y.value))}Array.isArray(g)?p.push(...g):p.push(g)}}}return p}}function Hue(e,t){e.position&&(t.position=Ooe(e))}function Vue(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=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"&&i&&Object.assign(n.properties,Wg(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Gue(e,t){const n=t.data||{},r="value"in t&&!(Fv.call(n,"hProperties")||Fv.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 Wue(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function U_(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $_(e,t){const n=$ue(e,t),r=n.one(e,void 0),a=Due(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
`},a),i}function que(e,t){return e&&"run"in e?async function(n,r){const a=$_(n,{file:r,...t});await e.run(a,r)}:function(n,r){return $_(n,{file:r,...e||t})}}function H_(e){if(e)throw e}var Fh=Object.prototype.hasOwnProperty,iz=Object.prototype.toString,V_=Object.defineProperty,G_=Object.getOwnPropertyDescriptor,W_=function(t){return typeof Array.isArray=="function"?Array.isArray(t):iz.call(t)==="[object Array]"},q_=function(t){if(!t||iz.call(t)!=="[object Object]")return!1;var n=Fh.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||Fh.call(t,a)},Y_=function(t,n){V_&&n.name==="__proto__"?V_(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},X_=function(t,n){if(n==="__proto__")if(Fh.call(t,n)){if(G_)return G_(t,n).value}else return;return t[n]},Yue=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=X_(s,n),a=X_(t,n),s!==a&&(c&&a&&(q_(a)||(i=W_(a)))?(i?(i=!1,o=r&&W_(r)?r:[]):o=r&&q_(r)?r:{},Y_(s,{name:n,newValue:e(c,o,a)})):typeof a<"u"&&Y_(s,{name:n,newValue:a}));return s};const vy=dp(Yue);function Bv(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 Xue(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...u){const c=e[++i];let p=-1;if(l){o(l);return}for(;++p<a.length;)(u[p]===null||u[p]===void 0)&&(u[p]=a[p]);a=u,c?Kue(c,s)(...u):o(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Kue(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&n)throw c;return a(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const Va={basename:Zue,dirname:Que,extname:Jue,join:ece,sep:"/"};function Zue(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');$p(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Que(e){if($p(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 Jue(e){$p(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function ece(...e){let t=-1,n;for(;++t<e.length;)$p(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":tce(n)}function tce(e){$p(e);const t=e.codePointAt(0)===47;let n=nce(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nce(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=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,i=0}else s===46&&i>-1?i++:i=-1}return n}function $p(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rce={cwd:ace};function ace(){return"/"}function Uv(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ice(e){if(typeof e=="string")e=new URL(e);else if(!Uv(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 oce(e)}function oce(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 xy=["history","path","basename","stem","extname","dirname"];class oz{constructor(t){let n;t?Uv(t)?n={path:t}:typeof t=="string"||sce(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":rce.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<xy.length;){const i=xy[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)xy.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Va.basename(this.path):void 0}set basename(t){wy(t,"basename"),Sy(t,"basename"),this.path=Va.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Va.dirname(this.path):void 0}set dirname(t){K_(this.basename,"dirname"),this.path=Va.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Va.extname(this.path):void 0}set extname(t){if(Sy(t,"extname"),K_(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=Va.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Uv(t)&&(t=ice(t)),wy(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Va.basename(this.path,this.extname):void 0}set stem(t){wy(t,"stem"),Sy(t,"stem"),this.path=Va.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 lr(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 Sy(e,t){if(e&&e.includes(Va.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Va.sep+"`")}function wy(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function K_(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function sce(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lce=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},uce={}.hasOwnProperty;class Ww extends lce{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=Xue()}copy(){const t=new Ww;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(vy(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ty("data",this.frozen),this.namespace[t]=n,this):uce.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ty("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=Pf(t),r=this.parser||this.Parser;return Ey("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ey("process",this.parser||this.Parser),ky("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,o){const s=Pf(t),l=r.parse(s);r.run(l,s,function(c,p,f){if(c||!p||!f)return u(c);const h=p,g=r.stringify(h,f);pce(g)?f.value=g:f.result=g,u(c,f)});function u(c,p){c||!p?o(c):i?i(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),Ey("processSync",this.parser||this.Parser),ky("processSync",this.compiler||this.Compiler),this.process(t,a),Q_("processSync","process",n),r;function a(i,o){n=!0,H_(i),r=o}}run(t,n,r){Z_(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const l=Pf(n);a.run(t,l,u);function u(c,p,f){const h=p||t;c?s(c):o?o(h):r(void 0,h,f)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Q_("runSync","run",r),a;function i(o,s){H_(o),a=s,r=!0}}stringify(t,n){this.freeze();const r=Pf(n),a=this.compiler||this.Compiler;return ky("stringify",a),Z_(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Ty("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...p]=u;l(c,p)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");s(u.plugins),u.settings&&(a.settings=vy(!0,a.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const p=u[c];i(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let p=-1,f=-1;for(;++p<r.length;)if(r[p][0]===u){f=p;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[h,...g]=c;const y=r[f][1];Bv(y)&&Bv(h)&&(h=vy(!0,y,h)),r[f]=[u,h,...g]}}}}const cce=new Ww().freeze();function Ey(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ky(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ty(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 Z_(e){if(!Bv(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Q_(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Pf(e){return dce(e)?e:new oz(e)}function dce(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pce(e){return typeof e=="string"||fce(e)}function fce(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hce="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",J_=[],e6={allowDangerousHtml:!0},gce=/^(https?|ircs?|mailto|xmpp)$/i,mce=[{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 bce(e){const t=yce(e),n=vce(e);return xce(t.runSync(t.parse(n),n),e)}function yce(e){const t=e.rehypePlugins||J_,n=e.remarkPlugins||J_,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...e6}:e6;return cce().use(eue).use(n).use(que,r).use(t)}function vce(e){const t=e.children||"",n=new oz;return typeof t=="string"&&(n.value=t),n}function xce(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Sce;for(const c of mce)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+hce+c.id,void 0);return Gw(e,u),Poe(e,{Fragment:d.Fragment,components:a,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function u(c,p,f){if(c.type==="raw"&&f&&typeof p=="number")return o?f.children.splice(p,1):f.children[p]={type:"text",value:c.value},p;if(c.type==="element"){let h;for(h in my)if(Object.hasOwn(my,h)&&Object.hasOwn(c.properties,h)){const g=c.properties[h],y=my[h];(y===null||y.includes(c.tagName))&&(c.properties[h]=l(String(g||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!h&&r&&typeof p=="number"&&(h=!r(c,p,f)),h&&f&&typeof p=="number")return s&&c.children?f.children.splice(p,1,...c.children):f.children.splice(p,1),p}}}function Sce(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||gce.test(e.slice(0,t))?e:""}function t6(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 wce(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ece(e,t,n){const a=Up((n||{}).ignore||[]),i=kce(t);let o=-1;for(;++o<i.length;)Vw(e,"text",s);function s(u,c){let p=-1,f;for(;++p<c.length;){const h=c[p],g=f?f.children:void 0;if(a(h,g?g.indexOf(h):void 0,f))return;f=h}if(f)return l(u,c)}function l(u,c){const p=c[c.length-1],f=i[o][0],h=i[o][1];let g=0;const x=p.children.indexOf(u);let m=!1,v=[];f.lastIndex=0;let b=f.exec(u.value);for(;b;){const S=b.index,C={index:b.index,input:b.input,stack:[...c,u]};let k=h(...b,C);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=S+1:(g!==S&&v.push({type:"text",value:u.value.slice(g,S)}),Array.isArray(k)?v.push(...k):k&&v.push(k),g=S+b[0].length,m=!0),!f.global)break;b=f.exec(u.value)}return m?(g<u.value.length&&v.push({type:"text",value:u.value.slice(g)}),p.children.splice(x,1,...v)):v=[u],x+v.length}}function kce(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([Tce(a[0]),Cce(a[1])])}return t}function Tce(e){return typeof e=="string"?new RegExp(wce(e),"g"):e}function Cce(e){return typeof e=="function"?e:function(){return e}}const Cy="phrasing",Ay=["autolink","link","image","label"];function Ace(){return{transforms:[Lce],enter:{literalAutolink:Rce,literalAutolinkEmail:_y,literalAutolinkHttp:_y,literalAutolinkWww:_y},exit:{literalAutolink:Dce,literalAutolinkEmail:Oce,literalAutolinkHttp:Nce,literalAutolinkWww:Ice}}}function _ce(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Cy,notInConstruct:Ay},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Cy,notInConstruct:Ay},{character:":",before:"[ps]",after:"\\/",inConstruct:Cy,notInConstruct:Ay}]}}function Rce(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function _y(e){this.config.enter.autolinkProtocol.call(this,e)}function Nce(e){this.config.exit.autolinkProtocol.call(this,e)}function Ice(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 Oce(e){this.config.exit.autolinkEmail.call(this,e)}function Dce(e){this.exit(e)}function Lce(e){Ece(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mce],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zce]],{ignore:["link","linkReference"]})}function Mce(e,t,n,r,a){let i="";if(!sz(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!Pce(n)))return!1;const o=jce(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function zce(e,t,n,r){return!sz(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Pce(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 jce(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=t6(e,"(");let i=t6(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function sz(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Vs(n)||mm(n))&&(!t||n!==47)}lz.peek=qce;function Fce(){this.buffer()}function Bce(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Uce(){this.buffer()}function $ce(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Hce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=La(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Vce(e){this.exit(e)}function Gce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=La(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Wce(e){this.exit(e)}function qce(){return"["}function lz(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),o(),i+=a.move("]"),i}function Yce(){return{enter:{gfmFootnoteCallString:Fce,gfmFootnoteCall:Bce,gfmFootnoteDefinitionLabelString:Uce,gfmFootnoteDefinition:$ce},exit:{gfmFootnoteCallString:Hce,gfmFootnoteCall:Vce,gfmFootnoteDefinitionLabelString:Gce,gfmFootnoteDefinition:Wce}}}function Xce(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:lz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,o){const s=i.createTracker(o);let l=s.move("[^");const u=i.enter("footnoteDefinition"),c=i.enter("label");return l+=s.move(i.safe(i.associationId(r),{before:l,after:"]"})),c(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
`:" ")+i.indentLines(i.containerFlow(r,s.current()),t?uz:Kce))),u(),l}}function Kce(e,t,n){return t===0?e:uz(e,t,n)}function uz(e,t,n){return(n?"":"    ")+e}const Zce=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];cz.peek=nde;function Qce(){return{canContainEols:["delete"],enter:{strikethrough:ede},exit:{strikethrough:tde}}}function Jce(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Zce}],handlers:{delete:cz}}}function ede(e){this.enter({type:"delete",children:[]},e)}function tde(e){this.exit(e)}function cz(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function nde(){return"~"}function rde(e){return e.length}function ade(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||rde,i=[],o=[],s=[],l=[];let u=0,c=-1;for(;++c<e.length;){const y=[],x=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const v=ide(e[c][m]);if(n.alignDelimiters!==!1){const b=a(v);x[m]=b,(l[m]===void 0||b>l[m])&&(l[m]=b)}y.push(v)}o[c]=y,s[c]=x}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<u;)i[p]=n6(r[p]);else{const y=n6(r);for(;++p<u;)i[p]=y}p=-1;const f=[],h=[];for(;++p<u;){const y=i[p];let x="",m="";y===99?(x=":",m=":"):y===108?x=":":y===114&&(m=":");let v=n.alignDelimiters===!1?1:Math.max(1,l[p]-x.length-m.length);const b=x+"-".repeat(v)+m;n.alignDelimiters!==!1&&(v=x.length+v+m.length,v>l[p]&&(l[p]=v),h[p]=v),f[p]=b}o.splice(1,0,f),s.splice(1,0,h),c=-1;const g=[];for(;++c<o.length;){const y=o[c],x=s[c];p=-1;const m=[];for(;++p<u;){const v=y[p]||"";let b="",S="";if(n.alignDelimiters!==!1){const C=l[p]-(x[p]||0),k=i[p];k===114?b=" ".repeat(C):k===99?C%2?(b=" ".repeat(C/2+.5),S=" ".repeat(C/2-.5)):(b=" ".repeat(C/2),S=b):S=" ".repeat(C)}n.delimiterStart!==!1&&!p&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||p)&&m.push(" "),n.alignDelimiters!==!1&&m.push(b),m.push(v),n.alignDelimiters!==!1&&m.push(S),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||p!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
`)}function ide(e){return e==null?"":String(e)}function n6(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 ode(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),sde);return a(),o}function sde(e,t,n){return">"+(n?"":" ")+e}function lde(e,t){return r6(e,t.inConstruct,!0)&&!r6(e,t.notInConstruct,!1)}function r6(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 a6(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
`&&lde(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function dz(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}function ude(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 cde(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 dde(e,t,n,r){const a=cde(n),i=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(ude(e,n)){const p=n.enter("codeIndented"),f=n.indentLines(i,pde);return p(),f}const s=n.createTracker(r),l=a.repeat(Math.max(dz(i,a)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const p=n.enter(`codeFencedLang${o}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${o}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:`
`,encode:["`"],...s.current()})),p()}return c+=s.move(`
`),i&&(c+=s.move(i+`
`)),c+=s.move(l),u(),c}function pde(e,t,n){return(n?"":"    ")+e}function qw(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 fde(e,t,n,r){const a=qw(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
`,...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),o(),u}function hde(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 Zd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function qg(e,t,n){const r=Au(e),a=Au(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}}pz.peek=gde;function pz(e,t,n,r){const a=hde(n),i=n.enter("emphasis"),o=n.createTracker(r),s=o.move(a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=qg(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=Zd(u)+l.slice(1));const p=l.charCodeAt(l.length-1),f=qg(r.after.charCodeAt(0),p,a);f.inside&&(l=l.slice(0,-1)+Zd(p));const h=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+h}function gde(e,t,n){return n.options.emphasis||"*"}function mde(e,t){let n=!1;return Gw(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,jv}),!!((!e.depth||e.depth<3)&&jw(e)&&(t.options.setext||n))}function bde(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(mde(e,n)){const c=n.enter("headingSetext"),p=n.enter("phrasing"),f=n.containerPhrasing(e,{...i.current(),before:`
`,after:`
`});return p(),c(),f+`
`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
`))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
`,...i.current()});return/^[\t ]/.test(u)&&(u=Zd(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),s(),u}fz.peek=yde;function fz(e){return e.value||""}function yde(){return"<"}hz.peek=vde;function hz(e,t,n,r){const a=qw(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),u+=l.move(")"),o(),u}function vde(){return"!"}gz.peek=xde;function gz(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=c,i(),a==="full"||!u||u!==p?l+=s.move(p+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function xde(){return"!"}mz.peek=Sde;function mz(e,t,n){let r=e.value||"",a="`",i=-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+" ");++i<n.unsafe.length;){const o=n.unsafe[i],s=n.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return a+r+a}function Sde(){return"`"}function bz(e,t){const n=jw(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))}yz.peek=wde;function yz(e,t,n,r){const a=qw(n),i=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(bz(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),s(),n.stack=c,p}s=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=o.move(" "+a),u+=o.move(n.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),l()),u+=o.move(")"),s(),u}function wde(e,t,n){return bz(e,n)?"<":"["}vz.peek=Ede;function vz(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=c,i(),a==="full"||!u||u!==p?l+=s.move(p+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Ede(){return"["}function Yw(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 kde(e){const t=Yw(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 Tde(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 xz(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 Cde(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?Tde(n):Yw(n);const s=e.ordered?o==="."?")":".":kde(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.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&&(l=!0),xz(n)===o&&c){let p=-1;for(;++p<e.children.length;){const f=e.children[p];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),u}function Ade(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 _de(e,t,n,r){const a=Ade(n);let i=n.bulletCurrent||Yw(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(p,f,h){return f?(h?"":" ".repeat(o))+p:(h?i:i+" ".repeat(o-i.length))+p}}function Rde(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o}const Nde=Up(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ide(e,t,n,r){return(e.children.some(function(o){return Nde(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ode(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Sz.peek=Dde;function Sz(e,t,n,r){const a=Ode(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=qg(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=Zd(u)+l.slice(1));const p=l.charCodeAt(l.length-1),f=qg(r.after.charCodeAt(0),p,a);f.inside&&(l=l.slice(0,-1)+Zd(p));const h=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+h}function Dde(e,t,n){return n.options.strong||"*"}function Lde(e,t,n,r){return n.safe(e.value,r)}function Mde(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 zde(e,t,n){const r=(xz(n)+(n.options.ruleSpaces?" ":"")).repeat(Mde(n));return n.options.ruleSpaces?r.slice(0,-1):r}const wz={blockquote:ode,break:a6,code:dde,definition:fde,emphasis:pz,hardBreak:a6,heading:bde,html:fz,image:hz,imageReference:gz,inlineCode:mz,link:yz,linkReference:vz,list:Cde,listItem:_de,paragraph:Rde,root:Ide,strong:Sz,text:Lde,thematicBreak:zde};function Pde(){return{enter:{table:jde,tableData:i6,tableHeader:i6,tableRow:Bde},exit:{codeText:Ude,table:Fde,tableData:Ry,tableHeader:Ry,tableRow:Ry}}}function jde(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 Fde(e){this.exit(e),this.data.inTable=void 0}function Bde(e){this.enter({type:"tableRow",children:[]},e)}function Ry(e){this.exit(e)}function i6(e){this.enter({type:"tableCell",children:[]},e)}function Ude(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$de));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $de(e,t){return t==="|"?t:e}function Hde(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:l,tableRow:s}};function o(h,g,y,x){return u(c(h,y,x),h.align)}function s(h,g,y,x){const m=p(h,y,x),v=u([m]);return v.slice(0,v.indexOf(`
`))}function l(h,g,y,x){const m=y.enter("tableCell"),v=y.enter("phrasing"),b=y.containerPhrasing(h,{...x,before:i,after:i});return v(),m(),b}function u(h,g){return ade(h,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function c(h,g,y){const x=h.children;let m=-1;const v=[],b=g.enter("table");for(;++m<x.length;)v[m]=p(x[m],g,y);return b(),v}function p(h,g,y){const x=h.children;let m=-1;const v=[],b=g.enter("tableRow");for(;++m<x.length;)v[m]=l(x[m],h,g,y);return b(),v}function f(h,g,y){let x=wz.inlineCode(h,g,y);return y.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function Vde(){return{exit:{taskListCheckValueChecked:o6,taskListCheckValueUnchecked:o6,paragraph:Wde}}}function Gde(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qde}}}function o6(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Wde(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 i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;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 qde(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=wz.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function Yde(){return[Ace(),Yce(),Qce(),Pde(),Vde()]}function Xde(e){return{extensions:[_ce(),Xce(e),Jce(),Hde(e),Gde()]}}const Kde={tokenize:npe,partial:!0},Ez={tokenize:rpe,partial:!0},kz={tokenize:ape,partial:!0},Tz={tokenize:ipe,partial:!0},Zde={tokenize:ope,partial:!0},Cz={name:"wwwAutolink",tokenize:epe,previous:_z},Az={name:"protocolAutolink",tokenize:tpe,previous:Rz},ro={name:"emailAutolink",tokenize:Jde,previous:Nz},gi={};function Qde(){return{text:gi}}let hs=48;for(;hs<123;)gi[hs]=ro,hs++,hs===58?hs=65:hs===91&&(hs=97);gi[43]=ro;gi[45]=ro;gi[46]=ro;gi[95]=ro;gi[72]=[ro,Az];gi[104]=[ro,Az];gi[87]=[ro,Cz];gi[119]=[ro,Cz];function Jde(e,t,n){const r=this;let a,i;return o;function o(p){return!$v(p)||!Nz.call(r,r.previous)||Xw(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return $v(p)?(e.consume(p),s):p===64?(e.consume(p),l):n(p)}function l(p){return p===46?e.check(Zde,c,u)(p):p===45||p===95||ir(p)?(i=!0,e.consume(p),l):c(p)}function u(p){return e.consume(p),a=!0,l}function c(p){return i&&a&&gr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function epe(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!_z.call(r,r.previous)||Xw(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Kde,e.attempt(Ez,e.attempt(kz,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function tpe(e,t,n){const r=this;let a="",i=!1;return o;function o(p){return(p===72||p===104)&&Rz.call(r,r.previous)&&!Xw(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),s):n(p)}function s(p){if(gr(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),s;if(p===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(p),l}return n(p)}function l(p){return p===47?(e.consume(p),i?u:(i=!0,l)):n(p)}function u(p){return p===null||Vg(p)||Mt(p)||Vs(p)||mm(p)?n(p):e.attempt(Ez,e.attempt(kz,c),n)(p)}function c(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function npe(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),i):n(o)}function i(o){return o===null?n(o):t(o)}}function rpe(e,t,n){let r,a,i;return o;function o(u){return u===46||u===95?e.check(Tz,l,s)(u):u===null||Mt(u)||Vs(u)||u!==45&&mm(u)?l(u):(i=!0,e.consume(u),o)}function s(u){return u===95?r=!0:(a=r,r=void 0),e.consume(u),o}function l(u){return a||r||!i?n(u):t(u)}}function ape(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(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(Tz,t,i)(o):o===null||Mt(o)||Vs(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function ipe(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||Mt(s)||Vs(s)?t(s):n(s)}function a(s){return s===null||s===40||s===91||Mt(s)||Vs(s)?t(s):r(s)}function i(s){return gr(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):gr(s)?(e.consume(s),o):n(s)}}function ope(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return ir(i)?n(i):t(i)}}function _z(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Mt(e)}function Rz(e){return!gr(e)}function Nz(e){return!(e===47||$v(e))}function $v(e){return e===43||e===45||e===46||e===95||ir(e)}function Xw(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 spe={tokenize:gpe,partial:!0};function lpe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ppe,continuation:{tokenize:fpe},exit:hpe}},text:{91:{name:"gfmFootnoteCall",tokenize:dpe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:upe,resolveTo:cpe}}}}function upe(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const u=La(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function cpe(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 i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function dpe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),l}function l(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(i>999||p===93&&!o||p===null||p===91||Mt(p))return n(p);if(p===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(La(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return Mt(p)||(o=!0),i++,e.consume(p),p===92?c:u}function c(p){return p===91||p===92||p===93?(e.consume(p),i++,u):u(p)}}function ppe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(o>999||g===93&&!s||g===null||g===91||Mt(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=La(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Mt(g)||(s=!0),o++,e.consume(g),g===92?p:c}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,c):c(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),rt(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function fpe(e,t,n){return e.check(Bp,t,e.attempt(spe,t,n))}function hpe(e){e.exit("gfmFootnoteDefinition")}function gpe(e,t,n){const r=this;return rt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function mpe(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},p={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",p,s]],h=s.parser.constructs.insideSpan.null;h&&Jr(f,f.length,0,bm(h,o.slice(u+1,l),s)),Jr(f,f.length,0,[["exit",p,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",c,s]]),Jr(o,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const u=this.previous,c=this.events;let p=0;return f;function f(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const y=Au(u);if(g===126)return p>1?l(g):(o.consume(g),p++,h);if(p<2&&!n)return l(g);const x=o.exit("strikethroughSequenceTemporary"),m=Au(g);return x._open=!m||m===2&&!!y,x._close=!y||y===2&&!!m,s(g)}}}class bpe{constructor(){this.map=[]}add(t,n,r){ype(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[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 i of a)t.push(i);a=r.pop()}this.map.length=0}}function ype(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 vpe(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 i=r.length-1;r[i]=r[i]==="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 xpe(){return{flow:{null:{name:"table",tokenize:Spe,resolveAll:wpe}}}}function Spe(e,t,n){const r=this;let a=0,i=0,o;return s;function s(_){let L=r.events.length-1;for(;L>-1;){const M=r.events[L][1].type;if(M==="lineEnding"||M==="linePrefix")L--;else break}const I=L>-1?r.events[L][1].type:null,P=I==="tableHead"||I==="tableRow"?k:l;return P===k&&r.parser.lazy[r.now().line]?n(_):P(_)}function l(_){return e.enter("tableHead"),e.enter("tableRow"),u(_)}function u(_){return _===124||(o=!0,i+=1),c(_)}function c(_){return _===null?n(_):Oe(_)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),h):n(_):ot(_)?rt(e,c,"whitespace")(_):(i+=1,o&&(o=!1,a+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),p(_)))}function p(_){return _===null||_===124||Mt(_)?(e.exit("data"),c(_)):(e.consume(_),_===92?f:p)}function f(_){return _===92||_===124?(e.consume(_),p):p(_)}function h(_){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(_):(e.enter("tableDelimiterRow"),o=!1,ot(_)?rt(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):g(_))}function g(_){return _===45||_===58?x(_):_===124?(o=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),y):C(_)}function y(_){return ot(_)?rt(e,x,"whitespace")(_):x(_)}function x(_){return _===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),m):_===45?(i+=1,m(_)):_===null||Oe(_)?S(_):C(_)}function m(_){return _===45?(e.enter("tableDelimiterFiller"),v(_)):C(_)}function v(_){return _===45?(e.consume(_),v):_===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(_))}function b(_){return ot(_)?rt(e,S,"whitespace")(_):S(_)}function S(_){return _===124?g(_):_===null||Oe(_)?!o||a!==i?C(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):C(_)}function C(_){return n(_)}function k(_){return e.enter("tableRow"),R(_)}function R(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),R):_===null||Oe(_)?(e.exit("tableRow"),t(_)):ot(_)?rt(e,R,"whitespace")(_):(e.enter("data"),O(_))}function O(_){return _===null||_===124||Mt(_)?(e.exit("data"),R(_)):(e.consume(_),_===92?N:O)}function N(_){return _===92||_===124?(e.consume(_),O):O(_)}}function wpe(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,c,p;const f=new bpe;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(s6(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,p=void 0,i=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",c,t]])),a=g.type==="tableDelimiterRow"?2:c?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],p=jf(f,t,i,a,void 0,p),i=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],p=jf(f,t,i,a,void 0,p)),i=o,o=[i[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],p=jf(f,t,i,a,n,p)):o[1]!==0&&(p=jf(f,t,o,a,n,p)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&s6(f,t,l,u,c),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=vpe(t.events,n))}return e}function jf(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},Nl(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Nl(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=Nl(t.events,n[2]),c=Nl(t.events,n[3]),p={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,y=n[3]-n[2]-1;e.add(g,y,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return a!==void 0&&(i.end=Object.assign({},Nl(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function s6(e,t,n,r,a){const i=[],o=Nl(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function Nl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Epe={name:"tasklistCheck",tokenize:Tpe};function kpe(){return{text:{91:Epe}}}function Tpe(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Mt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Oe(l)?t(l):ot(l)?e.check({tokenize:Cpe},t,n)(l):n(l)}}function Cpe(e,t,n){return rt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function Ape(e){return FM([Qde(),lpe(),mpe(e),xpe(),kpe()])}const _pe={};function Rpe(e){const t=this,n=e||_pe,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Ape(n)),i.push(Yde()),o.push(Xde(n))}function Npe(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u;const p=c.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function o(l){const u=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u,c.data.hChildren.push({type:"text",value:u})}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function Ipe(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(i,o,s,l){const u=i.value||"",c=s.createTracker(l),p="$".repeat(Math.max(dz(u,"$")+1,2)),f=s.enter("mathFlow");let h=c.move(p);if(i.meta){const g=s.enter("mathFlowMeta");h+=c.move(s.safe(i.meta,{after:`
`,before:h,encode:["$"],...c.current()})),g()}return h+=c.move(`
`),u&&(h+=c.move(u+`
`)),h+=c.move(p),f(),h}function r(i,o,s){let l=i.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const c="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let p=-1;for(;++p<s.unsafe.length;){const f=s.unsafe[p];if(!f.atBreak)continue;const h=s.compilePattern(f);let g;for(;g=h.exec(l);){let y=g.index;l.codePointAt(y)===10&&l.codePointAt(y-1)===13&&y--,l=l.slice(0,y)+" "+l.slice(g.index+1)}}return c+l+c}function a(){return"$"}}const Ope=Iz("dollar"),Dpe=Iz("backslash"),l6={tokenize:Lpe,partial:!0};function Iz(e){return{tokenize:t,concrete:!0,name:"mathFlow"};function t(n,r,a){const i=this,o=i.events[i.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let l=0;return u;function u(S){return n.enter("mathFlow"),n.enter("mathFlowFence"),n.enter("mathFlowFenceSequence"),c(S)}function c(S){if(e==="dollar"){if(S===36)return n.consume(S),l++,c}else{if(l===0&&S===92)return n.consume(S),l=1,c;if(l===1&&S===91)return n.consume(S),l=2,c}return l<2?a(S):(n.exit("mathFlowFenceSequence"),rt(n,p,"whitespace")(S))}function p(S){return S===null||Oe(S)?h(S):(n.enter("mathFlowFenceMeta"),n.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||Oe(S)?(n.exit("chunkString"),n.exit("mathFlowFenceMeta"),h(S)):e==="dollar"&&S===36?a(S):(n.consume(S),f)}function h(S){return n.exit("mathFlowFence"),i.interrupt?r(S):n.attempt(l6,g,b)(S)}function g(S){return n.attempt({tokenize:v,partial:!0},b,y)(S)}function y(S){return(s?rt(n,x,"linePrefix",s+1):x)(S)}function x(S){return S===null?b(S):Oe(S)?n.attempt(l6,g,b)(S):(n.enter("mathFlowValue"),m(S))}function m(S){return S===null||Oe(S)?(n.exit("mathFlowValue"),x(S)):(n.consume(S),m)}function v(S,C,k){let R=0;return rt(S,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(L){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),N(L)}function N(L){if(e==="dollar"){if(L===36)return R++,S.consume(L),N}else{if(R===0&&L===92)return R=1,S.consume(L),N;if(R===1&&L===93)return R=2,S.consume(L),N}return e==="dollar"&&R<l||e==="backslash"&&R!==l?k(L):(S.exit("mathFlowFenceSequence"),rt(S,_,"whitespace")(L))}function _(L){return L===null||Oe(L)?(S.exit("mathFlowFence"),C(L)):k(L)}}function b(S){return n.exit("mathFlow"),r(S)}}}function Lpe(e,t,n){const r=this;return a;function a(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Mpe(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{dollar:zpe(n),backslash:[u6(40,41),u6(91,93)]}}function zpe(e){return{tokenize:t,resolve:Oz,previous:Ppe,name:"mathText"};function t(n,r,a){let i=0,o,s;return l;function l(h){return n.enter("mathText"),n.enter("mathTextSequence"),u(h)}function u(h){return h===36?(n.consume(h),i++,u):i<2&&!e?a(h):(n.exit("mathTextSequence"),c(h))}function c(h){return h===null?a(h):h===36?(s=n.enter("mathTextSequence"),o=0,f(h)):h===32?(n.enter("space"),n.consume(h),n.exit("space"),c):Oe(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),c):(n.enter("mathTextData"),p(h))}function p(h){return h===null||h===32||h===36||Oe(h)?(n.exit("mathTextData"),c(h)):(n.consume(h),p)}function f(h){return h===36?(n.consume(h),o++,f):o===i?(n.exit("mathTextSequence"),n.exit("mathText"),r(h)):(s.type="mathTextData",p(h))}}}function u6(e,t){return{tokenize:n,resolve:Oz,previous:jpe,name:"mathText"};function n(r,a,i){let o=0,s,l;return u;function u(g){return r.enter("mathText"),r.enter("mathTextSequence"),c(g)}function c(g){return o===0&&g===92?(r.consume(g),o=1,c):o===1&&g===e?(r.consume(g),o=2,c):o<2?i(g):(r.exit("mathTextSequence"),p(g))}function p(g){return g===null?i(g):g===92?(l=r.enter("mathTextSequence"),s=0,h(g)):g===32?(r.enter("space"),r.consume(g),r.exit("space"),p):Oe(g)?(r.enter("lineEnding"),r.consume(g),r.exit("lineEnding"),p):(r.enter("mathTextData"),f(g))}function f(g){return g===null||g===32||g===92||Oe(g)?(r.exit("mathTextData"),p(g)):(r.consume(g),f)}function h(g){if(s===2)return r.exit("mathTextSequence"),r.exit("mathText"),a(g);if(s===0){if(g===92)return r.consume(g),s=1,h}else if(s===1&&g===t)return r.consume(g),s=2,h;return l.type="mathTextData",f(g)}}}function Oz(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==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",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="mathTextData",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 Ppe(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function jpe(e){return e!==92||this.events[this.events.length-1][1].type==="characterEscape"}function Fpe(e){const t=Mpe(e);return{flow:{36:Ope,92:Dpe},text:{36:t.dollar,92:t.backslash}}}class be extends Error{constructor(t,n){var r="KaTeX parse error: "+t,a,i,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;a=o.start,i=o.end,a===s.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var l=s.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+s.slice(a-15,a):u=s.slice(0,a);var c;i+15<s.length?c=s.slice(i,i+15)+"…":c=s.slice(i),r+=u+l+c}super(r),this.name="ParseError",Object.setPrototypeOf(this,be.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=t}}var Bpe=/([A-Z])/g,Kw=e=>e.replace(Bpe,"-$1").toLowerCase(),Upe={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},$pe=/[&><"']/g,or=e=>String(e).replace($pe,t=>Upe[t]),Bh=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Bh(e.body[0]):e:e.type==="font"?Bh(e.body):e,Hpe=new Set(["mathord","textord","atom"]),ao=e=>Hpe.has(Bh(e).type),Vpe=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Hv={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Gpe(e){if("default"in e)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Zw{constructor(t){t===void 0&&(t={}),t=t||{};for(var n of Object.keys(Hv)){var r=Hv[n],a=t[n];this[n]=a!==void 0?r.processor?r.processor(a):a:Gpe(r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new be("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=Vpe(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class fo{constructor(t,n,r){this.id=t,this.size=n,this.cramped=r}sup(){return qa[Wpe[this.id]]}sub(){return qa[qpe[this.id]]}fracNum(){return qa[Ype[this.id]]}fracDen(){return qa[Xpe[this.id]]}cramp(){return qa[Kpe[this.id]]}text(){return qa[Zpe[this.id]]}isTight(){return this.size>=2}}var Qw=0,Yg=1,uu=2,$i=3,Qd=4,Sa=5,_u=6,br=7,qa=[new fo(Qw,0,!1),new fo(Yg,0,!0),new fo(uu,1,!1),new fo($i,1,!0),new fo(Qd,2,!1),new fo(Sa,2,!0),new fo(_u,3,!1),new fo(br,3,!0)],Wpe=[Qd,Sa,Qd,Sa,_u,br,_u,br],qpe=[Sa,Sa,Sa,Sa,br,br,br,br],Ype=[uu,$i,Qd,Sa,_u,br,_u,br],Xpe=[$i,$i,Sa,Sa,br,br,br,br],Kpe=[Yg,Yg,$i,$i,Sa,Sa,br,br],Zpe=[Qw,Yg,uu,$i,uu,$i,uu,$i],We={DISPLAY:qa[Qw],TEXT:qa[uu],SCRIPT:qa[Qd],SCRIPTSCRIPT:qa[_u]},Vv=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Qpe(e){for(var t=0;t<Vv.length;t++)for(var n=Vv[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var Uh=[];Vv.forEach(e=>e.blocks.forEach(t=>Uh.push(...t)));function Dz(e){for(var t=0;t<Uh.length;t+=2)if(e>=Uh[t]&&e<=Uh[t+1])return!0;return!1}var Cn=e=>e+" "+e,xl=80,Jpe=function(t,n){return"M95,"+(622+t+n)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+t/2.075+" -"+t+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+t)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},efe=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+t/2.084+" -"+t+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+t)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},tfe=function(t,n){return"M983 "+(10+t+n)+`
l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},nfe=function(t,n){return"M424,"+(2398+t+n)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+t)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
h400000v`+(40+t)+"h-400000z"},rfe=function(t,n){return"M473,"+(2713+t+n)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},afe=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},ife=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},ofe=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=Jpe(n,xl);break;case"sqrtSize1":a=efe(n,xl);break;case"sqrtSize2":a=tfe(n,xl);break;case"sqrtSize3":a=nfe(n,xl);break;case"sqrtSize4":a=rfe(n,xl);break;case"sqrtTall":a=ife(n,xl,r)}return a},sfe=function(t,n){switch(t){case"⎜":return Cn("M291 0 H417 V"+n+" H291z");case"∣":return Cn("M145 0 H188 V"+n+" H145z");case"∥":return Cn("M145 0 H188 V"+n+" H145z")+Cn("M367 0 H410 V"+n+" H367z");case"⎟":return Cn("M457 0 H583 V"+n+" H457z");case"⎢":return Cn("M319 0 H403 V"+n+" H319z");case"⎥":return Cn("M263 0 H347 V"+n+" H263z");case"⎪":return Cn("M384 0 H504 V"+n+" H384z");case"⏐":return Cn("M312 0 H355 V"+n+" H312z");case"‖":return Cn("M257 0 H300 V"+n+" H257z")+Cn("M478 0 H521 V"+n+" H478z");default:return""}},c6={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Cn("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Cn("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Cn("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Cn("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Cn("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Cn("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Cn("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Cn("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},lfe=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class oc{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var Gv={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ufe={ex:!0,em:!0,mu:!0},Lz=function(t){return typeof t!="string"&&(t=t.unit),t in Gv||t in ufe||t==="ex"},tn=function(t,n){var r;if(t.unit in Gv)r=Gv[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new be("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Se=function(t){return+t.toFixed(4)+"em"},Ko=function(t){return t.filter(n=>n).join(" ")},Mz=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},zz=function(t){var n=document.createElement(t);n.className=Ko(this.classes);for(var r of Object.keys(this.style))n.style[r]=this.style[r];for(var a of Object.keys(this.attributes))n.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n},cfe=/[\s"'>/=\x00-\x1f]/,Pz=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+or(Ko(this.classes))+'"');var r="";for(var a of Object.keys(this.style))r+=Kw(a)+":"+this.style[a]+";";r&&(n+=' style="'+or(r)+'"');for(var i of Object.keys(this.attributes)){if(cfe.test(i))throw new be("Invalid attribute name '"+i+"'");n+=" "+i+'="'+or(this.attributes[i])+'"'}n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+t+">",n};class sc{constructor(t,n,r,a){Mz.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return zz.call(this,"span")}toMarkup(){return Pz.call(this,"span")}}class xm{constructor(t,n,r,a){Mz.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return zz.call(this,"a")}toMarkup(){return Pz.call(this,"a")}}class dfe{constructor(t,n,r){this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n of Object.keys(this.style))t.style[n]=this.style[n];return t}toMarkup(){var t='<img src="'+or(this.src)+'"'+(' alt="'+or(this.alt)+'"'),n="";for(var r of Object.keys(this.style))n+=Kw(r)+":"+this.style[r]+";";return n&&(t+=' style="'+or(n)+'"'),t+="'/>",t}}var pfe={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class na{constructor(t,n,r,a,i,o,s,l){this.text=t,this.height=n||0,this.depth=r||0,this.italic=a||0,this.skew=i||0,this.width=o||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var u=Qpe(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=pfe[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Se(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ko(this.classes));for(var r of Object.keys(this.style))n=n||document.createElement("span"),n.style[r]=this.style[r];return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=or(Ko(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+Se(this.italic)+";");for(var a of Object.keys(this.style))r+=Kw(a)+":"+this.style[a]+";";r&&(t=!0,n+=' style="'+or(r)+'"');var i=or(this.text);return t?(n+=">",n+=i,n+="</span>",n):i}}class Ji{constructor(t,n){this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+or(this.attributes[n])+'"';t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class Zo{constructor(t,n){this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",c6[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+or(this.alternate)+'"/>':'<path d="'+or(c6[this.pathName])+'"/>'}}class Wv{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+or(this.attributes[n])+'"';return t+="/>",t}}function ffe(e){if(e instanceof na)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function hfe(e){if(e instanceof sc)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var gfe=e=>e instanceof sc||e instanceof xm||e instanceof oc,Qa={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ff={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},d6={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function mfe(e,t){Qa[e]=t}function Jw(e,t,n){if(!Qa[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=Qa[t][r];if(!a&&e[0]in d6&&(r=d6[e[0]].charCodeAt(0),a=Qa[t][r]),!a&&n==="text"&&Dz(r)&&(a=Qa[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Ny={};function bfe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Ny[t]){var n=Ny[t]={cssEmPerMu:Ff.quad[t]/18};for(var r in Ff)Ff.hasOwnProperty(r)&&(n[r]=Ff[r][t])}return Ny[t]}var yfe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},vfe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Yt={math:{},text:{}};function E(e,t,n,r,a,i){Yt[e][a]={font:t,group:n,replace:r},i&&r&&(Yt[e][r]=Yt[e][a])}var T="math",ue="text",z="main",q="ams",Kt="accent-token",_e="bin",xr="close",lc="inner",Fe="mathord",Sn="op-token",oa="open",Hp="punct",Y="rel",io="spacing",K="textord";E(T,z,Y,"≡","\\equiv",!0);E(T,z,Y,"≺","\\prec",!0);E(T,z,Y,"≻","\\succ",!0);E(T,z,Y,"∼","\\sim",!0);E(T,z,Y,"⊥","\\perp");E(T,z,Y,"⪯","\\preceq",!0);E(T,z,Y,"⪰","\\succeq",!0);E(T,z,Y,"≃","\\simeq",!0);E(T,z,Y,"∣","\\mid",!0);E(T,z,Y,"≪","\\ll",!0);E(T,z,Y,"≫","\\gg",!0);E(T,z,Y,"≍","\\asymp",!0);E(T,z,Y,"∥","\\parallel");E(T,z,Y,"⋈","\\bowtie",!0);E(T,z,Y,"⌣","\\smile",!0);E(T,z,Y,"⊑","\\sqsubseteq",!0);E(T,z,Y,"⊒","\\sqsupseteq",!0);E(T,z,Y,"≐","\\doteq",!0);E(T,z,Y,"⌢","\\frown",!0);E(T,z,Y,"∋","\\ni",!0);E(T,z,Y,"∝","\\propto",!0);E(T,z,Y,"⊢","\\vdash",!0);E(T,z,Y,"⊣","\\dashv",!0);E(T,z,Y,"∋","\\owns");E(T,z,Hp,".","\\ldotp");E(T,z,Hp,"⋅","\\cdotp");E(T,z,Hp,"⋅","·");E(ue,z,K,"⋅","·");E(T,z,K,"#","\\#");E(ue,z,K,"#","\\#");E(T,z,K,"&","\\&");E(ue,z,K,"&","\\&");E(T,z,K,"ℵ","\\aleph",!0);E(T,z,K,"∀","\\forall",!0);E(T,z,K,"ℏ","\\hbar",!0);E(T,z,K,"∃","\\exists",!0);E(T,z,K,"∇","\\nabla",!0);E(T,z,K,"♭","\\flat",!0);E(T,z,K,"ℓ","\\ell",!0);E(T,z,K,"♮","\\natural",!0);E(T,z,K,"♣","\\clubsuit",!0);E(T,z,K,"℘","\\wp",!0);E(T,z,K,"♯","\\sharp",!0);E(T,z,K,"♢","\\diamondsuit",!0);E(T,z,K,"ℜ","\\Re",!0);E(T,z,K,"♡","\\heartsuit",!0);E(T,z,K,"ℑ","\\Im",!0);E(T,z,K,"♠","\\spadesuit",!0);E(T,z,K,"§","\\S",!0);E(ue,z,K,"§","\\S");E(T,z,K,"¶","\\P",!0);E(ue,z,K,"¶","\\P");E(T,z,K,"†","\\dag");E(ue,z,K,"†","\\dag");E(ue,z,K,"†","\\textdagger");E(T,z,K,"‡","\\ddag");E(ue,z,K,"‡","\\ddag");E(ue,z,K,"‡","\\textdaggerdbl");E(T,z,xr,"⎱","\\rmoustache",!0);E(T,z,oa,"⎰","\\lmoustache",!0);E(T,z,xr,"⟯","\\rgroup",!0);E(T,z,oa,"⟮","\\lgroup",!0);E(T,z,_e,"∓","\\mp",!0);E(T,z,_e,"⊖","\\ominus",!0);E(T,z,_e,"⊎","\\uplus",!0);E(T,z,_e,"⊓","\\sqcap",!0);E(T,z,_e,"∗","\\ast");E(T,z,_e,"⊔","\\sqcup",!0);E(T,z,_e,"◯","\\bigcirc",!0);E(T,z,_e,"∙","\\bullet",!0);E(T,z,_e,"‡","\\ddagger");E(T,z,_e,"≀","\\wr",!0);E(T,z,_e,"⨿","\\amalg");E(T,z,_e,"&","\\And");E(T,z,Y,"⟵","\\longleftarrow",!0);E(T,z,Y,"⇐","\\Leftarrow",!0);E(T,z,Y,"⟸","\\Longleftarrow",!0);E(T,z,Y,"⟶","\\longrightarrow",!0);E(T,z,Y,"⇒","\\Rightarrow",!0);E(T,z,Y,"⟹","\\Longrightarrow",!0);E(T,z,Y,"↔","\\leftrightarrow",!0);E(T,z,Y,"⟷","\\longleftrightarrow",!0);E(T,z,Y,"⇔","\\Leftrightarrow",!0);E(T,z,Y,"⟺","\\Longleftrightarrow",!0);E(T,z,Y,"↦","\\mapsto",!0);E(T,z,Y,"⟼","\\longmapsto",!0);E(T,z,Y,"↗","\\nearrow",!0);E(T,z,Y,"↩","\\hookleftarrow",!0);E(T,z,Y,"↪","\\hookrightarrow",!0);E(T,z,Y,"↘","\\searrow",!0);E(T,z,Y,"↼","\\leftharpoonup",!0);E(T,z,Y,"⇀","\\rightharpoonup",!0);E(T,z,Y,"↙","\\swarrow",!0);E(T,z,Y,"↽","\\leftharpoondown",!0);E(T,z,Y,"⇁","\\rightharpoondown",!0);E(T,z,Y,"↖","\\nwarrow",!0);E(T,z,Y,"⇌","\\rightleftharpoons",!0);E(T,q,Y,"≮","\\nless",!0);E(T,q,Y,"","\\@nleqslant");E(T,q,Y,"","\\@nleqq");E(T,q,Y,"⪇","\\lneq",!0);E(T,q,Y,"≨","\\lneqq",!0);E(T,q,Y,"","\\@lvertneqq");E(T,q,Y,"⋦","\\lnsim",!0);E(T,q,Y,"⪉","\\lnapprox",!0);E(T,q,Y,"⊀","\\nprec",!0);E(T,q,Y,"⋠","\\npreceq",!0);E(T,q,Y,"⋨","\\precnsim",!0);E(T,q,Y,"⪹","\\precnapprox",!0);E(T,q,Y,"≁","\\nsim",!0);E(T,q,Y,"","\\@nshortmid");E(T,q,Y,"∤","\\nmid",!0);E(T,q,Y,"⊬","\\nvdash",!0);E(T,q,Y,"⊭","\\nvDash",!0);E(T,q,Y,"⋪","\\ntriangleleft");E(T,q,Y,"⋬","\\ntrianglelefteq",!0);E(T,q,Y,"⊊","\\subsetneq",!0);E(T,q,Y,"","\\@varsubsetneq");E(T,q,Y,"⫋","\\subsetneqq",!0);E(T,q,Y,"","\\@varsubsetneqq");E(T,q,Y,"≯","\\ngtr",!0);E(T,q,Y,"","\\@ngeqslant");E(T,q,Y,"","\\@ngeqq");E(T,q,Y,"⪈","\\gneq",!0);E(T,q,Y,"≩","\\gneqq",!0);E(T,q,Y,"","\\@gvertneqq");E(T,q,Y,"⋧","\\gnsim",!0);E(T,q,Y,"⪊","\\gnapprox",!0);E(T,q,Y,"⊁","\\nsucc",!0);E(T,q,Y,"⋡","\\nsucceq",!0);E(T,q,Y,"⋩","\\succnsim",!0);E(T,q,Y,"⪺","\\succnapprox",!0);E(T,q,Y,"≆","\\ncong",!0);E(T,q,Y,"","\\@nshortparallel");E(T,q,Y,"∦","\\nparallel",!0);E(T,q,Y,"⊯","\\nVDash",!0);E(T,q,Y,"⋫","\\ntriangleright");E(T,q,Y,"⋭","\\ntrianglerighteq",!0);E(T,q,Y,"","\\@nsupseteqq");E(T,q,Y,"⊋","\\supsetneq",!0);E(T,q,Y,"","\\@varsupsetneq");E(T,q,Y,"⫌","\\supsetneqq",!0);E(T,q,Y,"","\\@varsupsetneqq");E(T,q,Y,"⊮","\\nVdash",!0);E(T,q,Y,"⪵","\\precneqq",!0);E(T,q,Y,"⪶","\\succneqq",!0);E(T,q,Y,"","\\@nsubseteqq");E(T,q,_e,"⊴","\\unlhd");E(T,q,_e,"⊵","\\unrhd");E(T,q,Y,"↚","\\nleftarrow",!0);E(T,q,Y,"↛","\\nrightarrow",!0);E(T,q,Y,"⇍","\\nLeftarrow",!0);E(T,q,Y,"⇏","\\nRightarrow",!0);E(T,q,Y,"↮","\\nleftrightarrow",!0);E(T,q,Y,"⇎","\\nLeftrightarrow",!0);E(T,q,Y,"△","\\vartriangle");E(T,q,K,"ℏ","\\hslash");E(T,q,K,"▽","\\triangledown");E(T,q,K,"◊","\\lozenge");E(T,q,K,"Ⓢ","\\circledS");E(T,q,K,"®","\\circledR");E(ue,q,K,"®","\\circledR");E(T,q,K,"∡","\\measuredangle",!0);E(T,q,K,"∄","\\nexists");E(T,q,K,"℧","\\mho");E(T,q,K,"Ⅎ","\\Finv",!0);E(T,q,K,"⅁","\\Game",!0);E(T,q,K,"‵","\\backprime");E(T,q,K,"▲","\\blacktriangle");E(T,q,K,"▼","\\blacktriangledown");E(T,q,K,"■","\\blacksquare");E(T,q,K,"⧫","\\blacklozenge");E(T,q,K,"★","\\bigstar");E(T,q,K,"∢","\\sphericalangle",!0);E(T,q,K,"∁","\\complement",!0);E(T,q,K,"ð","\\eth",!0);E(ue,z,K,"ð","ð");E(T,q,K,"╱","\\diagup");E(T,q,K,"╲","\\diagdown");E(T,q,K,"□","\\square");E(T,q,K,"□","\\Box");E(T,q,K,"◊","\\Diamond");E(T,q,K,"¥","\\yen",!0);E(ue,q,K,"¥","\\yen",!0);E(T,q,K,"✓","\\checkmark",!0);E(ue,q,K,"✓","\\checkmark");E(T,q,K,"ℶ","\\beth",!0);E(T,q,K,"ℸ","\\daleth",!0);E(T,q,K,"ℷ","\\gimel",!0);E(T,q,K,"ϝ","\\digamma",!0);E(T,q,K,"ϰ","\\varkappa");E(T,q,oa,"┌","\\@ulcorner",!0);E(T,q,xr,"┐","\\@urcorner",!0);E(T,q,oa,"└","\\@llcorner",!0);E(T,q,xr,"┘","\\@lrcorner",!0);E(T,q,Y,"≦","\\leqq",!0);E(T,q,Y,"⩽","\\leqslant",!0);E(T,q,Y,"⪕","\\eqslantless",!0);E(T,q,Y,"≲","\\lesssim",!0);E(T,q,Y,"⪅","\\lessapprox",!0);E(T,q,Y,"≊","\\approxeq",!0);E(T,q,_e,"⋖","\\lessdot");E(T,q,Y,"⋘","\\lll",!0);E(T,q,Y,"≶","\\lessgtr",!0);E(T,q,Y,"⋚","\\lesseqgtr",!0);E(T,q,Y,"⪋","\\lesseqqgtr",!0);E(T,q,Y,"≑","\\doteqdot");E(T,q,Y,"≓","\\risingdotseq",!0);E(T,q,Y,"≒","\\fallingdotseq",!0);E(T,q,Y,"∽","\\backsim",!0);E(T,q,Y,"⋍","\\backsimeq",!0);E(T,q,Y,"⫅","\\subseteqq",!0);E(T,q,Y,"⋐","\\Subset",!0);E(T,q,Y,"⊏","\\sqsubset",!0);E(T,q,Y,"≼","\\preccurlyeq",!0);E(T,q,Y,"⋞","\\curlyeqprec",!0);E(T,q,Y,"≾","\\precsim",!0);E(T,q,Y,"⪷","\\precapprox",!0);E(T,q,Y,"⊲","\\vartriangleleft");E(T,q,Y,"⊴","\\trianglelefteq");E(T,q,Y,"⊨","\\vDash",!0);E(T,q,Y,"⊪","\\Vvdash",!0);E(T,q,Y,"⌣","\\smallsmile");E(T,q,Y,"⌢","\\smallfrown");E(T,q,Y,"≏","\\bumpeq",!0);E(T,q,Y,"≎","\\Bumpeq",!0);E(T,q,Y,"≧","\\geqq",!0);E(T,q,Y,"⩾","\\geqslant",!0);E(T,q,Y,"⪖","\\eqslantgtr",!0);E(T,q,Y,"≳","\\gtrsim",!0);E(T,q,Y,"⪆","\\gtrapprox",!0);E(T,q,_e,"⋗","\\gtrdot");E(T,q,Y,"⋙","\\ggg",!0);E(T,q,Y,"≷","\\gtrless",!0);E(T,q,Y,"⋛","\\gtreqless",!0);E(T,q,Y,"⪌","\\gtreqqless",!0);E(T,q,Y,"≖","\\eqcirc",!0);E(T,q,Y,"≗","\\circeq",!0);E(T,q,Y,"≜","\\triangleq",!0);E(T,q,Y,"∼","\\thicksim");E(T,q,Y,"≈","\\thickapprox");E(T,q,Y,"⫆","\\supseteqq",!0);E(T,q,Y,"⋑","\\Supset",!0);E(T,q,Y,"⊐","\\sqsupset",!0);E(T,q,Y,"≽","\\succcurlyeq",!0);E(T,q,Y,"⋟","\\curlyeqsucc",!0);E(T,q,Y,"≿","\\succsim",!0);E(T,q,Y,"⪸","\\succapprox",!0);E(T,q,Y,"⊳","\\vartriangleright");E(T,q,Y,"⊵","\\trianglerighteq");E(T,q,Y,"⊩","\\Vdash",!0);E(T,q,Y,"∣","\\shortmid");E(T,q,Y,"∥","\\shortparallel");E(T,q,Y,"≬","\\between",!0);E(T,q,Y,"⋔","\\pitchfork",!0);E(T,q,Y,"∝","\\varpropto");E(T,q,Y,"◀","\\blacktriangleleft");E(T,q,Y,"∴","\\therefore",!0);E(T,q,Y,"∍","\\backepsilon");E(T,q,Y,"▶","\\blacktriangleright");E(T,q,Y,"∵","\\because",!0);E(T,q,Y,"⋘","\\llless");E(T,q,Y,"⋙","\\gggtr");E(T,q,_e,"⊲","\\lhd");E(T,q,_e,"⊳","\\rhd");E(T,q,Y,"≂","\\eqsim",!0);E(T,z,Y,"⋈","\\Join");E(T,q,Y,"≑","\\Doteq",!0);E(T,q,_e,"∔","\\dotplus",!0);E(T,q,_e,"∖","\\smallsetminus");E(T,q,_e,"⋒","\\Cap",!0);E(T,q,_e,"⋓","\\Cup",!0);E(T,q,_e,"⩞","\\doublebarwedge",!0);E(T,q,_e,"⊟","\\boxminus",!0);E(T,q,_e,"⊞","\\boxplus",!0);E(T,q,_e,"⋇","\\divideontimes",!0);E(T,q,_e,"⋉","\\ltimes",!0);E(T,q,_e,"⋊","\\rtimes",!0);E(T,q,_e,"⋋","\\leftthreetimes",!0);E(T,q,_e,"⋌","\\rightthreetimes",!0);E(T,q,_e,"⋏","\\curlywedge",!0);E(T,q,_e,"⋎","\\curlyvee",!0);E(T,q,_e,"⊝","\\circleddash",!0);E(T,q,_e,"⊛","\\circledast",!0);E(T,q,_e,"⋅","\\centerdot");E(T,q,_e,"⊺","\\intercal",!0);E(T,q,_e,"⋒","\\doublecap");E(T,q,_e,"⋓","\\doublecup");E(T,q,_e,"⊠","\\boxtimes",!0);E(T,q,Y,"⇢","\\dashrightarrow",!0);E(T,q,Y,"⇠","\\dashleftarrow",!0);E(T,q,Y,"⇇","\\leftleftarrows",!0);E(T,q,Y,"⇆","\\leftrightarrows",!0);E(T,q,Y,"⇚","\\Lleftarrow",!0);E(T,q,Y,"↞","\\twoheadleftarrow",!0);E(T,q,Y,"↢","\\leftarrowtail",!0);E(T,q,Y,"↫","\\looparrowleft",!0);E(T,q,Y,"⇋","\\leftrightharpoons",!0);E(T,q,Y,"↶","\\curvearrowleft",!0);E(T,q,Y,"↺","\\circlearrowleft",!0);E(T,q,Y,"↰","\\Lsh",!0);E(T,q,Y,"⇈","\\upuparrows",!0);E(T,q,Y,"↿","\\upharpoonleft",!0);E(T,q,Y,"⇃","\\downharpoonleft",!0);E(T,z,Y,"⊶","\\origof",!0);E(T,z,Y,"⊷","\\imageof",!0);E(T,q,Y,"⊸","\\multimap",!0);E(T,q,Y,"↭","\\leftrightsquigarrow",!0);E(T,q,Y,"⇉","\\rightrightarrows",!0);E(T,q,Y,"⇄","\\rightleftarrows",!0);E(T,q,Y,"↠","\\twoheadrightarrow",!0);E(T,q,Y,"↣","\\rightarrowtail",!0);E(T,q,Y,"↬","\\looparrowright",!0);E(T,q,Y,"↷","\\curvearrowright",!0);E(T,q,Y,"↻","\\circlearrowright",!0);E(T,q,Y,"↱","\\Rsh",!0);E(T,q,Y,"⇊","\\downdownarrows",!0);E(T,q,Y,"↾","\\upharpoonright",!0);E(T,q,Y,"⇂","\\downharpoonright",!0);E(T,q,Y,"⇝","\\rightsquigarrow",!0);E(T,q,Y,"⇝","\\leadsto");E(T,q,Y,"⇛","\\Rrightarrow",!0);E(T,q,Y,"↾","\\restriction");E(T,z,K,"‘","`");E(T,z,K,"$","\\$");E(ue,z,K,"$","\\$");E(ue,z,K,"$","\\textdollar");E(T,z,K,"%","\\%");E(ue,z,K,"%","\\%");E(T,z,K,"_","\\_");E(ue,z,K,"_","\\_");E(ue,z,K,"_","\\textunderscore");E(T,z,K,"∠","\\angle",!0);E(T,z,K,"∞","\\infty",!0);E(T,z,K,"′","\\prime");E(T,z,K,"△","\\triangle");E(T,z,K,"Γ","\\Gamma",!0);E(T,z,K,"Δ","\\Delta",!0);E(T,z,K,"Θ","\\Theta",!0);E(T,z,K,"Λ","\\Lambda",!0);E(T,z,K,"Ξ","\\Xi",!0);E(T,z,K,"Π","\\Pi",!0);E(T,z,K,"Σ","\\Sigma",!0);E(T,z,K,"Υ","\\Upsilon",!0);E(T,z,K,"Φ","\\Phi",!0);E(T,z,K,"Ψ","\\Psi",!0);E(T,z,K,"Ω","\\Omega",!0);E(T,z,K,"A","Α");E(T,z,K,"B","Β");E(T,z,K,"E","Ε");E(T,z,K,"Z","Ζ");E(T,z,K,"H","Η");E(T,z,K,"I","Ι");E(T,z,K,"K","Κ");E(T,z,K,"M","Μ");E(T,z,K,"N","Ν");E(T,z,K,"O","Ο");E(T,z,K,"P","Ρ");E(T,z,K,"T","Τ");E(T,z,K,"X","Χ");E(T,z,K,"¬","\\neg",!0);E(T,z,K,"¬","\\lnot");E(T,z,K,"⊤","\\top");E(T,z,K,"⊥","\\bot");E(T,z,K,"∅","\\emptyset");E(T,q,K,"∅","\\varnothing");E(T,z,Fe,"α","\\alpha",!0);E(T,z,Fe,"β","\\beta",!0);E(T,z,Fe,"γ","\\gamma",!0);E(T,z,Fe,"δ","\\delta",!0);E(T,z,Fe,"ϵ","\\epsilon",!0);E(T,z,Fe,"ζ","\\zeta",!0);E(T,z,Fe,"η","\\eta",!0);E(T,z,Fe,"θ","\\theta",!0);E(T,z,Fe,"ι","\\iota",!0);E(T,z,Fe,"κ","\\kappa",!0);E(T,z,Fe,"λ","\\lambda",!0);E(T,z,Fe,"μ","\\mu",!0);E(T,z,Fe,"ν","\\nu",!0);E(T,z,Fe,"ξ","\\xi",!0);E(T,z,Fe,"ο","\\omicron",!0);E(T,z,Fe,"π","\\pi",!0);E(T,z,Fe,"ρ","\\rho",!0);E(T,z,Fe,"σ","\\sigma",!0);E(T,z,Fe,"τ","\\tau",!0);E(T,z,Fe,"υ","\\upsilon",!0);E(T,z,Fe,"ϕ","\\phi",!0);E(T,z,Fe,"χ","\\chi",!0);E(T,z,Fe,"ψ","\\psi",!0);E(T,z,Fe,"ω","\\omega",!0);E(T,z,Fe,"ε","\\varepsilon",!0);E(T,z,Fe,"ϑ","\\vartheta",!0);E(T,z,Fe,"ϖ","\\varpi",!0);E(T,z,Fe,"ϱ","\\varrho",!0);E(T,z,Fe,"ς","\\varsigma",!0);E(T,z,Fe,"φ","\\varphi",!0);E(T,z,_e,"∗","*",!0);E(T,z,_e,"+","+");E(T,z,_e,"−","-",!0);E(T,z,_e,"⋅","\\cdot",!0);E(T,z,_e,"∘","\\circ",!0);E(T,z,_e,"÷","\\div",!0);E(T,z,_e,"±","\\pm",!0);E(T,z,_e,"×","\\times",!0);E(T,z,_e,"∩","\\cap",!0);E(T,z,_e,"∪","\\cup",!0);E(T,z,_e,"∖","\\setminus",!0);E(T,z,_e,"∧","\\land");E(T,z,_e,"∨","\\lor");E(T,z,_e,"∧","\\wedge",!0);E(T,z,_e,"∨","\\vee",!0);E(T,z,K,"√","\\surd");E(T,z,oa,"⟨","\\langle",!0);E(T,z,oa,"∣","\\lvert");E(T,z,oa,"∥","\\lVert");E(T,z,xr,"?","?");E(T,z,xr,"!","!");E(T,z,xr,"⟩","\\rangle",!0);E(T,z,xr,"∣","\\rvert");E(T,z,xr,"∥","\\rVert");E(T,z,Y,"=","=");E(T,z,Y,":",":");E(T,z,Y,"≈","\\approx",!0);E(T,z,Y,"≅","\\cong",!0);E(T,z,Y,"≥","\\ge");E(T,z,Y,"≥","\\geq",!0);E(T,z,Y,"←","\\gets");E(T,z,Y,">","\\gt",!0);E(T,z,Y,"∈","\\in",!0);E(T,z,Y,"","\\@not");E(T,z,Y,"⊂","\\subset",!0);E(T,z,Y,"⊃","\\supset",!0);E(T,z,Y,"⊆","\\subseteq",!0);E(T,z,Y,"⊇","\\supseteq",!0);E(T,q,Y,"⊈","\\nsubseteq",!0);E(T,q,Y,"⊉","\\nsupseteq",!0);E(T,z,Y,"⊨","\\models");E(T,z,Y,"←","\\leftarrow",!0);E(T,z,Y,"≤","\\le");E(T,z,Y,"≤","\\leq",!0);E(T,z,Y,"<","\\lt",!0);E(T,z,Y,"→","\\rightarrow",!0);E(T,z,Y,"→","\\to");E(T,q,Y,"≱","\\ngeq",!0);E(T,q,Y,"≰","\\nleq",!0);E(T,z,io," ","\\ ");E(T,z,io," ","\\space");E(T,z,io," ","\\nobreakspace");E(ue,z,io," ","\\ ");E(ue,z,io," "," ");E(ue,z,io," ","\\space");E(ue,z,io," ","\\nobreakspace");E(T,z,io,null,"\\nobreak");E(T,z,io,null,"\\allowbreak");E(T,z,Hp,",",",");E(T,z,Hp,";",";");E(T,q,_e,"⊼","\\barwedge",!0);E(T,q,_e,"⊻","\\veebar",!0);E(T,z,_e,"⊙","\\odot",!0);E(T,z,_e,"⊕","\\oplus",!0);E(T,z,_e,"⊗","\\otimes",!0);E(T,z,K,"∂","\\partial",!0);E(T,z,_e,"⊘","\\oslash",!0);E(T,q,_e,"⊚","\\circledcirc",!0);E(T,q,_e,"⊡","\\boxdot",!0);E(T,z,_e,"△","\\bigtriangleup");E(T,z,_e,"▽","\\bigtriangledown");E(T,z,_e,"†","\\dagger");E(T,z,_e,"⋄","\\diamond");E(T,z,_e,"⋆","\\star");E(T,z,_e,"◃","\\triangleleft");E(T,z,_e,"▹","\\triangleright");E(T,z,oa,"{","\\{");E(ue,z,K,"{","\\{");E(ue,z,K,"{","\\textbraceleft");E(T,z,xr,"}","\\}");E(ue,z,K,"}","\\}");E(ue,z,K,"}","\\textbraceright");E(T,z,oa,"{","\\lbrace");E(T,z,xr,"}","\\rbrace");E(T,z,oa,"[","\\lbrack",!0);E(ue,z,K,"[","\\lbrack",!0);E(T,z,xr,"]","\\rbrack",!0);E(ue,z,K,"]","\\rbrack",!0);E(T,z,oa,"(","\\lparen",!0);E(T,z,xr,")","\\rparen",!0);E(ue,z,K,"<","\\textless",!0);E(ue,z,K,">","\\textgreater",!0);E(T,z,oa,"⌊","\\lfloor",!0);E(T,z,xr,"⌋","\\rfloor",!0);E(T,z,oa,"⌈","\\lceil",!0);E(T,z,xr,"⌉","\\rceil",!0);E(T,z,K,"\\","\\backslash");E(T,z,K,"∣","|");E(T,z,K,"∣","\\vert");E(ue,z,K,"|","\\textbar",!0);E(T,z,K,"∥","\\|");E(T,z,K,"∥","\\Vert");E(ue,z,K,"∥","\\textbardbl");E(ue,z,K,"~","\\textasciitilde");E(ue,z,K,"\\","\\textbackslash");E(ue,z,K,"^","\\textasciicircum");E(T,z,Y,"↑","\\uparrow",!0);E(T,z,Y,"⇑","\\Uparrow",!0);E(T,z,Y,"↓","\\downarrow",!0);E(T,z,Y,"⇓","\\Downarrow",!0);E(T,z,Y,"↕","\\updownarrow",!0);E(T,z,Y,"⇕","\\Updownarrow",!0);E(T,z,Sn,"∐","\\coprod");E(T,z,Sn,"⋁","\\bigvee");E(T,z,Sn,"⋀","\\bigwedge");E(T,z,Sn,"⨄","\\biguplus");E(T,z,Sn,"⋂","\\bigcap");E(T,z,Sn,"⋃","\\bigcup");E(T,z,Sn,"∫","\\int");E(T,z,Sn,"∫","\\intop");E(T,z,Sn,"∬","\\iint");E(T,z,Sn,"∭","\\iiint");E(T,z,Sn,"∏","\\prod");E(T,z,Sn,"∑","\\sum");E(T,z,Sn,"⨂","\\bigotimes");E(T,z,Sn,"⨁","\\bigoplus");E(T,z,Sn,"⨀","\\bigodot");E(T,z,Sn,"∮","\\oint");E(T,z,Sn,"∯","\\oiint");E(T,z,Sn,"∰","\\oiiint");E(T,z,Sn,"⨆","\\bigsqcup");E(T,z,Sn,"∫","\\smallint");E(ue,z,lc,"…","\\textellipsis");E(T,z,lc,"…","\\mathellipsis");E(ue,z,lc,"…","\\ldots",!0);E(T,z,lc,"…","\\ldots",!0);E(T,z,lc,"⋯","\\@cdots",!0);E(T,z,lc,"⋱","\\ddots",!0);E(T,z,K,"⋮","\\varvdots");E(ue,z,K,"⋮","\\varvdots");E(T,z,Kt,"ˊ","\\acute");E(T,z,Kt,"ˋ","\\grave");E(T,z,Kt,"¨","\\ddot");E(T,z,Kt,"~","\\tilde");E(T,z,Kt,"ˉ","\\bar");E(T,z,Kt,"˘","\\breve");E(T,z,Kt,"ˇ","\\check");E(T,z,Kt,"^","\\hat");E(T,z,Kt,"⃗","\\vec");E(T,z,Kt,"˙","\\dot");E(T,z,Kt,"˚","\\mathring");E(T,z,Fe,"","\\@imath");E(T,z,Fe,"","\\@jmath");E(T,z,K,"ı","ı");E(T,z,K,"ȷ","ȷ");E(ue,z,K,"ı","\\i",!0);E(ue,z,K,"ȷ","\\j",!0);E(ue,z,K,"ß","\\ss",!0);E(ue,z,K,"æ","\\ae",!0);E(ue,z,K,"œ","\\oe",!0);E(ue,z,K,"ø","\\o",!0);E(ue,z,K,"Æ","\\AE",!0);E(ue,z,K,"Œ","\\OE",!0);E(ue,z,K,"Ø","\\O",!0);E(ue,z,Kt,"ˊ","\\'");E(ue,z,Kt,"ˋ","\\`");E(ue,z,Kt,"ˆ","\\^");E(ue,z,Kt,"˜","\\~");E(ue,z,Kt,"ˉ","\\=");E(ue,z,Kt,"˘","\\u");E(ue,z,Kt,"˙","\\.");E(ue,z,Kt,"¸","\\c");E(ue,z,Kt,"˚","\\r");E(ue,z,Kt,"ˇ","\\v");E(ue,z,Kt,"¨",'\\"');E(ue,z,Kt,"˝","\\H");E(ue,z,Kt,"◯","\\textcircled");var jz={"--":!0,"---":!0,"``":!0,"''":!0};E(ue,z,K,"–","--",!0);E(ue,z,K,"–","\\textendash");E(ue,z,K,"—","---",!0);E(ue,z,K,"—","\\textemdash");E(ue,z,K,"‘","`",!0);E(ue,z,K,"‘","\\textquoteleft");E(ue,z,K,"’","'",!0);E(ue,z,K,"’","\\textquoteright");E(ue,z,K,"“","``",!0);E(ue,z,K,"“","\\textquotedblleft");E(ue,z,K,"”","''",!0);E(ue,z,K,"”","\\textquotedblright");E(T,z,K,"°","\\degree",!0);E(ue,z,K,"°","\\degree");E(ue,z,K,"°","\\textdegree",!0);E(T,z,K,"£","\\pounds");E(T,z,K,"£","\\mathsterling",!0);E(ue,z,K,"£","\\pounds");E(ue,z,K,"£","\\textsterling",!0);E(T,q,K,"✠","\\maltese");E(ue,q,K,"✠","\\maltese");var p6='0123456789/@."';for(var Iy=0;Iy<p6.length;Iy++){var f6=p6.charAt(Iy);E(T,z,K,f6,f6)}var h6='0123456789!@*()-=+";:?/.,';for(var Oy=0;Oy<h6.length;Oy++){var g6=h6.charAt(Oy);E(ue,z,K,g6,g6)}var Xg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Dy=0;Dy<Xg.length;Dy++){var Bf=Xg.charAt(Dy);E(T,z,Fe,Bf,Bf),E(ue,z,K,Bf,Bf)}E(T,q,K,"C","ℂ");E(ue,q,K,"C","ℂ");E(T,q,K,"H","ℍ");E(ue,q,K,"H","ℍ");E(T,q,K,"N","ℕ");E(ue,q,K,"N","ℕ");E(T,q,K,"P","ℙ");E(ue,q,K,"P","ℙ");E(T,q,K,"Q","ℚ");E(ue,q,K,"Q","ℚ");E(T,q,K,"R","ℝ");E(ue,q,K,"R","ℝ");E(T,q,K,"Z","ℤ");E(ue,q,K,"Z","ℤ");E(T,z,Fe,"h","ℎ");E(ue,z,Fe,"h","ℎ");var Ue="";for(var pr=0;pr<Xg.length;pr++){var an=Xg.charAt(pr);Ue=String.fromCharCode(55349,56320+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56372+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56424+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56580+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56684+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56736+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56788+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56840+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56944+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),pr<26&&(Ue=String.fromCharCode(55349,56632+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue),Ue=String.fromCharCode(55349,56476+pr),E(T,z,Fe,an,Ue),E(ue,z,K,an,Ue))}Ue="𝕜";E(T,z,Fe,"k",Ue);E(ue,z,K,"k",Ue);for(var gs=0;gs<10;gs++){var ho=gs.toString();Ue=String.fromCharCode(55349,57294+gs),E(T,z,Fe,ho,Ue),E(ue,z,K,ho,Ue),Ue=String.fromCharCode(55349,57314+gs),E(T,z,Fe,ho,Ue),E(ue,z,K,ho,Ue),Ue=String.fromCharCode(55349,57324+gs),E(T,z,Fe,ho,Ue),E(ue,z,K,ho,Ue),Ue=String.fromCharCode(55349,57334+gs),E(T,z,Fe,ho,Ue),E(ue,z,K,ho,Ue)}var qv="ÐÞþ";for(var Ly=0;Ly<qv.length;Ly++){var Uf=qv.charAt(Ly);E(T,z,Fe,Uf,Uf),E(ue,z,K,Uf,Uf)}var $f=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],m6=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],xfe=(e,t)=>{var n=e.charCodeAt(0),r=e.charCodeAt(1),a=(n-55296)*1024+(r-56320)+65536,i=t==="math"?0:1;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return[$f[o][2],$f[o][i]]}else if(120782<=a&&a<=120831){var s=Math.floor((a-120782)/10);return[m6[s][2],m6[s][i]]}else{if(a===120485||a===120486)return[$f[0][2],$f[0][i]];if(120486<a&&a<120782)return["",""];throw new be("Unsupported character: "+e)}},Sm=function(t,n,r){if(Yt[r][t]){var a=Yt[r][t].replace;a&&(t=a)}return{value:t,metrics:Jw(t,n,r)}},fr=function(t,n,r,a,i){var o=Sm(t,n,r),s=o.metrics;t=o.value;var l;if(s){var u=s.italic;(r==="text"||a&&a.font==="mathit")&&(u=0),l=new na(t,s.height,s.depth,u,s.skew,s.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),l=new na(t,0,0,0,0,0,i);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var c=a.getColor();c&&(l.style.color=c)}return l},eE=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&Sm(t,"Main-Bold",n).metrics?fr(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||Yt[n][t].font==="main"?fr(t,"Main-Regular",n,r,a):fr(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},Sfe=function(t,n,r,a,i){return i!=="textord"&&Sm(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},wm=function(t,n,r){var a=t.mode,i=t.text,o=["mord"],s=a==="math"||a==="text"&&n.font,l=s?n.font:n.fontFamily,u="",c="";if(i.charCodeAt(0)===55349&&([u,c]=xfe(i,a)),u.length>0)return fr(i,u,a,n,o.concat(c));if(l){var p,f;if(l==="boldsymbol"){var h=Sfe(i,a,n,o,r);p=h.fontName,f=[h.fontClass]}else s?(p=Yv[l].fontName,f=[l]):(p=Hf(l,n.fontWeight,n.fontShape),f=[l,n.fontWeight,n.fontShape]);if(Sm(i,p,a).metrics)return fr(i,p,a,n,o.concat(f));if(jz.hasOwnProperty(i)&&p.slice(0,10)==="Typewriter"){for(var g=[],y=0;y<i.length;y++)g.push(fr(i[y],p,a,n,o.concat(f)));return oo(g)}}if(r==="mathord")return fr(i,"Math-Italic",a,n,o.concat(["mathnormal"]));if(r==="textord"){var x=Yt[a][i]&&Yt[a][i].font;if(x==="ams"){var m=Hf("amsrm",n.fontWeight,n.fontShape);return fr(i,m,a,n,o.concat("amsrm",n.fontWeight,n.fontShape))}else if(x==="main"||!x){var v=Hf("textrm",n.fontWeight,n.fontShape);return fr(i,v,a,n,o.concat(n.fontWeight,n.fontShape))}else{var b=Hf(x,n.fontWeight,n.fontShape);return fr(i,b,a,n,o.concat(b,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},wfe=(e,t)=>{if(Ko(e.classes)!==Ko(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},Fz=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof na&&r instanceof na&&wfe(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},tE=function(t){for(var n=0,r=0,a=0,i=0;i<t.children.length;i++){var o=t.children[i];o.height>n&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>a&&(a=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},fe=function(t,n,r,a){var i=new sc(t,n,r,a);return tE(i),i},Qo=(e,t,n,r)=>new sc(e,t,n,r),Ru=function(t,n,r){var a=fe([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=Se(a.height),a.maxFontSize=1,a},Efe=function(t,n,r,a){var i=new xm(t,n,r,a);return tE(i),i},oo=function(t){var n=new oc(t);return tE(n),n},Nu=function(t,n){return t instanceof oc?fe([],[t],n):t},kfe=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,i=a,o=1;o<n.length;o++){var s=-n[o].shift-i-n[o].elem.depth,l=s-(n[o-1].elem.height+n[o-1].elem.depth);i=i+s,r.push({type:"kern",size:l}),r.push(n[o])}return{children:r,depth:a}}var u;if(t.positionType==="top"){for(var c=t.positionData,p=0;p<t.children.length;p++){var f=t.children[p];c-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=c}else if(t.positionType==="bottom")u=-t.positionData;else{var h=t.children[0];if(h.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-h.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-h.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},yt=function(t,n){for(var{children:r,depth:a}=kfe(t),i=0,o=0;o<r.length;o++){var s=r[o];if(s.type==="elem"){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var u=fe(["pstrut"],[]);u.style.height=Se(i);for(var c=[],p=a,f=a,h=a,g=0;g<r.length;g++){var y=r[g];if(y.type==="kern")h+=y.size;else{var x=y.elem,m=y.wrapperClasses||[],v=y.wrapperStyle||{},b=fe(m,[u,x],void 0,v);b.style.top=Se(-i-h-x.depth),y.marginLeft&&(b.style.marginLeft=y.marginLeft),y.marginRight&&(b.style.marginRight=y.marginRight),c.push(b),h+=x.height+x.depth}p=Math.min(p,h),f=Math.max(f,h)}var S=fe(["vlist"],c);S.style.height=Se(f);var C;if(p<0){var k=fe([],[]),R=fe(["vlist"],[k]);R.style.height=Se(-p);var O=fe(["vlist-s"],[new na("​")]);C=[fe(["vlist-r"],[S,O]),fe(["vlist-r"],[R])]}else C=[fe(["vlist-r"],[S])];var N=fe(["vlist-t"],C);return C.length===2&&N.classes.push("vlist-t2"),N.height=f,N.depth=-p,N},Bz=(e,t)=>{var n=fe(["mspace"],[],t),r=tn(e,t);return n.style.marginRight=Se(r),n},Hf=function(t,n,r){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var i;return n==="textbf"&&r==="textit"?i="BoldItalic":n==="textbf"?i="Bold":n==="textit"?i="Italic":i="Regular",a+"-"+i},Yv={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Uz={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},$z=function(t,n){var[r,a,i]=Uz[t],o=new Zo(r),s=new Ji([o],{width:Se(a),height:Se(i),style:"width:"+Se(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Qo(["overlay"],[s],n);return l.height=i,l.style.height=Se(i),l.style.width=Se(a),l},en={number:3,unit:"mu"},ms={number:4,unit:"mu"},Ai={number:5,unit:"mu"},Tfe={mord:{mop:en,mbin:ms,mrel:Ai,minner:en},mop:{mord:en,mop:en,mrel:Ai,minner:en},mbin:{mord:ms,mop:ms,mopen:ms,minner:ms},mrel:{mord:Ai,mop:Ai,mopen:Ai,minner:Ai},mopen:{},mclose:{mop:en,mbin:ms,mrel:Ai,minner:en},mpunct:{mord:en,mop:en,mrel:Ai,mopen:en,mclose:en,mpunct:en,minner:en},minner:{mord:en,mop:en,mbin:ms,mrel:Ai,mopen:en,mpunct:en,minner:en}},Cfe={mord:{mop:en},mop:{mord:en,mop:en},mbin:{},mrel:{},mopen:{},mclose:{mop:en},mpunct:{},minner:{mop:en}},Hz={},Kg={},Zg={};function Ce(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},l=0;l<n.length;++l)Hz[n[l]]=s;t&&(i&&(Kg[t]=i),o&&(Zg[t]=o))}function il(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Ce({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Qg=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},bn=function(t){return t.type==="ordgroup"?t.body:[t]},Afe=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),_fe=new Set(["rightmost","mrel","mclose","mpunct"]),Rfe={display:We.DISPLAY,text:We.TEXT,script:We.SCRIPT,scriptscript:We.SCRIPTSCRIPT},Nfe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ln=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var i=[],o=0;o<t.length;o++){var s=xt(t[o],n);if(s instanceof oc){var l=s.children;i.push(...l)}else i.push(s)}if(Fz(i),!r)return i;var u=n;if(t.length===1){var c=t[0];c.type==="sizing"?u=n.havingSize(c.size):c.type==="styling"&&(u=n.havingStyle(Rfe[c.style]))}var p=fe([a[0]||"leftmost"],[],n),f=fe([a[1]||"rightmost"],[],n),h=r==="root";return Xv(i,(g,y)=>{var x=y.classes[0],m=g.classes[0];x==="mbin"&&_fe.has(m)?y.classes[0]="mord":m==="mbin"&&Afe.has(x)&&(g.classes[0]="mord")},{node:p},f,h),Xv(i,(g,y)=>{var x,m,v=Zv(y),b=Zv(g),S=v&&b?g.hasClass("mtight")?(x=Cfe[v])==null?void 0:x[b]:(m=Tfe[v])==null?void 0:m[b]:null;if(S)return Bz(S,u)},{node:p},f,h),i},Xv=function(t,n,r,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var s=t[o],l=Vz(s);if(l){Xv(l.children,n,r,null,i);continue}var u=!s.hasClass("mspace");if(u){var c=n(s,r.node);c&&(r.insertAfter?r.insertAfter(c):(t.unshift(c),o++))}u?r.node=s:i&&s.hasClass("newline")&&(r.node=fe(["leftmost"])),r.insertAfter=(p=>f=>{t.splice(p+1,0,f),o++})(o)}a&&t.pop()},Vz=function(t){return t instanceof oc||t instanceof xm||t instanceof sc&&t.hasClass("enclosing")?t:null},Kv=function(t,n){var r=Vz(t);if(r){var a=r.children;if(a.length){if(n==="right")return Kv(a[a.length-1],"right");if(n==="left")return Kv(a[0],"left")}}return t},Zv=function(t,n){if(!t)return null;n&&(t=Kv(t,n));var r=t.classes[0];return Nfe[r]||null},Jd=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return fe(n.concat(r))},xt=function(t,n,r){if(!t)return fe();if(Kg[t.type]){var a=Kg[t.type](t,n);if(r&&n.size!==r.size){a=fe(n.sizingClasses(r),[a],n);var i=n.sizeMultiplier/r.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new be("Got group of unknown type: '"+t.type+"'")};function Vf(e,t){var n=fe(["base"],e,t),r=fe(["strut"]);return r.style.height=Se(n.height+n.depth),n.depth&&(r.style.verticalAlign=Se(-n.depth)),n.children.unshift(r),n}function Qv(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Ln(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var i=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var l=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,o.push(r[s]),r[s].hasClass("nobreak")&&(l=!0);l||(i.push(Vf(o,t)),o=[])}else r[s].hasClass("newline")&&(o.pop(),o.length>0&&(i.push(Vf(o,t)),o=[]),i.push(r[s]));o.length>0&&i.push(Vf(o,t));var u;n?(u=Vf(Ln(n,t,!0),t),u.classes=["tag"],i.push(u)):a&&i.push(a);var c=fe(["katex-html"],i);if(c.setAttribute("aria-hidden","true"),u){var p=u.children[0];p.style.height=Se(c.height+c.depth),c.depth&&(p.style.verticalAlign=Se(-c.depth))}return c}function Gz(e){return new oc(e)}class ye{constructor(t,n,r){this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Ko(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof yn&&this.children[r+1]instanceof yn){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof yn;)a+=this.children[++r].toText();t.appendChild(new yn(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=or(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+or(Ko(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class yn{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return or(this.toText())}toText(){return this.text}}class Wz{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Se(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Se(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Ife=new Set(["\\imath","\\jmath"]),Ofe=new Set(["mrow","mtable"]),ka=function(t,n,r){return Yt[n][t]&&Yt[n][t].replace&&t.charCodeAt(0)!==55349&&!(jz.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Yt[n][t].replace),new yn(t)},nE=function(t){return t.length===1?t[0]:new ye("mrow",t)},rE=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var a=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var i=t.text;if(Ife.has(i))return null;if(Yt[a][i]){var o=Yt[a][i].replace;o&&(i=o)}var s=Yv[r].fontName;return Jw(i,s,a)?Yv[r].variant:null};function My(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof yn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof yn&&n.text===","}else return!1}var sa=function(t,n,r){if(t.length===1){var a=zt(t[0],n);return r&&a instanceof ye&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],o,s=0;s<t.length;s++){var l=zt(t[s],n);if(l instanceof ye&&o instanceof ye){if(l.type==="mtext"&&o.type==="mtext"&&l.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...l.children);continue}else if(l.type==="mn"&&o.type==="mn"){o.children.push(...l.children);continue}else if(My(l)&&o.type==="mn"){o.children.push(...l.children);continue}else if(l.type==="mn"&&My(o))l.children=[...o.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(o.type==="mn"||My(o))){var u=l.children[0];u instanceof ye&&u.type==="mn"&&(u.children=[...o.children,...u.children],i.pop())}else if(o.type==="mi"&&o.children.length===1){var c=o.children[0];if(c instanceof yn&&c.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var p=l.children[0];p instanceof yn&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),i.pop())}}}i.push(l),o=l}return i},Jo=function(t,n,r){return nE(sa(t,n,r))},zt=function(t,n){if(!t)return new ye("mrow");if(Zg[t.type]){var r=Zg[t.type](t,n);return r}else throw new be("Got group of unknown type: '"+t.type+"'")};function b6(e,t,n,r,a){var i=sa(e,n),o;i.length===1&&i[0]instanceof ye&&Ofe.has(i[0].type)?o=i[0]:o=new ye("mrow",i);var s=new ye("annotation",[new yn(t)]);s.setAttribute("encoding","application/x-tex");var l=new ye("semantics",[o,s]),u=new ye("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var c=a?"katex":"katex-mathml";return fe([c],[u])}var Dfe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],y6=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],v6=function(t,n){return n.size<2?t:Dfe[t-1][n.size-1]};class Ii{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||Ii.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=y6[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new Ii(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:v6(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:y6[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=v6(Ii.BASESIZE,t);return this.size===n&&this.textSize===Ii.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ii.BASESIZE?["sizing","reset-size"+this.size,"size"+Ii.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=bfe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ii.BASESIZE=6;var qz=function(t){return new Ii({style:t.displayMode?We.DISPLAY:We.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Yz=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=fe(r,[t])}return t},Lfe=function(t,n,r){var a=qz(r),i;if(r.output==="mathml")return b6(t,n,a,r.displayMode,!0);if(r.output==="html"){var o=Qv(t,a);i=fe(["katex"],[o])}else{var s=b6(t,n,a,r.displayMode,!1),l=Qv(t,a);i=fe(["katex"],[s,l])}return Yz(i,r)},Mfe=function(t,n,r){var a=qz(r),i=Qv(t,a),o=fe(["katex"],[i]);return Yz(o,r)},zfe={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Em=function(t){var n=new ye("mo",[new yn(zfe[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Pfe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},jfe=new Set(["widehat","widecheck","widetilde","utilde"]),km=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(jfe.has(l)){var u=t,c=u.base.type==="ordgroup"?u.base.body.length:1,p,f,h;if(c>5)l==="widehat"||l==="widecheck"?(p=420,s=2364,h=.42,f=l+"4"):(p=312,s=2340,h=.34,f="tilde4");else{var g=[1,1,2,2,3,3][c];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][g],p=[0,239,300,360,420][g],h=[0,.24,.3,.3,.36,.42][g],f=l+g):(s=[0,600,1033,2339,2340][g],p=[0,260,286,306,312][g],h=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var y=new Zo(f),x=new Ji([y],{width:"100%",height:Se(h),viewBox:"0 0 "+s+" "+p,preserveAspectRatio:"none"});return{span:Qo([],[x],n),minWidth:0,height:h}}else{var m=[],v=Pfe[l],[b,S,C]=v,k=C/1e3,R=b.length,O,N;if(R===1){var _=v[3];O=["hide-tail"],N=[_]}else if(R===2)O=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else if(R===3)O=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+R+" children.");for(var L=0;L<R;L++){var I=new Zo(b[L]),P=new Ji([I],{width:"400em",height:Se(k),viewBox:"0 0 "+s+" "+C,preserveAspectRatio:N[L]+" slice"}),M=Qo([O[L]],[P],n);if(R===1)return{span:M,minWidth:S,height:k};M.style.height=Se(k),m.push(M)}return{span:fe(["stretchy"],m,n),minWidth:S,height:k}}}var{span:a,minWidth:i,height:o}=r();return a.height=o,a.style.height=Se(o),i>0&&(a.style.minWidth=Se(i)),a},Ffe=function(t,n,r,a,i){var o,s=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(o=fe(["stretchy",n],[],i),n==="fbox"){var l=i.color&&i.getColor();l&&(o.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new Wv({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new Wv({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Ji(u,{width:"100%",height:Se(s)});o=Qo([],[c],i)}return o.height=s,o.style.height=Se(s),o};function Je(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Tm(e){var t=Cm(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Cm(e){return e&&(e.type==="atom"||vfe.hasOwnProperty(e.type))?e:null}var Xz=e=>{if(e instanceof na)return e;if(gfe(e)&&e.children.length===1)return Xz(e.children[0])},aE=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=Je(e.base,"accent"),n=r.base,e.base=n,a=hfe(xt(e,t)),e.base=r):(r=Je(e,"accent"),n=r.base);var i=xt(n,t.havingCrampedStyle()),o=r.isShifty&&ao(n),s=0;if(o){var l,u;s=(l=(u=Xz(i))==null?void 0:u.skew)!=null?l:0}var c=r.label==="\\c",p=c?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=km(r,t),f=yt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Se(2*s)+")",marginLeft:Se(2*s)}:void 0}]});else{var h,g;r.label==="\\vec"?(h=$z("vec",t),g=Uz.vec[1]):(h=wm({mode:r.mode,text:r.label},t,"textord"),h=ffe(h),h.italic=0,g=h.width,c&&(p+=h.depth)),f=fe(["accent-body"],[h]);var y=r.label==="\\textcircled";y&&(f.classes.push("accent-full"),p=i.height);var x=s;y||(x-=g/2),f.style.left=Se(x),r.label==="\\textcircled"&&(f.style.top=".2em"),f=yt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-p},{type:"elem",elem:f}]})}var m=fe(["mord","accent"],[f],t);return a?(a.children[0]=m,a.height=Math.max(m.height,a.height),a.classes[0]="mord",a):m},Kz=(e,t)=>{var n=e.isStretchy?Em(e.label):new ye("mo",[ka(e.label,e.mode)]),r=new ye("mover",[zt(e.base,t),n]);return r.setAttribute("accent","true"),r},Bfe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Qg(t[0]),r=!Bfe.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:aE,mathmlBuilder:Kz});Ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:aE,mathmlBuilder:Kz});Ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=xt(e.base,t),r=km(e,t),a=e.label==="\\utilde"?.12:0,i=yt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]});return fe(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=Em(e.label),r=new ye("munder",[zt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Gf=e=>{var t=new ye("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=Nu(xt(e.body,r,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=Nu(xt(e.below,r,t),t),o.classes.push(i+"-arrow-pad"));var s=km(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(u-=a.depth);var c;if(o){var p=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;c=yt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:o,shift:p}]})}else c=yt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l}]});return c.children[0].children[0].children[1].classes.push("svg-align"),fe(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=Em(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=Gf(zt(e.body,t));if(e.below){var i=Gf(zt(e.below,t));r=new ye("munderover",[n,i,a])}else r=new ye("mover",[n,a])}else if(e.below){var o=Gf(zt(e.below,t));r=new ye("munder",[n,o])}else r=Gf(),r=new ye("mover",[n,r]);return r}});function Zz(e,t){var n=Ln(e.body,t,!0);return fe([e.mclass],n,t)}function Qz(e,t){var n,r=sa(e.body,t);return e.mclass==="minner"?n=new ye("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ye("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ye("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:bn(a),isCharacterBox:ao(a)}},htmlBuilder:Zz,mathmlBuilder:Qz});var Am=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Am(t[0]),body:bn(t[1]),isCharacterBox:ao(t[1])}}});Ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],i=t[0],o;r!=="\\stackrel"?o=Am(a):o="mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:bn(a)},l={type:"supsub",mode:i.mode,base:s,sup:r==="\\underset"?null:i,sub:r==="\\underset"?i:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:ao(l)}},htmlBuilder:Zz,mathmlBuilder:Qz});Ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Am(t[0]),body:bn(t[0])}},htmlBuilder(e,t){var n=Ln(e.body,t,!0),r=fe([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=sa(e.body,t),r=new ye("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Ufe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},x6=()=>({type:"styling",body:[],mode:"math",style:"display"}),S6=e=>e.type==="textord"&&e.text==="@",$fe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Hfe(e,t,n){var r=Ufe[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[i],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[a,o,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Vfe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new be("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],i=0;i<t.length;i++){for(var o=t[i],s=x6(),l=0;l<o.length;l++)if(!S6(o[l]))s.body.push(o[l]);else{r.push(s),l+=1;var u=Tm(o[l]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var p=0;p<2;p++){for(var f=!0,h=l+1;h<o.length;h++){if($fe(o[h],u)){f=!1,l=h;break}if(S6(o[h]))throw new be("Missing a "+u+" character to complete a CD arrow.",o[h]);c[p].body.push(o[h])}if(f)throw new be("Missing a "+u+" character to complete a CD arrow.",o[l])}else throw new be('Expected one of "<>AV=|." after @',o[l]);var g=Hfe(u,c,e),y={type:"styling",body:[g],mode:"math",style:"display"};r.push(y),s=x6()}i%2===0?r.push(s):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var x=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:x,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Nu(xt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Se(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ye("mrow",[zt(e.label,t)]);return n=new ye("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ye("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Nu(xt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ye("mrow",[zt(e.fragment,t)])}});Ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Je(t[0],"ordgroup"),a=r.body,i="",o=0;o<a.length;o++){var s=Je(a[o],"textord");i+=s.text}var l=parseInt(i),u;if(isNaN(l))throw new be("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new be("\\@char with invalid code point "+i);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var Jz=(e,t)=>{var n=Ln(e.body,t.withColor(e.color),!1);return oo(n)},eP=(e,t)=>{var n=sa(e.body,t.withColor(e.color)),r=new ye("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Je(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:bn(a)}},htmlBuilder:Jz,mathmlBuilder:eP});Ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=Je(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:i}},htmlBuilder:Jz,mathmlBuilder:eP});Ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:a&&Je(a,"size").value}},htmlBuilder(e,t){var n=fe(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Se(tn(e.size,t)))),n},mathmlBuilder(e,t){var n=new ye("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Se(tn(e.size,t)))),n}});var Jv={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},tP=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new be("Expected a control sequence",e);return t},Gfe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},nP=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};Ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Jv[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Jv[r.text]),Je(t.parseFunction(),"internal");throw new be("Invalid token after macro prefix",r)}});Ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new be("Expected a control sequence",r);for(var i=0,o,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),s[i].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new be('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==i+1)throw new be('Argument number "'+r.text+'" out of order');i++,s.push([])}else{if(r.text==="EOF")throw new be("Expected a macro definition");s[i].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(a,{tokens:l,numArgs:i,delimiters:s},n===Jv[n]),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=tP(t.gullet.popToken());t.gullet.consumeSpaces();var a=Gfe(t);return nP(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=tP(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return nP(t,r,i,n==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Kc=function(t,n,r){var a=Yt.math[t]&&Yt.math[t].replace,i=Jw(a||t,n,r);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return i},iE=function(t,n,r,a){var i=r.havingBaseStyle(n),o=fe(a.concat(i.sizingClasses(r)),[t],r),s=i.sizeMultiplier/r.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=i.sizeMultiplier,o},rP=function(t,n,r){var a=n.havingBaseStyle(r),i=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Se(i),t.height-=i,t.depth+=i},Wfe=function(t,n,r,a,i,o){var s=fr(t,"Main-Regular",i,a),l=iE(s,n,a,o);return rP(l,a,n),l},qfe=function(t,n,r,a){return fr(t,"Size"+n+"-Regular",r,a)},aP=function(t,n,r,a,i,o){var s=qfe(t,n,i,a),l=iE(fe(["delimsizing","size"+n],[s],a),We.TEXT,a,o);return r&&rP(l,a,We.TEXT),l},zy=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=fe(["delimsizinginner",a],[fe([],[fr(t,n,r)])]);return{type:"elem",elem:i}},Py=function(t,n,r){var a=Qa["Size4-Regular"][t.charCodeAt(0)]?Qa["Size4-Regular"][t.charCodeAt(0)][4]:Qa["Size1-Regular"][t.charCodeAt(0)][4],i=new Zo("inner",sfe(t,Math.round(1e3*n))),o=new Ji([i],{width:Se(a),height:Se(n),style:"width:"+Se(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=Qo([],[o],r);return s.height=n,s.style.height=Se(n),s.style.width=Se(a),{type:"elem",elem:s}},ex=.008,Wf={type:"kern",size:-1*ex},Yfe=new Set(["|","\\lvert","\\rvert","\\vert"]),Xfe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),iP=function(t,n,r,a,i,o){var s,l,u,c,p="",f=0;s=u=c=t,l=null;var h="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?s=u="⏐":t==="\\Downarrow"?s=u="‖":t==="\\updownarrow"?(s="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="‖",c="\\Downarrow"):Yfe.has(t)?(u="∣",p="vert",f=333):Xfe.has(t)?(u="∥",p="doublevert",f=556):t==="["||t==="\\lbrack"?(s="⎡",u="⎢",c="⎣",h="Size4-Regular",p="lbrack",f=667):t==="]"||t==="\\rbrack"?(s="⎤",u="⎥",c="⎦",h="Size4-Regular",p="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(u=s="⎢",c="⎣",h="Size4-Regular",p="lfloor",f=667):t==="\\lceil"||t==="⌈"?(s="⎡",u=c="⎢",h="Size4-Regular",p="lceil",f=667):t==="\\rfloor"||t==="⌋"?(u=s="⎥",c="⎦",h="Size4-Regular",p="rfloor",f=667):t==="\\rceil"||t==="⌉"?(s="⎤",u=c="⎥",h="Size4-Regular",p="rceil",f=667):t==="("||t==="\\lparen"?(s="⎛",u="⎜",c="⎝",h="Size4-Regular",p="lparen",f=875):t===")"||t==="\\rparen"?(s="⎞",u="⎟",c="⎠",h="Size4-Regular",p="rparen",f=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",c="⎩",u="⎪",h="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",c="⎭",u="⎪",h="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",c="⎩",u="⎪",h="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",c="⎭",u="⎪",h="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",c="⎭",u="⎪",h="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",c="⎩",u="⎪",h="Size4-Regular");var g=Kc(s,h,i),y=g.height+g.depth,x=Kc(u,h,i),m=x.height+x.depth,v=Kc(c,h,i),b=v.height+v.depth,S=0,C=1;if(l!==null){var k=Kc(l,h,i);S=k.height+k.depth,C=2}var R=y+b+S,O=Math.max(0,Math.ceil((n-R)/(C*m))),N=R+O*C*m,_=a.fontMetrics().axisHeight;r&&(_*=a.sizeMultiplier);var L=N/2-_,I=[];if(p.length>0){var P=N-y-b,M=Math.round(N*1e3),F=lfe(p,Math.round(P*1e3)),A=new Zo(p,F),j=Se(f/1e3),B=Se(M/1e3),V=new Ji([A],{width:j,height:B,viewBox:"0 0 "+f+" "+M}),D=Qo([],[V],a);D.height=M/1e3,D.style.width=j,D.style.height=B,I.push({type:"elem",elem:D})}else{if(I.push(zy(c,h,i)),I.push(Wf),l===null){var Z=N-y-b+2*ex;I.push(Py(u,Z,a))}else{var J=(N-y-b-S)/2+2*ex;I.push(Py(u,J,a)),I.push(Wf),I.push(zy(l,h,i)),I.push(Wf),I.push(Py(u,J,a))}I.push(Wf),I.push(zy(s,h,i))}var H=a.havingBaseStyle(We.TEXT),se=yt({positionType:"bottom",positionData:L,children:I});return iE(fe(["delimsizing","mult"],[se],H),We.TEXT,a,o)},jy=80,Fy=.08,By=function(t,n,r,a,i){var o=ofe(t,a,r),s=new Zo(t,o),l=new Ji([s],{width:"400em",height:Se(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Qo(["hide-tail"],[l],i)},Kfe=function(t,n){var r=n.havingBaseSizing(),a=cP("\\surd",t*r.sizeMultiplier,uP,r),i=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,u=0,c=0,p;return a.type==="small"?(c=1e3+1e3*o+jy,t<1?i=1:t<1.4&&(i=.7),l=(1+o+Fy)/i,u=(1+o)/i,s=By("sqrtMain",l,c,o,n),s.style.minWidth="0.853em",p=.833/i):a.type==="large"?(c=(1e3+jy)*Sd[a.size],u=(Sd[a.size]+o)/i,l=(Sd[a.size]+o+Fy)/i,s=By("sqrtSize"+a.size,l,c,o,n),s.style.minWidth="1.02em",p=1/i):(l=t+o+Fy,u=t+o,c=Math.floor(1e3*t+o)+jy,s=By("sqrtTall",l,c,o,n),s.style.minWidth="0.742em",p=1.056),s.height=u,s.style.height=Se(l),{span:s,advanceWidth:p,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*i}},oP=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Zfe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),sP=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Sd=[0,1.2,1.8,2.4,3],lP=function(t,n,r,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),oP.has(t)||sP.has(t))return aP(t,n,!1,r,a,i);if(Zfe.has(t))return iP(t,Sd[n],!1,r,a,i);throw new be("Illegal delimiter: '"+t+"'")},Qfe=[{type:"small",style:We.SCRIPTSCRIPT},{type:"small",style:We.SCRIPT},{type:"small",style:We.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Jfe=[{type:"small",style:We.SCRIPTSCRIPT},{type:"small",style:We.SCRIPT},{type:"small",style:We.TEXT},{type:"stack"}],uP=[{type:"small",style:We.SCRIPTSCRIPT},{type:"small",style:We.SCRIPT},{type:"small",style:We.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ehe=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},cP=function(t,n,r,a){for(var i=Math.min(2,3-a.style.size),o=i;o<r.length;o++){var s=r[o];if(s.type==="stack")break;var l=Kc(t,ehe(s),"math"),u=l.height+l.depth;if(s.type==="small"){var c=a.havingBaseStyle(s.style);u*=c.sizeMultiplier}if(u>n)return s}return r[r.length-1]},tx=function(t,n,r,a,i,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;sP.has(t)?s=Qfe:oP.has(t)?s=uP:s=Jfe;var l=cP(t,n,s,a);return l.type==="small"?Wfe(t,l.style,r,a,i,o):l.type==="large"?aP(t,l.size,r,a,i,o):iP(t,n,r,a,i,o)},Uy=function(t,n,r,a,i,o){var s=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,c=Math.max(n-s,r+s),p=Math.max(c/500*l,2*c-u);return tx(t,p,!0,a,i,o)},w6={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},the=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function _m(e,t){var n=Cm(e);if(n&&the.has(n.text))return n;throw n?new be("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new be("Invalid delimiter type '"+e.type+"'",e)}Ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=_m(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:w6[e.funcName].size,mclass:w6[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?fe([e.mclass]):lP(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ka(e.delim,e.mode));var n=new ye("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Se(Sd[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function E6(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new be("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:_m(t[0],e).text,color:n}}});Ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_m(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=Je(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{E6(e);for(var n=Ln(e.body,t,!0,["mopen","mclose"]),r=0,a=0,i=!1,o=0;o<n.length;o++)n[o].isMiddle?i=!0:(r=Math.max(n[o].height,r),a=Math.max(n[o].depth,a));r*=t.sizeMultiplier,a*=t.sizeMultiplier;var s;if(e.left==="."?s=Jd(t,["mopen"]):s=Uy(e.left,r,a,t,e.mode,["mopen"]),n.unshift(s),i)for(var l=1;l<n.length;l++){var u=n[l],c=u.isMiddle;c&&(n[l]=Uy(c.delim,r,a,c.options,e.mode,[]))}var p;if(e.right===".")p=Jd(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;p=Uy(e.right,r,a,f,e.mode,["mclose"])}return n.push(p),fe(["minner"],n,t)},mathmlBuilder:(e,t)=>{E6(e);var n=sa(e.body,t);if(e.left!=="."){var r=new ye("mo",[ka(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new ye("mo",[ka(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return nE(n)}});Ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_m(t[0],e);if(!e.parser.leftrightDepth)throw new be("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Jd(t,[]);else{n=lP(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?ka("|","text"):ka(e.delim,e.mode),r=new ye("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Rm=(e,t)=>{var n=Nu(xt(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,i,o=0,s=ao(e.body);if(r==="sout")i=fe(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=tn({number:.6,unit:"pt"},t),u=tn({number:.35,unit:"ex"},t),c=t.havingBaseSizing();a=a/c.sizeMultiplier;var p=n.height+n.depth+l+u;n.style.paddingLeft=Se(p/2+l);var f=Math.floor(1e3*p*a),h=afe(f),g=new Ji([new Zo("phase",h)],{width:"400em",height:Se(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=Qo(["hide-tail"],[g],t),i.style.height=Se(p),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var y=0,x=0,m=0;/box/.test(r)?(m=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(r==="colorbox"?0:m),x=y):r==="angl"?(m=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*m,x=Math.max(0,.25-n.depth)):(y=s?.2:0,x=y),i=Ffe(n,r,y,x,t),/fbox|boxed|fcolorbox/.test(r)?(i.style.borderStyle="solid",i.style.borderWidth=Se(m)):r==="angl"&&m!==.049&&(i.style.borderTopWidth=Se(m),i.style.borderRightWidth=Se(m)),o=n.depth+x,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=yt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:o},{type:"elem",elem:n,shift:0}]});else{var b=/cancel|phase/.test(r)?["svg-align"]:[];v=yt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:i,shift:o,wrapperClasses:b}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?fe(["mord","cancel-lap"],[v],t):fe(["mord"],[v],t)},Nm=(e,t)=>{var n=0,r=new ye(e.label.includes("colorbox")?"mpadded":"menclose",[zt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+Se(a)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=Je(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:Rm,mathmlBuilder:Nm});Ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=Je(t[0],"color-token").color,o=Je(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:Rm,mathmlBuilder:Nm});Ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Rm,mathmlBuilder:Nm});Ce({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Rm,mathmlBuilder:Nm});Ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var dP={};function mi(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<n.length;++l)dP[n[l]]=s;i&&(Kg[t]=i),o&&(Zg[t]=o)}var pP={};function U(e,t){pP[e]=t}class _r{constructor(t,n,r){this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new _r(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}let Ma=class fP{constructor(t,n){this.text=t,this.loc=n}range(t,n){return new fP(n,_r.range(this,t))}};function k6(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var Im=e=>{var t=e.parser.settings;if(!t.displayMode)throw new be("{"+e.envName+"} can be used only in display mode.")},nhe=new Set(["gather","gather*"]);function oE(e){if(!e.includes("ed"))return!e.includes("*")}function os(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:i,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:p,leqno:f}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(h==null)o=1;else if(o=parseFloat(h),!o||o<0)throw new be("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var g=[],y=[g],x=[],m=[],v=l!=null?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function S(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new Ma("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(b(),m.push(k6(e));;){var C=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var k={type:"ordgroup",mode:e.mode,body:C};n&&(k={type:"styling",mode:e.mode,style:n,body:[k]}),g.push(k);var R=e.fetch().text;if(R==="&"){if(p&&g.length===p){if(u||s)throw new be("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(R==="\\end"){S(),g.length===1&&k.type==="styling"&&k.body.length===1&&k.body[0].type==="ordgroup"&&k.body[0].body.length===0&&(y.length>1||!c)&&y.pop(),m.length<y.length+1&&m.push([]);break}else if(R==="\\\\"){e.consume();var O=void 0;e.gullet.future().text!==" "&&(O=e.parseSizeGroup(!0)),x.push(O?O.value:null),S(),m.push(k6(e)),g=[],y.push(g),b()}else throw new be("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:o,body:y,cols:i,rowGaps:x,hskipBeforeAndAfter:r,hLinesBeforeRow:m,colSeparationType:s,tags:v,leqno:f}}function sE(e){return e.slice(0,1)==="d"?"display":"text"}var bi=function(t,n){var r,a,i=t.body.length,o=t.hLinesBeforeRow,s=0,l=new Array(i),u=[],c=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),p=1/n.fontMetrics().ptPerEm,f=5*p;if(t.colSeparationType&&t.colSeparationType==="small"){var h=n.havingStyle(We.SCRIPT).sizeMultiplier;f=.2778*(h/n.sizeMultiplier)}var g=t.colSeparationType==="CD"?tn({number:3,unit:"ex"},n):12*p,y=3*p,x=t.arraystretch*g,m=.7*x,v=.3*x,b=0;function S(Ie){for(var je=0;je<Ie.length;++je)je>0&&(b+=.25),u.push({pos:b,isDashed:Ie[je]})}for(S(o[0]),r=0;r<t.body.length;++r){var C=t.body[r],k=m,R=v;s<C.length&&(s=C.length);var O=new Array(C.length);for(a=0;a<C.length;++a){var N=xt(C[a],n);R<N.depth&&(R=N.depth),k<N.height&&(k=N.height),O[a]=N}var _=t.rowGaps[r],L=0;_&&(L=tn(_,n),L>0&&(L+=v,R<L&&(R=L),L=0)),t.addJot&&r<t.body.length-1&&(R+=y),O.height=k,O.depth=R,b+=k,O.pos=b,b+=R+L,l[r]=O,S(o[r+1])}var I=b/2+n.fontMetrics().axisHeight,P=t.cols||[],M=[],F,A,j=[];if(t.tags&&t.tags.some(Ie=>Ie))for(r=0;r<i;++r){var B=l[r],V=B.pos-I,D=t.tags[r],Z=void 0;D===!0?Z=fe(["eqn-num"],[],n):D===!1?Z=fe([],[],n):Z=fe([],Ln(D,n,!0),n),Z.depth=B.depth,Z.height=B.height,j.push({type:"elem",elem:Z,shift:V})}for(a=0,A=0;a<s||A<P.length;++a,++A){for(var J,H=P[A],se=!0;((we=H)==null?void 0:we.type)==="separator";){var we;if(se||(F=fe(["arraycolsep"],[]),F.style.width=Se(n.fontMetrics().doubleRuleSep),M.push(F)),H.separator==="|"||H.separator===":"){var xe=H.separator==="|"?"solid":"dashed",pe=fe(["vertical-separator"],[],n);pe.style.height=Se(b),pe.style.borderRightWidth=Se(c),pe.style.borderRightStyle=xe,pe.style.margin="0 "+Se(-c/2);var X=b-I;X&&(pe.style.verticalAlign=Se(-X)),M.push(pe)}else throw new be("Invalid separator type: "+H.separator);A++,H=P[A],se=!1}if(!(a>=s)){var te=void 0;if(a>0||t.hskipBeforeAndAfter){var ie,he;te=(ie=(he=H)==null?void 0:he.pregap)!=null?ie:f,te!==0&&(F=fe(["arraycolsep"],[]),F.style.width=Se(te),M.push(F))}var le=[];for(r=0;r<i;++r){var ce=l[r],Re=ce[a];if(Re){var Be=ce.pos-I;Re.depth=ce.depth,Re.height=ce.height,le.push({type:"elem",elem:Re,shift:Be})}}var De=yt({positionType:"individualShift",children:le}),Ke=fe(["col-align-"+(((J=H)==null?void 0:J.align)||"c")],[De]);if(M.push(Ke),a<s-1||t.hskipBeforeAndAfter){var Rt,Nt;te=(Rt=(Nt=H)==null?void 0:Nt.postgap)!=null?Rt:f,te!==0&&(F=fe(["arraycolsep"],[]),F.style.width=Se(te),M.push(F))}}}var It=fe(["mtable"],M);if(u.length>0){for(var zn=Ru("hline",n,c),En=Ru("hdashline",n,c),ln=[{type:"elem",elem:It,shift:0}];u.length>0;){var kn=u.pop(),Tn=kn.pos-I;kn.isDashed?ln.push({type:"elem",elem:En,shift:Tn}):ln.push({type:"elem",elem:zn,shift:Tn})}It=yt({positionType:"individualShift",children:ln})}if(j.length===0)return fe(["mord"],[It],n);var re=yt({positionType:"individualShift",children:j}),me=fe(["tag"],[re],n);return oo([It,me])},rhe={c:"center ",l:"left ",r:"right "},yi=function(t,n){for(var r=[],a=new ye("mtd",[],["mtr-glue"]),i=new ye("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var s=t.body[o],l=[],u=0;u<s.length;u++)l.push(new ye("mtd",[zt(s[u],n)]));t.tags&&t.tags[o]&&(l.unshift(a),l.push(a),t.leqno?l.unshift(i):l.push(i)),r.push(new ye("mtr",l))}var c=new ye("mtable",r),p=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",Se(p));var f="",h="";if(t.cols&&t.cols.length>0){var g=t.cols,y="",x=!1,m=0,v=g.length;g[0].type==="separator"&&(f+="top ",m=1),g[g.length-1].type==="separator"&&(f+="bottom ",v-=1);for(var b=m;b<v;b++){var S=g[b];S.type==="align"?(h+=rhe[S.align],x&&(y+="none "),x=!0):S.type==="separator"&&x&&(y+=S.separator==="|"?"solid ":"dashed ",x=!1)}c.setAttribute("columnalign",h.trim()),/[sd]/.test(y)&&c.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var C=t.cols||[],k="",R=1;R<C.length;R++)k+=R%2?"0em ":"1em ";c.setAttribute("columnspacing",k.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var O="",N=t.hLinesBeforeRow;f+=N[0].length>0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var _=1;_<N.length-1;_++)O+=N[_].length===0?"none ":N[_][0]?"dashed ":"solid ";return/[sd]/.test(O)&&c.setAttribute("rowlines",O.trim()),f!==""&&(c=new ye("menclose",[c]),c.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(c=new ye("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},hP=function(t,n){t.envName.includes("ed")||Im(t);var r=[],a=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",o=os(t.parser,{cols:r,addJot:!0,autoTag:i?void 0:oE(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",p=0;p<n[0].body.length;p++){var f=Je(n[0].body[p],"textord");c+=f.text}s=Number(c),l=s*2}var h=!l;o.body.forEach(function(m){for(var v=1;v<m.length;v+=2){var b=Je(m[v],"styling"),S=Je(b.body[0],"ordgroup");S.body.unshift(u)}if(h)l<m.length&&(l=m.length);else{var C=m.length/2;if(s<C)throw new be("Too many math in a row: "+("expected "+s+", but got "+C),m[0])}});for(var g=0;g<l;++g){var y="r",x=0;g%2===1?y="l":g>0&&h&&(x=1),r[g]={type:"align",align:y,pregap:x,postgap:0}}return o.colSeparationType=h?"align":"alignat",o};mi({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Cm(t[0]),r=n?[t[0]]:Je(t[0],"ordgroup").body,a=r.map(function(o){var s=Tm(o),l=s.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new be("Unknown column alignment: "+l,o)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return os(e.parser,i,sE(e.envName))},htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,!"lcr".includes(n))throw new be("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var i=os(e.parser,r,sE(e.envName)),o=Math.max(0,...i.body.map(s=>s.length));return i.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=os(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Cm(t[0]),r=n?[t[0]]:Je(t[0],"ordgroup").body,a=r.map(function(s){var l=Tm(s),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new be("Unknown column alignment: "+u,s)});if(a.length>1)throw new be("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},o=os(e.parser,i,"script");if(o.body.length>0&&o.body[0].length>1)throw new be("{subarray} can contain only one column");return o},htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=os(e.parser,t,sE(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:hP,htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){nhe.has(e.envName)&&Im(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:oE(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return os(e.parser,t,"display")},htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:hP,htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Im(e);var t={autoTag:oE(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return os(e.parser,t,"display")},htmlBuilder:bi,mathmlBuilder:yi});mi({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Im(e),Vfe(e.parser)},htmlBuilder:bi,mathmlBuilder:yi});U("\\nonumber","\\gdef\\@eqnsw{0}");U("\\notag","\\nonumber");Ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new be(e.funcName+" valid only within array environment")}});var T6=dP;Ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new be("Invalid environment name",a);for(var i="",o=0;o<a.body.length;++o)i+=Je(a.body[o],"textord").text;if(r==="\\begin"){if(!T6.hasOwnProperty(i))throw new be("No such environment: "+i,a);var s=T6[i],{args:l,optArgs:u}=n.parseArguments("\\begin{"+i+"}",s),c={mode:n.mode,envName:i,parser:n},p=s.handler(c,l,u);n.expect("\\end",!1);var f=n.nextToken,h=Je(n.parseFunction(),"environment");if(h.name!==i)throw new be("Mismatch: \\begin{"+i+"} matched by \\end{"+h.name+"}",f);return p}return{type:"environment",mode:n.mode,name:i,nameGroup:a}}});var gP=(e,t)=>{var n=e.font,r=t.withFont(n);return xt(e.body,r)},mP=(e,t)=>{var n=e.font,r=t.withFont(n);return zt(e.body,r)},C6={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=Qg(t[0]),i=r;return i in C6&&(i=C6[i]),{type:"font",mode:n.mode,font:i.slice(1),body:a}},htmlBuilder:gP,mathmlBuilder:mP});Ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:Am(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:ao(r)}}});Ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:i}=n,o=n.parseExpression(!0,a),s="math"+r.slice(1);return{type:"font",mode:i,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:gP,mathmlBuilder:mP});var ahe=(e,t)=>{var n=t.style,r=n.fracNum(),a=n.fracDen(),i;i=t.havingStyle(r);var o=xt(e.numer,i,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}i=t.havingStyle(a);var u=xt(e.denom,i,t),c,p,f;e.hasBarLine?(e.barSize?(p=tn(e.barSize,t),c=Ru("frac-line",t,p)):c=Ru("frac-line",t),p=c.height,f=c.height):(c=null,p=0,f=t.fontMetrics().defaultRuleThickness);var h,g,y;n.size===We.DISPLAY.size?(h=t.fontMetrics().num1,p>0?g=3*f:g=7*f,y=t.fontMetrics().denom1):(p>0?(h=t.fontMetrics().num2,g=f):(h=t.fontMetrics().num3,g=3*f),y=t.fontMetrics().denom2);var x;if(c){var v=t.fontMetrics().axisHeight;h-o.depth-(v+.5*p)<g&&(h+=g-(h-o.depth-(v+.5*p))),v-.5*p-(u.height-y)<g&&(y+=g-(v-.5*p-(u.height-y)));var b=-(v-.5*p);x=yt({positionType:"individualShift",children:[{type:"elem",elem:u,shift:y},{type:"elem",elem:c,shift:b},{type:"elem",elem:o,shift:-h}]})}else{var m=h-o.depth-(u.height-y);m<g&&(h+=.5*(g-m),y+=.5*(g-m)),x=yt({positionType:"individualShift",children:[{type:"elem",elem:u,shift:y},{type:"elem",elem:o,shift:-h}]})}i=t.havingStyle(n),x.height*=i.sizeMultiplier/t.sizeMultiplier,x.depth*=i.sizeMultiplier/t.sizeMultiplier;var S;n.size===We.DISPLAY.size?S=t.fontMetrics().delim1:n.size===We.SCRIPTSCRIPT.size?S=t.havingStyle(We.SCRIPT).fontMetrics().delim2:S=t.fontMetrics().delim2;var C,k;return e.leftDelim==null?C=Jd(t,["mopen"]):C=tx(e.leftDelim,S,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?k=fe([]):e.rightDelim==null?k=Jd(t,["mclose"]):k=tx(e.rightDelim,S,!0,t.havingStyle(n),e.mode,["mclose"]),fe(["mord"].concat(i.sizingClasses(t)),[C,fe(["mfrac"],[x]),k],t)},ihe=(e,t)=>{var n=new ye("mfrac",[zt(e.numer,t),zt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=tn(e.barSize,t);n.setAttribute("linethickness",Se(r))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var i=new ye("mo",[new yn(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(n),e.rightDelim!=null){var o=new ye("mo",[new yn(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),a.push(o)}return nE(a)}return n},bP=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Ce({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=t[1],o,s=null,l=null;switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,s="(",l=")";break;case"\\\\bracefrac":o=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=r==="\\cfrac",c=null;return u||r.startsWith("\\d")?c="display":r.startsWith("\\t")&&(c="text"),bP({type:"genfrac",mode:n.mode,numer:a,denom:i,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},c)},htmlBuilder:ahe,mathmlBuilder:ihe});Ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,a;switch(n){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:r}}});var A6=["display","text","script","scriptscript"],_6=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],i=Qg(t[0]),o=i.type==="atom"&&i.family==="open"?_6(i.text):null,s=Qg(t[1]),l=s.type==="atom"&&s.family==="close"?_6(s.text):null,u=Je(t[2],"size"),c,p=null;u.isBlank?c=!0:(p=u.value,c=p.number>0);var f=null,h=t[3];if(h.type==="ordgroup"){if(h.body.length>0){var g=Je(h.body[0],"textord");f=A6[Number(g.text)]}}else h=Je(h,"textord"),f=A6[Number(h.text)];return bP({type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:c,barSize:p,leftDelim:o,rightDelim:l},f)}});Ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Je(t[0],"size").value,token:a}}});Ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=Je(t[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var o=t[2],s=i.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:o,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null}}});var yP=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?xt(e.sup,t.havingStyle(n.sup()),t):xt(e.sub,t.havingStyle(n.sub()),t),a=Je(e.base,"horizBrace")):a=Je(e,"horizBrace");var i=xt(a.base,t.havingBaseStyle(We.DISPLAY)),o=km(a,t),s;if(a.isOver?(s=yt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:o}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=yt({positionType:"bottom",positionData:i.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:i}]}),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=fe(["minner",a.isOver?"mover":"munder"],[s],t);a.isOver?s=yt({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]}):s=yt({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]})}return fe(["minner",a.isOver?"mover":"munder"],[s],t)},ohe=(e,t)=>{var n=Em(e.label);return new ye(e.isOver?"mover":"munder",[zt(e.base,t),n])};Ce({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:yP,mathmlBuilder:ohe});Ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=Je(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:bn(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Ln(e.body,t,!1);return Efe(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Jo(e.body,t);return n instanceof ye||(n=new ye("mrow",[n])),n.setAttribute("href",e.href),n}});Ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Je(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<r.length;i++){var o=r[i];o==="~"&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:bn(s)}}});Ce({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:bn(t[0])}},htmlBuilder(e,t){var n=Ln(e.body,t,!1);return oo(n)},mathmlBuilder(e,t){return new ye("mrow",sa(e.body,t))}});Ce({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,i=Je(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=i,s={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,s={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,s={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),c=0;c<u.length;c++){var p=u[c],f=p.indexOf("=");if(f<0)throw new be("\\htmlData key/value '"+p+"' missing equals sign");var h=p.slice(0,f),g=p.slice(f+1);l["data-"+h.trim()]=g}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:bn(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Ln(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=fe(r,n,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>Jo(e.body,t)});Ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:bn(t[0]),mathml:bn(t[1])}},htmlBuilder:(e,t)=>{var n=Ln(e.html,t,!1);return oo(n)},mathmlBuilder:(e,t)=>Jo(e.mathml,t)});var $y=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new be("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Lz(r))throw new be("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=Je(n[0],"raw").string,u=l.split(","),c=0;c<u.length;c++){var p=u[c].split("=");if(p.length===2){var f=p[1].trim();switch(p[0].trim()){case"alt":s=f;break;case"width":a=$y(f);break;case"height":i=$y(f);break;case"totalheight":o=$y(f);break;default:throw new be("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var h=Je(t[0],"url").url;return s===""&&(s=h,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:h})?{type:"includegraphics",mode:r.mode,alt:s,width:a,height:i,totalheight:o,src:h}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=tn(e.height,t),r=0;e.totalheight.number>0&&(r=tn(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=tn(e.width,t));var i={height:Se(n+r)};a>0&&(i.width=Se(a)),r>0&&(i.verticalAlign=Se(-r));var o=new dfe(e.src,e.alt,i);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new ye("mglyph",[]);n.setAttribute("alt",e.alt);var r=tn(e.height,t),a=0;if(e.totalheight.number>0&&(a=tn(e.totalheight,t)-r,n.setAttribute("valign",Se(-a))),n.setAttribute("height",Se(r+a)),e.width.number>0){var i=tn(e.width,t);n.setAttribute("width",Se(i))}return n.setAttribute("src",e.src),n}});Ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=Je(t[0],"size");if(n.settings.strict){var i=r[1]==="m",o=a.value.unit==="mu";i?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return Bz(e.dimension,t)},mathmlBuilder(e,t){var n=tn(e.dimension,t);return new Wz(n)}});Ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=fe([],[xt(e.body,t)]),n=fe(["inner"],[n],t)):n=fe(["inner"],[xt(e.body,t)]);var r=fe(["fix"],[]),a=fe([e.alignment],[n,r],t),i=fe(["strut"]);return i.style.height=Se(a.height+a.depth),a.depth&&(i.style.verticalAlign=Se(-a.depth)),a.children.unshift(i),a=fe(["thinbox"],[a],t),fe(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new ye("mpadded",[zt(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});Ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var i=n==="\\("?"\\)":"$",o=r.parseExpression(!1,i);return r.expect(i),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",body:o}}});Ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new be("Mismatched "+e.funcName)}});var R6=(e,t)=>{switch(t.style.size){case We.DISPLAY.size:return e.display;case We.TEXT.size:return e.text;case We.SCRIPT.size:return e.script;case We.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:bn(t[0]),text:bn(t[1]),script:bn(t[2]),scriptscript:bn(t[3])}},htmlBuilder:(e,t)=>{var n=R6(e,t),r=Ln(n,t,!1);return oo(r)},mathmlBuilder:(e,t)=>{var n=R6(e,t);return Jo(n,t)}});var vP=(e,t,n,r,a,i,o)=>{e=fe([],[e]);var s=n&&ao(n),l,u;if(t){var c=xt(t,r.havingStyle(a.sup()),r);u={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var p=xt(n,r.havingStyle(a.sub()),r);l={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-p.height)}}var f;if(u&&l){var h=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;f=yt({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Se(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Se(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else if(l){var g=e.height-o;f=yt({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Se(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(u){var y=e.depth+o;f=yt({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Se(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else return e;var x=[f];if(l&&i!==0&&!s){var m=fe(["mspace"],[],r);m.style.marginRight=Se(i),x.unshift(m)}return fe(["mop","op-limits"],x,r)},xP=new Set(["\\smallint"]),uc=(e,t)=>{var n,r,a=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=Je(e.base,"op"),a=!0):i=Je(e,"op");var o=t.style,s=!1;o.size===We.DISPLAY.size&&i.symbol&&!xP.has(i.name)&&(s=!0);var l;if(i.symbol){var u=s?"Size2-Regular":"Size1-Regular",c="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(c=i.name.slice(1),i.name=c==="oiint"?"\\iint":"\\iiint"),l=fr(i.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),c.length>0){var p=l.italic,f=$z(c+"Size"+(s?"2":"1"),t);l=yt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:s?.08:0}]}),i.name="\\"+c,l.classes.unshift("mop"),l.italic=p}}else if(i.body){var h=Ln(i.body,t,!0);h.length===1&&h[0]instanceof na?(l=h[0],l.classes[0]="mop"):l=fe(["mop"],h,t)}else{for(var g=[],y=1;y<i.name.length;y++)g.push(eE(i.name[y],i.mode,t));l=fe(["mop"],g,t)}var x=0,m=0;return(l instanceof na||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(x=(l.height-l.depth)/2-t.fontMetrics().axisHeight,m=l.italic||0),a?vP(l,n,r,t,o,m,x):(x&&(l.style.position="relative",l.style.top=Se(x)),l)},Vp=(e,t)=>{var n;if(e.symbol)n=new ye("mo",[ka(e.name,e.mode)]),xP.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ye("mo",sa(e.body,t));else{n=new ye("mi",[new yn(e.name.slice(1))]);var r=new ye("mo",[ka("⁡","text")]);e.parentIsSupSub?n=new ye("mrow",[n,r]):n=Gz([n,r])}return n},she={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=r;return a.length===1&&(a=she[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:uc,mathmlBuilder:Vp});Ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:bn(r)}},htmlBuilder:uc,mathmlBuilder:Vp});var lhe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:uc,mathmlBuilder:Vp});Ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:uc,mathmlBuilder:Vp});Ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=lhe[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:uc,mathmlBuilder:Vp});var SP=(e,t)=>{var n,r,a=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=Je(e.base,"operatorname"),a=!0):i=Je(e,"operatorname");var o;if(i.body.length>0){for(var s=i.body.map(p=>{var f="text"in p?p.text:void 0;return typeof f=="string"?{type:"textord",mode:p.mode,text:f}:p}),l=Ln(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof na&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=fe(["mop"],l,t)}else o=fe(["mop"],[],t);return a?vP(o,n,r,t,t.style,0,0):o},uhe=(e,t)=>{for(var n=sa(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var i=n[a];if(!(i instanceof Wz))if(i instanceof ye)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var o=i.children[0];i.children.length===1&&o instanceof yn?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var s=n.map(c=>c.toText()).join("");n=[new yn(s)]}var l=new ye("mi",n);l.setAttribute("mathvariant","normal");var u=new ye("mo",[ka("⁡","text")]);return e.parentIsSupSub?new ye("mrow",[l,u]):Gz([l,u])};Ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:bn(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:SP,mathmlBuilder:uhe});U("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");il({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?oo(Ln(e.body,t,!1)):fe(["mord"],Ln(e.body,t,!0),t)},mathmlBuilder(e,t){return Jo(e.body,t,!0)}});Ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=xt(e.body,t.havingCrampedStyle()),r=Ru("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=yt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]});return fe(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new ye("mo",[new yn("‾")]);n.setAttribute("stretchy","true");var r=new ye("mover",[zt(e.body,t),n]);return r.setAttribute("accent","true"),r}});Ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:bn(r)}},htmlBuilder:(e,t)=>{var n=Ln(e.body,t.withPhantom(),!1);return oo(n)},mathmlBuilder:(e,t)=>{var n=sa(e.body,t);return new ye("mphantom",n)}});U("\\hphantom","\\smash{\\phantom{#1}}");Ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=fe(["inner"],[xt(e.body,t.withPhantom())]),r=fe(["fix"],[]);return fe(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=sa(bn(e.body),t),r=new ye("mphantom",n),a=new ye("mpadded",[r]);return a.setAttribute("width","0px"),a}});Ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Je(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=xt(e.body,t),r=tn(e.dy,t);return yt({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ye("mpadded",[zt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],i=Je(t[0],"size"),o=Je(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&Je(a,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var n=fe(["mord","rule"],[],t),r=tn(e.width,t),a=tn(e.height,t),i=e.shift?tn(e.shift,t):0;return n.style.borderRightWidth=Se(r),n.style.borderTopWidth=Se(a),n.style.bottom=Se(i),n.width=r,n.height=a+i,n.depth=-i,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=tn(e.width,t),r=tn(e.height,t),a=e.shift?tn(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new ye("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",Se(n)),o.setAttribute("height",Se(r));var s=new ye("mpadded",[o]);return a>=0?s.setAttribute("height",Se(a)):(s.setAttribute("height",Se(a)),s.setAttribute("depth",Se(-a))),s.setAttribute("voffset",Se(a)),s}});function wP(e,t,n){for(var r=Ln(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var o=r[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[o+1]==="reset-size"+t.size&&(r[i].classes[o+1]="reset-size"+n.size),r[i].height*=a,r[i].depth*=a}return oo(r)}var N6=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],che=(e,t)=>{var n=t.havingSize(e.size);return wP(e.body,n,t)};Ce({type:"sizing",names:N6,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,i=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:N6.indexOf(r)+1,body:i}},htmlBuilder:che,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=sa(e.body,n),a=new ye("mstyle",r);return a.setAttribute("mathsize",Se(n.sizeMultiplier)),a}});Ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,i=!1,o=n[0]&&Je(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){var u=o.body[l];if(s=Tm(u).text,s==="t")a=!0;else if(s==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var n=fe([],[xt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return fe(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);var a=yt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return fe(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new ye("mpadded",[zt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:a}},htmlBuilder(e,t){var n=xt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Nu(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,i=a;t.style.id<We.TEXT.id&&(i=t.fontMetrics().xHeight);var o=a+i/4,s=n.height+n.depth+o+a,{span:l,ruleWidth:u,advanceWidth:c}=Kfe(s,t),p=l.height-u;p>n.height+n.depth+o&&(o=(o+p-n.height-n.depth)/2);var f=l.height-n.height-o-u;n.style.paddingLeft=Se(c);var h=yt({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(e.index){var g=t.havingStyle(We.SCRIPTSCRIPT),y=xt(e.index,g,t),x=.6*(h.height-h.depth),m=yt({positionType:"shift",positionData:-x,children:[{type:"elem",elem:y}]}),v=fe(["root"],[m]);return fe(["mord","sqrt"],[v,h],t)}else return fe(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ye("mroot",[zt(n,t),zt(r,t)]):new ye("msqrt",[zt(n,t)])}});var I6={display:We.DISPLAY,text:We.TEXT,script:We.SCRIPT,scriptscript:We.SCRIPTSCRIPT};Ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,i=a.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder(e,t){var n=I6[e.style],r=t.havingStyle(n).withFont("");return wP(e.body,r,t)},mathmlBuilder(e,t){var n=I6[e.style],r=t.havingStyle(n),a=sa(e.body,r),i=new ye("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[e.style];return i.setAttribute("scriptlevel",s[0]),i.setAttribute("displaystyle",s[1]),i}});var dhe=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===We.DISPLAY.size||r.alwaysHandleSupSub);return a?uc:null}else if(r.type==="operatorname"){var i=r.alwaysHandleSupSub&&(n.style.size===We.DISPLAY.size||r.limits);return i?SP:null}else{if(r.type==="accent")return ao(r.base)?aE:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?yP:null}else return null}else return null};il({type:"supsub",htmlBuilder(e,t){var n=dhe(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:i}=e,o=xt(r,t),s,l,u=t.fontMetrics(),c=0,p=0,f=r&&ao(r);if(a){var h=t.havingStyle(t.style.sup());s=xt(a,h,t),f||(c=o.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(i){var g=t.havingStyle(t.style.sub());l=xt(i,g,t),f||(p=o.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var y;t.style===We.DISPLAY?y=u.sup1:t.style.cramped?y=u.sup3:y=u.sup2;var x=t.sizeMultiplier,m=Se(.5/u.ptPerEm/x),v=null;if(l){var b=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof na||b)&&(v=Se(-o.italic))}var S;if(s&&l){c=Math.max(c,y,s.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var C=u.defaultRuleThickness,k=4*C;if(c-s.depth-(l.height-p)<k){p=k-(c-s.depth)+l.height;var R=.8*u.xHeight-(c-s.depth);R>0&&(c+=R,p-=R)}var O=[{type:"elem",elem:l,shift:p,marginRight:m,marginLeft:v},{type:"elem",elem:s,shift:-c,marginRight:m}];S=yt({positionType:"individualShift",children:O})}else if(l){p=Math.max(p,u.sub1,l.height-.8*u.xHeight);var N=[{type:"elem",elem:l,marginLeft:v,marginRight:m}];S=yt({positionType:"shift",positionData:p,children:N})}else if(s)c=Math.max(c,y,s.depth+.25*u.xHeight),S=yt({positionType:"shift",positionData:-c,children:[{type:"elem",elem:s,marginRight:m}]});else throw new Error("supsub must have either sup or sub.");var _=Zv(o,"right")||"mord";return fe([_],[o,fe(["msupsub"],[S])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[zt(e.base,t)];e.sub&&i.push(zt(e.sub,t)),e.sup&&i.push(zt(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===We.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===We.DISPLAY||u.limits)?o="munderover":o="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===We.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===We.DISPLAY)?o="munder":o="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===We.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===We.DISPLAY)?o="mover":o="msup"}return new ye(o,i)}});il({type:"atom",htmlBuilder(e,t){return eE(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ye("mo",[ka(e.text,e.mode)]);if(e.family==="bin"){var r=rE(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var EP={mi:"italic",mn:"normal",mtext:"normal"};il({type:"mathord",htmlBuilder(e,t){return wm(e,t,"mathord")},mathmlBuilder(e,t){var n=new ye("mi",[ka(e.text,e.mode,t)]),r=rE(e,t)||"italic";return r!==EP[n.type]&&n.setAttribute("mathvariant",r),n}});il({type:"textord",htmlBuilder(e,t){return wm(e,t,"textord")},mathmlBuilder(e,t){var n=ka(e.text,e.mode,t),r=rE(e,t)||"normal",a;return e.mode==="text"?a=new ye("mtext",[n]):/[0-9]/.test(e.text)?a=new ye("mn",[n]):e.text==="\\prime"?a=new ye("mo",[n]):a=new ye("mi",[n]),r!==EP[a.type]&&a.setAttribute("mathvariant",r),a}});var Hy={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Vy={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};il({type:"spacing",htmlBuilder(e,t){if(Vy.hasOwnProperty(e.text)){var n=Vy[e.text].className||"";if(e.mode==="text"){var r=wm(e,t,"textord");return r.classes.push(n),r}else return fe(["mspace",n],[eE(e.text,e.mode,t)],t)}else{if(Hy.hasOwnProperty(e.text))return fe(["mspace",Hy[e.text]],[],t);throw new be('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Vy.hasOwnProperty(e.text))n=new ye("mtext",[new yn(" ")]);else{if(Hy.hasOwnProperty(e.text))return new ye("mspace");throw new be('Unknown type of space "'+e.text+'"')}return n}});var O6=()=>{var e=new ye("mtd",[]);return e.setAttribute("width","50%"),e};il({type:"tag",mathmlBuilder(e,t){var n=new ye("mtable",[new ye("mtr",[O6(),new ye("mtd",[Jo(e.body,t)]),O6(),new ye("mtd",[Jo(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var D6={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},L6={"\\textbf":"textbf","\\textmd":"textmd"},phe={"\\textit":"textit","\\textup":"textup"},M6=(e,t)=>{var n=e.font;if(n){if(D6[n])return t.withTextFontFamily(D6[n]);if(L6[n])return t.withTextFontWeight(L6[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(phe[n])};Ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"text",mode:n.mode,body:bn(a),font:r}},htmlBuilder(e,t){var n=M6(e,t),r=Ln(e.body,n,!0);return fe(["mord","text"],r,n)},mathmlBuilder(e,t){var n=M6(e,t);return Jo(e.body,n)}});Ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=xt(e.body,t),r=Ru("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=yt({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]});return fe(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new ye("mo",[new yn("‾")]);n.setAttribute("stretchy","true");var r=new ye("munder",[zt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=xt(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return yt({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ye("mpadded",[zt(e.body,t)],["vcenter"]);return new ye("mrow",[n])}});Ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new be("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=z6(e),r=[],a=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var o=n[i];o==="~"&&(o="\\textasciitilde"),r.push(fr(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return fe(["mord","text"].concat(a.sizingClasses(t)),Fz(r),a)},mathmlBuilder(e,t){var n=new yn(z6(e)),r=new ye("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var z6=e=>e.body.replace(/ /g,e.star?"␣":" "),Oo=Hz,kP=`[ \r
	]`,fhe="\\\\[a-zA-Z@]+",hhe="\\\\[^\uD800-\uDFFF]",ghe="("+fhe+")"+kP+"*",mhe=`\\\\(
|[ \r	]+
?)[ \r	]*`,nx="[̀-ͯ]",bhe=new RegExp(nx+"+$"),yhe="("+kP+"+)|"+(mhe+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(nx+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(nx+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ghe)+("|"+hhe+")");class P6{constructor(t,n){this.input=t,this.settings=n,this.tokenRegex=new RegExp(yhe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Ma("EOF",new _r(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new be("Unexpected character: '"+t[n]+"'",new Ma(t[n],new _r(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Ma(a,new _r(this,n,this.tokenRegex.lastIndex))}}class vhe{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new be("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var xhe=pP;U("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});U("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});U("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});U("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});U("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});U("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");U("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var j6={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};U("\\char",function(e){var t=e.popToken(),n,r=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new be("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=j6[t.text],r==null||r>=n)throw new be("Invalid base-"+n+" digit "+t.text);for(var a;(a=j6[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var lE=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new be("\\newcommand's first argument must be a macro name");var i=a[0].text,o=e.isDefined(i);if(o&&!t)throw new be("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!o&&!n)throw new be("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new be("Invalid number of arguments: "+l);s=parseInt(l),a=e.consumeArg().tokens}return o&&r||e.macros.set(i,{tokens:a,numArgs:s}),""};U("\\newcommand",e=>lE(e,!1,!0,!1));U("\\renewcommand",e=>lE(e,!0,!1,!1));U("\\providecommand",e=>lE(e,!0,!0,!0));U("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});U("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});U("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Oo[n],Yt.math[n],Yt.text[n]),""});U("\\bgroup","{");U("\\egroup","}");U("~","\\nobreakspace");U("\\lq","`");U("\\rq","'");U("\\aa","\\r a");U("\\AA","\\r A");U("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");U("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");U("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");U("ℬ","\\mathscr{B}");U("ℰ","\\mathscr{E}");U("ℱ","\\mathscr{F}");U("ℋ","\\mathscr{H}");U("ℐ","\\mathscr{I}");U("ℒ","\\mathscr{L}");U("ℳ","\\mathscr{M}");U("ℛ","\\mathscr{R}");U("ℭ","\\mathfrak{C}");U("ℌ","\\mathfrak{H}");U("ℨ","\\mathfrak{Z}");U("\\Bbbk","\\Bbb{k}");U("\\llap","\\mathllap{\\textrm{#1}}");U("\\rlap","\\mathrlap{\\textrm{#1}}");U("\\clap","\\mathclap{\\textrm{#1}}");U("\\mathstrut","\\vphantom{(}");U("\\underbar","\\underline{\\text{#1}}");U("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');U("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");U("\\ne","\\neq");U("≠","\\neq");U("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");U("∉","\\notin");U("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");U("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");U("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");U("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");U("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");U("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");U("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");U("⟂","\\perp");U("‼","\\mathclose{!\\mkern-0.8mu!}");U("∌","\\notni");U("⌜","\\ulcorner");U("⌝","\\urcorner");U("⌞","\\llcorner");U("⌟","\\lrcorner");U("©","\\copyright");U("®","\\textregistered");U("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');U("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');U("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');U("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');U("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");U("⋮","\\vdots");U("\\varGamma","\\mathit{\\Gamma}");U("\\varDelta","\\mathit{\\Delta}");U("\\varTheta","\\mathit{\\Theta}");U("\\varLambda","\\mathit{\\Lambda}");U("\\varXi","\\mathit{\\Xi}");U("\\varPi","\\mathit{\\Pi}");U("\\varSigma","\\mathit{\\Sigma}");U("\\varUpsilon","\\mathit{\\Upsilon}");U("\\varPhi","\\mathit{\\Phi}");U("\\varPsi","\\mathit{\\Psi}");U("\\varOmega","\\mathit{\\Omega}");U("\\substack","\\begin{subarray}{c}#1\\end{subarray}");U("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");U("\\boxed","\\fbox{$\\displaystyle{#1}$}");U("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");U("\\implies","\\DOTSB\\;\\Longrightarrow\\;");U("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");U("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");U("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var F6={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},She=new Set(["bin","rel"]);U("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in F6?t=F6[n]:(n.slice(0,4)==="\\not"||n in Yt.math&&She.has(Yt.math[n].group))&&(t="\\dotsb"),t});var uE={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};U("\\dotso",function(e){var t=e.future().text;return t in uE?"\\ldots\\,":"\\ldots"});U("\\dotsc",function(e){var t=e.future().text;return t in uE&&t!==","?"\\ldots\\,":"\\ldots"});U("\\cdots",function(e){var t=e.future().text;return t in uE?"\\@cdots\\,":"\\@cdots"});U("\\dotsb","\\cdots");U("\\dotsm","\\cdots");U("\\dotsi","\\!\\cdots");U("\\dotsx","\\ldots\\,");U("\\DOTSI","\\relax");U("\\DOTSB","\\relax");U("\\DOTSX","\\relax");U("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");U("\\,","\\tmspace+{3mu}{.1667em}");U("\\thinspace","\\,");U("\\>","\\mskip{4mu}");U("\\:","\\tmspace+{4mu}{.2222em}");U("\\medspace","\\:");U("\\;","\\tmspace+{5mu}{.2777em}");U("\\thickspace","\\;");U("\\!","\\tmspace-{3mu}{.1667em}");U("\\negthinspace","\\!");U("\\negmedspace","\\tmspace-{4mu}{.2222em}");U("\\negthickspace","\\tmspace-{5mu}{.277em}");U("\\enspace","\\kern.5em ");U("\\enskip","\\hskip.5em\\relax");U("\\quad","\\hskip1em\\relax");U("\\qquad","\\hskip2em\\relax");U("\\tag","\\@ifstar\\tag@literal\\tag@paren");U("\\tag@paren","\\tag@literal{({#1})}");U("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new be("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});U("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");U("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");U("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");U("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");U("\\newline","\\\\\\relax");U("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var TP=Se(Qa["Main-Regular"][84][1]-.7*Qa["Main-Regular"][65][1]);U("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+TP+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");U("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+TP+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");U("\\hspace","\\@ifstar\\@hspacer\\@hspace");U("\\@hspace","\\hskip #1\\relax");U("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");U("\\ordinarycolon",":");U("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");U("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');U("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');U("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');U("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');U("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');U("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');U("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');U("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');U("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');U("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');U("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');U("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');U("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');U("∷","\\dblcolon");U("∹","\\eqcolon");U("≔","\\coloneqq");U("≕","\\eqqcolon");U("⩴","\\Coloneqq");U("\\ratio","\\vcentcolon");U("\\coloncolon","\\dblcolon");U("\\colonequals","\\coloneqq");U("\\coloncolonequals","\\Coloneqq");U("\\equalscolon","\\eqqcolon");U("\\equalscoloncolon","\\Eqqcolon");U("\\colonminus","\\coloneq");U("\\coloncolonminus","\\Coloneq");U("\\minuscolon","\\eqcolon");U("\\minuscoloncolon","\\Eqcolon");U("\\coloncolonapprox","\\Colonapprox");U("\\coloncolonsim","\\Colonsim");U("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");U("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");U("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");U("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");U("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");U("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");U("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");U("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");U("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");U("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");U("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");U("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");U("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");U("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");U("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");U("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");U("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");U("\\nleqq","\\html@mathml{\\@nleqq}{≰}");U("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");U("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");U("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");U("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");U("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");U("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");U("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");U("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");U("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");U("\\imath","\\html@mathml{\\@imath}{ı}");U("\\jmath","\\html@mathml{\\@jmath}{ȷ}");U("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");U("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");U("⟦","\\llbracket");U("⟧","\\rrbracket");U("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");U("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");U("⦃","\\lBrace");U("⦄","\\rBrace");U("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");U("⦵","\\minuso");U("\\darr","\\downarrow");U("\\dArr","\\Downarrow");U("\\Darr","\\Downarrow");U("\\lang","\\langle");U("\\rang","\\rangle");U("\\uarr","\\uparrow");U("\\uArr","\\Uparrow");U("\\Uarr","\\Uparrow");U("\\N","\\mathbb{N}");U("\\R","\\mathbb{R}");U("\\Z","\\mathbb{Z}");U("\\alef","\\aleph");U("\\alefsym","\\aleph");U("\\Alpha","\\mathrm{A}");U("\\Beta","\\mathrm{B}");U("\\bull","\\bullet");U("\\Chi","\\mathrm{X}");U("\\clubs","\\clubsuit");U("\\cnums","\\mathbb{C}");U("\\Complex","\\mathbb{C}");U("\\Dagger","\\ddagger");U("\\diamonds","\\diamondsuit");U("\\empty","\\emptyset");U("\\Epsilon","\\mathrm{E}");U("\\Eta","\\mathrm{H}");U("\\exist","\\exists");U("\\harr","\\leftrightarrow");U("\\hArr","\\Leftrightarrow");U("\\Harr","\\Leftrightarrow");U("\\hearts","\\heartsuit");U("\\image","\\Im");U("\\infin","\\infty");U("\\Iota","\\mathrm{I}");U("\\isin","\\in");U("\\Kappa","\\mathrm{K}");U("\\larr","\\leftarrow");U("\\lArr","\\Leftarrow");U("\\Larr","\\Leftarrow");U("\\lrarr","\\leftrightarrow");U("\\lrArr","\\Leftrightarrow");U("\\Lrarr","\\Leftrightarrow");U("\\Mu","\\mathrm{M}");U("\\natnums","\\mathbb{N}");U("\\Nu","\\mathrm{N}");U("\\Omicron","\\mathrm{O}");U("\\plusmn","\\pm");U("\\rarr","\\rightarrow");U("\\rArr","\\Rightarrow");U("\\Rarr","\\Rightarrow");U("\\real","\\Re");U("\\reals","\\mathbb{R}");U("\\Reals","\\mathbb{R}");U("\\Rho","\\mathrm{P}");U("\\sdot","\\cdot");U("\\sect","\\S");U("\\spades","\\spadesuit");U("\\sub","\\subset");U("\\sube","\\subseteq");U("\\supe","\\supseteq");U("\\Tau","\\mathrm{T}");U("\\thetasym","\\vartheta");U("\\weierp","\\wp");U("\\Zeta","\\mathrm{Z}");U("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");U("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");U("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");U("\\bra","\\mathinner{\\langle{#1}|}");U("\\ket","\\mathinner{|{#1}\\rangle}");U("\\braket","\\mathinner{\\langle{#1}\\rangle}");U("\\Bra","\\left\\langle#1\\right|");U("\\Ket","\\left|#1\\right\\rangle");var CP=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=p=>f=>{e&&(f.macros.set("|",o),a.length&&f.macros.set("\\|",s));var h=p;if(!p&&a.length){var g=f.future();g.text==="|"&&(f.popToken(),h=!0)}return{tokens:h?a:r,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...i,...u,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};U("\\bra@ket",CP(!1));U("\\bra@set",CP(!0));U("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");U("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");U("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");U("\\angln","{\\angl n}");U("\\blue","\\textcolor{##6495ed}{#1}");U("\\orange","\\textcolor{##ffa500}{#1}");U("\\pink","\\textcolor{##ff00af}{#1}");U("\\red","\\textcolor{##df0030}{#1}");U("\\green","\\textcolor{##28ae7b}{#1}");U("\\gray","\\textcolor{gray}{#1}");U("\\purple","\\textcolor{##9d38bd}{#1}");U("\\blueA","\\textcolor{##ccfaff}{#1}");U("\\blueB","\\textcolor{##80f6ff}{#1}");U("\\blueC","\\textcolor{##63d9ea}{#1}");U("\\blueD","\\textcolor{##11accd}{#1}");U("\\blueE","\\textcolor{##0c7f99}{#1}");U("\\tealA","\\textcolor{##94fff5}{#1}");U("\\tealB","\\textcolor{##26edd5}{#1}");U("\\tealC","\\textcolor{##01d1c1}{#1}");U("\\tealD","\\textcolor{##01a995}{#1}");U("\\tealE","\\textcolor{##208170}{#1}");U("\\greenA","\\textcolor{##b6ffb0}{#1}");U("\\greenB","\\textcolor{##8af281}{#1}");U("\\greenC","\\textcolor{##74cf70}{#1}");U("\\greenD","\\textcolor{##1fab54}{#1}");U("\\greenE","\\textcolor{##0d923f}{#1}");U("\\goldA","\\textcolor{##ffd0a9}{#1}");U("\\goldB","\\textcolor{##ffbb71}{#1}");U("\\goldC","\\textcolor{##ff9c39}{#1}");U("\\goldD","\\textcolor{##e07d10}{#1}");U("\\goldE","\\textcolor{##a75a05}{#1}");U("\\redA","\\textcolor{##fca9a9}{#1}");U("\\redB","\\textcolor{##ff8482}{#1}");U("\\redC","\\textcolor{##f9685d}{#1}");U("\\redD","\\textcolor{##e84d39}{#1}");U("\\redE","\\textcolor{##bc2612}{#1}");U("\\maroonA","\\textcolor{##ffbde0}{#1}");U("\\maroonB","\\textcolor{##ff92c6}{#1}");U("\\maroonC","\\textcolor{##ed5fa6}{#1}");U("\\maroonD","\\textcolor{##ca337c}{#1}");U("\\maroonE","\\textcolor{##9e034e}{#1}");U("\\purpleA","\\textcolor{##ddd7ff}{#1}");U("\\purpleB","\\textcolor{##c6b9fc}{#1}");U("\\purpleC","\\textcolor{##aa87ff}{#1}");U("\\purpleD","\\textcolor{##7854ab}{#1}");U("\\purpleE","\\textcolor{##543b78}{#1}");U("\\mintA","\\textcolor{##f5f9e8}{#1}");U("\\mintB","\\textcolor{##edf2df}{#1}");U("\\mintC","\\textcolor{##e0e5cc}{#1}");U("\\grayA","\\textcolor{##f6f7f7}{#1}");U("\\grayB","\\textcolor{##f0f1f2}{#1}");U("\\grayC","\\textcolor{##e3e5e6}{#1}");U("\\grayD","\\textcolor{##d6d8da}{#1}");U("\\grayE","\\textcolor{##babec2}{#1}");U("\\grayF","\\textcolor{##888d93}{#1}");U("\\grayG","\\textcolor{##626569}{#1}");U("\\grayH","\\textcolor{##3b3e40}{#1}");U("\\grayI","\\textcolor{##21242c}{#1}");U("\\kaBlue","\\textcolor{##314453}{#1}");U("\\kaGreen","\\textcolor{##71B307}{#1}");var AP={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class whe{constructor(t,n,r){this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new vhe(xhe,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new P6(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new Ma("EOF",r.loc)),this.pushTokens(a),new Ma("",_r.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),i,o=0,s=0;do{if(i=this.popToken(),n.push(i),i.text==="{")++o;else if(i.text==="}"){if(--o,o===-1)throw new be("Extra }",i)}else if(i.text==="EOF")throw new be("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",i);if(t&&r)if((o===0||o===1&&t[s]==="{")&&i.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(o!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:i}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new be("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var i=this.popToken();if(r[a]!==i.text)throw new be("Use of the macro doesn't match its definition",i)}}for(var o=[],s=0;s<t;s++)o.push(this.consumeArg(n&&n[s+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new be("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new be("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var i=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var s=i.length-1;s>=0;--s){var l=i[s];if(l.text==="#"){if(s===0)throw new be("Incomplete placeholder at end of macro body",l);if(l=i[--s],l.text==="#")i.splice(s+1,1);else if(/^[1-9]$/.test(l.text))i.splice(s,2,...o[+l.text-1]);else throw new be("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ma(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var o=a.replace(/##/g,"");o.includes("#"+(i+1));)++i;for(var s=new P6(a,this.settings),l=[],u=s.lex();u.text!=="EOF";)l.push(u),u=s.lex();l.reverse();var c={tokens:l,numArgs:i};return c}return a}isDefined(t){return this.macros.has(t)||Oo.hasOwnProperty(t)||Yt.math.hasOwnProperty(t)||Yt.text.hasOwnProperty(t)||AP.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Oo.hasOwnProperty(t)&&!Oo[t].primitive}}var B6=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,qf=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Gy={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},U6={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Om{constructor(t,n){this.mode="math",this.gullet=new whe(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new be("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Ma("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Om.endOfExpression.has(a.text)||n&&a.text===n||t&&Oo[a.text]&&Oo[a.text].infix)break;var i=this.parseAtom(n);if(i){if(i.type==="internal")continue}else break;r.push(i)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++){var i=t[a];if(i.type==="infix"){if(n!==-1)throw new be("only one infix operator per group",i.token);n=a,r=i.replaceWith}}if(n!==-1&&r){var o,s,l=t.slice(0,n),u=t.slice(n+1);l.length===1&&l[0].type==="ordgroup"?o=l[0]:o={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var c;return r==="\\\\abovefrac"?c=this.callFunction(r,[o,t[n],s],[]):c=this.callFunction(r,[o,s],[]),[c]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new be("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(n&&n.type==="op"){var o=i.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=i.text==="\\limits");else throw new be("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(r)throw new be("Double superscript",i);r=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new be("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(r)throw new be("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(qf[i.text]){var u=B6.test(i.text),c=[];for(c.push(new Ma(qf[i.text])),this.consume();;){var p=this.fetch().text;if(!qf[p]||B6.test(p)!==u)break;c.unshift(new Ma(qf[p])),this.consume()}var f=this.subparse(c);u?a={type:"ordgroup",mode:"math",body:f}:r={type:"ordgroup",mode:"math",body:f}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,i=Oo[a];if(!i)return null;if(this.consume(),n&&n!=="atom"&&!i.allowedInArgument)throw new be("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!i.allowedInText)throw new be("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&i.allowedInMath===!1)throw new be("Can't use function '"+a+"' in math mode",r);var{args:o,optArgs:s}=this.parseArguments(a,i);return this.callFunction(a,o,s,r,t)}callFunction(t,n,r,a,i){var o={funcName:t,parser:this,token:a,breakOnTokenText:i},s=Oo[t];if(s&&s.handler)return s.handler(o,n,r);throw new be("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],i=[],o=0;o<r;o++){var s=n.argTypes&&n.argTypes[o],l=o<n.numOptionalArgs;("primitive"in n&&n.primitive&&s==null||n.type==="sqrt"&&o===1&&i[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)i.push(u);else if(u!=null)a.push(u);else throw new be("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",r);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(r)throw new be("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new be("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new be("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,i="",o;(o=this.fetch()).text!=="EOF"&&t.test(i+o.text);)a=o,i+=a.text,this.consume();if(i==="")throw new be("Invalid "+n+": '"+r.text+"'",r);return r.range(a,i)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new be("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new be("Invalid size: '"+n.text+"'",n);var i={number:+(a[1]+a[2]),unit:a[3]};if(!Lz(i))throw new be("Invalid unit: '"+i.unit+"'",n);return{type:"size",mode:this.mode,value:i,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:r.loc,body:i};return n&&this.switchMode(a),o}parseGroup(t,n){var r=this.fetch(),a=r.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var o=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:_r.range(r,l),body:s,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(n,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!AP.hasOwnProperty(a)){if(this.settings.throwOnError)throw new be("Undefined control sequence: "+a,r);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r];if(a.type==="textord"){var i=a.text,o=t[r+1];if(!(!o||o.type!=="textord")){if(i==="-"&&o.text==="-"){var s=t[r+2];r+1<n&&s&&s.type==="textord"&&s.text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:_r.range(a,s),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:_r.range(a,o),text:"--"}),n-=1)}(i==="'"||i==="`")&&o.text===i&&(t.splice(r,2,{type:"textord",mode:"text",loc:_r.range(a,o),text:i+i}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new be(`\\verb assertion failed --
                    please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}U6.hasOwnProperty(n[0])&&!Yt[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=U6[n[0]]+n.slice(1));var i=bhe.exec(n);i&&(n=n.substring(0,i.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var o;if(Yt[this.mode][n]){this.settings.strict&&this.mode==="math"&&qv.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=Yt[this.mode][n].group,l=_r.range(t),u;if(yfe.hasOwnProperty(s)){var c=s;u={type:"atom",mode:this.mode,family:c,loc:l,text:n}}else u={type:s,mode:this.mode,loc:l,text:n};o=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Dz(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:_r.range(t),text:n};else return null;if(this.consume(),i)for(var p=0;p<i[0].length;p++){var f=i[0][p];if(!Gy[f])throw new be("Unknown accent ' "+f+"'",t);var h=Gy[f][this.mode]||Gy[f].text;if(!h)throw new be("Accent "+f+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:_r.range(t),label:h,isStretchy:!1,isShifty:!0,base:o}}return o}}Om.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var cE=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Om(t,n);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new be("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new Ma("\\df@tag")])}]}return a},_P=function(t,n,r){n.textContent="";var a=dE(t,r).toNode();n.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),_P=function(){throw new be("KaTeX doesn't work in quirks mode.")});var Ehe=function(t,n){var r=dE(t,n).toMarkup();return r},khe=function(t,n){var r=new Zw(n);return cE(t,r)},RP=function(t,n,r){if(r.throwOnError||!(t instanceof be))throw t;var a=fe(["katex-error"],[new na(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},dE=function(t,n){var r=new Zw(n);try{var a=cE(t,r);return Lfe(a,t,r)}catch(i){return RP(i,t,r)}},The=function(t,n){var r=new Zw(n);try{var a=cE(t,r);return Mfe(a,t,r)}catch(i){return RP(i,t,r)}},Che="0.16.45",Ahe={Span:sc,Anchor:xm,SymbolNode:na,SvgNode:Ji,PathNode:Zo,LineNode:Wv},$6={version:Che,render:_P,renderToString:Ehe,ParseError:be,SETTINGS_SCHEMA:Hv,__parse:khe,__renderToDomTree:dE,__renderToHTMLTree:The,__setFontMetrics:mfe,__defineSymbol:E,__defineFunction:Ce,__defineMacro:U,__domTree:Ahe};const _he={};function Rhe(e){const t=this,n=e||_he,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Fpe(n)),i.push(Npe()),o.push(Ipe(n))}const H6=/[#.]/g;function Nhe(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){H6.lastIndex=a;const s=H6.exec(n),l=n.slice(a,s?s.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,a+=l.length),s&&(i=s[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function NP(e,t,n){const r=n?Lhe(n):void 0;function a(i,o,...s){let l;if(i==null){l={type:"root",children:[]};const u=o;s.unshift(u)}else{l=Nhe(i,t);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,Ihe(o))s.unshift(o);else for(const[p,f]of Object.entries(o))Ohe(e,l.properties,p,f)}for(const u of s)rx(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function Ihe(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 i=a;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Ohe(e,t,n,r){const a=NM(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=m_(r):a.commaSeparated?i=d_(r):a.commaOrSpaceSeparated?i=m_(d_(r).join(" ")):i=V6(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?Dhe(r):String(r);if(Array.isArray(i)){const o=[];for(const s of i)o.push(V6(a,a.property,s));i=o}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function rx(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)rx(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?rx(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function V6(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Yd(n)===Yd(t)))return!0}return n}function Dhe(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Lhe(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Mhe=["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"],IP=NP(IM,"div"),zhe=NP(hm,"g",Mhe),Wy={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Phe(e,t){return OP(e,{})||{type:"root",children:[]}}function OP(e,t){const n=jhe(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function jhe(e,t){switch(e.nodeType){case 1:return $he(e,t);case 3:return Bhe(e);case 8:return Uhe(e);case 9:return G6(e,t);case 10:return Fhe();case 11:return G6(e,t);default:return}}function G6(e,t){return{type:"root",children:DP(e,t)}}function Fhe(){return{type:"doctype"}}function Bhe(e){return{type:"text",value:e.nodeValue||""}}function Uhe(e){return{type:"comment",value:e.nodeValue||""}}function $he(e,t){const n=e.namespaceURI,r=n===Wy.svg?zhe:IP,a=n===Wy.html?e.tagName.toLowerCase():e.tagName,i=n===Wy.html&&a==="template"?e.content:e,o=e.getAttributeNames(),s={};let l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return r(a,s,DP(i,t))}function DP(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const i=OP(n[a],t);i!==void 0&&r.push(i)}return r}new DOMParser;function Hhe(e,t){const n=Vhe(e);return Phe(n)}function Vhe(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const W6=function(e,t,n){const r=Up(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},ol=function(e){if(e==null)return qhe;if(typeof e=="string")return Whe(e);if(typeof e=="object")return Ghe(e);if(typeof e=="function")return pE(e);throw new Error("Expected function, string, or array as `test`")};function Ghe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ol(e[n]);return pE(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function Whe(e){return pE(t);function t(n){return n.tagName===e}}function pE(e){return t;function t(n,r,a){return!!(Yhe(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function qhe(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Yhe(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const q6=/\n/g,Y6=/[\t ]+/g,ax=ol("br"),X6=ol(nge),Xhe=ol("p"),K6=ol("tr"),Khe=ol(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",tge,rge]),LP=ol(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Zhe(e,t){const n=t||{},r="children"in e?e.children:[],a=LP(e),i=PP(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...zP(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...MP(r[s],e,{whitespace:i,breakBefore:s?void 0:a,breakAfter:s<r.length-1?ax(r[s+1]):a}));const l=[];let u;for(s=-1;++s<o.length;){const c=o[s];typeof c=="number"?u!==void 0&&c>u&&(u=c):c&&(u!==void 0&&u>-1&&l.push(`
`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function MP(e,t,n){return e.type==="element"?Qhe(e,t,n):e.type==="text"?n.whitespace==="normal"?zP(e,n):Jhe(e):[]}function Qhe(e,t,n){const r=PP(e,n),a=e.children||[];let i=-1,o=[];if(Khe(e))return o;let s,l;for(ax(e)||K6(e)&&W6(t,e,K6)?l=`
`:Xhe(e)?(s=2,l=2):LP(e)&&(s=1,l=1);++i<a.length;)o=o.concat(MP(a[i],e,{whitespace:r,breakBefore:i?void 0:s,breakAfter:i<a.length-1?ax(a[i+1]):l}));return X6(e)&&W6(t,e,X6)&&o.push("	"),s&&o.unshift(s),l&&o.push(l),o}function zP(e,t){const n=String(e.value),r=[],a=[];let i=0;for(;i<=n.length;){q6.lastIndex=i;const l=q6.exec(n),u=l&&"index"in l?l.index:n.length;r.push(ege(n.slice(i,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,u===n.length?t.breakAfter:!0)),i=u+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(a.push(r[o]),s=void 0):r[o]?(typeof s=="number"&&a.push(s),a.push(r[o]),s=0):(o===0||o===r.length-1)&&a.push(0);return a}function Jhe(e){return[String(e.value)]}function ege(e,t,n){const r=[];let a=0,i;for(;a<e.length;){Y6.lastIndex=a;const o=Y6.exec(e);i=o?o.index:e.length,!a&&!i&&o&&!t&&r.push(""),a!==i&&r.push(e.slice(a,i)),a=o?i+o[0].length:i}return a!==i&&!n&&r.push(""),r.join(" ")}function PP(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function tge(e){return!!(e.properties||{}).hidden}function nge(e){return e.tagName==="td"||e.tagName==="th"}function rge(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const age={},ige=[];function oge(e){const t=e||age;return function(n,r){Vw(n,"element",function(a,i){const o=Array.isArray(a.properties.className)?a.properties.className:ige,s=o.includes("language-math"),l=o.includes("math-display"),u=o.includes("math-inline");let c=l;if(!s&&!l&&!u)return;let p=i[i.length-1],f=a;if(a.tagName==="code"&&s&&p&&p.type==="element"&&p.tagName==="pre"&&(f=p,p=i[i.length-2],c=!0),!p)return;const h=Zhe(f,{whitespace:"pre"});let g;try{g=$6.renderToString(h,{...t,displayMode:c,throwOnError:!0})}catch(x){const m=x,v=m.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:m,place:a.position,ruleId:v,source:"rehype-katex"});try{g=$6.renderToString(h,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(x)},children:[{type:"text",value:h}]}]}}typeof g=="string"&&(g=Hhe(g).children);const y=p.children.indexOf(f);return p.children.splice(y,1,...g),az})}}function sge(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 lge(e,t){if(e==null)return{};var n,r,a=sge(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ix(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 uge(e){if(Array.isArray(e))return ix(e)}function cge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dge(e,t){if(e){if(typeof e=="string")return ix(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)?ix(e,t):void 0}}function pge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ox(e){return uge(e)||cge(e)||dge(e)||pge()}function ep(e){"@babel/helpers - typeof";return ep=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},ep(e)}function fge(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hge(e){var t=fge(e,"string");return ep(t)=="symbol"?t:t+""}function jP(e,t,n){return(t=hge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z6(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 Wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z6(Object(n),!0).forEach(function(r){jP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gge(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 qy={};function mge(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return qy[t]||(qy[t]=gge(e)),qy[t]}function bge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=mge(r);return a.reduce(function(i,o){return Wl(Wl({},i),n[o])},t)}function Q6(e){return e.join(" ")}function yge(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return FP({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function FP(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,u=t.tagName,c=t.value;if(l==="text")return c;if(u){var p=yge(n,i),f;if(!i)f=Wl(Wl({},s),{},{className:Q6(s.className)});else{var h=Object.keys(n).reduce(function(m,v){return v.split(".").forEach(function(b){m.includes(b)||m.push(b)}),m},[]),g=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&g.concat(s.className.filter(function(m){return!h.includes(m)}));f=Wl(Wl({},s),{},{className:Q6(y)||void 0,style:bge(s.className,Object.assign({},s.style,a),n)})}var x=p(t.children);return Xn.createElement(u,av({key:o},f),x)}}const vge=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var xge=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function J6(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 Do(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J6(Object(n),!0).forEach(function(r){jP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Sge=/\n/g;function wge(e){return e.match(Sge)}function Ege(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(a,i){var o=i+n;return Xn.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(o):r},"".concat(o,`
`))})}function kge(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,a=r===void 0?{float:"left",paddingRight:"10px"}:r,i=e.numberStyle,o=i===void 0?{}:i,s=e.startingLineNumber;return Xn.createElement("code",{style:Object.assign({},n,a)},Ege({lines:t.replace(/\n$/,"").split(`
`),style:o,startingLineNumber:s}))}function Tge(e){return"".concat(e.toString().length,".25em")}function BP(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 UP(e,t,n){var r={display:"inline-block",minWidth:Tge(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,i=Do(Do({},r),a);return i}function $h(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,l=e.className,u=l===void 0?[]:l,c=e.showLineNumbers,p=e.wrapLongLines,f=e.wrapLines,h=f===void 0?!1:f,g=h?Do({},typeof s=="function"?s(n):s):{};if(g.className=g.className?[].concat(ox(g.className.trim().split(/\s+/)),ox(u)):u,n&&i){var y=UP(r,n,a);t.unshift(BP(n,y))}return p&c&&(g.style=Do({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:t}}function $P(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($h({children:[a],className:ox(new Set(t))}));else if(a.children){var i,o=t.concat(((i=a.properties)===null||i===void 0?void 0:i.className)||[]);$P(a.children,o).forEach(function(s){return n.push(s)})}}return n}function Cge(e,t,n,r,a,i,o,s,l){var u,c=$P(e.value),p=[],f=-1,h=0;function g(C,k){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return $h({children:C,lineNumber:k,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:R,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}function y(C,k){if(r&&k&&a){var R=UP(s,k,o);C.unshift(BP(k,R))}return C}function x(C,k){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||R.length>0?g(C,k,R):y(C,k)}for(var m=function(){var k=c[h],R=k.children[0].value,O=wge(R);if(O){var N=R.split(`
`);N.forEach(function(_,L){var I=r&&p.length+i,P={type:"text",value:"".concat(_,`
`)};if(L===0){var M=c.slice(f+1,h).concat($h({children:[P],className:k.properties.className})),F=x(M,I);p.push(F)}else if(L===N.length-1){var A=c[h+1]&&c[h+1].children&&c[h+1].children[0],j={type:"text",value:"".concat(_)};if(A){var B=$h({children:[j],className:k.properties.className});c.splice(h+1,0,B)}else{var V=[j],D=x(V,I,k.properties.className);p.push(D)}}else{var Z=[P],J=x(Z,I,k.properties.className);p.push(J)}}),f=h}h++};h<c.length;)m();if(f!==c.length-1){var v=c.slice(f+1,c.length);if(v&&v.length){var b=r&&p.length+i,S=x(v,b);p.push(S)}}return t?p:(u=[]).concat.apply(u,p)}function Age(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(a,i){return FP({node:a,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(i)})})}function HP(e){return e&&typeof e.highlightAuto<"u"}function _ge(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(HP(t)){var i=vge(t,n);return n==="text"?{value:a,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:a}}catch{return{value:a}}}function Rge(e,t){return function(r){var a,i,o=r.language,s=r.children,l=r.style,u=l===void 0?t:l,c=r.customStyle,p=c===void 0?{}:c,f=r.codeTagProps,h=f===void 0?{className:o?"language-".concat(o):void 0,style:Do(Do({},u['code[class*="language-"]']),u['code[class*="language-'.concat(o,'"]')])}:f,g=r.useInlineStyles,y=g===void 0?!0:g,x=r.showLineNumbers,m=x===void 0?!1:x,v=r.showInlineLineNumbers,b=v===void 0?!0:v,S=r.startingLineNumber,C=S===void 0?1:S,k=r.lineNumberContainerStyle,R=r.lineNumberStyle,O=R===void 0?{}:R,N=r.wrapLines,_=r.wrapLongLines,L=_===void 0?!1:_,I=r.lineProps,P=I===void 0?{}:I,M=r.renderer,F=r.PreTag,A=F===void 0?"pre":F,j=r.CodeTag,B=j===void 0?"code":j,V=r.code,D=V===void 0?(Array.isArray(s)?s[0]:s)||"":V,Z=r.astGenerator,J=lge(r,xge);Z=Z||e;var H=m?Xn.createElement(kge,{containerStyle:k,codeStyle:h.style||{},numberStyle:O,startingLineNumber:C,codeString:D}):null,se=u.hljs||u['pre[class*="language-"]']||{backgroundColor:"#fff"},we=HP(Z)?"hljs":"prismjs",xe=y?Object.assign({},J,{style:Object.assign({},se,p)}):Object.assign({},J,{className:J.className?"".concat(we," ").concat(J.className):we,style:Object.assign({},p)});if(L?h.style=Do({whiteSpace:"pre-wrap"},h.style):h.style=Do({whiteSpace:"pre"},h.style),!Z)return Xn.createElement(A,xe,H,Xn.createElement(B,h,D));(N===void 0&&M||L)&&(N=!0),M=M||Age;var pe=[{type:"text",value:D}],X=_ge({astGenerator:Z,language:o,code:D,defaultCodeValue:pe});X.language===null&&(X.value=pe);var te=(a=(i=D.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&a!==void 0?a:0,ie=C+te,he=Cge(X,N,P,m,b,C,ie,O,L);return Xn.createElement(A,xe,Xn.createElement(B,h,!b&&H,M({rows:he,stylesheet:u,useInlineStyles:y})))}}const Nge=["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"],Ige=["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"],eR={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 VP(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Oge(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Dge(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function tR(e){return Dge(e)||VP(e)}const Lge=["","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 Mge(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let i=0,o=-1,s="",l,u;n.position&&("start"in n.position||"indent"in n.position?(u=n.position.indent,l=n.position.start):l=n.position);let c=(l?l.line:0)||1,p=(l?l.column:0)||1,f=g(),h;for(i--;++i<=e.length;)if(h===10&&(p=(u?u[o]:0)||1),h=e.charCodeAt(i),h===38){const m=e.charCodeAt(i+1);if(m===9||m===10||m===12||m===32||m===38||m===60||Number.isNaN(m)||r&&m===r){s+=String.fromCharCode(h),p++;continue}const v=i+1;let b=v,S=v,C;if(m===35){S=++b;const P=e.charCodeAt(S);P===88||P===120?(C="hexadecimal",S=++b):C="decimal"}else C="named";let k="",R="",O="";const N=C==="named"?tR:C==="decimal"?VP:Oge;for(S--;++S<=e.length;){const P=e.charCodeAt(S);if(!N(P))break;O+=String.fromCharCode(P),C==="named"&&Ige.includes(O)&&(k=O,R=Kd(O))}let _=e.charCodeAt(S)===59;if(_){S++;const P=C==="named"?Kd(O):!1;P&&(k=O,R=P)}let L=1+S-v,I="";if(!(!_&&n.nonTerminated===!1))if(!O)C!=="named"&&y(4,L);else if(C==="named"){if(_&&!R)y(5,1);else if(k!==O&&(S=b+k.length,L=1+S-b,_=!1),!_){const P=k?1:3;if(n.attribute){const M=e.charCodeAt(S);M===61?(y(P,L),R=""):tR(M)?R="":y(P,L)}else y(P,L)}I=R}else{_||y(2,L);let P=Number.parseInt(O,C==="hexadecimal"?16:10);if(zge(P))y(7,L),I="�";else if(P in eR)y(6,L),I=eR[P];else{let M="";Pge(P)&&y(6,L),P>65535&&(P-=65536,M+=String.fromCharCode(P>>>10|55296),P=56320|P&1023),I=M+String.fromCharCode(P)}}if(I){x(),f=g(),i=S-1,p+=S-v+1,a.push(I);const P=g();P.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,I,{start:f,end:P},e.slice(v-1,S)),f=P}else O=e.slice(v-1,S),s+=O,p+=O.length,i=S-1}else h===10&&(c++,o++,p=0),Number.isNaN(h)?x():(s+=String.fromCharCode(h),p++);return a.join("");function g(){return{line:c,column:p,offset:i+((l?l.offset:0)||0)}}function y(m,v){let b;n.warning&&(b=g(),b.column+=v,b.offset+=v,n.warning.call(n.warningContext||void 0,Lge[m],b,m))}function x(){s&&(a.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:g()}),s="")}}function zge(e){return e>=55296&&e<=57343||e>1114111}function Pge(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 jge=0,Yf={},Fn={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++jge}),e.__id},clone:function e(t,n){n=n||{};var r,a;switch(Fn.util.type(t)){case"Object":if(a=Fn.util.objId(t),n[a])return n[a];r={},n[a]=r;for(var i in t)t.hasOwnProperty(i)&&(r[i]=e(t[i],n));return r;case"Array":return a=Fn.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:Yf,plaintext:Yf,text:Yf,txt:Yf,extend:function(e,t){var n=Fn.util.clone(Fn.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Fn.languages;var a=r[e],i={};for(var o in a)if(a.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);n.hasOwnProperty(o)||(i[o]=a[o])}var l=r[e];return r[e]=i,Fn.languages.DFS(Fn.languages,function(u,c){c===l&&u!=e&&(this[u]=i)}),i},DFS:function e(t,n,r,a){a=a||{};var i=Fn.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],l=Fn.util.type(s);l==="Object"&&!a[i(s)]?(a[i(s)]=!0,e(s,n,null,a)):l==="Array"&&!a[i(s)]&&(a[i(s)]=!0,e(s,n,o,a))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Fn.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Fn.tokenize(r.code,r.grammar),Fn.hooks.run("after-tokenize",r),wd.stringify(Fn.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 Fge;return Hh(a,a.head,e),GP(e,a,t,a.head,0),Uge(a)},hooks:{all:{},add:function(e,t){var n=Fn.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Fn.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:wd};function wd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function nR(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function GP(e,t,n,r,a,i){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(i&&i.cause==o+","+l)return;var u=s[l],c=u.inside,p=!!u.lookbehind,f=!!u.greedy,h=u.alias;if(f&&!u.pattern.global){var g=u.pattern.toString().match(/[imsuy]*$/)[0];u.pattern=RegExp(u.pattern.source,g+"g")}for(var y=u.pattern||u,x=r.next,m=a;x!==t.tail&&!(i&&m>=i.reach);m+=x.value.length,x=x.next){var v=x.value;if(t.length>e.length)return;if(!(v instanceof wd)){var b=1,S;if(f){if(S=nR(y,m,e,p),!S||S.index>=e.length)break;var O=S.index,C=S.index+S[0].length,k=m;for(k+=x.value.length;O>=k;)x=x.next,k+=x.value.length;if(k-=x.value.length,m=k,x.value instanceof wd)continue;for(var R=x;R!==t.tail&&(k<C||typeof R.value=="string");R=R.next)b++,k+=R.value.length;b--,v=e.slice(m,k),S.index-=m}else if(S=nR(y,0,v,p),!S)continue;var O=S.index,N=S[0],_=v.slice(0,O),L=v.slice(O+N.length),I=m+v.length;i&&I>i.reach&&(i.reach=I);var P=x.prev;_&&(P=Hh(t,P,_),m+=_.length),Bge(t,P,b);var M=new wd(o,c?Fn.tokenize(N,c):N,h,N);if(x=Hh(t,P,M),L&&Hh(t,x,L),b>1){var F={cause:o+","+l,reach:I};GP(e,t,n,x.prev,m,F),i&&F.reach>i.reach&&(i.reach=F.reach)}}}}}}function Fge(){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 Hh(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 Bge(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 Uge(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const WP=Fn;function qP(){}qP.prototype=WP;const $=new qP;$.highlight=$ge;$.register=Hge;$.alias=Vge;$.registered=Gge;$.listLanguages=Wge;$.util.encode=qge;$.Token.stringify=sx;function $ge(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($.languages,r))n=$.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:WP.highlight.call($,e,n,r)}}function Hge(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn($.languages,e.displayName)||e($)}function Vge(e,t){const n=$.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let a;for(a in r)if(Object.hasOwn(r,a)){const i=r[a],o=typeof i=="string"?[i]:i;let s=-1;for(;++s<o.length;)n[o[s]]=n[a]}}function Gge(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn($.languages,e)}function Wge(){const e=$.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function sx(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(sx(e[a],t));return r}const n={attributes:{},classes:["token",e.type],content:sx(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),$.hooks.run("wrap",n),IP(n.tag+"."+n.classes.join("."),Yge(n.attributes),n.content)}function qge(e){return e}function Yge(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Mge(e[t]));return e}const Xge={'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"}};Jn.displayName="markup";Jn.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Jn(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(/&amp;/,"&"))}),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 i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};i["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:i},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}sl.displayName="css";sl.aliases=[];function sl(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)}st.displayName="clike";st.aliases=[];function st(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:/[{}[\];(),.:]/}}fE.displayName="regex";fE.aliases=[];function fE(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"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),l={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:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":i,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":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":l}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}ur.displayName="javascript";ur.aliases=["js"];function ur(e){e.register(st),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}hE.displayName="abap";hE.aliases=[];function hE(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:/[,.:()]/}}gE.displayName="abnf";gE.aliases=[];function gE(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)}mE.displayName="actionscript";mE.aliases=[];function mE(e){e.register(ur),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}})}bE.displayName="ada";bE.aliases=[];function bE(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}}yE.displayName="agda";yE.aliases=[];function yE(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)}vE.displayName="al";vE.aliases=[];function vE(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:/[()\[\]{}:.;,]/}}xE.displayName="antlr4";xE.aliases=["g4"];function xE(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}SE.displayName="apacheconf";SE.aliases=[];function SE(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:/\^?.*\$|\^.*\$?/}}Gp.displayName="sql";Gp.aliases=[];function Gp(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:/[;[\]()`,.]/}}wE.displayName="apex";wE.aliases=[];function wE(e){e.register(st),e.register(Gp),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 i={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:i},{pattern:a(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:i},{pattern:a(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:i}],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)}EE.displayName="apl";EE.aliases=[];function EE(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"}}}kE.displayName="applescript";kE.aliases=[];function kE(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:/[{}():,¬«»《》]/}}TE.displayName="aql";TE.aliases=[];function TE(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:/::|[?.:,;()[\]{}]/}}vi.displayName="c";vi.aliases=[];function vi(e){e.register(st),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}cc.displayName="cpp";cc.aliases=[];function cc(e){e.register(vi),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)}CE.displayName="arduino";CE.aliases=["ino"];function CE(e){e.register(cc),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}AE.displayName="arff";AE.aliases=[];function AE(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:/[{},]/}}_E.displayName="armasm";_E.aliases=["arm-asm"];function _E(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}Dm.displayName="bash";Dm.aliases=["sh","shell"];function Dm(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 i=["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,s=0;s<i.length;s++)o[i[s]]=t.languages.bash[i[s]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}Lm.displayName="yaml";Lm.aliases=["yml"];function Lm(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ 	]+"+n.source+")?|"+n.source+"(?:[ 	]+"+r.source+")?)",i=/(?:[^\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 s(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return l});return RegExp(c,u)}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"(?:"+i+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\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:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?: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)}RE.displayName="markdown";RE.aliases=["md"];function RE(e){e.register(Jn),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\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("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),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(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,p=u.length;c<p;c++){var f=u[c];if(f.type!=="code"){l(f.content);continue}var h=f.content[1],g=f.content[3];if(h&&g&&h.type==="code-language"&&g.type==="code-block"&&typeof h.content=="string"){var y=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase();var x="language-"+y;g.alias?typeof g.alias=="string"?g.alias=[g.alias,x]:g.alias.push(x):g.alias=[x]}}}l(s.tokens)}),t.hooks.add("wrap",function(s){if(s.type==="code-block"){for(var l="",u=0,c=s.classes.length;u<c;u++){var p=s.classes[u],f=/language-(.+)/.exec(p);if(f){l=f[1];break}}var h=t.languages[l];if(h)s.content=t.highlight(s.content.value,h,l);else if(l&&l!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);s.attributes.id=g,t.plugins.autoloader.loadLanguages(l,function(){var y=document.getElementById(g);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[l],l))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown}(e)}NE.displayName="arturo";NE.aliases=["art"];function NE(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)}IE.displayName="asciidoc";IE.aliases=["adoc"];function IE(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(i){i=i.split(" ");for(var o={},s=0,l=i.length;s<l;s++)o[i[s]]=r[i[s]];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(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&amp;/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}dc.displayName="csharp";dc.aliases=["cs","dotnet"];function dc(e){e.register(st),function(t){function n(D,Z){return D.replace(/<<(\d+)>>/g,function(J,H){return"(?:"+Z[+H]+")"})}function r(D,Z,J){return RegExp(n(D,Z),"")}function a(D,Z){for(var J=0;J<Z;J++)D=D.replace(/<<self>>/g,function(){return"(?:"+D+")"});return D.replace(/<<self>>/g,"[^\\s\\S]")}var i={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(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=o(i.typeDeclaration),l=RegExp(o(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),u=o(i.typeDeclaration+" "+i.contextual+" "+i.other),c=o(i.type+" "+i.typeDeclaration+" "+i.other),p=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=a(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,g=n(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),x=/\[\s*(?:,\s*)*\]/.source,m=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,x]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,f,x]),b=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),S=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[b,y,x]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,S]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,g]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,c,h]),inside:C}],keyword:l,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,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"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,[s,g,h,S,l.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},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 N=R+"|"+k,_=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),L=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,P=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,L]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[L]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,F=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),A=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,M]),j=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[N]),2),B=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[j,M]);function V(D,Z){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Z,M]),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,[A]),lookbehind:!0,greedy:!0,inside:V(A,F)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[B]),lookbehind:!0,greedy:!0,inside:V(B,j)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}OE.displayName="aspnet";OE.aliases=[];function OE(e){e.register(dc),e.register(Jn),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||{}}})}DE.displayName="asm6502";DE.aliases=[];function DE(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:/[(),:]/}}LE.displayName="asmatmel";LE.aliases=[];function LE(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:/[(),:]/}}ME.displayName="autohotkey";ME.aliases=[];function ME(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:/[{}[\]():,]/}}zE.displayName="autoit";zE.aliases=[];function zE(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:/[\[\]().,:]/}}PE.displayName="avisynth";PE.aliases=["avs"];function PE(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(p,f){return c[+f]})}function r(u,c,p){return RegExp(n(u,c),p)}var a=/bool|clip|float|int|string|val/.source,i=[/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("|"),s=[/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("|"),l=[i,o,s].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,[l],"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)}jE.displayName="avro-idl";jE.aliases=["avdl"];function jE(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"]}FE.displayName="awk";FE.aliases=["gawk"];function FE(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}Mm.displayName="basic";Mm.aliases=[];function Mm(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:/[,;:()]/}}BE.displayName="batch";BE.aliases=[];function BE(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\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:i,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:i,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:i,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:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}UE.displayName="bbcode";UE.aliases=["shortcode"];function UE(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}$E.displayName="bbj";$E.aliases=[];function $E(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)}HE.displayName="bicep";HE.aliases=[];function HE(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}VE.displayName="birb";VE.aliases=[];function VE(e){e.register(st),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"}})}GE.displayName="bison";GE.aliases=[];function GE(e){e.register(vi),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:/%[%?]|[|:;\[\]<>]/}}})}WE.displayName="bnf";WE.aliases=["rbnf"];function WE(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}qE.displayName="bqn";qE.aliases=[];function qE(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}YE.displayName="brainfuck";YE.aliases=[];function YE(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}XE.displayName="brightscript";XE.aliases=[];function XE(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}KE.displayName="bro";KE.aliases=[];function KE(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:/[{}[\];(),.:]/}}ZE.displayName="bsl";ZE.aliases=["oscript"];function ZE(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}QE.displayName="cfscript";QE.aliases=["cfc"];function QE(e){e.register(st),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}JE.displayName="chaiscript";JE.aliases=[];function JE(e){e.register(st),e.register(cc),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]+/}}})}e2.displayName="cil";e2.aliases=[];function e2(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]+/}}t2.displayName="cilkc";t2.aliases=["cilk-c"];function t2(e){e.register(vi),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}n2.displayName="cilkcpp";n2.aliases=["cilk","cilk-cpp"];function n2(e){e.register(cc),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}r2.displayName="clojure";r2.aliases=[];function r2(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:/[{}\[\](),]/}}a2.displayName="cmake";a2.aliases=[];function a2(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:/[()>}]|\$[<{]/}}i2.displayName="cobol";i2.aliases=[];function i2(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:/[.:,()]/}}o2.displayName="coffeescript";o2.aliases=["coffee"];function o2(e){e.register(ur),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)}s2.displayName="concurnas";s2.aliases=["conc"];function s2(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}l2.displayName="csp";l2.aliases=[];function l2(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)}u2.displayName="cooklang";u2.aliases=[];function u2(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,a=/\{[^}#@]*\}/.source,i=r+a,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={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("#(?:"+i+"|"+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("@(?:"+i+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"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)}c2.displayName="coq";c2.aliases=[];function c2(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)}pc.displayName="ruby";pc.aliases=["rb"];function pc(e){e.register(st),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)}d2.displayName="crystal";d2.aliases=[];function d2(e){e.register(pc),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)}p2.displayName="css-extras";p2.aliases=[];function p2(e){e.register(sl),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},i={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:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:i})}(e)}f2.displayName="csv";f2.aliases=[];function f2(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}h2.displayName="cue";h2.aliases=[];function h2(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)}g2.displayName="cypher";g2.aliases=[];function g2(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:/[()[\]{},;.]/}}m2.displayName="d";m2.aliases=[];function m2(e){e.register(st),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"}})}b2.displayName="dart";b2.aliases=[];function b2(e){e.register(st),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)}y2.displayName="dataweave";y2.aliases=[];function y2(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)}v2.displayName="dax";v2.aliases=[];function v2(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:/[;\[\](){}`,.]/}}x2.displayName="dhall";x2.aliases=[];function x2(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}S2.displayName="diff";S2.aliases=[];function S2(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],i=[];/^\w+$/.test(r)||i.push(/\w+/.exec(r)[0]),r==="diff"&&i.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+a+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:i,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)}cr.displayName="markup-templating";cr.aliases=[];function cr(e){e.register(Jn),function(t){function n(r,a){return"___"+r.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,a,i,o){if(r.language===a){var s=r.tokenStack=[];r.code=r.code.replace(i,function(l){if(typeof o=="function"&&!o(l))return l;for(var u=s.length,c;r.code.indexOf(c=n(a,u))!==-1;)++u;return s[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,a){if(r.language!==a||!r.tokenStack)return;r.grammar=t.languages[a];var i=0,o=Object.keys(r.tokenStack);function s(l){for(var u=0;u<l.length&&!(i>=o.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var p=o[i],f=r.tokenStack[p],h=typeof c=="string"?c:c.content,g=n(a,p),y=h.indexOf(g);if(y>-1){++i;var x=h.substring(0,y),m=new t.Token(a,t.tokenize(f,r.grammar),"language-"+a,f),v=h.substring(y+g.length),b=[];x&&b.push.apply(b,s([x])),b.push(m),v&&b.push.apply(b,s([v])),typeof c=="string"?l.splice.apply(l,[u,1].concat(b)):c.content=b}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}w2.displayName="django";w2.aliases=["jinja2"];function w2(e){e.register(cr),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)}E2.displayName="dns-zone-file";E2.aliases=["dns-zone"];function E2(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"]}k2.displayName="docker";k2.aliases=["dockerfile"];function k2(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,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),o={pattern:RegExp(a),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(/<OPT>/g,function(){return i}).replace(/<SP>/g,function(){return r}),RegExp(u,c)}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:l(/(^(?: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:l(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}T2.displayName="dot";T2.aliases=["gv"];function T2(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(i,o){return RegExp(i.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)}C2.displayName="ebnf";C2.aliases=[];function C2(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:/[-=|*/!]/}}A2.displayName="editorconfig";A2.aliases=[];function A2(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:/^=/}}}}_2.displayName="eiffel";_2.aliases=[];function _2(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}R2.displayName="ejs";R2.aliases=["eta"];function R2(e){e.register(ur),e.register(cr),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)}N2.displayName="elixir";N2.aliases=[];function N2(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}}}})}I2.displayName="elm";I2.aliases=[];function I2(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:/[{}[\]|(),.:]/}}zm.displayName="lua";zm.aliases=[];function zm(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:/[\[\](){},;]|\.+|:+/}}O2.displayName="etlua";O2.aliases=[];function O2(e){e.register(zm),e.register(cr),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)}D2.displayName="erb";D2.aliases=[];function D2(e){e.register(cr),e.register(pc),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)}L2.displayName="erlang";L2.aliases=[];function L2(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:/[()[\]{}:;,.#|]|<<|>>/}}M2.displayName="excel-formula";M2.aliases=["xls","xlsx"];function M2(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"]}z2.displayName="fsharp";z2.aliases=[];function z2(e){e.register(st),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}})}P2.displayName="factor";P2.aliases=[];function P2(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}},i=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(u){return new RegExp("(^|\\s)(?:"+u.map(i).join("|")+")(?=\\s|$)")},s={"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(s).forEach(function(u){a[u].pattern=o(s[u])});var l=["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(l),t.languages.factor=a})(e)}j2.displayName="false";j2.aliases=[];function j2(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)}F2.displayName="firestore-security-rules";F2.aliases=[];function F2(e){e.register(st),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:/,/}}})}B2.displayName="flow";B2.aliases=[];function B2(e){e.register(ur),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)}U2.displayName="fortran";U2.aliases=[];function U2(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:/\(\/|\/\)|[(),;:&]/}}$2.displayName="ftl";$2.aliases=[];function $2(e){e.register(cr),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(i){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(i,"ftl",o)}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"ftl")})}(e)}H2.displayName="gml";H2.aliases=["gamemakerlanguage"];function H2(e){e.register(st),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/})}V2.displayName="gap";V2.aliases=[];function V2(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}G2.displayName="gcode";G2.aliases=[];function G2(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:/[:*]/}}W2.displayName="gdscript";W2.aliases=[];function W2(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:/[.:,;()[\]{}]/}}q2.displayName="gedcom";q2.aliases=[];function q2(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"}}}Y2.displayName="gettext";Y2.aliases=["po"];function Y2(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}X2.displayName="gherkin";X2.aliases=[];function X2(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)}K2.displayName="git";K2.aliases=[];function K2(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}}Z2.displayName="glsl";Z2.aliases=[];function Z2(e){e.register(vi),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/})}Q2.displayName="gn";Q2.aliases=["gni"];function Q2(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}J2.displayName="linker-script";J2.aliases=["ld"];function J2(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"]}e4.displayName="go";e4.aliases=[];function e4(e){e.register(st),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"]}t4.displayName="go-module";t4.aliases=["go-mod"];function t4(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:/[()[\],]/}}n4.displayName="gradle";n4.aliases=[];function n4(e){e.register(st),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)}r4.displayName="graphql";r4.aliases=[];function r4(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(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),a=0;function i(x){return r[a+x]}function o(x,m){m=m||0;for(var v=0;v<x.length;v++){var b=i(v+m);if(!b||b.type!==x[v])return!1}return!0}function s(x,m){for(var v=1,b=a;b<r.length;b++){var S=r[b],C=S.content;if(S.type==="punctuation"&&typeof C=="string"){if(x.test(C))v++;else if(m.test(C)&&(v--,v===0))return b}}return-1}function l(x,m){var v=x.alias;v?Array.isArray(v)||(x.alias=v=[v]):x.alias=v=[],v.push(m)}for(;a<r.length;){var u=r[a++];if(u.type==="keyword"&&u.content==="mutation"){var c=[];if(o(["definition-mutation","punctuation"])&&i(1).content==="("){a+=2;var p=s(/^\($/,/^\)$/);if(p===-1)continue;for(;a<p;a++){var f=i(0);f.type==="variable"&&(l(f,"variable-input"),c.push(f.content))}a=p+1}if(o(["punctuation","property-query"])&&i(0).content==="{"&&(a++,l(i(0),"property-mutation"),c.length>0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var g=a;g<h;g++){var y=r[g];y.type==="variable"&&c.indexOf(y.content)>=0&&l(y,"variable-input")}}}}})}a4.displayName="groovy";a4.aliases=[];function a4(e){e.register(st),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)}i4.displayName="less";i4.aliases=[];function i4(e){e.register(sl),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"}})}o4.displayName="scss";o4.aliases=[];function o4(e){e.register(sl),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}s4.displayName="textile";s4.aliases=[];function s4(e){e.register(Jn),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function a(p,f){return RegExp(p.replace(/<MOD>/g,function(){return"(?:"+n+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),f||"")}var i={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:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:i},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:i},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:i},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:i},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:i},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:/[()]/}}}}}),s=o.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=s.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}l4.displayName="haml";l4.aliases=[];function l4(e){e.register(pc),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={},i=0,o=r.length;i<o;i++){var s=r[i];s=typeof s=="string"?{filter:s,language:s}:s,t.languages[s.language]&&(a["filter-"+s.filter]={pattern:RegExp(n.replace("{{filter_name}}",function(){return s.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("haml","filter",a)}(e)}u4.displayName="handlebars";u4.aliases=["hbs","mustache"];function u4(e){e.register(cr),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)}Wp.displayName="haskell";Wp.aliases=["hs"];function Wp(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}c4.displayName="haxe";c4.aliases=[];function c4(e){e.register(st),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"}})}d4.displayName="hcl";d4.aliases=[];function d4(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:/[=\[\]{}]/}}p4.displayName="hlsl";p4.aliases=[];function p4(e){e.register(vi),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/})}f4.displayName="hoon";f4.aliases=[];function f4(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}h4.displayName="hpkp";h4.aliases=[];function h4(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}g4.displayName="hsts";g4.aliases=[];function g4(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}qp.displayName="json";qp.aliases=["webmanifest"];function qp(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}m4.displayName="uri";m4.aliases=["url"];function m4(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}b4.displayName="http";b4.aliases=[];function b4(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ 	]*(?![ 	]))[^]+","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},i={"application/json":!0,"application/xml":!0};function o(c){var p=c.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+p+"(?![+\\w.-])";return"(?:"+c+"|"+f+")"}var s;for(var l in a)if(a[l]){s=s||{};var u=i[l]?o(l):l;s[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[l]}}s&&t.languages.insertBefore("http","header",s)})(e)}y4.displayName="ichigojam";y4.aliases=[];function y4(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:/[\[,;:()\]]/}}v4.displayName="icon";v4.aliases=[];function v4(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:/[\[\](){},;]/}}x4.displayName="icu-message-format";x4.aliases=[];function x4(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(/<SELF>/g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:r,greedy:!0,inside:{escape:a}},o=n(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),s={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":s,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":s,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:i},s.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)}S4.displayName="idris";S4.aliases=["idr"];function S4(e){e.register(Wp),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}w4.displayName="ignore";w4.aliases=["gitignore","hgignore","npmignore"];function w4(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)}E4.displayName="inform7";E4.aliases=[];function E4(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"}}k4.displayName="ini";k4.aliases=[];function k4(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:/=/}}T4.displayName="io";T4.aliases=[];function T4(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:/[{}[\];(),.:]/}}C4.displayName="j";C4.aliases=[];function C4(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:/[()]/}}fc.displayName="java";fc.aliases=[];function fc(e){e.register(st),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)}hc.displayName="php";hc.aliases=[];function hc(e){e.register(cr),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,i=/<?=>|\?\?=?|\.{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:i,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{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:s}},{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:s}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"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:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}gc.displayName="javadoclike";gc.aliases=[];function gc(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(i,o){var s="doc-comment",l=t.languages[i];if(l){var u=l[s];if(!u){var c={};c[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(i,"comment",c),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var p=0,f=u.length;p<f;p++)u[p]instanceof RegExp&&(u[p]={pattern:u[p]}),o(u[p]);else o(u)}}function a(i,o){typeof i=="string"&&(i=[i]),i.forEach(function(s){r(s,function(l){l.inside||(l.inside={}),l.inside.rest=o})})}Object.defineProperty(n,"addSupport",{value:a}),n.addSupport(["java","javascript","php"],n)})(e)}A4.displayName="scala";A4.aliases=[];function A4(e){e.register(fc),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}_4.displayName="javadoc";_4.aliases=[];function _4(e){e.register(fc),e.register(gc),e.register(Jn),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)}R4.displayName="javastacktrace";R4.aliases=[];function R4(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/}}}}N4.displayName="jexl";N4.aliases=[];function N4(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:/[{}[\](),.]/}}I4.displayName="jolie";I4.aliases=[];function I4(e){e.register(st),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]*:)/}})}O4.displayName="jq";O4.aliases=[];function O4(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:/^\\\(|\)$/}}},i=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=i})(e)}D4.displayName="js-templates";D4.aliases=[];function D4(e){e.register(ur),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,a=n.inside.interpolation,i=a.inside["interpolation-punctuation"],o=a.pattern.source;function s(g,y){if(t.languages[g])return{pattern:RegExp("((?:"+y+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(g,y){return"___"+y.toUpperCase()+"_"+g+"___"}function u(g,y,x){var m={code:g,grammar:y,language:x};return t.hooks.run("before-tokenize",m),m.tokens=t.tokenize(m.code,m.grammar),t.hooks.run("after-tokenize",m),m.tokens}function c(g){var y={};y["interpolation-punctuation"]=i;var x=t.tokenize(g,y);if(x.length===3){var m=[1,1];m.push.apply(m,u(x[1],t.languages.javascript,"javascript")),x.splice.apply(x,m)}return new t.Token("interpolation",x,a.alias,g)}function p(g,y,x){var m=t.tokenize(g,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),v=0,b={},S=m.map(function(O){if(typeof O=="string")return O;for(var N=O.content,_;g.indexOf(_=l(v++,x))!==-1;);return b[_]=N,_}).join(""),C=u(S,y,x),k=Object.keys(b);v=0;function R(O){for(var N=0;N<O.length;N++){if(v>=k.length)return;var _=O[N];if(typeof _=="string"||typeof _.content=="string"){var L=k[v],I=typeof _=="string"?_:_.content,P=I.indexOf(L);if(P!==-1){++v;var M=I.substring(0,P),F=c(b[L]),A=I.substring(P+L.length),j=[];if(M&&j.push(M),j.push(F),A){var B=[A];R(B),j.push.apply(j,B)}typeof _=="string"?(O.splice.apply(O,[N,1].concat(j)),N+=j.length-1):_.content=j}}else{var V=_.content;Array.isArray(V)?R(V):R([V])}}}return R(C),new t.Token(x,C,"language-"+x,g)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(g){if(!(g.language in f))return;function y(x){for(var m=0,v=x.length;m<v;m++){var b=x[m];if(typeof b!="string"){var S=b.content;if(!Array.isArray(S)){typeof S!="string"&&y([S]);continue}if(b.type==="template-string"){var C=S[1];if(S.length===3&&typeof C!="string"&&C.type==="embedded-code"){var k=h(C),R=C.alias,O=Array.isArray(R)?R[0]:R,N=t.languages[O];if(!N)continue;S[1]=p(k,N,O)}}else y(S)}}}y(g.tokens)});function h(g){return typeof g=="string"?g:Array.isArray(g)?g.map(h).join(""):h(g.content)}}(e)}Yp.displayName="typescript";Yp.aliases=["ts"];function Yp(e){e.register(ur),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)}L4.displayName="jsdoc";L4.aliases=[];function L4(e){e.register(gc),e.register(ur),e.register(Yp),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)}M4.displayName="n4js";M4.aliases=["n4jsd"];function M4(e){e.register(ur),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}z4.displayName="js-extras";z4.aliases=[];function z4(e){e.register(ur),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(l,u){return RegExp(l.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}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 i=r[a],o=t.languages.javascript[i];t.util.type(o)==="RegExp"&&(o=t.languages.javascript[i]={pattern:o});var s=o.inside||{};o.inside=s,s["maybe-class-name"]=/^[A-Z][\s\S]*/}}(e)}P4.displayName="json5";P4.aliases=[];function P4(e){e.register(qp),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)}j4.displayName="jsonp";j4.aliases=[];function j4(e){e.register(qp),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*\()/})}F4.displayName="jsstacktrace";F4.aliases=[];function F4(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:/:/}}}}}}B4.displayName="julia";B4.aliases=[];function B4(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|[πℯ]/}}U4.displayName="keepalived";U4.aliases=[];function U4(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:/[\{\}]/}}$4.displayName="keyman";$4.aliases=[];function $4(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:/[()=,]/}}H4.displayName="kotlin";H4.aliases=["kt","kts"];function H4(e){e.register(st),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)}V4.displayName="kumir";V4.aliases=["kum"];function V4(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(a,i){return RegExp(a.replace(/<nonId>/g,n),i)}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)}G4.displayName="kusto";G4.aliases=[];function G4(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:/[()\[\]{},;.:]/}}W4.displayName="latex";W4.aliases=["context","tex"];function W4(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)}q4.displayName="latte";q4.aliases=[];function q4(e){e.register(st),e.register(cr),e.register(hc),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)}Xp.displayName="scheme";Xp.aliases=[];function Xp(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(i){return"(?:"+r[i].trim()+")"});return r[a]}})(e)}Y4.displayName="lilypond";Y4.aliases=["ly"];function Y4(e){e.register(Xp),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 i=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/};i["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=i,t.languages.ly=i}(e)}X4.displayName="liquid";X4.aliases=[];function X4(e){e.register(cr),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 i=/^\{%-?\s*(\w+)/.exec(a);if(i){var o=i[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")})}K4.displayName="lisp";K4.aliases=["elisp","emacs","emacs-lisp"];function K4(e){(function(t){function n(g){return RegExp(/(\()/.source+"(?:"+g+")"+/(?=[\s\)])/.source)}function r(g){return RegExp(/([\s([])/.source+"(?:"+g+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+a,o="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={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)"+l),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),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+u+/\)/.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}]},p={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:c},f="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(o+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:p},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:p},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=h,c.defun.inside.arguments=t.util.clone(h),c.defun.inside.arguments.inside.sublist=h,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}Z4.displayName="livescript";Z4.aliases=[];function Z4(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}Q4.displayName="llvm";Q4.aliases=[];function Q4(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)}J4.displayName="log";J4.aliases=[];function J4(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:/[\[\].,]/}}ek.displayName="lolcode";ek.aliases=[];function ek(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}|…|,|!/}}tk.displayName="magma";tk.aliases=[];function tk(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:/[()[\]{}<>,;.:]/}}nk.displayName="makefile";nk.aliases=[];function nk(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:/[:;(){}]/}}Pm.displayName="mata";Pm.aliases=[];function Pm(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)}rk.displayName="matlab";rk.aliases=[];function rk(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}|[.,;\[\](){}!]/}}ak.displayName="maxscript";ak.aliases=[];function ak(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)}ik.displayName="mel";ik.aliases=[];function ik(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}ok.displayName="mermaid";ok.aliases=[];function ok(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:/[(){};]/}}sk.displayName="metafont";sk.aliases=[];function sk(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}}}lk.displayName="mizar";lk.aliases=[];function lk(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:/\(#|#\)|[,:;\[\](){}]/}}uk.displayName="mongodb";uk.aliases=[];function uk(e){e.register(ur),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(i){return i.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)}ck.displayName="monkey";ck.aliases=[];function ck(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:/[.,:;()\[\]]/}}dk.displayName="moonscript";dk.aliases=["moon"];function dk(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}pk.displayName="n1ql";pk.aliases=[];function pk(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:/[;[\](),.{}:]/}}fk.displayName="nand2tetris-hdl";fk.aliases=[];function fk(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:/[{}[\];(),:]/}}hk.displayName="naniscript";hk.aliases=["nani"];function hk(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 s=o.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=i(l);a(u)||(l.type="bad-line",l.content=u)}})});function a(o){for(var s="[]{}",l=[],u=0;u<o.length;u++){var c=o[u],p=s.indexOf(c);if(p!==-1){if(p%2===0)l.push(p+1);else if(l.pop()!==p)return!1}}return l.length===0}function i(o){return typeof o=="string"?o:Array.isArray(o)?o.map(i).join(""):i(o.content)}})(e)}gk.displayName="nasm";gk.aliases=[];function gk(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:/[\[\]*+\-\/%<>=&|$!]/}}mk.displayName="neon";mk.aliases=[];function mk(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:/[,:=[\]{}()-]/}}bk.displayName="nevod";bk.aliases=[];function bk(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\-.]+/}}yk.displayName="nginx";yk.aliases=[];function yk(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)}vk.displayName="nim";vk.aliases=[];function vk(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}xk.displayName="nix";xk.aliases=[];function xk(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}Sk.displayName="nsis";Sk.aliases=[];function Sk(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}}}wk.displayName="objectivec";wk.aliases=["objc"];function wk(e){e.register(vi),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}Ek.displayName="ocaml";Ek.aliases=[];function Ek(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/}}kk.displayName="odin";kk.aliases=[];function kk(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)}Tk.displayName="opencl";Tk.aliases=[];function Tk(e){e.register(vi),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)}Ck.displayName="openqasm";Ck.aliases=["qasm"];function Ck(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}Ak.displayName="oz";Ak.aliases=[];function Ak(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:/[\[\](){}.:;?]/}}_k.displayName="parigp";_k.aliases=[];function _k(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:/[\[\]{}().,:;|]/}}Rk.displayName="parser";Rk.aliases=[];function Rk(e){e.register(Jn),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)}Nk.displayName="pascal";Nk.aliases=["objectpascal"];function Nk(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}Ik.displayName="pascaligo";Ik.aliases=[];function Ik(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:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=a[s],o},{});a["class-name"].forEach(function(o){o.inside=i})})(e)}Ok.displayName="psl";Ok.aliases=[];function Ok(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:/[(){}\[\];,]/}}Dk.displayName="pcaxis";Dk.aliases=["px"];function Dk(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}Lk.displayName="peoplecode";Lk.aliases=["pcode"];function Lk(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}Mk.displayName="perl";Mk.aliases=[];function Mk(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)}zk.displayName="phpdoc";zk.aliases=[];function zk(e){e.register(gc),e.register(hc),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)}Pk.displayName="php-extras";Pk.aliases=[];function Pk(e){e.register(hc),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:/::|\\/}}})}jk.displayName="plant-uml";jk.aliases=["plantuml"];function jk(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,a=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,i="(?:-+"+a+"-+|\\.+"+a+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+i+s+"|"+o+i+"(?:"+s+")?)"+u;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+c+/(?![-.<>?|\\\]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)}Fk.displayName="plsql";Fk.aliases=[];function Fk(e){e.register(Gp),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"}})}Bk.displayName="powerquery";Bk.aliases=["mscript","pq"];function Bk(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}Uk.displayName="powershell";Uk.aliases=[];function Uk(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)}$k.displayName="processing";$k.aliases=[];function $k(e){e.register(st),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"}})}Hk.displayName="prolog";Hk.aliases=[];function Hk(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:/[(){}\[\],]/}}Vk.displayName="promql";Vk.aliases=[];function Vk(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"],i=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(?:"+i.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)}Gk.displayName="properties";Gk.aliases=[];function Gk(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:/[=:]/}}Wk.displayName="protobuf";Wk.aliases=[];function Wk(e){e.register(st),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)}qk.displayName="stylus";qk.aliases=[];function qk(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)}Yk.displayName="twig";Yk.aliases=[];function Yk(e){e.register(cr),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")})}Xk.displayName="pug";Xk.aliases=[];function Xk(e){e.register(ur),e.register(Jn),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={},i=0,o=r.length;i<o;i++){var s=r[i];s=typeof s=="string"?{filter:s,language:s}:s,t.languages[s.language]&&(a["filter-"+s.filter]={pattern:RegExp(n.replace("<filter_name>",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",a)}(e)}Kk.displayName="puppet";Kk.aliases=[];function Kk(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)}Zk.displayName="pure";Zk.aliases=[];function Zk(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 i=a;if(typeof a!="string"&&(i=a.alias,a=a.lang),t.languages[i]){var o={};o["inline-lang-"+i]={pattern:RegExp(r.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+i].inside.rest=t.util.clone(t.languages[i]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}Qk.displayName="purebasic";Qk.aliases=["pbfasm"];function Qk(e){e.register(st),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}Jk.displayName="purescript";Jk.aliases=["purs"];function Jk(e){e.register(Wp),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}jm.displayName="python";jm.aliases=["py"];function jm(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:/![sra](?=[:}]$)/,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}eT.displayName="qsharp";eT.aliases=["qs"];function eT(e){e.register(st),function(t){function n(h,g){return h.replace(/<<(\d+)>>/g,function(y,x){return"(?:"+g[+x]+")"})}function r(h,g,y){return RegExp(n(h,g),"")}function a(h,g){for(var y=0;y<g;y++)h=h.replace(/<<self>>/g,function(){return"(?:"+h+")"});return h.replace(/<<self>>/g,"[^\\s\\S]")}var i={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(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(i.type+" "+i.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:s,punctuation:/[<>()?,.:[\]]/},p=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[p]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:s,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 f=a(n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[p]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),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}tT.displayName="q";tT.aliases=[];function tT(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:/[(){}\[\];.]/}}nT.displayName="qml";nT.aliases=[];function nT(e){e.register(ur),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}),i=0;i<2;i++)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)}rT.displayName="qore";rT.aliases=[];function rT(e){e.register(st),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/})}aT.displayName="r";aT.aliases=[];function aT(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:/[(){}\[\],;]/}}iT.displayName="racket";iT.aliases=["rkt"];function iT(e){e.register(Xp),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}oT.displayName="cshtml";oT.aliases=["razor"];function oT(e){e.register(dc),e.register(Jn),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(v,b){for(var S=0;S<b;S++)v=v.replace(/<self>/g,function(){return"(?:"+v+")"});return v.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+n+")")}var i=a(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),o=a(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),s=a(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),l=a(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+i+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+i+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,p="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,p),h=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+a(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+h+")";t.languages.cshtml=t.languages.extend("markup",{});var y=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(g),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),x={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:y},m={pattern:RegExp(/(^|[^@])/.source+u),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:x}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+h),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+p),t.languages.insertBefore("inside","punctuation",{value:m},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+"(?:"+[s,/(?:code|functions)\s*/.source+s,/(?:for|foreach|lock|switch|using|while)\s*/.source+i+/\s*/.source+s,/do\s*/.source+s+/\s*while\s*/.source+i+/(?:\s*;)?/.source,/try\s*/.source+s+/\s*catch\s*/.source+i+/\s*/.source+s+/\s*finally\s*/.source+s,/if\s*/.source+i+/\s*/.source+s+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+i+")?"+/\s*/.source+s+")*",/helper\s+\w+\s*/.source+i+/\s*/.source+s].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:x}},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:x}},value:m,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml}(e)}Fm.displayName="jsx";Fm.aliases=[];function Fm(e){e.register(ur),e.register(Jn),function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(u,c){return u=u.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return i}),RegExp(u,c)}i=o(i).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 s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var c=[],p=0;p<u.length;p++){var f=u[p],h=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===s(f.content[0].content[1])&&c.pop():f.content[f.content.length-1].content==="/>"||c.push({tagName:s(f.content[0].content[1]),openedBraces:0}):c.length>0&&f.type==="punctuation"&&f.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof f=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var g=s(f);p<u.length-1&&(typeof u[p+1]=="string"||u[p+1].type==="plain-text")&&(g+=s(u[p+1]),u.splice(p+1,1)),p>0&&(typeof u[p-1]=="string"||u[p-1].type==="plain-text")&&(g=s(u[p-1])+g,u.splice(p-1,1),p--),u[p]=new t.Token("plain-text",g,null,g)}f.content&&typeof f.content!="string"&&l(f.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}sT.displayName="tsx";sT.aliases=[];function sT(e){e.register(Fm),e.register(Yp),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)}lT.displayName="reason";lT.aliases=[];function lT(e){e.register(st),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}uT.displayName="rego";uT.aliases=[];function uT(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:/[,;.\[\]{}()]/}}cT.displayName="renpy";cT.aliases=["rpy"];function cT(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}dT.displayName="rescript";dT.aliases=["res"];function dT(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}pT.displayName="rest";pT.aliases=[];function pT(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}}}fT.displayName="rip";fT.aliases=[];function fT(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`'",.:;#\/\\()<>\[\]{}]*/}}hT.displayName="roboconf";hT.aliases=[];function hT(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:/[{},.;:=]/}}gT.displayName="robotframework";gT.aliases=["robot"];function gT(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(l,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var p in u)c[p]=u[p];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return l}),"im"),alias:"section",inside:c}}var i={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}},s={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:i,property:s}),keywords:a("Keywords",{"keyword-name":o,documentation:i,property:s}),tasks:a("Tasks",{"task-name":o,documentation:i,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}mT.displayName="rust";mT.aliases=[];function mT(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)}bT.displayName="sas";bT.aliases=[];function bT(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"},i={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"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,p={pattern:/%?\b\w+(?=\()/,alias:"keyword"},f={function:p,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":a,punctuation:c,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},g={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},x={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},m=/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,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return m}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return m}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:p,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:r,"numeric-constant":a,punctuation:c,string:u}},b={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":y,"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:c,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,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:b,"submit-statement":x,"global-statements":y,number:r,"numeric-constant":a,punctuation:c,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,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:b,"submit-statement":x,"global-statements":y,number:r,"numeric-constant":a,punctuation:c,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:f}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:s,keyword:b,function:p,format:h,altformat:g,"global-statements":y,number:r,"numeric-constant":a,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,inside:f},"macro-keyword":o,"macro-variable":i,"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":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"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:l,number:r,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:f},"cas-actions":v,comment:l,function:p,format:h,altformat:g,"numeric-constant":a,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:b,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}yT.displayName="sass";yT.aliases=[];function yT(e){e.register(sl),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)}vT.displayName="shell-session";vT.aliases=["sh-session","shellsession"];function vT(e){e.register(Dm),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)}xT.displayName="smali";xT.aliases=[];function xT(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:/[{}(),;:]/}}ST.displayName="smalltalk";ST.aliases=[];function ST(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:/[.;:?\[\](){}]/}}wT.displayName="smarty";wT.aliases=[];function wT(e){e.register(cr),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 i="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(a,"smarty",r,function(l){return l===o&&(s=!1),s?!1:(l===i&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"smarty")})}(e)}ET.displayName="sml";ET.aliases=["smlnj"];function ET(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)}kT.displayName="solidity";kT.aliases=["sol"];function kT(e){e.register(st),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}TT.displayName="solution-file";TT.aliases=["sln"];function TT(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)}CT.displayName="soy";CT.aliases=[];function CT(e){e.register(cr),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 i=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(a,"soy",i,function(u){return u===s&&(l=!1),l?!1:(u===o&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})}(e)}Bm.displayName="turtle";Bm.aliases=["trig"];function Bm(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}AT.displayName="sparql";AT.aliases=["rq"];function AT(e){e.register(Bm),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}_T.displayName="splunk-spl";_T.aliases=[];function _T(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:/[()[\],]/}}RT.displayName="sqf";RT.aliases=[];function RT(e){e.register(st),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"]}NT.displayName="squirrel";NT.aliases=[];function NT(e){e.register(st),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"}})}IT.displayName="stan";IT.aliases=[];function IT(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)}OT.displayName="stata";OT.aliases=[];function OT(e){e.register(fc),e.register(Pm),e.register(jm),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}DT.displayName="iecst";DT.aliases=[];function DT(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:/[()[\].,;]/}}LT.displayName="supercollider";LT.aliases=["sclang"];function LT(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}MT.displayName="swift";MT.aliases=[];function MT(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})}zT.displayName="systemd";zT.aliases=[];function zT(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
]))(?:`+(/[^\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)}Kp.displayName="t4-templating";Kp.aliases=[];function Kp(e){(function(t){function n(a,i,o){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:o}}}}function r(a){var i=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("=",i,o),"class-feature":n("\\+",i,o),standard:n("",i,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}PT.displayName="t4-cs";PT.aliases=["t4"];function PT(e){e.register(dc),e.register(Kp),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Um.displayName="vbnet";Um.aliases=[];function Um(e){e.register(Mm),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:/[,;:(){}]/})}jT.displayName="t4-vb";jT.aliases=[];function jT(e){e.register(Kp),e.register(Um),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}FT.displayName="tap";FT.aliases=[];function FT(e){e.register(Lm),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"}}}BT.displayName="tcl";BT.aliases=[];function BT(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:/[{}()\[\]]/}}UT.displayName="tt2";UT.aliases=[];function UT(e){e.register(st),e.register(cr),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)}$T.displayName="toml";$T.aliases=[];function $T(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)}HT.displayName="tremor";HT.aliases=["trickle","troy"];function HT(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)}VT.displayName="typoscript";VT.aliases=["tsconfig"];function VT(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)}GT.displayName="unrealscript";GT.aliases=["uc","uscript"];function GT(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}WT.displayName="uorazor";WT.aliases=[];function WT(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:/[()\[\]{}:.,]/}}qT.displayName="v";qT.aliases=[];function qT(e){e.register(st),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)}YT.displayName="vala";YT.aliases=[];function YT(e){e.register(st),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]+$/}}})}XT.displayName="velocity";XT.aliases=[];function XT(e){e.register(Jn),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)}KT.displayName="verilog";KT.aliases=[];function KT(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:/[[\];(),.:]/}}ZT.displayName="vhdl";ZT.aliases=[];function ZT(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:/[{}[\];(),.:]/}}QT.displayName="vim";QT.aliases=[];function QT(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:/[{}[\](),;:]/}}JT.displayName="visual-basic";JT.aliases=["vb","vba"];function JT(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"]}eC.displayName="warpscript";eC.aliases=[];function eC(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/}}tC.displayName="wasm";tC.aliases=[];function tC(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:/[()]/}}nC.displayName="web-idl";nC.aliases=["webidl"];function nC(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 i in t.languages["web-idl"])i!=="class-name"&&(a[i]=t.languages["web-idl"][i]);t.languages.webidl=t.languages["web-idl"]})(e)}rC.displayName="wgsl";rC.aliases=[];function rC(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:/[@(){}[\],;<>:.]/}}aC.displayName="wiki";aC.aliases=[];function aC(e){e.register(Jn),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}}}})}iC.displayName="wolfram";iC.aliases=["mathematica","nb","wl"];function iC(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}oC.displayName="wren";oC.aliases=[];function oC(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]+/}}}sC.displayName="xeora";sC.aliases=["xeoracube"];function sC(e){e.register(Jn),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)}lC.displayName="xml-doc";lC.aliases=[];function lC(e){e.register(Jn),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",a),n("fsharp",a),n("vbnet",i)}(e)}uC.displayName="xojo";uC.aliases=[];function uC(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:/[.,;:()]/}}cC.displayName="xquery";cC.aliases=[];function cC(e){e.register(Jn),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 i=[],o=0;o<a.length;o++){var s=a[o],l=!1;if(typeof s!="string"&&(s.type==="tag"&&s.content[0]&&s.content[0].type==="tag"?s.content[0].content[0].content==="</"?i.length>0&&i[i.length-1].tagName===n(s.content[0].content[1])&&i.pop():s.content[s.content.length-1].content==="/>"||i.push({tagName:n(s.content[0].content[1]),openedBraces:0}):i.length>0&&s.type==="punctuation"&&s.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!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?i[i.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var u=n(s);o<a.length-1&&(typeof a[o+1]=="string"||a[o+1].type==="plain-text")&&(u+=n(a[o+1]),a.splice(o+1,1)),o>0&&(typeof a[o-1]=="string"||a[o-1].type==="plain-text")&&(u=n(a[o-1])+u,a.splice(o-1,1),o--),/^\s+$/.test(u)?a[o]=u:a[o]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&r(a.tokens)})}(e)}dC.displayName="yang";dC.aliases=[];function dC(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:/[{};:]/}}pC.displayName="zig";pC.aliases=[];function pC(e){(function(t){function n(u){return function(){return u}}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",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,n(i)),s=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,n(a)),l="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";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(l)).replace(/<ALIGN>/g,n(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,n(l)).replace(/<ALIGN>/g,n(i))),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(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}$.register(Jn);$.register(sl);$.register(st);$.register(fE);$.register(ur);$.register(hE);$.register(gE);$.register(mE);$.register(bE);$.register(yE);$.register(vE);$.register(xE);$.register(SE);$.register(Gp);$.register(wE);$.register(EE);$.register(kE);$.register(TE);$.register(vi);$.register(cc);$.register(CE);$.register(AE);$.register(_E);$.register(Dm);$.register(Lm);$.register(RE);$.register(NE);$.register(IE);$.register(dc);$.register(OE);$.register(DE);$.register(LE);$.register(ME);$.register(zE);$.register(PE);$.register(jE);$.register(FE);$.register(Mm);$.register(BE);$.register(UE);$.register($E);$.register(HE);$.register(VE);$.register(GE);$.register(WE);$.register(qE);$.register(YE);$.register(XE);$.register(KE);$.register(ZE);$.register(QE);$.register(JE);$.register(e2);$.register(t2);$.register(n2);$.register(r2);$.register(a2);$.register(i2);$.register(o2);$.register(s2);$.register(l2);$.register(u2);$.register(c2);$.register(pc);$.register(d2);$.register(p2);$.register(f2);$.register(h2);$.register(g2);$.register(m2);$.register(b2);$.register(y2);$.register(v2);$.register(x2);$.register(S2);$.register(cr);$.register(w2);$.register(E2);$.register(k2);$.register(T2);$.register(C2);$.register(A2);$.register(_2);$.register(R2);$.register(N2);$.register(I2);$.register(zm);$.register(O2);$.register(D2);$.register(L2);$.register(M2);$.register(z2);$.register(P2);$.register(j2);$.register(F2);$.register(B2);$.register(U2);$.register($2);$.register(H2);$.register(V2);$.register(G2);$.register(W2);$.register(q2);$.register(Y2);$.register(X2);$.register(K2);$.register(Z2);$.register(Q2);$.register(J2);$.register(e4);$.register(t4);$.register(n4);$.register(r4);$.register(a4);$.register(i4);$.register(o4);$.register(s4);$.register(l4);$.register(u4);$.register(Wp);$.register(c4);$.register(d4);$.register(p4);$.register(f4);$.register(h4);$.register(g4);$.register(qp);$.register(m4);$.register(b4);$.register(y4);$.register(v4);$.register(x4);$.register(S4);$.register(w4);$.register(E4);$.register(k4);$.register(T4);$.register(C4);$.register(fc);$.register(hc);$.register(gc);$.register(A4);$.register(_4);$.register(R4);$.register(N4);$.register(I4);$.register(O4);$.register(D4);$.register(Yp);$.register(L4);$.register(M4);$.register(z4);$.register(P4);$.register(j4);$.register(F4);$.register(B4);$.register(U4);$.register($4);$.register(H4);$.register(V4);$.register(G4);$.register(W4);$.register(q4);$.register(Xp);$.register(Y4);$.register(X4);$.register(K4);$.register(Z4);$.register(Q4);$.register(J4);$.register(ek);$.register(tk);$.register(nk);$.register(Pm);$.register(rk);$.register(ak);$.register(ik);$.register(ok);$.register(sk);$.register(lk);$.register(uk);$.register(ck);$.register(dk);$.register(pk);$.register(fk);$.register(hk);$.register(gk);$.register(mk);$.register(bk);$.register(yk);$.register(vk);$.register(xk);$.register(Sk);$.register(wk);$.register(Ek);$.register(kk);$.register(Tk);$.register(Ck);$.register(Ak);$.register(_k);$.register(Rk);$.register(Nk);$.register(Ik);$.register(Ok);$.register(Dk);$.register(Lk);$.register(Mk);$.register(zk);$.register(Pk);$.register(jk);$.register(Fk);$.register(Bk);$.register(Uk);$.register($k);$.register(Hk);$.register(Vk);$.register(Gk);$.register(Wk);$.register(qk);$.register(Yk);$.register(Xk);$.register(Kk);$.register(Zk);$.register(Qk);$.register(Jk);$.register(jm);$.register(eT);$.register(tT);$.register(nT);$.register(rT);$.register(aT);$.register(iT);$.register(oT);$.register(Fm);$.register(sT);$.register(lT);$.register(uT);$.register(cT);$.register(dT);$.register(pT);$.register(fT);$.register(hT);$.register(gT);$.register(mT);$.register(bT);$.register(yT);$.register(vT);$.register(xT);$.register(ST);$.register(wT);$.register(ET);$.register(kT);$.register(TT);$.register(CT);$.register(Bm);$.register(AT);$.register(_T);$.register(RT);$.register(NT);$.register(IT);$.register(OT);$.register(DT);$.register(LT);$.register(MT);$.register(zT);$.register(Kp);$.register(PT);$.register(Um);$.register(jT);$.register(FT);$.register(BT);$.register(UT);$.register($T);$.register(HT);$.register(VT);$.register(GT);$.register(WT);$.register(qT);$.register(YT);$.register(XT);$.register(KT);$.register(ZT);$.register(QT);$.register(JT);$.register(eC);$.register(tC);$.register(nC);$.register(rC);$.register(aC);$.register(iC);$.register(oC);$.register(sC);$.register(lC);$.register(uC);$.register(cC);$.register(dC);$.register(pC);var YP=Rge($,Xge);YP.supportedLanguages=Nge;const Kge={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},Iu=w.memo(({content:e,fontSize:t="sm"})=>d.jsx(G,{className:"markdown-body",fontSize:t,lineHeight:"1.7",color:"var(--text-primary)",wordBreak:"break-word",css:{"& p":{marginBottom:"0.5em"},"& p:last-child":{marginBottom:0},"& ul, & ol":{paddingLeft:"1.5em",marginBottom:"0.5em"},"& li":{marginBottom:"0.2em"},"& li > p":{marginBottom:"0.2em"},"& h1":{fontSize:"1.4em",fontWeight:700,marginTop:"0.8em",marginBottom:"0.4em",color:"var(--text-heading)"},"& h2":{fontSize:"1.2em",fontWeight:700,marginTop:"0.7em",marginBottom:"0.3em",color:"var(--text-heading)"},"& h3":{fontSize:"1.05em",fontWeight:600,marginTop:"0.6em",marginBottom:"0.3em",color:"var(--text-heading)"},"& blockquote":{borderLeft:"3px solid var(--border-secondary)",paddingLeft:"0.8em",color:"var(--text-tertiary)",marginBottom:"0.5em"},"& hr":{borderColor:"var(--border-primary)",margin:"0.8em 0"},"& table":{borderCollapse:"collapse",width:"100%",marginBottom:"0.5em",fontSize:"0.9em"},"& th, & td":{border:"1px solid var(--border-secondary)",padding:"0.3em 0.6em",textAlign:"left"},"& th":{background:"var(--border-primary)",fontWeight:600},"& a":{color:"var(--text-link)",textDecoration:"underline"},"& img":{maxWidth:"100%",borderRadius:"6px"},"& .katex-display":{overflowX:"auto",overflowY:"hidden",padding:"0.5em 0"},"& .katex":{fontSize:"1.1em"}},children:d.jsx(bce,{remarkPlugins:[Rpe,Rhe],rehypePlugins:[oge],components:{code({className:n,children:r,...a}){const i=/language-(\w+)/.exec(n||""),o=String(r).replace(/\n$/,"");return i?d.jsx(G,{borderRadius:"md",overflow:"hidden",my:2,fontSize:"0.85em",children:d.jsx(YP,{style:Kge,language:i[1],PreTag:"div",customStyle:{margin:0,borderRadius:"6px",padding:"0.8em"},children:o})}):d.jsx(G,{as:"code",bg:"var(--bg-code-inline)",color:"var(--text-code)",px:"0.3em",py:"0.1em",borderRadius:"sm",fontSize:"0.9em",fontFamily:"mono",...a,children:r})}},children:e})}));Iu.displayName="Markdown";const Zge=({content:e})=>{const[t,n]=w.useState(!1);return e?d.jsxs(G,{borderRadius:"md",border:"1px solid",borderColor:"var(--border-secondary)",overflow:"hidden",fontSize:"xs",w:"100%",mb:2,children:[d.jsxs(ne,{px:3,py:1.5,gap:2,cursor:"pointer",onClick:()=>n(!t),_hover:{bg:"var(--bg-hover)"},children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:t?"▼":"▶"}),d.jsx(W,{color:"var(--text-secondary)",fontSize:"xs",fontStyle:"italic",children:"Reasoning"}),d.jsx(W,{color:"var(--text-muted)",fontSize:"2xs",ml:"auto",children:e.length>1e3?`${(e.length/1e3).toFixed(1)}k chars`:`${e.length} chars`})]}),t&&d.jsx(G,{px:3,py:2,borderTop:"1px solid",borderColor:"var(--border-primary)",fontSize:"xs",color:"var(--text-tertiary)",maxH:"300px",overflowY:"auto",bg:"var(--bg-page)",opacity:.85,children:d.jsx(Iu,{content:e,fontSize:"xs"})})]}):null},rR=({size:e=20})=>d.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})}),Qge=()=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("polyline",{points:"1 4 1 10 7 10"}),d.jsx("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})]}),XP=()=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:d.jsx("path",{d:"M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z"})}),Jge=({tokens:e,maxTokens:t})=>{const n=Math.min(e/t,1),r=9,a=2*Math.PI*r,i=a*(1-n),o=n>.8?"var(--text-error, #e53e3e)":n>.5?"#dd6b20":"var(--accent, #38a169)",s=l=>l>=1e3?`${(l/1e3).toFixed(1)}k`:String(l);return d.jsx(G,{title:`~${s(e)} / ${s(t)} tokens (${(n*100).toFixed(0)}%)`,cursor:"default",flexShrink:0,children:d.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",children:[d.jsx("circle",{cx:"11",cy:"11",r,fill:"none",stroke:"var(--border-primary)",strokeWidth:"2.5"}),d.jsx("circle",{cx:"11",cy:"11",r,fill:"none",stroke:o,strokeWidth:"2.5",strokeDasharray:a,strokeDashoffset:i,strokeLinecap:"round",transform:"rotate(-90 11 11)",style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.3s ease"}})]})})},e0e=()=>d.jsx(G,{w:"28px",h:"28px",bg:"purple.500",borderRadius:"sm",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-inverse)",fontWeight:"bold",fontSize:"xs",flexShrink:0,children:"U"}),Yy=()=>d.jsx(G,{w:"28px",h:"28px",bg:"var(--bg-brand-icon)",borderRadius:"sm",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-inverse)",fontWeight:"bold",fontSize:"xs",flexShrink:0,children:"AI"}),t0e=({callMsg:e,resultMsg:t})=>{const[n,r]=w.useState(!1),a=!t;let i={};try{i=JSON.parse(e.content)}catch{}const o=e.name||i.tool||"tool",s=i.args?JSON.stringify(i.args,null,2):e.content,l=(t==null?void 0:t.content)||"";return d.jsxs(G,{borderRadius:"md",border:"1px solid",borderColor:"var(--border-secondary)",overflow:"hidden",fontSize:"xs",w:"100%",children:[d.jsxs(ne,{px:3,py:1.5,gap:2,cursor:"pointer",onClick:()=>r(!n),_hover:{bg:"var(--bg-hover)"},children:[a?d.jsx(On,{size:"xs",color:"var(--accent)"}):d.jsx(G,{color:"var(--accent)",children:d.jsx(XP,{})}),d.jsx(W,{color:"var(--text-secondary)",flex:1,fontFamily:"mono",fontSize:"xs",children:o}),a&&d.jsx(W,{color:"var(--text-muted)",fontSize:"2xs",fontStyle:"italic",children:"running"}),d.jsx(W,{color:"var(--text-muted)",fontSize:"2xs",children:n?"▼":"▶"})]}),n&&d.jsxs(G,{px:3,py:2,borderTop:"1px solid",borderColor:"var(--border-primary)",fontFamily:"mono",fontSize:"xs",color:"var(--text-secondary)",whiteSpace:"pre-wrap",maxH:"240px",overflowY:"auto",children:[d.jsx(W,{fontSize:"2xs",fontWeight:"bold",color:"var(--text-muted)",mb:1,children:"IN"}),d.jsx(G,{mb:2,children:s||"(none)"}),t&&d.jsxs(d.Fragment,{children:[d.jsx(W,{fontSize:"2xs",fontWeight:"bold",color:"var(--text-muted)",mb:1,children:"OUT"}),d.jsx(G,{children:l||"(empty)"})]})]})]})},Zp=({conversationId:e,onConversationCreated:t,project:n,refinerAgent:r,compact:a=!1,initialProvider:i="auto",initialAgent:o,onProviderChange:s,onAgentChange:l,mode:u="converse",onRoute:c,statusBar:p,disabled:f,onResponseComplete:h,placeholder:g,initialThinking:y,initialThinkingMode:x,autoSendMessage:m,initialGraph:v,ephemeral:b=!1})=>{var Te;const S=n?r??"refiner":"default",C=o??S,[k,R]=w.useState([]),[O,N]=w.useState(""),[_,L]=w.useState(!1),[I,P]=w.useState([]),[M,F]=w.useState(()=>i||localStorage.getItem("acai.provider")||"auto"),[A,j]=w.useState([]),[B,V]=w.useState(()=>o??localStorage.getItem("acai.agent")??S),[D,Z]=w.useState([]),[J,H]=w.useState(()=>v||localStorage.getItem("acai.graph")||"converse"),[se,we]=w.useState(null),[xe,pe]=w.useState(()=>x??(y===!1?"off":void 0)??localStorage.getItem("acai.thinking")??"native"),[X,te]=w.useState(null),ie=w.useRef(null),he=w.useRef(""),le=w.useRef(null),ce=w.useRef(null),Re=w.useRef(!1),Be=w.useRef(null),De=w.useRef(null),Ke=w.useRef(e),Rt=w.useRef(!1),Nt=w.useRef(i),It=w.useRef(C);Nt.current=i,It.current=C,w.useEffect(()=>{v&&H(v)},[v]),w.useEffect(()=>{if(e)return;const ge=o??(n?r??"refiner":"default");It.current=ge,V(ge)},[e,n,r,o]);const zn=w.useRef(s),En=w.useRef(l),ln=w.useRef(h),kn=w.useRef(c),Tn=w.useRef(t),re=w.useRef(void 0);zn.current=s,En.current=l,ln.current=h,kn.current=c,Tn.current=t;const me=w.useRef(b);me.current=b;const{joinConversation:Ie,leaveConversation:je}=rc();w.useEffect(()=>{fm().then(P).catch(()=>{}),jp().then(j).catch(()=>{}),lie().then(Z).catch(()=>{})},[]);const Ye=w.useCallback(()=>{const Q=De.current;Q&&(De.current=null,Q.onerror=null,Q.close())},[]),Ct=w.useCallback(()=>{ie.current&&(clearInterval(ie.current),ie.current=null)},[]),St=w.useCallback(Q=>{Ye(),De.current=Q;const ge=Ee=>{var ke;if(Ee&&Ee!==Ke.current){const Ae=Ke.current;Ke.current=Ee,me.current||(Ie(Ee),Ae&&je(Ae),Rt.current=!0,(ke=Tn.current)==null||ke.call(Tn,Ee))}};Q.addEventListener("meta",Ee=>{const ke=JSON.parse(Ee.data);ge(ke.conversation)}),Q.addEventListener("route",Ee=>{var Ae;const ke=JSON.parse(Ee.data);(Ae=kn.current)==null||Ae.call(kn,ke),te({conversation:ke.conversation,is_new:ke.is_new,title:ke.title||"",message:he.current,countdown:5})}),Q.addEventListener("reasoning",Ee=>{const ke=JSON.parse(Ee.data);R(Ae=>{const Le=[...Ae],He=Le[Le.length-1];return He&&He.isStreaming?Le[Le.length-1]={...He,reasoning:(He.reasoning||"")+(ke.token||"")}:Le.push({role:"assistant",content:"",reasoning:ke.token||"",isStreaming:!0}),Le})}),Q.addEventListener("token",Ee=>{const ke=JSON.parse(Ee.data);R(Ae=>{const Le=[...Ae],He=Le[Le.length-1];return He&&He.isStreaming?Le[Le.length-1]={...He,content:He.content+(ke.token||"")}:Le.push({role:"assistant",content:ke.token||"",isStreaming:!0}),Le})}),Q.addEventListener("tool_start",Ee=>{const ke=JSON.parse(Ee.data);R(Ae=>{const Le=[...Ae],He=Le[Le.length-1];return He&&He.isStreaming&&(Le[Le.length-1]={...He,isStreaming:!1}),Le.push({role:"tool_call",content:JSON.stringify({tool:ke.tool_name,args:ke.args},null,2),name:ke.tool_name}),Le})}),Q.addEventListener("tool_end",Ee=>{const ke=JSON.parse(Ee.data);R(Ae=>[...Ae,{role:"tool_result",content:ke.result_preview||"(done)",name:ke.tool_name}])});for(const[Ee,ke]of[["curator_token","curator"],["scribe_token","scribe"]])Q.addEventListener(Ee,Ae=>{const He=JSON.parse(Ae.data).token||"";R(pt=>{const ft=[...pt],rn=ft[ft.length-1];return rn&&rn.role==="phase"&&rn.phase===ke&&rn.phaseStatus==="streaming"?ft[ft.length-1]={...rn,content:rn.content+He}:(rn&&rn.isStreaming&&(ft[ft.length-1]={...rn,isStreaming:!1}),ft.push({role:"phase",content:He,phase:ke,phaseStatus:"streaming"})),ft})});const Pe=["curator_start","curator_end","curator_tool_start","curator_tool_end","scribe_start","scribe_end","scribe_tool_start","scribe_tool_end"];for(const Ee of Pe)Q.addEventListener(Ee,ke=>{const Ae=JSON.parse(ke.data),[Le,...He]=Ee.split("_"),pt=He.join("_"),ft=pt==="tool_start"?`${Ae.tool_name}(${Object.keys(Ae.args||{}).join(", ")})`:pt==="tool_end"?Ae.result_preview||"(done)":pt==="start"?`${Ae.agent||Le} starting...`:Ae.document_count!==void 0?`Done — ${Ae.document_count} document${Ae.document_count!==1?"s":""} selected`:Ae.status||"done";R(rn=>[...rn,{role:"phase",content:ft,phase:Le,phaseStatus:pt,name:Ae.tool_name}])});Q.addEventListener("print",Ee=>{const ke=JSON.parse(Ee.data);R(Ae=>{const Le=[...Ae],He=Le[Le.length-1];return He!=null&&He.isStreaming&&(Le[Le.length-1]={...He,isStreaming:!1}),Le.push({role:"print",content:ke.text||"",nodeLabel:ke.label||"Print"}),Le})}),Q.addEventListener("done",()=>{var Ee;R(ke=>ke.map(Ae=>Ae.isStreaming?{...Ae,isStreaming:!1}:Ae)),Be.current=null,L(!1),Ye(),(Ee=ln.current)==null||Ee.call(ln)}),Q.addEventListener("error",Ee=>{let ke="Stream error",Ae="";try{const He=JSON.parse(Ee.data);ke=He.message||He.error||ke,Ae=He.traceback||""}catch{}const Le=Ae?`${ke}

\`\`\`
${Ae}\`\`\``:ke;R(He=>{const pt=[...He],ft=pt[pt.length-1];return ft&&ft.isStreaming?pt[pt.length-1]={...ft,isStreaming:!1,error:Le}:pt.push({role:"assistant",content:"",error:Le}),pt}),Be.current=null,L(!1),Ye()}),Q.onerror=Ee=>{const ke=typeof Ee=="string"?Ee:"Connection lost";R(Ae=>{const Le=[...Ae],He=Le[Le.length-1];return He&&He.isStreaming?Le[Le.length-1]={...He,content:He.content||"",isStreaming:!1,error:ke}:Le.push({role:"assistant",content:"",error:ke}),Le}),Be.current=null,L(!1),Ye()}},[Ye]),er=w.useCallback(Q=>{St(new EventSource(`/api/agent/stream/${Q}`))},[St]);w.useEffect(()=>()=>Ye(),[Ye]);const tr=w.useRef(m),Sr=w.useCallback(async(Q,ge,Pe)=>{let Ee=[];try{const ke=await uie(Q);if(Pe!=null&&Pe.cancelled)return;if(ge&&(tr.current=void 0),Ee=ke.messages,ke.streaming){const Ae=ke.streaming.task_id;Be.current=Ae,L(!0),R([...Ee,{role:"assistant",content:ke.streaming.partial,isStreaming:!0,taskId:Ae}]),er(Q);return}}catch(ke){if(Pe!=null&&Pe.cancelled)return;const Ae=ke instanceof Error?ke.message:"Failed to load conversation";R([{role:"assistant",content:"",error:`Could not load history: ${Ae}`}]),L(!1);return}if(!ge){R(Ee);return}R([...Ee,{role:"user",content:ge}]),L(!0);try{const ke=x??(y===!1?"off":"native");if(ke==="emulated"){const Ae=await py(ge,Q,n||"","",Nt.current,It.current);if(Pe!=null&&Pe.cancelled){Ae.stream.close();return}R(Le=>[...Le,{role:"assistant",content:"",isStreaming:!0}]),St(Ae.stream)}else{const Ae=await Mc(ge,Q,n||"","",Nt.current,It.current,ke==="native"?!0:void 0,J,b||void 0);if(Pe!=null&&Pe.cancelled){Ae.stream.close();return}R(Le=>[...Le,{role:"assistant",content:"",isStreaming:!0}]),St(Ae.stream)}}catch(ke){if(Pe!=null&&Pe.cancelled)return;const Ae=ke instanceof Error?ke.message:String(ke);R(Le=>[...Le,{role:"assistant",content:"",error:Ae}]),L(!1)}},[er,St,x,y,n]),un=w.useRef(Sr);un.current=Sr,w.useEffect(()=>{var ge;if(Ke.current=e,Rt.current){Rt.current=!1;return}const Q={cancelled:!1};if(F(Nt.current),V(It.current),pe(x??(y===!1?"off":"native")),R([]),L(!1),te(null),Ct(),Be.current=null,Ye(),!e){if(tr.current){const Pe=tr.current;tr.current=void 0,(ge=re.current)==null||ge.call(re,Pe)}return()=>{Q.cancelled=!0}}return un.current(e,tr.current,Q),()=>{Q.cancelled=!0}},[e,Ye,Ct]),w.useEffect(()=>(e&&Ie(e),()=>{e&&je(e)}),[e,Ie,je]),w.useEffect(()=>{var Q;(Q=le.current)==null||Q.scrollIntoView({behavior:"smooth",block:"nearest"})},[k]),w.useEffect(()=>{const Q=k.reduce((ge,Pe)=>{var Ee;return ge+(((Ee=Pe.content)==null?void 0:Ee.length)||0)},0);we(ge=>({estimated_tokens:Math.round(Q/4),max_context:(ge==null?void 0:ge.max_context)||128e3}))},[k]),w.useEffect(()=>{e&&Iie(e).then(we).catch(()=>{})},[e]),w.useLayoutEffect(()=>{if(Re.current&&ce.current&&!_&&!f){const Q=setTimeout(()=>{var ge;(ge=ce.current)==null||ge.focus(),Re.current=!1},50);return()=>clearTimeout(Q)}},[O,_,f]);const la=w.useCallback(Q=>{var ge;F(Q),localStorage.setItem("acai.provider",Q),(ge=zn.current)==null||ge.call(zn,Q)},[]),dr=w.useCallback(Q=>{var ge;V(Q),localStorage.setItem("acai.agent",Q),(ge=En.current)==null||ge.call(En,Q)},[]),Si=w.useCallback(async(Q,ge)=>{var Ee;te(null),Ct();const Pe=Ke.current;Ke.current=ge,Ie(ge),Pe&&Pe!==ge&&je(Pe),Rt.current=!0,(Ee=Tn.current)==null||Ee.call(Tn,ge),L(!0);try{const ke=await Mc(Q,ge,n||"","",M,B,xe==="native"?!0:void 0,J,b||void 0);R(Ae=>[...Ae,{role:"assistant",content:"",isStreaming:!0}]),St(ke.stream)}catch(ke){const Ae=ke instanceof Error?ke.message:String(ke);R(Le=>[...Le,{role:"assistant",content:"",error:Ae}]),L(!1)}},[n,M,B,xe,Ie,je,St,Ct,b]),ll=w.useCallback(()=>{X&&Si(X.message,X.conversation)},[X,Si]),ul=w.useCallback(async()=>{if(!X)return;const Q=X.message;te(null),Ct(),L(!0);try{const ge=await Mc(Q,"",n||"","",M,B,xe==="native"?!0:void 0,J,b||void 0);R(Pe=>[...Pe,{role:"assistant",content:"",isStreaming:!0}]),St(ge.stream)}catch(ge){const Pe=ge instanceof Error?ge.message:String(ge);R(Ee=>[...Ee,{role:"assistant",content:"",error:Pe}]),L(!1)}},[X,n,M,B,xe,St,Ct]);w.useEffect(()=>{if(X)return Ct(),ie.current=setInterval(()=>{te(Q=>Q?Q.countdown<=1?{...Q,countdown:0}:{...Q,countdown:Q.countdown-1}:null)},1e3),Ct},[X==null?void 0:X.conversation,Ct]),w.useEffect(()=>{X&&X.countdown<=0&&ll()},[X==null?void 0:X.countdown]);const cl=w.useCallback(async()=>{const Q=Ke.current;if(!Q||_)return;const ge=[...k].reverse().find(Ee=>Ee.role==="user");if(!(!ge||(await Nie(Q).catch(()=>({inflight:!1}))).inflight)){L(!0);try{if(xe==="emulated"){const Ee=await py(ge.content,Q,n||"","",M,B);R(ke=>[...ke,{role:"assistant",content:"",isStreaming:!0}]),St(Ee.stream)}else{const Ee=await Mc(ge.content,Q,n||"","",M,B,xe==="native"?!0:void 0,J,b||void 0);R(ke=>[...ke,{role:"assistant",content:"",isStreaming:!0}]),St(Ee.stream)}}catch(Ee){const ke=Ee instanceof Error?Ee.message:String(Ee);R(Ae=>[...Ae,{role:"assistant",content:"",error:ke}]),L(!1)}}},[_,k,n,M,B,xe,St]),wi=async Q=>{const ge=(Q??O).trim();if(!ge||_||f)return;Q||(document.activeElement===ce.current&&(Re.current=!0),N(""),ce.current&&(ce.current.style.height="auto")),R(Ee=>[...Ee,{role:"user",content:ge}]),L(!0);const Pe=Ke.current;try{if(u==="uber"){he.current=ge;const Ee=await xM(ge,Pe||"",B);St(Ee.stream)}else if(xe==="emulated"){const Ee=await py(ge,Pe||"",n||"","",M,B);Ke.current=Ee.conversation,Ie(Ee.conversation),Ee.conversation!==(Pe||"")&&(Pe&&je(Pe),Rt.current=!0,t==null||t(Ee.conversation)),R(Ae=>[...Ae,{role:"assistant",content:"",isStreaming:!0}]),St(Ee.stream)}else{const Ee=await Mc(ge,Pe||"",n||"","",M,B,xe==="native"?!0:void 0,J,b||void 0);Ke.current=Ee.conversation,b||(Ie(Ee.conversation),Ee.conversation!==(Pe||"")&&(Pe&&je(Pe),Rt.current=!0,t==null||t(Ee.conversation))),R(ke=>[...ke,{role:"assistant",content:"",isStreaming:!0}]),St(Ee.stream)}}catch(Ee){const ke=Ee instanceof Error?Ee.message:String(Ee);R(Ae=>[...Ae,{role:"assistant",content:"",error:ke}]),L(!1)}};re.current=wi;const ss=Q=>{Q.key==="Enter"&&!Q.shiftKey&&(Q.preventDefault(),wi())},ls=Q=>{N(Q.target.value),Q.target.style.height="auto",Q.target.style.height=Math.min(Q.target.scrollHeight,a?160:200)+"px"},ee=a?void 0:"48rem",de=a?void 0:"auto";return d.jsxs(G,{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",children:[d.jsx(G,{flex:1,overflowY:"auto",w:"100%",minH:0,children:k.length===0?d.jsxs(ze,{flex:1,justify:"center",align:"center",p:a?4:8,gap:a?4:6,minH:a?"200px":"60vh",children:[!a&&d.jsx(G,{w:"64px",h:"64px",bg:"var(--bg-brand-icon)",borderRadius:"xl",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2xl",color:"var(--text-inverse)",fontWeight:"bold",children:"AI"}),d.jsx(W,{fontSize:a?"xs":"md",color:"var(--text-tertiary)",textAlign:"center",maxW:"md",children:a?"Chat with the agent about this project.":e?"This conversation is empty. Send a message to start.":"Start a new conversation or pick one from the sidebar."})]}):d.jsxs(ze,{gap:0,w:"100%",children:[k.map((Q,ge)=>{var Le,He;const Ee=ge===k.length-1&&Q.role==="user"&&!_;if(Q.role==="tool_result"&&k.slice(0,ge).reverse().find(ft=>ft.role==="tool_call"&&ft.name===Q.name))return null;const ke=pt=>{for(let ft=pt-1;ft>=0;ft--){const rn=k[ft].role;if(!(rn==="tool_call"||rn==="tool_result"))return rn==="assistant"}return!1},Ae=Q.role==="assistant"&&ge>0&&["tool_call","tool_result"].includes((Le=k[ge-1])==null?void 0:Le.role);if(Q.role==="phase"){const pt=Q.phaseStatus==="start",ft=Q.phaseStatus==="end",rn=(He=Q.phaseStatus)==null?void 0:He.startsWith("tool"),mc=Q.phase==="curator"?"Curator":Q.phase==="scribe"?"Scribe":Q.phase,wr=Q.phase==="curator"?"#667eea":"#e6a817",dl=k.slice(ge+1).some(lo=>lo.role==="phase"&&lo.phase===Q.phase&&lo.phaseStatus==="end");if(pt)return d.jsx(G,{w:"100%",py:1.5,px:a?3:4,children:d.jsxs(ne,{maxW:ee,mx:de,gap:2,children:[d.jsx(G,{w:"6px",h:"6px",borderRadius:"full",bg:wr,flexShrink:0}),!dl&&d.jsx(On,{size:"xs",color:wr}),d.jsx(W,{fontSize:"xs",fontWeight:"semibold",color:wr,children:mc}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:Q.content})]})},ge);if(rn){const lo=Q.phaseStatus==="tool_end";return d.jsx(G,{w:"100%",py:.5,px:a?3:4,children:d.jsxs(ne,{maxW:ee,mx:de,gap:2,pl:"14px",children:[d.jsx(G,{color:wr,children:d.jsx(XP,{})}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",fontFamily:"mono",flex:1,truncate:!0,children:Q.content}),!lo&&!dl&&d.jsx(On,{size:"xs",color:wr})]})},ge)}return ft?d.jsx(G,{w:"100%",py:1.5,px:a?3:4,children:d.jsxs(ne,{maxW:ee,mx:de,gap:2,children:[d.jsx(G,{w:"6px",h:"6px",borderRadius:"full",bg:wr,flexShrink:0}),d.jsx(W,{fontSize:"xs",fontWeight:"semibold",color:wr,children:mc}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:Q.content})]})},ge):Q.phaseStatus==="streaming"?d.jsx(G,{w:"100%",py:1.5,px:a?3:4,children:d.jsxs(G,{maxW:ee,mx:de,children:[d.jsxs(ne,{gap:2,mb:1,children:[d.jsx(G,{w:"6px",h:"6px",borderRadius:"full",bg:wr,flexShrink:0}),!dl&&d.jsx(On,{size:"xs",color:wr}),d.jsx(W,{fontSize:"xs",fontWeight:"semibold",color:wr,children:mc})]}),d.jsx(G,{pl:"14px",fontSize:"xs",color:wr+"cc",lineHeight:"1.5",whiteSpace:"pre-wrap",fontFamily:"mono",maxH:"120px",overflowY:"auto",children:Q.content})]})},ge):null}if(Q.role==="print"){const pt=Q.content.length>300;return d.jsx(G,{w:"100%",py:1.5,px:a?3:4,children:d.jsxs(G,{maxW:ee,mx:de,borderRadius:"md",overflow:"hidden",border:"1px solid",borderColor:"var(--accent)",bg:"color-mix(in srgb, var(--accent) 8%, transparent)",children:[d.jsxs(ne,{px:3,py:1.5,gap:2,borderBottom:"1px solid",borderColor:"color-mix(in srgb, var(--accent) 20%, transparent)",children:[d.jsx(G,{w:"6px",h:"6px",borderRadius:"sm",bg:"var(--accent)",flexShrink:0}),d.jsx(W,{fontSize:"xs",fontWeight:"semibold",color:"var(--accent)",children:Q.nodeLabel||"Print"}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",ml:"auto",children:Q.content.length>1e3?`${(Q.content.length/1e3).toFixed(1)}k chars`:`${Q.content.length} chars`})]}),d.jsx(G,{px:3,py:2,fontSize:"xs",lineHeight:"1.5",whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"mono",color:"var(--text-secondary)",maxH:pt?"200px":void 0,overflowY:pt?"auto":void 0,children:Q.content||"(empty)"})]})},ge)}if(Q.role==="tool_call"){const pt=k.slice(ge+1).find(rn=>rn.role==="tool_result"&&rn.name===Q.name),ft=!ke(ge);return d.jsx(G,{w:"100%",bg:"var(--bg-card)",py:a?2:3,px:a?3:4,children:d.jsxs(ne,{maxW:ee,mx:de,align:"flex-start",gap:a?2:4,children:[ft?d.jsx(Yy,{}):d.jsx(G,{w:"28px",flexShrink:0}),d.jsxs(ze,{align:"flex-start",flex:1,gap:1,children:[ft&&d.jsx(W,{fontWeight:"semibold",fontSize:a?"xs":"sm",color:"var(--text-assistant-label)",children:"Agent"}),d.jsx(t0e,{callMsg:Q,resultMsg:pt})]})]})},ge)}return Ae?d.jsx(G,{w:"100%",bg:"var(--bg-card)",py:a?3:6,px:a?3:4,children:d.jsxs(ne,{maxW:ee,mx:de,align:"flex-start",gap:a?2:4,children:[d.jsx(G,{w:"28px",flexShrink:0}),d.jsxs(ze,{align:"flex-start",flex:1,gap:1,children:[d.jsx(Iu,{content:Q.content,fontSize:a?"sm":"md"}),Q.isStreaming&&d.jsx(G,{as:"span",display:"inline-block",w:"2px",h:"1em",bg:"var(--cursor-blink)",ml:.5,animation:"blink 1s step-start infinite"})]})]})},ge):d.jsx(G,{w:"100%",bg:Q.role==="user"?"transparent":"var(--bg-card)",py:a?3:6,px:a?3:4,children:d.jsxs(ne,{maxW:ee,mx:de,align:"flex-start",gap:a?2:4,children:[Q.role==="user"?d.jsx(e0e,{}):d.jsx(Yy,{}),d.jsxs(ze,{align:"flex-start",flex:1,gap:1,children:[d.jsx(W,{fontWeight:"semibold",fontSize:a?"xs":"sm",color:Q.role==="user"?"var(--text-user-label)":"var(--text-assistant-label)",children:Q.role==="user"?"You":"Agent"}),Q.role==="assistant"&&Q.reasoning&&d.jsx(Zge,{content:Q.reasoning}),d.jsx(Iu,{content:Q.content,fontSize:a?"sm":"md"}),Q.isStreaming&&!Q.content&&Q.reasoning&&d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",fontStyle:"italic",children:"Thinking..."}),Q.isStreaming&&d.jsx(G,{as:"span",display:"inline-block",w:"2px",h:"1em",bg:"var(--cursor-blink)",ml:.5,animation:"blink 1s step-start infinite"}),Q.error&&d.jsx(G,{mt:1,p:2,bg:"red.900/20",borderLeft:"3px solid",borderColor:"red.400",borderRadius:"md",children:d.jsxs(W,{fontSize:"xs",color:"red.300",fontWeight:"semibold",children:["Failed: ",Q.error]})}),Ee&&d.jsx(dt,{"aria-label":"Resend message",onClick:cl,variant:"ghost",size:"xs",color:"var(--text-muted)",_hover:{color:"var(--accent)",bg:"var(--bg-hover)"},mt:1,children:d.jsx(Qge,{})})]})]})},ge)}),_&&!k.some(Q=>Q.isStreaming)&&d.jsx(G,{w:"100%",bg:"var(--bg-card)",py:a?3:6,px:a?3:4,children:d.jsxs(ne,{maxW:ee,mx:de,align:"flex-start",gap:a?2:4,children:[d.jsx(Yy,{}),d.jsxs(ne,{gap:2,children:[d.jsx(On,{size:"sm",color:"var(--text-assistant-label)"}),d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",children:"Thinking..."})]})]})}),d.jsx("div",{ref:le})]})}),p,X&&d.jsx(G,{w:"100%",bg:"rgba(102,126,234,0.08)",py:2,px:4,borderTop:"1px solid",borderColor:"var(--border-secondary)",children:d.jsxs(ne,{maxW:ee,mx:de,gap:3,justify:"space-between",flexWrap:"wrap",children:[d.jsxs(ne,{gap:2,flex:1,minW:0,children:[d.jsx(G,{w:"8px",h:"8px",borderRadius:"full",bg:"linear-gradient(135deg, #667eea, #764ba2)",flexShrink:0}),d.jsx(W,{fontSize:"xs",color:"var(--text-secondary)",isTruncated:!0,children:X.is_new?`New conversation: "${X.title||"Untitled"}"`:`Continue in "${X.title||"Untitled"}"`})]}),d.jsxs(ne,{gap:2,flexShrink:0,children:[d.jsxs(G,{as:"button",onClick:ll,position:"relative",overflow:"hidden",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"semibold",color:"white",cursor:"pointer",_hover:{opacity:.9},children:[d.jsx(G,{position:"absolute",inset:0,bg:"var(--accent)",opacity:.3,borderRadius:"md"}),d.jsx(G,{position:"absolute",top:0,left:0,bottom:0,borderRadius:"md",bg:"var(--accent)",style:{width:`${X.countdown/5*100}%`,transition:"width 1s linear"}}),d.jsx(W,{as:"span",position:"relative",zIndex:1,children:"Continue"})]}),d.jsx(G,{as:"button",onClick:ul,px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"semibold",bg:"var(--bg-card)",color:"var(--text-secondary)",cursor:"pointer",border:"1px solid",borderColor:"var(--border-secondary)",_hover:{bg:"var(--bg-hover)"},children:"New Chat"})]})]})}),d.jsxs(G,{w:"100%",bg:"var(--bg-page)",borderTop:"1px solid",borderColor:"var(--border-primary)",pt:2,pb:a?2:4,px:a?3:4,children:[d.jsxs(ne,{maxW:ee,mx:de,mb:a?1.5:2,justify:"flex-start",gap:3,children:[d.jsx(Wt,{size:"xs",w:"auto",children:d.jsx(qt,{value:B,onChange:Q=>dr(Q.target.value),bg:"var(--bg-input)",color:"var(--text-tertiary)",borderColor:"var(--border-input)",fontSize:"xs",px:2,h:a?"24px":"26px",borderRadius:"md",children:A.map(Q=>d.jsx("option",{value:Q.name,style:{background:"var(--option-bg)"},children:Q.avatar?`${Q.avatar} ${Q.name}`:Q.name},Q.name))})}),d.jsx(Wt,{size:"xs",w:"auto",children:d.jsxs(qt,{value:M,onChange:Q=>la(Q.target.value),bg:"var(--bg-input)",color:"var(--text-tertiary)",borderColor:"var(--border-input)",fontSize:"xs",px:2,h:a?"24px":"26px",borderRadius:"md",children:[d.jsx("option",{value:"auto",style:{background:"var(--option-bg)"},children:"Auto"}),I.map(Q=>d.jsx("option",{value:Q.name,style:{background:"var(--option-bg)"},children:Q.name},Q.name))]})}),d.jsx(Wt,{size:"xs",w:"auto",children:d.jsxs(qt,{value:xe,onChange:Q=>{const ge=Q.target.value;pe(ge),localStorage.setItem("acai.thinking",ge)},bg:"var(--bg-input)",color:xe==="off"?"var(--text-tertiary)":"var(--accent)",borderColor:"var(--border-input)",fontSize:"xs",px:2,h:a?"24px":"26px",borderRadius:"md",children:[d.jsx("option",{value:"off",style:{background:"var(--option-bg)"},children:"Think: Off"}),d.jsx("option",{value:"native",style:{background:"var(--option-bg)"},children:"Think: Native"}),d.jsx("option",{value:"emulated",style:{background:"var(--option-bg)"},children:"Think: Emulated"})]})}),D.length>1&&!v&&d.jsx(Wt,{size:"xs",w:"auto",children:d.jsx(qt,{value:J,onChange:Q=>{const ge=Q.target.value;H(ge),localStorage.setItem("acai.graph",ge)},bg:"var(--bg-input)",color:J==="converse"?"var(--text-tertiary)":"var(--accent)",borderColor:"var(--border-input)",fontSize:"xs",px:2,h:a?"24px":"26px",borderRadius:"md",title:((Te=D.find(Q=>Q.kind===J))==null?void 0:Te.description)||"",children:D.map(Q=>d.jsx("option",{value:Q.kind,style:{background:"var(--option-bg)"},children:Q.label},Q.kind))})}),se&&Ke.current&&d.jsx(Jge,{tokens:se.estimated_tokens,maxTokens:se.max_context})]}),d.jsx(ne,{maxW:ee,mx:de,gap:2,align:"flex-end",children:a?d.jsxs(d.Fragment,{children:[d.jsx(Qi,{ref:ce,value:O,onChange:ls,onKeyDown:ss,placeholder:g||"Ask or instruct...",disabled:_||f,rows:1,resize:"none",bg:"var(--bg-card)",border:"1px solid",borderColor:"var(--border-secondary)",_focus:{borderColor:"var(--accent)",boxShadow:"none"},py:2,px:3,fontSize:"sm",maxH:"120px",overflow:"auto",flex:1,color:"var(--text-primary)",_placeholder:{color:"var(--text-muted)"},borderRadius:"lg"}),d.jsx(dt,{"aria-label":"Send",onMouseDown:Q=>{Q.preventDefault(),wi()},disabled:_||f||!O.trim(),colorScheme:"green",size:"sm",borderRadius:"lg",type:"button",tabIndex:-1,children:d.jsx(rR,{size:18})})]}):d.jsxs(d.Fragment,{children:[d.jsx(ne,{flex:1,bg:"var(--bg-card)",borderRadius:"xl",border:"1px solid",borderColor:"var(--border-secondary)",_focusWithin:{borderColor:"var(--accent)",boxShadow:"0 0 0 1px var(--accent)"},align:"flex-end",px:3,children:d.jsx(Qi,{ref:ce,value:O,onChange:ls,onKeyDown:ss,placeholder:g||"Describe what you want to build...",disabled:_||f,rows:1,resize:"none",border:"none",_focus:{outline:"none",boxShadow:"none"},py:3,px:2,fontSize:"md",maxH:"200px",overflow:"auto",bg:"transparent",flex:1,color:"var(--text-primary)",_placeholder:{color:"var(--text-muted)"}})}),d.jsx(dt,{"aria-label":"Send message",onMouseDown:Q=>{Q.preventDefault(),wi()},disabled:_||f||!O.trim(),colorScheme:"green",size:"lg",borderRadius:"xl",h:"50px",w:"50px",flexShrink:0,type:"button",tabIndex:-1,children:d.jsx(rR,{})})]})})]})]})},n0e=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),d.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),aR=()=>{const{convId:e}=TS(),t=nl(),n=no(),[r,a]=w.useState([]),[i,o]=w.useState(null),[s]=w.useState(()=>{const x=n.state;return x!=null&&x.pendingMessage?{message:x.pendingMessage,provider:x.provider,agent:x.agent,thinkingMode:x.thinkingMode}:null});w.useEffect(()=>{s&&t(n.pathname,{replace:!0,state:{}})},[]);const[l,u]=w.useState(e||null);w.useEffect(()=>{u(e||null)},[e]);const c=w.useCallback(()=>{Nw().then(a).catch(()=>{})},[]);w.useEffect(()=>{document.title=e?"Chat - Açaí":"Conversations - Açaí",c()},[c,e]);const p=w.useCallback(x=>{t(`/conversations/${x}`)},[t]),f=async x=>{i&&(await Ph(i.id,x).catch(()=>{}),o(null),c())},h=async x=>{await gM(x).catch(()=>{}),o(null),e===x&&t("/conversations"),c()},g=r.find(x=>x.id===l),y=d.jsx(G,{px:3,py:3,borderBottom:"1px solid",borderColor:"var(--border-primary)",children:d.jsxs(ne,{justify:"space-between",children:[d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-secondary)",children:"Conversations"}),d.jsx(dt,{"aria-label":"New conversation",onClick:()=>t("/conversations"),variant:"ghost",size:"xs",color:"var(--text-tertiary)",_hover:{color:"var(--text-heading)",bg:"var(--bg-hover)"},children:d.jsx(n0e,{})})]})});return d.jsxs(G,{display:"flex",h:"100vh",w:"100%",bg:"var(--bg-page)",overflow:"hidden",children:[d.jsx(wM,{conversations:r,activeId:e||null,onSelect:p,onEdit:o,header:y}),d.jsx(Zp,{conversationId:l,onConversationCreated:x=>{t(`/conversations/${x}`,{replace:!0}),c()},onResponseComplete:c,initialProvider:(s==null?void 0:s.provider)||(g==null?void 0:g.provider)||"auto",initialAgent:(s==null?void 0:s.agent)||(g==null?void 0:g.agent)||(g!=null&&g.project?(g==null?void 0:g.refiner)||"refiner":"default"),initialThinking:g==null?void 0:g.enable_thinking,initialThinkingMode:s==null?void 0:s.thinkingMode,autoSendMessage:s==null?void 0:s.message,onProviderChange:x=>{e&&Ph(e,{provider:x}).catch(()=>{})},onAgentChange:x=>{e&&Ph(e,{agent:x}).catch(()=>{})}}),i&&d.jsx(SM,{conv:i,onSave:f,onDelete:h,onClose:()=>o(null)})]})},r0e=["python","rust","javascript","typescript","go","c","cpp","java","other"],a0e=["","github","gitlab","bitbucket"],i0e=["default","library","cli","web-api","minimal"],o0e={python:"blue",rust:"orange",javascript:"yellow",typescript:"cyan",go:"teal",c:"gray",cpp:"gray",java:"red",other:"gray"},s0e=({project:e,onClick:t})=>d.jsxs(G,{p:4,bg:"var(--bg-card)",borderRadius:"lg",border:"1px solid",borderColor:"var(--border-primary)",_hover:{borderColor:"var(--accent)",cursor:"pointer"},transition:"all 0.2s",onClick:t,children:[d.jsxs(ne,{justify:"space-between",mb:2,children:[d.jsxs(ne,{gap:2,children:[d.jsx(bt,{colorScheme:o0e[e.language]||"gray",fontSize:"xs",variant:"outline",children:e.language}),d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",fontSize:"md",children:e.name})]}),d.jsx(bt,{colorScheme:e.source==="clone"?"purple":"green",fontSize:"xs",children:e.source})]}),d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",fontFamily:"mono",mb:2,children:e.path}),d.jsxs(ne,{gap:4,flexWrap:"wrap",children:[e.language==="python"&&d.jsxs(d.Fragment,{children:[d.jsxs(W,{fontSize:"xs",color:"var(--text-muted)",children:["Python ",e.python_version]}),d.jsxs(W,{fontSize:"xs",color:"var(--text-muted)",children:["venv: ",e.venv_path]})]}),e.repo_url&&d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",overflow:"hidden",textOverflow:"ellipsis",children:e.repo_url}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:new Date(e.created_at).toLocaleString()})]})]}),l0e=()=>{const e=nl(),[t,n]=w.useState([]),[r,a]=w.useState(!1),[i,o]=w.useState(!0),[s,l]=w.useState(""),[u,c]=w.useState(""),[p,f]=w.useState("python"),[h,g]=w.useState("new"),[y,x]=w.useState("default"),[m,v]=w.useState(""),[b,S]=w.useState(""),[C,k]=w.useState("3.12"),[R,O]=w.useState(".venv"),N=async()=>{try{const I=await vM();n(I)}catch{}finally{o(!1)}};w.useEffect(()=>{document.title="Projects - Açaí",N()},[]);const _=()=>{c(""),f("python"),g("new"),x("default"),v(""),S(""),k("3.12"),O(".venv"),l("")},L=async()=>{if(u.trim()){if(h==="clone"&&!m.trim()){l("Repository URL is required for clone");return}l("");try{await fie({name:u.trim(),language:p,source:h,template:y,repo_url:m.trim(),provider:b,python_version:C,venv_path:R}),_(),a(!1),N()}catch(I){l(I instanceof Error?I.message:"Failed to create project")}}};return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",overflowY:"auto",p:6,children:d.jsxs(G,{maxW:"4xl",mx:"auto",children:[d.jsxs(ne,{justify:"space-between",mb:6,children:[d.jsx(ta,{size:"lg",color:"var(--text-heading)",children:"Projects"}),d.jsx(Et,{colorScheme:"green",size:"sm",onClick:()=>{a(!r),r&&_()},children:r?"Cancel":"New Project"})]}),r&&d.jsx(G,{p:5,bg:"var(--bg-card)",borderRadius:"lg",mb:6,border:"1px solid",borderColor:"var(--border-primary)",children:d.jsxs(ze,{gap:4,align:"stretch",children:[d.jsx(ta,{size:"md",color:"var(--text-heading)",children:"Create Project"}),s&&d.jsx(G,{p:3,bg:"var(--bg-error)",borderRadius:"md",children:d.jsx(W,{color:"var(--text-error)",fontSize:"sm",children:s})}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",mb:1,children:"Project Name"}),d.jsx(Ne,{placeholder:"my-project",value:u,onChange:I=>c(I.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",_placeholder:{color:"var(--text-muted)"}})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",mb:1,children:"Language"}),d.jsx(Wt,{children:d.jsx(qt,{value:p,onChange:I=>f(I.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",children:r0e.map(I=>d.jsx("option",{value:I,style:{background:"var(--option-bg)"},children:I},I))})})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",mb:2,children:"Source"}),d.jsxs(ne,{gap:2,children:[d.jsx(Et,{size:"sm",flex:1,variant:h==="new"?"solid":"outline",colorScheme:h==="new"?"green":"gray",onClick:()=>g("new"),children:"New Project"}),d.jsx(Et,{size:"sm",flex:1,variant:h==="clone"?"solid":"outline",colorScheme:h==="clone"?"purple":"gray",onClick:()=>g("clone"),children:"Clone Repository"})]})]}),h==="new"&&d.jsxs(G,{children:[d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",mb:1,children:"Template"}),d.jsx(Wt,{children:d.jsx(qt,{value:y,onChange:I=>x(I.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",children:i0e.map(I=>d.jsx("option",{value:I,style:{background:"var(--option-bg)"},children:I},I))})})]}),h==="clone"&&d.jsxs(d.Fragment,{children:[d.jsxs(G,{children:[d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",mb:1,children:"Repository URL"}),d.jsx(Ne,{placeholder:"https://github.com/user/repo.git",value:m,onChange:I=>v(I.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",_placeholder:{color:"var(--text-muted)"}})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",mb:1,children:"Provider (optional)"}),d.jsx(Wt,{children:d.jsxs(qt,{value:b,onChange:I=>S(I.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",children:[d.jsx("option",{value:"",style:{background:"var(--option-bg)"},children:"Auto-detect"}),a0e.filter(Boolean).map(I=>d.jsx("option",{value:I,style:{background:"var(--option-bg)"},children:I},I))]})})]})]}),p==="python"&&d.jsxs(G,{p:4,bg:"var(--bg-elevated)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-secondary)",children:[d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-secondary)",mb:3,children:"Python Settings"}),d.jsxs(ne,{gap:4,children:[d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-tertiary)",mb:1,children:"Python Version"}),d.jsx(Wt,{children:d.jsx(qt,{value:C,onChange:I=>k(I.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",children:["3.10","3.11","3.12","3.13"].map(I=>d.jsx("option",{value:I,style:{background:"var(--option-bg)"},children:I},I))})})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-tertiary)",mb:1,children:"Venv Path"}),d.jsx(Ne,{value:R,onChange:I=>O(I.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",size:"sm"})]})]})]}),d.jsxs(G,{p:4,bg:"var(--bg-page)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-secondary)",children:[d.jsx(W,{fontSize:"xs",fontWeight:"semibold",color:"var(--text-tertiary)",mb:2,children:"Will create:"}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",fontFamily:"mono",whiteSpace:"pre",lineHeight:"1.8",children:`${u||"<project>"}/
├── docs/
│   ├── goal.md
│   ├── overview.md
│   ├── components/
│   └── recipes/
├── tests/
│   └── test_${(u||"<project>").replace(/-/g,"_").toLowerCase()}.py${p==="python"?`
├── ${(u||"<project>").replace(/-/g,"_").toLowerCase()}/
│   └── __init__.py
├── pyproject.toml`:""}
└── README.md`})]}),d.jsx(Et,{colorScheme:"green",size:"md",alignSelf:"flex-end",onClick:L,disabled:!u.trim()||h==="clone"&&!m.trim(),children:h==="clone"?"Clone & Scaffold":"Create Project"})]})}),d.jsx(ze,{gap:3,align:"stretch",children:i?d.jsx(W,{color:"var(--text-tertiary)",textAlign:"center",py:8,children:"Loading..."}):t.length===0?d.jsxs(ze,{py:12,gap:3,children:[d.jsx(W,{fontSize:"lg",color:"var(--text-tertiary)",children:"No projects yet"}),d.jsx(W,{fontSize:"sm",color:"var(--text-muted)",children:"Create a new project or clone an existing repository to get started."})]}):t.map(I=>d.jsx(s0e,{project:I,onClick:()=>e(`/projects/${I.name}`)},I.id))})]})})},u0e=()=>d.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:d.jsx("polyline",{points:"15 18 9 12 15 6"})}),c0e=()=>d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),d.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),KP=()=>d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),An=({label:e,children:t})=>d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",fontWeight:"medium",color:"var(--text-tertiary)",mb:1,children:e}),t]}),_n={bg:"var(--bg-input)",color:"var(--text-heading)",borderColor:"var(--border-secondary)",_focus:{borderColor:"var(--accent)",boxShadow:"none"},_placeholder:{color:"var(--text-muted)"}},d0e=({project:e,agents:t,onSave:n,onClose:r})=>{const[a,i]=w.useState({language:e.language||"python",template:e.template||"default",repo_url:e.repo_url||"",provider:e.provider||"",path:e.path||"",python_version:e.python_version||"3.12",venv_path:e.venv_path||".venv",refiner:e.refiner||"refiner"}),[o,s]=w.useState(!1),l=p=>f=>i(h=>({...h,[p]:f.target.value})),u=async()=>{s(!0);try{await n(a)}finally{s(!1)}},c=p=>{p.target===p.currentTarget&&r()};return Ks.createPortal(d.jsxs(G,{position:"fixed",inset:0,zIndex:1400,display:"flex",alignItems:"center",justifyContent:"center",onClick:c,children:[d.jsx(G,{position:"absolute",inset:0,bg:"blackAlpha.600"}),d.jsxs(G,{position:"relative",zIndex:1,bg:"var(--bg-page)",borderRadius:"xl",border:"1px solid",borderColor:"var(--border-primary)",boxShadow:"xl",w:"full",maxW:"540px",mx:4,maxH:"90vh",overflowY:"auto",children:[d.jsxs(ne,{px:5,py:4,borderBottom:"1px solid",borderColor:"var(--border-primary)",justify:"space-between",children:[d.jsxs(ta,{size:"sm",color:"var(--text-heading)",children:["Edit Project — ",e.name]}),d.jsx(dt,{"aria-label":"Close",variant:"ghost",size:"sm",color:"var(--text-tertiary)",_hover:{color:"var(--text-heading)"},onClick:r,children:d.jsx(KP,{})})]}),d.jsxs(ze,{px:5,py:4,gap:4,align:"stretch",children:[d.jsxs(ne,{gap:4,children:[d.jsx(An,{label:"Language",children:d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:a.language,onChange:l("language"),..._n,children:["python","typescript","javascript","rust","go","java","c++","other"].map(p=>d.jsx("option",{value:p,children:p},p))})})}),d.jsx(An,{label:"Template",children:d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:a.template,onChange:l("template"),..._n,children:["default","library","cli","web-api","minimal"].map(p=>d.jsx("option",{value:p,children:p},p))})})})]}),d.jsx(An,{label:"Path",children:d.jsx(Ne,{size:"sm",value:a.path,onChange:l("path"),fontFamily:"mono",..._n})}),d.jsx(An,{label:"Repository URL",children:d.jsx(Ne,{size:"sm",value:a.repo_url,onChange:l("repo_url"),placeholder:"git@github.com:...",..._n})}),d.jsxs(ne,{gap:4,children:[d.jsx(An,{label:"Python version",children:d.jsx(Ne,{size:"sm",value:a.python_version,onChange:l("python_version"),w:"100px",..._n})}),d.jsx(An,{label:"Venv path",children:d.jsx(Ne,{size:"sm",value:a.venv_path,onChange:l("venv_path"),w:"140px",fontFamily:"mono",..._n})}),d.jsx(An,{label:"Provider",children:d.jsx(Ne,{size:"sm",value:a.provider,onChange:l("provider"),placeholder:"github",..._n})})]}),d.jsx(An,{label:"Refiner agent (default for project chat)",children:d.jsx(Wt,{size:"sm",maxW:"280px",children:d.jsx(qt,{value:a.refiner,onChange:l("refiner"),..._n,children:(t.length?t:[{name:"refiner"}]).map(p=>d.jsx("option",{value:p.name,children:p.name},p.name))})})}),d.jsxs(ne,{gap:4,pt:1,children:[d.jsxs(G,{children:[d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:"Source"}),d.jsx(bt,{colorScheme:e.source==="clone"?"purple":"green",fontSize:"xs",children:e.source})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:"Created"}),d.jsx(W,{fontSize:"xs",color:"var(--text-secondary)",children:new Date(e.created_at).toLocaleString()})]})]})]}),d.jsxs(ne,{px:5,py:3,borderTop:"1px solid",borderColor:"var(--border-primary)",justify:"flex-end",gap:2,children:[d.jsx(Et,{size:"sm",variant:"ghost",color:"var(--text-tertiary)",onClick:r,children:"Cancel"}),d.jsx(Et,{size:"sm",colorScheme:"green",onClick:u,loading:o,disabled:o,children:"Save"})]})]})]}),document.body)},lx={pending:"yellow",curating:"orange",ready:"blue",in_progress:"cyan",completed:"green",failed:"red",review:"purple"},p0e=[{key:"pending",label:"Pending"},{key:"ready",label:"Ready"},{key:"in_progress",label:"In Progress"},{key:"review",label:"Review"},{key:"completed",label:"Done"},{key:"failed",label:"Failed"}],Vh={task:{label:"Task",color:"green"},llm_complete:{label:"LLM",color:"teal"},tool_call:{label:"Tool",color:"orange"}},f0e=({task:e,onClick:t})=>{const n=Vh[e.kind]||{label:e.kind,color:"gray"};return d.jsxs(G,{p:3,bg:"var(--bg-input)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-secondary)",_hover:{borderColor:"var(--accent)",bg:"var(--bg-card-hover)"},transition:"all 0.15s",cursor:"pointer",onClick:t,children:[d.jsxs(ne,{justify:"space-between",mb:1,children:[d.jsx(W,{fontSize:"sm",fontWeight:"medium",color:"var(--text-heading)",lineClamp:2,children:e.title}),d.jsx(bt,{colorScheme:n.color,fontSize:"2xs",variant:"outline",flexShrink:0,children:n.label})]}),e.description&&d.jsx(W,{fontSize:"xs",color:"var(--text-tertiary)",lineClamp:2,mb:1,children:e.description}),d.jsxs(ne,{gap:2,mt:1,children:[e.gpu===1&&d.jsx(bt,{colorScheme:"red",fontSize:"2xs",variant:"outline",children:"GPU"}),d.jsxs(W,{fontSize:"2xs",color:"var(--text-muted)",children:["P",e.priority]}),e.retries>0&&d.jsxs(W,{fontSize:"2xs",color:"var(--text-secondary)",children:["retry ",e.retries,"/",e.max_retries]})]})]})},h0e=({label:e,tasks:t,color:n,onTaskClick:r})=>d.jsxs(G,{flex:1,minW:"180px",maxW:"280px",children:[d.jsxs(ne,{mb:3,gap:2,children:[d.jsx(G,{w:"8px",h:"8px",borderRadius:"full",bg:`${n}.400`}),d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-secondary)",children:e}),d.jsx(bt,{colorScheme:n,fontSize:"2xs",variant:"subtle",children:t.length})]}),d.jsx(ze,{gap:2,align:"stretch",bg:"var(--bg-kanban-col)",borderRadius:"lg",p:2,minH:"120px",maxH:"calc(100vh - 180px)",overflowY:"auto",border:"1px solid",borderColor:"var(--border-primary)",children:t.length===0?d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",textAlign:"center",py:4,children:"Empty"}):t.map(a=>d.jsx(f0e,{task:a,onClick:()=>r==null?void 0:r(a)},a.id))})]}),g0e=["pending","curating","ready","in_progress","review","completed","failed"],Ta={cursor:"pointer",borderRadius:"md",px:2,py:1,mx:-2,_hover:{bg:"var(--bg-input)"},transition:"background 0.1s"},m0e=({task:e,taskTree:t,agents:n,project:r,refinerAgent:a,onUpdate:i,onClose:o})=>{const[s,l]=w.useState({title:e.title,description:e.description||"",status:e.status,priority:e.priority,kind:e.kind,agent:e.agent||"",assigned_to:e.assigned_to||"",depends_on:e.depends_on||"",max_retries:e.max_retries,gpu:e.gpu,spec:e.spec||""}),[u,c]=w.useState(!1),[p,f]=w.useState(!1),[h,g]=w.useState(null),[y,x]=w.useState(null);w.useEffect(()=>{l({title:e.title,description:e.description||"",status:e.status,priority:e.priority,kind:e.kind,agent:e.agent||"",assigned_to:e.assigned_to||"",depends_on:e.depends_on||"",max_retries:e.max_retries,gpu:e.gpu,spec:e.spec||""}),f(!1),g(null)},[e]);const m=(N,_)=>{l(L=>({...L,[N]:_})),f(!0)},v=async()=>{c(!0);try{const N={};s.title!==e.title&&(N.title=s.title),s.description!==(e.description||"")&&(N.description=s.description),s.status!==e.status&&(N.status=s.status),s.priority!==e.priority&&(N.priority=s.priority),s.kind!==e.kind&&(N.kind=s.kind),s.agent!==(e.agent||"")&&(N.agent=s.agent),s.assigned_to!==(e.assigned_to||"")&&(N.assigned_to=s.assigned_to),s.depends_on!==(e.depends_on||"")&&(N.depends_on=s.depends_on),s.max_retries!==e.max_retries&&(N.max_retries=s.max_retries),s.gpu!==e.gpu&&(N.gpu=s.gpu),s.spec!==(e.spec||"")&&(N.spec=s.spec),Object.keys(N).length>0&&await i(e.id,N),f(!1),g(null)}finally{c(!1)}},b=N=>{g(null),p&&v()},S=w.useCallback(()=>{p&&v(),o()},[p,v,o]),C=w.useCallback(N=>{if(N.key==="Escape"){if(h){g(null);return}S()}},[h,S]),k=t.filter(N=>N.id!==e.id),R=Vh[s.kind]||{label:s.kind,color:"gray"},O=[`Task: ${s.title}`,`Status: ${s.status}`,s.description&&`Description: ${s.description}`,s.spec&&`Spec: ${s.spec}`,s.agent&&`Agent: ${s.agent}`,`Priority: P${s.priority}`].filter(Boolean).join(`
`);return Ks.createPortal(d.jsxs(G,{position:"fixed",inset:0,zIndex:1400,display:"flex",alignItems:"center",justifyContent:"center",onKeyDown:C,children:[d.jsx(G,{position:"absolute",inset:0,bg:"blackAlpha.600",onClick:S}),d.jsxs(ne,{position:"relative",zIndex:1,bg:"var(--bg-page)",borderRadius:"xl",border:"1px solid",borderColor:"var(--border-primary)",boxShadow:"xl",w:"90vw",maxW:"1200px",h:"85vh",mx:4,gap:0,align:"stretch",overflow:"hidden",children:[d.jsxs(G,{flex:1,display:"flex",flexDirection:"column",minW:0,children:[d.jsxs(ne,{px:5,py:4,borderBottom:"1px solid",borderColor:"var(--border-primary)",justify:"space-between",children:[d.jsxs(ne,{gap:2,flex:1,minW:0,children:[d.jsx(ta,{size:"sm",color:"var(--text-heading)",lineClamp:1,children:"Task Detail"}),d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",fontFamily:"mono",children:e.id})]}),d.jsxs(ne,{gap:2,children:[p&&d.jsx(Et,{size:"sm",colorScheme:"green",onClick:v,loading:u,disabled:u,children:"Save"}),d.jsx(dt,{"aria-label":"Close",variant:"ghost",size:"sm",color:"var(--text-tertiary)",_hover:{color:"var(--text-heading)"},onClick:S,children:d.jsx(KP,{})})]})]}),d.jsx(G,{flex:1,overflowY:"auto",px:5,py:4,children:d.jsxs(ze,{gap:4,align:"stretch",children:[d.jsx(An,{label:"Title",children:h==="title"?d.jsx(Ne,{size:"sm",value:s.title,onChange:N=>m("title",N.target.value),onBlur:()=>b(),onKeyDown:N=>{N.key==="Enter"&&(N.stopPropagation(),b())},fontWeight:"medium",autoFocus:!0,..._n}):d.jsx(W,{fontSize:"md",fontWeight:"semibold",color:"var(--text-heading)",onClick:()=>g("title"),...Ta,children:s.title||"—"})}),d.jsxs(ne,{gap:4,flexWrap:"wrap",children:[d.jsx(An,{label:"Status",children:h==="status"?d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:s.status,onChange:N=>{m("status",N.target.value)},onBlur:()=>b(),autoFocus:!0,..._n,children:g0e.map(N=>d.jsx("option",{value:N,children:N},N))})}):d.jsx(G,{onClick:()=>g("status"),...Ta,children:d.jsx(bt,{colorScheme:lx[s.status]||"gray",children:s.status})})}),d.jsx(An,{label:"Priority",children:h==="priority"?d.jsx(Ne,{size:"sm",type:"number",w:"70px",value:s.priority,onChange:N=>m("priority",parseInt(N.target.value)||0),onBlur:()=>b(),onKeyDown:N=>{N.key==="Enter"&&(N.stopPropagation(),b())},autoFocus:!0,..._n}):d.jsxs(W,{fontSize:"sm",color:"var(--text-secondary)",onClick:()=>g("priority"),...Ta,children:["P",s.priority]})}),d.jsx(An,{label:"Kind",children:h==="kind"?d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:s.kind,onChange:N=>{m("kind",N.target.value)},onBlur:()=>b(),autoFocus:!0,..._n,children:["task","llm_complete","tool_call"].map(N=>d.jsx("option",{value:N,children:N},N))})}):d.jsx(G,{onClick:()=>g("kind"),...Ta,children:d.jsx(bt,{colorScheme:R.color,variant:"outline",children:R.label})})}),d.jsx(An,{label:"GPU",children:h==="gpu"?d.jsx(Wt,{size:"sm",w:"80px",children:d.jsxs(qt,{value:String(s.gpu),onChange:N=>{m("gpu",parseInt(N.target.value)||0)},onBlur:()=>b(),autoFocus:!0,..._n,children:[d.jsx("option",{value:"0",children:"No"}),d.jsx("option",{value:"1",children:"Yes"})]})}):d.jsx(G,{onClick:()=>g("gpu"),...Ta,children:s.gpu===1?d.jsx(bt,{colorScheme:"red",fontSize:"2xs",variant:"outline",children:"GPU"}):d.jsx(W,{fontSize:"sm",color:"var(--text-muted)",children:"No"})})})]}),d.jsx(An,{label:"Description",children:h==="description"?d.jsx(Qi,{size:"sm",rows:6,value:s.description,onChange:N=>m("description",N.target.value),onBlur:()=>b(),placeholder:"Task description…",autoFocus:!0,..._n}):d.jsx(G,{onClick:()=>g("description"),...Ta,minH:"40px",children:s.description?d.jsx(G,{fontSize:"sm",color:"var(--text-secondary)",children:d.jsx(Iu,{content:s.description})}):d.jsx(W,{fontSize:"sm",color:"var(--text-muted)",children:"Click to add description…"})})}),d.jsx(An,{label:"Spec",children:h==="spec"?d.jsx(Qi,{size:"sm",rows:5,value:s.spec,onChange:N=>m("spec",N.target.value),onBlur:()=>b(),placeholder:"Task specification…",fontFamily:"mono",fontSize:"xs",autoFocus:!0,..._n}):d.jsx(G,{onClick:()=>g("spec"),...Ta,minH:"32px",children:s.spec?d.jsx(W,{fontSize:"xs",fontFamily:"mono",color:"var(--text-secondary)",whiteSpace:"pre-wrap",children:s.spec}):d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Click to add spec…"})})}),d.jsxs(ne,{gap:4,flexWrap:"wrap",children:[d.jsx(An,{label:"Agent",children:h==="agent"?d.jsx(Wt,{size:"sm",children:d.jsxs(qt,{value:s.agent,onChange:N=>{m("agent",N.target.value)},onBlur:()=>b(),autoFocus:!0,..._n,children:[d.jsx("option",{value:"",children:"— none —"}),n.map(N=>d.jsx("option",{value:N.name,children:N.name},N.name))]})}):d.jsx(W,{fontSize:"sm",color:s.agent?"var(--text-secondary)":"var(--text-muted)",onClick:()=>g("agent"),...Ta,children:s.agent||"— none —"})}),d.jsx(An,{label:"Assigned to",children:h==="assigned_to"?d.jsx(Ne,{size:"sm",value:s.assigned_to,onChange:N=>m("assigned_to",N.target.value),onBlur:()=>b(),onKeyDown:N=>{N.key==="Enter"&&(N.stopPropagation(),b())},placeholder:"worker id",autoFocus:!0,..._n}):d.jsx(W,{fontSize:"sm",color:s.assigned_to?"var(--text-secondary)":"var(--text-muted)",onClick:()=>g("assigned_to"),...Ta,children:s.assigned_to||"—"})}),d.jsx(An,{label:"Max retries",children:h==="max_retries"?d.jsx(Ne,{size:"sm",type:"number",w:"70px",value:s.max_retries,onChange:N=>m("max_retries",parseInt(N.target.value)||0),onBlur:()=>b(),onKeyDown:N=>{N.key==="Enter"&&(N.stopPropagation(),b())},autoFocus:!0,..._n}):d.jsx(W,{fontSize:"sm",color:"var(--text-secondary)",onClick:()=>g("max_retries"),...Ta,children:s.max_retries})}),d.jsx(An,{label:"Depends on",children:h==="depends_on"?d.jsx(Ne,{size:"sm",value:s.depends_on,onChange:N=>m("depends_on",N.target.value),onBlur:()=>b(),onKeyDown:N=>{N.key==="Enter"&&(N.stopPropagation(),b())},placeholder:"task id",fontFamily:"mono",fontSize:"xs",autoFocus:!0,..._n}):d.jsx(W,{fontSize:"xs",fontFamily:"mono",color:s.depends_on?"var(--text-secondary)":"var(--text-muted)",onClick:()=>g("depends_on"),...Ta,children:s.depends_on||"—"})})]}),d.jsxs(G,{borderTop:"1px solid",borderColor:"var(--border-primary)",pt:3,mt:1,children:[d.jsx(W,{fontSize:"2xs",fontWeight:"medium",color:"var(--text-muted)",mb:2,children:"Metadata"}),d.jsxs(ne,{gap:6,flexWrap:"wrap",children:[d.jsxs(G,{children:[d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:"Created"}),d.jsx(W,{fontSize:"2xs",color:"var(--text-secondary)",children:e.created_at})]}),e.updated_at&&d.jsxs(G,{children:[d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:"Updated"}),d.jsx(W,{fontSize:"2xs",color:"var(--text-secondary)",children:e.updated_at})]}),e.started_at&&d.jsxs(G,{children:[d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:"Started"}),d.jsx(W,{fontSize:"2xs",color:"var(--text-secondary)",children:e.started_at})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:"Retries"}),d.jsxs(W,{fontSize:"2xs",color:"var(--text-secondary)",children:[e.retries,"/",e.max_retries]})]})]})]}),e.error_log&&d.jsxs(G,{bg:"var(--bg-error)",p:3,borderRadius:"md",children:[d.jsx(W,{fontSize:"2xs",fontWeight:"medium",color:"var(--text-error)",mb:1,children:"Error Log"}),d.jsx(W,{fontSize:"xs",color:"var(--text-error)",fontFamily:"mono",whiteSpace:"pre-wrap",children:e.error_log})]}),k.length>0&&d.jsxs(G,{borderTop:"1px solid",borderColor:"var(--border-primary)",pt:3,children:[d.jsxs(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-secondary)",mb:2,children:["Subtasks (",k.length,")"]}),d.jsx(ze,{align:"stretch",gap:1,children:k.map(N=>d.jsxs(ne,{p:2,bg:"var(--bg-card)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-primary)",gap:2,children:[d.jsx(bt,{colorScheme:lx[N.status]||"gray",fontSize:"2xs",children:N.status}),d.jsx(W,{fontSize:"xs",color:"var(--text-secondary)",flex:1,lineClamp:1,children:N.title}),d.jsx(bt,{colorScheme:(Vh[N.kind]||{color:"gray"}).color,fontSize:"2xs",variant:"outline",children:(Vh[N.kind]||{label:N.kind}).label})]},N.id))})]})]})})]}),d.jsxs(G,{w:"420px",flexShrink:0,borderLeft:"1px solid",borderColor:"var(--border-primary)",display:"flex",flexDirection:"column",bg:"var(--bg-page)",children:[d.jsxs(G,{px:4,py:4,borderBottom:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-heading)",children:"Refine Task"}),d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",mt:1,children:"Chat with AI to refine this task. The current task info is shared as context."})]}),d.jsx(Zp,{conversationId:y,onConversationCreated:x,project:r,refinerAgent:a,compact:!0,placeholder:`Refine task "${s.title}"… (task context is included)`,autoSendMessage:`I'd like to work on refining the following task. Here is its current state:

${O}

Please help me improve and clarify this task.`})]})]})]}),document.body)},b0e=()=>{const{name:e}=TS(),t=nl(),{tasks:n,isConnected:r}=rc(),[a,i]=w.useState(null),[o,s]=w.useState([]),[l,u]=w.useState(""),[c,p]=w.useState(!1),[f,h]=w.useState(null),[g,y]=w.useState([]),[x,m]=w.useState(null),[v,b]=w.useState(!1),[S,C]=w.useState([]);w.useEffect(()=>{e&&(document.title=`${e} - Açaí`,s_(e).then(i).catch(()=>t("/projects")))},[e,t]),w.useEffect(()=>{jp().then(C).catch(()=>{})},[]),w.useEffect(()=>{n.length>0?s(n.filter(_=>_.project===e&&!_.parent_task)):!r&&e&&mM({project:e,rootOnly:!0}).then(s).catch(()=>{})},[n,r,e]);const k=async()=>{const _=l.trim();if(!(!_||!e))try{const L=await yM(_,"",0,e);s(I=>[L,...I]),u(""),p(!1)}catch{}},R=w.useCallback(async _=>{h(_);try{const L=await bM(_.id);y(L)}catch{y([_])}},[]),O=w.useCallback(async(_,L)=>{const I=await cie(_,L);s(P=>P.map(M=>M.id===_?I:M)),h(P=>(P==null?void 0:P.id)===_?I:P)},[]),N=async _=>{if(!e)return;await hie(e,_);const L=await s_(e);i(L),b(!1)};return a?d.jsxs(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",display:"flex",flexDirection:"column",overflow:"hidden",children:[d.jsxs(ne,{px:4,py:3,borderBottom:"1px solid",borderColor:"var(--border-primary)",bg:"var(--bg-page)",flexShrink:0,children:[d.jsx(dt,{"aria-label":"Back to projects",onClick:()=>t("/projects"),variant:"ghost",size:"sm",color:"var(--text-tertiary)",_hover:{color:"var(--text-heading)"},children:d.jsx(u0e,{})}),d.jsxs(ne,{gap:2,flex:1,children:[d.jsx(ta,{size:"md",color:"var(--text-heading)",children:a.name}),d.jsx(bt,{colorScheme:"blue",fontSize:"xs",variant:"outline",children:a.language}),d.jsx(bt,{colorScheme:a.source==="clone"?"purple":"green",fontSize:"xs",children:a.source})]}),d.jsx(dt,{"aria-label":"Edit project",onClick:()=>b(!0),variant:"ghost",size:"sm",color:"var(--text-tertiary)",_hover:{color:"var(--text-heading)"},children:d.jsx(c0e,{})}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",fontFamily:"mono",maxW:"40%",lineClamp:1,children:a.path})]}),v&&d.jsx(d0e,{project:a,agents:S,onSave:N,onClose:()=>b(!1)}),f&&d.jsx(m0e,{task:f,taskTree:g,agents:S,project:e,refinerAgent:a.refiner||"refiner",onUpdate:O,onClose:()=>{h(null),y([])}}),d.jsxs(ne,{flex:1,minH:0,align:"stretch",gap:0,children:[d.jsxs(G,{flex:1,overflowX:"auto",overflowY:"hidden",display:"flex",flexDirection:"column",children:[d.jsx(ne,{px:4,pt:3,pb:1,gap:2,children:c?d.jsxs(d.Fragment,{children:[d.jsx(Ne,{size:"xs",placeholder:"Task title",bg:"var(--bg-card)",color:"var(--text-heading)",borderColor:"var(--border-secondary)",flex:1,maxW:"300px",value:l,onChange:_=>u(_.target.value),onKeyDown:_=>_.key==="Enter"&&k(),autoFocus:!0}),d.jsx(Et,{size:"xs",colorScheme:"green",onClick:k,disabled:!l.trim(),children:"Add"}),d.jsx(Et,{size:"xs",variant:"ghost",color:"var(--text-tertiary)",onClick:()=>{p(!1),u("")},children:"Cancel"})]}):d.jsx(Et,{size:"xs",colorScheme:"green",variant:"outline",onClick:()=>p(!0),children:"+ New Task"})}),d.jsx(G,{flex:1,overflowX:"auto",overflowY:"hidden",p:4,pt:2,children:d.jsx(ne,{gap:3,align:"flex-start",h:"100%",minW:"min-content",children:p0e.map(_=>d.jsx(h0e,{label:_.label,color:lx[_.key]||"gray",tasks:o.filter(L=>L.status===_.key),onTaskClick:R},_.key))})})]}),d.jsxs(G,{w:"520px",flexShrink:0,borderLeft:"1px solid",borderColor:"var(--border-primary)",display:"flex",flexDirection:"column",bg:"var(--bg-page)",children:[d.jsx(G,{px:4,py:3,borderBottom:"1px solid",borderColor:"var(--border-primary)",children:d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-secondary)",children:"Chat"})}),d.jsx(Zp,{conversationId:x,onConversationCreated:m,project:e,refinerAgent:a.refiner||"refiner",compact:!0})]})]})]}):d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",display:"flex",alignItems:"center",justifyContent:"center",children:d.jsx(On,{color:"var(--accent)",size:"lg"})})},y0e=["worker","curator","manager"],v0e=`{%- set system_prompt -%}
You are {{ agent.name }}{% if agent.description %}, {{ agent.description }}{% endif %}.
{% if task.project_obj %}

You are working on project **{{ task.project_obj.name }}** ({{ task.project_obj.language }}).
{% if task.project_spec %}

## Project Specification
{{ task.project_spec }}
{% endif %}
{% endif %}
{% if tools_description %}

## Available Tools
{{ tools_description }}
{% endif %}

Answer questions, suggest plans, and create tasks when asked.
{%- endset -%}
[
  {"role": "system", "content": {{ system_prompt | tojson }}}
{% for msg in messages %},
  {"role": {{ msg.role | tojson }}, "content": {{ msg.content | tojson }}}
{% endfor %}
]
`,x0e=()=>d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[d.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),d.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),S0e=()=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("polyline",{points:"3 6 5 6 21 6"}),d.jsx("path",{d:"M19 6l-1 14H6L5 6"}),d.jsx("path",{d:"M10 11v6"}),d.jsx("path",{d:"M14 11v6"}),d.jsx("path",{d:"M9 6V4h6v2"})]}),w0e=()=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),d.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),E0e=["messages","text"],iR={name:"",description:"",role:"worker",avatar:"",provider:"auto",output_format:"messages",temperature:"0.7",max_tokens:"4096",tools:"",tool_permissions_read:!0,tool_permissions_write:!1,tool_permissions_execute:!1,context_sources:"",max_iterations:"20",approval_required:!1,tags:"",uses_sandbox:!1},k0e={worker:"blue",curator:"purple",manager:"orange"},T0e=()=>{const[e,t]=w.useState([]),[n,r]=w.useState([]),[a,i]=w.useState([]),[o,s]=w.useState(""),[l,u]=w.useState(!1),[c,p]=w.useState(null),[f,h]=w.useState(iR),[g,y]=w.useState(""),[x,m]=w.useState(!1),[v,b]=w.useState(""),[S,C]=w.useState(!1),[k,R]=w.useState(!1),O=w.useCallback(()=>{jp().then(t).catch(A=>s(A instanceof Error?A.message:"Failed to load"))},[]);w.useEffect(()=>{document.title="Agents - Açaí",O(),fm().then(r).catch(()=>{}),Eie().then(i).catch(()=>{})},[O]);const N=A=>{const j={},B=parseFloat(A.temperature);isNaN(B)||(j.temperature=B);const V=parseInt(A.max_tokens);return isNaN(V)||(j.max_tokens=V),{name:A.name.trim(),description:A.description,role:A.role,avatar:A.avatar,provider:A.provider,output_format:A.output_format,model_overrides:j,tools:A.tools?A.tools.split(",").map(D=>D.trim()).filter(Boolean):[],tool_permissions:[...A.tool_permissions_read?["read"]:[],...A.tool_permissions_write?["write"]:[],...A.tool_permissions_execute?["execute"]:[]],context_sources:A.context_sources?A.context_sources.split(",").map(D=>D.trim()).filter(Boolean):[],max_iterations:parseInt(A.max_iterations)||20,approval_required:A.approval_required,tags:A.tags?A.tags.split(",").map(D=>D.trim()).filter(Boolean):[],uses_sandbox:A.uses_sandbox}},_=()=>{h(iR),p(null),y(""),u(!0),b(v0e),C(!1)},L=async A=>{var j,B;h({name:A.name,description:A.description,role:A.role,avatar:A.avatar,provider:A.provider,output_format:A.output_format||"messages",temperature:String(((j=A.model_overrides)==null?void 0:j.temperature)??"0.7"),max_tokens:String(((B=A.model_overrides)==null?void 0:B.max_tokens)??"4096"),tools:A.tools.join(", "),tool_permissions_read:(A.tool_permissions??["read"]).includes("read"),tool_permissions_write:(A.tool_permissions??["read"]).includes("write"),tool_permissions_execute:(A.tool_permissions??["read"]).includes("execute"),context_sources:A.context_sources.join(", "),max_iterations:String(A.max_iterations),approval_required:A.approval_required,tags:A.tags.join(", "),uses_sandbox:A.uses_sandbox??!1}),p(A.name),y(""),u(!0);try{const{content:V}=await wie(A.name);b(V)}catch{b("")}C(!1)},I=async()=>{if(!f.name.trim()){y("Name is required");return}m(!0),y("");try{const A=N(f);if(c)await xie(c,A),S&&await fy(c,v);else{await vie(A);const j=(A.name??"").replace(/\s+/g,"-").toLowerCase();await fy(j,v)}u(!1),O()}catch(A){y(A instanceof Error?A.message:"Failed")}finally{m(!1)}},P=async A=>{m(!0);try{await Sie(A),O()}catch{}finally{m(!1)}},M=async()=>{if(c){R(!0);try{await fy(c,v),C(!1)}catch{}finally{R(!1)}}},F=(A,j)=>h(B=>({...B,[A]:j}));return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",overflowY:"auto",p:6,children:d.jsxs(G,{maxW:"4xl",mx:"auto",children:[d.jsxs(ne,{justify:"space-between",mb:6,children:[d.jsx(ta,{size:"lg",color:"var(--text-heading)",children:"Agents"}),d.jsx(dt,{"aria-label":"Add agent",size:"sm",variant:"outline",onClick:_,borderColor:"var(--border-primary)",color:"var(--text-primary)",children:d.jsx(x0e,{})})]}),o&&d.jsx(G,{p:3,bg:"var(--bg-error)",borderRadius:"md",mb:4,children:d.jsx(W,{color:"var(--text-error)",fontSize:"sm",children:o})}),e.length===0&&!l&&d.jsx(W,{color:"var(--text-muted)",fontSize:"sm",py:8,textAlign:"center",children:"No agents configured. Click (+) to create one."}),d.jsx(ze,{gap:3,align:"stretch",mb:6,children:e.map(A=>d.jsxs(G,{p:4,bg:"var(--bg-card)",borderRadius:"lg",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsxs(ne,{justify:"space-between",mb:2,children:[d.jsxs(ne,{gap:2,children:[A.avatar&&d.jsx(W,{fontSize:"lg",children:A.avatar}),d.jsx(W,{fontWeight:"bold",color:"var(--text-heading)",fontSize:"sm",children:A.name}),d.jsx(bt,{colorScheme:k0e[A.role]||"gray",fontSize:"2xs",children:A.role}),d.jsx(bt,{variant:"outline",fontSize:"2xs",children:A.provider==="auto"?"auto":A.provider}),A.builtin&&d.jsx(bt,{colorScheme:"green",fontSize:"2xs",variant:"subtle",children:"built-in"})]}),d.jsxs(ne,{gap:1,children:[d.jsx(dt,{"aria-label":"Edit",size:"xs",variant:"ghost",onClick:()=>L(A),color:"var(--text-tertiary)",children:d.jsx(w0e,{})}),!A.builtin&&d.jsx(dt,{"aria-label":"Delete",size:"xs",variant:"ghost",onClick:()=>P(A.name),color:"var(--text-error)",disabled:x,children:d.jsx(S0e,{})})]})]}),A.description&&d.jsx(W,{fontSize:"sm",color:"var(--text-secondary)",mb:2,children:A.description}),d.jsxs(ne,{gap:6,flexWrap:"wrap",children:[d.jsxs(ze,{align:"flex-start",gap:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Max Iterations"}),d.jsx(W,{fontSize:"sm",color:"var(--text-primary)",children:A.max_iterations})]}),d.jsxs(ze,{align:"flex-start",gap:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Format"}),d.jsx(W,{fontSize:"sm",color:"var(--text-primary)",children:A.output_format||"messages"})]}),d.jsxs(ze,{align:"flex-start",gap:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Approval"}),d.jsx(W,{fontSize:"sm",color:"var(--text-primary)",children:A.approval_required?"Required":"No"})]}),A.uses_sandbox&&d.jsxs(ze,{align:"flex-start",gap:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Sandbox"}),d.jsx(W,{fontSize:"sm",color:"var(--text-primary)",children:"Enabled"})]})]}),A.tools.length>0&&d.jsxs(ne,{mt:2,gap:1,flexWrap:"wrap",children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Tools:"}),A.tools.map(j=>d.jsx(bt,{fontSize:"2xs",variant:"outline",children:j},j))]}),A.tags.length>0&&d.jsxs(ne,{mt:1,gap:1,flexWrap:"wrap",children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Tags:"}),A.tags.map(j=>d.jsx(bt,{fontSize:"2xs",colorScheme:"teal",children:j},j))]})]},A.name))}),l&&d.jsxs(G,{p:4,bg:"var(--bg-elevated)",borderRadius:"lg",border:"1px solid",borderColor:"var(--border-primary)",mb:6,children:[d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",mb:3,fontSize:"sm",children:c?`Edit "${c}"`:"New Agent"}),g&&d.jsx(G,{p:2,bg:"var(--bg-error)",borderRadius:"md",mb:3,children:d.jsx(W,{color:"var(--text-error)",fontSize:"xs",children:g})}),d.jsxs(ze,{gap:3,align:"stretch",children:[d.jsxs(ne,{gap:3,children:[d.jsxs(G,{flex:2,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Name"}),d.jsx(Ne,{size:"sm",placeholder:"e.g. code-reviewer",value:f.name,onChange:A=>F("name",A.target.value),disabled:!!c,bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Role"}),d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:f.role,onChange:A=>F("role",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)",children:y0e.map(A=>d.jsx("option",{value:A,style:{background:"var(--option-bg)"},children:A},A))})})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Avatar"}),d.jsx(Ne,{size:"sm",placeholder:"emoji",value:f.avatar,onChange:A=>F("avatar",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Description"}),d.jsx(Ne,{size:"sm",placeholder:"What does this agent do?",value:f.description,onChange:A=>F("description",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Provider"}),d.jsx(Wt,{size:"sm",children:d.jsxs(qt,{value:f.provider,onChange:A=>F("provider",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)",children:[d.jsx("option",{value:"auto",style:{background:"var(--option-bg)"},children:"Auto (highest priority)"}),n.map(A=>d.jsxs("option",{value:A.name,style:{background:"var(--option-bg)"},children:[A.name," (",A.model||A.backend,")"]},A.name))]})})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Output Format"}),d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:f.output_format,onChange:A=>F("output_format",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)",children:E0e.map(A=>d.jsx("option",{value:A,style:{background:"var(--option-bg)"},children:A==="messages"?"messages (JSON array)":"text (system prompt)"},A))})})]}),d.jsxs(ne,{gap:3,children:[d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Temperature"}),d.jsx(Ne,{size:"sm",type:"number",step:"0.1",placeholder:"0.7",value:f.temperature,onChange:A=>F("temperature",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Max Tokens"}),d.jsx(Ne,{size:"sm",type:"number",placeholder:"4096",value:f.max_tokens,onChange:A=>F("max_tokens",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Max Iterations"}),d.jsx(Ne,{size:"sm",type:"number",placeholder:"20",value:f.max_iterations,onChange:A=>F("max_iterations",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Tool namespaces"}),a.length>0?d.jsx(ne,{gap:2,flexWrap:"wrap",children:a.map(A=>{const B=f.tools.split(",").map(V=>V.trim()).filter(Boolean).includes(A.namespace);return d.jsxs(G,{as:"button",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"medium",border:"1px solid",borderColor:B?"var(--accent)":"var(--border-primary)",bg:B?"var(--accent-subtle)":"transparent",color:B?"var(--accent)":"var(--text-tertiary)",cursor:"pointer",_hover:{borderColor:"var(--accent)"},title:A.tools.join(", "),onClick:()=>{const V=f.tools.split(",").map(Z=>Z.trim()).filter(Boolean),D=B?V.filter(Z=>Z!==A.namespace):[...V,A.namespace];F("tools",D.join(", "))},children:[A.namespace,d.jsxs(W,{as:"span",fontSize:"2xs",color:"var(--text-muted)",ml:1,children:["(",A.tools.length,")"]})]},A.namespace)})}):d.jsx(Ne,{size:"sm",placeholder:"filesystem, git, shell",value:f.tools,onChange:A=>F("tools",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"}),d.jsxs(ne,{gap:3,mt:2,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Permissions:"}),["read","write","execute"].map(A=>{const j=`tool_permissions_${A}`,B=f[j],V={read:"blue",write:"orange",execute:"red"};return d.jsx(G,{as:"button",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"medium",border:"1px solid",borderColor:B?`${V[A]}.400`:"var(--border-primary)",bg:B?`${V[A]}.900`:"transparent",color:B?`${V[A]}.200`:"var(--text-tertiary)",cursor:"pointer",_hover:{borderColor:`${V[A]}.400`},onClick:()=>F(j,!B),children:A},A)})]})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Context sources (comma-separated file globs)"}),d.jsx(Ne,{size:"sm",placeholder:"docs/goal.md, docs/overview.md",value:f.context_sources,onChange:A=>F("context_sources",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Tags (comma-separated)"}),d.jsx(Ne,{size:"sm",placeholder:"python, review",value:f.tags,onChange:A=>F("tags",A.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsx(ne,{gap:2,children:d.jsx(G,{as:"button",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"medium",border:"1px solid",borderColor:f.approval_required?"var(--accent)":"var(--border-primary)",bg:f.approval_required?"var(--accent-subtle)":"transparent",color:f.approval_required?"var(--accent)":"var(--text-tertiary)",cursor:"pointer",onClick:()=>F("approval_required",!f.approval_required),_hover:{borderColor:"var(--accent)"},children:f.approval_required?"Approval required":"No approval needed"})}),d.jsxs(ne,{gap:2,children:[d.jsx(G,{as:"button",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"medium",border:"1px solid",borderColor:f.uses_sandbox?"var(--accent)":"var(--border-primary)",bg:f.uses_sandbox?"var(--accent-subtle)":"transparent",color:f.uses_sandbox?"var(--accent)":"var(--text-tertiary)",cursor:"pointer",onClick:()=>F("uses_sandbox",!f.uses_sandbox),_hover:{borderColor:"var(--accent)"},children:f.uses_sandbox?"Sandbox: Enabled":"Sandbox: Disabled"}),d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:"Sandbox backend is configured in Settings"})]}),d.jsxs(G,{children:[d.jsxs(ne,{justify:"space-between",mb:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"System Template (Jinja2)"}),c&&S&&d.jsx(G,{as:"button",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"medium",bg:"var(--accent)",color:"var(--text-inverse)",cursor:"pointer",onClick:M,_hover:{bg:"var(--accent-hover)"},children:k?d.jsx(On,{size:"xs"}):"Save template"})]}),d.jsx(Qi,{size:"sm",rows:12,fontFamily:"mono",fontSize:"xs",value:v,onChange:A=>{b(A.target.value),C(!0)},bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)",placeholder:"Jinja2 system prompt template..."})]}),d.jsxs(ne,{gap:2,justify:"flex-end",children:[d.jsx(G,{as:"button",px:4,py:1.5,borderRadius:"md",fontSize:"sm",bg:"transparent",color:"var(--text-secondary)",cursor:"pointer",onClick:()=>u(!1),children:"Cancel"}),d.jsx(G,{as:"button",px:4,py:1.5,borderRadius:"md",fontSize:"sm",fontWeight:"medium",bg:"var(--accent)",color:"var(--text-inverse)",cursor:"pointer",onClick:I,_hover:{bg:"var(--accent-hover)"},children:x?d.jsx(On,{size:"xs"}):c?"Save":"Create"})]})]})]})]})})},fC={pending:"yellow",curating:"orange",ready:"blue",in_progress:"cyan",completed:"green",failed:"red",review:"purple"},ZP={task:{label:"Task",color:"green"},llm_complete:{label:"LLM",color:"teal"},tool_call:{label:"Tool",color:"orange"}},Jt=({label:e,value:t})=>{const n=t==null||t===""?"—":String(t),r=n==="—";return d.jsxs(ne,{gap:2,py:1,borderBottom:"1px solid",borderColor:"var(--border-primary)",align:"flex-start",children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",fontWeight:"medium",w:"120px",flexShrink:0,children:e}),d.jsx(W,{fontSize:"xs",color:r?"var(--text-muted)":"var(--text-secondary)",fontFamily:"mono",wordBreak:"break-all",flex:1,whiteSpace:"pre-wrap",children:n})]})},QP=({task:e})=>d.jsxs(G,{mt:1,p:4,bg:"var(--bg-elevated)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-secondary)",children:[d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-heading)",mb:3,children:"DB Record"}),d.jsxs(ze,{align:"stretch",gap:0,children:[d.jsx(Jt,{label:"id",value:e.id}),d.jsx(Jt,{label:"kind",value:e.kind}),d.jsx(Jt,{label:"status",value:e.status}),d.jsx(Jt,{label:"title",value:e.title}),d.jsx(Jt,{label:"description",value:e.description}),d.jsx(Jt,{label:"priority",value:e.priority}),d.jsx(Jt,{label:"gpu",value:e.gpu}),d.jsx(Jt,{label:"agent",value:e.agent}),d.jsx(Jt,{label:"project",value:e.project}),d.jsx(Jt,{label:"spec",value:e.spec}),d.jsx(Jt,{label:"spec_path",value:e.spec_path}),d.jsx(Jt,{label:"context_path",value:e.context_path}),d.jsx(Jt,{label:"result_path",value:e.result_path}),d.jsx(Jt,{label:"worktree",value:e.worktree}),d.jsx(Jt,{label:"assigned_to",value:e.assigned_to}),d.jsx(Jt,{label:"depends_on",value:e.depends_on}),d.jsx(Jt,{label:"parent_task",value:e.parent_task}),d.jsx(Jt,{label:"root_task",value:e.root_task}),d.jsx(Jt,{label:"retries",value:`${e.retries} / ${e.max_retries}`}),d.jsx(Jt,{label:"error_log",value:e.error_log}),d.jsx(Jt,{label:"created_at",value:e.created_at}),d.jsx(Jt,{label:"updated_at",value:e.updated_at}),d.jsx(Jt,{label:"started_at",value:e.started_at})]})]}),C0e=({task:e,depth:t=0,onSelect:n,selectedId:r})=>{const a=ZP[e.kind]||{label:e.kind,color:"gray"},i=r===e.id;return d.jsxs(G,{children:[d.jsxs(ne,{pl:`${t*20+8}px`,py:1.5,pr:3,bg:i?"var(--bg-active)":"var(--bg-elevated)",borderRadius:"md",border:"1px solid",borderColor:i?"var(--accent)":"var(--border-primary)",gap:2,cursor:"pointer",_hover:{borderColor:"var(--border-secondary)"},onClick:o=>{o.stopPropagation(),n==null||n(e)},children:[d.jsx(bt,{colorScheme:fC[e.status]||"gray",fontSize:"2xs",children:e.status}),d.jsx(bt,{colorScheme:a.color,fontSize:"2xs",variant:"outline",children:a.label}),d.jsx(W,{fontSize:"xs",color:"var(--text-secondary)",flex:1,lineClamp:1,children:e.title}),e.created_at&&d.jsx(W,{fontSize:"2xs",color:"var(--text-muted)",children:new Date(e.created_at).toLocaleString()})]}),i&&d.jsx(QP,{task:e})]})},A0e=({task:e,rootOnly:t})=>{const[n,r]=w.useState(!1),[a,i]=w.useState(!1),[o,s]=w.useState([]),[l,u]=w.useState(!1),[c,p]=w.useState(null),f=async()=>{if(n){r(!1);return}u(!0);try{const y=await bM(e.id);s(y.filter(x=>x.id!==e.id))}catch{s([])}u(!1),r(!0)},h=y=>{p(x=>x===y.id?null:y.id)},g=ZP[e.kind]||{label:e.kind,color:"gray"};return d.jsxs(G,{children:[d.jsxs(G,{p:4,bg:"var(--bg-card)",borderRadius:"lg",border:"1px solid",borderColor:n||a?"var(--accent)":"var(--border-primary)",_hover:{borderColor:"var(--border-secondary)"},transition:"all 0.2s",cursor:"pointer",onClick:t?f:()=>i(y=>!y),children:[d.jsxs(ne,{justify:"space-between",mb:2,children:[d.jsxs(ne,{gap:2,children:[t&&d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mr:1,children:n?"▾":"▸"}),d.jsx(bt,{colorScheme:g.color,fontSize:"xs",variant:"outline",children:g.label}),e.gpu===1&&d.jsx(bt,{colorScheme:"red",fontSize:"xs",variant:"outline",children:"GPU"}),d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",fontSize:"md",children:e.title})]}),d.jsxs(ne,{gap:2,children:[e.project&&d.jsx(bt,{colorScheme:"purple",fontSize:"xs",variant:"outline",children:e.project}),d.jsx(bt,{colorScheme:fC[e.status]||"gray",fontSize:"xs",children:e.status})]})]}),e.description&&d.jsx(W,{fontSize:"sm",color:"var(--text-tertiary)",mb:3,lineHeight:"1.6",children:e.description}),d.jsxs(ne,{gap:4,flexWrap:"wrap",children:[d.jsxs(W,{fontSize:"xs",color:"var(--text-muted)",children:["Priority: ",e.priority]}),e.assigned_to&&d.jsxs(W,{fontSize:"xs",color:"var(--text-muted)",children:["Assigned: ",e.assigned_to]}),e.retries>0&&d.jsxs(W,{fontSize:"xs",color:"orange.400",children:["Retries: ",e.retries,"/",e.max_retries]}),e.created_at&&d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:new Date(e.created_at).toLocaleString()}),t&&d.jsx(W,{fontSize:"xs",color:"var(--text-link)",cursor:"pointer",_hover:{textDecoration:"underline"},onClick:y=>{y.stopPropagation(),i(x=>!x)},children:a?"Hide details":"Details"})]}),e.error_log&&d.jsx(G,{mt:2,p:2,bg:"var(--bg-error)",borderRadius:"md",maxH:"100px",overflowY:"auto",children:d.jsx(W,{fontSize:"xs",color:"var(--text-error)",fontFamily:"mono",whiteSpace:"pre-wrap",children:e.error_log})})]}),a&&d.jsx(QP,{task:e}),n&&d.jsx(ze,{align:"stretch",gap:1,ml:4,mt:1,mb:2,children:l?d.jsxs(ne,{gap:2,p:2,children:[d.jsx(On,{size:"xs",color:"green.300"}),d.jsx(W,{fontSize:"xs",color:"var(--text-tertiary)",children:"Loading tree..."})]}):o.length===0?d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",pl:3,py:1,children:"No subtasks"}):o.map(y=>d.jsx(C0e,{task:y,onSelect:h,selectedId:c},y.id))})]})},_0e=()=>{const{tasks:e,isConnected:t}=rc(),[n,r]=w.useState([]),[a,i]=w.useState(null),[o,s]=w.useState(""),[l,u]=w.useState([]),[c,p]=w.useState(!0),[f,h]=w.useState(!1),[g,y]=w.useState(""),[x,m]=w.useState(""),[v,b]=w.useState(!0);w.useEffect(()=>{vM().then(u).catch(()=>{})},[]),w.useEffect(()=>{if(e.length>0){let k=e;a&&(k=k.filter(R=>R.status===a)),o&&(k=k.filter(R=>R.project===o)),c&&(k=k.filter(R=>!R.parent_task)),r(k),b(!1)}},[e,a,o,c]),w.useEffect(()=>{document.title="Work Queue - Açaí",t||mM({status:a??void 0,project:o||void 0,rootOnly:c}).then(k=>{r(k),b(!1)}).catch(()=>b(!1))},[t,a,o,c]);const S=async()=>{if(g.trim())try{await yM(g.trim(),x.trim(),0,o),y(""),m(""),h(!1)}catch{}},C=["pending","curating","ready","in_progress","completed","failed","review"];return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",overflowY:"auto",p:6,children:d.jsxs(G,{maxW:"4xl",mx:"auto",children:[d.jsxs(ne,{justify:"space-between",mb:6,children:[d.jsx(ta,{size:"lg",color:"var(--text-heading)",children:"Work Queue"}),d.jsx(ne,{gap:2,children:d.jsx(Et,{colorScheme:"green",size:"sm",onClick:()=>h(!f),children:f?"Cancel":"New Task"})})]}),f&&d.jsx(G,{p:4,bg:"var(--bg-card)",borderRadius:"lg",mb:6,border:"1px solid",borderColor:"var(--border-primary)",children:d.jsxs(ze,{gap:3,align:"stretch",children:[d.jsx(Ne,{placeholder:"Task title",value:g,onChange:k=>y(k.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",_placeholder:{color:"var(--text-muted)"}}),d.jsx(Qi,{placeholder:"Description (optional)",value:x,onChange:k=>m(k.target.value),bg:"var(--bg-input)",border:"none",color:"var(--text-heading)",_placeholder:{color:"var(--text-muted)"},rows:3}),d.jsx(Et,{colorScheme:"green",size:"sm",alignSelf:"flex-end",onClick:S,disabled:!g.trim(),children:"Create Task"})]})}),d.jsxs(ne,{gap:3,mb:4,flexWrap:"wrap",align:"center",children:[d.jsxs(ne,{gap:1,bg:"var(--bg-card)",borderRadius:"md",p:1,border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(Et,{size:"xs",variant:"ghost",onClick:()=>s(""),bg:o?"transparent":"var(--bg-active)",color:o?"var(--text-tertiary)":"var(--text-heading)",_hover:{bg:"var(--bg-hover)"},children:"All Projects"}),l.map(k=>d.jsx(Et,{size:"xs",variant:"ghost",onClick:()=>s(o===k.name?"":k.name),bg:o===k.name?"var(--accent-subtle)":"transparent",color:o===k.name?"var(--text-heading)":"var(--text-tertiary)",_hover:{bg:"var(--bg-hover)"},children:k.name},k.name))]}),d.jsx(Et,{size:"xs",variant:c?"solid":"outline",colorScheme:"green",onClick:()=>p(!c),children:c?"Root tasks only":"All tasks"})]}),d.jsxs(ne,{gap:2,mb:6,flexWrap:"wrap",children:[d.jsxs(Et,{size:"xs",variant:"ghost",onClick:()=>i(null),bg:a===null?"var(--bg-active)":"transparent",color:a===null?"var(--text-heading)":"var(--text-tertiary)",border:"1px solid",borderColor:a===null?"var(--border-secondary)":"var(--border-primary)",_hover:{bg:"var(--bg-hover)"},children:["All (",n.length,")"]}),C.map(k=>{const R=n.filter(O=>O.status===k).length;return R===0&&a!==k?null:d.jsxs(Et,{size:"xs",variant:a===k?"solid":"outline",colorScheme:fC[k]||"gray",onClick:()=>i(a===k?null:k),children:[k," (",R,")"]},k)})]}),d.jsx(ze,{gap:3,align:"stretch",children:v?d.jsx(W,{color:"var(--text-tertiary)",textAlign:"center",py:8,children:"Loading..."}):n.length===0?d.jsxs(ze,{py:12,gap:3,children:[d.jsx(W,{fontSize:"lg",color:"var(--text-tertiary)",children:"No tasks in the queue"}),d.jsx(W,{fontSize:"sm",color:"var(--text-muted)",children:"Tasks are created during conversation or manually above."})]}):n.map(k=>d.jsx(A0e,{task:k,rootOnly:c},k.id))})]})})},R0e={new_requirement:"blue",clarification:"cyan",decision:"green",contradiction:"red",task_request:"orange",spec_updated:"teal",spec_created:"teal",task_created:"yellow",task_assigned:"purple",context_ready:"blue",task_completed:"green",task_failed:"red",task_needs_review:"orange"},N0e=["vllm","openai","anthropic","llamacpp"],I0e=["worker","curator","manager"],O0e=()=>d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[d.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),d.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),D0e=()=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("polyline",{points:"3 6 5 6 21 6"}),d.jsx("path",{d:"M19 6l-1 14H6L5 6"}),d.jsx("path",{d:"M10 11v6"}),d.jsx("path",{d:"M14 11v6"}),d.jsx("path",{d:"M9 6V4h6v2"})]}),L0e=()=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),d.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),oR={name:"",backend:"openai",model:"",endpoint:"",api_key:"",server_port:"9123",max_tokens:"4096",temperature:"0.7",priority:"50",roles:[]},M0e=()=>{const{status:e,events:t,isConnected:n}=rc(),[r,a]=w.useState(null),[i,o]=w.useState([]),[s,l]=w.useState([]),[u,c]=w.useState(""),[p,f]=w.useState(!1),[h,g]=w.useState(null),[y,x]=w.useState(oR),[m,v]=w.useState(""),[b,S]=w.useState(!1),C=w.useCallback(()=>{fm().then(l).catch(()=>{})},[]);w.useEffect(()=>{e&&a(e)},[e]),w.useEffect(()=>{t.length>0&&o([...t].reverse())},[t]),w.useEffect(()=>{document.title="Status - Açaí",n||Promise.all([pie(),die(100)]).then(([P,M])=>{a(P),o(M.reverse()),c("")}).catch(P=>c(P instanceof Error?P.message:"Failed to load")),C()},[n,C]);const k=()=>{x(oR),g(null),v(""),f(!0)},R=P=>{x({name:P.name,backend:P.backend,model:P.model,endpoint:P.endpoint,api_key:P.api_key,server_port:String(P.server_port),max_tokens:String(P.max_tokens),temperature:String(P.temperature),priority:String(P.priority),roles:[...P.roles]}),g(P.name),v(""),f(!0)},O=async()=>{if(!y.name.trim()){v("Name is required");return}S(!0),v("");try{const P={name:y.name.trim(),backend:y.backend,model:y.model,endpoint:y.endpoint,api_key:y.api_key,server_port:parseInt(y.server_port)||9123,max_tokens:parseInt(y.max_tokens)||4096,temperature:parseFloat(y.temperature)||.7,priority:parseInt(y.priority)||0,roles:y.roles};h?await mie(h,P):await gie(P),f(!1),C()}catch(P){v(P instanceof Error?P.message:"Failed")}finally{S(!1)}},N=async P=>{S(!0);try{await bie(P),C()}catch{}finally{S(!1)}},_=async P=>{S(!0);try{await yie(P),C()}catch{}finally{S(!1)}},L=P=>{x(M=>({...M,roles:M.roles.includes(P)?M.roles.filter(F=>F!==P):[...M.roles,P]}))},I=(P,M)=>x(F=>({...F,[P]:M}));return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",overflowY:"auto",p:6,children:d.jsxs(G,{maxW:"4xl",mx:"auto",children:[d.jsxs(ne,{justify:"space-between",mb:6,children:[d.jsx(ta,{size:"lg",color:"var(--text-heading)",children:"Worker Status"}),d.jsx(bt,{colorScheme:n?"green":"red",fontSize:"xs",variant:"outline",children:n?"live":"disconnected"})]}),u&&d.jsx(G,{p:3,bg:"var(--bg-error)",borderRadius:"md",mb:4,children:d.jsx(W,{color:"var(--text-error)",fontSize:"sm",children:u})}),d.jsxs(G,{mb:8,children:[d.jsxs(ne,{justify:"space-between",mb:3,children:[d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",fontSize:"lg",children:"Providers"}),d.jsx(dt,{"aria-label":"Add provider",size:"sm",variant:"outline",onClick:k,borderColor:"var(--border-primary)",color:"var(--text-primary)",children:d.jsx(O0e,{})})]}),s.length===0&&!p&&d.jsx(W,{color:"var(--text-muted)",fontSize:"sm",py:4,textAlign:"center",children:"No providers configured"}),d.jsx(ze,{gap:3,align:"stretch",children:s.map(P=>d.jsxs(G,{p:4,bg:"var(--bg-card)",borderRadius:"lg",border:"2px solid",borderColor:P.active?"var(--accent)":"var(--border-primary)",children:[d.jsxs(ne,{justify:"space-between",mb:2,children:[d.jsxs(ne,{gap:2,children:[d.jsx(W,{fontWeight:"bold",color:"var(--text-heading)",fontSize:"sm",children:P.name}),P.active&&d.jsx(bt,{colorScheme:"green",fontSize:"2xs",children:"active"}),d.jsx(bt,{variant:"outline",fontSize:"2xs",children:P.backend})]}),d.jsxs(ne,{gap:1,children:[!P.active&&d.jsx(dt,{"aria-label":"Activate",size:"xs",variant:"ghost",onClick:()=>_(P.name),color:"var(--accent)",title:"Activate this provider",disabled:b,children:d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M8 5v14l11-7z"})})}),d.jsx(dt,{"aria-label":"Edit",size:"xs",variant:"ghost",onClick:()=>R(P),color:"var(--text-tertiary)",children:d.jsx(L0e,{})}),d.jsx(dt,{"aria-label":"Delete",size:"xs",variant:"ghost",onClick:()=>N(P.name),color:"var(--text-error)",disabled:b,children:d.jsx(D0e,{})})]})]}),d.jsxs(ne,{gap:6,flexWrap:"wrap",children:[d.jsxs(ze,{align:"flex-start",gap:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Model"}),d.jsx(W,{fontSize:"sm",color:"var(--text-primary)",fontFamily:"mono",children:P.model||P.slug||"—"})]}),d.jsxs(ze,{align:"flex-start",gap:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Endpoint"}),d.jsx(W,{fontSize:"sm",color:"var(--text-primary)",fontFamily:"mono",children:P.endpoint||"—"})]}),d.jsxs(ze,{align:"flex-start",gap:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Priority"}),d.jsx(W,{fontSize:"sm",color:"var(--text-primary)",children:P.priority})]})]}),P.roles.length>0&&d.jsxs(ne,{mt:2,gap:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:"Roles:"}),P.roles.map(M=>d.jsx(bt,{fontSize:"2xs",variant:"outline",children:M},M))]})]},P.name))}),p&&d.jsxs(G,{mt:3,p:4,bg:"var(--bg-elevated)",borderRadius:"lg",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",mb:3,fontSize:"sm",children:h?`Edit "${h}"`:"New Provider"}),m&&d.jsx(G,{p:2,bg:"var(--bg-error)",borderRadius:"md",mb:3,children:d.jsx(W,{color:"var(--text-error)",fontSize:"xs",children:m})}),d.jsxs(ze,{gap:3,align:"stretch",children:[d.jsxs(ne,{gap:3,children:[d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Name"}),d.jsx(Ne,{size:"sm",placeholder:"e.g. claude-sonnet",value:y.name,onChange:P=>I("name",P.target.value),disabled:!!h,bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Backend"}),d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:y.backend,onChange:P=>I("backend",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)",children:N0e.map(P=>d.jsx("option",{value:P,style:{background:"var(--option-bg)"},children:P},P))})})]})]}),d.jsxs(ne,{gap:3,children:[d.jsxs(G,{flex:2,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Model"}),d.jsx(Ne,{size:"sm",placeholder:"Qwen/Qwen3-Coder-Next-FP8",value:y.model,onChange:P=>I("model",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Priority"}),d.jsx(Ne,{size:"sm",type:"number",placeholder:"50",value:y.priority,onChange:P=>I("priority",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Endpoint"}),d.jsx(Ne,{size:"sm",placeholder:"https://api.openai.com",value:y.endpoint,onChange:P=>I("endpoint",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"API Key"}),d.jsx(Ne,{size:"sm",type:"password",placeholder:"sk-...",value:y.api_key,onChange:P=>I("api_key",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(ne,{gap:3,children:[d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Server Port"}),d.jsx(Ne,{size:"sm",type:"number",placeholder:"9123",value:y.server_port,onChange:P=>I("server_port",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Max Tokens"}),d.jsx(Ne,{size:"sm",type:"number",placeholder:"4096",value:y.max_tokens,onChange:P=>I("max_tokens",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]}),d.jsxs(G,{flex:1,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Temperature"}),d.jsx(Ne,{size:"sm",type:"number",step:"0.1",placeholder:"0.7",value:y.temperature,onChange:P=>I("temperature",P.target.value),bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"})]})]}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:"Roles (click to toggle, order = preference)"}),d.jsx(ne,{gap:2,children:I0e.map(P=>d.jsx(G,{as:"button",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"medium",border:"1px solid",borderColor:y.roles.includes(P)?"var(--accent)":"var(--border-primary)",bg:y.roles.includes(P)?"var(--accent-subtle)":"transparent",color:y.roles.includes(P)?"var(--accent)":"var(--text-tertiary)",cursor:"pointer",onClick:()=>L(P),_hover:{borderColor:"var(--accent)"},children:y.roles.includes(P)?`${y.roles.indexOf(P)+1}. ${P}`:P},P))})]}),d.jsxs(ne,{gap:2,justify:"flex-end",children:[d.jsx(G,{as:"button",px:4,py:1.5,borderRadius:"md",fontSize:"sm",bg:"transparent",color:"var(--text-secondary)",cursor:"pointer",onClick:()=>f(!1),children:"Cancel"}),d.jsx(G,{as:"button",px:4,py:1.5,borderRadius:"md",fontSize:"sm",fontWeight:"medium",bg:"var(--accent)",color:"var(--text-inverse)",cursor:"pointer",onClick:O,_hover:{bg:"var(--accent-hover)"},children:b?d.jsx(On,{size:"xs"}):h?"Save":"Add"})]})]})]})]}),r&&d.jsx(ze,{gap:4,mb:8,align:"stretch",children:d.jsxs(G,{p:4,bg:"var(--bg-card)",borderRadius:"lg",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",mb:3,children:"Queue"}),d.jsx(ne,{gap:4,flexWrap:"wrap",children:Object.entries(r.queue).map(([P,M])=>d.jsxs(ze,{gap:0,align:"center",minW:"60px",children:[d.jsx(W,{fontSize:"2xl",fontWeight:"bold",color:"var(--text-heading)",children:M}),d.jsx(W,{fontSize:"xs",color:"var(--text-tertiary)",children:P})]},P))})]})}),d.jsx(ta,{size:"md",color:"var(--text-heading)",mb:4,children:"Events"}),d.jsx(ze,{gap:2,align:"stretch",children:i.length===0?d.jsx(W,{color:"var(--text-muted)",textAlign:"center",py:8,children:"No events yet"}):i.map((P,M)=>d.jsxs(G,{p:3,bg:"var(--bg-card)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsxs(ne,{justify:"space-between",mb:1,children:[d.jsxs(ne,{gap:2,children:[d.jsx(bt,{colorScheme:R0e[P.kind]||"gray",fontSize:"xs",children:P.kind}),d.jsxs(W,{fontSize:"xs",color:"var(--text-tertiary)",children:["from ",P.source]})]}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",children:new Date(P.timestamp).toLocaleString()})]}),P.data.summary&&d.jsx(W,{fontSize:"sm",color:"var(--text-secondary)",mt:1,children:P.data.summary})]},M))})]})})},z0e=["none","docker","podman","firecracker","bubblewrap","nsjail"],P0e=({busy:e,onClick:t})=>d.jsx(G,{as:"button",px:4,py:1.5,borderRadius:"md",fontSize:"sm",fontWeight:"medium",bg:"var(--accent)",color:"var(--text-inverse)",cursor:"pointer",onClick:t,_hover:{bg:"var(--accent-hover)"},children:e?d.jsx(On,{size:"xs"}):"Save"}),bs=({label:e,value:t,onChange:n})=>d.jsxs(G,{as:"button",px:3,py:1,borderRadius:"md",fontSize:"xs",fontWeight:"medium",border:"1px solid",borderColor:t?"var(--accent)":"var(--border-primary)",bg:t?"var(--accent-subtle)":"transparent",color:t?"var(--accent)":"var(--text-tertiary)",cursor:"pointer",onClick:()=>n(!t),_hover:{borderColor:"var(--accent)"},children:[e,": ",t?"ON":"OFF"]}),Pt=({label:e,children:t})=>d.jsxs(G,{children:[d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",mb:1,children:e}),t]}),jc=({title:e,children:t,busy:n,onSave:r,status:a})=>d.jsxs(G,{p:4,bg:"var(--bg-card)",borderRadius:"lg",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsxs(ne,{justify:"space-between",mb:3,children:[d.jsx(W,{fontWeight:"semibold",color:"var(--text-heading)",fontSize:"lg",children:e}),d.jsxs(ne,{gap:2,children:[a&&d.jsx(W,{fontSize:"xs",color:a==="Saved"?"green.400":"var(--text-error)",children:a}),d.jsx(P0e,{busy:n,onClick:r})]})]}),d.jsx(ze,{gap:3,align:"stretch",children:t})]}),jt={size:"sm",bg:"var(--bg-input)",color:"var(--text-primary)",borderColor:"var(--border-input)"},j0e=()=>{const[e,t]=w.useState(null),[n,r]=w.useState(""),[a,i]=w.useState(!0),[o,s]=w.useState({}),[l,u]=w.useState(""),c=w.useCallback(()=>{i(!0),Oie().then(b=>{t(b),r("")}).catch(b=>r(b instanceof Error?b.message:"Failed to load config")).finally(()=>i(!1))},[]);w.useEffect(()=>{document.title="Settings - Açaí",c()},[c]);const p=async b=>{if(e){u(b),s(S=>({...S,[b]:""}));try{const S={[b]:e[b]},C=await Die(S);t(C),s(k=>({...k,[b]:"Saved"})),setTimeout(()=>s(k=>({...k,[b]:""})),2e3)}catch(S){s(C=>({...C,[b]:S instanceof Error?S.message:"Error"}))}finally{u("")}}},f=(b,S)=>{e&&t({...e,sandbox:{...e.sandbox,[b]:S}})},h=(b,S)=>{e&&t({...e,worker:{...e.worker,[b]:S}})},g=(b,S)=>{e&&t({...e,git:{...e.git,[b]:S}})},y=(b,S)=>{e&&t({...e,queue:{...e.queue,[b]:S}})},x=(b,S)=>{e&&t({...e,audit:{...e.audit,[b]:S}})};if(a)return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",display:"flex",alignItems:"center",justifyContent:"center",children:d.jsx(On,{size:"lg",color:"var(--accent)"})});if(!e)return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",p:6,children:d.jsxs(G,{maxW:"4xl",mx:"auto",children:[d.jsx(ta,{size:"lg",color:"var(--text-heading)",mb:4,children:"Settings"}),d.jsx(G,{p:3,bg:"var(--bg-error)",borderRadius:"md",children:d.jsx(W,{color:"var(--text-error)",fontSize:"sm",children:n||"Could not load configuration"})})]})});const m=e.sandbox,v=m.type;return d.jsx(G,{h:"100vh",w:"100%",bg:"var(--bg-page)",overflowY:"auto",p:6,children:d.jsxs(G,{maxW:"4xl",mx:"auto",children:[d.jsxs(ne,{justify:"space-between",mb:6,children:[d.jsx(ta,{size:"lg",color:"var(--text-heading)",children:"Settings"}),d.jsx(W,{fontSize:"xs",color:"var(--text-muted)",fontFamily:"mono",children:e.workspace})]}),n&&d.jsx(G,{p:3,bg:"var(--bg-error)",borderRadius:"md",mb:4,children:d.jsx(W,{color:"var(--text-error)",fontSize:"sm",children:n})}),d.jsxs(ze,{gap:4,align:"stretch",children:[d.jsxs(jc,{title:"Sandbox",busy:l==="sandbox",onSave:()=>p("sandbox"),status:o.sandbox||"",children:[d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Backend",children:d.jsx(Wt,{size:"sm",children:d.jsx(qt,{value:m.type,onChange:b=>f("type",b.target.value),...jt,children:z0e.map(b=>d.jsx("option",{value:b,style:{background:"var(--option-bg)"},children:b},b))})})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Timeout (s)",children:d.jsx(Ne,{type:"number",value:m.timeout,onChange:b=>f("timeout",parseInt(b.target.value)||120),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Memory Limit",children:d.jsx(Ne,{value:m.memory_limit,onChange:b=>f("memory_limit",b.target.value),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"MCP Port",children:d.jsx(Ne,{type:"number",value:m.mcp_port,onChange:b=>f("mcp_port",parseInt(b.target.value)||9200),...jt})})})]}),d.jsxs(ne,{gap:2,children:[d.jsx(bs,{label:"Network",value:m.network,onChange:b=>f("network",b)}),d.jsx(bs,{label:"GPU",value:m.gpu,onChange:b=>f("gpu",b)})]}),(v==="docker"||v==="podman")&&d.jsxs(G,{p:3,bg:"var(--bg-elevated)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(W,{fontSize:"xs",fontWeight:"medium",color:"var(--text-secondary)",mb:2,children:"Container Options"}),d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Image",children:d.jsx(Ne,{value:m.image,onChange:b=>f("image",b.target.value),placeholder:"acai-sandbox",...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Runtime (auto if empty)",children:d.jsx(Ne,{value:m.runtime,onChange:b=>f("runtime",b.target.value),placeholder:"docker / podman",...jt})})})]})]}),v==="firecracker"&&d.jsxs(G,{p:3,bg:"var(--bg-elevated)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(W,{fontSize:"xs",fontWeight:"medium",color:"var(--text-secondary)",mb:2,children:"Firecracker Options"}),d.jsxs(ze,{gap:2,align:"stretch",children:[d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Kernel (vmlinux)",children:d.jsx(Ne,{value:m.kernel,onChange:b=>f("kernel",b.target.value),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Root FS (ext4)",children:d.jsx(Ne,{value:m.rootfs,onChange:b=>f("rootfs",b.target.value),...jt})})})]}),d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"vCPUs",children:d.jsx(Ne,{type:"number",value:m.vcpu_count,onChange:b=>f("vcpu_count",parseInt(b.target.value)||2),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Firecracker binary",children:d.jsx(Ne,{value:m.firecracker_bin,onChange:b=>f("firecracker_bin",b.target.value),placeholder:"firecracker",...jt})})})]})]})]}),v==="bubblewrap"&&d.jsxs(G,{p:3,bg:"var(--bg-elevated)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(W,{fontSize:"xs",fontWeight:"medium",color:"var(--text-secondary)",mb:2,children:"Bubblewrap Options"}),d.jsxs(ne,{gap:2,flexWrap:"wrap",children:[d.jsx(bs,{label:"USER",value:m.unshare_user,onChange:b=>f("unshare_user",b)}),d.jsx(bs,{label:"PID",value:m.unshare_pid,onChange:b=>f("unshare_pid",b)}),d.jsx(bs,{label:"IPC",value:m.unshare_ipc,onChange:b=>f("unshare_ipc",b)}),d.jsx(G,{flex:1,minW:"120px",children:d.jsx(Pt,{label:"Dev mode",children:d.jsx(Wt,{size:"sm",children:d.jsxs(qt,{value:m.dev_mode,onChange:b=>f("dev_mode",b.target.value),...jt,children:[d.jsx("option",{value:"minimal",style:{background:"var(--option-bg)"},children:"minimal"}),d.jsx("option",{value:"full",style:{background:"var(--option-bg)"},children:"full"})]})})})})]})]}),v==="nsjail"&&d.jsxs(G,{p:3,bg:"var(--bg-elevated)",borderRadius:"md",border:"1px solid",borderColor:"var(--border-primary)",children:[d.jsx(W,{fontSize:"xs",fontWeight:"medium",color:"var(--text-secondary)",mb:2,children:"Nsjail Options"}),d.jsxs(ze,{gap:2,align:"stretch",children:[d.jsx(Pt,{label:"Protobuf config path",children:d.jsx(Ne,{value:m.nsjail_config,onChange:b=>f("nsjail_config",b.target.value),...jt})}),d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Max PIDs",children:d.jsx(Ne,{type:"number",value:m.cgroup_pids_max,onChange:b=>f("cgroup_pids_max",parseInt(b.target.value)||64),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"rlimit_as",children:d.jsx(Ne,{value:m.rlimit_as,onChange:b=>f("rlimit_as",b.target.value),...jt})})})]}),d.jsx(Pt,{label:"Seccomp policy file",children:d.jsx(Ne,{value:m.seccomp_policy,onChange:b=>f("seccomp_policy",b.target.value),...jt})})]})]})]}),d.jsxs(jc,{title:"Worker",busy:l==="worker",onSave:()=>p("worker"),status:o.worker||"",children:[d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Max Retries",children:d.jsx(Ne,{type:"number",value:e.worker.max_retries,onChange:b=>h("max_retries",parseInt(b.target.value)||3),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Timeout (s)",children:d.jsx(Ne,{type:"number",value:e.worker.timeout,onChange:b=>h("timeout",parseInt(b.target.value)||300),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Port",children:d.jsx(Ne,{type:"number",value:e.worker.port,onChange:b=>h("port",parseInt(b.target.value)||5051),...jt})})})]}),d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Host",children:d.jsx(Ne,{value:e.worker.host,onChange:b=>h("host",b.target.value),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Orchestrator URL",children:d.jsx(Ne,{value:e.worker.orchestrator_url,onChange:b=>h("orchestrator_url",b.target.value),...jt})})})]})]}),d.jsxs(jc,{title:"Git",busy:l==="git",onSave:()=>p("git"),status:o.git||"",children:[d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Repo Path",children:d.jsx(Ne,{value:e.git.repo_path,onChange:b=>g("repo_path",b.target.value),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Worktree Dir",children:d.jsx(Ne,{value:e.git.worktree_dir,onChange:b=>g("worktree_dir",b.target.value),...jt})})})]}),d.jsx(bs,{label:"Auto Commit",value:e.git.auto_commit,onChange:b=>g("auto_commit",b)})]}),d.jsxs(jc,{title:"Queue",busy:l==="queue",onSave:()=>p("queue"),status:o.queue||"",children:[d.jsx(Pt,{label:"Database URL",children:d.jsx(Ne,{value:e.queue.url,onChange:b=>y("url",b.target.value),...jt})}),d.jsxs(ne,{gap:3,children:[d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Poll Interval (s)",children:d.jsx(Ne,{type:"number",value:e.queue.poll_interval,onChange:b=>y("poll_interval",parseInt(b.target.value)||5),...jt})})}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Task Timeout (s)",children:d.jsx(Ne,{type:"number",value:e.queue.task_timeout,onChange:b=>y("task_timeout",parseInt(b.target.value)||300),...jt})})})]})]}),d.jsx(jc,{title:"Audit",busy:l==="audit",onSave:()=>p("audit"),status:o.audit||"",children:d.jsxs(ne,{gap:3,children:[d.jsx(bs,{label:"Enabled",value:e.audit.enabled,onChange:b=>x("enabled",b)}),d.jsx(G,{flex:1,children:d.jsx(Pt,{label:"Directory",children:d.jsx(Ne,{value:e.audit.dir,onChange:b=>x("dir",b.target.value),...jt})})})]})})]})]})})},F0e=()=>{const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState(null),o=w.useCallback(()=>{Nw().then(t).catch(()=>{})},[]);w.useEffect(()=>{document.title="Uber Chat - Açaí",o()},[o]);const s=w.useCallback(p=>{o()},[o]),l=async p=>{a&&(await Ph(a.id,p).catch(()=>{}),i(null),o())},u=async p=>{await gM(p).catch(()=>{}),i(null),n===p&&r(null),o()},c=d.jsx(G,{px:3,py:3,borderBottom:"1px solid",borderColor:"var(--border-primary)",children:d.jsxs(ne,{children:[d.jsx(G,{w:"24px",h:"24px",borderRadius:"sm",display:"flex",alignItems:"center",justifyContent:"center",bg:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",color:"white",fontWeight:"bold",fontSize:"2xs",flexShrink:0,children:"U"}),d.jsx(W,{fontSize:"sm",fontWeight:"semibold",color:"var(--text-secondary)",children:"Uber Chat"})]})});return d.jsxs(G,{display:"flex",h:"100vh",w:"100%",bg:"var(--bg-page)",overflow:"hidden",children:[d.jsx(wM,{conversations:e,activeId:n,onSelect:r,onEdit:i,header:c}),d.jsx(Zp,{conversationId:n,onConversationCreated:r,mode:"uber",onRoute:s,onResponseComplete:o,placeholder:"Ask anything — conversations are picked automatically..."}),a&&d.jsx(SM,{conv:a,onSave:l,onDelete:u,onClose:()=>i(null)})]})};function wn(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=wn(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var B0e={value:()=>{}};function $m(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Gh(n)}function Gh(e){this._=e}function U0e(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");if(a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Gh.prototype=$m.prototype={constructor:Gh,on:function(e,t){var n=this._,r=U0e(e+"",n),a,i=-1,o=r.length;if(arguments.length<2){for(;++i<o;)if((a=(e=r[i]).type)&&(a=$0e(n[a],e.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<o;)if(a=(e=r[i]).type)n[a]=sR(n[a],e.name,t);else if(t==null)for(a in n)n[a]=sR(n[a],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Gh(e)},call:function(e,t){if((a=arguments.length-2)>0)for(var n=new Array(a),r=0,a,i;r<a;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,a=i.length;r<a;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,i=r.length;a<i;++a)r[a].value.apply(t,n)}};function $0e(e,t){for(var n=0,r=e.length,a;n<r;++n)if((a=e[n]).name===t)return a.value}function sR(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=B0e,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ux="http://www.w3.org/1999/xhtml";const lR={svg:"http://www.w3.org/2000/svg",xhtml:ux,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Hm(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),lR.hasOwnProperty(t)?{space:lR[t],local:e}:e}function H0e(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ux&&t.documentElement.namespaceURI===ux?t.createElement(e):t.createElementNS(n,e)}}function V0e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function JP(e){var t=Hm(e);return(t.local?V0e:H0e)(t)}function G0e(){}function hC(e){return e==null?G0e:function(){return this.querySelector(e)}}function W0e(e){typeof e!="function"&&(e=hC(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i=t[a],o=i.length,s=r[a]=new Array(o),l,u,c=0;c<o;++c)(l=i[c])&&(u=e.call(l,l.__data__,c,i))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new ra(r,this._parents)}function q0e(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Y0e(){return[]}function ej(e){return e==null?Y0e:function(){return this.querySelectorAll(e)}}function X0e(e){return function(){return q0e(e.apply(this,arguments))}}function K0e(e){typeof e=="function"?e=X0e(e):e=ej(e);for(var t=this._groups,n=t.length,r=[],a=[],i=0;i<n;++i)for(var o=t[i],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(r.push(e.call(l,l.__data__,u,o)),a.push(l));return new ra(r,a)}function tj(e){return function(){return this.matches(e)}}function nj(e){return function(t){return t.matches(e)}}var Z0e=Array.prototype.find;function Q0e(e){return function(){return Z0e.call(this.children,e)}}function J0e(){return this.firstElementChild}function eme(e){return this.select(e==null?J0e:Q0e(typeof e=="function"?e:nj(e)))}var tme=Array.prototype.filter;function nme(){return Array.from(this.children)}function rme(e){return function(){return tme.call(this.children,e)}}function ame(e){return this.selectAll(e==null?nme:rme(typeof e=="function"?e:nj(e)))}function ime(e){typeof e!="function"&&(e=tj(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i=t[a],o=i.length,s=r[a]=[],l,u=0;u<o;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&s.push(l);return new ra(r,this._parents)}function rj(e){return new Array(e.length)}function ome(){return new ra(this._enter||this._groups.map(rj),this._parents)}function Jg(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Jg.prototype={constructor:Jg,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function sme(e){return function(){return e}}function lme(e,t,n,r,a,i){for(var o=0,s,l=t.length,u=i.length;o<u;++o)(s=t[o])?(s.__data__=i[o],r[o]=s):n[o]=new Jg(e,i[o]);for(;o<l;++o)(s=t[o])&&(a[o]=s)}function ume(e,t,n,r,a,i,o){var s,l,u=new Map,c=t.length,p=i.length,f=new Array(c),h;for(s=0;s<c;++s)(l=t[s])&&(f[s]=h=o.call(l,l.__data__,s,t)+"",u.has(h)?a[s]=l:u.set(h,l));for(s=0;s<p;++s)h=o.call(e,i[s],s,i)+"",(l=u.get(h))?(r[s]=l,l.__data__=i[s],u.delete(h)):n[s]=new Jg(e,i[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(f[s])===l&&(a[s]=l)}function cme(e){return e.__data__}function dme(e,t){if(!arguments.length)return Array.from(this,cme);var n=t?ume:lme,r=this._parents,a=this._groups;typeof e!="function"&&(e=sme(e));for(var i=a.length,o=new Array(i),s=new Array(i),l=new Array(i),u=0;u<i;++u){var c=r[u],p=a[u],f=p.length,h=pme(e.call(c,c&&c.__data__,u,r)),g=h.length,y=s[u]=new Array(g),x=o[u]=new Array(g),m=l[u]=new Array(f);n(c,p,y,x,m,h,t);for(var v=0,b=0,S,C;v<g;++v)if(S=y[v]){for(v>=b&&(b=v+1);!(C=x[b])&&++b<g;);S._next=C||null}}return o=new ra(o,r),o._enter=s,o._exit=l,o}function pme(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function fme(){return new ra(this._exit||this._groups.map(rj),this._parents)}function hme(e,t,n){var r=this.enter(),a=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(a=t(a),a&&(a=a.selection())),n==null?i.remove():n(i),r&&a?r.merge(a).order():a}function gme(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,i=r.length,o=Math.min(a,i),s=new Array(a),l=0;l<o;++l)for(var u=n[l],c=r[l],p=u.length,f=s[l]=new Array(p),h,g=0;g<p;++g)(h=u[g]||c[g])&&(f[g]=h);for(;l<a;++l)s[l]=n[l];return new ra(s,this._parents)}function mme(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],a=r.length-1,i=r[a],o;--a>=0;)(o=r[a])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function bme(e){e||(e=yme);function t(p,f){return p&&f?e(p.__data__,f.__data__):!p-!f}for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var o=n[i],s=o.length,l=a[i]=new Array(s),u,c=0;c<s;++c)(u=o[c])&&(l[c]=u);l.sort(t)}return new ra(a,this._parents).order()}function yme(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vme(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function xme(){return Array.from(this)}function Sme(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null}function wme(){let e=0;for(const t of this)++e;return e}function Eme(){return!this.node()}function kme(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a=t[n],i=0,o=a.length,s;i<o;++i)(s=a[i])&&e.call(s,s.__data__,i,a);return this}function Tme(e){return function(){this.removeAttribute(e)}}function Cme(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ame(e,t){return function(){this.setAttribute(e,t)}}function _me(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Rme(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Nme(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ime(e,t){var n=Hm(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Cme:Tme:typeof t=="function"?n.local?Nme:Rme:n.local?_me:Ame)(n,t))}function aj(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ome(e){return function(){this.style.removeProperty(e)}}function Dme(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Lme(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Mme(e,t,n){return arguments.length>1?this.each((t==null?Ome:typeof t=="function"?Lme:Dme)(e,t,n??"")):Ou(this.node(),e)}function Ou(e,t){return e.style.getPropertyValue(t)||aj(e).getComputedStyle(e,null).getPropertyValue(t)}function zme(e){return function(){delete this[e]}}function Pme(e,t){return function(){this[e]=t}}function jme(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Fme(e,t){return arguments.length>1?this.each((t==null?zme:typeof t=="function"?jme:Pme)(e,t)):this.node()[e]}function ij(e){return e.trim().split(/^|\s+/)}function gC(e){return e.classList||new oj(e)}function oj(e){this._node=e,this._names=ij(e.getAttribute("class")||"")}oj.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function sj(e,t){for(var n=gC(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function lj(e,t){for(var n=gC(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function Bme(e){return function(){sj(this,e)}}function Ume(e){return function(){lj(this,e)}}function $me(e,t){return function(){(t.apply(this,arguments)?sj:lj)(this,e)}}function Hme(e,t){var n=ij(e+"");if(arguments.length<2){for(var r=gC(this.node()),a=-1,i=n.length;++a<i;)if(!r.contains(n[a]))return!1;return!0}return this.each((typeof t=="function"?$me:t?Bme:Ume)(n,t))}function Vme(){this.textContent=""}function Gme(e){return function(){this.textContent=e}}function Wme(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function qme(e){return arguments.length?this.each(e==null?Vme:(typeof e=="function"?Wme:Gme)(e)):this.node().textContent}function Yme(){this.innerHTML=""}function Xme(e){return function(){this.innerHTML=e}}function Kme(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Zme(e){return arguments.length?this.each(e==null?Yme:(typeof e=="function"?Kme:Xme)(e)):this.node().innerHTML}function Qme(){this.nextSibling&&this.parentNode.appendChild(this)}function Jme(){return this.each(Qme)}function ebe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function tbe(){return this.each(ebe)}function nbe(e){var t=typeof e=="function"?e:JP(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function rbe(){return null}function abe(e,t){var n=typeof e=="function"?e:JP(e),r=t==null?rbe:typeof t=="function"?t:hC(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ibe(){var e=this.parentNode;e&&e.removeChild(this)}function obe(){return this.each(ibe)}function sbe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function lbe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ube(e){return this.select(e?lbe:sbe)}function cbe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function dbe(e){return function(t){e.call(this,t,this.__data__)}}function pbe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function fbe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,a=t.length,i;n<a;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function hbe(e,t,n){return function(){var r=this.__on,a,i=dbe(t);if(r){for(var o=0,s=r.length;o<s;++o)if((a=r[o]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=n),a.value=t;return}}this.addEventListener(e.type,i,n),a={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(a):this.__on=[a]}}function gbe(e,t,n){var r=pbe(e+""),a,i=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(a=0,c=s[l];a<i;++a)if((o=r[a]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?hbe:fbe,a=0;a<i;++a)this.each(s(r[a],t,n));return this}function uj(e,t,n){var r=aj(e),a=r.CustomEvent;typeof a=="function"?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function mbe(e,t){return function(){return uj(this,e,t)}}function bbe(e,t){return function(){return uj(this,e,t.apply(this,arguments))}}function ybe(e,t){return this.each((typeof t=="function"?bbe:mbe)(e,t))}function*vbe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length,o;a<i;++a)(o=r[a])&&(yield o)}var cj=[null];function ra(e,t){this._groups=e,this._parents=t}function Qp(){return new ra([[document.documentElement]],cj)}function xbe(){return this}ra.prototype=Qp.prototype={constructor:ra,select:W0e,selectAll:K0e,selectChild:eme,selectChildren:ame,filter:ime,data:dme,enter:ome,exit:fme,join:hme,merge:gme,selection:xbe,order:mme,sort:bme,call:vme,nodes:xme,node:Sme,size:wme,empty:Eme,each:kme,attr:Ime,style:Mme,property:Fme,classed:Hme,text:qme,html:Zme,raise:Jme,lower:tbe,append:nbe,insert:abe,remove:obe,clone:ube,datum:cbe,on:gbe,dispatch:ybe,[Symbol.iterator]:vbe};function Gr(e){return typeof e=="string"?new ra([[document.querySelector(e)]],[document.documentElement]):new ra([[e]],cj)}function Sbe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function _a(e,t){if(e=Sbe(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}const wbe={passive:!1},tp={capture:!0,passive:!1};function Xy(e){e.stopImmediatePropagation()}function cu(e){e.preventDefault(),e.stopImmediatePropagation()}function dj(e){var t=e.document.documentElement,n=Gr(e).on("dragstart.drag",cu,tp);"onselectstart"in t?n.on("selectstart.drag",cu,tp):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function pj(e,t){var n=e.document.documentElement,r=Gr(e).on("dragstart.drag",null);t&&(r.on("click.drag",cu,tp),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Xf=e=>()=>e;function cx(e,{sourceEvent:t,subject:n,target:r,identifier:a,active:i,x:o,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}cx.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Ebe(e){return!e.ctrlKey&&!e.button}function kbe(){return this.parentNode}function Tbe(e,t){return t??{x:e.x,y:e.y}}function Cbe(){return navigator.maxTouchPoints||"ontouchstart"in this}function fj(){var e=Ebe,t=kbe,n=Tbe,r=Cbe,a={},i=$m("start","drag","end"),o=0,s,l,u,c,p=0;function f(S){S.on("mousedown.drag",h).filter(r).on("touchstart.drag",x).on("touchmove.drag",m,wbe).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(S,C){if(!(c||!e.call(this,S,C))){var k=b(this,t.call(this,S,C),S,C,"mouse");k&&(Gr(S.view).on("mousemove.drag",g,tp).on("mouseup.drag",y,tp),dj(S.view),Xy(S),u=!1,s=S.clientX,l=S.clientY,k("start",S))}}function g(S){if(cu(S),!u){var C=S.clientX-s,k=S.clientY-l;u=C*C+k*k>p}a.mouse("drag",S)}function y(S){Gr(S.view).on("mousemove.drag mouseup.drag",null),pj(S.view,u),cu(S),a.mouse("end",S)}function x(S,C){if(e.call(this,S,C)){var k=S.changedTouches,R=t.call(this,S,C),O=k.length,N,_;for(N=0;N<O;++N)(_=b(this,R,S,C,k[N].identifier,k[N]))&&(Xy(S),_("start",S,k[N]))}}function m(S){var C=S.changedTouches,k=C.length,R,O;for(R=0;R<k;++R)(O=a[C[R].identifier])&&(cu(S),O("drag",S,C[R]))}function v(S){var C=S.changedTouches,k=C.length,R,O;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),R=0;R<k;++R)(O=a[C[R].identifier])&&(Xy(S),O("end",S,C[R]))}function b(S,C,k,R,O,N){var _=i.copy(),L=_a(N||k,C),I,P,M;if((M=n.call(S,new cx("beforestart",{sourceEvent:k,target:f,identifier:O,active:o,x:L[0],y:L[1],dx:0,dy:0,dispatch:_}),R))!=null)return I=M.x-L[0]||0,P=M.y-L[1]||0,function F(A,j,B){var V=L,D;switch(A){case"start":a[O]=F,D=o++;break;case"end":delete a[O],--o;case"drag":L=_a(B||j,C),D=o;break}_.call(A,S,new cx(A,{sourceEvent:j,subject:M,target:f,identifier:O,active:D,x:L[0]+I,y:L[1]+P,dx:L[0]-V[0],dy:L[1]-V[1],dispatch:_}),R)}}return f.filter=function(S){return arguments.length?(e=typeof S=="function"?S:Xf(!!S),f):e},f.container=function(S){return arguments.length?(t=typeof S=="function"?S:Xf(S),f):t},f.subject=function(S){return arguments.length?(n=typeof S=="function"?S:Xf(S),f):n},f.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:Xf(!!S),f):r},f.on=function(){var S=i.on.apply(i,arguments);return S===i?f:S},f.clickDistance=function(S){return arguments.length?(p=(S=+S)*S,f):Math.sqrt(p)},f}function mC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function hj(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Jp(){}var np=.7,e0=1/np,du="\\s*([+-]?\\d+)\\s*",rp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ii="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Abe=/^#([0-9a-f]{3,8})$/,_be=new RegExp(`^rgb\\(${du},${du},${du}\\)$`),Rbe=new RegExp(`^rgb\\(${ii},${ii},${ii}\\)$`),Nbe=new RegExp(`^rgba\\(${du},${du},${du},${rp}\\)$`),Ibe=new RegExp(`^rgba\\(${ii},${ii},${ii},${rp}\\)$`),Obe=new RegExp(`^hsl\\(${rp},${ii},${ii}\\)$`),Dbe=new RegExp(`^hsla\\(${rp},${ii},${ii},${rp}\\)$`),uR={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};mC(Jp,Gs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cR,formatHex:cR,formatHex8:Lbe,formatHsl:Mbe,formatRgb:dR,toString:dR});function cR(){return this.rgb().formatHex()}function Lbe(){return this.rgb().formatHex8()}function Mbe(){return gj(this).formatHsl()}function dR(){return this.rgb().formatRgb()}function Gs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Abe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?pR(t):n===3?new Ir(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_be.exec(e))?new Ir(t[1],t[2],t[3],1):(t=Rbe.exec(e))?new Ir(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Nbe.exec(e))?Kf(t[1],t[2],t[3],t[4]):(t=Ibe.exec(e))?Kf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Obe.exec(e))?gR(t[1],t[2]/100,t[3]/100,1):(t=Dbe.exec(e))?gR(t[1],t[2]/100,t[3]/100,t[4]):uR.hasOwnProperty(e)?pR(uR[e]):e==="transparent"?new Ir(NaN,NaN,NaN,0):null}function pR(e){return new Ir(e>>16&255,e>>8&255,e&255,1)}function Kf(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ir(e,t,n,r)}function zbe(e){return e instanceof Jp||(e=Gs(e)),e?(e=e.rgb(),new Ir(e.r,e.g,e.b,e.opacity)):new Ir}function dx(e,t,n,r){return arguments.length===1?zbe(e):new Ir(e,t,n,r??1)}function Ir(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}mC(Ir,dx,hj(Jp,{brighter(e){return e=e==null?e0:Math.pow(e0,e),new Ir(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?np:Math.pow(np,e),new Ir(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ir(Ls(this.r),Ls(this.g),Ls(this.b),t0(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fR,formatHex:fR,formatHex8:Pbe,formatRgb:hR,toString:hR}));function fR(){return`#${Cs(this.r)}${Cs(this.g)}${Cs(this.b)}`}function Pbe(){return`#${Cs(this.r)}${Cs(this.g)}${Cs(this.b)}${Cs((isNaN(this.opacity)?1:this.opacity)*255)}`}function hR(){const e=t0(this.opacity);return`${e===1?"rgb(":"rgba("}${Ls(this.r)}, ${Ls(this.g)}, ${Ls(this.b)}${e===1?")":`, ${e})`}`}function t0(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ls(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cs(e){return e=Ls(e),(e<16?"0":"")+e.toString(16)}function gR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ra(e,t,n,r)}function gj(e){if(e instanceof Ra)return new Ra(e.h,e.s,e.l,e.opacity);if(e instanceof Jp||(e=Gs(e)),!e)return new Ra;if(e instanceof Ra)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new Ra(o,s,l,e.opacity)}function jbe(e,t,n,r){return arguments.length===1?gj(e):new Ra(e,t,n,r??1)}function Ra(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}mC(Ra,jbe,hj(Jp,{brighter(e){return e=e==null?e0:Math.pow(e0,e),new Ra(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?np:Math.pow(np,e),new Ra(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Ir(Ky(e>=240?e-240:e+120,a,r),Ky(e,a,r),Ky(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Ra(mR(this.h),Zf(this.s),Zf(this.l),t0(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=t0(this.opacity);return`${e===1?"hsl(":"hsla("}${mR(this.h)}, ${Zf(this.s)*100}%, ${Zf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function mR(e){return e=(e||0)%360,e<0?e+360:e}function Zf(e){return Math.max(0,Math.min(1,e||0))}function Ky(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const bC=e=>()=>e;function Fbe(e,t){return function(n){return e+n*t}}function Bbe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Ube(e){return(e=+e)==1?mj:function(t,n){return n-t?Bbe(t,n,e):bC(isNaN(t)?n:t)}}function mj(e,t){var n=t-e;return n?Fbe(e,n):bC(isNaN(e)?t:e)}const n0=function e(t){var n=Ube(t);function r(a,i){var o=n((a=dx(a)).r,(i=dx(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=mj(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function $be(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function Hbe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Vbe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=Ed(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function Gbe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ya(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Wbe(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ed(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var px=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zy=new RegExp(px.source,"g");function qbe(e){return function(){return e}}function Ybe(e){return function(t){return e(t)+""}}function bj(e,t){var n=px.lastIndex=Zy.lastIndex=0,r,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=px.exec(e))&&(a=Zy.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:Ya(r,a)})),n=Zy.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?Ybe(l[0].x):qbe(t):(t=l.length,function(u){for(var c=0,p;c<t;++c)s[(p=l[c]).i]=p.x(u);return s.join("")})}function Ed(e,t){var n=typeof t,r;return t==null||n==="boolean"?bC(t):(n==="number"?Ya:n==="string"?(r=Gs(t))?(t=r,n0):bj:t instanceof Gs?n0:t instanceof Date?Gbe:Hbe(t)?$be:Array.isArray(t)?Vbe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Wbe:Ya)(e,t)}var bR=180/Math.PI,fx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yj(e,t,n,r,a,i){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*bR,skewX:Math.atan(l)*bR,scaleX:o,scaleY:s}}var Qf;function Xbe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?fx:yj(t.a,t.b,t.c,t.d,t.e,t.f)}function Kbe(e){return e==null||(Qf||(Qf=document.createElementNS("http://www.w3.org/2000/svg","g")),Qf.setAttribute("transform",e),!(e=Qf.transform.baseVal.consolidate()))?fx:(e=e.matrix,yj(e.a,e.b,e.c,e.d,e.e,e.f))}function vj(e,t,n,r){function a(u){return u.length?u.pop()+" ":""}function i(u,c,p,f,h,g){if(u!==p||c!==f){var y=h.push("translate(",null,t,null,n);g.push({i:y-4,x:Ya(u,p)},{i:y-2,x:Ya(c,f)})}else(p||f)&&h.push("translate("+p+t+f+n)}function o(u,c,p,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:p.push(a(p)+"rotate(",null,r)-2,x:Ya(u,c)})):c&&p.push(a(p)+"rotate("+c+r)}function s(u,c,p,f){u!==c?f.push({i:p.push(a(p)+"skewX(",null,r)-2,x:Ya(u,c)}):c&&p.push(a(p)+"skewX("+c+r)}function l(u,c,p,f,h,g){if(u!==p||c!==f){var y=h.push(a(h)+"scale(",null,",",null,")");g.push({i:y-4,x:Ya(u,p)},{i:y-2,x:Ya(c,f)})}else(p!==1||f!==1)&&h.push(a(h)+"scale("+p+","+f+")")}return function(u,c){var p=[],f=[];return u=e(u),c=e(c),i(u.translateX,u.translateY,c.translateX,c.translateY,p,f),o(u.rotate,c.rotate,p,f),s(u.skewX,c.skewX,p,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,p,f),u=c=null,function(h){for(var g=-1,y=f.length,x;++g<y;)p[(x=f[g]).i]=x.x(h);return p.join("")}}}var Zbe=vj(Xbe,"px, ","px)","deg)"),Qbe=vj(Kbe,", ",")",")"),Jbe=1e-12;function yR(e){return((e=Math.exp(e))+1/e)/2}function eye(e){return((e=Math.exp(e))-1/e)/2}function tye(e){return((e=Math.exp(2*e))-1)/(e+1)}const Wh=function e(t,n,r){function a(i,o){var s=i[0],l=i[1],u=i[2],c=o[0],p=o[1],f=o[2],h=c-s,g=p-l,y=h*h+g*g,x,m;if(y<Jbe)m=Math.log(f/u)/t,x=function(R){return[s+R*h,l+R*g,u*Math.exp(t*R*m)]};else{var v=Math.sqrt(y),b=(f*f-u*u+r*y)/(2*u*n*v),S=(f*f-u*u-r*y)/(2*f*n*v),C=Math.log(Math.sqrt(b*b+1)-b),k=Math.log(Math.sqrt(S*S+1)-S);m=(k-C)/t,x=function(R){var O=R*m,N=yR(C),_=u/(n*v)*(N*tye(t*O+C)-eye(C));return[s+_*h,l+_*g,u*N/yR(t*O+C)]}}return x.duration=m*1e3*t/Math.SQRT2,x}return a.rho=function(i){var o=Math.max(.001,+i),s=o*o,l=s*s;return e(o,s,l)},a}(Math.SQRT2,2,4);var Du=0,Zc=0,Fc=0,xj=1e3,r0,Qc,a0=0,Ws=0,Vm=0,ap=typeof performance=="object"&&performance.now?performance:Date,Sj=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function yC(){return Ws||(Sj(nye),Ws=ap.now()+Vm)}function nye(){Ws=0}function i0(){this._call=this._time=this._next=null}i0.prototype=wj.prototype={constructor:i0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?yC():+n)+(t==null?0:+t),!this._next&&Qc!==this&&(Qc?Qc._next=this:r0=this,Qc=this),this._call=e,this._time=n,hx()},stop:function(){this._call&&(this._call=null,this._time=1/0,hx())}};function wj(e,t,n){var r=new i0;return r.restart(e,t,n),r}function rye(){yC(),++Du;for(var e=r0,t;e;)(t=Ws-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Du}function vR(){Ws=(a0=ap.now())+Vm,Du=Zc=0;try{rye()}finally{Du=0,iye(),Ws=0}}function aye(){var e=ap.now(),t=e-a0;t>xj&&(Vm-=t,a0=e)}function iye(){for(var e,t=r0,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:r0=n);Qc=e,hx(r)}function hx(e){if(!Du){Zc&&(Zc=clearTimeout(Zc));var t=e-Ws;t>24?(e<1/0&&(Zc=setTimeout(vR,e-ap.now()-Vm)),Fc&&(Fc=clearInterval(Fc))):(Fc||(a0=ap.now(),Fc=setInterval(aye,xj)),Du=1,Sj(vR))}}function xR(e,t,n){var r=new i0;return t=t==null?0:+t,r.restart(a=>{r.stop(),e(a+t)},t,n),r}var oye=$m("start","end","cancel","interrupt"),sye=[],Ej=0,SR=1,gx=2,qh=3,wR=4,mx=5,Yh=6;function Gm(e,t,n,r,a,i){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;lye(e,n,{name:t,index:r,group:a,on:oye,tween:sye,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Ej})}function vC(e,t){var n=$a(e,t);if(n.state>Ej)throw new Error("too late; already scheduled");return n}function xi(e,t){var n=$a(e,t);if(n.state>qh)throw new Error("too late; already running");return n}function $a(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function lye(e,t,n){var r=e.__transition,a;r[t]=n,n.timer=wj(i,0,n.time);function i(u){n.state=SR,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var c,p,f,h;if(n.state!==SR)return l();for(c in r)if(h=r[c],h.name===n.name){if(h.state===qh)return xR(o);h.state===wR?(h.state=Yh,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Yh,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(xR(function(){n.state===qh&&(n.state=wR,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=gx,n.on.call("start",e,e.__data__,n.index,n.group),n.state===gx){for(n.state=qh,a=new Array(f=n.tween.length),c=0,p=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(a[++p]=h);a.length=p+1}}function s(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=mx,1),p=-1,f=a.length;++p<f;)a[p].call(e,c);n.state===mx&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Yh,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function Xh(e,t){var n=e.__transition,r,a,i=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){i=!1;continue}a=r.state>gx&&r.state<mx,r.state=Yh,r.timer.stop(),r.on.call(a?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}i&&delete e.__transition}}function uye(e){return this.each(function(){Xh(this,e)})}function cye(e,t){var n,r;return function(){var a=xi(this,e),i=a.tween;if(i!==n){r=n=i;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}a.tween=r}}function dye(e,t,n){var r,a;if(typeof n!="function")throw new Error;return function(){var i=xi(this,e),o=i.tween;if(o!==r){a=(r=o).slice();for(var s={name:t,value:n},l=0,u=a.length;l<u;++l)if(a[l].name===t){a[l]=s;break}l===u&&a.push(s)}i.tween=a}}function pye(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=$a(this.node(),n).tween,a=0,i=r.length,o;a<i;++a)if((o=r[a]).name===e)return o.value;return null}return this.each((t==null?cye:dye)(n,e,t))}function xC(e,t,n){var r=e._id;return e.each(function(){var a=xi(this,r);(a.value||(a.value={}))[t]=n.apply(this,arguments)}),function(a){return $a(a,r).value[t]}}function kj(e,t){var n;return(typeof t=="number"?Ya:t instanceof Gs?n0:(n=Gs(t))?(t=n,n0):bj)(e,t)}function fye(e){return function(){this.removeAttribute(e)}}function hye(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gye(e,t,n){var r,a=n+"",i;return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}}function mye(e,t,n){var r,a=n+"",i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}function bye(e,t,n){var r,a,i;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===r&&l===a?i:(a=l,i=t(r=o,s)))}}function yye(e,t,n){var r,a,i;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===r&&l===a?i:(a=l,i=t(r=o,s)))}}function vye(e,t){var n=Hm(e),r=n==="transform"?Qbe:kj;return this.attrTween(e,typeof t=="function"?(n.local?yye:bye)(n,r,xC(this,"attr."+e,t)):t==null?(n.local?hye:fye)(n):(n.local?mye:gye)(n,r,t))}function xye(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Sye(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function wye(e,t){var n,r;function a(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Sye(e,i)),n}return a._value=t,a}function Eye(e,t){var n,r;function a(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&xye(e,i)),n}return a._value=t,a}function kye(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Hm(e);return this.tween(n,(r.local?wye:Eye)(r,t))}function Tye(e,t){return function(){vC(this,e).delay=+t.apply(this,arguments)}}function Cye(e,t){return t=+t,function(){vC(this,e).delay=t}}function Aye(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Tye:Cye)(t,e)):$a(this.node(),t).delay}function _ye(e,t){return function(){xi(this,e).duration=+t.apply(this,arguments)}}function Rye(e,t){return t=+t,function(){xi(this,e).duration=t}}function Nye(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_ye:Rye)(t,e)):$a(this.node(),t).duration}function Iye(e,t){if(typeof t!="function")throw new Error;return function(){xi(this,e).ease=t}}function Oye(e){var t=this._id;return arguments.length?this.each(Iye(t,e)):$a(this.node(),t).ease}function Dye(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;xi(this,e).ease=n}}function Lye(e){if(typeof e!="function")throw new Error;return this.each(Dye(this._id,e))}function Mye(e){typeof e!="function"&&(e=tj(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i=t[a],o=i.length,s=r[a]=[],l,u=0;u<o;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&s.push(l);return new eo(r,this._parents,this._name,this._id)}function zye(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,a=n.length,i=Math.min(r,a),o=new Array(r),s=0;s<i;++s)for(var l=t[s],u=n[s],c=l.length,p=o[s]=new Array(c),f,h=0;h<c;++h)(f=l[h]||u[h])&&(p[h]=f);for(;s<r;++s)o[s]=t[s];return new eo(o,this._parents,this._name,this._id)}function Pye(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function jye(e,t,n){var r,a,i=Pye(t)?vC:xi;return function(){var o=i(this,e),s=o.on;s!==r&&(a=(r=s).copy()).on(t,n),o.on=a}}function Fye(e,t){var n=this._id;return arguments.length<2?$a(this.node(),n).on.on(e):this.each(jye(n,e,t))}function Bye(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Uye(){return this.on("end.remove",Bye(this._id))}function $ye(e){var t=this._name,n=this._id;typeof e!="function"&&(e=hC(e));for(var r=this._groups,a=r.length,i=new Array(a),o=0;o<a;++o)for(var s=r[o],l=s.length,u=i[o]=new Array(l),c,p,f=0;f<l;++f)(c=s[f])&&(p=e.call(c,c.__data__,f,s))&&("__data__"in c&&(p.__data__=c.__data__),u[f]=p,Gm(u[f],t,n,f,u,$a(c,n)));return new eo(i,this._parents,t,n)}function Hye(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ej(e));for(var r=this._groups,a=r.length,i=[],o=[],s=0;s<a;++s)for(var l=r[s],u=l.length,c,p=0;p<u;++p)if(c=l[p]){for(var f=e.call(c,c.__data__,p,l),h,g=$a(c,n),y=0,x=f.length;y<x;++y)(h=f[y])&&Gm(h,t,n,y,f,g);i.push(f),o.push(c)}return new eo(i,o,t,n)}var Vye=Qp.prototype.constructor;function Gye(){return new Vye(this._groups,this._parents)}function Wye(e,t){var n,r,a;return function(){var i=Ou(this,e),o=(this.style.removeProperty(e),Ou(this,e));return i===o?null:i===n&&o===r?a:a=t(n=i,r=o)}}function Tj(e){return function(){this.style.removeProperty(e)}}function qye(e,t,n){var r,a=n+"",i;return function(){var o=Ou(this,e);return o===a?null:o===r?i:i=t(r=o,n)}}function Yye(e,t,n){var r,a,i;return function(){var o=Ou(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Ou(this,e))),o===l?null:o===r&&l===a?i:(a=l,i=t(r=o,s))}}function Xye(e,t){var n,r,a,i="style."+t,o="end."+i,s;return function(){var l=xi(this,e),u=l.on,c=l.value[i]==null?s||(s=Tj(t)):void 0;(u!==n||a!==c)&&(r=(n=u).copy()).on(o,a=c),l.on=r}}function Kye(e,t,n){var r=(e+="")=="transform"?Zbe:kj;return t==null?this.styleTween(e,Wye(e,r)).on("end.style."+e,Tj(e)):typeof t=="function"?this.styleTween(e,Yye(e,r,xC(this,"style."+e,t))).each(Xye(this._id,e)):this.styleTween(e,qye(e,r,t),n).on("end.style."+e,null)}function Zye(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Qye(e,t,n){var r,a;function i(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&Zye(e,o,n)),r}return i._value=t,i}function Jye(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Qye(e,t,n??""))}function e1e(e){return function(){this.textContent=e}}function t1e(e){return function(){var t=e(this);this.textContent=t??""}}function n1e(e){return this.tween("text",typeof e=="function"?t1e(xC(this,"text",e)):e1e(e==null?"":e+""))}function r1e(e){return function(t){this.textContent=e.call(this,t)}}function a1e(e){var t,n;function r(){var a=e.apply(this,arguments);return a!==n&&(t=(n=a)&&r1e(a)),t}return r._value=e,r}function i1e(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,a1e(e))}function o1e(){for(var e=this._name,t=this._id,n=Cj(),r=this._groups,a=r.length,i=0;i<a;++i)for(var o=r[i],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var c=$a(l,t);Gm(l,e,n,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eo(r,this._parents,e,n)}function s1e(){var e,t,n=this,r=n._id,a=n.size();return new Promise(function(i,o){var s={value:o},l={value:function(){--a===0&&i()}};n.each(function(){var u=xi(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),a===0&&i()})}var l1e=0;function eo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Cj(){return++l1e}var _i=Qp.prototype;eo.prototype={constructor:eo,select:$ye,selectAll:Hye,selectChild:_i.selectChild,selectChildren:_i.selectChildren,filter:Mye,merge:zye,selection:Gye,transition:o1e,call:_i.call,nodes:_i.nodes,node:_i.node,size:_i.size,empty:_i.empty,each:_i.each,on:Fye,attr:vye,attrTween:kye,style:Kye,styleTween:Jye,text:n1e,textTween:i1e,remove:Uye,tween:pye,delay:Aye,duration:Nye,ease:Oye,easeVarying:Lye,end:s1e,[Symbol.iterator]:_i[Symbol.iterator]};function u1e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var c1e={time:null,delay:0,duration:250,ease:u1e};function d1e(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function p1e(e){var t,n;e instanceof eo?(t=e._id,e=e._name):(t=Cj(),(n=c1e).time=yC(),e=e==null?null:e+"");for(var r=this._groups,a=r.length,i=0;i<a;++i)for(var o=r[i],s=o.length,l,u=0;u<s;++u)(l=o[u])&&Gm(l,e,t,u,o,n||d1e(l,t));return new eo(r,this._parents,e,t)}Qp.prototype.interrupt=uye;Qp.prototype.transition=p1e;const Jf=e=>()=>e;function f1e(e,{sourceEvent:t,target:n,transform:r,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:a}})}function ji(e,t,n){this.k=e,this.x=t,this.y=n}ji.prototype={constructor:ji,scale:function(e){return e===1?this:new ji(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ji(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Wm=new ji(1,0,0);Aj.prototype=ji.prototype;function Aj(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Wm;return e.__zoom}function Qy(e){e.stopImmediatePropagation()}function Bc(e){e.preventDefault(),e.stopImmediatePropagation()}function h1e(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function g1e(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ER(){return this.__zoom||Wm}function m1e(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function b1e(){return navigator.maxTouchPoints||"ontouchstart"in this}function y1e(e,t,n){var r=e.invertX(t[0][0])-n[0][0],a=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(a>r?(r+a)/2:Math.min(0,r)||Math.max(0,a),o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o))}function _j(){var e=h1e,t=g1e,n=y1e,r=m1e,a=b1e,i=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Wh,u=$m("start","zoom","end"),c,p,f,h=500,g=150,y=0,x=10;function m(M){M.property("__zoom",ER).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",_).filter(a).on("touchstart.zoom",L).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(M,F,A,j){var B=M.selection?M.selection():M;B.property("__zoom",ER),M!==B?C(M,F,A,j):B.interrupt().each(function(){k(this,arguments).event(j).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},m.scaleBy=function(M,F,A,j){m.scaleTo(M,function(){var B=this.__zoom.k,V=typeof F=="function"?F.apply(this,arguments):F;return B*V},A,j)},m.scaleTo=function(M,F,A,j){m.transform(M,function(){var B=t.apply(this,arguments),V=this.__zoom,D=A==null?S(B):typeof A=="function"?A.apply(this,arguments):A,Z=V.invert(D),J=typeof F=="function"?F.apply(this,arguments):F;return n(b(v(V,J),D,Z),B,o)},A,j)},m.translateBy=function(M,F,A,j){m.transform(M,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof A=="function"?A.apply(this,arguments):A),t.apply(this,arguments),o)},null,j)},m.translateTo=function(M,F,A,j,B){m.transform(M,function(){var V=t.apply(this,arguments),D=this.__zoom,Z=j==null?S(V):typeof j=="function"?j.apply(this,arguments):j;return n(Wm.translate(Z[0],Z[1]).scale(D.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof A=="function"?-A.apply(this,arguments):-A),V,o)},j,B)};function v(M,F){return F=Math.max(i[0],Math.min(i[1],F)),F===M.k?M:new ji(F,M.x,M.y)}function b(M,F,A){var j=F[0]-A[0]*M.k,B=F[1]-A[1]*M.k;return j===M.x&&B===M.y?M:new ji(M.k,j,B)}function S(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function C(M,F,A,j){M.on("start.zoom",function(){k(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(j).end()}).tween("zoom",function(){var B=this,V=arguments,D=k(B,V).event(j),Z=t.apply(B,V),J=A==null?S(Z):typeof A=="function"?A.apply(B,V):A,H=Math.max(Z[1][0]-Z[0][0],Z[1][1]-Z[0][1]),se=B.__zoom,we=typeof F=="function"?F.apply(B,V):F,xe=l(se.invert(J).concat(H/se.k),we.invert(J).concat(H/we.k));return function(pe){if(pe===1)pe=we;else{var X=xe(pe),te=H/X[2];pe=new ji(te,J[0]-X[0]*te,J[1]-X[1]*te)}D.zoom(null,pe)}})}function k(M,F,A){return!A&&M.__zooming||new R(M,F)}function R(M,F){this.that=M,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(M,F),this.taps=0}R.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,F){return this.mouse&&M!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var F=Gr(this.that).datum();u.call(M,this.that,new f1e(M,{sourceEvent:this.sourceEvent,target:m,transform:this.that.__zoom,dispatch:u}),F)}};function O(M,...F){if(!e.apply(this,arguments))return;var A=k(this,F).event(M),j=this.__zoom,B=Math.max(i[0],Math.min(i[1],j.k*Math.pow(2,r.apply(this,arguments)))),V=_a(M);if(A.wheel)(A.mouse[0][0]!==V[0]||A.mouse[0][1]!==V[1])&&(A.mouse[1]=j.invert(A.mouse[0]=V)),clearTimeout(A.wheel);else{if(j.k===B)return;A.mouse=[V,j.invert(V)],Xh(this),A.start()}Bc(M),A.wheel=setTimeout(D,g),A.zoom("mouse",n(b(v(j,B),A.mouse[0],A.mouse[1]),A.extent,o));function D(){A.wheel=null,A.end()}}function N(M,...F){if(f||!e.apply(this,arguments))return;var A=M.currentTarget,j=k(this,F,!0).event(M),B=Gr(M.view).on("mousemove.zoom",J,!0).on("mouseup.zoom",H,!0),V=_a(M,A),D=M.clientX,Z=M.clientY;dj(M.view),Qy(M),j.mouse=[V,this.__zoom.invert(V)],Xh(this),j.start();function J(se){if(Bc(se),!j.moved){var we=se.clientX-D,xe=se.clientY-Z;j.moved=we*we+xe*xe>y}j.event(se).zoom("mouse",n(b(j.that.__zoom,j.mouse[0]=_a(se,A),j.mouse[1]),j.extent,o))}function H(se){B.on("mousemove.zoom mouseup.zoom",null),pj(se.view,j.moved),Bc(se),j.event(se).end()}}function _(M,...F){if(e.apply(this,arguments)){var A=this.__zoom,j=_a(M.changedTouches?M.changedTouches[0]:M,this),B=A.invert(j),V=A.k*(M.shiftKey?.5:2),D=n(b(v(A,V),j,B),t.apply(this,F),o);Bc(M),s>0?Gr(this).transition().duration(s).call(C,D,j,M):Gr(this).call(m.transform,D,j,M)}}function L(M,...F){if(e.apply(this,arguments)){var A=M.touches,j=A.length,B=k(this,F,M.changedTouches.length===j).event(M),V,D,Z,J;for(Qy(M),D=0;D<j;++D)Z=A[D],J=_a(Z,this),J=[J,this.__zoom.invert(J),Z.identifier],B.touch0?!B.touch1&&B.touch0[2]!==J[2]&&(B.touch1=J,B.taps=0):(B.touch0=J,V=!0,B.taps=1+!!c);c&&(c=clearTimeout(c)),V&&(B.taps<2&&(p=J[0],c=setTimeout(function(){c=null},h)),Xh(this),B.start())}}function I(M,...F){if(this.__zooming){var A=k(this,F).event(M),j=M.changedTouches,B=j.length,V,D,Z,J;for(Bc(M),V=0;V<B;++V)D=j[V],Z=_a(D,this),A.touch0&&A.touch0[2]===D.identifier?A.touch0[0]=Z:A.touch1&&A.touch1[2]===D.identifier&&(A.touch1[0]=Z);if(D=A.that.__zoom,A.touch1){var H=A.touch0[0],se=A.touch0[1],we=A.touch1[0],xe=A.touch1[1],pe=(pe=we[0]-H[0])*pe+(pe=we[1]-H[1])*pe,X=(X=xe[0]-se[0])*X+(X=xe[1]-se[1])*X;D=v(D,Math.sqrt(pe/X)),Z=[(H[0]+we[0])/2,(H[1]+we[1])/2],J=[(se[0]+xe[0])/2,(se[1]+xe[1])/2]}else if(A.touch0)Z=A.touch0[0],J=A.touch0[1];else return;A.zoom("touch",n(b(D,Z,J),A.extent,o))}}function P(M,...F){if(this.__zooming){var A=k(this,F).event(M),j=M.changedTouches,B=j.length,V,D;for(Qy(M),f&&clearTimeout(f),f=setTimeout(function(){f=null},h),V=0;V<B;++V)D=j[V],A.touch0&&A.touch0[2]===D.identifier?delete A.touch0:A.touch1&&A.touch1[2]===D.identifier&&delete A.touch1;if(A.touch1&&!A.touch0&&(A.touch0=A.touch1,delete A.touch1),A.touch0)A.touch0[1]=this.__zoom.invert(A.touch0[0]);else if(A.end(),A.taps===2&&(D=_a(D,this),Math.hypot(p[0]-D[0],p[1]-D[1])<x)){var Z=Gr(this).on("dblclick.zoom");Z&&Z.apply(this,arguments)}}}return m.wheelDelta=function(M){return arguments.length?(r=typeof M=="function"?M:Jf(+M),m):r},m.filter=function(M){return arguments.length?(e=typeof M=="function"?M:Jf(!!M),m):e},m.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:Jf(!!M),m):a},m.extent=function(M){return arguments.length?(t=typeof M=="function"?M:Jf([[+M[0][0],+M[0][1]],[+M[1][0],+M[1][1]]]),m):t},m.scaleExtent=function(M){return arguments.length?(i[0]=+M[0],i[1]=+M[1],m):[i[0],i[1]]},m.translateExtent=function(M){return arguments.length?(o[0][0]=+M[0][0],o[1][0]=+M[1][0],o[0][1]=+M[0][1],o[1][1]=+M[1][1],m):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},m.constrain=function(M){return arguments.length?(n=M,m):n},m.duration=function(M){return arguments.length?(s=+M,m):s},m.interpolate=function(M){return arguments.length?(l=M,m):l},m.on=function(){var M=u.on.apply(u,arguments);return M===u?m:M},m.clickDistance=function(M){return arguments.length?(y=(M=+M)*M,m):Math.sqrt(y)},m.tapDistance=function(M){return arguments.length?(x=+M,m):x},m}const ui={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},ip=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Rj=["Enter"," ","Escape"],Nj={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Lu;(function(e){e.Strict="strict",e.Loose="loose"})(Lu||(Lu={}));var Ms;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Ms||(Ms={}));var op;(function(e){e.Partial="partial",e.Full="full"})(op||(op={}));const Ij={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Co;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Co||(Co={}));var o0;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(o0||(o0={}));var Me;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Me||(Me={}));const kR={[Me.Left]:Me.Right,[Me.Right]:Me.Left,[Me.Top]:Me.Bottom,[Me.Bottom]:Me.Top};function Oj(e){return e===null?null:e?"valid":"invalid"}const Dj=e=>"id"in e&&"source"in e&&"target"in e,v1e=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),SC=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),ef=(e,t=[0,0])=>{const{width:n,height:r}=so(e),a=e.origin??t,i=n*a[0],o=r*a[1];return{x:e.position.x-i,y:e.position.y-o}},x1e=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,a)=>{const i=typeof a=="string";let o=!t.nodeLookup&&!i?a:void 0;t.nodeLookup&&(o=i?t.nodeLookup.get(a):SC(a)?a:t.nodeLookup.get(a.id));const s=o?s0(o,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return qm(r,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Ym(n)},tf=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(a=>{(t.filter===void 0||t.filter(a))&&(n=qm(n,s0(a)),r=!0)}),r?Ym(n):{x:0,y:0,width:0,height:0}},wC=(e,t,[n,r,a]=[0,0,1],i=!1,o=!1)=>{const s={...rf(t,[n,r,a]),width:t.width/a,height:t.height/a},l=[];for(const u of e.values()){const{measured:c,selectable:p=!0,hidden:f=!1}=u;if(o&&!p||f)continue;const h=c.width??u.width??u.initialWidth??null,g=c.height??u.height??u.initialHeight??null,y=sp(s,zu(u)),x=(h??0)*(g??0),m=i&&y>0;(!u.internals.handleBounds||m||y>=x||u.dragging)&&l.push(u)}return l},S1e=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function w1e(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!a.hidden)&&(!r||r.has(a.id))&&n.set(a.id,a)}),n}async function E1e({nodes:e,width:t,height:n,panZoom:r,minZoom:a,maxZoom:i},o){if(e.size===0)return Promise.resolve(!0);const s=w1e(e,o),l=tf(s),u=EC(l,t,n,(o==null?void 0:o.minZoom)??a,(o==null?void 0:o.maxZoom)??i,(o==null?void 0:o.padding)??.1);return await r.setViewport(u,{duration:o==null?void 0:o.duration,ease:o==null?void 0:o.ease,interpolate:o==null?void 0:o.interpolate}),Promise.resolve(!0)}function Lj({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:a,onError:i}){const o=n.get(e),s=o.parentId?n.get(o.parentId):void 0,{x:l,y:u}=s?s.internals.positionAbsolute:{x:0,y:0},c=o.origin??r;let p=o.extent||a;if(o.extent==="parent"&&!o.expandParent)if(!s)i==null||i("005",ui.error005());else{const h=s.measured.width,g=s.measured.height;h&&g&&(p=[[l,u],[l+h,u+g]])}else s&&Pu(o.extent)&&(p=[[o.extent[0][0]+l,o.extent[0][1]+u],[o.extent[1][0]+l,o.extent[1][1]+u]]);const f=Pu(p)?qs(t,p,o.measured):t;return(o.measured.width===void 0||o.measured.height===void 0)&&(i==null||i("015",ui.error015())),{position:{x:f.x-l+(o.measured.width??0)*c[0],y:f.y-u+(o.measured.height??0)*c[1]},positionAbsolute:f}}async function k1e({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:a}){const i=new Set(e.map(f=>f.id)),o=[];for(const f of n){if(f.deletable===!1)continue;const h=i.has(f.id),g=!h&&f.parentId&&o.find(y=>y.id===f.parentId);(h||g)&&o.push(f)}const s=new Set(t.map(f=>f.id)),l=r.filter(f=>f.deletable!==!1),c=S1e(o,l);for(const f of l)s.has(f.id)&&!c.find(g=>g.id===f.id)&&c.push(f);if(!a)return{edges:c,nodes:o};const p=await a({nodes:o,edges:c});return typeof p=="boolean"?p?{edges:c,nodes:o}:{edges:[],nodes:[]}:p}const Mu=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),qs=(e={x:0,y:0},t,n)=>({x:Mu(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:Mu(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function Mj(e,t,n){const{width:r,height:a}=so(n),{x:i,y:o}=n.internals.positionAbsolute;return qs(e,[[i,o],[i+r,o+a]],t)}const TR=(e,t,n)=>e<t?Mu(Math.abs(e-t),1,t)/t:e>n?-Mu(Math.abs(e-n),1,t)/t:0,zj=(e,t,n=15,r=40)=>{const a=TR(e.x,r,t.width-r)*n,i=TR(e.y,r,t.height-r)*n;return[a,i]},qm=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),bx=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Ym=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),zu=(e,t=[0,0])=>{var a,i;const{x:n,y:r}=SC(e)?e.internals.positionAbsolute:ef(e,t);return{x:n,y:r,width:((a=e.measured)==null?void 0:a.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},s0=(e,t=[0,0])=>{var a,i;const{x:n,y:r}=SC(e)?e.internals.positionAbsolute:ef(e,t);return{x:n,y:r,x2:n+(((a=e.measured)==null?void 0:a.width)??e.width??e.initialWidth??0),y2:r+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},Pj=(e,t)=>Ym(qm(bx(e),bx(t))),sp=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},CR=e=>Ia(e.width)&&Ia(e.height)&&Ia(e.x)&&Ia(e.y),Ia=e=>!isNaN(e)&&isFinite(e),T1e=(e,t)=>{},nf=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),rf=({x:e,y:t},[n,r,a],i=!1,o=[1,1])=>{const s={x:(e-n)/a,y:(t-r)/a};return i?nf(s,o):s},l0=({x:e,y:t},[n,r,a])=>({x:e*a+n,y:t*a+r});function Sl(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function C1e(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=Sl(e,n),a=Sl(e,t);return{top:r,right:a,bottom:r,left:a,x:a*2,y:r*2}}if(typeof e=="object"){const r=Sl(e.top??e.y??0,n),a=Sl(e.bottom??e.y??0,n),i=Sl(e.left??e.x??0,t),o=Sl(e.right??e.x??0,t);return{top:r,right:o,bottom:a,left:i,x:i+o,y:r+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function A1e(e,t,n,r,a,i){const{x:o,y:s}=l0(e,[t,n,r]),{x:l,y:u}=l0({x:e.x+e.width,y:e.y+e.height},[t,n,r]),c=a-l,p=i-u;return{left:Math.floor(o),top:Math.floor(s),right:Math.floor(c),bottom:Math.floor(p)}}const EC=(e,t,n,r,a,i)=>{const o=C1e(i,t,n),s=(t-o.x)/e.width,l=(n-o.y)/e.height,u=Math.min(s,l),c=Mu(u,r,a),p=e.x+e.width/2,f=e.y+e.height/2,h=t/2-p*c,g=n/2-f*c,y=A1e(e,h,g,c,t,n),x={left:Math.min(y.left-o.left,0),top:Math.min(y.top-o.top,0),right:Math.min(y.right-o.right,0),bottom:Math.min(y.bottom-o.bottom,0)};return{x:h-x.left+x.right,y:g-x.top+x.bottom,zoom:c}},lp=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Pu(e){return e!=null&&e!=="parent"}function so(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function jj(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function Fj(e,t={width:0,height:0},n,r,a){const i={...e},o=r.get(n);if(o){const s=o.origin||a;i.x+=o.internals.positionAbsolute.x-(t.width??0)*s[0],i.y+=o.internals.positionAbsolute.y-(t.height??0)*s[1]}return i}function AR(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function _1e(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}function R1e(e){return{...Nj,...e||{}}}function kd(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:a}){const{x:i,y:o}=Oa(e),s=rf({x:i-((a==null?void 0:a.left)??0),y:o-((a==null?void 0:a.top)??0)},r),{x:l,y:u}=n?nf(s,t):s;return{xSnapped:l,ySnapped:u,...s}}const kC=e=>({width:e.offsetWidth,height:e.offsetHeight}),Bj=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},N1e=["INPUT","SELECT","TEXTAREA"];function Uj(e){var r,a;const t=((a=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:a[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:N1e.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const $j=e=>"clientX"in e,Oa=(e,t)=>{var i,o;const n=$j(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,a=n?e.clientY:(o=e.touches)==null?void 0:o[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:a-((t==null?void 0:t.top)??0)}},_R=(e,t,n,r,a)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(o=>{const s=o.getBoundingClientRect();return{id:o.getAttribute("data-handleid"),type:e,nodeId:a,position:o.getAttribute("data-handlepos"),x:(s.left-n.left)/r,y:(s.top-n.top)/r,...kC(o)}})};function Hj({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:a,sourceControlY:i,targetControlX:o,targetControlY:s}){const l=e*.125+a*.375+o*.375+n*.125,u=t*.125+i*.375+s*.375+r*.125,c=Math.abs(l-e),p=Math.abs(u-t);return[l,u,c,p]}function eh(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function RR({pos:e,x1:t,y1:n,x2:r,y2:a,c:i}){switch(e){case Me.Left:return[t-eh(t-r,i),n];case Me.Right:return[t+eh(r-t,i),n];case Me.Top:return[t,n-eh(n-a,i)];case Me.Bottom:return[t,n+eh(a-n,i)]}}function Xm({sourceX:e,sourceY:t,sourcePosition:n=Me.Bottom,targetX:r,targetY:a,targetPosition:i=Me.Top,curvature:o=.25}){const[s,l]=RR({pos:n,x1:e,y1:t,x2:r,y2:a,c:o}),[u,c]=RR({pos:i,x1:r,y1:a,x2:e,y2:t,c:o}),[p,f,h,g]=Hj({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${s},${l} ${u},${c} ${r},${a}`,p,f,h,g]}function Vj({sourceX:e,sourceY:t,targetX:n,targetY:r}){const a=Math.abs(n-e)/2,i=n<e?n+a:n-a,o=Math.abs(r-t)/2,s=r<t?r+o:r-o;return[i,s,a,o]}function I1e({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:a=!1,zIndexMode:i="basic"}){if(i==="manual")return r;const o=a&&n?r+1e3:r,s=Math.max(e.parentId||a&&e.selected?e.internals.z:0,t.parentId||a&&t.selected?t.internals.z:0);return o+s}function O1e({sourceNode:e,targetNode:t,width:n,height:r,transform:a}){const i=qm(s0(e),s0(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const o={x:-a[0]/a[2],y:-a[1]/a[2],width:n/a[2],height:r/a[2]};return sp(o,Ym(i))>0}const D1e=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,L1e=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),Gj=(e,t,n={})=>{if(!e.source||!e.target)return t;const r=n.getEdgeId||D1e;let a;return Dj(e)?a={...e}:a={...e,id:r(e)},L1e(a,t)?t:(a.sourceHandle===null&&delete a.sourceHandle,a.targetHandle===null&&delete a.targetHandle,t.concat(a))};function Wj({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[a,i,o,s]=Vj({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,a,i,o,s]}const NR={[Me.Left]:{x:-1,y:0},[Me.Right]:{x:1,y:0},[Me.Top]:{x:0,y:-1},[Me.Bottom]:{x:0,y:1}},M1e=({source:e,sourcePosition:t=Me.Bottom,target:n})=>t===Me.Left||t===Me.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},IR=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function z1e({source:e,sourcePosition:t=Me.Bottom,target:n,targetPosition:r=Me.Top,center:a,offset:i,stepPosition:o}){const s=NR[t],l=NR[r],u={x:e.x+s.x*i,y:e.y+s.y*i},c={x:n.x+l.x*i,y:n.y+l.y*i},p=M1e({source:u,sourcePosition:t,target:c}),f=p.x!==0?"x":"y",h=p[f];let g=[],y,x;const m={x:0,y:0},v={x:0,y:0},[,,b,S]=Vj({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*l[f]===-1){f==="x"?(y=a.x??u.x+(c.x-u.x)*o,x=a.y??(u.y+c.y)/2):(y=a.x??(u.x+c.x)/2,x=a.y??u.y+(c.y-u.y)*o);const O=[{x:y,y:u.y},{x:y,y:c.y}],N=[{x:u.x,y:x},{x:c.x,y:x}];s[f]===h?g=f==="x"?O:N:g=f==="x"?N:O}else{const O=[{x:u.x,y:c.y}],N=[{x:c.x,y:u.y}];if(f==="x"?g=s.x===h?N:O:g=s.y===h?O:N,t===r){const M=Math.abs(e[f]-n[f]);if(M<=i){const F=Math.min(i-1,i-M);s[f]===h?m[f]=(u[f]>e[f]?-1:1)*F:v[f]=(c[f]>n[f]?-1:1)*F}}if(t!==r){const M=f==="x"?"y":"x",F=s[f]===l[M],A=u[M]>c[M],j=u[M]<c[M];(s[f]===1&&(!F&&A||F&&j)||s[f]!==1&&(!F&&j||F&&A))&&(g=f==="x"?O:N)}const _={x:u.x+m.x,y:u.y+m.y},L={x:c.x+v.x,y:c.y+v.y},I=Math.max(Math.abs(_.x-g[0].x),Math.abs(L.x-g[0].x)),P=Math.max(Math.abs(_.y-g[0].y),Math.abs(L.y-g[0].y));I>=P?(y=(_.x+L.x)/2,x=g[0].y):(y=g[0].x,x=(_.y+L.y)/2)}const C={x:u.x+m.x,y:u.y+m.y},k={x:c.x+v.x,y:c.y+v.y};return[[e,...C.x!==g[0].x||C.y!==g[0].y?[C]:[],...g,...k.x!==g[g.length-1].x||k.y!==g[g.length-1].y?[k]:[],n],y,x,b,S]}function P1e(e,t,n,r){const a=Math.min(IR(e,t)/2,IR(t,n)/2,r),{x:i,y:o}=t;if(e.x===i&&i===n.x||e.y===o&&o===n.y)return`L${i} ${o}`;if(e.y===o){const u=e.x<n.x?-1:1,c=e.y<n.y?1:-1;return`L ${i+a*u},${o}Q ${i},${o} ${i},${o+a*c}`}const s=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${i},${o+a*l}Q ${i},${o} ${i+a*s},${o}`}function yx({sourceX:e,sourceY:t,sourcePosition:n=Me.Bottom,targetX:r,targetY:a,targetPosition:i=Me.Top,borderRadius:o=5,centerX:s,centerY:l,offset:u=20,stepPosition:c=.5}){const[p,f,h,g,y]=z1e({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:a},targetPosition:i,center:{x:s,y:l},offset:u,stepPosition:c});let x=`M${p[0].x} ${p[0].y}`;for(let m=1;m<p.length-1;m++)x+=P1e(p[m-1],p[m],p[m+1],o);return x+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[x,f,h,g,y]}function OR(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function j1e(e){var p;const{sourceNode:t,targetNode:n}=e;if(!OR(t)||!OR(n))return null;const r=t.internals.handleBounds||DR(t.handles),a=n.internals.handleBounds||DR(n.handles),i=LR((r==null?void 0:r.source)??[],e.sourceHandle),o=LR(e.connectionMode===Lu.Strict?(a==null?void 0:a.target)??[]:((a==null?void 0:a.target)??[]).concat((a==null?void 0:a.source)??[]),e.targetHandle);if(!i||!o)return(p=e.onError)==null||p.call(e,"008",ui.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=(i==null?void 0:i.position)||Me.Bottom,l=(o==null?void 0:o.position)||Me.Top,u=Ys(t,i,s),c=Ys(n,o,l);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:s,targetPosition:l}}function DR(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function Ys(e,t,n=Me.Left,r=!1){const a=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:o,height:s}=t??so(e);if(r)return{x:a+o/2,y:i+s/2};switch((t==null?void 0:t.position)??n){case Me.Top:return{x:a+o/2,y:i};case Me.Right:return{x:a+o,y:i+s/2};case Me.Bottom:return{x:a+o/2,y:i+s};case Me.Left:return{x:a,y:i+s/2}}}function LR(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function vx(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function F1e(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:a}){const i=new Set;return e.reduce((o,s)=>([s.markerStart||r,s.markerEnd||a].forEach(l=>{if(l&&typeof l=="object"){const u=vx(l,t);i.has(u)||(o.push({id:u,color:l.color||n,...l}),i.add(u))}}),o),[]).sort((o,s)=>o.id.localeCompare(s.id))}const qj=1e3,B1e=10,TC={nodeOrigin:[0,0],nodeExtent:ip,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},U1e={...TC,checkEquality:!0};function CC(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function $1e(e,t,n){const r=CC(TC,n);for(const a of e.values())if(a.parentId)_C(a,e,t,r);else{const i=ef(a,r.nodeOrigin),o=Pu(a.extent)?a.extent:r.nodeExtent,s=qs(i,o,so(a));a.internals.positionAbsolute=s}}function H1e(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],r=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&r.push(i)}return{source:n,target:r}}function AC(e){return e==="manual"}function xx(e,t,n,r={}){var c,p;const a=CC(U1e,r),i={i:0},o=new Map(t),s=a!=null&&a.elevateNodesOnSelect&&!AC(a.zIndexMode)?qj:0;let l=e.length>0,u=!1;t.clear(),n.clear();for(const f of e){let h=o.get(f.id);if(a.checkEquality&&f===(h==null?void 0:h.internals.userNode))t.set(f.id,h);else{const g=ef(f,a.nodeOrigin),y=Pu(f.extent)?f.extent:a.nodeExtent,x=qs(g,y,so(f));h={...a.defaults,...f,measured:{width:(c=f.measured)==null?void 0:c.width,height:(p=f.measured)==null?void 0:p.height},internals:{positionAbsolute:x,handleBounds:H1e(f,h),z:Yj(f,s,a.zIndexMode),userNode:f}},t.set(f.id,h)}(h.measured===void 0||h.measured.width===void 0||h.measured.height===void 0)&&!h.hidden&&(l=!1),f.parentId&&_C(h,t,n,r,i),u||(u=f.selected??!1)}return{nodesInitialized:l,hasSelectedNodes:u}}function V1e(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function _C(e,t,n,r,a){const{elevateNodesOnSelect:i,nodeOrigin:o,nodeExtent:s,zIndexMode:l}=CC(TC,r),u=e.parentId,c=t.get(u);if(!c){console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}V1e(e,n),a&&!c.parentId&&c.internals.rootParentIndex===void 0&&l==="auto"&&(c.internals.rootParentIndex=++a.i,c.internals.z=c.internals.z+a.i*B1e),a&&c.internals.rootParentIndex!==void 0&&(a.i=c.internals.rootParentIndex);const p=i&&!AC(l)?qj:0,{x:f,y:h,z:g}=G1e(e,c,o,s,p,l),{positionAbsolute:y}=e.internals,x=f!==y.x||h!==y.y;(x||g!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:f,y:h}:y,z:g}})}function Yj(e,t,n){const r=Ia(e.zIndex)?e.zIndex:0;return AC(n)?r:r+(e.selected?t:0)}function G1e(e,t,n,r,a,i){const{x:o,y:s}=t.internals.positionAbsolute,l=so(e),u=ef(e,n),c=Pu(e.extent)?qs(u,e.extent,l):u;let p=qs({x:o+c.x,y:s+c.y},r,l);e.extent==="parent"&&(p=Mj(p,l,t));const f=Yj(e,a,i),h=t.internals.z??0;return{x:p.x,y:p.y,z:h>=f?h+1:f}}function RC(e,t,n,r=[0,0]){var o;const a=[],i=new Map;for(const s of e){const l=t.get(s.parentId);if(!l)continue;const u=((o=i.get(s.parentId))==null?void 0:o.expandedRect)??zu(l),c=Pj(u,s.rect);i.set(s.parentId,{expandedRect:c,parent:l})}return i.size>0&&i.forEach(({expandedRect:s,parent:l},u)=>{var b;const c=l.internals.positionAbsolute,p=so(l),f=l.origin??r,h=s.x<c.x?Math.round(Math.abs(c.x-s.x)):0,g=s.y<c.y?Math.round(Math.abs(c.y-s.y)):0,y=Math.max(p.width,Math.round(s.width)),x=Math.max(p.height,Math.round(s.height)),m=(y-p.width)*f[0],v=(x-p.height)*f[1];(h>0||g>0||m||v)&&(a.push({id:u,type:"position",position:{x:l.position.x-h+m,y:l.position.y-g+v}}),(b=n.get(u))==null||b.forEach(S=>{e.some(C=>C.id===S.id)||a.push({id:S.id,type:"position",position:{x:S.position.x+h,y:S.position.y+g}})})),(p.width<s.width||p.height<s.height||h||g)&&a.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:y+(h?f[0]*h-m:0),height:x+(g?f[1]*g-v:0)}})}),a}function W1e(e,t,n,r,a,i,o){const s=r==null?void 0:r.querySelector(".xyflow__viewport");let l=!1;if(!s)return{changes:[],updatedInternals:l};const u=[],c=window.getComputedStyle(s),{m22:p}=new window.DOMMatrixReadOnly(c.transform),f=[];for(const h of e.values()){const g=t.get(h.id);if(!g)continue;if(g.hidden){t.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),l=!0;continue}const y=kC(h.nodeElement),x=g.measured.width!==y.width||g.measured.height!==y.height;if(!!(y.width&&y.height&&(x||!g.internals.handleBounds||h.force))){const v=h.nodeElement.getBoundingClientRect(),b=Pu(g.extent)?g.extent:i;let{positionAbsolute:S}=g.internals;g.parentId&&g.extent==="parent"?S=Mj(S,y,t.get(g.parentId)):b&&(S=qs(S,b,y));const C={...g,measured:y,internals:{...g.internals,positionAbsolute:S,handleBounds:{source:_R("source",h.nodeElement,v,p,g.id),target:_R("target",h.nodeElement,v,p,g.id)}}};t.set(g.id,C),g.parentId&&_C(C,t,n,{nodeOrigin:a,zIndexMode:o}),l=!0,x&&(u.push({id:g.id,type:"dimensions",dimensions:y}),g.expandParent&&g.parentId&&f.push({id:g.id,parentId:g.parentId,rect:zu(C,a)}))}}if(f.length>0){const h=RC(f,t,n,a);u.push(...h)}return{changes:u,updatedInternals:l}}async function q1e({delta:e,panZoom:t,transform:n,translateExtent:r,width:a,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const o=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],r),s=!!o&&(o.x!==n[0]||o.y!==n[1]||o.k!==n[2]);return Promise.resolve(s)}function MR(e,t,n,r,a,i){let o=a;const s=r.get(o)||new Map;r.set(o,s.set(n,t)),o=`${a}-${e}`;const l=r.get(o)||new Map;if(r.set(o,l.set(n,t)),i){o=`${a}-${e}-${i}`;const u=r.get(o)||new Map;r.set(o,u.set(n,t))}}function Xj(e,t,n){e.clear(),t.clear();for(const r of n){const{source:a,target:i,sourceHandle:o=null,targetHandle:s=null}=r,l={edgeId:r.id,source:a,target:i,sourceHandle:o,targetHandle:s},u=`${a}-${o}--${i}-${s}`,c=`${i}-${s}--${a}-${o}`;MR("source",l,c,e,a,o),MR("target",l,u,e,i,s),t.set(r.id,r)}}function Kj(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:Kj(n,t):!1}function zR(e,t,n){var a;let r=e;do{if((a=r==null?void 0:r.matches)!=null&&a.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function Y1e(e,t,n,r){const a=new Map;for(const[i,o]of e)if((o.selected||o.id===r)&&(!o.parentId||!Kj(o,e))&&(o.draggable||t&&typeof o.draggable>"u")){const s=e.get(i);s&&a.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return a}function Jy({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var o,s,l;const a=[];for(const[u,c]of t){const p=(o=n.get(u))==null?void 0:o.internals.userNode;p&&a.push({...p,position:c.position,dragging:r})}if(!e)return[a[0],a];const i=(s=n.get(e))==null?void 0:s.internals.userNode;return[i?{...i,position:((l=t.get(e))==null?void 0:l.position)||i.position,dragging:r}:a[0],a]}function X1e({dragItems:e,snapGrid:t,x:n,y:r}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:r-a.distance.y},o=nf(i,t);return{x:o.x-i.x,y:o.y-i.y}}function K1e({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:a}){let i={x:null,y:null},o=0,s=new Map,l=!1,u={x:0,y:0},c=null,p=!1,f=null,h=!1,g=!1,y=null;function x({noDragClassName:v,handleSelector:b,domNode:S,isSelectable:C,nodeId:k,nodeClickDistance:R=0}){f=Gr(S);function O({x:I,y:P}){const{nodeLookup:M,nodeExtent:F,snapGrid:A,snapToGrid:j,nodeOrigin:B,onNodeDrag:V,onSelectionDrag:D,onError:Z,updateNodePositions:J}=t();i={x:I,y:P};let H=!1;const se=s.size>1,we=se&&F?bx(tf(s)):null,xe=se&&j?X1e({dragItems:s,snapGrid:A,x:I,y:P}):null;for(const[pe,X]of s){if(!M.has(pe))continue;let te={x:I-X.distance.x,y:P-X.distance.y};j&&(te=xe?{x:Math.round(te.x+xe.x),y:Math.round(te.y+xe.y)}:nf(te,A));let ie=null;if(se&&F&&!X.extent&&we){const{positionAbsolute:ce}=X.internals,Re=ce.x-we.x+F[0][0],Be=ce.x+X.measured.width-we.x2+F[1][0],De=ce.y-we.y+F[0][1],Ke=ce.y+X.measured.height-we.y2+F[1][1];ie=[[Re,De],[Be,Ke]]}const{position:he,positionAbsolute:le}=Lj({nodeId:pe,nextPosition:te,nodeLookup:M,nodeExtent:ie||F,nodeOrigin:B,onError:Z});H=H||X.position.x!==he.x||X.position.y!==he.y,X.position=he,X.internals.positionAbsolute=le}if(g=g||H,!!H&&(J(s,!0),y&&(r||V||!k&&D))){const[pe,X]=Jy({nodeId:k,dragItems:s,nodeLookup:M});r==null||r(y,s,pe,X),V==null||V(y,pe,X),k||D==null||D(y,X)}}async function N(){if(!c)return;const{transform:I,panBy:P,autoPanSpeed:M,autoPanOnNodeDrag:F}=t();if(!F){l=!1,cancelAnimationFrame(o);return}const[A,j]=zj(u,c,M);(A!==0||j!==0)&&(i.x=(i.x??0)-A/I[2],i.y=(i.y??0)-j/I[2],await P({x:A,y:j})&&O(i)),o=requestAnimationFrame(N)}function _(I){var se;const{nodeLookup:P,multiSelectionActive:M,nodesDraggable:F,transform:A,snapGrid:j,snapToGrid:B,selectNodesOnDrag:V,onNodeDragStart:D,onSelectionDragStart:Z,unselectNodesAndEdges:J}=t();p=!0,(!V||!C)&&!M&&k&&((se=P.get(k))!=null&&se.selected||J()),C&&V&&k&&(e==null||e(k));const H=kd(I.sourceEvent,{transform:A,snapGrid:j,snapToGrid:B,containerBounds:c});if(i=H,s=Y1e(P,F,H,k),s.size>0&&(n||D||!k&&Z)){const[we,xe]=Jy({nodeId:k,dragItems:s,nodeLookup:P});n==null||n(I.sourceEvent,s,we,xe),D==null||D(I.sourceEvent,we,xe),k||Z==null||Z(I.sourceEvent,xe)}}const L=fj().clickDistance(R).on("start",I=>{const{domNode:P,nodeDragThreshold:M,transform:F,snapGrid:A,snapToGrid:j}=t();c=(P==null?void 0:P.getBoundingClientRect())||null,h=!1,g=!1,y=I.sourceEvent,M===0&&_(I),i=kd(I.sourceEvent,{transform:F,snapGrid:A,snapToGrid:j,containerBounds:c}),u=Oa(I.sourceEvent,c)}).on("drag",I=>{const{autoPanOnNodeDrag:P,transform:M,snapGrid:F,snapToGrid:A,nodeDragThreshold:j,nodeLookup:B}=t(),V=kd(I.sourceEvent,{transform:M,snapGrid:F,snapToGrid:A,containerBounds:c});if(y=I.sourceEvent,(I.sourceEvent.type==="touchmove"&&I.sourceEvent.touches.length>1||k&&!B.has(k))&&(h=!0),!h){if(!l&&P&&p&&(l=!0,N()),!p){const D=Oa(I.sourceEvent,c),Z=D.x-u.x,J=D.y-u.y;Math.sqrt(Z*Z+J*J)>j&&_(I)}(i.x!==V.xSnapped||i.y!==V.ySnapped)&&s&&p&&(u=Oa(I.sourceEvent,c),O(V))}}).on("end",I=>{if(!(!p||h)&&(l=!1,p=!1,cancelAnimationFrame(o),s.size>0)){const{nodeLookup:P,updateNodePositions:M,onNodeDragStop:F,onSelectionDragStop:A}=t();if(g&&(M(s,!1),g=!1),a||F||!k&&A){const[j,B]=Jy({nodeId:k,dragItems:s,nodeLookup:P,dragging:!1});a==null||a(I.sourceEvent,s,j,B),F==null||F(I.sourceEvent,j,B),k||A==null||A(I.sourceEvent,B)}}}).filter(I=>{const P=I.target;return!I.button&&(!v||!zR(P,`.${v}`,S))&&(!b||zR(P,b,S))});f.call(L)}function m(){f==null||f.on(".drag",null)}return{update:x,destroy:m}}function Z1e(e,t,n){const r=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())sp(a,zu(i))>0&&r.push(i);return r}const Q1e=250;function J1e(e,t,n,r){var s,l;let a=[],i=1/0;const o=Z1e(e,n,t+Q1e);for(const u of o){const c=[...((s=u.internals.handleBounds)==null?void 0:s.source)??[],...((l=u.internals.handleBounds)==null?void 0:l.target)??[]];for(const p of c){if(r.nodeId===p.nodeId&&r.type===p.type&&r.id===p.id)continue;const{x:f,y:h}=Ys(u,p,p.position,!0),g=Math.sqrt(Math.pow(f-e.x,2)+Math.pow(h-e.y,2));g>t||(g<i?(a=[{...p,x:f,y:h}],i=g):g===i&&a.push({...p,x:f,y:h}))}}if(!a.length)return null;if(a.length>1){const u=r.type==="source"?"target":"source";return a.find(c=>c.type===u)??a[0]}return a[0]}function Zj(e,t,n,r,a,i=!1){var u,c,p;const o=r.get(e);if(!o)return null;const s=a==="strict"?(u=o.internals.handleBounds)==null?void 0:u[t]:[...((c=o.internals.handleBounds)==null?void 0:c.source)??[],...((p=o.internals.handleBounds)==null?void 0:p.target)??[]],l=(n?s==null?void 0:s.find(f=>f.id===n):s==null?void 0:s[0])??null;return l&&i?{...l,...Ys(o,l,l.position,!0)}:l}function Qj(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function eve(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const Jj=()=>!0;function tve(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:a,edgeUpdaterType:i,isTarget:o,domNode:s,nodeLookup:l,lib:u,autoPanOnConnect:c,flowId:p,panBy:f,cancelConnection:h,onConnectStart:g,onConnect:y,onConnectEnd:x,isValidConnection:m=Jj,onReconnectEnd:v,updateConnection:b,getTransform:S,getFromHandle:C,autoPanSpeed:k,dragThreshold:R=1,handleDomNode:O}){const N=Bj(e.target);let _=0,L;const{x:I,y:P}=Oa(e),M=Qj(i,O),F=s==null?void 0:s.getBoundingClientRect();let A=!1;if(!F||!M)return;const j=Zj(a,M,r,l,t);if(!j)return;let B=Oa(e,F),V=!1,D=null,Z=!1,J=null;function H(){if(!c||!F)return;const[he,le]=zj(B,F,k);f({x:he,y:le}),_=requestAnimationFrame(H)}const se={...j,nodeId:a,type:M,position:j.position},we=l.get(a);let pe={inProgress:!0,isValid:null,from:Ys(we,se,Me.Left,!0),fromHandle:se,fromPosition:se.position,fromNode:we,to:B,toHandle:null,toPosition:kR[se.position],toNode:null,pointer:B};function X(){A=!0,b(pe),g==null||g(e,{nodeId:a,handleId:r,handleType:M})}R===0&&X();function te(he){if(!A){const{x:Ke,y:Rt}=Oa(he),Nt=Ke-I,It=Rt-P;if(!(Nt*Nt+It*It>R*R))return;X()}if(!C()||!se){ie(he);return}const le=S();B=Oa(he,F),L=J1e(rf(B,le,!1,[1,1]),n,l,se),V||(H(),V=!0);const ce=eF(he,{handle:L,connectionMode:t,fromNodeId:a,fromHandleId:r,fromType:o?"target":"source",isValidConnection:m,doc:N,lib:u,flowId:p,nodeLookup:l});J=ce.handleDomNode,D=ce.connection,Z=eve(!!L,ce.isValid);const Re=l.get(a),Be=Re?Ys(Re,se,Me.Left,!0):pe.from,De={...pe,from:Be,isValid:Z,to:ce.toHandle&&Z?l0({x:ce.toHandle.x,y:ce.toHandle.y},le):B,toHandle:ce.toHandle,toPosition:Z&&ce.toHandle?ce.toHandle.position:kR[se.position],toNode:ce.toHandle?l.get(ce.toHandle.nodeId):null,pointer:B};b(De),pe=De}function ie(he){if(!("touches"in he&&he.touches.length>0)){if(A){(L||J)&&D&&Z&&(y==null||y(D));const{inProgress:le,...ce}=pe,Re={...ce,toPosition:pe.toHandle?pe.toPosition:null};x==null||x(he,Re),i&&(v==null||v(he,Re))}h(),cancelAnimationFrame(_),V=!1,Z=!1,D=null,J=null,N.removeEventListener("mousemove",te),N.removeEventListener("mouseup",ie),N.removeEventListener("touchmove",te),N.removeEventListener("touchend",ie)}}N.addEventListener("mousemove",te),N.addEventListener("mouseup",ie),N.addEventListener("touchmove",te),N.addEventListener("touchend",ie)}function eF(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:a,fromType:i,doc:o,lib:s,flowId:l,isValidConnection:u=Jj,nodeLookup:c}){const p=i==="target",f=t?o.querySelector(`.${s}-flow__handle[data-id="${l}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:h,y:g}=Oa(e),y=o.elementFromPoint(h,g),x=y!=null&&y.classList.contains(`${s}-flow__handle`)?y:f,m={handleDomNode:x,isValid:!1,connection:null,toHandle:null};if(x){const v=Qj(void 0,x),b=x.getAttribute("data-nodeid"),S=x.getAttribute("data-handleid"),C=x.classList.contains("connectable"),k=x.classList.contains("connectableend");if(!b||!v)return m;const R={source:p?b:r,sourceHandle:p?S:a,target:p?r:b,targetHandle:p?a:S};m.connection=R;const N=C&&k&&(n===Lu.Strict?p&&v==="source"||!p&&v==="target":b!==r||S!==a);m.isValid=N&&u(R),m.toHandle=Zj(b,v,S,c,n,!0)}return m}const Sx={onPointerDown:tve,isValid:eF};function nve({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const a=Gr(e);function i({translateExtent:s,width:l,height:u,zoomStep:c=1,pannable:p=!0,zoomable:f=!0,inversePan:h=!1}){const g=b=>{if(b.sourceEvent.type!=="wheel"||!t)return;const S=n(),C=b.sourceEvent.ctrlKey&&lp()?10:1,k=-b.sourceEvent.deltaY*(b.sourceEvent.deltaMode===1?.05:b.sourceEvent.deltaMode?1:.002)*c,R=S[2]*Math.pow(2,k*C);t.scaleTo(R)};let y=[0,0];const x=b=>{(b.sourceEvent.type==="mousedown"||b.sourceEvent.type==="touchstart")&&(y=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY])},m=b=>{const S=n();if(b.sourceEvent.type!=="mousemove"&&b.sourceEvent.type!=="touchmove"||!t)return;const C=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY],k=[C[0]-y[0],C[1]-y[1]];y=C;const R=r()*Math.max(S[2],Math.log(S[2]))*(h?-1:1),O={x:S[0]-k[0]*R,y:S[1]-k[1]*R},N=[[0,0],[l,u]];t.setViewportConstrained({x:O.x,y:O.y,zoom:S[2]},N,s)},v=_j().on("start",x).on("zoom",p?m:null).on("zoom.wheel",f?g:null);a.call(v,{})}function o(){a.on("zoom",null)}return{update:i,destroy:o,pointer:_a}}const Km=e=>({x:e.x,y:e.y,zoom:e.k}),e1=({x:e,y:t,zoom:n})=>Wm.translate(e,t).scale(n),ql=(e,t)=>e.target.closest(`.${t}`),tF=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),rve=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,t1=(e,t=0,n=rve,r=()=>{})=>{const a=typeof t=="number"&&t>0;return a||r(),a?e.transition().duration(t).ease(n).on("end",r):e},nF=e=>{const t=e.ctrlKey&&lp()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function ave({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:o,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:u}){return c=>{if(ql(c,t))return c.ctrlKey&&c.preventDefault(),!1;c.preventDefault(),c.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(c.ctrlKey&&o){const x=_a(c),m=nF(c),v=p*Math.pow(2,m);r.scaleTo(n,v,x,c);return}const f=c.deltaMode===1?20:1;let h=a===Ms.Vertical?0:c.deltaX*f,g=a===Ms.Horizontal?0:c.deltaY*f;!lp()&&c.shiftKey&&a!==Ms.Vertical&&(h=c.deltaY*f,g=0),r.translateBy(n,-(h/p)*i,-(g/p)*i,{internal:!0});const y=Km(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(l==null||l(c,y),e.panScrollTimeout=setTimeout(()=>{u==null||u(c,y),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s==null||s(c,y))}}function ive({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,a){const i=r.type==="wheel",o=!t&&i&&!r.ctrlKey,s=ql(r,e);if(r.ctrlKey&&i&&s&&r.preventDefault(),o||s)return null;r.preventDefault(),n.call(this,r,a)}}function ove({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var i,o,s;if((i=r.sourceEvent)!=null&&i.internal)return;const a=Km(r.transform);e.mouseButton=((o=r.sourceEvent)==null?void 0:o.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=a,((s=r.sourceEvent)==null?void 0:s.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,a))}}function sve({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:a}){return i=>{var o,s;e.usedRightMouseButton=!!(n&&tF(t,e.mouseButton??0)),(o=i.sourceEvent)!=null&&o.sync||r([i.transform.x,i.transform.y,i.transform.k]),a&&!((s=i.sourceEvent)!=null&&s.internal)&&(a==null||a(i.sourceEvent,Km(i.transform)))}}function lve({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:a,onPaneContextMenu:i}){return o=>{var s;if(!((s=o.sourceEvent)!=null&&s.internal)&&(e.isZoomingOrPanning=!1,i&&tF(t,e.mouseButton??0)&&!e.usedRightMouseButton&&o.sourceEvent&&i(o.sourceEvent),e.usedRightMouseButton=!1,r(!1),a)){const l=Km(o.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a==null||a(o.sourceEvent,l)},n?150:0)}}}function uve({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:o,noWheelClassName:s,noPanClassName:l,lib:u,connectionInProgress:c}){return p=>{var x;const f=e||t,h=n&&p.ctrlKey,g=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(ql(p,`${u}-flow__node`)||ql(p,`${u}-flow__edge`)))return!0;if(!r&&!f&&!a&&!i&&!n||o||c&&!g||ql(p,s)&&g||ql(p,l)&&(!g||a&&g&&!e)||!n&&p.ctrlKey&&g)return!1;if(!n&&p.type==="touchstart"&&((x=p.touches)==null?void 0:x.length)>1)return p.preventDefault(),!1;if(!f&&!a&&!h&&g||!r&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(r)&&!r.includes(p.button)&&p.type==="mousedown")return!1;const y=Array.isArray(r)&&r.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||g)&&y}}function cve({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:a,onPanZoom:i,onPanZoomStart:o,onPanZoomEnd:s,onDraggingChange:l}){const u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},c=e.getBoundingClientRect(),p=_j().scaleExtent([t,n]).translateExtent(r),f=Gr(e).call(p);v({x:a.x,y:a.y,zoom:Mu(a.zoom,t,n)},[[0,0],[c.width,c.height]],r);const h=f.on("wheel.zoom"),g=f.on("dblclick.zoom");p.wheelDelta(nF);function y(L,I){return f?new Promise(P=>{p==null||p.interpolate((I==null?void 0:I.interpolate)==="linear"?Ed:Wh).transform(t1(f,I==null?void 0:I.duration,I==null?void 0:I.ease,()=>P(!0)),L)}):Promise.resolve(!1)}function x({noWheelClassName:L,noPanClassName:I,onPaneContextMenu:P,userSelectionActive:M,panOnScroll:F,panOnDrag:A,panOnScrollMode:j,panOnScrollSpeed:B,preventScrolling:V,zoomOnPinch:D,zoomOnScroll:Z,zoomOnDoubleClick:J,zoomActivationKeyPressed:H,lib:se,onTransformChange:we,connectionInProgress:xe,paneClickDistance:pe,selectionOnDrag:X}){M&&!u.isZoomingOrPanning&&m();const te=F&&!H&&!M;p.clickDistance(X?1/0:!Ia(pe)||pe<0?0:pe);const ie=te?ave({zoomPanValues:u,noWheelClassName:L,d3Selection:f,d3Zoom:p,panOnScrollMode:j,panOnScrollSpeed:B,zoomOnPinch:D,onPanZoomStart:o,onPanZoom:i,onPanZoomEnd:s}):ive({noWheelClassName:L,preventScrolling:V,d3ZoomHandler:h});if(f.on("wheel.zoom",ie,{passive:!1}),!M){const le=ove({zoomPanValues:u,onDraggingChange:l,onPanZoomStart:o});p.on("start",le);const ce=sve({zoomPanValues:u,panOnDrag:A,onPaneContextMenu:!!P,onPanZoom:i,onTransformChange:we});p.on("zoom",ce);const Re=lve({zoomPanValues:u,panOnDrag:A,panOnScroll:F,onPaneContextMenu:P,onPanZoomEnd:s,onDraggingChange:l});p.on("end",Re)}const he=uve({zoomActivationKeyPressed:H,panOnDrag:A,zoomOnScroll:Z,panOnScroll:F,zoomOnDoubleClick:J,zoomOnPinch:D,userSelectionActive:M,noPanClassName:I,noWheelClassName:L,lib:se,connectionInProgress:xe});p.filter(he),J?f.on("dblclick.zoom",g):f.on("dblclick.zoom",null)}function m(){p.on("zoom",null)}async function v(L,I,P){const M=e1(L),F=p==null?void 0:p.constrain()(M,I,P);return F&&await y(F),new Promise(A=>A(F))}async function b(L,I){const P=e1(L);return await y(P,I),new Promise(M=>M(P))}function S(L){if(f){const I=e1(L),P=f.property("__zoom");(P.k!==L.zoom||P.x!==L.x||P.y!==L.y)&&(p==null||p.transform(f,I,null,{sync:!0}))}}function C(){const L=f?Aj(f.node()):{x:0,y:0,k:1};return{x:L.x,y:L.y,zoom:L.k}}function k(L,I){return f?new Promise(P=>{p==null||p.interpolate((I==null?void 0:I.interpolate)==="linear"?Ed:Wh).scaleTo(t1(f,I==null?void 0:I.duration,I==null?void 0:I.ease,()=>P(!0)),L)}):Promise.resolve(!1)}function R(L,I){return f?new Promise(P=>{p==null||p.interpolate((I==null?void 0:I.interpolate)==="linear"?Ed:Wh).scaleBy(t1(f,I==null?void 0:I.duration,I==null?void 0:I.ease,()=>P(!0)),L)}):Promise.resolve(!1)}function O(L){p==null||p.scaleExtent(L)}function N(L){p==null||p.translateExtent(L)}function _(L){const I=!Ia(L)||L<0?0:L;p==null||p.clickDistance(I)}return{update:x,destroy:m,setViewport:b,setViewportConstrained:v,getViewport:C,scaleTo:k,scaleBy:R,setScaleExtent:O,setTranslateExtent:N,syncViewport:S,setClickDistance:_}}var ju;(function(e){e.Line="line",e.Handle="handle"})(ju||(ju={}));function dve({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:a,affectsY:i}){const o=e-t,s=n-r,l=[o>0?1:o<0?-1:0,s>0?1:s<0?-1:0];return o&&a&&(l[0]=l[0]*-1),s&&i&&(l[1]=l[1]*-1),l}function PR(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),a=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:a}}function go(e,t){return Math.max(0,t-e)}function mo(e,t){return Math.max(0,e-t)}function th(e,t,n){return Math.max(0,t-e,e-n)}function jR(e,t){return e?!t:t}function pve(e,t,n,r,a,i,o,s){let{affectsX:l,affectsY:u}=t;const{isHorizontal:c,isVertical:p}=t,f=c&&p,{xSnapped:h,ySnapped:g}=n,{minWidth:y,maxWidth:x,minHeight:m,maxHeight:v}=r,{x:b,y:S,width:C,height:k,aspectRatio:R}=e;let O=Math.floor(c?h-e.pointerX:0),N=Math.floor(p?g-e.pointerY:0);const _=C+(l?-O:O),L=k+(u?-N:N),I=-i[0]*C,P=-i[1]*k;let M=th(_,y,x),F=th(L,m,v);if(o){let B=0,V=0;l&&O<0?B=go(b+O+I,o[0][0]):!l&&O>0&&(B=mo(b+_+I,o[1][0])),u&&N<0?V=go(S+N+P,o[0][1]):!u&&N>0&&(V=mo(S+L+P,o[1][1])),M=Math.max(M,B),F=Math.max(F,V)}if(s){let B=0,V=0;l&&O>0?B=mo(b+O,s[0][0]):!l&&O<0&&(B=go(b+_,s[1][0])),u&&N>0?V=mo(S+N,s[0][1]):!u&&N<0&&(V=go(S+L,s[1][1])),M=Math.max(M,B),F=Math.max(F,V)}if(a){if(c){const B=th(_/R,m,v)*R;if(M=Math.max(M,B),o){let V=0;!l&&!u||l&&!u&&f?V=mo(S+P+_/R,o[1][1])*R:V=go(S+P+(l?O:-O)/R,o[0][1])*R,M=Math.max(M,V)}if(s){let V=0;!l&&!u||l&&!u&&f?V=go(S+_/R,s[1][1])*R:V=mo(S+(l?O:-O)/R,s[0][1])*R,M=Math.max(M,V)}}if(p){const B=th(L*R,y,x)/R;if(F=Math.max(F,B),o){let V=0;!l&&!u||u&&!l&&f?V=mo(b+L*R+I,o[1][0])/R:V=go(b+(u?N:-N)*R+I,o[0][0])/R,F=Math.max(F,V)}if(s){let V=0;!l&&!u||u&&!l&&f?V=go(b+L*R,s[1][0])/R:V=mo(b+(u?N:-N)*R,s[0][0])/R,F=Math.max(F,V)}}}N=N+(N<0?F:-F),O=O+(O<0?M:-M),a&&(f?_>L*R?N=(jR(l,u)?-O:O)/R:O=(jR(l,u)?-N:N)*R:c?(N=O/R,u=l):(O=N*R,l=u));const A=l?b+O:b,j=u?S+N:S;return{width:C+(l?-O:O),height:k+(u?-N:N),x:i[0]*O*(l?-1:1)+A,y:i[1]*N*(u?-1:1)+j}}const rF={width:0,height:0,x:0,y:0},fve={...rF,pointerX:0,pointerY:0,aspectRatio:1};function hve(e){return[[0,0],[e.measured.width,e.measured.height]]}function gve(e,t,n){const r=t.position.x+e.position.x,a=t.position.y+e.position.y,i=e.measured.width??0,o=e.measured.height??0,s=n[0]*i,l=n[1]*o;return[[r-s,a-l],[r+i-s,a+o-l]]}function mve({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:a}){const i=Gr(e);let o={controlDirection:PR("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:u,boundaries:c,keepAspectRatio:p,resizeDirection:f,onResizeStart:h,onResize:g,onResizeEnd:y,shouldResize:x}){let m={...rF},v={...fve};o={boundaries:c,resizeDirection:f,keepAspectRatio:p,controlDirection:PR(u)};let b,S=null,C=[],k,R,O,N=!1;const _=fj().on("start",L=>{const{nodeLookup:I,transform:P,snapGrid:M,snapToGrid:F,nodeOrigin:A,paneDomNode:j}=n();if(b=I.get(t),!b)return;S=(j==null?void 0:j.getBoundingClientRect())??null;const{xSnapped:B,ySnapped:V}=kd(L.sourceEvent,{transform:P,snapGrid:M,snapToGrid:F,containerBounds:S});m={width:b.measured.width??0,height:b.measured.height??0,x:b.position.x??0,y:b.position.y??0},v={...m,pointerX:B,pointerY:V,aspectRatio:m.width/m.height},k=void 0,b.parentId&&(b.extent==="parent"||b.expandParent)&&(k=I.get(b.parentId),R=k&&b.extent==="parent"?hve(k):void 0),C=[],O=void 0;for(const[D,Z]of I)if(Z.parentId===t&&(C.push({id:D,position:{...Z.position},extent:Z.extent}),Z.extent==="parent"||Z.expandParent)){const J=gve(Z,b,Z.origin??A);O?O=[[Math.min(J[0][0],O[0][0]),Math.min(J[0][1],O[0][1])],[Math.max(J[1][0],O[1][0]),Math.max(J[1][1],O[1][1])]]:O=J}h==null||h(L,{...m})}).on("drag",L=>{const{transform:I,snapGrid:P,snapToGrid:M,nodeOrigin:F}=n(),A=kd(L.sourceEvent,{transform:I,snapGrid:P,snapToGrid:M,containerBounds:S}),j=[];if(!b)return;const{x:B,y:V,width:D,height:Z}=m,J={},H=b.origin??F,{width:se,height:we,x:xe,y:pe}=pve(v,o.controlDirection,A,o.boundaries,o.keepAspectRatio,H,R,O),X=se!==D,te=we!==Z,ie=xe!==B&&X,he=pe!==V&&te;if(!ie&&!he&&!X&&!te)return;if((ie||he||H[0]===1||H[1]===1)&&(J.x=ie?xe:m.x,J.y=he?pe:m.y,m.x=J.x,m.y=J.y,C.length>0)){const Be=xe-B,De=pe-V;for(const Ke of C)Ke.position={x:Ke.position.x-Be+H[0]*(se-D),y:Ke.position.y-De+H[1]*(we-Z)},j.push(Ke)}if((X||te)&&(J.width=X&&(!o.resizeDirection||o.resizeDirection==="horizontal")?se:m.width,J.height=te&&(!o.resizeDirection||o.resizeDirection==="vertical")?we:m.height,m.width=J.width,m.height=J.height),k&&b.expandParent){const Be=H[0]*(J.width??0);J.x&&J.x<Be&&(m.x=Be,v.x=v.x-(J.x-Be));const De=H[1]*(J.height??0);J.y&&J.y<De&&(m.y=De,v.y=v.y-(J.y-De))}const le=dve({width:m.width,prevWidth:D,height:m.height,prevHeight:Z,affectsX:o.controlDirection.affectsX,affectsY:o.controlDirection.affectsY}),ce={...m,direction:le};(x==null?void 0:x(L,ce))!==!1&&(N=!0,g==null||g(L,ce),r(J,j))}).on("end",L=>{N&&(y==null||y(L,{...m}),a==null||a({...m}),N=!1)});i.call(_)}function l(){i.on(".drag",null)}return{update:s,destroy:l}}var aF={exports:{}},iF={},oF={exports:{}},sF={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fu=w;function bve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yve=typeof Object.is=="function"?Object.is:bve,vve=Fu.useState,xve=Fu.useEffect,Sve=Fu.useLayoutEffect,wve=Fu.useDebugValue;function Eve(e,t){var n=t(),r=vve({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return Sve(function(){a.value=n,a.getSnapshot=t,n1(a)&&i({inst:a})},[e,n,t]),xve(function(){return n1(a)&&i({inst:a}),e(function(){n1(a)&&i({inst:a})})},[e]),wve(n),n}function n1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yve(e,n)}catch{return!0}}function kve(e,t){return t()}var Tve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kve:Eve;sF.useSyncExternalStore=Fu.useSyncExternalStore!==void 0?Fu.useSyncExternalStore:Tve;oF.exports=sF;var Cve=oF.exports;/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zm=w,Ave=Cve;function _ve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rve=typeof Object.is=="function"?Object.is:_ve,Nve=Ave.useSyncExternalStore,Ive=Zm.useRef,Ove=Zm.useEffect,Dve=Zm.useMemo,Lve=Zm.useDebugValue;iF.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var i=Ive(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Dve(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var g=o.value;if(a(g,h))return p=g}return p=h}if(g=p,Rve(c,h))return g;var y=r(h);return a!==void 0&&a(g,y)?(c=h,g):(c=h,p=y)}var u=!1,c,p,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,a]);var s=Nve(e,i[0],i[1]);return Ove(function(){o.hasValue=!0,o.value=s},[s]),Lve(s),s};aF.exports=iF;var Mve=aF.exports;const zve=dp(Mve),Pve={},FR=e=>{let t;const n=new Set,r=(c,p)=>{const f=typeof c=="function"?c(t):c;if(!Object.is(f,t)){const h=t;t=p??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(g=>g(t,h))}},a=()=>t,l={setState:r,getState:a,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(Pve?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,a,l);return l},jve=e=>e?FR(e):FR,{useDebugValue:Fve}=Xn,{useSyncExternalStoreWithSelector:Bve}=zve,Uve=e=>e;function lF(e,t=Uve,n){const r=Bve(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Fve(r),r}const BR=(e,t)=>{const n=jve(e),r=(a,i=t)=>lF(n,a,i);return Object.assign(r,n),r},$ve=(e,t)=>e?BR(e,t):BR;function Xt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,a]of e)if(!Object.is(a,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const Qm=w.createContext(null),Hve=Qm.Provider,uF=ui.error001();function ct(e,t){const n=w.useContext(Qm);if(n===null)throw new Error(uF);return lF(n,e,t)}function Zt(){const e=w.useContext(Qm);if(e===null)throw new Error(uF);return w.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const UR={display:"none"},Vve={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},cF="react-flow__node-desc",dF="react-flow__edge-desc",Gve="react-flow__aria-live",Wve=e=>e.ariaLiveMessage,qve=e=>e.ariaLabelConfig;function Yve({rfId:e}){const t=ct(Wve);return d.jsx("div",{id:`${Gve}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:Vve,children:t})}function Xve({rfId:e,disableKeyboardA11y:t}){const n=ct(qve);return d.jsxs(d.Fragment,{children:[d.jsx("div",{id:`${cF}-${e}`,style:UR,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),d.jsx("div",{id:`${dF}-${e}`,style:UR,children:n["edge.a11yDescription.default"]}),!t&&d.jsx(Yve,{rfId:e})]})}const Bu=w.forwardRef(({position:e="top-left",children:t,className:n,style:r,...a},i)=>{const o=`${e}`.split("-");return d.jsx("div",{className:wn(["react-flow__panel",n,...o]),style:r,ref:i,...a,children:t})});Bu.displayName="Panel";function Kve({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:d.jsx(Bu,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:d.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const Zve=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},nh=e=>e.id;function Qve(e,t){return Xt(e.selectedNodes.map(nh),t.selectedNodes.map(nh))&&Xt(e.selectedEdges.map(nh),t.selectedEdges.map(nh))}function Jve({onSelectionChange:e}){const t=Zt(),{selectedNodes:n,selectedEdges:r}=ct(Zve,Qve);return w.useEffect(()=>{const a={nodes:n,edges:r};e==null||e(a),t.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,r,e]),null}const exe=e=>!!e.onSelectionChangeHandlers;function txe({onSelectionChange:e}){const t=ct(exe);return e||t?d.jsx(Jve,{onSelectionChange:e}):null}const wx=typeof window<"u"?w.useLayoutEffect:w.useEffect,pF=[0,0],nxe={x:0,y:0,zoom:1},rxe=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],$R=[...rxe,"rfId"],axe=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),HR={translateExtent:ip,nodeOrigin:pF,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function ixe(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:o,reset:s,setDefaultNodesAndEdges:l}=ct(axe,Xt),u=Zt();wx(()=>(l(e.defaultNodes,e.defaultEdges),()=>{c.current=HR,s()}),[]);const c=w.useRef(HR);return wx(()=>{for(const p of $R){const f=e[p],h=c.current[p];f!==h&&(typeof e[p]>"u"||(p==="nodes"?t(f):p==="edges"?n(f):p==="minZoom"?r(f):p==="maxZoom"?a(f):p==="translateExtent"?i(f):p==="nodeExtent"?o(f):p==="ariaLabelConfig"?u.setState({ariaLabelConfig:R1e(f)}):p==="fitView"?u.setState({fitViewQueued:f}):p==="fitViewOptions"?u.setState({fitViewOptions:f}):u.setState({[p]:f})))}c.current=e},$R.map(p=>e[p])),null}function VR(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function oxe(e){var r;const[t,n]=w.useState(e==="system"?null:e);return w.useEffect(()=>{if(e!=="system"){n(e);return}const a=VR(),i=()=>n(a!=null&&a.matches?"dark":"light");return i(),a==null||a.addEventListener("change",i),()=>{a==null||a.removeEventListener("change",i)}},[e]),t!==null?t:(r=VR())!=null&&r.matches?"dark":"light"}const GR=typeof document<"u"?document:null;function up(e=null,t={target:GR,actInsideInputWithModifier:!0}){const[n,r]=w.useState(!1),a=w.useRef(!1),i=w.useRef(new Set([])),[o,s]=w.useMemo(()=>{if(e!==null){const u=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
`).replace(`

`,`
+`).split(`
`)),c=u.reduce((p,f)=>p.concat(...f),[]);return[u,c]}return[[],[]]},[e]);return w.useEffect(()=>{const l=(t==null?void 0:t.target)??GR,u=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const c=h=>{var x,m;if(a.current=h.ctrlKey||h.metaKey||h.shiftKey||h.altKey,(!a.current||a.current&&!u)&&Uj(h))return!1;const y=qR(h.code,s);if(i.current.add(h[y]),WR(o,i.current,!1)){const v=((m=(x=h.composedPath)==null?void 0:x.call(h))==null?void 0:m[0])||h.target,b=(v==null?void 0:v.nodeName)==="BUTTON"||(v==null?void 0:v.nodeName)==="A";t.preventDefault!==!1&&(a.current||!b)&&h.preventDefault(),r(!0)}},p=h=>{const g=qR(h.code,s);WR(o,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(h[g]),h.key==="Meta"&&i.current.clear(),a.current=!1},f=()=>{i.current.clear(),r(!1)};return l==null||l.addEventListener("keydown",c),l==null||l.addEventListener("keyup",p),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{l==null||l.removeEventListener("keydown",c),l==null||l.removeEventListener("keyup",p),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,r]),n}function WR(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(a=>t.has(a)))}function qR(e,t){return t.includes(e)?"code":"key"}const sxe=()=>{const e=Zt();return w.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,a,i],panZoom:o}=e.getState();return o?(await o.setViewport({x:t.x??r,y:t.y??a,zoom:t.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:a,minZoom:i,maxZoom:o,panZoom:s}=e.getState(),l=EC(t,r,a,i,o,(n==null?void 0:n.padding)??.1);return s?(await s.setViewport(l,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:a,snapToGrid:i,domNode:o}=e.getState();if(!o)return t;const{x:s,y:l}=o.getBoundingClientRect(),u={x:t.x-s,y:t.y-l},c=n.snapGrid??a,p=n.snapToGrid??i;return rf(u,r,p,c)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:a,y:i}=r.getBoundingClientRect(),o=l0(t,n);return{x:o.x+a,y:o.y+i}}}),[])};function fF(e,t){const n=[],r=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")r.set(i.id,[i]);else{const o=r.get(i.id);o?o.push(i):r.set(i.id,[i])}for(const i of t){const o=r.get(i.id);if(!o){n.push(i);continue}if(o[0].type==="remove")continue;if(o[0].type==="replace"){n.push({...o[0].item});continue}const s={...i};for(const l of o)lxe(l,s);n.push(s)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function lxe(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function hF(e,t){return fF(e,t)}function gF(e,t){return fF(e,t)}function ws(e,t){return{id:e,type:"select",selected:t}}function Yl(e,t=new Set,n=!1){const r=[];for(const[a,i]of e){const o=t.has(a);!(i.selected===void 0&&!o)&&i.selected!==o&&(n&&(i.selected=o),r.push(ws(i.id,o)))}return r}function YR({items:e=[],lookup:t}){var a;const n=[],r=new Map(e.map(i=>[i.id,i]));for(const[i,o]of e.entries()){const s=t.get(o.id),l=((a=s==null?void 0:s.internals)==null?void 0:a.userNode)??s;l!==void 0&&l!==o&&n.push({id:o.id,item:o,type:"replace"}),l===void 0&&n.push({item:o,type:"add",index:i})}for(const[i]of t)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function XR(e){return{id:e.id,type:"remove"}}const KR=e=>v1e(e),uxe=e=>Dj(e);function mF(e){return w.forwardRef(e)}function ZR(e){const[t,n]=w.useState(BigInt(0)),[r]=w.useState(()=>cxe(()=>n(a=>a+BigInt(1))));return wx(()=>{const a=r.get();a.length&&(e(a),r.reset())},[t]),r}function cxe(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const bF=w.createContext(null);function dxe({children:e}){const t=Zt(),n=w.useCallback(s=>{const{nodes:l=[],setNodes:u,hasDefaultNodes:c,onNodesChange:p,nodeLookup:f,fitViewQueued:h,onNodesChangeMiddlewareMap:g}=t.getState();let y=l;for(const m of s)y=typeof m=="function"?m(y):m;let x=YR({items:y,lookup:f});for(const m of g.values())x=m(x);c&&u(y),x.length>0?p==null||p(x):h&&window.requestAnimationFrame(()=>{const{fitViewQueued:m,nodes:v,setNodes:b}=t.getState();m&&b(v)})},[]),r=ZR(n),a=w.useCallback(s=>{const{edges:l=[],setEdges:u,hasDefaultEdges:c,onEdgesChange:p,edgeLookup:f}=t.getState();let h=l;for(const g of s)h=typeof g=="function"?g(h):g;c?u(h):p&&p(YR({items:h,lookup:f}))},[]),i=ZR(a),o=w.useMemo(()=>({nodeQueue:r,edgeQueue:i}),[]);return d.jsx(bF.Provider,{value:o,children:e})}function pxe(){const e=w.useContext(bF);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const fxe=e=>!!e.panZoom;function NC(){const e=sxe(),t=Zt(),n=pxe(),r=ct(fxe),a=w.useMemo(()=>{const i=p=>t.getState().nodeLookup.get(p),o=p=>{n.nodeQueue.push(p)},s=p=>{n.edgeQueue.push(p)},l=p=>{var m,v;const{nodeLookup:f,nodeOrigin:h}=t.getState(),g=KR(p)?p:f.get(p.id),y=g.parentId?Fj(g.position,g.measured,g.parentId,f,h):g.position,x={...g,position:y,width:((m=g.measured)==null?void 0:m.width)??g.width,height:((v=g.measured)==null?void 0:v.height)??g.height};return zu(x)},u=(p,f,h={replace:!1})=>{o(g=>g.map(y=>{if(y.id===p){const x=typeof f=="function"?f(y):f;return h.replace&&KR(x)?x:{...y,...x}}return y}))},c=(p,f,h={replace:!1})=>{s(g=>g.map(y=>{if(y.id===p){const x=typeof f=="function"?f(y):f;return h.replace&&uxe(x)?x:{...y,...x}}return y}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var f;return(f=i(p))==null?void 0:f.internals.userNode},getInternalNode:i,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(f=>({...f}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:o,setEdges:s,addNodes:p=>{const f=Array.isArray(p)?p:[p];n.nodeQueue.push(h=>[...h,...f])},addEdges:p=>{const f=Array.isArray(p)?p:[p];n.edgeQueue.push(h=>[...h,...f])},toObject:()=>{const{nodes:p=[],edges:f=[],transform:h}=t.getState(),[g,y,x]=h;return{nodes:p.map(m=>({...m})),edges:f.map(m=>({...m})),viewport:{x:g,y,zoom:x}}},deleteElements:async({nodes:p=[],edges:f=[]})=>{const{nodes:h,edges:g,onNodesDelete:y,onEdgesDelete:x,triggerNodeChanges:m,triggerEdgeChanges:v,onDelete:b,onBeforeDelete:S}=t.getState(),{nodes:C,edges:k}=await k1e({nodesToRemove:p,edgesToRemove:f,nodes:h,edges:g,onBeforeDelete:S}),R=k.length>0,O=C.length>0;if(R){const N=k.map(XR);x==null||x(k),v(N)}if(O){const N=C.map(XR);y==null||y(C),m(N)}return(O||R)&&(b==null||b({nodes:C,edges:k})),{deletedNodes:C,deletedEdges:k}},getIntersectingNodes:(p,f=!0,h)=>{const g=CR(p),y=g?p:l(p),x=h!==void 0;return y?(h||t.getState().nodes).filter(m=>{const v=t.getState().nodeLookup.get(m.id);if(v&&!g&&(m.id===p.id||!v.internals.positionAbsolute))return!1;const b=zu(x?m:v),S=sp(b,y);return f&&S>0||S>=b.width*b.height||S>=y.width*y.height}):[]},isNodeIntersecting:(p,f,h=!0)=>{const y=CR(p)?p:l(p);if(!y)return!1;const x=sp(y,f);return h&&x>0||x>=f.width*f.height||x>=y.width*y.height},updateNode:u,updateNodeData:(p,f,h={replace:!1})=>{u(p,g=>{const y=typeof f=="function"?f(g):f;return h.replace?{...g,data:y}:{...g,data:{...g.data,...y}}},h)},updateEdge:c,updateEdgeData:(p,f,h={replace:!1})=>{c(p,g=>{const y=typeof f=="function"?f(g):f;return h.replace?{...g,data:y}:{...g,data:{...g.data,...y}}},h)},getNodesBounds:p=>{const{nodeLookup:f,nodeOrigin:h}=t.getState();return x1e(p,{nodeLookup:f,nodeOrigin:h})},getHandleConnections:({type:p,id:f,nodeId:h})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${h}-${p}${f?`-${f}`:""}`))==null?void 0:g.values())??[])},getNodeConnections:({type:p,handleId:f,nodeId:h})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${h}${p?f?`-${p}-${f}`:`-${p}`:""}`))==null?void 0:g.values())??[])},fitView:async p=>{const f=t.getState().fitViewResolver??_1e();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:f}),n.nodeQueue.push(h=>[...h]),f.promise}}},[]);return w.useMemo(()=>({...a,...e,viewportInitialized:r}),[r])}const QR=e=>e.selected,hxe=typeof window<"u"?window:void 0;function gxe({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Zt(),{deleteElements:r}=NC(),a=up(e,{actInsideInputWithModifier:!1}),i=up(t,{target:hxe});w.useEffect(()=>{if(a){const{edges:o,nodes:s}=n.getState();r({nodes:s.filter(QR),edges:o.filter(QR)}),n.setState({nodesSelectionActive:!1})}},[a]),w.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function mxe(e){const t=Zt();w.useEffect(()=>{const n=()=>{var a,i,o,s;if(!e.current||!(((i=(a=e.current).checkVisibility)==null?void 0:i.call(a))??!0))return!1;const r=kC(e.current);(r.height===0||r.width===0)&&((s=(o=t.getState()).onError)==null||s.call(o,"004",ui.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const Jm={position:"absolute",width:"100%",height:"100%",top:0,left:0},bxe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function yxe({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=Ms.Free,zoomOnDoubleClick:o=!0,panOnDrag:s=!0,defaultViewport:l,translateExtent:u,minZoom:c,maxZoom:p,zoomActivationKeyCode:f,preventScrolling:h=!0,children:g,noWheelClassName:y,noPanClassName:x,onViewportChange:m,isControlledViewport:v,paneClickDistance:b,selectionOnDrag:S}){const C=Zt(),k=w.useRef(null),{userSelectionActive:R,lib:O,connectionInProgress:N}=ct(bxe,Xt),_=up(f),L=w.useRef();mxe(k);const I=w.useCallback(P=>{m==null||m({x:P[0],y:P[1],zoom:P[2]}),v||C.setState({transform:P})},[m,v]);return w.useEffect(()=>{if(k.current){L.current=cve({domNode:k.current,minZoom:c,maxZoom:p,translateExtent:u,viewport:l,onDraggingChange:A=>C.setState(j=>j.paneDragging===A?j:{paneDragging:A}),onPanZoomStart:(A,j)=>{const{onViewportChangeStart:B,onMoveStart:V}=C.getState();V==null||V(A,j),B==null||B(j)},onPanZoom:(A,j)=>{const{onViewportChange:B,onMove:V}=C.getState();V==null||V(A,j),B==null||B(j)},onPanZoomEnd:(A,j)=>{const{onViewportChangeEnd:B,onMoveEnd:V}=C.getState();V==null||V(A,j),B==null||B(j)}});const{x:P,y:M,zoom:F}=L.current.getViewport();return C.setState({panZoom:L.current,transform:[P,M,F],domNode:k.current.closest(".react-flow")}),()=>{var A;(A=L.current)==null||A.destroy()}}},[]),w.useEffect(()=>{var P;(P=L.current)==null||P.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:o,panOnDrag:s,zoomActivationKeyPressed:_,preventScrolling:h,noPanClassName:x,userSelectionActive:R,noWheelClassName:y,lib:O,onTransformChange:I,connectionInProgress:N,selectionOnDrag:S,paneClickDistance:b})},[e,t,n,r,a,i,o,s,_,h,x,R,y,O,I,N,S,b]),d.jsx("div",{className:"react-flow__renderer",ref:k,style:Jm,children:g})}const vxe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function xxe(){const{userSelectionActive:e,userSelectionRect:t}=ct(vxe,Xt);return e&&t?d.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const r1=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},Sxe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function wxe({isSelecting:e,selectionKeyPressed:t,selectionMode:n=op.Full,panOnDrag:r,paneClickDistance:a,selectionOnDrag:i,onSelectionStart:o,onSelectionEnd:s,onPaneClick:l,onPaneContextMenu:u,onPaneScroll:c,onPaneMouseEnter:p,onPaneMouseMove:f,onPaneMouseLeave:h,children:g}){const y=Zt(),{userSelectionActive:x,elementsSelectable:m,dragging:v,connectionInProgress:b}=ct(Sxe,Xt),S=m&&(e||x),C=w.useRef(null),k=w.useRef(),R=w.useRef(new Set),O=w.useRef(new Set),N=w.useRef(!1),_=B=>{if(N.current||b){N.current=!1;return}l==null||l(B),y.getState().resetSelectedElements(),y.setState({nodesSelectionActive:!1})},L=B=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){B.preventDefault();return}u==null||u(B)},I=c?B=>c(B):void 0,P=B=>{N.current&&(B.stopPropagation(),N.current=!1)},M=B=>{var we,xe;const{domNode:V}=y.getState();if(k.current=V==null?void 0:V.getBoundingClientRect(),!k.current)return;const D=B.target===C.current;if(!D&&!!B.target.closest(".nokey")||!e||!(i&&D||t)||B.button!==0||!B.isPrimary)return;(xe=(we=B.target)==null?void 0:we.setPointerCapture)==null||xe.call(we,B.pointerId),N.current=!1;const{x:H,y:se}=Oa(B.nativeEvent,k.current);y.setState({userSelectionRect:{width:0,height:0,startX:H,startY:se,x:H,y:se}}),D||(B.stopPropagation(),B.preventDefault())},F=B=>{const{userSelectionRect:V,transform:D,nodeLookup:Z,edgeLookup:J,connectionLookup:H,triggerNodeChanges:se,triggerEdgeChanges:we,defaultEdgeOptions:xe,resetSelectedElements:pe}=y.getState();if(!k.current||!V)return;const{x:X,y:te}=Oa(B.nativeEvent,k.current),{startX:ie,startY:he}=V;if(!N.current){const De=t?0:a;if(Math.hypot(X-ie,te-he)<=De)return;pe(),o==null||o(B)}N.current=!0;const le={startX:ie,startY:he,x:X<ie?X:ie,y:te<he?te:he,width:Math.abs(X-ie),height:Math.abs(te-he)},ce=R.current,Re=O.current;R.current=new Set(wC(Z,le,D,n===op.Partial,!0).map(De=>De.id)),O.current=new Set;const Be=(xe==null?void 0:xe.selectable)??!0;for(const De of R.current){const Ke=H.get(De);if(Ke)for(const{edgeId:Rt}of Ke.values()){const Nt=J.get(Rt);Nt&&(Nt.selectable??Be)&&O.current.add(Rt)}}if(!AR(ce,R.current)){const De=Yl(Z,R.current,!0);se(De)}if(!AR(Re,O.current)){const De=Yl(J,O.current);we(De)}y.setState({userSelectionRect:le,userSelectionActive:!0,nodesSelectionActive:!1})},A=B=>{var V,D;B.button===0&&((D=(V=B.target)==null?void 0:V.releasePointerCapture)==null||D.call(V,B.pointerId),!x&&B.target===C.current&&y.getState().userSelectionRect&&(_==null||_(B)),y.setState({userSelectionActive:!1,userSelectionRect:null}),N.current&&(s==null||s(B),y.setState({nodesSelectionActive:R.current.size>0})))},j=r===!0||Array.isArray(r)&&r.includes(0);return d.jsxs("div",{className:wn(["react-flow__pane",{draggable:j,dragging:v,selection:e}]),onClick:S?void 0:r1(_,C),onContextMenu:r1(L,C),onWheel:r1(I,C),onPointerEnter:S?void 0:p,onPointerMove:S?F:f,onPointerUp:S?A:void 0,onPointerDownCapture:S?M:void 0,onClickCapture:S?P:void 0,onPointerLeave:h,ref:C,style:Jm,children:[g,d.jsx(xxe,{})]})}function Ex({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:o,nodeLookup:s,onError:l}=t.getState(),u=s.get(e);if(!u){l==null||l("012",ui.error012(e));return}t.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&o)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>{var c;return(c=r==null?void 0:r.current)==null?void 0:c.blur()})):a([e])}function yF({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:a,isSelectable:i,nodeClickDistance:o}){const s=Zt(),[l,u]=w.useState(!1),c=w.useRef();return w.useEffect(()=>{c.current=K1e({getStoreItems:()=>s.getState(),onNodeMouseDown:p=>{Ex({id:p,store:s,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),w.useEffect(()=>{if(!(t||!e.current||!c.current))return c.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:o}),()=>{var p;(p=c.current)==null||p.destroy()}},[n,r,t,i,e,a,o]),l}const Exe=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function vF(){const e=Zt();return w.useCallback(n=>{const{nodeExtent:r,snapToGrid:a,snapGrid:i,nodesDraggable:o,onError:s,updateNodePositions:l,nodeLookup:u,nodeOrigin:c}=e.getState(),p=new Map,f=Exe(o),h=a?i[0]:5,g=a?i[1]:5,y=n.direction.x*h*n.factor,x=n.direction.y*g*n.factor;for(const[,m]of u){if(!f(m))continue;let v={x:m.internals.positionAbsolute.x+y,y:m.internals.positionAbsolute.y+x};a&&(v=nf(v,i));const{position:b,positionAbsolute:S}=Lj({nodeId:m.id,nextPosition:v,nodeLookup:u,nodeExtent:r,nodeOrigin:c,onError:s});m.position=b,m.internals.positionAbsolute=S,p.set(m.id,m)}l(p)},[])}const IC=w.createContext(null),kxe=IC.Provider;IC.Consumer;const xF=()=>w.useContext(IC),Txe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Cxe=(e,t,n)=>r=>{const{connectionClickStartHandle:a,connectionMode:i,connection:o}=r,{fromHandle:s,toHandle:l,isValid:u}=o,c=(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===n;return{connectingFrom:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===n,connectingTo:c,clickConnecting:(a==null?void 0:a.nodeId)===e&&(a==null?void 0:a.id)===t&&(a==null?void 0:a.type)===n,isPossibleEndHandle:i===Lu.Strict?(s==null?void 0:s.type)!==n:e!==(s==null?void 0:s.nodeId)||t!==(s==null?void 0:s.id),connectionInProcess:!!s,clickConnectionInProcess:!!a,valid:c&&u}};function Axe({type:e="source",position:t=Me.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:o,onConnect:s,children:l,className:u,onMouseDown:c,onTouchStart:p,...f},h){var F,A;const g=o||null,y=e==="target",x=Zt(),m=xF(),{connectOnClick:v,noPanClassName:b,rfId:S}=ct(Txe,Xt),{connectingFrom:C,connectingTo:k,clickConnecting:R,isPossibleEndHandle:O,connectionInProcess:N,clickConnectionInProcess:_,valid:L}=ct(Cxe(m,g,e),Xt);m||(A=(F=x.getState()).onError)==null||A.call(F,"010",ui.error010());const I=j=>{const{defaultEdgeOptions:B,onConnect:V,hasDefaultEdges:D}=x.getState(),Z={...B,...j};if(D){const{edges:J,setEdges:H}=x.getState();H(Gj(Z,J))}V==null||V(Z),s==null||s(Z)},P=j=>{if(!m)return;const B=$j(j.nativeEvent);if(a&&(B&&j.button===0||!B)){const V=x.getState();Sx.onPointerDown(j.nativeEvent,{handleDomNode:j.currentTarget,autoPanOnConnect:V.autoPanOnConnect,connectionMode:V.connectionMode,connectionRadius:V.connectionRadius,domNode:V.domNode,nodeLookup:V.nodeLookup,lib:V.lib,isTarget:y,handleId:g,nodeId:m,flowId:V.rfId,panBy:V.panBy,cancelConnection:V.cancelConnection,onConnectStart:V.onConnectStart,onConnectEnd:(...D)=>{var Z,J;return(J=(Z=x.getState()).onConnectEnd)==null?void 0:J.call(Z,...D)},updateConnection:V.updateConnection,onConnect:I,isValidConnection:n||((...D)=>{var Z,J;return((J=(Z=x.getState()).isValidConnection)==null?void 0:J.call(Z,...D))??!0}),getTransform:()=>x.getState().transform,getFromHandle:()=>x.getState().connection.fromHandle,autoPanSpeed:V.autoPanSpeed,dragThreshold:V.connectionDragThreshold})}B?c==null||c(j):p==null||p(j)},M=j=>{const{onClickConnectStart:B,onClickConnectEnd:V,connectionClickStartHandle:D,connectionMode:Z,isValidConnection:J,lib:H,rfId:se,nodeLookup:we,connection:xe}=x.getState();if(!m||!D&&!a)return;if(!D){B==null||B(j.nativeEvent,{nodeId:m,handleId:g,handleType:e}),x.setState({connectionClickStartHandle:{nodeId:m,type:e,id:g}});return}const pe=Bj(j.target),X=n||J,{connection:te,isValid:ie}=Sx.isValid(j.nativeEvent,{handle:{nodeId:m,id:g,type:e},connectionMode:Z,fromNodeId:D.nodeId,fromHandleId:D.id||null,fromType:D.type,isValidConnection:X,flowId:se,doc:pe,lib:H,nodeLookup:we});ie&&te&&I(te);const he=structuredClone(xe);delete he.inProgress,he.toPosition=he.toHandle?he.toHandle.position:null,V==null||V(j,he),x.setState({connectionClickStartHandle:null})};return d.jsx("div",{"data-handleid":g,"data-nodeid":m,"data-handlepos":t,"data-id":`${S}-${m}-${g}-${e}`,className:wn(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",b,u,{source:!y,target:y,connectable:r,connectablestart:a,connectableend:i,clickconnecting:R,connectingfrom:C,connectingto:k,valid:L,connectionindicator:r&&(!N||O)&&(N||_?i:a)}]),onMouseDown:P,onTouchStart:P,onClick:v?M:void 0,ref:h,...f,children:l})}const cp=w.memo(mF(Axe));function _xe({data:e,isConnectable:t,sourcePosition:n=Me.Bottom}){return d.jsxs(d.Fragment,{children:[e==null?void 0:e.label,d.jsx(cp,{type:"source",position:n,isConnectable:t})]})}function Rxe({data:e,isConnectable:t,targetPosition:n=Me.Top,sourcePosition:r=Me.Bottom}){return d.jsxs(d.Fragment,{children:[d.jsx(cp,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,d.jsx(cp,{type:"source",position:r,isConnectable:t})]})}function Nxe(){return null}function Ixe({data:e,isConnectable:t,targetPosition:n=Me.Top}){return d.jsxs(d.Fragment,{children:[d.jsx(cp,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const u0={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},JR={input:_xe,default:Rxe,output:Ixe,group:Nxe};function Oxe(e){var t,n,r,a;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((a=e.style)==null?void 0:a.height)}}const Dxe=e=>{const{width:t,height:n,x:r,y:a}=tf(e.nodeLookup,{filter:i=>!!i.selected});return{width:Ia(t)?t:null,height:Ia(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${a}px)`}};function Lxe({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Zt(),{width:a,height:i,transformString:o,userSelectionActive:s}=ct(Dxe,Xt),l=vF(),u=w.useRef(null);w.useEffect(()=>{var h;n||(h=u.current)==null||h.focus({preventScroll:!0})},[n]);const c=!s&&a!==null&&i!==null;if(yF({nodeRef:u,disabled:!c}),!c)return null;const p=e?h=>{const g=r.getState().nodes.filter(y=>y.selected);e(h,g)}:void 0,f=h=>{Object.prototype.hasOwnProperty.call(u0,h.key)&&(h.preventDefault(),l({direction:u0[h.key],factor:h.shiftKey?4:1}))};return d.jsx("div",{className:wn(["react-flow__nodesselection","react-flow__container",t]),style:{transform:o},children:d.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:n?void 0:-1,onKeyDown:n?void 0:f,style:{width:a,height:i}})})}const eN=typeof window<"u"?window:void 0,Mxe=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function SF({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:o,paneClickDistance:s,deleteKeyCode:l,selectionKeyCode:u,selectionOnDrag:c,selectionMode:p,onSelectionStart:f,onSelectionEnd:h,multiSelectionKeyCode:g,panActivationKeyCode:y,zoomActivationKeyCode:x,elementsSelectable:m,zoomOnScroll:v,zoomOnPinch:b,panOnScroll:S,panOnScrollSpeed:C,panOnScrollMode:k,zoomOnDoubleClick:R,panOnDrag:O,defaultViewport:N,translateExtent:_,minZoom:L,maxZoom:I,preventScrolling:P,onSelectionContextMenu:M,noWheelClassName:F,noPanClassName:A,disableKeyboardA11y:j,onViewportChange:B,isControlledViewport:V}){const{nodesSelectionActive:D,userSelectionActive:Z}=ct(Mxe,Xt),J=up(u,{target:eN}),H=up(y,{target:eN}),se=H||O,we=H||S,xe=c&&se!==!0,pe=J||Z||xe;return gxe({deleteKeyCode:l,multiSelectionKeyCode:g}),d.jsx(yxe,{onPaneContextMenu:i,elementsSelectable:m,zoomOnScroll:v,zoomOnPinch:b,panOnScroll:we,panOnScrollSpeed:C,panOnScrollMode:k,zoomOnDoubleClick:R,panOnDrag:!J&&se,defaultViewport:N,translateExtent:_,minZoom:L,maxZoom:I,zoomActivationKeyCode:x,preventScrolling:P,noWheelClassName:F,noPanClassName:A,onViewportChange:B,isControlledViewport:V,paneClickDistance:s,selectionOnDrag:xe,children:d.jsxs(wxe,{onSelectionStart:f,onSelectionEnd:h,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:o,panOnDrag:se,isSelecting:!!pe,selectionMode:p,selectionKeyPressed:J,paneClickDistance:s,selectionOnDrag:xe,children:[e,D&&d.jsx(Lxe,{onSelectionContextMenu:M,noPanClassName:A,disableKeyboardA11y:j})]})})}SF.displayName="FlowRenderer";const zxe=w.memo(SF),Pxe=e=>t=>e?wC(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function jxe(e){return ct(w.useCallback(Pxe(e),[e]),Xt)}const Fxe=e=>e.updateNodeInternals;function Bxe(){const e=ct(Fxe),[t]=w.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");r.set(i,{id:i,nodeElement:a.target,force:!0})}),e(r)}));return w.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function Uxe({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const a=Zt(),i=w.useRef(null),o=w.useRef(null),s=w.useRef(e.sourcePosition),l=w.useRef(e.targetPosition),u=w.useRef(t),c=n&&!!e.internals.handleBounds;return w.useEffect(()=>{i.current&&!e.hidden&&(!c||o.current!==i.current)&&(o.current&&(r==null||r.unobserve(o.current)),r==null||r.observe(i.current),o.current=i.current)},[c,e.hidden]),w.useEffect(()=>()=>{o.current&&(r==null||r.unobserve(o.current),o.current=null)},[]),w.useEffect(()=>{if(i.current){const p=u.current!==t,f=s.current!==e.sourcePosition,h=l.current!==e.targetPosition;(p||f||h)&&(u.current=t,s.current=e.sourcePosition,l.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),i}function $xe({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:a,onContextMenu:i,onDoubleClick:o,nodesDraggable:s,elementsSelectable:l,nodesConnectable:u,nodesFocusable:c,resizeObserver:p,noDragClassName:f,noPanClassName:h,disableKeyboardA11y:g,rfId:y,nodeTypes:x,nodeClickDistance:m,onError:v}){const{node:b,internals:S,isParent:C}=ct(X=>{const te=X.nodeLookup.get(e),ie=X.parentLookup.has(e);return{node:te,internals:te.internals,isParent:ie}},Xt);let k=b.type||"default",R=(x==null?void 0:x[k])||JR[k];R===void 0&&(v==null||v("003",ui.error003(k)),k="default",R=(x==null?void 0:x.default)||JR.default);const O=!!(b.draggable||s&&typeof b.draggable>"u"),N=!!(b.selectable||l&&typeof b.selectable>"u"),_=!!(b.connectable||u&&typeof b.connectable>"u"),L=!!(b.focusable||c&&typeof b.focusable>"u"),I=Zt(),P=jj(b),M=Uxe({node:b,nodeType:k,hasDimensions:P,resizeObserver:p}),F=yF({nodeRef:M,disabled:b.hidden||!O,noDragClassName:f,handleSelector:b.dragHandle,nodeId:e,isSelectable:N,nodeClickDistance:m}),A=vF();if(b.hidden)return null;const j=so(b),B=Oxe(b),V=N||O||t||n||r||a,D=n?X=>n(X,{...S.userNode}):void 0,Z=r?X=>r(X,{...S.userNode}):void 0,J=a?X=>a(X,{...S.userNode}):void 0,H=i?X=>i(X,{...S.userNode}):void 0,se=o?X=>o(X,{...S.userNode}):void 0,we=X=>{const{selectNodesOnDrag:te,nodeDragThreshold:ie}=I.getState();N&&(!te||!O||ie>0)&&Ex({id:e,store:I,nodeRef:M}),t&&t(X,{...S.userNode})},xe=X=>{if(!(Uj(X.nativeEvent)||g)){if(Rj.includes(X.key)&&N){const te=X.key==="Escape";Ex({id:e,store:I,unselect:te,nodeRef:M})}else if(O&&b.selected&&Object.prototype.hasOwnProperty.call(u0,X.key)){X.preventDefault();const{ariaLabelConfig:te}=I.getState();I.setState({ariaLiveMessage:te["node.a11yDescription.ariaLiveMessage"]({direction:X.key.replace("Arrow","").toLowerCase(),x:~~S.positionAbsolute.x,y:~~S.positionAbsolute.y})}),A({direction:u0[X.key],factor:X.shiftKey?4:1})}}},pe=()=>{var Re;if(g||!((Re=M.current)!=null&&Re.matches(":focus-visible")))return;const{transform:X,width:te,height:ie,autoPanOnNodeFocus:he,setCenter:le}=I.getState();if(!he)return;wC(new Map([[e,b]]),{x:0,y:0,width:te,height:ie},X,!0).length>0||le(b.position.x+j.width/2,b.position.y+j.height/2,{zoom:X[2]})};return d.jsx("div",{className:wn(["react-flow__node",`react-flow__node-${k}`,{[h]:O},b.className,{selected:b.selected,selectable:N,parent:C,draggable:O,dragging:F}]),ref:M,style:{zIndex:S.z,transform:`translate(${S.positionAbsolute.x}px,${S.positionAbsolute.y}px)`,pointerEvents:V?"all":"none",visibility:P?"visible":"hidden",...b.style,...B},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:D,onMouseMove:Z,onMouseLeave:J,onContextMenu:H,onClick:we,onDoubleClick:se,onKeyDown:L?xe:void 0,tabIndex:L?0:void 0,onFocus:L?pe:void 0,role:b.ariaRole??(L?"group":void 0),"aria-roledescription":"node","aria-describedby":g?void 0:`${cF}-${y}`,"aria-label":b.ariaLabel,...b.domAttributes,children:d.jsx(kxe,{value:e,children:d.jsx(R,{id:e,data:b.data,type:k,positionAbsoluteX:S.positionAbsolute.x,positionAbsoluteY:S.positionAbsolute.y,selected:b.selected??!1,selectable:N,draggable:O,deletable:b.deletable??!0,isConnectable:_,sourcePosition:b.sourcePosition,targetPosition:b.targetPosition,dragging:F,dragHandle:b.dragHandle,zIndex:S.z,parentId:b.parentId,...j})})})}var Hxe=w.memo($xe);const Vxe=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function wF(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:a,onError:i}=ct(Vxe,Xt),o=jxe(e.onlyRenderVisibleElements),s=Bxe();return d.jsx("div",{className:"react-flow__nodes",style:Jm,children:o.map(l=>d.jsx(Hxe,{id:l,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},l))})}wF.displayName="NodeRenderer";const Gxe=w.memo(wF);function Wxe(e){return ct(w.useCallback(n=>{if(!e)return n.edges.map(a=>a.id);const r=[];if(n.width&&n.height)for(const a of n.edges){const i=n.nodeLookup.get(a.source),o=n.nodeLookup.get(a.target);i&&o&&O1e({sourceNode:i,targetNode:o,width:n.width,height:n.height,transform:n.transform})&&r.push(a.id)}return r},[e]),Xt)}const qxe=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return d.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},Yxe=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return d.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},tN={[o0.Arrow]:qxe,[o0.ArrowClosed]:Yxe};function Xxe(e){const t=Zt();return w.useMemo(()=>{var a,i;return Object.prototype.hasOwnProperty.call(tN,e)?tN[e]:((i=(a=t.getState()).onError)==null||i.call(a,"009",ui.error009(e)),null)},[e])}const Kxe=({id:e,type:t,color:n,width:r=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:o,orient:s="auto-start-reverse"})=>{const l=Xxe(t);return l?d.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:d.jsx(l,{color:n,strokeWidth:o})}):null},EF=({defaultColor:e,rfId:t})=>{const n=ct(i=>i.edges),r=ct(i=>i.defaultEdgeOptions),a=w.useMemo(()=>F1e(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return a.length?d.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:d.jsx("defs",{children:a.map(i=>d.jsx(Kxe,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};EF.displayName="MarkerDefinitions";var Zxe=w.memo(EF);function kF({x:e,y:t,label:n,labelStyle:r,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:l,className:u,...c}){const[p,f]=w.useState({x:1,y:0,width:0,height:0}),h=wn(["react-flow__edge-textwrapper",u]),g=w.useRef(null);return w.useEffect(()=>{if(g.current){const y=g.current.getBBox();f({x:y.x,y:y.y,width:y.width,height:y.height})}},[n]),n?d.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:h,visibility:p.width?"visible":"hidden",...c,children:[a&&d.jsx("rect",{width:p.width+2*o[0],x:-o[0],y:-o[1],height:p.height+2*o[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),d.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:g,style:r,children:n}),l]}):null}kF.displayName="EdgeText";const Qxe=w.memo(kF);function Xs({path:e,labelX:t,labelY:n,label:r,labelStyle:a,labelShowBg:i,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:l,interactionWidth:u=20,...c}){return d.jsxs(d.Fragment,{children:[d.jsx("path",{...c,d:e,fill:"none",className:wn(["react-flow__edge-path",c.className])}),u?d.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}):null,r&&Ia(t)&&Ia(n)?d.jsx(Qxe,{x:t,y:n,label:r,labelStyle:a,labelShowBg:i,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:l}):null]})}function nN({pos:e,x1:t,y1:n,x2:r,y2:a}){return e===Me.Left||e===Me.Right?[.5*(t+r),n]:[t,.5*(n+a)]}function TF({sourceX:e,sourceY:t,sourcePosition:n=Me.Bottom,targetX:r,targetY:a,targetPosition:i=Me.Top}){const[o,s]=nN({pos:n,x1:e,y1:t,x2:r,y2:a}),[l,u]=nN({pos:i,x1:r,y1:a,x2:e,y2:t}),[c,p,f,h]=Hj({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:o,sourceControlY:s,targetControlX:l,targetControlY:u});return[`M${e},${t} C${o},${s} ${l},${u} ${r},${a}`,c,p,f,h]}function CF(e){return w.memo(({id:t,sourceX:n,sourceY:r,targetX:a,targetY:i,sourcePosition:o,targetPosition:s,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:x,interactionWidth:m})=>{const[v,b,S]=TF({sourceX:n,sourceY:r,sourcePosition:o,targetX:a,targetY:i,targetPosition:s}),C=e.isInternal?void 0:t;return d.jsx(Xs,{id:C,path:v,labelX:b,labelY:S,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:x,interactionWidth:m})})}const Jxe=CF({isInternal:!1}),AF=CF({isInternal:!0});Jxe.displayName="SimpleBezierEdge";AF.displayName="SimpleBezierEdgeInternal";function _F(e){return w.memo(({id:t,sourceX:n,sourceY:r,targetX:a,targetY:i,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:p,style:f,sourcePosition:h=Me.Bottom,targetPosition:g=Me.Top,markerEnd:y,markerStart:x,pathOptions:m,interactionWidth:v})=>{const[b,S,C]=yx({sourceX:n,sourceY:r,sourcePosition:h,targetX:a,targetY:i,targetPosition:g,borderRadius:m==null?void 0:m.borderRadius,offset:m==null?void 0:m.offset,stepPosition:m==null?void 0:m.stepPosition}),k=e.isInternal?void 0:t;return d.jsx(Xs,{id:k,path:b,labelX:S,labelY:C,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:p,style:f,markerEnd:y,markerStart:x,interactionWidth:v})})}const RF=_F({isInternal:!1}),NF=_F({isInternal:!0});RF.displayName="SmoothStepEdge";NF.displayName="SmoothStepEdgeInternal";function IF(e){return w.memo(({id:t,...n})=>{var a;const r=e.isInternal?void 0:t;return d.jsx(RF,{...n,id:r,pathOptions:w.useMemo(()=>{var i;return{borderRadius:0,offset:(i=n.pathOptions)==null?void 0:i.offset}},[(a=n.pathOptions)==null?void 0:a.offset])})})}const eSe=IF({isInternal:!1}),OF=IF({isInternal:!0});eSe.displayName="StepEdge";OF.displayName="StepEdgeInternal";function DF(e){return w.memo(({id:t,sourceX:n,sourceY:r,targetX:a,targetY:i,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:p,style:f,markerEnd:h,markerStart:g,interactionWidth:y})=>{const[x,m,v]=Wj({sourceX:n,sourceY:r,targetX:a,targetY:i}),b=e.isInternal?void 0:t;return d.jsx(Xs,{id:b,path:x,labelX:m,labelY:v,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:p,style:f,markerEnd:h,markerStart:g,interactionWidth:y})})}const tSe=DF({isInternal:!1}),LF=DF({isInternal:!0});tSe.displayName="StraightEdge";LF.displayName="StraightEdgeInternal";function MF(e){return w.memo(({id:t,sourceX:n,sourceY:r,targetX:a,targetY:i,sourcePosition:o=Me.Bottom,targetPosition:s=Me.Top,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:x,pathOptions:m,interactionWidth:v})=>{const[b,S,C]=Xm({sourceX:n,sourceY:r,sourcePosition:o,targetX:a,targetY:i,targetPosition:s,curvature:m==null?void 0:m.curvature}),k=e.isInternal?void 0:t;return d.jsx(Xs,{id:k,path:b,labelX:S,labelY:C,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:x,interactionWidth:v})})}const nSe=MF({isInternal:!1}),zF=MF({isInternal:!0});nSe.displayName="BezierEdge";zF.displayName="BezierEdgeInternal";const rN={default:zF,straight:LF,step:OF,smoothstep:NF,simplebezier:AF},aN={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},rSe=(e,t,n)=>n===Me.Left?e-t:n===Me.Right?e+t:e,aSe=(e,t,n)=>n===Me.Top?e-t:n===Me.Bottom?e+t:e,iN="react-flow__edgeupdater";function oN({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:a,onMouseEnter:i,onMouseOut:o,type:s}){return d.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:o,className:wn([iN,`${iN}-${s}`]),cx:rSe(t,r,e),cy:aSe(n,r,e),r,stroke:"transparent",fill:"transparent"})}function iSe({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:a,targetX:i,targetY:o,sourcePosition:s,targetPosition:l,onReconnect:u,onReconnectStart:c,onReconnectEnd:p,setReconnecting:f,setUpdateHover:h}){const g=Zt(),y=(S,C)=>{if(S.button!==0)return;const{autoPanOnConnect:k,domNode:R,connectionMode:O,connectionRadius:N,lib:_,onConnectStart:L,cancelConnection:I,nodeLookup:P,rfId:M,panBy:F,updateConnection:A}=g.getState(),j=C.type==="target",B=(Z,J)=>{f(!1),p==null||p(Z,n,C.type,J)},V=Z=>u==null?void 0:u(n,Z),D=(Z,J)=>{f(!0),c==null||c(S,n,C.type),L==null||L(Z,J)};Sx.onPointerDown(S.nativeEvent,{autoPanOnConnect:k,connectionMode:O,connectionRadius:N,domNode:R,handleId:C.id,nodeId:C.nodeId,nodeLookup:P,isTarget:j,edgeUpdaterType:C.type,lib:_,flowId:M,cancelConnection:I,panBy:F,isValidConnection:(...Z)=>{var J,H;return((H=(J=g.getState()).isValidConnection)==null?void 0:H.call(J,...Z))??!0},onConnect:V,onConnectStart:D,onConnectEnd:(...Z)=>{var J,H;return(H=(J=g.getState()).onConnectEnd)==null?void 0:H.call(J,...Z)},onReconnectEnd:B,updateConnection:A,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,dragThreshold:g.getState().connectionDragThreshold,handleDomNode:S.currentTarget})},x=S=>y(S,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),m=S=>y(S,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),v=()=>h(!0),b=()=>h(!1);return d.jsxs(d.Fragment,{children:[(e===!0||e==="source")&&d.jsx(oN,{position:s,centerX:r,centerY:a,radius:t,onMouseDown:x,onMouseEnter:v,onMouseOut:b,type:"source"}),(e===!0||e==="target")&&d.jsx(oN,{position:l,centerX:i,centerY:o,radius:t,onMouseDown:m,onMouseEnter:v,onMouseOut:b,type:"target"})]})}function oSe({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:a,onDoubleClick:i,onContextMenu:o,onMouseEnter:s,onMouseMove:l,onMouseLeave:u,reconnectRadius:c,onReconnect:p,onReconnectStart:f,onReconnectEnd:h,rfId:g,edgeTypes:y,noPanClassName:x,onError:m,disableKeyboardA11y:v}){let b=ct(le=>le.edgeLookup.get(e));const S=ct(le=>le.defaultEdgeOptions);b=S?{...S,...b}:b;let C=b.type||"default",k=(y==null?void 0:y[C])||rN[C];k===void 0&&(m==null||m("011",ui.error011(C)),C="default",k=(y==null?void 0:y.default)||rN.default);const R=!!(b.focusable||t&&typeof b.focusable>"u"),O=typeof p<"u"&&(b.reconnectable||n&&typeof b.reconnectable>"u"),N=!!(b.selectable||r&&typeof b.selectable>"u"),_=w.useRef(null),[L,I]=w.useState(!1),[P,M]=w.useState(!1),F=Zt(),{zIndex:A,sourceX:j,sourceY:B,targetX:V,targetY:D,sourcePosition:Z,targetPosition:J}=ct(w.useCallback(le=>{const ce=le.nodeLookup.get(b.source),Re=le.nodeLookup.get(b.target);if(!ce||!Re)return{zIndex:b.zIndex,...aN};const Be=j1e({id:e,sourceNode:ce,targetNode:Re,sourceHandle:b.sourceHandle||null,targetHandle:b.targetHandle||null,connectionMode:le.connectionMode,onError:m});return{zIndex:I1e({selected:b.selected,zIndex:b.zIndex,sourceNode:ce,targetNode:Re,elevateOnSelect:le.elevateEdgesOnSelect,zIndexMode:le.zIndexMode}),...Be||aN}},[b.source,b.target,b.sourceHandle,b.targetHandle,b.selected,b.zIndex]),Xt),H=w.useMemo(()=>b.markerStart?`url('#${vx(b.markerStart,g)}')`:void 0,[b.markerStart,g]),se=w.useMemo(()=>b.markerEnd?`url('#${vx(b.markerEnd,g)}')`:void 0,[b.markerEnd,g]);if(b.hidden||j===null||B===null||V===null||D===null)return null;const we=le=>{var De;const{addSelectedEdges:ce,unselectNodesAndEdges:Re,multiSelectionActive:Be}=F.getState();N&&(F.setState({nodesSelectionActive:!1}),b.selected&&Be?(Re({nodes:[],edges:[b]}),(De=_.current)==null||De.blur()):ce([e])),a&&a(le,b)},xe=i?le=>{i(le,{...b})}:void 0,pe=o?le=>{o(le,{...b})}:void 0,X=s?le=>{s(le,{...b})}:void 0,te=l?le=>{l(le,{...b})}:void 0,ie=u?le=>{u(le,{...b})}:void 0,he=le=>{var ce;if(!v&&Rj.includes(le.key)&&N){const{unselectNodesAndEdges:Re,addSelectedEdges:Be}=F.getState();le.key==="Escape"?((ce=_.current)==null||ce.blur(),Re({edges:[b]})):Be([e])}};return d.jsx("svg",{style:{zIndex:A},children:d.jsxs("g",{className:wn(["react-flow__edge",`react-flow__edge-${C}`,b.className,x,{selected:b.selected,animated:b.animated,inactive:!N&&!a,updating:L,selectable:N}]),onClick:we,onDoubleClick:xe,onContextMenu:pe,onMouseEnter:X,onMouseMove:te,onMouseLeave:ie,onKeyDown:R?he:void 0,tabIndex:R?0:void 0,role:b.ariaRole??(R?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":b.ariaLabel===null?void 0:b.ariaLabel||`Edge from ${b.source} to ${b.target}`,"aria-describedby":R?`${dF}-${g}`:void 0,ref:_,...b.domAttributes,children:[!P&&d.jsx(k,{id:e,source:b.source,target:b.target,type:b.type,selected:b.selected,animated:b.animated,selectable:N,deletable:b.deletable??!0,label:b.label,labelStyle:b.labelStyle,labelShowBg:b.labelShowBg,labelBgStyle:b.labelBgStyle,labelBgPadding:b.labelBgPadding,labelBgBorderRadius:b.labelBgBorderRadius,sourceX:j,sourceY:B,targetX:V,targetY:D,sourcePosition:Z,targetPosition:J,data:b.data,style:b.style,sourceHandleId:b.sourceHandle,targetHandleId:b.targetHandle,markerStart:H,markerEnd:se,pathOptions:"pathOptions"in b?b.pathOptions:void 0,interactionWidth:b.interactionWidth}),O&&d.jsx(iSe,{edge:b,isReconnectable:O,reconnectRadius:c,onReconnect:p,onReconnectStart:f,onReconnectEnd:h,sourceX:j,sourceY:B,targetX:V,targetY:D,sourcePosition:Z,targetPosition:J,setUpdateHover:I,setReconnecting:M})]})})}var sSe=w.memo(oSe);const lSe=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function PF({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:a,onReconnect:i,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:l,onEdgeMouseLeave:u,onEdgeClick:c,reconnectRadius:p,onEdgeDoubleClick:f,onReconnectStart:h,onReconnectEnd:g,disableKeyboardA11y:y}){const{edgesFocusable:x,edgesReconnectable:m,elementsSelectable:v,onError:b}=ct(lSe,Xt),S=Wxe(t);return d.jsxs("div",{className:"react-flow__edges",children:[d.jsx(Zxe,{defaultColor:e,rfId:n}),S.map(C=>d.jsx(sSe,{id:C,edgesFocusable:x,edgesReconnectable:m,elementsSelectable:v,noPanClassName:a,onReconnect:i,onContextMenu:o,onMouseEnter:s,onMouseMove:l,onMouseLeave:u,onClick:c,reconnectRadius:p,onDoubleClick:f,onReconnectStart:h,onReconnectEnd:g,rfId:n,onError:b,edgeTypes:r,disableKeyboardA11y:y},C))]})}PF.displayName="EdgeRenderer";const uSe=w.memo(PF),cSe=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function dSe({children:e}){const t=ct(cSe);return d.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function pSe(e){const t=NC(),n=w.useRef(!1);w.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const fSe=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function hSe(e){const t=ct(fSe),n=Zt();return w.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function gSe(e){return e.connection.inProgress?{...e.connection,to:rf(e.connection.to,e.transform)}:{...e.connection}}function mSe(e){return gSe}function bSe(e){const t=mSe();return ct(t,Xt)}const ySe=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function vSe({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:a,width:i,height:o,isValid:s,inProgress:l}=ct(ySe,Xt);return!(i&&a&&l)?null:d.jsx("svg",{style:e,width:i,height:o,className:"react-flow__connectionline react-flow__container",children:d.jsx("g",{className:wn(["react-flow__connection",Oj(s)]),children:d.jsx(jF,{style:t,type:n,CustomComponent:r,isValid:s})})})}const jF=({style:e,type:t=Co.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:a,from:i,fromNode:o,fromHandle:s,fromPosition:l,to:u,toNode:c,toHandle:p,toPosition:f,pointer:h}=bSe();if(!a)return;if(n)return d.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:o,fromHandle:s,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:l,toPosition:f,connectionStatus:Oj(r),toNode:c,toHandle:p,pointer:h});let g="";const y={sourceX:i.x,sourceY:i.y,sourcePosition:l,targetX:u.x,targetY:u.y,targetPosition:f};switch(t){case Co.Bezier:[g]=Xm(y);break;case Co.SimpleBezier:[g]=TF(y);break;case Co.Step:[g]=yx({...y,borderRadius:0});break;case Co.SmoothStep:[g]=yx(y);break;default:[g]=Wj(y)}return d.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};jF.displayName="ConnectionLine";const xSe={};function sN(e=xSe){w.useRef(e),Zt(),w.useEffect(()=>{},[e])}function SSe(){Zt(),w.useRef(!1),w.useEffect(()=>{},[])}function FF({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:o,onNodeMouseEnter:s,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:c,onSelectionContextMenu:p,onSelectionStart:f,onSelectionEnd:h,connectionLineType:g,connectionLineStyle:y,connectionLineComponent:x,connectionLineContainerStyle:m,selectionKeyCode:v,selectionOnDrag:b,selectionMode:S,multiSelectionKeyCode:C,panActivationKeyCode:k,zoomActivationKeyCode:R,deleteKeyCode:O,onlyRenderVisibleElements:N,elementsSelectable:_,defaultViewport:L,translateExtent:I,minZoom:P,maxZoom:M,preventScrolling:F,defaultMarkerColor:A,zoomOnScroll:j,zoomOnPinch:B,panOnScroll:V,panOnScrollSpeed:D,panOnScrollMode:Z,zoomOnDoubleClick:J,panOnDrag:H,onPaneClick:se,onPaneMouseEnter:we,onPaneMouseMove:xe,onPaneMouseLeave:pe,onPaneScroll:X,onPaneContextMenu:te,paneClickDistance:ie,nodeClickDistance:he,onEdgeContextMenu:le,onEdgeMouseEnter:ce,onEdgeMouseMove:Re,onEdgeMouseLeave:Be,reconnectRadius:De,onReconnect:Ke,onReconnectStart:Rt,onReconnectEnd:Nt,noDragClassName:It,noWheelClassName:zn,noPanClassName:En,disableKeyboardA11y:ln,nodeExtent:kn,rfId:Tn,viewport:re,onViewportChange:me}){return sN(e),sN(t),SSe(),pSe(n),hSe(re),d.jsx(zxe,{onPaneClick:se,onPaneMouseEnter:we,onPaneMouseMove:xe,onPaneMouseLeave:pe,onPaneContextMenu:te,onPaneScroll:X,paneClickDistance:ie,deleteKeyCode:O,selectionKeyCode:v,selectionOnDrag:b,selectionMode:S,onSelectionStart:f,onSelectionEnd:h,multiSelectionKeyCode:C,panActivationKeyCode:k,zoomActivationKeyCode:R,elementsSelectable:_,zoomOnScroll:j,zoomOnPinch:B,zoomOnDoubleClick:J,panOnScroll:V,panOnScrollSpeed:D,panOnScrollMode:Z,panOnDrag:H,defaultViewport:L,translateExtent:I,minZoom:P,maxZoom:M,onSelectionContextMenu:p,preventScrolling:F,noDragClassName:It,noWheelClassName:zn,noPanClassName:En,disableKeyboardA11y:ln,onViewportChange:me,isControlledViewport:!!re,children:d.jsxs(dSe,{children:[d.jsx(uSe,{edgeTypes:t,onEdgeClick:a,onEdgeDoubleClick:o,onReconnect:Ke,onReconnectStart:Rt,onReconnectEnd:Nt,onlyRenderVisibleElements:N,onEdgeContextMenu:le,onEdgeMouseEnter:ce,onEdgeMouseMove:Re,onEdgeMouseLeave:Be,reconnectRadius:De,defaultMarkerColor:A,noPanClassName:En,disableKeyboardA11y:ln,rfId:Tn}),d.jsx(vSe,{style:y,type:g,component:x,containerStyle:m}),d.jsx("div",{className:"react-flow__edgelabel-renderer"}),d.jsx(Gxe,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:c,nodeClickDistance:he,onlyRenderVisibleElements:N,noPanClassName:En,noDragClassName:It,disableKeyboardA11y:ln,nodeExtent:kn,rfId:Tn}),d.jsx("div",{className:"react-flow__viewport-portal"})]})})}FF.displayName="GraphView";const wSe=w.memo(FF),lN=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:a,height:i,fitView:o,fitViewOptions:s,minZoom:l=.5,maxZoom:u=2,nodeOrigin:c,nodeExtent:p,zIndexMode:f="basic"}={})=>{const h=new Map,g=new Map,y=new Map,x=new Map,m=r??t??[],v=n??e??[],b=c??[0,0],S=p??ip;Xj(y,x,m);const{nodesInitialized:C}=xx(v,h,g,{nodeOrigin:b,nodeExtent:S,zIndexMode:f});let k=[0,0,1];if(o&&a&&i){const R=tf(h,{filter:L=>!!((L.width||L.initialWidth)&&(L.height||L.initialHeight))}),{x:O,y:N,zoom:_}=EC(R,a,i,l,u,(s==null?void 0:s.padding)??.1);k=[O,N,_]}return{rfId:"1",width:a??0,height:i??0,transform:k,nodes:v,nodesInitialized:C,nodeLookup:h,parentLookup:g,edges:m,edgeLookup:x,connectionLookup:y,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:l,maxZoom:u,translateExtent:ip,nodeExtent:S,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Lu.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:b,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:o??!1,fitViewOptions:s,fitViewResolver:null,connection:{...Ij},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:T1e,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:Nj,zIndexMode:f,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},ESe=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:a,height:i,fitView:o,fitViewOptions:s,minZoom:l,maxZoom:u,nodeOrigin:c,nodeExtent:p,zIndexMode:f})=>$ve((h,g)=>{async function y(){const{nodeLookup:x,panZoom:m,fitViewOptions:v,fitViewResolver:b,width:S,height:C,minZoom:k,maxZoom:R}=g();m&&(await E1e({nodes:x,width:S,height:C,panZoom:m,minZoom:k,maxZoom:R},v),b==null||b.resolve(!0),h({fitViewResolver:null}))}return{...lN({nodes:e,edges:t,width:a,height:i,fitView:o,fitViewOptions:s,minZoom:l,maxZoom:u,nodeOrigin:c,nodeExtent:p,defaultNodes:n,defaultEdges:r,zIndexMode:f}),setNodes:x=>{const{nodeLookup:m,parentLookup:v,nodeOrigin:b,elevateNodesOnSelect:S,fitViewQueued:C,zIndexMode:k,nodesSelectionActive:R}=g(),{nodesInitialized:O,hasSelectedNodes:N}=xx(x,m,v,{nodeOrigin:b,nodeExtent:p,elevateNodesOnSelect:S,checkEquality:!0,zIndexMode:k}),_=R&&N;C&&O?(y(),h({nodes:x,nodesInitialized:O,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:_})):h({nodes:x,nodesInitialized:O,nodesSelectionActive:_})},setEdges:x=>{const{connectionLookup:m,edgeLookup:v}=g();Xj(m,v,x),h({edges:x})},setDefaultNodesAndEdges:(x,m)=>{if(x){const{setNodes:v}=g();v(x),h({hasDefaultNodes:!0})}if(m){const{setEdges:v}=g();v(m),h({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:m,nodeLookup:v,parentLookup:b,domNode:S,nodeOrigin:C,nodeExtent:k,debug:R,fitViewQueued:O,zIndexMode:N}=g(),{changes:_,updatedInternals:L}=W1e(x,v,b,S,C,k,N);L&&($1e(v,b,{nodeOrigin:C,nodeExtent:k,zIndexMode:N}),O?(y(),h({fitViewQueued:!1,fitViewOptions:void 0})):h({}),(_==null?void 0:_.length)>0&&(R&&console.log("React Flow: trigger node changes",_),m==null||m(_)))},updateNodePositions:(x,m=!1)=>{const v=[];let b=[];const{nodeLookup:S,triggerNodeChanges:C,connection:k,updateConnection:R,onNodesChangeMiddlewareMap:O}=g();for(const[N,_]of x){const L=S.get(N),I=!!(L!=null&&L.expandParent&&(L!=null&&L.parentId)&&(_!=null&&_.position)),P={id:N,type:"position",position:I?{x:Math.max(0,_.position.x),y:Math.max(0,_.position.y)}:_.position,dragging:m};if(L&&k.inProgress&&k.fromNode.id===L.id){const M=Ys(L,k.fromHandle,Me.Left,!0);R({...k,from:M})}I&&L.parentId&&v.push({id:N,parentId:L.parentId,rect:{..._.internals.positionAbsolute,width:_.measured.width??0,height:_.measured.height??0}}),b.push(P)}if(v.length>0){const{parentLookup:N,nodeOrigin:_}=g(),L=RC(v,S,N,_);b.push(...L)}for(const N of O.values())b=N(b);C(b)},triggerNodeChanges:x=>{const{onNodesChange:m,setNodes:v,nodes:b,hasDefaultNodes:S,debug:C}=g();if(x!=null&&x.length){if(S){const k=hF(x,b);v(k)}C&&console.log("React Flow: trigger node changes",x),m==null||m(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:m,setEdges:v,edges:b,hasDefaultEdges:S,debug:C}=g();if(x!=null&&x.length){if(S){const k=gF(x,b);v(k)}C&&console.log("React Flow: trigger edge changes",x),m==null||m(x)}},addSelectedNodes:x=>{const{multiSelectionActive:m,edgeLookup:v,nodeLookup:b,triggerNodeChanges:S,triggerEdgeChanges:C}=g();if(m){const k=x.map(R=>ws(R,!0));S(k);return}S(Yl(b,new Set([...x]),!0)),C(Yl(v))},addSelectedEdges:x=>{const{multiSelectionActive:m,edgeLookup:v,nodeLookup:b,triggerNodeChanges:S,triggerEdgeChanges:C}=g();if(m){const k=x.map(R=>ws(R,!0));C(k);return}C(Yl(v,new Set([...x]))),S(Yl(b,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:m}={})=>{const{edges:v,nodes:b,nodeLookup:S,triggerNodeChanges:C,triggerEdgeChanges:k}=g(),R=x||b,O=m||v,N=[];for(const L of R){if(!L.selected)continue;const I=S.get(L.id);I&&(I.selected=!1),N.push(ws(L.id,!1))}const _=[];for(const L of O)L.selected&&_.push(ws(L.id,!1));C(N),k(_)},setMinZoom:x=>{const{panZoom:m,maxZoom:v}=g();m==null||m.setScaleExtent([x,v]),h({minZoom:x})},setMaxZoom:x=>{const{panZoom:m,minZoom:v}=g();m==null||m.setScaleExtent([v,x]),h({maxZoom:x})},setTranslateExtent:x=>{var m;(m=g().panZoom)==null||m.setTranslateExtent(x),h({translateExtent:x})},resetSelectedElements:()=>{const{edges:x,nodes:m,triggerNodeChanges:v,triggerEdgeChanges:b,elementsSelectable:S}=g();if(!S)return;const C=m.reduce((R,O)=>O.selected?[...R,ws(O.id,!1)]:R,[]),k=x.reduce((R,O)=>O.selected?[...R,ws(O.id,!1)]:R,[]);v(C),b(k)},setNodeExtent:x=>{const{nodes:m,nodeLookup:v,parentLookup:b,nodeOrigin:S,elevateNodesOnSelect:C,nodeExtent:k,zIndexMode:R}=g();x[0][0]===k[0][0]&&x[0][1]===k[0][1]&&x[1][0]===k[1][0]&&x[1][1]===k[1][1]||(xx(m,v,b,{nodeOrigin:S,nodeExtent:x,elevateNodesOnSelect:C,checkEquality:!1,zIndexMode:R}),h({nodeExtent:x}))},panBy:x=>{const{transform:m,width:v,height:b,panZoom:S,translateExtent:C}=g();return q1e({delta:x,panZoom:S,transform:m,translateExtent:C,width:v,height:b})},setCenter:async(x,m,v)=>{const{width:b,height:S,maxZoom:C,panZoom:k}=g();if(!k)return Promise.resolve(!1);const R=typeof(v==null?void 0:v.zoom)<"u"?v.zoom:C;return await k.setViewport({x:b/2-x*R,y:S/2-m*R,zoom:R},{duration:v==null?void 0:v.duration,ease:v==null?void 0:v.ease,interpolate:v==null?void 0:v.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{h({connection:{...Ij}})},updateConnection:x=>{h({connection:x})},reset:()=>h({...lN()})}},Object.is);function kSe({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:a,initialHeight:i,initialMinZoom:o,initialMaxZoom:s,initialFitViewOptions:l,fitView:u,nodeOrigin:c,nodeExtent:p,zIndexMode:f,children:h}){const[g]=w.useState(()=>ESe({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:a,height:i,fitView:u,minZoom:o,maxZoom:s,fitViewOptions:l,nodeOrigin:c,nodeExtent:p,zIndexMode:f}));return d.jsx(Hve,{value:g,children:d.jsx(dxe,{children:h})})}function TSe({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:a,width:i,height:o,fitView:s,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:p,nodeExtent:f,zIndexMode:h}){return w.useContext(Qm)?d.jsx(d.Fragment,{children:e}):d.jsx(kSe,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:a,initialWidth:i,initialHeight:o,fitView:s,initialFitViewOptions:l,initialMinZoom:u,initialMaxZoom:c,nodeOrigin:p,nodeExtent:f,zIndexMode:h,children:e})}const CSe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function ASe({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:a,nodeTypes:i,edgeTypes:o,onNodeClick:s,onEdgeClick:l,onInit:u,onMove:c,onMoveStart:p,onMoveEnd:f,onConnect:h,onConnectStart:g,onConnectEnd:y,onClickConnectStart:x,onClickConnectEnd:m,onNodeMouseEnter:v,onNodeMouseMove:b,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:k,onNodeDragStart:R,onNodeDrag:O,onNodeDragStop:N,onNodesDelete:_,onEdgesDelete:L,onDelete:I,onSelectionChange:P,onSelectionDragStart:M,onSelectionDrag:F,onSelectionDragStop:A,onSelectionContextMenu:j,onSelectionStart:B,onSelectionEnd:V,onBeforeDelete:D,connectionMode:Z,connectionLineType:J=Co.Bezier,connectionLineStyle:H,connectionLineComponent:se,connectionLineContainerStyle:we,deleteKeyCode:xe="Backspace",selectionKeyCode:pe="Shift",selectionOnDrag:X=!1,selectionMode:te=op.Full,panActivationKeyCode:ie="Space",multiSelectionKeyCode:he=lp()?"Meta":"Control",zoomActivationKeyCode:le=lp()?"Meta":"Control",snapToGrid:ce,snapGrid:Re,onlyRenderVisibleElements:Be=!1,selectNodesOnDrag:De,nodesDraggable:Ke,autoPanOnNodeFocus:Rt,nodesConnectable:Nt,nodesFocusable:It,nodeOrigin:zn=pF,edgesFocusable:En,edgesReconnectable:ln,elementsSelectable:kn=!0,defaultViewport:Tn=nxe,minZoom:re=.5,maxZoom:me=2,translateExtent:Ie=ip,preventScrolling:je=!0,nodeExtent:Ye,defaultMarkerColor:Ct="#b1b1b7",zoomOnScroll:St=!0,zoomOnPinch:er=!0,panOnScroll:tr=!1,panOnScrollSpeed:Sr=.5,panOnScrollMode:un=Ms.Free,zoomOnDoubleClick:la=!0,panOnDrag:dr=!0,onPaneClick:Si,onPaneMouseEnter:ll,onPaneMouseMove:ul,onPaneMouseLeave:cl,onPaneScroll:wi,onPaneContextMenu:ss,paneClickDistance:ls=1,nodeClickDistance:ee=0,children:de,onReconnect:Te,onReconnectStart:Q,onReconnectEnd:ge,onEdgeContextMenu:Pe,onEdgeDoubleClick:Ee,onEdgeMouseEnter:ke,onEdgeMouseMove:Ae,onEdgeMouseLeave:Le,reconnectRadius:He=10,onNodesChange:pt,onEdgesChange:ft,noDragClassName:rn="nodrag",noWheelClassName:mc="nowheel",noPanClassName:wr="nopan",fitView:dl,fitViewOptions:lo,connectOnClick:WF,attributionPosition:qF,proOptions:YF,defaultEdgeOptions:XF,elevateNodesOnSelect:KF=!0,elevateEdgesOnSelect:ZF=!1,disableKeyboardA11y:DC=!1,autoPanOnConnect:QF,autoPanOnNodeDrag:JF,autoPanSpeed:eB,connectionRadius:tB,isValidConnection:nB,onError:rB,style:aB,id:LC,nodeDragThreshold:iB,connectionDragThreshold:oB,viewport:sB,onViewportChange:lB,width:uB,height:cB,colorMode:dB="light",debug:pB,onScroll:af,ariaLabelConfig:fB,zIndexMode:MC="basic",...hB},gB){const nb=LC||"1",mB=oxe(dB),bB=w.useCallback(zC=>{zC.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),af==null||af(zC)},[af]);return d.jsx("div",{"data-testid":"rf__wrapper",...hB,onScroll:bB,style:{...aB,...CSe},ref:gB,className:wn(["react-flow",a,mB]),id:LC,role:"application",children:d.jsxs(TSe,{nodes:e,edges:t,width:uB,height:cB,fitView:dl,fitViewOptions:lo,minZoom:re,maxZoom:me,nodeOrigin:zn,nodeExtent:Ye,zIndexMode:MC,children:[d.jsx(ixe,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:h,onConnectStart:g,onConnectEnd:y,onClickConnectStart:x,onClickConnectEnd:m,nodesDraggable:Ke,autoPanOnNodeFocus:Rt,nodesConnectable:Nt,nodesFocusable:It,edgesFocusable:En,edgesReconnectable:ln,elementsSelectable:kn,elevateNodesOnSelect:KF,elevateEdgesOnSelect:ZF,minZoom:re,maxZoom:me,nodeExtent:Ye,onNodesChange:pt,onEdgesChange:ft,snapToGrid:ce,snapGrid:Re,connectionMode:Z,translateExtent:Ie,connectOnClick:WF,defaultEdgeOptions:XF,fitView:dl,fitViewOptions:lo,onNodesDelete:_,onEdgesDelete:L,onDelete:I,onNodeDragStart:R,onNodeDrag:O,onNodeDragStop:N,onSelectionDrag:F,onSelectionDragStart:M,onSelectionDragStop:A,onMove:c,onMoveStart:p,onMoveEnd:f,noPanClassName:wr,nodeOrigin:zn,rfId:nb,autoPanOnConnect:QF,autoPanOnNodeDrag:JF,autoPanSpeed:eB,onError:rB,connectionRadius:tB,isValidConnection:nB,selectNodesOnDrag:De,nodeDragThreshold:iB,connectionDragThreshold:oB,onBeforeDelete:D,debug:pB,ariaLabelConfig:fB,zIndexMode:MC}),d.jsx(wSe,{onInit:u,onNodeClick:s,onEdgeClick:l,onNodeMouseEnter:v,onNodeMouseMove:b,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:k,nodeTypes:i,edgeTypes:o,connectionLineType:J,connectionLineStyle:H,connectionLineComponent:se,connectionLineContainerStyle:we,selectionKeyCode:pe,selectionOnDrag:X,selectionMode:te,deleteKeyCode:xe,multiSelectionKeyCode:he,panActivationKeyCode:ie,zoomActivationKeyCode:le,onlyRenderVisibleElements:Be,defaultViewport:Tn,translateExtent:Ie,minZoom:re,maxZoom:me,preventScrolling:je,zoomOnScroll:St,zoomOnPinch:er,zoomOnDoubleClick:la,panOnScroll:tr,panOnScrollSpeed:Sr,panOnScrollMode:un,panOnDrag:dr,onPaneClick:Si,onPaneMouseEnter:ll,onPaneMouseMove:ul,onPaneMouseLeave:cl,onPaneScroll:wi,onPaneContextMenu:ss,paneClickDistance:ls,nodeClickDistance:ee,onSelectionContextMenu:j,onSelectionStart:B,onSelectionEnd:V,onReconnect:Te,onReconnectStart:Q,onReconnectEnd:ge,onEdgeContextMenu:Pe,onEdgeDoubleClick:Ee,onEdgeMouseEnter:ke,onEdgeMouseMove:Ae,onEdgeMouseLeave:Le,reconnectRadius:He,defaultMarkerColor:Ct,noDragClassName:rn,noWheelClassName:mc,noPanClassName:wr,rfId:nb,disableKeyboardA11y:DC,nodeExtent:Ye,viewport:sB,onViewportChange:lB}),d.jsx(txe,{onSelectionChange:P}),de,d.jsx(Kve,{proOptions:YF,position:qF}),d.jsx(Xve,{rfId:nb,disableKeyboardA11y:DC})]})})}var _Se=mF(ASe);function RSe(e){const[t,n]=w.useState(e),r=w.useCallback(a=>n(i=>hF(a,i)),[]);return[t,n,r]}function NSe(e){const[t,n]=w.useState(e),r=w.useCallback(a=>n(i=>gF(a,i)),[]);return[t,n,r]}function ISe({dimensions:e,lineWidth:t,variant:n,className:r}){return d.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:wn(["react-flow__background-pattern",n,r])})}function OSe({radius:e,className:t}){return d.jsx("circle",{cx:e,cy:e,r:e,className:wn(["react-flow__background-pattern","dots",t])})}var Ho;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Ho||(Ho={}));const DSe={[Ho.Dots]:1,[Ho.Lines]:1,[Ho.Cross]:6},LSe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function BF({id:e,variant:t=Ho.Dots,gap:n=20,size:r,lineWidth:a=1,offset:i=0,color:o,bgColor:s,style:l,className:u,patternClassName:c}){const p=w.useRef(null),{transform:f,patternId:h}=ct(LSe,Xt),g=r||DSe[t],y=t===Ho.Dots,x=t===Ho.Cross,m=Array.isArray(n)?n:[n,n],v=[m[0]*f[2]||1,m[1]*f[2]||1],b=g*f[2],S=Array.isArray(i)?i:[i,i],C=x?[b,b]:v,k=[S[0]*f[2]||1+C[0]/2,S[1]*f[2]||1+C[1]/2],R=`${h}${e||""}`;return d.jsxs("svg",{className:wn(["react-flow__background",u]),style:{...l,...Jm,"--xy-background-color-props":s,"--xy-background-pattern-color-props":o},ref:p,"data-testid":"rf__background",children:[d.jsx("pattern",{id:R,x:f[0]%v[0],y:f[1]%v[1],width:v[0],height:v[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${k[0]},-${k[1]})`,children:y?d.jsx(OSe,{radius:b/2,className:c}):d.jsx(ISe,{dimensions:C,lineWidth:a,variant:t,className:c})}),d.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${R})`})]})}BF.displayName="Background";const MSe=w.memo(BF);function zSe(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:d.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function PSe(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:d.jsx("path",{d:"M0 0h32v4.2H0z"})})}function jSe(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:d.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function FSe(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:d.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function BSe(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:d.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function rh({children:e,className:t,...n}){return d.jsx("button",{type:"button",className:wn(["react-flow__controls-button",t]),...n,children:e})}const USe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function UF({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:o,onFitView:s,onInteractiveChange:l,className:u,children:c,position:p="bottom-left",orientation:f="vertical","aria-label":h}){const g=Zt(),{isInteractive:y,minZoomReached:x,maxZoomReached:m,ariaLabelConfig:v}=ct(USe,Xt),{zoomIn:b,zoomOut:S,fitView:C}=NC(),k=()=>{b(),i==null||i()},R=()=>{S(),o==null||o()},O=()=>{C(a),s==null||s()},N=()=>{g.setState({nodesDraggable:!y,nodesConnectable:!y,elementsSelectable:!y}),l==null||l(!y)},_=f==="horizontal"?"horizontal":"vertical";return d.jsxs(Bu,{className:wn(["react-flow__controls",_,u]),position:p,style:e,"data-testid":"rf__controls","aria-label":h??v["controls.ariaLabel"],children:[t&&d.jsxs(d.Fragment,{children:[d.jsx(rh,{onClick:k,className:"react-flow__controls-zoomin",title:v["controls.zoomIn.ariaLabel"],"aria-label":v["controls.zoomIn.ariaLabel"],disabled:m,children:d.jsx(zSe,{})}),d.jsx(rh,{onClick:R,className:"react-flow__controls-zoomout",title:v["controls.zoomOut.ariaLabel"],"aria-label":v["controls.zoomOut.ariaLabel"],disabled:x,children:d.jsx(PSe,{})})]}),n&&d.jsx(rh,{className:"react-flow__controls-fitview",onClick:O,title:v["controls.fitView.ariaLabel"],"aria-label":v["controls.fitView.ariaLabel"],children:d.jsx(jSe,{})}),r&&d.jsx(rh,{className:"react-flow__controls-interactive",onClick:N,title:v["controls.interactive.ariaLabel"],"aria-label":v["controls.interactive.ariaLabel"],children:y?d.jsx(BSe,{}):d.jsx(FSe,{})}),c]})}UF.displayName="Controls";const $Se=w.memo(UF);function HSe({id:e,x:t,y:n,width:r,height:a,style:i,color:o,strokeColor:s,strokeWidth:l,className:u,borderRadius:c,shapeRendering:p,selected:f,onClick:h}){const{background:g,backgroundColor:y}=i||{},x=o||g||y;return d.jsx("rect",{className:wn(["react-flow__minimap-node",{selected:f},u]),x:t,y:n,rx:c,ry:c,width:r,height:a,style:{fill:x,stroke:s,strokeWidth:l},shapeRendering:p,onClick:h?m=>h(m,e):void 0})}const VSe=w.memo(HSe),GSe=e=>e.nodes.map(t=>t.id),a1=e=>e instanceof Function?e:()=>e;function WSe({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:a,nodeComponent:i=VSe,onClick:o}){const s=ct(GSe,Xt),l=a1(t),u=a1(e),c=a1(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return d.jsx(d.Fragment,{children:s.map(f=>d.jsx(YSe,{id:f,nodeColorFunc:l,nodeStrokeColorFunc:u,nodeClassNameFunc:c,nodeBorderRadius:r,nodeStrokeWidth:a,NodeComponent:i,onClick:o,shapeRendering:p},f))})}function qSe({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:o,NodeComponent:s,onClick:l}){const{node:u,x:c,y:p,width:f,height:h}=ct(g=>{const y=g.nodeLookup.get(e);if(!y)return{node:void 0,x:0,y:0,width:0,height:0};const x=y.internals.userNode,{x:m,y:v}=y.internals.positionAbsolute,{width:b,height:S}=so(x);return{node:x,x:m,y:v,width:b,height:S}},Xt);return!u||u.hidden||!jj(u)?null:d.jsx(s,{x:c,y:p,width:f,height:h,style:u.style,selected:!!u.selected,className:r(u),color:t(u),borderRadius:a,strokeColor:n(u),strokeWidth:i,shapeRendering:o,onClick:l,id:u.id})}const YSe=w.memo(qSe);var XSe=w.memo(WSe);const KSe=200,ZSe=150,QSe=e=>!e.hidden,JSe=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?Pj(tf(e.nodeLookup,{filter:QSe}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},ewe="react-flow__minimap-desc";function $F({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:o,nodeComponent:s,bgColor:l,maskColor:u,maskStrokeColor:c,maskStrokeWidth:p,position:f="bottom-right",onClick:h,onNodeClick:g,pannable:y=!1,zoomable:x=!1,ariaLabel:m,inversePan:v,zoomStep:b=1,offsetScale:S=5}){const C=Zt(),k=w.useRef(null),{boundingRect:R,viewBB:O,rfId:N,panZoom:_,translateExtent:L,flowWidth:I,flowHeight:P,ariaLabelConfig:M}=ct(JSe,Xt),F=(e==null?void 0:e.width)??KSe,A=(e==null?void 0:e.height)??ZSe,j=R.width/F,B=R.height/A,V=Math.max(j,B),D=V*F,Z=V*A,J=S*V,H=R.x-(D-R.width)/2-J,se=R.y-(Z-R.height)/2-J,we=D+J*2,xe=Z+J*2,pe=`${ewe}-${N}`,X=w.useRef(0),te=w.useRef();X.current=V,w.useEffect(()=>{if(k.current&&_)return te.current=nve({domNode:k.current,panZoom:_,getTransform:()=>C.getState().transform,getViewScale:()=>X.current}),()=>{var ce;(ce=te.current)==null||ce.destroy()}},[_]),w.useEffect(()=>{var ce;(ce=te.current)==null||ce.update({translateExtent:L,width:I,height:P,inversePan:v,pannable:y,zoomStep:b,zoomable:x})},[y,x,v,b,L,I,P]);const ie=h?ce=>{var De;const[Re,Be]=((De=te.current)==null?void 0:De.pointer(ce))||[0,0];h(ce,{x:Re,y:Be})}:void 0,he=g?w.useCallback((ce,Re)=>{const Be=C.getState().nodeLookup.get(Re).internals.userNode;g(ce,Be)},[]):void 0,le=m??M["minimap.ariaLabel"];return d.jsx(Bu,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*V:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof o=="number"?o:void 0},className:wn(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:d.jsxs("svg",{width:F,height:A,viewBox:`${H} ${se} ${we} ${xe}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":pe,ref:k,onClick:ie,children:[le&&d.jsx("title",{id:pe,children:le}),d.jsx(XSe,{onClick:he,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:o,nodeComponent:s}),d.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-J},${se-J}h${we+J*2}v${xe+J*2}h${-we-J*2}z
        M${O.x},${O.y}h${O.width}v${O.height}h${-O.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}$F.displayName="MiniMap";const twe=w.memo($F),nwe=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,rwe={[ju.Line]:"right",[ju.Handle]:"bottom-right"};function awe({nodeId:e,position:t,variant:n=ju.Handle,className:r,style:a=void 0,children:i,color:o,minWidth:s=10,minHeight:l=10,maxWidth:u=Number.MAX_VALUE,maxHeight:c=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:f,autoScale:h=!0,shouldResize:g,onResizeStart:y,onResize:x,onResizeEnd:m}){const v=xF(),b=typeof e=="string"?e:v,S=Zt(),C=w.useRef(null),k=n===ju.Handle,R=ct(w.useCallback(nwe(k&&h),[k,h]),Xt),O=w.useRef(null),N=t??rwe[n];w.useEffect(()=>{if(!(!C.current||!b))return O.current||(O.current=mve({domNode:C.current,nodeId:b,getStoreItems:()=>{const{nodeLookup:L,transform:I,snapGrid:P,snapToGrid:M,nodeOrigin:F,domNode:A}=S.getState();return{nodeLookup:L,transform:I,snapGrid:P,snapToGrid:M,nodeOrigin:F,paneDomNode:A}},onChange:(L,I)=>{const{triggerNodeChanges:P,nodeLookup:M,parentLookup:F,nodeOrigin:A}=S.getState(),j=[],B={x:L.x,y:L.y},V=M.get(b);if(V&&V.expandParent&&V.parentId){const D=V.origin??A,Z=L.width??V.measured.width??0,J=L.height??V.measured.height??0,H={id:V.id,parentId:V.parentId,rect:{width:Z,height:J,...Fj({x:L.x??V.position.x,y:L.y??V.position.y},{width:Z,height:J},V.parentId,M,D)}},se=RC([H],M,F,A);j.push(...se),B.x=L.x?Math.max(D[0]*Z,L.x):void 0,B.y=L.y?Math.max(D[1]*J,L.y):void 0}if(B.x!==void 0&&B.y!==void 0){const D={id:b,type:"position",position:{...B}};j.push(D)}if(L.width!==void 0&&L.height!==void 0){const Z={id:b,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:L.width,height:L.height}};j.push(Z)}for(const D of I){const Z={...D,type:"position"};j.push(Z)}P(j)},onEnd:({width:L,height:I})=>{const P={id:b,type:"dimensions",resizing:!1,dimensions:{width:L,height:I}};S.getState().triggerNodeChanges([P])}})),O.current.update({controlPosition:N,boundaries:{minWidth:s,minHeight:l,maxWidth:u,maxHeight:c},keepAspectRatio:p,resizeDirection:f,onResizeStart:y,onResize:x,onResizeEnd:m,shouldResize:g}),()=>{var L;(L=O.current)==null||L.destroy()}},[N,s,l,u,c,p,y,x,m,g]);const _=N.split("-");return d.jsx("div",{className:wn(["react-flow__resize-control","nodrag",..._,n,r]),ref:C,style:{...a,scale:R,...o&&{[k?"backgroundColor":"borderColor"]:o}},children:i})}w.memo(awe);const ae={bg:"#1d1d1d",node:"#2d2d2d",border:"#444",text:"#ccc",muted:"#888",green:"#7fba55",amber:"#d4a44c",cyan:"#5cc6c6",red:"#c45555",purple:"#9b7ed0",white:"#ccc",grid:"#2a2a2a"};let pu=[],es={};function iwe(e){pu=e,es=Object.fromEntries(e.map(t=>[t.type,t]))}function c0(e){var t;return((t=es[e])==null?void 0:t.pins)||[]}function uN(e,t){return e==="any"||t==="any"?!0:e===t}function ah(e,t){const n=c0(e).find(r=>r.id===t);return(n==null?void 0:n.pin_type)||"any"}const cN={string:"#7fba55",message:"#5b9bd5",message_list:"#5b9bd5",stream:"#5cc6c6",json:"#d4a44c",bool:"#e06090",int:"#cc7832",float:"#cc7832",any:"#888888"};function OC(e){return cN[e||"string"]||cN.string}function owe(e){return e?e.endsWith("_list")||e.startsWith("stream["):!1}function swe(e){var i;const t=!!((i=e.data)!=null&&i._traversed),[n]=Xm({sourceX:e.sourceX,sourceY:e.sourceY,targetX:e.targetX,targetY:e.targetY,sourcePosition:e.sourcePosition,targetPosition:e.targetPosition}),r=e.selected?"#ff6060":t?ae.green:ae.white,a=e.selected?3:t?2.5:2;return d.jsxs(d.Fragment,{children:[d.jsx(Xs,{path:n,style:{stroke:r,strokeWidth:a,transition:"stroke 0.3s"}}),t&&d.jsx(Xs,{path:n,style:{stroke:ae.green,strokeWidth:4,opacity:.2,filter:`drop-shadow(0 0 3px ${ae.green})`}})]})}function lwe(e){var s,l;const t=((s=e.data)==null?void 0:s.color)||ae.green,n=((l=e.data)==null?void 0:l._invalid)===!0,[r,a,i]=Xm({sourceX:e.sourceX,sourceY:e.sourceY,targetX:e.targetX,targetY:e.targetY,sourcePosition:e.sourcePosition,targetPosition:e.targetPosition}),o=e.selected?"#ff6060":n?"#ff4444":t;return d.jsxs(d.Fragment,{children:[d.jsx(Xs,{path:r,style:{stroke:o,strokeWidth:e.selected?2.5:n?2:1.5,strokeDasharray:n?"6 3":void 0,opacity:e.selected?1:n?.9:.7}}),n&&d.jsx("foreignObject",{x:a-8,y:i-8,width:16,height:16,style:{pointerEvents:"none",overflow:"visible"},children:d.jsx("div",{style:{width:16,height:16,borderRadius:"50%",background:"#ff4444",color:"#fff",fontSize:11,fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #cc0000"},children:"!"})})]})}const uwe={exec:swe,data:lwe},cwe=22,dwe=22,pwe=22,dN=44;function fwe(e){return e.id.replace(/^data_/,"")}function pN(e,t,n,r){let a=0;return e.map(i=>{let o;i.kind==="exec"?o=dwe:t&&!n.has(i.id)||r[i.id]?o=dN:o=pwe;const s=a+(i.kind==="exec"?o/2:11),l=a;return a+=o,{pin:i,rowH:o,center:s,cumTop:l}})}const hwe=5.8,gwe=20,mwe=56,bwe=10;function fN(e,t){const r=e.reduce((a,i)=>Math.max(a,i.label.length),0)*hwe+gwe;return Math.max(r,t?mwe:bwe)}const HF={width:"100%",fontSize:10,padding:"2px 4px",marginTop:2,background:"#222",border:`1px solid ${ae.border}`,borderRadius:2,color:ae.text,outline:"none",height:20,boxSizing:"border-box"},hN={...HF,cursor:"pointer",appearance:"auto"},gN={agents:()=>jp().then(e=>e.map(t=>({value:t.name,label:t.name}))),conversations:()=>Nw().then(e=>e.map(t=>({value:t.id,label:t.title||t.id})))};function ywe(e){const[t,n]=w.useState([]);return w.useEffect(()=>{!e||!gN[e]||gN[e]().then(n).catch(()=>{})},[e]),t}function vwe({pin:e,dataKey:t,data:n,onUpdate:r}){const a=n[t],i=ywe(e.dynamic_choices);if(e.choices&&e.choices.length>0)return d.jsx("select",{style:hN,value:String(a??e.choices[0]??""),onChange:o=>r==null?void 0:r({...n,[t]:o.target.value}),children:e.choices.map(o=>d.jsx("option",{value:o,children:o},o))});if(e.dynamic_choices&&i.length>0)return d.jsxs("select",{style:hN,value:String(a??""),onChange:o=>r==null?void 0:r({...n,[t]:o.target.value}),children:[d.jsx("option",{value:"",children:"— select —"}),i.map(o=>d.jsx("option",{value:o.value,children:o.label},o.value))]});if(e.pin_type==="bool"){const o=a===!0||a==="true";return d.jsxs("label",{style:{display:"flex",alignItems:"center",gap:4,marginTop:2,cursor:"pointer",fontSize:10,color:ae.text},children:[d.jsx("input",{type:"checkbox",checked:o,onChange:s=>r==null?void 0:r({...n,[t]:s.target.checked}),style:{accentColor:e.color,width:12,height:12,cursor:"pointer"}}),o?"true":"false"]})}return d.jsx("input",{style:HF,value:String(a??""),onChange:o=>r==null?void 0:r({...n,[t]:o.target.value}),placeholder:t})}function mN({pin:e}){const t=e.optional!==!1,n=e.kind==="data"?OC(e.pin_type):e.color,r=e.kind==="data"&&e.pin_type;return d.jsxs("div",{className:"pin-label-row",style:{fontSize:10,lineHeight:"14px",color:t?n+"99":n,position:"relative"},children:[d.jsxs("span",{className:"pin-label-name",style:{transition:"opacity 0.15s"},children:[e.label,!t&&d.jsx("span",{style:{color:ae.red,marginLeft:1,fontSize:8},children:"*"})]}),r&&d.jsx("span",{className:"pin-type-tooltip",style:{position:"absolute",left:0,right:0,top:0,color:n+"aa",fontSize:8,opacity:0,transition:"opacity 0.15s",whiteSpace:"nowrap"},children:e.pin_type})]})}function xwe(e,t){if(t<=0)return ae.green;const n=Math.min(e/t,1);return n<.25?"#4caf50":n<.5?"#8bc34a":n<.75?"#ff9800":"#f44336"}function Swe(e){return e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(1)}s`}function eb({def:e,selected:t,connectedHandles:n,data:r,onUpdate:a,pinWidgets:i,children:o}){if(!e)return null;const s=n||new Set,l=i||{},u=!!r._execActive,c=!!r._execDone,p=r._timingMs,f=r._maxTimingMs||0,h=e.pins.filter(j=>j.side==="left"),g=e.pins.filter(j=>j.side==="right"),y=pN(h,!0,s,l),x=pN(g,!1,s,l),m=y.reduce((j,B)=>j+B.rowH,0),v=x.reduce((j,B)=>j+B.rowH,0),b=Math.max(m,v,22),S=h.length>0,C=g.length>0,k=S&&C,R=h.some(j=>j.kind==="data"&&!s.has(j.id)),O=g.some(j=>!!l[j.id]),N=S?fN(h,R):0,_=C?fN(g,O):0,L=e.label.length*6.5+20,I=Math.max(N+_+(k?1:0),L);let P=t?e.accent:ae.border,M;u?(P=ae.green,M=`0 0 8px ${ae.green}88, 0 0 2px ${ae.green}`):c&&(P=ae.green+"99");const F={background:ae.node,borderRadius:4,border:`2px solid ${P}`,width:I,fontSize:11,overflow:"visible",boxShadow:M,transition:"border-color 0.2s, box-shadow 0.2s"},A=u?ae.green+"30":c?ae.green+"18":e.accent+"26";return d.jsxs("div",{style:F,children:[d.jsxs("div",{style:{height:cwe,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 8px",background:A,borderRadius:"3px 3px 0 0",borderBottom:`1px solid ${ae.border}`},children:[d.jsx("span",{style:{color:ae.text,fontWeight:500,fontSize:11,letterSpacing:"0.02em"},children:e.label}),p!=null&&d.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:2,fontSize:9,fontWeight:500,lineHeight:1,color:xwe(p,f)},children:[d.jsxs("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[d.jsx("circle",{cx:"12",cy:"12",r:"10"}),d.jsx("polyline",{points:"12 6 12 12 16 14"})]}),Swe(p)]})]}),d.jsxs("div",{style:{display:"flex",position:"relative",minHeight:b},children:[S&&d.jsx("div",{style:{width:N,...k?{borderRight:`1px solid ${ae.border}`}:{}},children:y.map(({pin:j,rowH:B})=>{const V=fwe(j),D=j.kind==="data"&&!s.has(j.id);return d.jsxs("div",{style:{height:B,padding:j.kind==="exec"?"0 4px 0 12px":"3px 4px 3px 12px",display:"flex",flexDirection:"column",justifyContent:j.kind==="exec"?"center":"flex-start"},children:[j.label&&d.jsx(mN,{pin:j}),D&&d.jsx(vwe,{pin:j,dataKey:V,data:r,onUpdate:a})]},j.id)})}),C&&d.jsx("div",{style:{width:_},children:x.map(({pin:j,rowH:B})=>d.jsxs("div",{style:{height:B,padding:j.kind==="exec"?"0 12px 0 4px":"3px 12px 3px 4px",display:"flex",flexDirection:"column",justifyContent:j.kind==="exec"?"center":"flex-start",alignItems:"flex-end"},children:[j.label&&d.jsx(mN,{pin:j}),l[j.id]&&d.jsx("div",{style:{width:"100%",marginTop:2},children:l[j.id]})]},j.id))}),y.map(({pin:j,center:B})=>d.jsx(bN,{pin:j,side:"left",top:B,isConnected:s.has(j.id)},j.id)),x.map(({pin:j,center:B})=>d.jsx(bN,{pin:j,side:"right",top:B,isConnected:s.has(j.id)},j.id))]}),o&&d.jsx("div",{style:{padding:"4px 8px 6px",borderTop:`1px solid ${ae.border}`},children:o})]})}function bN({pin:e,side:t,top:n,isConnected:r}){const a=e.kind==="exec",i=t==="left"?Me.Left:Me.Right,o=t==="left"?"target":"source",s=!a&&e.optional===!1,l=a?e.color:OC(e.pin_type),u=!a&&owe(e.pin_type),c=a?{width:0,height:0,borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:`7px solid ${r?l:"transparent"}`,borderRight:"none",background:"transparent",borderRadius:0}:{width:8,height:8,borderRadius:u?2:"50%",background:r?l:"transparent",border:`1.5px ${s&&!r?"dashed":"solid"} ${l}`},p=a&&!r?{width:0,height:0,borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:`7px solid ${l}`,borderRight:"none",background:"transparent",borderRadius:0,opacity:.35}:null;return d.jsxs(d.Fragment,{children:[d.jsx(cp,{type:o,position:i,id:e.id,style:{top:n,width:a?10:8,height:a?10:8,background:"transparent",border:"none",zIndex:10}}),d.jsx("div",{style:{position:"absolute",top:n-(a?5:4),...t==="left"?{left:-5}:{right:-5},pointerEvents:"none",...c}}),p&&d.jsx("div",{style:{position:"absolute",top:n-5,...t==="left"?{left:-5}:{right:-5},pointerEvents:"none",...p}})]})}const wwe={width:"100%",fontSize:10,padding:"2px 4px",height:20,background:"#222",border:`1px solid ${ae.border}`,borderRadius:2,color:ae.text,outline:"none",boxSizing:"border-box"};function tb(e){return{data:e,connectedHandles:e._connected,onUpdate:e._onUpdate}}function Ewe({data:e,selected:t}){const n=e._onUpdate,r={data_message:d.jsx("input",{style:wwe,value:String(e.preview_message||""),onChange:a=>n==null?void 0:n({...e,preview_message:a.target.value}),placeholder:"Hello!"})};return d.jsx(eb,{def:es.start,selected:t,...tb(e),pinWidgets:r})}function kwe({data:e,selected:t}){return d.jsx(eb,{def:es.fetch_conversation,selected:t,...tb(e)})}function yN(e){const t=({data:n,selected:r})=>{const a=es[e],[i,o]=w.useState([]),s=String(n.agent||"");if(w.useEffect(()=>{if(!s){o([]);return}Tie(s).then(o).catch(()=>o([]))},[s]),!a)return null;const l=w.useMemo(()=>{if(i.length===0)return a;const u=i.map(c=>({id:`data_${c}`,label:c,color:ae.cyan,side:"left",kind:"data",pin_type:"string",optional:!0}));return{...a,pins:[...a.pins,...u]}},[a,i]);return d.jsx(eb,{def:l,selected:r,...tb(n)})};return t.displayName=e,t}function Twe(e){const t=({data:n,selected:r})=>{const a=es[e];return a?d.jsx(eb,{def:a,selected:r,...tb(n)}):null};return t.displayName=e,t}function Cwe(){const e={start:Ewe,fetch_conversation:kwe,agent:yN("agent"),agent_call:yN("agent_call")};for(const t of pu)e[t.type]||(e[t.type]=Twe(t.type));return e}const Awe=()=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M8 5v14l11-7z"})}),_we=()=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("path",{d:"M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z"}),d.jsx("polyline",{points:"17 21 17 13 7 13 7 21"}),d.jsx("polyline",{points:"7 3 7 8 15 8"})]}),VF=()=>d.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("polyline",{points:"3 6 5 6 21 6"}),d.jsx("path",{d:"M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6"}),d.jsx("path",{d:"M10 11v6M14 11v6"})]}),vN=()=>d.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),d.jsx("path",{d:"M7 11V7a5 5 0 0110 0v4"})]}),xN=()=>d.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),d.jsx("path",{d:"M7 11V7a5 5 0 018-3"})]}),SN=()=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:d.jsx("path",{d:"M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"})}),GF=["Flow","Agent","Data","Debug","General"];function Rwe({x:e,y:t,flowX:n,flowY:r,onAddNode:a,onClose:i}){const[o,s]=w.useState(null);w.useEffect(()=>{const f=()=>i();return window.addEventListener("click",f),()=>window.removeEventListener("click",f)},[i]);const l=w.useMemo(()=>{const f={};for(const h of pu){const g=h.category||"General";(f[g]||(f[g]=[])).push(h)}return GF.filter(h=>f[h]).map(h=>({category:h,defs:f[h]}))},[]),u=l.length*32+32,p=t+u<window.innerHeight-8?t:Math.max(8,window.innerHeight-u-8);return d.jsxs("div",{style:{position:"fixed",left:e,top:p,zIndex:1e3,background:"#2a2a2a",border:`1px solid ${ae.border}`,borderRadius:4,minWidth:150,padding:"4px 0",boxShadow:"0 4px 16px rgba(0,0,0,0.5)"},onClick:f=>f.stopPropagation(),children:[d.jsx("div",{style:{fontSize:11,color:ae.muted,padding:"4px 12px",textTransform:"uppercase",fontWeight:600},children:"Add Node"}),l.map(({category:f,defs:h})=>d.jsxs("div",{style:{position:"relative"},onMouseEnter:()=>s(f),onMouseLeave:()=>s(null),children:[d.jsxs("div",{style:{padding:"6px 12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:14,color:ae.text,fontWeight:500,background:o===f?"#383838":"transparent"},children:[d.jsx("span",{children:f}),d.jsx("span",{style:{fontSize:10,color:ae.muted},children:"▶"})]}),o===f&&d.jsx("div",{style:{position:"absolute",left:"100%",top:0,zIndex:1001,background:"#2a2a2a",border:`1px solid ${ae.border}`,borderRadius:4,minWidth:180,padding:"4px 0",boxShadow:"0 4px 16px rgba(0,0,0,0.5)"},children:h.map(g=>d.jsxs("div",{onClick:()=>{a(g.type,{x:n,y:r}),i()},style:{padding:"5px 12px",cursor:"pointer",display:"flex",alignItems:"center",gap:8,fontSize:14,color:ae.text},onMouseEnter:y=>y.currentTarget.style.background="#383838",onMouseLeave:y=>y.currentTarget.style.background="transparent",children:[d.jsx("div",{style:{width:6,height:6,borderRadius:1,background:g.accent,flexShrink:0}}),d.jsxs("div",{children:[d.jsx("div",{style:{fontWeight:500},children:g.label}),d.jsx("div",{style:{fontSize:12,color:ae.muted},children:g.description})]})]},g.type))})]},f))]})}const Nwe=({node:e,onUpdate:t,onDelete:n})=>{const r=e.data||{},a=e.type||"",i=(o,s,l)=>d.jsxs("div",{style:{marginBottom:8},children:[d.jsx("div",{style:{fontSize:14,color:ae.muted,marginBottom:2},children:o}),((l==null?void 0:l.rows)||0)>1?d.jsx(Qi,{size:"sm",rows:l.rows,value:String(r[s]||""),placeholder:l==null?void 0:l.placeholder,onChange:u=>t(e.id,{...r,[s]:u.target.value}),bg:"#222",borderColor:ae.border,fontSize:"xs",fontFamily:l!=null&&l.mono?"monospace":void 0}):d.jsx(Ne,{size:"sm",value:String(r[s]||""),placeholder:l==null?void 0:l.placeholder,onChange:u=>t(e.id,{...r,[s]:u.target.value}),bg:"#222",borderColor:ae.border,fontSize:"xs",fontFamily:l!=null&&l.mono?"monospace":void 0})]});return d.jsxs(ze,{align:"stretch",gap:2,p:3,children:[d.jsxs(ne,{justify:"space-between",children:[d.jsx(W,{fontWeight:"bold",fontSize:"xs",color:ae.text,children:"Properties"}),d.jsx(dt,{"aria-label":"Delete",size:"xs",variant:"ghost",colorScheme:"red",onClick:()=>n(e.id),children:d.jsx(VF,{})})]}),d.jsxs(W,{fontSize:"14px",color:ae.muted,children:[a," node"]}),i("Label","label",{placeholder:a}),a==="start"&&d.jsx(d.Fragment,{children:i("Preview Message","preview_message",{placeholder:"Test user message",rows:3})}),a==="agent"&&d.jsxs(d.Fragment,{children:[i("Agent","agent",{placeholder:"default"}),i("Prompt Template","prompt_template",{placeholder:"{{context}}",rows:4})]}),a==="tool"&&d.jsxs(d.Fragment,{children:[i("Tool Name","tool",{placeholder:"e.g. web.search"}),i("Args (JSON)","args_json",{placeholder:'{"query": "{{input}}"}',rows:3,mono:!0})]}),a==="forward"&&d.jsxs("div",{style:{marginBottom:8},children:[d.jsx("div",{style:{fontSize:14,color:ae.muted,marginBottom:2},children:"Mode"}),d.jsx(ne,{gap:1,children:["token","reasoning"].map(o=>d.jsx(Et,{size:"xs",variant:"outline",flex:1,bg:r.mode===o||!r.mode&&o==="token"?o==="reasoning"?ae.purple+"33":ae.green+"33":"transparent",borderColor:r.mode===o||!r.mode&&o==="token"?o==="reasoning"?ae.purple:ae.green:ae.border,color:r.mode===o||!r.mode&&o==="token"?o==="reasoning"?ae.purple:ae.green:ae.muted,onClick:()=>t(e.id,{...r,mode:o}),_hover:{bg:"#333"},fontSize:"14px",children:o},o))}),d.jsx(W,{fontSize:"13px",color:ae.muted,mt:1,children:"token = visible reply, reasoning = thinking bubble"})]}),a==="condition"&&d.jsxs(d.Fragment,{children:[i("Expression","expression",{placeholder:"len(input) > 100",mono:!0}),d.jsx(W,{fontSize:"13px",color:ae.muted,children:"Variables: input, len"})]})]})};function Iwe(e){const t=e.sourceHandle||"",n=e.targetHandle||"",r=t.startsWith("exec_"),a=n.startsWith("exec_");return r===a}function Owe(e){return(e||"").startsWith("exec_")?"exec":"data"}function wN(e,t){if((e||"").startsWith("exec_"))return ae.white;const r=c0(t||"").find(a=>a.id===e);return r&&r.kind==="data"?OC(r.pin_type):(r==null?void 0:r.color)||ae.green}let Dwe=0;const Lwe=()=>`n_${++Dwe}_${Date.now().toString(36)}`,EN=[{id:"start",type:"start",position:{x:50,y:150},data:{label:"Start",preview_message:"Hello!"}},{id:"agent1",type:"agent",position:{x:350,y:150},data:{agent:"default",label:"Agent"}},{id:"end",type:"output",position:{x:650,y:150},data:{label:"Done"}}],kN=[{id:"e1",source:"start",target:"agent1",sourceHandle:"exec_out",targetHandle:"exec_in",type:"exec"},{id:"e2",source:"agent1",target:"end",sourceHandle:"exec_out",targetHandle:"exec_in",type:"exec"},{id:"e3",source:"start",target:"agent1",sourceHandle:"data_message",targetHandle:"data_context",type:"data",data:{color:ae.amber}},{id:"e4",source:"agent1",target:"end",sourceHandle:"data_response",targetHandle:"data_response",type:"data",data:{color:ae.green}}],TN=()=>{var ul,cl,wi,ss,ls;const{workflowIdParam:e}=TS(),t=nl(),[n,r,a]=RSe(EN),[i,o,s]=NSe(kN),[l,u]=w.useState(null),[c,p]=w.useState(null),f=w.useRef(null),[h,g]=w.useState(""),[y,x]=w.useState("New Workflow"),[m,v]=w.useState(""),b=w.useCallback(ee=>{g(ee),ee?t(`/workflows/${ee}`,{replace:!0}):t("/workflows",{replace:!0})},[t]),[S,C]=w.useState([]),[k,R]=w.useState(!0),[O,N]=w.useState(!1),[_,L]=w.useState(!1),[I,P]=w.useState(null),[M,F]=w.useState(!1),[A,j]=w.useState(0),[B,V]=w.useState([]),[D,Z]=w.useState("Agent"),[J,H]=w.useState(0),[se,we]=w.useState(null),[xe,pe]=w.useState(new Set),[X,te]=w.useState(null),[ie,he]=w.useState(null),[le,ce]=w.useState([]),[Re,Be]=w.useState(!1);w.useEffect(()=>{kie().then(ee=>{iwe(ee),H(de=>de+1)}).catch(()=>{}),Lf().then(C).catch(()=>{})},[]);const De=w.useMemo(()=>Cwe(),[J]),Ke=w.useMemo(()=>{const ee={};for(const de of i)ee[de.source]||(ee[de.source]=new Set),ee[de.target]||(ee[de.target]=new Set),de.sourceHandle&&ee[de.source].add(de.sourceHandle),de.targetHandle&&ee[de.target].add(de.targetHandle);return ee},[i]),Rt=w.useCallback((ee,de)=>{r(Te=>Te.map(Q=>Q.id===ee?{...Q,data:de}:Q)),u(Te=>Te&&Te.id===ee?{...Te,data:de}:Te)},[r]),Nt=w.useMemo(()=>{const ee={};if(!(ie!=null&&ie.events))return ee;for(const de of ie.events)(de.event==="node.end"&&de.node_id&&de.duration_ms!=null||de.event==="node.exec"&&de.node_id&&de.duration_ms!=null)&&(ee[de.node_id]=de.duration_ms);return ee},[ie]),It=w.useMemo(()=>{const ee=Object.values(Nt);return ee.length>0?Math.max(...ee):0},[Nt]),zn=w.useMemo(()=>n.map(ee=>({...ee,data:{...ee.data,_connected:Ke[ee.id]||new Set,_onUpdate:de=>Rt(ee.id,de),_execActive:ee.id===se,_execDone:xe.has(ee.id),_timingMs:Nt[ee.id]??null,_maxTimingMs:It}})),[n,Ke,Rt,se,xe,Nt,It]),En=w.useMemo(()=>i.map(ee=>{let de=!1;if(ee.type==="data"&&ee.sourceHandle&&ee.targetHandle){const Te=n.find(ge=>ge.id===ee.source),Q=n.find(ge=>ge.id===ee.target);if(Te&&Q){const ge=ah(Te.type||"",ee.sourceHandle),Pe=ah(Q.type||"",ee.targetHandle);de=!uN(ge,Pe)}}return{...ee,data:{...ee.data||{},_traversed:ee.id===X,_invalid:de}}}),[i,n,X]),ln=w.useCallback(ee=>{var Q;const de=Owe(ee.sourceHandle),Te=wN(ee.sourceHandle,(Q=n.find(ge=>ge.id===ee.source))==null?void 0:Q.type);o(ge=>Gj({...ee,type:de,...de==="data"?{data:{color:Te}}:{}},ge))},[o,n]),kn=w.useCallback((ee,de)=>u(de),[]),Tn=w.useCallback(()=>{u(null),P(null)},[]),re=w.useCallback(ee=>{r(de=>de.filter(Te=>Te.id!==ee)),o(de=>de.filter(Te=>Te.source!==ee&&Te.target!==ee)),u(null)},[r,o]),me=w.useCallback((ee,de)=>{var Q;const Te={label:((Q=es[ee])==null?void 0:Q.label)||ee};(ee==="agent"||ee==="agent_call")&&(Te.agent="default"),ee==="condition"&&(Te.expression="True"),ee==="start"&&(Te.preview_message="Hello!"),ee==="fetch_conversation"&&(Te.conversation_id="",Te.debug=!0),r(ge=>[...ge,{id:Lwe(),type:ee,position:de,data:Te}])},[r]),Ie=w.useCallback(ee=>{ee.preventDefault(),ee.dataTransfer.dropEffect="move"},[]),je=w.useCallback(ee=>{ee.preventDefault();const de=ee.dataTransfer.getData("application/workflow-node-type");if(!de||!c||!f.current)return;const Te=f.current.getBoundingClientRect(),Q=c.screenToFlowPosition({x:ee.clientX-Te.left,y:ee.clientY-Te.top});me(de,Q)},[c,me]),Ye=w.useCallback(ee=>{if(ee.preventDefault(),!c)return;const de=c.screenToFlowPosition({x:ee.clientX,y:ee.clientY});P({x:ee.clientX,y:ee.clientY,flowX:de.x,flowY:de.y})},[c]),Ct=w.useCallback(()=>({id:h||y.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),name:y,description:m,nodes:n.map(ee=>({id:ee.id,type:ee.type||"agent",position:ee.position,data:Object.fromEntries(Object.entries(ee.data||{}).filter(([de])=>!de.startsWith("_")))})),edges:i.map(ee=>({id:ee.id,source:ee.source,target:ee.target,sourceHandle:ee.sourceHandle||"",targetHandle:ee.targetHandle||"",type:ee.type||"data"}))}),[n,i,h,y,m]),St=w.useCallback(async()=>{const ee=Ct();try{O&&_?await Rie(ee.id,ee):h&&!S.find(de=>de.id===h&&de.builtin)?await u_(ee.id,ee):await l_(ee),b(ee.id),C(await Lf())}catch(de){console.error("Save failed",de)}},[Ct,h,S,O,_]),er=w.useCallback(async()=>{var ee,de;if(h)try{await St();const Te=await _ie(h);ce(Te.errors),Be(!0)}catch(Te){console.error("Validate failed",Te)}else{const Te=[];for(const Q of i){if(Q.type!=="data"||!Q.sourceHandle||!Q.targetHandle)continue;const ge=n.find(Ae=>Ae.id===Q.source),Pe=n.find(Ae=>Ae.id===Q.target);if(!ge||!Pe)continue;const Ee=ah(ge.type||"",Q.sourceHandle),ke=ah(Pe.type||"",Q.targetHandle);if(!uN(Ee,ke)){const Ae=((ee=ge.data)==null?void 0:ee.label)||ge.id,Le=((de=Pe.data)==null?void 0:de.label)||Pe.id,He=c0(ge.type||"").find(ft=>ft.id===Q.sourceHandle),pt=c0(Pe.type||"").find(ft=>ft.id===Q.targetHandle);Te.push({edge_id:Q.id,source_node:ge.id,target_node:Pe.id,source_pin:(He==null?void 0:He.label)||Q.sourceHandle,target_pin:(pt==null?void 0:pt.label)||Q.targetHandle,source_type:Ee,target_type:ke,message:`${Ae}.${(He==null?void 0:He.label)||"?"} (${Ee}) → ${Le}.${(pt==null?void 0:pt.label)||"?"} (${ke}): incompatible types`})}}ce(Te),Be(!0)}},[h,i,n,St]),tr=w.useCallback(ee=>{b(ee.id||""),x(ee.name||ee.id||""),v(ee.description||""),L(!!ee.builtin);const de=(ee.nodes||[]).map(Te=>({id:Te.id,type:Te.type||"agent",position:Te.position||{x:100,y:100},data:Te.data||{}}));r(de),o((ee.edges||[]).map(Te=>{const Q=de.find(Pe=>Pe.id===Te.source),ge=wN(Te.sourceHandle,Q==null?void 0:Q.type);return{id:Te.id,source:Te.source,target:Te.target,sourceHandle:Te.sourceHandle||"",targetHandle:Te.targetHandle||"",type:Te.type||"data",...Te.type==="data"?{data:{color:ge}}:{}}})),u(null)},[r,o,b]),Sr=w.useCallback(async ee=>{try{tr(await Cie(ee))}catch(de){console.error("Load failed",de)}},[tr]),un=w.useRef(!1);w.useEffect(()=>{un.current||e&&(un.current=!0,Sr(e))},[e,Sr]);const la=w.useCallback(async ee=>{try{await Aie(ee),C(await Lf()),h===ee&&(b(""),x("New Workflow"),v(""),L(!1),r(EN),o(kN))}catch(de){console.error("Delete failed",de)}},[h,r,o]),dr=w.useCallback(async()=>{const ee=Ct();if(h)try{await u_(h,ee)}catch{}else try{await l_(ee),b(ee.id),C(await Lf())}catch{}F(!0)},[Ct,h]),Si=w.useMemo(()=>l&&n.find(ee=>ee.id===l.id)||null,[n,l]),ll=!_||O;return d.jsxs(G,{h:"100%",w:"100%",display:"flex",bg:ae.bg,children:[d.jsx("style",{children:`
.pin-label-row:hover .pin-label-name { opacity: 0 !important; }
.pin-label-row:hover .pin-type-tooltip { opacity: 1 !important; }
`}),k&&d.jsxs(G,{w:"220px",minW:"220px",h:"100%",bg:"#242424",borderRight:`1px solid ${ae.border}`,display:"flex",flexDirection:"column",overflowY:"auto",children:[d.jsxs(G,{p:2,borderBottom:`1px solid ${ae.border}`,children:[d.jsx(W,{fontSize:"13px",fontWeight:"bold",color:ae.muted,mb:1,textTransform:"uppercase",children:"Workflow"}),d.jsx(Ne,{size:"sm",value:y,onChange:ee=>x(ee.target.value),bg:"#1a1a1a",borderColor:ae.border,fontSize:"md",mb:1,color:ae.text,readOnly:_&&!O}),d.jsxs(ne,{gap:1,children:[d.jsx(Et,{size:"xs",onClick:St,variant:"outline",flex:1,borderColor:ae.border,color:ae.text,_hover:{bg:"#333"},disabled:!ll,children:d.jsxs(ne,{gap:1,children:[d.jsx(_we,{}),d.jsx(W,{children:O&&_?"Save ⚙":"Save"})]})}),d.jsx(Et,{size:"xs",onClick:dr,flex:1,bg:ae.green+"33",color:ae.green,borderColor:ae.green+"55",variant:"outline",_hover:{bg:ae.green+"55"},children:d.jsxs(ne,{gap:1,children:[d.jsx(Awe,{}),d.jsx(W,{children:"Run"})]})})]}),d.jsx(Et,{size:"xs",onClick:er,variant:"outline",w:"100%",mt:1,borderColor:le.length>0?ae.red+"88":ae.border,color:le.length>0?ae.red:ae.text,_hover:{bg:"#333"},children:d.jsx(ne,{gap:1,children:d.jsx(W,{children:le.length>0?`⚠ ${le.length} error${le.length>1?"s":""}`:"✓ Validate"})})})]}),d.jsxs(G,{p:2,borderBottom:`1px solid ${ae.border}`,children:[d.jsxs(ne,{justify:"space-between",cursor:"pointer",onClick:()=>N(!O),children:[d.jsxs(ne,{gap:1,children:[O?d.jsx(xN,{}):d.jsx(vN,{}),d.jsx(W,{fontSize:"13px",fontWeight:"bold",color:O?ae.amber:ae.muted,textTransform:"uppercase",children:"Dev Mode"})]}),d.jsx("div",{style:{width:28,height:14,borderRadius:7,background:O?ae.amber:"#555",position:"relative",cursor:"pointer",transition:"background 0.2s"},children:d.jsx("div",{style:{width:10,height:10,borderRadius:"50%",background:"#fff",position:"absolute",top:2,left:O?16:2,transition:"left 0.2s"}})})]}),O&&d.jsx(W,{fontSize:"13px",color:ae.amber,mt:1,children:"Builtin graphs are editable"})]}),d.jsxs(G,{p:2,borderBottom:`1px solid ${ae.border}`,overflow:"hidden",display:"flex",flexDirection:"column",maxH:"40vh",children:[d.jsx(W,{fontSize:"13px",fontWeight:"bold",color:ae.muted,mb:1,textTransform:"uppercase",flexShrink:0,children:"Nodes"}),d.jsx(G,{overflowY:"auto",flex:1,minH:0,children:d.jsx(ze,{gap:0,align:"stretch",children:GF.filter(ee=>pu.some(de=>(de.category||"General")===ee)).map(ee=>{const de=D===ee;return d.jsxs(G,{children:[d.jsxs(ne,{px:1,py:1,cursor:"pointer",gap:1,onClick:()=>Z(de?null:ee),_hover:{bg:"#333"},borderRadius:"3px",mb:de?.5:0,children:[d.jsx(W,{fontSize:"10px",color:ae.muted,children:de?"▼":"▶"}),d.jsx(W,{fontSize:"11px",fontWeight:600,color:de?ae.text:ae.muted,textTransform:"uppercase",children:ee}),d.jsx(W,{fontSize:"11px",color:ae.muted,ml:"auto",children:pu.filter(Te=>(Te.category||"General")===ee).length})]}),de&&d.jsx(ze,{gap:.5,align:"stretch",mb:1,children:pu.filter(Te=>(Te.category||"General")===ee).map(Te=>d.jsx(G,{draggable:!0,onDragStart:Q=>{Q.dataTransfer.setData("application/workflow-node-type",Te.type),Q.dataTransfer.effectAllowed="move"},px:2,py:1,borderRadius:"3px",border:`1px solid ${Te.accent}33`,cursor:"grab",_hover:{bg:`${Te.accent}18`,borderColor:`${Te.accent}66`},transition:"all 0.1s",children:d.jsxs(ne,{gap:2,children:[d.jsx(G,{w:"6px",h:"6px",borderRadius:"1px",bg:Te.accent,flexShrink:0}),d.jsxs(G,{children:[d.jsx(W,{fontSize:"14px",fontWeight:500,color:ae.text,children:Te.label}),d.jsx(W,{fontSize:"13px",color:ae.muted,children:Te.description})]})]})},Te.type))})]},ee)})})})]}),d.jsxs(G,{p:2,flex:1,overflowY:"auto",children:[d.jsx(W,{fontSize:"13px",fontWeight:"bold",color:ae.muted,mb:1,textTransform:"uppercase",children:"Workflows"}),S.length===0?d.jsx(W,{fontSize:"14px",color:ae.muted,children:"None yet"}):d.jsx(ze,{gap:.5,align:"stretch",children:S.map(ee=>{const de=ee.builtin;return d.jsxs(ne,{px:2,py:1,borderRadius:"3px",bg:h===ee.id?"#383838":"transparent",_hover:{bg:"#333"},cursor:"pointer",onClick:()=>Sr(ee.id),justify:"space-between",children:[d.jsxs(ne,{gap:1,overflow:"hidden",children:[de&&(O?d.jsx(xN,{}):d.jsx(vN,{})),d.jsxs(G,{overflow:"hidden",children:[d.jsx(W,{fontSize:"14px",fontWeight:500,color:ae.text,lineClamp:1,children:ee.name}),d.jsxs(W,{fontSize:"13px",color:ae.muted,children:[ee.node_count,"n · ",ee.edge_count,"e"]})]})]}),(!de||O)&&d.jsx(dt,{"aria-label":"Delete",size:"xs",variant:"ghost",onClick:Te=>{Te.stopPropagation(),la(ee.id)},children:d.jsx(VF,{})})]},ee.id)})})]})]}),d.jsxs(G,{flex:1,h:"100%",ref:f,position:"relative",children:[d.jsxs(_Se,{nodes:zn,edges:En,onNodesChange:a,onEdgesChange:s,onConnect:ln,onNodeClick:kn,onPaneClick:Tn,onInit:p,onDragOver:Ie,onDrop:je,onPaneContextMenu:Ye,nodeTypes:De,edgeTypes:uwe,isValidConnection:Iwe,defaultEdgeOptions:{selectable:!0,deletable:!0},deleteKeyCode:["Backspace","Delete"],fitView:!0,colorMode:"dark",proOptions:{hideAttribution:!0},style:{background:ae.bg},children:[d.jsx(MSe,{gap:20,size:1,color:ae.grid}),d.jsx($Se,{style:{background:"#242424",border:`1px solid ${ae.border}`,borderRadius:4}}),d.jsx(twe,{style:{background:"#242424",border:`1px solid ${ae.border}`,borderRadius:4},maskColor:"rgba(0,0,0,0.5)",nodeColor:ee=>{var de;return((de=es[ee.type||""])==null?void 0:de.accent)||"#555"}}),d.jsx(Bu,{position:"top-left",children:d.jsxs(ne,{gap:1,children:[d.jsx(Et,{size:"xs",variant:"ghost",onClick:()=>R(!k),color:ae.muted,_hover:{bg:"#333"},fontSize:"14px",children:k?"◀ Hide":"▶ Panel"}),d.jsx(Et,{size:"xs",variant:"ghost",onClick:()=>F(!M),color:M?ae.cyan:ae.muted,_hover:{bg:"#333"},fontSize:"14px",children:d.jsxs(ne,{gap:1,children:[d.jsx(SN,{}),d.jsx(W,{children:M?"Hide Chat":"Test Chat"})]})})]})}),_&&!O&&d.jsx(Bu,{position:"top-center",children:d.jsx("div",{style:{background:ae.amber+"22",border:`1px solid ${ae.amber}44`,borderRadius:4,padding:"3px 10px",fontSize:14,color:ae.amber},children:"Read-only builtin — enable Dev Mode to edit"})})]}),I&&d.jsx(Rwe,{x:I.x,y:I.y,flowX:I.flowX,flowY:I.flowY,onAddNode:me,onClose:()=>P(null)}),(B.length>0||ie)&&d.jsxs(G,{position:"absolute",bottom:3,left:3,right:Si?"240px":M?"320px":"3px",maxH:"200px",overflowY:"auto",bg:"#242424ee",border:`1px solid ${ae.border}`,borderRadius:"4px",p:2,fontSize:"14px",fontFamily:"monospace",zIndex:10,children:[d.jsxs(ne,{justify:"space-between",mb:1,children:[d.jsx(W,{fontWeight:"bold",color:ae.text,fontSize:"14px",children:"Run Log"}),d.jsxs(ne,{gap:1,children:[ie&&d.jsxs(W,{fontSize:"11px",color:ae.cyan,children:[(ul=ie.total_duration_ms)==null?void 0:ul.toFixed(0),"ms"]}),d.jsx(Et,{size:"xs",variant:"ghost",onClick:()=>{V([]),he(null)},color:ae.muted,children:"Clear"})]})]}),B.map((ee,de)=>d.jsx(W,{color:ee.includes("✗")?ae.red:ee.includes("✓")?ae.green:ae.muted,children:ee},de)),ie&&d.jsxs(G,{mt:1,pt:1,borderTop:`1px solid ${ae.border}`,children:[d.jsxs(W,{fontSize:"11px",color:ae.cyan,mb:1,children:["Audit: ",ie.request_id," \\u2022 ",(cl=ie.total_duration_ms)==null?void 0:cl.toFixed(0),"ms total"]}),(wi=ie.events)==null?void 0:wi.filter(ee=>ee.phase==="node").map((ee,de)=>{var Te;return d.jsxs(W,{fontSize:"11px",color:ae.muted,children:[(Te=ee.elapsed_ms)==null?void 0:Te.toFixed(0).padStart(6),"ms ",ee.event,ee.label?` (${ee.label})`:"",ee.duration_ms!=null?` ${ee.duration_ms.toFixed(0)}ms`:""]},de)})]})]}),Re&&d.jsxs(G,{position:"absolute",bottom:B.length>0||ie?"210px":"3px",left:3,right:Si?"240px":M?"320px":"3px",maxH:"180px",overflowY:"auto",bg:le.length>0?"#2a1515ee":"#1a2a1aee",border:`1px solid ${le.length>0?ae.red+"66":ae.green+"66"}`,borderRadius:"4px",p:2,fontSize:"14px",zIndex:11,children:[d.jsxs(ne,{justify:"space-between",mb:1,children:[d.jsx(W,{fontWeight:"bold",color:le.length>0?ae.red:ae.green,fontSize:"14px",children:le.length>0?`${le.length} type error${le.length>1?"s":""}`:"✓ All edges valid"}),d.jsx(Et,{size:"xs",variant:"ghost",onClick:()=>Be(!1),color:ae.muted,children:"Close"})]}),le.map((ee,de)=>d.jsx(G,{py:.5,cursor:"pointer",_hover:{bg:"#ffffff08"},borderRadius:"2px",px:1,onClick:()=>{ee.edge_id&&o(Te=>Te.map(Q=>({...Q,selected:Q.id===ee.edge_id})))},children:d.jsx(W,{fontSize:"13px",color:ae.red,children:ee.message})},de))]})]}),M&&d.jsxs(G,{w:"420px",minW:"420px",h:"100%",borderLeft:`1px solid ${ae.border}`,display:"flex",flexDirection:"column",children:[d.jsxs(G,{p:1,borderBottom:`1px solid ${ae.border}`,display:"flex",justifyContent:"space-between",alignItems:"center",children:[d.jsxs(ne,{gap:1,pl:2,children:[d.jsx(SN,{}),d.jsx(W,{fontSize:"14px",fontWeight:"bold",color:ae.text,children:"Test Chat"}),h&&d.jsxs(W,{fontSize:"12px",color:ae.muted,children:["(",((ls=(ss=n.find(ee=>ee.type==="start"))==null?void 0:ss.data)==null?void 0:ls.label)||h,")"]})]}),d.jsxs(ne,{gap:1,children:[d.jsx(Et,{size:"xs",variant:"ghost",color:ae.muted,onClick:()=>{j(ee=>ee+1),V([])},_hover:{bg:"#333"},fontSize:"13px",children:"New"}),d.jsx(Et,{size:"xs",variant:"ghost",color:ae.muted,onClick:()=>F(!1),_hover:{bg:"#333"},fontSize:"14px",children:"✕"})]})]}),d.jsx(G,{flex:1,overflow:"hidden",children:d.jsx(Zp,{conversationId:null,compact:!0,ephemeral:!0,initialGraph:h?`workflow:${h}`:void 0,placeholder:"Send a message to test the workflow..."},`test-${h}-${A}`)})]}),Si&&!M&&d.jsx(G,{w:"230px",minW:"230px",h:"100%",bg:"#242424",borderLeft:`1px solid ${ae.border}`,overflowY:"auto",children:d.jsx(Nwe,{node:Si,onUpdate:Rt,onDelete:re})})]})},CN=()=>d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}),AN=()=>d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),_N=()=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",opacity:.6,children:d.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})}),RN=({open:e})=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",opacity:.6,children:e?d.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}):d.jsx("path",{d:"M10 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})}),Mwe=()=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}),zwe=()=>d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",opacity:.5,children:d.jsx("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),Pwe=()=>{const[e,t]=w.useState({}),[n,r]=w.useState(!0),[a,i]=w.useState(new Set),[o,s]=w.useState(null),[l,u]=w.useState(null),[c,p]=w.useState(!1),[f,h]=w.useState(""),[g,y]=w.useState(null),[x,m]=w.useState(!1),[v,b]=w.useState(!1),[S,C]=w.useState(""),k=w.useCallback(()=>{r(!0),Lie().then(t).catch(()=>{}).finally(()=>r(!1))},[]);w.useEffect(()=>{document.title="Knowledge — Açaí",k()},[k]);const R=w.useCallback(M=>{i(F=>{const A=new Set(F);return A.has(M)?A.delete(M):A.add(M),A})},[]),O=w.useCallback((M,F,A)=>{s({subject:M,subsubject:F,title:A}),b(!1),p(!0),Mie(M,F,A).then(j=>{u(j),C(j.content)}).catch(()=>u(null)).finally(()=>p(!1))},[]),N=w.useCallback(async()=>{o&&confirm(`Delete ${o.subject}/${o.subsubject}/${o.title}?`)&&(await Pie(o.subject,o.subsubject,o.title),s(null),u(null),k())},[o,k]),_=w.useCallback(async()=>{if(!o)return;const M=await jie(o.subject,o.subsubject,o.title,S);u(M),b(!1)},[o,S]),L=w.useCallback(async()=>{if(!f.trim()){y(null);return}m(!0);try{const M=await zie(f.trim());y(M)}catch{y([])}finally{m(!1)}},[f]),I=w.useMemo(()=>{let M=0;for(const F of Object.values(e))for(const A of Object.values(F))M+=A.length;return M},[e]),P=Object.keys(e).sort();return d.jsxs(G,{h:"100vh",display:"flex",bg:"var(--bg-page)",children:[d.jsxs(G,{w:"300px",minW:"300px",h:"100%",overflowY:"auto",borderRight:"1px solid var(--border-primary)",bg:"var(--bg-surface)",display:"flex",flexDir:"column",children:[d.jsxs(G,{p:3,borderBottom:"1px solid var(--border-primary)",children:[d.jsxs(ne,{mb:2,children:[d.jsx(ta,{size:"sm",color:"var(--text-primary)",flex:1,children:"Knowledge"}),d.jsx(bt,{fontSize:"xs",colorScheme:"blue",children:I})]}),d.jsxs(ne,{gap:1,children:[d.jsx(Ne,{size:"xs",placeholder:"Search...",value:f,onChange:M=>{h(M.target.value),M.target.value||y(null)},onKeyDown:M=>{M.key==="Enter"&&L()},bg:"var(--bg-input)",borderColor:"var(--border-input)",color:"var(--text-primary)",fontSize:"xs"}),d.jsx(dt,{"aria-label":"Search",size:"xs",variant:"ghost",onClick:L,disabled:x,children:x?d.jsx(On,{size:"xs"}):d.jsx(zwe,{})})]})]}),d.jsx(G,{flex:1,overflowY:"auto",p:2,children:n?d.jsx(G,{textAlign:"center",py:8,children:d.jsx(On,{size:"sm"})}):g!==null?d.jsxs(ze,{align:"stretch",gap:0,children:[d.jsxs(W,{fontSize:"xs",color:"var(--text-tertiary)",mb:1,children:[g.length," result",g.length!==1?"s":""]}),g.map(M=>d.jsxs(ne,{px:2,py:1,borderRadius:"sm",cursor:"pointer",bg:(o==null?void 0:o.title)===M.title&&(o==null?void 0:o.subject)===M.subject?"var(--bg-active)":"transparent",_hover:{bg:"var(--bg-hover)"},onClick:()=>O(M.subject,M.subsubject,M.title),children:[d.jsx(_N,{}),d.jsxs(G,{flex:1,minW:0,children:[d.jsx(W,{fontSize:"xs",color:"var(--text-primary)",truncate:!0,children:M.title}),d.jsxs(W,{fontSize:"10px",color:"var(--text-tertiary)",children:[M.subject,"/",M.subsubject]})]})]},M.path))]}):d.jsxs(ze,{align:"stretch",gap:0,children:[P.map(M=>{const F=`s:${M}`,A=a.has(F),j=Object.keys(e[M]).sort();return d.jsxs(G,{children:[d.jsxs(ne,{px:1,py:.5,cursor:"pointer",borderRadius:"sm",_hover:{bg:"var(--bg-hover)"},onClick:()=>R(F),children:[A?d.jsx(AN,{}):d.jsx(CN,{}),d.jsx(RN,{open:A}),d.jsx(W,{fontSize:"xs",fontWeight:600,color:"var(--text-primary)",flex:1,children:M}),d.jsx(W,{fontSize:"10px",color:"var(--text-tertiary)",children:j.reduce((B,V)=>B+e[M][V].length,0)})]}),A&&j.map(B=>{const V=`ss:${M}/${B}`,D=a.has(V),Z=e[M][B].sort();return d.jsxs(G,{pl:4,children:[d.jsxs(ne,{px:1,py:.5,cursor:"pointer",borderRadius:"sm",_hover:{bg:"var(--bg-hover)"},onClick:()=>R(V),children:[D?d.jsx(AN,{}):d.jsx(CN,{}),d.jsx(RN,{open:D}),d.jsx(W,{fontSize:"xs",color:"var(--text-primary)",flex:1,children:B}),d.jsx(W,{fontSize:"10px",color:"var(--text-tertiary)",children:Z.length})]}),D&&Z.map(J=>{const H=(o==null?void 0:o.subject)===M&&(o==null?void 0:o.subsubject)===B&&(o==null?void 0:o.title)===J;return d.jsxs(ne,{pl:4,px:2,py:.5,cursor:"pointer",borderRadius:"sm",bg:H?"var(--bg-active)":"transparent",_hover:{bg:"var(--bg-hover)"},onClick:()=>O(M,B,J),children:[d.jsx(_N,{}),d.jsx(W,{fontSize:"xs",color:"var(--text-primary)",truncate:!0,children:J.replace(/-/g," ")})]},J)})]},B)})]},M)}),P.length===0&&d.jsx(W,{fontSize:"xs",color:"var(--text-tertiary)",textAlign:"center",py:8,children:"No knowledge documents yet."})]})})]}),d.jsx(G,{flex:1,h:"100%",overflowY:"auto",display:"flex",flexDir:"column",children:o&&l?d.jsxs(d.Fragment,{children:[d.jsxs(ne,{px:5,py:3,borderBottom:"1px solid var(--border-primary)",bg:"var(--bg-surface)",children:[d.jsxs(G,{flex:1,children:[d.jsx(ta,{size:"sm",color:"var(--text-primary)",children:l.title.replace(/-/g," ")}),d.jsxs(W,{fontSize:"xs",color:"var(--text-tertiary)",children:[l.subject," / ",l.subsubject," · ",new Date(l.updated_at*1e3).toLocaleString()]})]}),d.jsxs(ne,{gap:1,children:[v?d.jsxs(d.Fragment,{children:[d.jsx(dt,{"aria-label":"Save",size:"xs",variant:"outline",colorScheme:"green",onClick:_,children:d.jsx(W,{fontSize:"xs",children:"Save"})}),d.jsx(dt,{"aria-label":"Cancel",size:"xs",variant:"ghost",onClick:()=>{b(!1),C(l.content)},children:d.jsx(W,{fontSize:"xs",children:"Cancel"})})]}):d.jsx(dt,{"aria-label":"Edit",size:"xs",variant:"ghost",onClick:()=>b(!0),children:d.jsx(W,{fontSize:"xs",children:"Edit"})}),d.jsx(dt,{"aria-label":"Delete",size:"xs",variant:"ghost",color:"var(--text-danger, red)",onClick:N,children:d.jsx(Mwe,{})})]})]}),d.jsx(G,{flex:1,overflowY:"auto",p:5,children:c?d.jsx(G,{textAlign:"center",py:8,children:d.jsx(On,{})}):v?d.jsx(G,{as:"textarea",w:"100%",h:"100%",minH:"400px",p:4,fontSize:"sm",fontFamily:"mono",bg:"var(--bg-input)",color:"var(--text-primary)",border:"1px solid var(--border-input)",borderRadius:"md",resize:"vertical",value:S,onChange:M=>C(M.target.value)}):d.jsx(Iu,{content:l.content})})]}):d.jsx(G,{flex:1,display:"flex",alignItems:"center",justifyContent:"center",children:d.jsxs(ze,{gap:2,color:"var(--text-tertiary)",children:[d.jsx(W,{fontSize:"lg",opacity:.3,children:d.jsx("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"currentColor",children:d.jsx("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"})})}),d.jsx(W,{fontSize:"sm",children:"Select a document to view"})]})})})]})},jwe=FL(HL);function Fwe(){return d.jsx(nW,{value:jwe,children:d.jsxs(Gre,{children:[d.jsx($ae,{children:d.jsx(FV,{children:d.jsx(sie,{children:d.jsxs(gV,{children:[d.jsx(Er,{path:"/",element:d.jsx(Bie,{})}),d.jsx(Er,{path:"/conversations",element:d.jsx(aR,{})}),d.jsx(Er,{path:"/conversations/:convId",element:d.jsx(aR,{})}),d.jsx(Er,{path:"/projects",element:d.jsx(l0e,{})}),d.jsx(Er,{path:"/projects/:name",element:d.jsx(b0e,{})}),d.jsx(Er,{path:"/agents",element:d.jsx(T0e,{})}),d.jsx(Er,{path:"/knowledge",element:d.jsx(Pwe,{})}),d.jsx(Er,{path:"/tasks",element:d.jsx(_0e,{})}),d.jsx(Er,{path:"/workflows",element:d.jsx(TN,{})}),d.jsx(Er,{path:"/workflows/:workflowIdParam",element:d.jsx(TN,{})}),d.jsx(Er,{path:"/uber",element:d.jsx(F0e,{})}),d.jsx(Er,{path:"/status",element:d.jsx(M0e,{})}),d.jsx(Er,{path:"/settings",element:d.jsx(j0e,{})})]})})})}),d.jsx(Uae,{})]})})}const Bwe=gH.createRoot(document.getElementById("root"));Bwe.render(d.jsx(w.StrictMode,{children:d.jsx(Fwe,{})}));
//# sourceMappingURL=index-CktYJ4XX.js.map
