From a12b9c634c9979e84606949499cb8dae95ae402d Mon Sep 17 00:00:00 2001 From: Jonathan Singer Date: Mon, 20 Jul 2026 12:02:16 -0400 Subject: [PATCH] Rebuild the viewer bundle --- .../viewer_dist/assets/index-DVlON81T.js | 487 ++++++++++++++++++ .../viewer_dist/assets/index-Dffipx3y.css | 10 + .../viewer_dist/assets/index-F6wiPyoI.css | 10 - .../viewer_dist/assets/index-HNJsx9zD.js | 402 --------------- strix/viewer/viewer_dist/index.html | 4 +- 5 files changed, 499 insertions(+), 414 deletions(-) create mode 100644 strix/viewer/viewer_dist/assets/index-DVlON81T.js create mode 100644 strix/viewer/viewer_dist/assets/index-Dffipx3y.css delete mode 100644 strix/viewer/viewer_dist/assets/index-F6wiPyoI.css delete mode 100644 strix/viewer/viewer_dist/assets/index-HNJsx9zD.js diff --git a/strix/viewer/viewer_dist/assets/index-DVlON81T.js b/strix/viewer/viewer_dist/assets/index-DVlON81T.js new file mode 100644 index 00000000..d2e5d6f5 --- /dev/null +++ b/strix/viewer/viewer_dist/assets/index-DVlON81T.js @@ -0,0 +1,487 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yf={exports:{}},jl={};/** + * @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 Tx;function Uk(){if(Tx)return jl;Tx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return jl.Fragment=t,jl.jsx=i,jl.jsxs=i,jl}var Ax;function Hk(){return Ax||(Ax=1,Yf.exports=Uk()),Yf.exports}var b=Hk(),Xf={exports:{}},Ve={};/** + * @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 Cx;function $k(){if(Cx)return Ve;Cx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function x(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function E(z,V,D){this.props=z,this.context=V,this.refs=S,this.updater=D||_}E.prototype.isReactComponent={},E.prototype.setState=function(z,V){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,V,"setState")},E.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function k(){}k.prototype=E.prototype;function w(z,V,D){this.props=z,this.context=V,this.refs=S,this.updater=D||_}var O=w.prototype=new k;O.constructor=w,N(O,E.prototype),O.isPureReactComponent=!0;var B=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function K(z,V,D){var F=D.ref;return{$$typeof:e,type:z,key:V,ref:F!==void 0?F:null,props:D}}function L(z,V){return K(z.type,V,z.props)}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function X(z){var V={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(D){return V[D]})}var G=/\/+/g;function C(z,V){return typeof z=="object"&&z!==null&&z.key!=null?X(""+z.key):V.toString(36)}function j(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(V){z.status==="pending"&&(z.status="fulfilled",z.value=V)},function(V){z.status==="pending"&&(z.status="rejected",z.reason=V)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function M(z,V,D,F,$){var Q=typeof z;(Q==="undefined"||Q==="boolean")&&(z=null);var J=!1;if(z===null)J=!0;else switch(Q){case"bigint":case"string":case"number":J=!0;break;case"object":switch(z.$$typeof){case e:case t:J=!0;break;case p:return J=z._init,M(J(z._payload),V,D,F,$)}}if(J)return $=$(z),J=F===""?"."+C(z,0):F,B($)?(D="",J!=null&&(D=J.replace(G,"$&/")+"/"),M($,V,D,"",function(ce){return ce})):$!=null&&(q($)&&($=L($,D+($.key==null||z&&z.key===$.key?"":(""+$.key).replace(G,"$&/")+"/")+J)),V.push($)),1;J=0;var W=F===""?".":F+":";if(B(z))for(var ee=0;ee>>1,A=M[Z];if(0>>1;Zs(D,Y))Fs($,D)?(M[Z]=$,M[F]=Y,Z=F):(M[Z]=D,M[V]=Y,Z=V);else if(Fs($,Y))M[Z]=$,M[F]=Y,Z=F;else break e}}return U}function s(M,U){var Y=M.sortIndex-U.sortIndex;return Y!==0?Y:M.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],f=[],p=1,m=null,y=3,x=!1,_=!1,N=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function O(M){for(var U=i(f);U!==null;){if(U.callback===null)a(f);else if(U.startTime<=M)a(f),U.sortIndex=U.expirationTime,t(h,U);else break;U=i(f)}}function B(M){if(N=!1,O(M),!_)if(i(h)!==null)_=!0,R||(R=!0,X());else{var U=i(f);U!==null&&j(B,U.startTime-M)}}var R=!1,H=-1,I=5,K=-1;function L(){return S?!0:!(e.unstable_now()-KM&&L());){var Z=m.callback;if(typeof Z=="function"){m.callback=null,y=m.priorityLevel;var A=Z(m.expirationTime<=M);if(M=e.unstable_now(),typeof A=="function"){m.callback=A,O(M),U=!0;break t}m===i(h)&&a(h),O(M)}else a(h);m=i(h)}if(m!==null)U=!0;else{var z=i(f);z!==null&&j(B,z.startTime-M),U=!1}}break e}finally{m=null,y=Y,x=!1}U=void 0}}finally{U?X():R=!1}}}var X;if(typeof w=="function")X=function(){w(q)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,C=G.port2;G.port1.onmessage=q,X=function(){C.postMessage(null)}}else X=function(){E(q,0)};function j(M,U){H=E(function(){M(e.unstable_now())},U)}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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125Z?(M.sortIndex=Y,t(f,M),i(h)===null&&M===i(f)&&(N?(k(H),H=-1):N=!0,j(B,Y-Z))):(M.sortIndex=A,t(h,M),_||x||(_=!0,R||(R=!0,X()))),M},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(M){var U=y;return function(){var Y=y;y=U;try{return M.apply(this,arguments)}finally{y=Y}}}})(Qf)),Qf}var Rx;function Fk(){return Rx||(Rx=1,Zf.exports=Pk()),Zf.exports}var Wf={exports:{}},kn={};/** + * @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 Dx;function Gk(){if(Dx)return kn;Dx=1;var e=po();function t(h){var f="https://react.dev/errors/"+h;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wf.exports=Gk(),Wf.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 zx;function Vk(){if(zx)return Il;zx=1;var e=Fk(),t=po(),i=W1();function a(n){var r="https://react.dev/errors/"+n;if(1A||(n.current=Z[A],Z[A]=null,A--)}function D(n,r){A++,Z[A]=n.current,n.current=r}var F=z(null),$=z(null),Q=z(null),J=z(null);function W(n,r){switch(D(Q,r),D($,n),D(F,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Z0(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Z0(r),n=Q0(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}V(F),D(F,n)}function ee(){V(F),V($),V(Q)}function ce(n){n.memoizedState!==null&&D(J,n);var r=F.current,l=Q0(r,n.type);r!==l&&(D($,n),D(F,l))}function fe(n){$.current===n&&(V(F),V($)),J.current===n&&(V(J),Rl._currentValue=Y)}var be,Ee;function Ne(n){if(be===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",Ee=-1)":-1g||te[u]!==le[g]){var he=` +`+te[u].replace(" at new "," at ");return n.displayName&&he.includes("")&&(he=he.replace("",n.displayName)),he}while(1<=u&&0<=g);break}}}finally{Le=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Ne(l):""}function st(n,r){switch(n.tag){case 26:case 27:case 5:return Ne(n.type);case 16:return Ne("Lazy");case 13:return n.child!==r&&r!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return $e(n.type,!1);case 11:return $e(n.type.render,!1);case 1:return $e(n.type,!0);case 31:return Ne("Activity");default:return""}}function Rt(n){try{var r="",l=null;do r+=st(n,l),l=n,n=n.return;while(n);return r}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}var Yt=Object.prototype.hasOwnProperty,Pt=e.unstable_scheduleCallback,Xt=e.unstable_cancelCallback,Vn=e.unstable_shouldYield,En=e.unstable_requestPaint,ct=e.unstable_now,It=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,xe=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,on=e.log,wn=e.unstable_setDisableYieldValue,Kt=null,Ct=null;function Wt(n){if(typeof on=="function"&&wn(n),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Kt,n)}catch{}}var ut=Math.clz32?Math.clz32:yr,zn=Math.log,cn=Math.LN2;function yr(n){return n>>>=0,n===0?32:31-(zn(n)/cn|0)|0}var nt=256,Yn=262144,Cn=4194304;function hn(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ne(n,r,l){var u=n.pendingLanes;if(u===0)return 0;var g=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var P=u&134217727;return P!==0?(u=P&~v,u!==0?g=hn(u):(T&=P,T!==0?g=hn(T):l||(l=P&~n,l!==0&&(g=hn(l))))):(P=u&~v,P!==0?g=hn(P):T!==0?g=hn(T):l||(l=u&~n,l!==0&&(g=hn(l)))),g===0?0:r!==0&&r!==g&&(r&v)===0&&(v=g&-g,l=r&-r,v>=l||v===32&&(l&4194048)!==0)?r:g}function pe(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function we(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pe(){var n=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),n}function St(n){for(var r=[],l=0;31>l;l++)r.push(n);return r}function gt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ce(n,r,l,u,g,v){var T=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var P=n.entanglements,te=n.expirationTimes,le=n.hiddenUpdates;for(l=T&~l;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Va=/[\n"\\]/g;function Sn(n){return n.replace(Va,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ca(n,r,l,u,g,v,T,P){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),r!=null?T==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+_t(r)):n.value!==""+_t(r)&&(n.value=""+_t(r)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),r!=null?kr(n,T,_t(r)):l!=null?kr(n,T,_t(l)):u!=null&&n.removeAttribute("value"),g==null&&v!=null&&(n.defaultChecked=!!v),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+_t(P):n.removeAttribute("name")}function _i(n,r,l,u,g,v,T,P){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){Nr(n);return}l=l!=null?""+_t(l):"",r=r!=null?""+_t(r):l,P||r===n.value||(n.value=r),n.defaultValue=r}u=u??g,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=P?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T),Nr(n)}function kr(n,r,l){r==="number"&&Sr(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function un(n,r,l,u){if(n=n.options,r){r={};for(var g=0;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(Qi)try{var Zs={};Object.defineProperty(Zs,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",Zs,Zs),window.removeEventListener("test",Zs,Zs)}catch{Vu=!1}var Cr=null,Yu=null,To=null;function Qm(){if(To)return To;var n,r=Yu,l=r.length,u,g="value"in Cr?Cr.value:Cr.textContent,v=g.length;for(n=0;n=Js),ig=" ",rg=!1;function ag(n,r){switch(n){case"keyup":return lS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Xa=!1;function cS(n,r){switch(n){case"compositionend":return sg(r);case"keypress":return r.which!==32?null:(rg=!0,ig);case"textInput":return n=r.data,n===ig&&rg?null:n;default:return null}}function uS(n,r){if(Xa)return n==="compositionend"||!Wu&&ag(n,r)?(n=Qm(),To=Yu=Cr=null,Xa=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:l,offset:r-n};n=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=pg(l)}}function gg(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?gg(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function bg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Sr(n.document);r instanceof n.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)n=r.contentWindow;else break;r=Sr(n.document)}return r}function td(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var xS=Qi&&"documentMode"in document&&11>=document.documentMode,Ka=null,nd=null,il=null,id=!1;function xg(n,r,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;id||Ka==null||Ka!==Sr(u)||(u=Ka,"selectionStart"in u&&td(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),il&&nl(il,u)||(il=u,u=vc(nd,"onSelect"),0>=T,g-=T,zi=1<<32-ut(r)+g|l<Ke?(at=De,De=null):at=De.sibling;var pt=oe(ae,De,se[Ke],me);if(pt===null){De===null&&(De=at);break}n&&De&&pt.alternate===null&&r(ae,De),ie=v(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt,De=at}if(Ke===se.length)return l(ae,De),lt&&Ji(ae,Ke),Ie;if(De===null){for(;KeKe?(at=De,De=null):at=De.sibling;var Qr=oe(ae,De,pt.value,me);if(Qr===null){De===null&&(De=at);break}n&&De&&Qr.alternate===null&&r(ae,De),ie=v(Qr,ie,Ke),ht===null?Ie=Qr:ht.sibling=Qr,ht=Qr,De=at}if(pt.done)return l(ae,De),lt&&Ji(ae,Ke),Ie;if(De===null){for(;!pt.done;Ke++,pt=se.next())pt=ge(ae,pt.value,me),pt!==null&&(ie=v(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt);return lt&&Ji(ae,Ke),Ie}for(De=u(De);!pt.done;Ke++,pt=se.next())pt=de(De,ae,Ke,pt.value,me),pt!==null&&(n&&pt.alternate!==null&&De.delete(pt.key===null?Ke:pt.key),ie=v(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt);return n&&De.forEach(function(Bk){return r(ae,Bk)}),lt&&Ji(ae,Ke),Ie}function Nt(ae,ie,se,me){if(typeof se=="object"&&se!==null&&se.type===N&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case x:e:{for(var Ie=se.key;ie!==null;){if(ie.key===Ie){if(Ie=se.type,Ie===N){if(ie.tag===7){l(ae,ie.sibling),me=g(ie,se.props.children),me.return=ae,ae=me;break e}}else if(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===I&&va(Ie)===ie.type){l(ae,ie.sibling),me=g(ie,se.props),cl(me,se),me.return=ae,ae=me;break e}l(ae,ie);break}else r(ae,ie);ie=ie.sibling}se.type===N?(me=ma(se.props.children,ae.mode,me,se.key),me.return=ae,ae=me):(me=Io(se.type,se.key,se.props,null,ae.mode,me),cl(me,se),me.return=ae,ae=me)}return T(ae);case _:e:{for(Ie=se.key;ie!==null;){if(ie.key===Ie)if(ie.tag===4&&ie.stateNode.containerInfo===se.containerInfo&&ie.stateNode.implementation===se.implementation){l(ae,ie.sibling),me=g(ie,se.children||[]),me.return=ae,ae=me;break e}else{l(ae,ie);break}else r(ae,ie);ie=ie.sibling}me=ud(se,ae.mode,me),me.return=ae,ae=me}return T(ae);case I:return se=va(se),Nt(ae,ie,se,me)}if(j(se))return Ae(ae,ie,se,me);if(X(se)){if(Ie=X(se),typeof Ie!="function")throw Error(a(150));return se=Ie.call(se),He(ae,ie,se,me)}if(typeof se.then=="function")return Nt(ae,ie,Fo(se),me);if(se.$$typeof===w)return Nt(ae,ie,Ho(ae,se),me);Go(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,ie!==null&&ie.tag===6?(l(ae,ie.sibling),me=g(ie,se),me.return=ae,ae=me):(l(ae,ie),me=cd(se,ae.mode,me),me.return=ae,ae=me),T(ae)):l(ae,ie)}return function(ae,ie,se,me){try{ol=0;var Ie=Nt(ae,ie,se,me);return ss=null,Ie}catch(De){if(De===as||De===qo)throw De;var ht=Kn(29,De,null,ae.mode);return ht.lanes=me,ht.return=ae,ht}finally{}}}var Ea=$g(!0),qg=$g(!1),Lr=!1;function Ed(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wd(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function zr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function jr(n,r,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(mt&2)!==0){var g=u.pending;return g===null?r.next=r:(r.next=g.next,g.next=r),u.pending=r,r=jo(n),Sg(n,null,l),r}return zo(n,u,r,l),jo(n)}function ul(n,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}function Nd(n,r){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var g=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var T={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?g=v=T:v=v.next=T,l=l.next}while(l!==null);v===null?g=v=r:v=v.next=r}else g=v=r;l={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=r:n.next=r,l.lastBaseUpdate=r}var Sd=!1;function dl(){if(Sd){var n=rs;if(n!==null)throw n}}function fl(n,r,l,u){Sd=!1;var g=n.updateQueue;Lr=!1;var v=g.firstBaseUpdate,T=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var te=P,le=te.next;te.next=null,T===null?v=le:T.next=le,T=te;var he=n.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==T&&(P===null?he.firstBaseUpdate=le:P.next=le,he.lastBaseUpdate=te))}if(v!==null){var ge=g.baseState;T=0,he=le=te=null,P=v;do{var oe=P.lane&-536870913,de=oe!==P.lane;if(de?(rt&oe)===oe:(u&oe)===oe){oe!==0&&oe===is&&(Sd=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ae=n,He=P;oe=r;var Nt=l;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){ge=Ae.call(Nt,ge,oe);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,oe=typeof Ae=="function"?Ae.call(Nt,ge,oe):Ae,oe==null)break e;ge=m({},ge,oe);break e;case 2:Lr=!0}}oe=P.callback,oe!==null&&(n.flags|=64,de&&(n.flags|=8192),de=g.callbacks,de===null?g.callbacks=[oe]:de.push(oe))}else de={lane:oe,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(le=he=de,te=ge):he=he.next=de,T|=oe;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;de=P,P=de.next,de.next=null,g.lastBaseUpdate=de,g.shared.pending=null}}while(!0);he===null&&(te=ge),g.baseState=te,g.firstBaseUpdate=le,g.lastBaseUpdate=he,v===null&&(g.shared.lanes=0),$r|=T,n.lanes=T,n.memoizedState=ge}}function Pg(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Fg(n,r){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;nv?v:8;var T=M.T,P={};M.T=P,Fd(n,!1,r,l);try{var te=g(),le=M.S;if(le!==null&&le(P,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=TS(te,u);ml(n,r,he,ei(n))}else ml(n,r,u,ei(n))}catch(ge){ml(n,r,{then:function(){},status:"rejected",reason:ge},ei())}finally{U.p=v,T!==null&&P.types!==null&&(T.types=P.types),M.T=T}}function DS(){}function qd(n,r,l,u){if(n.tag!==5)throw Error(a(476));var g=Eb(n).queue;_b(n,g,r,Y,l===null?DS:function(){return wb(n),l(u)})}function Eb(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:Y},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:l},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function wb(n){var r=Eb(n);r.next===null&&(r=n.alternate.memoizedState),ml(n,r.next.queue,{},ei())}function Pd(){return yn(Rl)}function Nb(){return Qt().memoizedState}function Sb(){return Qt().memoizedState}function LS(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var l=ei();n=zr(l);var u=jr(r,n,l);u!==null&&($n(u,r,l),ul(u,r,l)),r={cache:xd()},n.payload=r;return}r=r.return}}function zS(n,r,l){var u=ei();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},tc(n)?Tb(r,l):(l=ld(n,r,l,u),l!==null&&($n(l,n,u),Ab(l,r,u)))}function kb(n,r,l){var u=ei();ml(n,r,l,u)}function ml(n,r,l,u){var g={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(tc(n))Tb(r,g);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=r.lastRenderedReducer,v!==null))try{var T=r.lastRenderedState,P=v(T,l);if(g.hasEagerState=!0,g.eagerState=P,Xn(P,T))return zo(n,r,g,0),kt===null&&Lo(),!1}catch{}finally{}if(l=ld(n,r,g,u),l!==null)return $n(l,n,u),Ab(l,r,u),!0}return!1}function Fd(n,r,l,u){if(u={lane:2,revertLane:wf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},tc(n)){if(r)throw Error(a(479))}else r=ld(n,l,u,2),r!==null&&$n(r,n,2)}function tc(n){var r=n.alternate;return n===Xe||r!==null&&r===Xe}function Tb(n,r){os=Xo=!0;var l=n.pending;l===null?r.next=r:(r.next=l.next,l.next=r),n.pending=r}function Ab(n,r,l){if((l&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}var gl={readContext:yn,use:Qo,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};gl.useEffectEvent=Gt;var Cb={readContext:yn,use:Qo,useCallback:function(n,r){return Rn().memoizedState=[n,r===void 0?null:r],n},useContext:yn,useEffect:fb,useImperativeHandle:function(n,r,l){l=l!=null?l.concat([n]):null,Jo(4194308,4,gb.bind(null,r,n),l)},useLayoutEffect:function(n,r){return Jo(4194308,4,n,r)},useInsertionEffect:function(n,r){Jo(4,2,n,r)},useMemo:function(n,r){var l=Rn();r=r===void 0?null:r;var u=n();if(wa){Wt(!0);try{n()}finally{Wt(!1)}}return l.memoizedState=[u,r],u},useReducer:function(n,r,l){var u=Rn();if(l!==void 0){var g=l(r);if(wa){Wt(!0);try{l(r)}finally{Wt(!1)}}}else g=r;return u.memoizedState=u.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},u.queue=n,n=n.dispatch=zS.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var r=Rn();return n={current:n},r.memoizedState=n},useState:function(n){n=Id(n);var r=n.queue,l=kb.bind(null,Xe,r);return r.dispatch=l,[n.memoizedState,l]},useDebugValue:Hd,useDeferredValue:function(n,r){var l=Rn();return $d(l,n,r)},useTransition:function(){var n=Id(!1);return n=_b.bind(null,Xe,n.queue,!0,!1),Rn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,l){var u=Xe,g=Rn();if(lt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),kt===null)throw Error(a(349));(rt&127)!==0||Zg(u,r,l)}g.memoizedState=l;var v={value:l,getSnapshot:r};return g.queue=v,fb(Wg.bind(null,u,v,n),[n]),u.flags|=2048,us(9,{destroy:void 0},Qg.bind(null,u,v,l,r),null),l},useId:function(){var n=Rn(),r=kt.identifierPrefix;if(lt){var l=ji,u=zi;l=(u&~(1<<32-ut(u)-1)).toString(32)+l,r="_"+r+"R_"+l,l=Ko++,0<\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof u.is=="string"?T.createElement("select",{is:u.is}):T.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?T.createElement(g,{is:u.is}):T.createElement(g)}}v[Ut]=r,v[pn]=u;e:for(T=r.child;T!==null;){if(T.tag===5||T.tag===6)v.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===r)break e;for(;T.sibling===null;){if(T.return===null||T.return===r)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}r.stateNode=v;e:switch(_n(v,g,u),g){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ar(r)}}return Lt(r),af(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,l),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&ar(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(n=Q.current,ts(r)){if(n=r.stateNode,l=r.memoizedProps,u=null,g=xn,g!==null)switch(g.tag){case 27:case 5:u=g.memoizedProps}n[Ut]=r,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||X0(n.nodeValue,l)),n||Rr(r,!0)}else n=_c(n).createTextNode(u),n[Ut]=r,r.stateNode=n}return Lt(r),null;case 31:if(l=r.memoizedState,n===null||n.memoizedState!==null){if(u=ts(r),l!==null){if(n===null){if(!u)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Ut]=r}else ga(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),n=!1}else l=pd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return r.flags&256?(Qn(r),r):(Qn(r),null);if((r.flags&128)!==0)throw Error(a(558))}return Lt(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=ts(r),u!==null&&u.dehydrated!==null){if(n===null){if(!g)throw Error(a(318));if(g=r.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(a(317));g[Ut]=r}else ga(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),g=!1}else g=pd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return r.flags&256?(Qn(r),r):(Qn(r),null)}return Qn(r),(r.flags&128)!==0?(r.lanes=l,r):(l=u!==null,n=n!==null&&n.memoizedState!==null,l&&(u=r.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==g&&(u.flags|=2048)),l!==n&&l&&(r.child.flags|=8192),sc(r,r.updateQueue),Lt(r),null);case 4:return ee(),n===null&&Tf(r.stateNode.containerInfo),Lt(r),null;case 10:return tr(r.type),Lt(r),null;case 19:if(V(Zt),u=r.memoizedState,u===null)return Lt(r),null;if(g=(r.flags&128)!==0,v=u.rendering,v===null)if(g)xl(u,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=Yo(n),v!==null){for(r.flags|=128,xl(u,!1),n=v.updateQueue,r.updateQueue=n,sc(r,n),r.subtreeFlags=0,n=l,l=r.child;l!==null;)kg(l,n),l=l.sibling;return D(Zt,Zt.current&1|2),lt&&Ji(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&ct()>dc&&(r.flags|=128,g=!0,xl(u,!1),r.lanes=4194304)}else{if(!g)if(n=Yo(v),n!==null){if(r.flags|=128,g=!0,n=n.updateQueue,r.updateQueue=n,sc(r,n),xl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!lt)return Lt(r),null}else 2*ct()-u.renderingStartTime>dc&&l!==536870912&&(r.flags|=128,g=!0,xl(u,!1),r.lanes=4194304);u.isBackwards?(v.sibling=r.child,r.child=v):(n=u.last,n!==null?n.sibling=v:r.child=v,u.last=v)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=ct(),n.sibling=null,l=Zt.current,D(Zt,g?l&1|2:l&1),lt&&Ji(r,u.treeForkCount),n):(Lt(r),null);case 22:case 23:return Qn(r),Td(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(l&536870912)!==0&&(r.flags&128)===0&&(Lt(r),r.subtreeFlags&6&&(r.flags|=8192)):Lt(r),l=r.updateQueue,l!==null&&sc(r,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==l&&(r.flags|=2048),n!==null&&V(ya),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),tr(en),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function HS(n,r){switch(fd(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return tr(en),ee(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return fe(r),null;case 31:if(r.memoizedState!==null){if(Qn(r),r.alternate===null)throw Error(a(340));ga()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Qn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));ga()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return V(Zt),null;case 4:return ee(),null;case 10:return tr(r.type),null;case 22:case 23:return Qn(r),Td(),n!==null&&V(ya),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return tr(en),null;case 25:return null;default:return null}}function Jb(n,r){switch(fd(r),r.tag){case 3:tr(en),ee();break;case 26:case 27:case 5:fe(r);break;case 4:ee();break;case 31:r.memoizedState!==null&&Qn(r);break;case 13:Qn(r);break;case 19:V(Zt);break;case 10:tr(r.type);break;case 22:case 23:Qn(r),Td(),n!==null&&V(ya);break;case 24:tr(en)}}function yl(n,r){try{var l=r.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var g=u.next;l=g;do{if((l.tag&n)===n){u=void 0;var v=l.create,T=l.inst;u=v(),T.destroy=u}l=l.next}while(l!==g)}}catch(P){yt(r,r.return,P)}}function Ur(n,r,l){try{var u=r.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var v=g.next;u=v;do{if((u.tag&n)===n){var T=u.inst,P=T.destroy;if(P!==void 0){T.destroy=void 0,g=r;var te=l,le=P;try{le()}catch(he){yt(g,te,he)}}}u=u.next}while(u!==v)}}catch(he){yt(r,r.return,he)}}function e0(n){var r=n.updateQueue;if(r!==null){var l=n.stateNode;try{Fg(r,l)}catch(u){yt(n,n.return,u)}}}function t0(n,r,l){l.props=Na(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){yt(n,r,u)}}function vl(n,r){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof l=="function"?n.refCleanup=l(u):l.current=u}}catch(g){yt(n,r,g)}}function Ii(n,r){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(g){yt(n,r,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(g){yt(n,r,g)}else l.current=null}function n0(n){var r=n.type,l=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(g){yt(n,n.return,g)}}function sf(n,r,l){try{var u=n.stateNode;ok(u,n.type,l,r),u[pn]=r}catch(g){yt(n,n.return,g)}}function i0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Vr(n.type)||n.tag===4}function lf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||i0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Vr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function of(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(n),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=_e));else if(u!==4&&(u===27&&Vr(n.type)&&(l=n.stateNode,r=null),n=n.child,n!==null))for(of(n,r,l),n=n.sibling;n!==null;)of(n,r,l),n=n.sibling}function lc(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?l.insertBefore(n,r):l.appendChild(n);else if(u!==4&&(u===27&&Vr(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(lc(n,r,l),n=n.sibling;n!==null;)lc(n,r,l),n=n.sibling}function r0(n){var r=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,g=r.attributes;g.length;)r.removeAttributeNode(g[0]);_n(r,u,l),r[Ut]=n,r[pn]=l}catch(v){yt(n,n.return,v)}}var sr=!1,rn=!1,cf=!1,a0=typeof WeakSet=="function"?WeakSet:Set,gn=null;function $S(n,r){if(n=n.containerInfo,Mf=Ac,n=bg(n),td(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var g=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var T=0,P=-1,te=-1,le=0,he=0,ge=n,oe=null;t:for(;;){for(var de;ge!==l||g!==0&&ge.nodeType!==3||(P=T+g),ge!==v||u!==0&&ge.nodeType!==3||(te=T+u),ge.nodeType===3&&(T+=ge.nodeValue.length),(de=ge.firstChild)!==null;)oe=ge,ge=de;for(;;){if(ge===n)break t;if(oe===l&&++le===g&&(P=T),oe===v&&++he===u&&(te=T),(de=ge.nextSibling)!==null)break;ge=oe,oe=ge.parentNode}ge=de}l=P===-1||te===-1?null:{start:P,end:te}}else l=null}l=l||{start:0,end:0}}else l=null;for(Of={focusedElem:n,selectionRange:l},Ac=!1,gn=r;gn!==null;)if(r=gn,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,gn=n;else for(;gn!==null;){switch(r=gn,v=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l title"))),_n(v,u,l),v[Ut]=n,Ft(v),u=v;break e;case"link":var T=dx("link","href",g).get(u+(l.href||""));if(T){for(var P=0;PNt&&(T=Nt,Nt=He,He=T);var ae=mg(P,He),ie=mg(P,Nt);if(ae&&ie&&(de.rangeCount!==1||de.anchorNode!==ae.node||de.anchorOffset!==ae.offset||de.focusNode!==ie.node||de.focusOffset!==ie.offset)){var se=ge.createRange();se.setStart(ae.node,ae.offset),de.removeAllRanges(),He>Nt?(de.addRange(se),de.extend(ie.node,ie.offset)):(se.setEnd(ie.node,ie.offset),de.addRange(se))}}}}for(ge=[],de=P;de=de.parentNode;)de.nodeType===1&&ge.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;Pl?32:l,M.T=null,l=gf,gf=null;var v=Pr,T=dr;if(dn=0,ms=Pr=null,dr=0,(mt&6)!==0)throw Error(a(331));var P=mt;if(mt|=4,g0(v.current),h0(v,v.current,T,l),mt=P,kl(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Kt,v)}catch{}return!0}finally{U.p=g,M.T=u,L0(n,r)}}function j0(n,r,l){r=oi(l,r),r=Xd(n.stateNode,r,2),n=jr(n,r,2),n!==null&&(gt(n,2),Bi(n))}function yt(n,r,l){if(n.tag===3)j0(n,n,l);else for(;r!==null;){if(r.tag===3){j0(r,n,l);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(qr===null||!qr.has(u))){n=oi(l,n),l=Ib(2),u=jr(r,l,2),u!==null&&(Bb(l,u,r,n),gt(u,2),Bi(u));break}}r=r.return}}function vf(n,r,l){var u=n.pingCache;if(u===null){u=n.pingCache=new FS;var g=new Set;u.set(r,g)}else g=u.get(r),g===void 0&&(g=new Set,u.set(r,g));g.has(l)||(ff=!0,g.add(l),n=KS.bind(null,n,r,l),r.then(n,n))}function KS(n,r,l){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,kt===n&&(rt&l)===l&&(Vt===4||Vt===3&&(rt&62914560)===rt&&300>ct()-uc?(mt&2)===0&&gs(n,0):hf|=l,ps===rt&&(ps=0)),Bi(n)}function I0(n,r){r===0&&(r=Pe()),n=pa(n,r),n!==null&&(gt(n,r),Bi(n))}function ZS(n){var r=n.memoizedState,l=0;r!==null&&(l=r.retryLane),I0(n,l)}function QS(n,r){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,g=n.memoizedState;g!==null&&(l=g.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),I0(n,l)}function WS(n,r){return Pt(n,r)}var bc=null,xs=null,_f=!1,xc=!1,Ef=!1,Gr=0;function Bi(n){n!==xs&&n.next===null&&(xs===null?bc=xs=n:xs=xs.next=n),xc=!0,_f||(_f=!0,ek())}function kl(n,r){if(!Ef&&xc){Ef=!0;do for(var l=!1,u=bc;u!==null;){if(n!==0){var g=u.pendingLanes;if(g===0)var v=0;else{var T=u.suspendedLanes,P=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=g&~(T&~P),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,$0(u,v))}else v=rt,v=ne(u,u===kt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||pe(u,v)||(l=!0,$0(u,v));u=u.next}while(l);Ef=!1}}function JS(){B0()}function B0(){xc=_f=!1;var n=0;Gr!==0&&uk()&&(n=Gr);for(var r=ct(),l=null,u=bc;u!==null;){var g=u.next,v=U0(u,r);v===0?(u.next=null,l===null?bc=g:l.next=g,g===null&&(xs=l)):(l=u,(n!==0||(v&3)!==0)&&(xc=!0)),u=g}dn!==0&&dn!==5||kl(n),Gr!==0&&(Gr=0)}function U0(n,r){for(var l=n.suspendedLanes,u=n.pingedLanes,g=n.expirationTimes,v=n.pendingLanes&-62914561;0P)break;var he=te.transferSize,ge=te.initiatorType;he&&K0(ge)&&(te=te.responseEnd,T+=he*(te"u"?null:document;function lx(n,r,l){var u=ys;if(u&&typeof r=="string"&&r){var g=Sn(r);g='link[rel="'+n+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),sx.has(g)||(sx.add(g),n={rel:n,crossOrigin:l,href:r},u.querySelector(g)===null&&(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function yk(n){fr.D(n),lx("dns-prefetch",n,null)}function vk(n,r){fr.C(n,r),lx("preconnect",n,r)}function _k(n,r,l){fr.L(n,r,l);var u=ys;if(u&&n&&r){var g='link[rel="preload"][as="'+Sn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+Sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+Sn(l.imageSizes)+'"]')):g+='[href="'+Sn(n)+'"]';var v=g;switch(r){case"style":v=vs(n);break;case"script":v=_s(n)}pi.has(v)||(n=m({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:n,as:r},l),pi.set(v,n),u.querySelector(g)!==null||r==="style"&&u.querySelector(Ml(v))||r==="script"&&u.querySelector(Ol(v))||(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Ek(n,r){fr.m(n,r);var l=ys;if(l&&n){var u=r&&typeof r.as=="string"?r.as:"script",g='link[rel="modulepreload"][as="'+Sn(u)+'"][href="'+Sn(n)+'"]',v=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=_s(n)}if(!pi.has(v)&&(n=m({rel:"modulepreload",href:n},r),pi.set(v,n),l.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ol(v)))return}u=l.createElement("link"),_n(u,"link",n),Ft(u),l.head.appendChild(u)}}}function wk(n,r,l){fr.S(n,r,l);var u=ys;if(u&&n){var g=Di(u).hoistableStyles,v=vs(n);r=r||"default";var T=g.get(v);if(!T){var P={loading:0,preload:null};if(T=u.querySelector(Ml(v)))P.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":r},l),(l=pi.get(v))&&Bf(n,l);var te=T=u.createElement("link");Ft(te),_n(te,"link",n),te._p=new Promise(function(le,he){te.onload=le,te.onerror=he}),te.addEventListener("load",function(){P.loading|=1}),te.addEventListener("error",function(){P.loading|=2}),P.loading|=4,wc(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:P},g.set(v,T)}}}function Nk(n,r){fr.X(n,r);var l=ys;if(l&&n){var u=Di(l).hoistableScripts,g=_s(n),v=u.get(g);v||(v=l.querySelector(Ol(g)),v||(n=m({src:n,async:!0},r),(r=pi.get(g))&&Uf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(g,v))}}function Sk(n,r){fr.M(n,r);var l=ys;if(l&&n){var u=Di(l).hoistableScripts,g=_s(n),v=u.get(g);v||(v=l.querySelector(Ol(g)),v||(n=m({src:n,async:!0,type:"module"},r),(r=pi.get(g))&&Uf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(g,v))}}function ox(n,r,l,u){var g=(g=Q.current)?Ec(g):null;if(!g)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=vs(l.href),l=Di(g).hoistableStyles,u=l.get(r),u||(u={type:"style",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=vs(l.href);var v=Di(g).hoistableStyles,T=v.get(n);if(T||(g=g.ownerDocument||g,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=g.querySelector(Ml(n)))&&!v._p&&(T.instance=v,T.state.loading=5),pi.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},pi.set(n,l),v||kk(g,n,l,T.state))),r&&u===null)throw Error(a(528,""));return T}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=_s(l),l=Di(g).hoistableScripts,u=l.get(r),u||(u={type:"script",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function vs(n){return'href="'+Sn(n)+'"'}function Ml(n){return'link[rel="stylesheet"]['+n+"]"}function cx(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function kk(n,r,l,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),_n(r,"link",l),Ft(r),n.head.appendChild(r))}function _s(n){return'[src="'+Sn(n)+'"]'}function Ol(n){return"script[async]"+n}function ux(n,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+Sn(l.href)+'"]');if(u)return r.instance=u,Ft(u),u;var g=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ft(u),_n(u,"style",g),wc(u,l.precedence,n),r.instance=u;case"stylesheet":g=vs(l.href);var v=n.querySelector(Ml(g));if(v)return r.state.loading|=4,r.instance=v,Ft(v),v;u=cx(l),(g=pi.get(g))&&Bf(u,g),v=(n.ownerDocument||n).createElement("link"),Ft(v);var T=v;return T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(v,"link",u),r.state.loading|=4,wc(v,l.precedence,n),r.instance=v;case"script":return v=_s(l.src),(g=n.querySelector(Ol(v)))?(r.instance=g,Ft(g),g):(u=l,(g=pi.get(v))&&(u=m({},l),Uf(u,g)),n=n.ownerDocument||n,g=n.createElement("script"),Ft(g),_n(g,"link",u),n.head.appendChild(g),r.instance=g);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,wc(u,l.precedence,n));return r.instance}function wc(n,r,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,v=g,T=0;T title"):null)}function Tk(n,r,l){if(l===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function hx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Ak(n,r,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var g=vs(u.href),v=r.querySelector(Ml(g));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Sc.bind(n),r.then(n,n)),l.state.loading|=4,l.instance=v,Ft(v);return}v=r.ownerDocument||r,u=cx(u),(g=pi.get(g))&&Bf(u,g),v=v.createElement("link"),Ft(v);var T=v;T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(v,"link",u),l.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=Sc.bind(n),r.addEventListener("load",l),r.addEventListener("error",l))}}var Hf=0;function Ck(n,r){return n.stylesheets&&n.count===0&&Tc(n,n.stylesheets),0Hf?50:800)+r);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(g)}}:null}function Sc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var kc=null;function Tc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,kc=new Map,r.forEach(Mk,n),kc=null,Sc.call(n))}function Mk(n,r){if(!(r.state.loading&4)){var l=kc.get(n);if(l)var u=l.get(null);else{l=new Map,kc.set(n,l);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Kf.exports=Vk(),Kf.exports}var Xk=Yk();/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J1=(...e)=>e.filter((t,i,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===i).join(" ").trim();/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,a)=>a?a.toUpperCase():i.toLowerCase());/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ix=e=>{const t=Zk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Qk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jk=re.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},h)=>re.createElement("svg",{ref:h,...Qk,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:J1("lucide",s),...!o&&!Wk(d)&&{"aria-hidden":"true"},...d},[...c.map(([f,p])=>re.createElement(f,p)),...Array.isArray(o)?o:[o]]));/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Me=(e,t)=>{const i=re.forwardRef(({className:a,...s},o)=>re.createElement(Jk,{ref:o,iconNode:t,className:J1(`lucide-${Kk(Ix(e))}`,`lucide-${e}`,a),...s}));return i.displayName=Ix(e),i};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],t2=Me("arrow-left",e2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Su=Me("arrow-up-right",n2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const i2=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e_=Me("ban",i2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],a2=Me("bell-off",r2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Wp=Me("bot",s2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l2=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],t_=Me("brain",l2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o2=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],c2=Me("bug",o2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u2=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],d2=Me("calendar-clock",u2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f2=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],h2=Me("check-check",f2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ds=Me("check",p2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],n_=Me("chevron-down",m2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],b2=Me("chevron-right",g2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],i_=Me("circle-alert",x2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],r_=Me("circle-check-big",y2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_2=Me("circle-check",v2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],w2=Me("circle-dot",E2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],S2=Me("circle",N2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const k2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],a_=Me("clock",k2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T2=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],A2=Me("code",T2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],eo=Me("copy",C2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],O2=Me("crosshair",M2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const R2=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],D2=Me("database",R2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],z2=Me("eye",L2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j2=[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]],I2=Me("file-check-corner",j2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],s_=Me("file-text",B2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U2=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],l_=Me("flag",U2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H2=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],$2=Me("git-merge",H2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q2=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],Jp=Me("git-pull-request",q2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const P2=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],F2=Me("github",P2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G2=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],V2=Me("gitlab",G2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],em=Me("globe",Y2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Ls=Me("history",X2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Z2=Me("image",K2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q2=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],W2=Me("layers",Q2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],eT=Me("layout-dashboard",J2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],nT=Me("list-todo",tT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jf=Me("loader-circle",iT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rT=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],aT=Me("lock",rT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],lT=Me("log-out",sT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oT=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],tm=Me("mail",oT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Bx=Me("message-circle",cT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uT=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],dT=Me("message-square",uT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fT=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],hT=Me("network",fT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],mT=Me("pencil",pT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bT=Me("plus",gT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xT=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],yT=Me("puzzle",xT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vT=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],o_=Me("radar",vT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _T=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],ET=Me("radio",_T);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],NT=Me("refresh-cw",wT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ST=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],kT=Me("rocket",ST);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const TT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],AT=Me("rotate-ccw",TT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const CT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],c_=Me("search",CT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const MT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],OT=Me("shield-alert",MT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const RT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],nm=Me("shield-check",RT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const DT=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],LT=Me("sticky-note",DT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],u_=Me("terminal",zT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],IT=Me("trash-2",jT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const BT=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],UT=Me("triangle-alert",BT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const HT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],$T=Me("users",HT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qT=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],d_=Me("waypoints",qT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const PT=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],su=Me("wrench",PT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const FT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],f_=Me("x",FT),GT={open:{label:"Open",color:"bg-red-500/10 text-red-400 border-red-500/20",dotColor:"bg-red-500",description:"Newly discovered, awaiting triage"},in_progress:{label:"In Progress",color:"bg-blue-500/10 text-blue-400 border-blue-500/20",dotColor:"bg-blue-500",description:"Someone is working on this"},snoozed:{label:"Snoozed",color:"bg-purple-500/10 text-purple-400 border-purple-500/20",dotColor:"bg-purple-500",description:"Temporarily hidden until a follow-up date"},fixed:{label:"Fixed",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",dotColor:"bg-emerald-500",description:"This vulnerability has been fixed"},ignored:{label:"Ignored",color:"bg-gray-500/10 text-gray-400 border-gray-500/20",dotColor:"bg-gray-500",description:"Acknowledged but accepted"}},VT={trivial:{label:"Trivial",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20"},low:{label:"Low",color:"bg-blue-500/10 text-blue-400 border-blue-500/20"},medium:{label:"Medium",color:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20"},high:{label:"High",color:"bg-orange-500/10 text-orange-400 border-orange-500/20"}},h_={critical:"bg-red-500/20 text-red-500 border-red-500/30",high:"bg-orange-500/20 text-orange-500 border-orange-500/30",medium:"bg-yellow-500/20 text-yellow-500 border-yellow-500/30",low:"bg-blue-500/20 text-blue-500 border-blue-500/30"};function zc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const YT={js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",php:"php",cs:"csharp",cpp:"cpp",c:"c",sh:"bash",bash:"bash",sql:"sql",html:"html",css:"css",json:"json",yaml:"yaml",yml:"yaml",xml:"xml"};function XT(e){var i;if(!e)return null;const t=(i=e.split(".").pop())==null?void 0:i.toLowerCase();return t&&YT[t]||null}function im(e){switch(e){case"critical":return"bg-red-500";case"high":return"bg-orange-500";case"medium":return"bg-yellow-500";default:return"bg-blue-500"}}async function rm(e){try{await navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}const Ps="https://app.strix.ai/api/auth/signup";function qi(e){try{const t=JSON.stringify({event:"cta_clicked",cta:e});typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",t):fetch("/api/event",{method:"POST",body:t,keepalive:!0})}catch{}}function am({className:e=""}){return b.jsx("span",{className:`inline-flex items-center rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-[#aaa] ${e}`,style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:"Pro"})}function p_({text:e,children:t,className:i=""}){const[a,s]=re.useState(!1);return b.jsxs("span",{className:`relative inline-flex ${i}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&b.jsx("span",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 z-50 mb-2 w-max max-w-[240px] -translate-x-1/2 rounded-md px-2.5 py-1.5 text-xs text-[#ddd] shadow-lg",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e})]})}function Ux({item:e}){const t=e.icon;return b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi(e.slug),title:e.desc,className:"group block cursor-pointer rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-4 text-left transition-colors hover:border-[#444]",children:[b.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[b.jsx(t,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx(am,{}),b.jsx(Su,{className:"h-3.5 w-3.5 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]})]}),b.jsx("p",{className:"text-sm font-medium text-white",children:e.title}),b.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:e.desc})]})}function KT({item:e}){const t=e.icon;return b.jsx(p_,{text:e.desc,className:"w-full",children:b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi(e.slug),className:"group flex w-full items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm text-[#888] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",children:[b.jsx(t,{className:"h-4 w-4 flex-shrink-0 text-[#666] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"}),b.jsx("span",{className:"flex-1 truncate",children:e.title}),b.jsx(am,{})]})})}function Ms({label:e,desc:t,slug:i,icon:a}){return b.jsx(p_,{text:t,children:b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi(i),className:"group inline-flex items-center gap-2 rounded-lg border border-[#222] bg-[rgba(255,255,255,0.02)] px-3 py-2 text-sm text-[#aaa] transition-colors hover:border-[#444] hover:text-white",children:[b.jsx(a,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),b.jsx("span",{children:e}),b.jsx(am,{className:"ml-0.5"})]})})}function m_(e){var t,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t{const i=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),g_=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),lu="-",Hx=[],JT="arbitrary..",eA=e=>{const t=nA(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return tA(c);const d=c.split(lu),h=d[0]===""&&d.length>1?1:0;return b_(d,h,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=a[c],f=i[c];return h?f?QT(f,h):h:f||Hx}return i[c]||Hx}}},b_=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const s=e[t],o=i.nextPart.get(s);if(o){const f=b_(e,t+1,o);if(f)return f}const c=i.validators;if(c===null)return;const d=t===0?e.join(lu):e.slice(t).join(lu),h=c.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),a=t.slice(0,i);return a?JT+a:void 0})(),nA=e=>{const{theme:t,classGroups:i}=e;return iA(i,t)},iA=(e,t)=>{const i=g_();for(const a in e){const s=e[a];sm(s,i,a,t)}return i},sm=(e,t,i,a)=>{const s=e.length;for(let o=0;o{if(typeof e=="string"){aA(e,t,i);return}if(typeof e=="function"){sA(e,t,i,a);return}lA(e,t,i,a)},aA=(e,t,i)=>{const a=e===""?t:x_(t,e);a.classGroupId=i},sA=(e,t,i,a)=>{if(oA(e)){sm(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(WT(i,e))},lA=(e,t,i,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c{let i=e;const a=t.split(lu),s=a.length;for(let o=0;o"isThemeGetter"in e&&e.isThemeGetter===!0,cA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const s=(o,c)=>{i[o]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(o){let c=i[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return s(o,c),c},set(o,c){o in i?i[o]=c:s(o,c)}}},_p="!",$x=":",uA=[],qx=(e,t,i,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:s}),dA=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=s=>{const o=[];let c=0,d=0,h=0,f;const p=s.length;for(let N=0;Nh?f-h:void 0;return qx(o,x,y,_)};if(t){const s=t+$x,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):qx(uA,!1,c,void 0,!0)}if(i){const s=a;a=o=>i({className:o,parseClassName:s})}return a},fA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let s=[];for(let o=0;o0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},hA=e=>({cache:cA(e.cacheSize),parseClassName:dA(e),sortModifiers:fA(e),postfixLookupClassGroupIds:pA(e),...eA(e)}),pA=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let a=0;a{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],h=e.trim().split(mA);let f="";for(let p=h.length-1;p>=0;p-=1){const m=h[p],{isExternal:y,modifiers:x,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=i(m);if(y){f=m+(f.length>0?" "+f:f);continue}let E=!!S,k;if(E){const H=N.substring(0,S);k=a(H);const I=k&&c[k]?a(N):void 0;I&&I!==k&&(k=I,E=!1)}else k=a(N);if(!k){if(!E){f=m+(f.length>0?" "+f:f);continue}if(k=a(N),!k){f=m+(f.length>0?" "+f:f);continue}E=!1}const w=x.length===0?"":x.length===1?x[0]:o(x).join(":"),O=_?w+_p:w,B=O+k;if(d.indexOf(B)>-1)continue;d.push(B);const R=s(k,E);for(let H=0;H0?" "+f:f)}return f},bA=(...e)=>{let t=0,i,a,s="";for(;t{if(typeof e=="string")return e;let t,i="";for(let a=0;a{let i,a,s,o;const c=h=>{const f=t.reduce((p,m)=>m(p),e());return i=hA(f),a=i.cache.get,s=i.cache.set,o=d,d(h)},d=h=>{const f=a(h);if(f)return f;const p=gA(h,i);return s(h,p),p};return o=c,(...h)=>o(bA(...h))},yA=[],fn=e=>{const t=i=>i[e]||yA;return t.isThemeGetter=!0,t},v_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,__=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_A=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,NA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,SA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wr=e=>vA.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Ui=e=>!!e&&Number.isInteger(Number(e)),eh=e=>e.endsWith("%")&&We(e.slice(0,-1)),hr=e=>_A.test(e),E_=()=>!0,kA=e=>EA.test(e)&&!wA.test(e),lm=()=>!1,TA=e=>NA.test(e),AA=e=>SA.test(e),CA=e=>!ke(e)&&!Te(e),MA=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),OA=e=>aa(e,S_,lm),ke=e=>v_.test(e),Ta=e=>aa(e,k_,kA),Px=e=>aa(e,UA,We),RA=e=>aa(e,A_,E_),DA=e=>aa(e,T_,lm),Fx=e=>aa(e,w_,lm),LA=e=>aa(e,N_,AA),jc=e=>aa(e,C_,TA),Te=e=>__.test(e),Bl=e=>$a(e,k_),zA=e=>$a(e,T_),Gx=e=>$a(e,w_),jA=e=>$a(e,S_),IA=e=>$a(e,N_),Ic=e=>$a(e,C_,!0),BA=e=>$a(e,A_,!0),aa=(e,t,i)=>{const a=v_.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},$a=(e,t,i=!1)=>{const a=__.exec(e);return a?a[1]?t(a[1]):i:!1},w_=e=>e==="position"||e==="percentage",N_=e=>e==="image"||e==="url",S_=e=>e==="length"||e==="size"||e==="bg-size",k_=e=>e==="length",UA=e=>e==="number",T_=e=>e==="family-name",A_=e=>e==="number"||e==="weight",C_=e=>e==="shadow",HA=()=>{const e=fn("color"),t=fn("font"),i=fn("text"),a=fn("font-weight"),s=fn("tracking"),o=fn("leading"),c=fn("breakpoint"),d=fn("container"),h=fn("spacing"),f=fn("radius"),p=fn("shadow"),m=fn("inset-shadow"),y=fn("text-shadow"),x=fn("drop-shadow"),_=fn("blur"),N=fn("perspective"),S=fn("aspect"),E=fn("ease"),k=fn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...O(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],I=()=>[Te,ke,h],K=()=>[Wr,"full","auto",...I()],L=()=>[Ui,"none","subgrid",Te,ke],q=()=>["auto",{span:["full",Ui,Te,ke]},Ui,Te,ke],X=()=>[Ui,"auto",Te,ke],G=()=>["auto","min","max","fr",Te,ke],C=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...I()],U=()=>[Wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Y=()=>[Wr,"screen","full","dvw","lvw","svw","min","max","fit",...I()],Z=()=>[Wr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],A=()=>[e,Te,ke],z=()=>[...O(),Gx,Fx,{position:[Te,ke]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",jA,OA,{size:[Te,ke]}],F=()=>[eh,Bl,Ta],$=()=>["","none","full",f,Te,ke],Q=()=>["",We,Bl,Ta],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[We,eh,Gx,Fx],ce=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],be=()=>["none",We,Te,ke],Ee=()=>[We,Te,ke],Ne=()=>[Wr,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hr],breakpoint:[hr],color:[E_],container:[hr],"drop-shadow":[hr],ease:["in","out","in-out"],font:[CA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hr],shadow:[hr],spacing:["px",We],text:[hr],"text-shadow":[hr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wr,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[MA],columns:[{columns:[We,ke,Te,d]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Ui,"auto",Te,ke]}],basis:[{basis:[Wr,"full","auto",d,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,Wr,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Ui,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...C(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...C()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":C()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...Z()]}],"min-block-size":[{"min-block":["auto",...Z()]}],"max-block-size":[{"max-block":["none",...Z()]}],w:[{w:[d,"screen",...U()]}],"min-w":[{"min-w":[d,"screen","none",...U()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",i,Bl,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,BA,RA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eh,ke]}],"font-family":[{font:[zA,DA,t]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Te,ke]}],"line-clamp":[{"line-clamp":[We,"none",Te,Px]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",Te,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,Ta]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[We,"auto",Te,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[Ui,Te,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ui,Te,ke],radial:["",Te,ke],conic:[Ui,Te,ke]},IA,LA]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,Bl,Ta]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",p,Ic,jc]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",m,Ic,jc]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[We,Ta]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",y,Ic,jc]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[We,Te,ke]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Te,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,ke]}],filter:[{filter:["","none",Te,ke]}],blur:[{blur:ce()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",x,Ic,jc]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",We,Te,ke]}],"hue-rotate":[{"hue-rotate":[We,Te,ke]}],invert:[{invert:["",We,Te,ke]}],saturate:[{saturate:[We,Te,ke]}],sepia:[{sepia:["",We,Te,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,ke]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[We,Te,ke]}],"backdrop-contrast":[{"backdrop-contrast":[We,Te,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,Te,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,Te,ke]}],"backdrop-invert":[{"backdrop-invert":["",We,Te,ke]}],"backdrop-opacity":[{"backdrop-opacity":[We,Te,ke]}],"backdrop-saturate":[{"backdrop-saturate":[We,Te,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",We,Te,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",Te,ke]}],ease:[{ease:["linear","initial",E,Te,ke]}],delay:[{delay:[We,Te,ke]}],animate:[{animate:["none",k,Te,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Te,ke]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[Te,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],zoom:[{zoom:[Ui,Te,ke]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te,ke]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[We,Bl,Ta,Px]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$A=xA(HA);function Bc(...e){return $A(ZT(e))}function qA(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Ep(e){const t=new Date(e),a=Math.floor((new Date().getTime()-t.getTime())/1e3);return a<60?"just now":a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:qA(e)}function PA(e){return`STRIX-${e}`}function FA(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const GA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YA={};function Vx(e,t){return(YA.jsx?VA:GA).test(e)}const XA=/[ \t\n\f\r]/g;function KA(e){return typeof e=="object"?e.type==="text"?Yx(e.value):!1:Yx(e)}function Yx(e){return e.replace(XA,"")===""}class mo{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}mo.prototype.normal={};mo.prototype.property={};mo.prototype.space=void 0;function M_(e,t){const i={},a={};for(const s of e)Object.assign(i,s.property),Object.assign(a,s.normal);return new mo(i,a,t)}function wp(e){return e.toLowerCase()}class Gn{constructor(t,i){this.attribute=i,this.property=t}}Gn.prototype.attribute="";Gn.prototype.booleanish=!1;Gn.prototype.boolean=!1;Gn.prototype.commaOrSpaceSeparated=!1;Gn.prototype.commaSeparated=!1;Gn.prototype.defined=!1;Gn.prototype.mustUseProperty=!1;Gn.prototype.number=!1;Gn.prototype.overloadedBoolean=!1;Gn.prototype.property="";Gn.prototype.spaceSeparated=!1;Gn.prototype.space=void 0;let ZA=0;const Ge=qa(),an=qa(),Np=qa(),ve=qa(),Tt=qa(),Ra=qa(),ti=qa();function qa(){return 2**++ZA}const Sp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:an,commaOrSpaceSeparated:ti,commaSeparated:Ra,number:ve,overloadedBoolean:Np,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),th=Object.keys(Sp);class om extends Gn{constructor(t,i,a,s){let o=-1;if(super(t,i),Xx(this,"space",s),typeof a=="number")for(;++o4&&i.slice(0,4)==="data"&&tC.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Kx,rC);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Kx.test(o)){let c=o.replace(eC,iC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=om}return new s(a,t)}function iC(e){return"-"+e.toLowerCase()}function rC(e){return e.charAt(1).toUpperCase()}const aC=M_([O_,QA,L_,z_,j_],"html"),cm=M_([O_,WA,L_,z_,j_],"svg");function sC(e){return e.join(" ").trim()}var ws={},nh,Zx;function lC(){if(Zx)return nh;Zx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=` +`,f="/",p="*",m="",y="comment",x="declaration";function _(S,E){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];E=E||{};var k=1,w=1;function O(C){var j=C.match(t);j&&(k+=j.length);var M=C.lastIndexOf(h);w=~M?C.length-M:w+C.length}function B(){var C={line:k,column:w};return function(j){return j.position=new R(C),K(),j}}function R(C){this.start=C,this.end={line:k,column:w},this.source=E.source}R.prototype.content=S;function H(C){var j=new Error(E.source+":"+k+":"+w+": "+C);if(j.reason=C,j.filename=E.source,j.line=k,j.column=w,j.source=S,!E.silent)throw j}function I(C){var j=C.exec(S);if(j){var M=j[0];return O(M),S=S.slice(M.length),j}}function K(){I(i)}function L(C){var j;for(C=C||[];j=q();)j!==!1&&C.push(j);return C}function q(){var C=B();if(!(f!=S.charAt(0)||p!=S.charAt(1))){for(var j=2;m!=S.charAt(j)&&(p!=S.charAt(j)||f!=S.charAt(j+1));)++j;if(j+=2,m===S.charAt(j-1))return H("End of comment missing");var M=S.slice(2,j-2);return w+=2,O(M),S=S.slice(j),w+=2,C({type:y,comment:M})}}function X(){var C=B(),j=I(a);if(j){if(q(),!I(s))return H("property missing ':'");var M=I(o),U=C({type:x,property:N(j[0].replace(e,m)),value:M?N(M[0].replace(e,m)):m});return I(c),U}}function G(){var C=[];L(C);for(var j;j=X();)j!==!1&&(C.push(j),L(C));return C}return K(),G()}function N(S){return S?S.replace(d,m):m}return nh=_,nh}var Qx;function oC(){if(Qx)return ws;Qx=1;var e=ws&&ws.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=i;const t=e(lC());function i(a,s){let o=null;if(!a||typeof a!="string")return o;const c=(0,t.default)(a),d=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:f,value:p}=h;d?s(f,p,h):p&&(o=o||{},o[f]=p)}),o}return ws}var Ul={},Wx;function cC(){if(Wx)return Ul;Wx=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(f){return!f||i.test(f)||e.test(f)},c=function(f,p){return p.toUpperCase()},d=function(f,p){return"".concat(p,"-")},h=function(f,p){return p===void 0&&(p={}),o(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(s,d):f=f.replace(a,d),f.replace(t,c))};return Ul.camelCase=h,Ul}var Hl,Jx;function uC(){if(Jx)return Hl;Jx=1;var e=Hl&&Hl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(oC()),i=cC();function a(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,h){d&&h&&(c[(0,i.camelCase)(d,o)]=h)}),c}return a.default=a,Hl=a,Hl}var dC=uC();const fC=ho(dC),I_=B_("end"),um=B_("start");function B_(e){return t;function t(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function hC(e){const t=um(e),i=I_(e);if(t&&i)return{start:t,end:i}}function Kl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ey(e.position):"start"in e||"end"in e?ey(e):"line"in e||"column"in e?kp(e):""}function kp(e){return ty(e&&e.line)+":"+ty(e&&e.column)}function ey(e){return kp(e&&e.start)+"-"+kp(e&&e.end)}function ty(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let s="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof t=="string"?s=t:!o.cause&&t&&(c=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?o.ruleId=a:(o.source=a.slice(0,h),o.ruleId=a.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=Kl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="";An.prototype.name="";An.prototype.reason="";An.prototype.message="";An.prototype.stack="";An.prototype.column=void 0;An.prototype.line=void 0;An.prototype.ancestors=void 0;An.prototype.cause=void 0;An.prototype.fatal=void 0;An.prototype.place=void 0;An.prototype.ruleId=void 0;An.prototype.source=void 0;const dm={}.hasOwnProperty,pC=new Map,mC=/[A-Z]/g,gC=new Set(["table","tbody","thead","tfoot","tr"]),bC=new Set(["td","th"]),U_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=kC(i,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");a=SC(i,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?cm:aC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=H_(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function H_(e,t,i){if(t.type==="element")return yC(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return vC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return EC(e,t,i);if(t.type==="mdxjsEsm")return _C(e,t);if(t.type==="root")return wC(e,t,i);if(t.type==="text")return NC(e,t)}function yC(e,t,i){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=cm,e.schema=s),e.ancestors.push(t);const o=q_(e,t.tagName,!1),c=TC(e,t);let d=hm(e,t);return gC.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!KA(h):!0})),$_(e,c,o,t),fm(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function vC(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}to(e,t.position)}function _C(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);to(e,t.position)}function EC(e,t,i){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=cm,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:q_(e,t.name,!0),c=AC(e,t),d=hm(e,t);return $_(e,c,o,t),fm(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function wC(e,t,i){const a={};return fm(a,hm(e,t)),e.create(t,e.Fragment,a,i)}function NC(e,t){return t.value}function $_(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function fm(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function SC(e,t,i){return a;function a(s,o,c,d){const f=Array.isArray(c.children)?i:t;return d?f(o,c,d):f(o,c)}}function kC(e,t){return i;function i(a,s,o,c){const d=Array.isArray(o.children),h=um(a);return t(s,o,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function TC(e,t){const i={};let a,s;for(s in t.properties)if(s!=="children"&&dm.call(t.properties,s)){const o=CC(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&bC.has(t.tagName)?a=d:i[c]=d}}if(a){const o=i.style||(i.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function AC(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const o=a.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else to(e,t.position);else{const s=a.name;let o;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,o=e.evaluater.evaluateExpression(d.expression)}else to(e,t.position);else o=a.value===null?!0:a.value;i[s]=o}return i}function hm(e,t){const i=[];let a=-1;const s=e.passKeys?new Map:pC;for(;++as?0:s+t:t=t>s?s:t,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(t,i),e.splice(...c);else for(i&&e.splice(t,i);o0?(ii(e,e.length,0,t),e):t}const ry={}.hasOwnProperty;function F_(e){const t={};let i=-1;for(;++i13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dn=sa(/[A-Za-z]/),Tn=sa(/[\dA-Za-z]/),BC=sa(/[#-'*+\--9=?A-Z^-~]/);function ou(e){return e!==null&&(e<32||e===127)}const Tp=sa(/\d/),UC=sa(/[\dA-Fa-f]/),HC=sa(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function At(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const ku=sa(new RegExp("\\p{P}|\\p{S}","u")),za=sa(/\s/);function sa(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Gs(e){const t=[];let i=-1,a=0,s=0;for(;++i55295&&o<57344){const d=e.charCodeAt(i+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(t.push(e.slice(a,i),encodeURIComponent(c)),a=i+s+1,c=""),s&&(i+=s,s=0)}return t.join("")+e.slice(a)}function ot(e,t,i,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(h){return tt(h)?(e.enter(i),d(h)):t(h)}function d(h){return tt(h)&&o++c))return;const H=t.events.length;let I=H,K,L;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(K){L=t.events[I][1].end;break}K=!0}for(E(a),R=H;Rw;){const B=i[O];t.containerState=B[1],B[0].exit.call(t,e)}i.length=w}function k(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function GC(e,t,i){return ot(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function zs(e){if(e===null||At(e)||za(e))return 1;if(ku(e))return 2}function Tu(e,t,i){const a=[];let s=-1;for(;++s1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const m={...e[a][1].end},y={...e[i][1].start};sy(m,-h),sy(y,h),c={type:h>1?"strongSequence":"emphasisSequence",start:m,end:{...e[a][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:y},o={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},f=[],e[a][1].end.offset-e[a][1].start.offset&&(f=mi(f,[["enter",e[a][1],t],["exit",e[a][1],t]])),f=mi(f,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",o,t]]),f=mi(f,Tu(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),f=mi(f,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[i][1].end.offset-e[i][1].start.offset?(p=2,f=mi(f,[["enter",e[i][1],t],["exit",e[i][1],t]])):p=0,ii(e,a-1,i-a+3,f),i=a+f.length-p-2;break}}for(i=-1;++i0&&tt(R)?ot(e,k,"linePrefix",o+1)(R):k(R)}function k(R){return R===null||Be(R)?e.check(ly,N,O)(R):(e.enter("codeFlowValue"),w(R))}function w(R){return R===null||Be(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),w)}function O(R){return e.exit("codeFenced"),t(R)}function B(R,H,I){let K=0;return L;function L(j){return R.enter("lineEnding"),R.consume(j),R.exit("lineEnding"),q}function q(j){return R.enter("codeFencedFence"),tt(j)?ot(R,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):X(j)}function X(j){return j===d?(R.enter("codeFencedFenceSequence"),G(j)):I(j)}function G(j){return j===d?(K++,R.consume(j),G):K>=c?(R.exit("codeFencedFenceSequence"),tt(j)?ot(R,C,"whitespace")(j):C(j)):I(j)}function C(j){return j===null||Be(j)?(R.exit("codeFencedFence"),H(j)):I(j)}}}function iM(e,t,i){const a=this;return s;function s(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const rh={name:"codeIndented",tokenize:aM},rM={partial:!0,tokenize:sM};function aM(e,t,i){const a=this;return s;function s(f){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(f)}function o(f){const p=a.events[a.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(f):i(f)}function c(f){return f===null?h(f):Be(f)?e.attempt(rM,c,h)(f):(e.enter("codeFlowValue"),d(f))}function d(f){return f===null||Be(f)?(e.exit("codeFlowValue"),c(f)):(e.consume(f),d)}function h(f){return e.exit("codeIndented"),t(f)}}function sM(e,t,i){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?i(c):Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):ot(e,o,"linePrefix",5)(c)}function o(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Be(c)?s(c):i(c)}}const lM={name:"codeText",previous:cM,resolve:oM,tokenize:uM};function oM(e){let t=e.length-4,i=3,a,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=i;++a=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 tthis.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,i,a){const s=i||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&$l(this.left,a),o.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),$l(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$l(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=4?t(c):e.interrupt(a.parser.constructs.flow,i,t)(c)}}function Z_(e,t,i,a,s,o,c,d,h){const f=h||Number.POSITIVE_INFINITY;let p=0;return m;function m(E){return E===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(E),e.exit(o),y):E===null||E===32||E===41||ou(E)?i(E):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(E))}function y(E){return E===62?(e.enter(o),e.consume(E),e.exit(o),e.exit(s),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===62?(e.exit("chunkString"),e.exit(d),y(E)):E===null||E===60||Be(E)?i(E):(e.consume(E),E===92?_:x)}function _(E){return E===60||E===62||E===92?(e.consume(E),x):x(E)}function N(E){return!p&&(E===null||E===41||At(E))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(E)):p999||x===null||x===91||x===93&&!h||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(e.exit(o),e.enter(s),e.consume(x),e.exit(s),e.exit(a),t):Be(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||x===91||x===93||Be(x)||d++>999?(e.exit("chunkString"),p(x)):(e.consume(x),h||(h=!tt(x)),x===92?y:m)}function y(x){return x===91||x===92||x===93?(e.consume(x),d++,m):m(x)}}function W_(e,t,i,a,s,o){let c;return d;function d(y){return y===34||y===39||y===40?(e.enter(a),e.enter(s),e.consume(y),e.exit(s),c=y===40?41:y,h):i(y)}function h(y){return y===c?(e.enter(s),e.consume(y),e.exit(s),e.exit(a),t):(e.enter(o),f(y))}function f(y){return y===c?(e.exit(o),h(c)):y===null?i(y):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),ot(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===c||y===null||Be(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?m:p)}function m(y){return y===c||y===92?(e.consume(y),p):p(y)}}function Zl(e,t){let i;return a;function a(s){return Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,a):tt(s)?ot(e,a,i?"linePrefix":"lineSuffix")(s):t(s)}}const xM={name:"definition",tokenize:vM},yM={partial:!0,tokenize:_M};function vM(e,t,i){const a=this;let s;return o;function o(x){return e.enter("definition"),c(x)}function c(x){return Q_.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return s=Ci(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),h):i(x)}function h(x){return At(x)?Zl(e,f)(x):f(x)}function f(x){return Z_(e,p,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function p(x){return e.attempt(yM,m,m)(x)}function m(x){return tt(x)?ot(e,y,"whitespace")(x):y(x)}function y(x){return x===null||Be(x)?(e.exit("definition"),a.parser.defined.push(s),t(x)):i(x)}}function _M(e,t,i){return a;function a(d){return At(d)?Zl(e,s)(d):i(d)}function s(d){return W_(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return tt(d)?ot(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Be(d)?t(d):i(d)}}const EM={name:"hardBreakEscape",tokenize:wM};function wM(e,t,i){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Be(o)?(e.exit("hardBreakEscape"),t(o)):i(o)}}const NM={name:"headingAtx",resolve:SM,tokenize:kM};function SM(e,t){let i=e.length-2,a=3,s,o;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},o={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ii(e,a,i-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function kM(e,t,i){let a=0;return s;function s(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),c(p)}function c(p){return p===35&&a++<6?(e.consume(p),c):p===null||At(p)?(e.exit("atxHeadingSequence"),d(p)):i(p)}function d(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||Be(p)?(e.exit("atxHeading"),t(p)):tt(p)?ot(e,d,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),d(p))}function f(p){return p===null||p===35||At(p)?(e.exit("atxHeadingText"),d(p)):(e.consume(p),f)}}const TM=["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"],cy=["pre","script","style","textarea"],AM={concrete:!0,name:"htmlFlow",resolveTo:OM,tokenize:RM},CM={partial:!0,tokenize:LM},MM={partial:!0,tokenize:DM};function OM(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 RM(e,t,i){const a=this;let s,o,c,d,h;return f;function f(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),m}function m(D){return D===33?(e.consume(D),y):D===47?(e.consume(D),o=!0,N):D===63?(e.consume(D),s=3,a.interrupt?t:A):Dn(D)?(e.consume(D),c=String.fromCharCode(D),S):i(D)}function y(D){return D===45?(e.consume(D),s=2,x):D===91?(e.consume(D),s=5,d=0,_):Dn(D)?(e.consume(D),s=4,a.interrupt?t:A):i(D)}function x(D){return D===45?(e.consume(D),a.interrupt?t:A):i(D)}function _(D){const F="CDATA[";return D===F.charCodeAt(d++)?(e.consume(D),d===F.length?a.interrupt?t:X:_):i(D)}function N(D){return Dn(D)?(e.consume(D),c=String.fromCharCode(D),S):i(D)}function S(D){if(D===null||D===47||D===62||At(D)){const F=D===47,$=c.toLowerCase();return!F&&!o&&cy.includes($)?(s=1,a.interrupt?t(D):X(D)):TM.includes(c.toLowerCase())?(s=6,F?(e.consume(D),E):a.interrupt?t(D):X(D)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(D):o?k(D):w(D))}return D===45||Tn(D)?(e.consume(D),c+=String.fromCharCode(D),S):i(D)}function E(D){return D===62?(e.consume(D),a.interrupt?t:X):i(D)}function k(D){return tt(D)?(e.consume(D),k):L(D)}function w(D){return D===47?(e.consume(D),L):D===58||D===95||Dn(D)?(e.consume(D),O):tt(D)?(e.consume(D),w):L(D)}function O(D){return D===45||D===46||D===58||D===95||Tn(D)?(e.consume(D),O):B(D)}function B(D){return D===61?(e.consume(D),R):tt(D)?(e.consume(D),B):w(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?i(D):D===34||D===39?(e.consume(D),h=D,H):tt(D)?(e.consume(D),R):I(D)}function H(D){return D===h?(e.consume(D),h=null,K):D===null||Be(D)?i(D):(e.consume(D),H)}function I(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||At(D)?B(D):(e.consume(D),I)}function K(D){return D===47||D===62||tt(D)?w(D):i(D)}function L(D){return D===62?(e.consume(D),q):i(D)}function q(D){return D===null||Be(D)?X(D):tt(D)?(e.consume(D),q):i(D)}function X(D){return D===45&&s===2?(e.consume(D),M):D===60&&s===1?(e.consume(D),U):D===62&&s===4?(e.consume(D),z):D===63&&s===3?(e.consume(D),A):D===93&&s===5?(e.consume(D),Z):Be(D)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(CM,V,G)(D)):D===null||Be(D)?(e.exit("htmlFlowData"),G(D)):(e.consume(D),X)}function G(D){return e.check(MM,C,V)(D)}function C(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),j}function j(D){return D===null||Be(D)?G(D):(e.enter("htmlFlowData"),X(D))}function M(D){return D===45?(e.consume(D),A):X(D)}function U(D){return D===47?(e.consume(D),c="",Y):X(D)}function Y(D){if(D===62){const F=c.toLowerCase();return cy.includes(F)?(e.consume(D),z):X(D)}return Dn(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),Y):X(D)}function Z(D){return D===93?(e.consume(D),A):X(D)}function A(D){return D===62?(e.consume(D),z):D===45&&s===2?(e.consume(D),A):X(D)}function z(D){return D===null||Be(D)?(e.exit("htmlFlowData"),V(D)):(e.consume(D),z)}function V(D){return e.exit("htmlFlow"),t(D)}}function DM(e,t,i){const a=this;return s;function s(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):i(c)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function LM(e,t,i){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(go,t,i)}}const zM={name:"htmlText",tokenize:jM};function jM(e,t,i){const a=this;let s,o,c;return d;function d(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),h}function h(A){return A===33?(e.consume(A),f):A===47?(e.consume(A),B):A===63?(e.consume(A),w):Dn(A)?(e.consume(A),I):i(A)}function f(A){return A===45?(e.consume(A),p):A===91?(e.consume(A),o=0,_):Dn(A)?(e.consume(A),k):i(A)}function p(A){return A===45?(e.consume(A),x):i(A)}function m(A){return A===null?i(A):A===45?(e.consume(A),y):Be(A)?(c=m,U(A)):(e.consume(A),m)}function y(A){return A===45?(e.consume(A),x):m(A)}function x(A){return A===62?M(A):A===45?y(A):m(A)}function _(A){const z="CDATA[";return A===z.charCodeAt(o++)?(e.consume(A),o===z.length?N:_):i(A)}function N(A){return A===null?i(A):A===93?(e.consume(A),S):Be(A)?(c=N,U(A)):(e.consume(A),N)}function S(A){return A===93?(e.consume(A),E):N(A)}function E(A){return A===62?M(A):A===93?(e.consume(A),E):N(A)}function k(A){return A===null||A===62?M(A):Be(A)?(c=k,U(A)):(e.consume(A),k)}function w(A){return A===null?i(A):A===63?(e.consume(A),O):Be(A)?(c=w,U(A)):(e.consume(A),w)}function O(A){return A===62?M(A):w(A)}function B(A){return Dn(A)?(e.consume(A),R):i(A)}function R(A){return A===45||Tn(A)?(e.consume(A),R):H(A)}function H(A){return Be(A)?(c=H,U(A)):tt(A)?(e.consume(A),H):M(A)}function I(A){return A===45||Tn(A)?(e.consume(A),I):A===47||A===62||At(A)?K(A):i(A)}function K(A){return A===47?(e.consume(A),M):A===58||A===95||Dn(A)?(e.consume(A),L):Be(A)?(c=K,U(A)):tt(A)?(e.consume(A),K):M(A)}function L(A){return A===45||A===46||A===58||A===95||Tn(A)?(e.consume(A),L):q(A)}function q(A){return A===61?(e.consume(A),X):Be(A)?(c=q,U(A)):tt(A)?(e.consume(A),q):K(A)}function X(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(e.consume(A),s=A,G):Be(A)?(c=X,U(A)):tt(A)?(e.consume(A),X):(e.consume(A),C)}function G(A){return A===s?(e.consume(A),s=void 0,j):A===null?i(A):Be(A)?(c=G,U(A)):(e.consume(A),G)}function C(A){return A===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||At(A)?K(A):(e.consume(A),C)}function j(A){return A===47||A===62||At(A)?K(A):i(A)}function M(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):i(A)}function U(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Y}function Y(A){return tt(A)?ot(e,Z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Z(A)}function Z(A){return e.enter("htmlTextData"),c(A)}}const gm={name:"labelEnd",resolveAll:HM,resolveTo:$M,tokenize:qM},IM={tokenize:PM},BM={tokenize:FM},UM={tokenize:GM};function HM(e){let t=-1;const i=[];for(;++t=3&&(f===null||Be(f))?(e.exit("thematicBreak"),t(f)):i(f)}function h(f){return f===s?(e.consume(f),a++,h):(e.exit("thematicBreakSequence"),tt(f)?ot(e,d,"whitespace")(f):d(f))}}const qn={continuation:{tokenize:tO},exit:iO,name:"list",tokenize:eO},WM={partial:!0,tokenize:rO},JM={partial:!0,tokenize:nO};function eO(e,t,i){const a=this,s=a.events[a.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(x){const _=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:Tp(x)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(eu,i,f)(x):f(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(x)}return i(x)}function h(x){return Tp(x)&&++c<10?(e.consume(x),h):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),f(x)):i(x)}function f(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(go,a.interrupt?i:p,e.attempt(WM,y,m))}function p(x){return a.containerState.initialBlankLine=!0,o++,y(x)}function m(x){return tt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),y):i(x)}function y(x){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function tO(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(go,s,o);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ot(e,t,"listItemIndent",a.containerState.size+1)(d)}function o(d){return a.containerState.furtherBlankLines||!tt(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(JM,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ot(e,e.attempt(qn,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function nO(e,t,i){const a=this;return ot(e,s,"listItemIndent",a.containerState.size+1);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?t(o):i(o)}}function iO(e){e.exit(this.containerState.type)}function rO(e,t,i){const a=this;return ot(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=a.events[a.events.length-1];return!tt(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):i(o)}}const uy={name:"setextUnderline",resolveTo:aO,tokenize:sO};function aO(e,t){let i=e.length,a,s,o;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end={...e[o][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function sO(e,t,i){const a=this;let s;return o;function o(f){let p=a.events.length,m;for(;p--;)if(a.events[p][1].type!=="lineEnding"&&a.events[p][1].type!=="linePrefix"&&a.events[p][1].type!=="content"){m=a.events[p][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||m)?(e.enter("setextHeadingLine"),s=f,c(f)):i(f)}function c(f){return e.enter("setextHeadingLineSequence"),d(f)}function d(f){return f===s?(e.consume(f),d):(e.exit("setextHeadingLineSequence"),tt(f)?ot(e,h,"lineSuffix")(f):h(f))}function h(f){return f===null||Be(f)?(e.exit("setextHeadingLine"),t(f)):i(f)}}const lO={tokenize:oO};function oO(e){const t=this,i=e.attempt(go,a,e.attempt(this.parser.constructs.flowInitial,s,ot(e,e.attempt(this.parser.constructs.flow,s,e.attempt(hM,s)),"linePrefix")));return i;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const cO={resolveAll:eE()},uO=J_("string"),dO=J_("text");function J_(e){return{resolveAll:eE(e==="text"?fO:void 0),tokenize:t};function t(i){const a=this,s=this.parser.constructs[e],o=i.attempt(s,c,d);return c;function c(p){return f(p)?o(p):d(p)}function d(p){if(p===null){i.consume(p);return}return i.enter("data"),i.consume(p),h}function h(p){return f(p)?(i.exit("data"),o(p)):(i.consume(p),h)}function f(p){if(p===null)return!0;const m=s[p];let y=-1;if(m)for(;++y-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}o>0&&c.push(e[s].slice(0,o))}return c}function SO(e,t){let i=-1;const a=[];let s;for(;++i0){const on=Oe.tokenStack[Oe.tokenStack.length-1];(on[1]||fy).call(Oe,void 0,on[0])}for(xe.position={start:Jr(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Jr(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze0&&(a.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function UO(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function HO(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function $O(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=Gs(a.toLowerCase()),o=e.footnoteOrder.indexOf(a);let c,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=o+1,d+=1,e.footnoteCounts.set(a,d);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const f={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,f),e.applyData(t,f)}function qO(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function PO(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function iE(e,t){const i=t.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function FO(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return iE(e,t);const s={src:Gs(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function GO(e,t){const i={src:Gs(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function VO(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)}function YO(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return iE(e,t);const s={href:Gs(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function XO(e,t){const i={href:Gs(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function KO(e,t,i){const a=e.all(t),s=i?ZO(i):rE(t),o={},c=[];if(typeof t.checked=="boolean"){const p=a[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d1}function QO(e,t){const i={},a=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++s0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=um(t.children[1]),h=I_(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function nR(e,t,i){const a=i?i.children:void 0,o=(a?a.indexOf(t):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:t.children.length;let h=-1;const f=[];for(;++h0,!0),a[0]),s=a.index+a[0].length,a=i.exec(t);return o.push(my(t.slice(s),s>0,!1)),o.join("")}function my(e,t,i){let a=0,s=e.length;if(t){let o=e.codePointAt(a);for(;o===hy||o===py;)a++,o=e.codePointAt(a)}if(i){let o=e.codePointAt(s-1);for(;o===hy||o===py;)s--,o=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function aR(e,t){const i={type:"text",value:rR(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function sR(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const lR={blockquote:jO,break:IO,code:BO,delete:UO,emphasis:HO,footnoteReference:$O,heading:qO,html:PO,imageReference:FO,image:GO,inlineCode:VO,linkReference:YO,link:XO,listItem:KO,list:QO,paragraph:WO,root:JO,strong:eR,table:tR,tableCell:iR,tableRow:nR,text:aR,thematicBreak:sR,toml:Uc,yaml:Uc,definition:Uc,footnoteDefinition:Uc};function Uc(){}const aE=-1,Au=0,Ql=1,cu=2,bm=3,xm=4,ym=5,vm=6,sE=7,lE=8,oE=typeof self=="object"?self:globalThis,gy=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new oE[e](t)},oR=(e,t)=>{const i=(s,o)=>(e.set(o,s),s),a=s=>{if(e.has(s))return e.get(s);const[o,c]=t[s];switch(o){case Au:case aE:return i(c,s);case Ql:{const d=i([],s);for(const h of c)d.push(a(h));return d}case cu:{const d=i({},s);for(const[h,f]of c)d[a(h)]=a(f);return d}case bm:return i(new Date(c),s);case xm:{const{source:d,flags:h}=c;return i(new RegExp(d,h),s)}case ym:{const d=i(new Map,s);for(const[h,f]of c)d.set(a(h),a(f));return d}case vm:{const d=i(new Set,s);for(const h of c)d.add(a(h));return d}case sE:{const{name:d,message:h}=c;return i(typeof oE[d]=="function"?gy(d,h):new Error(h),s)}case lE:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(gy(o,c),s)};return a},by=e=>oR(new Map,e)(0),Ca="",{toString:cR}={},{keys:uR}=Object,ql=e=>{const t=typeof e;if(t!=="object"||!e)return[Au,t];const i=cR.call(e).slice(8,-1);switch(i){case"Array":return[Ql,Ca];case"Object":return[cu,Ca];case"Date":return[bm,Ca];case"RegExp":return[xm,Ca];case"Map":return[ym,Ca];case"Set":return[vm,Ca];case"DataView":return[Ql,i]}return i.includes("Array")?[Ql,i]:e instanceof Error?[sE,e.name||"Error"]:[cu,i]},Hc=([e,t])=>e===Au&&(t==="function"||t==="symbol"),dR=(e,t,i,a)=>{const s=(c,d)=>{const h=a.push(c)-1;return i.set(d,h),h},o=c=>{if(i.has(c))return i.get(c);let[d,h]=ql(c);switch(d){case Au:{let p=c;switch(h){case"bigint":d=lE,p=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return s([aE],c)}return s([d,p],c)}case Ql:{if(h){let y=c;return h==="DataView"?y=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(y=new Uint8Array(c)),s([h,[...y]],c)}const p=[],m=s([d,p],c);for(const y of c)p.push(o(y));return m}case cu:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const p=[],m=s([d,p],c);for(const y of uR(c))(e||!Hc(ql(c[y])))&&p.push([o(y),o(c[y])]);return m}case bm:return s([d,isNaN(c.getTime())?Ca:c.toISOString()],c);case xm:{const{source:p,flags:m}=c;return s([d,{source:p,flags:m}],c)}case ym:{const p=[],m=s([d,p],c);for(const[y,x]of c)(e||!(Hc(ql(y))||Hc(ql(x))))&&p.push([o(y),o(x)]);return m}case vm:{const p=[],m=s([d,p],c);for(const y of c)(e||!Hc(ql(y)))&&p.push(o(y));return m}}const{message:f}=c;return s([d,{name:h,message:f}],c)};return o},xy=(e,{json:t,lossy:i}={})=>{const a=[];return dR(!(t||i),!!t,new Map,a)(e),a},uu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?by(xy(e,t)):structuredClone(e):(e,t)=>by(xy(e,t));function fR(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function hR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function pR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||fR,a=e.options.footnoteBackLabel||hR,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h0&&_.push({type:"text",value:" "});let k=typeof i=="string"?i:i(h,x);typeof k=="string"&&(k={type:"text",value:k}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,x),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const S=p[p.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const k=S.children[S.children.length-1];k&&k.type==="text"?k.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(..._)}else p.push(..._);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(f,E),d.push(E)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...uu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:` +`}]}}const Cu=(function(e){if(e==null)return xR;if(typeof e=="function")return Mu(e);if(typeof e=="object")return Array.isArray(e)?mR(e):gR(e);if(typeof e=="string")return bR(e);throw new Error("Expected function, string, or object as test")});function mR(e){const t=[];let i=-1;for(;++i":""))+")"})}return y;function y(){let x=cE,_,N,S;if((!t||o(h,f,p[p.length-1]||void 0))&&(x=ER(i(h,p)),x[0]===Cp))return x;if("children"in h&&h.children){const E=h;if(E.children&&x[0]!==_R)for(N=(a?E.children.length:-1)+c,S=p.concat(E);N>-1&&N0&&i.push({type:"text",value:` +`}),i}function yy(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function vy(e,t){const i=NR(e,t),a=i.one(e,void 0),s=pR(i),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:` +`},s),o}function CR(e,t){return e&&"run"in e?async function(i,a){const s=vy(i,{file:a,...t});await e.run(s,a)}:function(i,a){return vy(i,{file:a,...e||t})}}function _y(e){if(e)throw e}var sh,Ey;function MR(){if(Ey)return sh;Ey=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),m=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!m)return!1;var y;for(y in f);return typeof y>"u"||e.call(f,y)},c=function(f,p){i&&p.name==="__proto__"?i(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},d=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(a)return a(f,p).value}else return;return f[p]};return sh=function h(){var f,p,m,y,x,_,N=arguments[0],S=1,E=arguments.length,k=!1;for(typeof N=="boolean"&&(k=N,N=arguments[1]||{},S=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});Sc.length;let h;d&&c.push(s);try{h=e.apply(this,c)}catch(f){const p=f;if(d&&i)throw p;return s(p)}d||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(c,...d){i||(i=!0,t(c,...d))}function o(c){s(null,c)}}const Hi={basename:LR,dirname:zR,extname:jR,join:IR,sep:"/"};function LR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bo(e);let i=0,a=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else a<0&&(o=!0,a=s+1);return a<0?"":e.slice(i,a)}if(t===e)return"";let c=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else c<0&&(o=!0,c=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function zR(e){if(bo(e),e.length===0)return".";let t=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){t=i;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function jR(e){bo(e);let t=e.length,i=-1,a=0,s=-1,o=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){a=t+1;break}continue}i<0&&(c=!0,i=t+1),d===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||i<0||o===0||o===1&&s===i-1&&s===a+1?"":e.slice(s,i)}function IR(...e){let t=-1,i;for(;++t0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function UR(e,t){let i="",a=0,s=-1,o=0,c=-1,d,h;for(;++c<=e.length;){if(c2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",a=0):(i=i.slice(0,h),a=i.length-1-i.lastIndexOf("/")),s=c,o=0;continue}}else if(i.length>0){i="",a=0,s=c,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),a=c-s-1;s=c,o=0}else d===46&&o>-1?o++:o=-1}return i}function bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const HR={cwd:$R};function $R(){return"/"}function Rp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qR(e){if(typeof e=="string")e=new URL(e);else if(!Rp(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 PR(e)}function PR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let i=-1;for(;++i0){let[x,..._]=p;const N=a[y][1];Op(N)&&Op(x)&&(x=lh(!0,N,x)),a[y]=[f,x,..._]}}}}const YR=new Em().freeze();function dh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function hh(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 Ny(e){if(!Op(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sy(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $c(e){return XR(e)?e:new dE(e)}function XR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function KR(e){return typeof e=="string"||ZR(e)}function ZR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const QR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ky=[],Ty={allowDangerousHtml:!0},WR=/^(https?|ircs?|mailto|xmpp)$/i,JR=[{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 wm(e){const t=e5(e),i=t5(e);return n5(t.runSync(t.parse(i),i),e)}function e5(e){const t=e.rehypePlugins||ky,i=e.remarkPlugins||ky,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ty}:Ty;return YR().use(zO).use(i).use(CR,a).use(t)}function t5(e){const t=e.children||"",i=new dE;return typeof t=="string"&&(i.value=t),i}function n5(e,t){const i=t.allowedElements,a=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||i5;for(const p of JR)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+QR+p.id,void 0);return _m(e,f),xC(e,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function f(p,m,y){if(p.type==="raw"&&y&&typeof m=="number")return c?y.children.splice(m,1):y.children[m]={type:"text",value:p.value},m;if(p.type==="element"){let x;for(x in ih)if(Object.hasOwn(ih,x)&&Object.hasOwn(p.properties,x)){const _=p.properties[x],N=ih[x];(N===null||N.includes(p.tagName))&&(p.properties[x]=h(String(_||""),x,p))}}if(p.type==="element"){let x=i?!i.includes(p.tagName):o?o.includes(p.tagName):!1;if(!x&&a&&typeof m=="number"&&(x=!a(p,m,y)),x&&y&&typeof m=="number")return d&&p.children?y.children.splice(m,1,...p.children):y.children.splice(m,1),m}}}function i5(e){const t=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||i!==-1&&t>i||a!==-1&&t>a||WR.test(e.slice(0,t))?e:""}function Ay(e,t){const i=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,s=i.indexOf(t);for(;s!==-1;)a++,s=i.indexOf(t,s+t.length);return a}function r5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function a5(e,t,i){const s=Cu((i||{}).ignore||[]),o=s5(t);let c=-1;for(;++c0?{type:"text",value:R}:void 0),R===!1?y.lastIndex=O+1:(_!==O&&k.push({type:"text",value:f.value.slice(_,O)}),Array.isArray(R)?k.push(...R):R&&k.push(R),_=O+w[0].length,E=!0),!y.global)break;w=y.exec(f.value)}return E?(_?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],a=i.indexOf(")");const s=Ay(e,"(");let o=Ay(e,")");for(;a!==-1&&s>o;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),o++;return[e,i]}function fE(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||za(i)||ku(i))&&(!t||i!==47)}hE.peek=C5;function _5(){this.buffer()}function E5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function w5(){this.buffer()}function N5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function S5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),i.label=t}function k5(e){this.exit(e)}function T5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),i.label=t}function A5(e){this.exit(e)}function C5(){return"["}function hE(e,t,i,a){const s=i.createTracker(a);let o=s.move("[^");const c=i.enter("footnoteReference"),d=i.enter("reference");return o+=s.move(i.safe(i.associationId(e),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function M5(){return{enter:{gfmFootnoteCallString:_5,gfmFootnoteCall:E5,gfmFootnoteDefinitionLabelString:w5,gfmFootnoteDefinition:N5},exit:{gfmFootnoteCallString:S5,gfmFootnoteCall:k5,gfmFootnoteDefinitionLabelString:T5,gfmFootnoteDefinition:A5}}}function O5(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:hE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,s,o,c){const d=o.createTracker(c);let h=d.move("[^");const f=o.enter("footnoteDefinition"),p=o.enter("label");return h+=d.move(o.safe(o.associationId(a),{before:h,after:"]"})),p(),h+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),h+=d.move((t?` +`:" ")+o.indentLines(o.containerFlow(a,d.current()),t?pE:R5))),f(),h}}function R5(e,t,i){return t===0?e:pE(e,t,i)}function pE(e,t,i){return(i?"":" ")+e}const D5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mE.peek=B5;function L5(){return{canContainEols:["delete"],enter:{strikethrough:j5},exit:{strikethrough:I5}}}function z5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:D5}],handlers:{delete:mE}}}function j5(e){this.enter({type:"delete",children:[]},e)}function I5(e){this.exit(e)}function mE(e,t,i,a){const s=i.createTracker(a),o=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function B5(){return"~"}function U5(e){return e.length}function H5(e,t){const i=t||{},a=(i.align||[]).concat(),s=i.stringLength||U5,o=[],c=[],d=[],h=[];let f=0,p=-1;for(;++pf&&(f=e[p].length);++Eh[E])&&(h[E]=w)}N.push(k)}c[p]=N,d[p]=S}let m=-1;if(typeof a=="object"&&"length"in a)for(;++mh[m]&&(h[m]=k),x[m]=k),y[m]=w}c.splice(1,0,y),d.splice(1,0,x),p=-1;const _=[];for(;++p "),o.shift(2);const c=i.indentLines(i.containerFlow(e,o.current()),P5);return s(),c}function P5(e,t,i){return">"+(i?"":" ")+e}function F5(e,t){return My(e,t.inConstruct,!0)&&!My(e,t.notInConstruct,!1)}function My(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let a=-1;for(;++ac&&(c=o):o=1,s=a+t.length,a=i.indexOf(t,s);return c}function V5(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 Y5(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 X5(e,t,i,a){const s=Y5(i),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(V5(e,i)){const m=i.enter("codeIndented"),y=i.indentLines(o,K5);return m(),y}const d=i.createTracker(a),h=s.repeat(Math.max(G5(o,s)+1,3)),f=i.enter("codeFenced");let p=d.move(h);if(e.lang){const m=i.enter(`codeFencedLang${c}`);p+=d.move(i.safe(e.lang,{before:p,after:" ",encode:["`"],...d.current()})),m()}if(e.lang&&e.meta){const m=i.enter(`codeFencedMeta${c}`);p+=d.move(" "),p+=d.move(i.safe(e.meta,{before:p,after:` +`,encode:["`"],...d.current()})),m()}return p+=d.move(` +`),o&&(p+=d.move(o+` +`)),p+=d.move(h),f(),p}function K5(e,t,i){return(i?"":" ")+e}function Nm(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 Z5(e,t,i,a){const s=Nm(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("definition");let d=i.enter("label");const h=i.createTracker(a);let f=h.move("[");return f+=h.move(i.safe(i.associationId(e),{before:f,after:"]",...h.current()})),f+=h.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(i.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=i.enter("destinationRaw"),f+=h.move(i.safe(e.url,{before:f,after:e.title?" ":` +`,...h.current()}))),d(),e.title&&(d=i.enter(`title${o}`),f+=h.move(" "+s),f+=h.move(i.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),c(),f}function Q5(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 no(e){return"&#x"+e.toString(16).toUpperCase()+";"}function du(e,t,i){const a=zs(e),s=zs(t);return a===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}gE.peek=W5;function gE(e,t,i,a){const s=Q5(i),o=i.enter("emphasis"),c=i.createTracker(a),d=c.move(s);let h=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),p=du(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=no(f)+h.slice(1));const m=h.charCodeAt(h.length-1),y=du(a.after.charCodeAt(0),m,s);y.inside&&(h=h.slice(0,-1)+no(m));const x=c.move(s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},d+h+x}function W5(e,t,i){return i.options.emphasis||"*"}function J5(e,t){let i=!1;return _m(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,Cp}),!!((!e.depth||e.depth<3)&&pm(e)&&(t.options.setext||i))}function e3(e,t,i,a){const s=Math.max(Math.min(6,e.depth||1),1),o=i.createTracker(a);if(J5(e,i)){const p=i.enter("headingSetext"),m=i.enter("phrasing"),y=i.containerPhrasing(e,{...o.current(),before:` +`,after:` +`});return m(),p(),y+` +`+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(` +`))+1))}const c="#".repeat(s),d=i.enter("headingAtx"),h=i.enter("phrasing");o.move(c+" ");let f=i.containerPhrasing(e,{before:"# ",after:` +`,...o.current()});return/^[\t ]/.test(f)&&(f=no(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,i.options.closeAtx&&(f+=" "+c),h(),d(),f}bE.peek=t3;function bE(e){return e.value||""}function t3(){return"<"}xE.peek=n3;function xE(e,t,i,a){const s=Nm(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("image");let d=i.enter("label");const h=i.createTracker(a);let f=h.move("![");return f+=h.move(i.safe(e.alt,{before:f,after:"]",...h.current()})),f+=h.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(i.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=i.enter("destinationRaw"),f+=h.move(i.safe(e.url,{before:f,after:e.title?" ":")",...h.current()}))),d(),e.title&&(d=i.enter(`title${o}`),f+=h.move(" "+s),f+=h.move(i.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),f+=h.move(")"),c(),f}function n3(){return"!"}yE.peek=i3;function yE(e,t,i,a){const s=e.referenceType,o=i.enter("imageReference");let c=i.enter("label");const d=i.createTracker(a);let h=d.move("![");const f=i.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const p=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:h,after:"]",...d.current()});return c(),i.stack=p,o(),s==="full"||!f||f!==m?h+=d.move(m+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function i3(){return"!"}vE.peek=r3;function vE(e,t,i){let a=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o\u007F]/.test(e.url))}EE.peek=a3;function EE(e,t,i,a){const s=Nm(i),o=s==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let d,h;if(_E(e,i)){const p=i.stack;i.stack=[],d=i.enter("autolink");let m=c.move("<");return m+=c.move(i.containerPhrasing(e,{before:m,after:">",...c.current()})),m+=c.move(">"),d(),i.stack=p,m}d=i.enter("link"),h=i.enter("label");let f=c.move("[");return f+=c.move(i.containerPhrasing(e,{before:f,after:"](",...c.current()})),f+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=i.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(i.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(h=i.enter("destinationRaw"),f+=c.move(i.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=i.enter(`title${o}`),f+=c.move(" "+s),f+=c.move(i.safe(e.title,{before:f,after:s,...c.current()})),f+=c.move(s),h()),f+=c.move(")"),d(),f}function a3(e,t,i){return _E(e,i)?"<":"["}wE.peek=s3;function wE(e,t,i,a){const s=e.referenceType,o=i.enter("linkReference");let c=i.enter("label");const d=i.createTracker(a);let h=d.move("[");const f=i.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const p=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:h,after:"]",...d.current()});return c(),i.stack=p,o(),s==="full"||!f||f!==m?h+=d.move(m+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function s3(){return"["}function Sm(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 l3(e){const t=Sm(e),i=e.options.bulletOther;if(!i)return t==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+i+"`) to be different");return i}function o3(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 NE(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 c3(e,t,i,a){const s=i.enter("list"),o=i.bulletCurrent;let c=e.ordered?o3(i):Sm(i);const d=e.ordered?c==="."?")":".":l3(i);let h=t&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&p&&(!p.children||!p.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(h=!0),NE(i)===c&&p){let m=-1;for(;++m-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=i.createTracker(a);d.move(o+" ".repeat(c-o.length)),d.shift(c);const h=i.enter("listItem"),f=i.indentLines(i.containerFlow(e,d.current()),p);return h(),f;function p(m,y,x){return y?(x?"":" ".repeat(c))+m:(x?o:o+" ".repeat(c-o.length))+m}}function f3(e,t,i,a){const s=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(e,a);return o(),s(),c}const h3=Cu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function p3(e,t,i,a){return(e.children.some(function(c){return h3(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function m3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}SE.peek=g3;function SE(e,t,i,a){const s=m3(i),o=i.enter("strong"),c=i.createTracker(a),d=c.move(s+s);let h=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),p=du(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=no(f)+h.slice(1));const m=h.charCodeAt(h.length-1),y=du(a.after.charCodeAt(0),m,s);y.inside&&(h=h.slice(0,-1)+no(m));const x=c.move(s+s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},d+h+x}function g3(e,t,i){return i.options.strong||"*"}function b3(e,t,i,a){return i.safe(e.value,a)}function x3(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 y3(e,t,i){const a=(NE(i)+(i.options.ruleSpaces?" ":"")).repeat(x3(i));return i.options.ruleSpaces?a.slice(0,-1):a}const kE={blockquote:q5,break:Oy,code:X5,definition:Z5,emphasis:gE,hardBreak:Oy,heading:e3,html:bE,image:xE,imageReference:yE,inlineCode:vE,link:EE,linkReference:wE,list:c3,listItem:d3,paragraph:f3,root:p3,strong:SE,text:b3,thematicBreak:y3};function v3(){return{enter:{table:_3,tableData:Ry,tableHeader:Ry,tableRow:w3},exit:{codeText:N3,table:E3,tableData:bh,tableHeader:bh,tableRow:bh}}}function _3(e){const t=e._align;this.enter({type:"table",align:t.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function E3(e){this.exit(e),this.data.inTable=void 0}function w3(e){this.enter({type:"tableRow",children:[]},e)}function bh(e){this.exit(e)}function Ry(e){this.enter({type:"tableCell",children:[]},e)}function N3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,S3));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function S3(e,t){return t==="|"?t:e}function k3(e){const t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,o=i?" ":"|";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:y,table:c,tableCell:h,tableRow:d}};function c(x,_,N,S){return f(p(x,N,S),x.align)}function d(x,_,N,S){const E=m(x,N,S),k=f([E]);return k.slice(0,k.indexOf(` +`))}function h(x,_,N,S){const E=N.enter("tableCell"),k=N.enter("phrasing"),w=N.containerPhrasing(x,{...S,before:o,after:o});return k(),E(),w}function f(x,_){return H5(x,{align:_,alignDelimiters:a,padding:i,stringLength:s})}function p(x,_,N){const S=x.children;let E=-1;const k=[],w=_.enter("table");for(;++E0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const F3={tokenize:W3,partial:!0};function G3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:K3,continuation:{tokenize:Z3},exit:Q3}},text:{91:{name:"gfmFootnoteCall",tokenize:X3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:V3,resolveTo:Y3}}}}function V3(e,t,i){const a=this;let s=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const h=a.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!c||!c._balanced)return i(h);const f=Ci(a.sliceSerialize({start:c.end,end:a.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function Y3(e,t){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...d),e}function X3(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,c;return d;function d(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),h}function h(m){return m!==94?i(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(o>999||m===93&&!c||m===null||m===91||At(m))return i(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(Ci(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(m)}return At(m)||(c=!0),o++,e.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}}function K3(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,c=0,d;return h;function h(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):i(_)}function p(_){if(c>999||_===93&&!d||_===null||_===91||At(_))return i(_);if(_===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return o=Ci(a.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return At(_)||(d=!0),c++,e.consume(_),_===92?m:p}function m(_){return _===91||_===92||_===93?(e.consume(_),c++,p):p(_)}function y(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(o)||s.push(o),ot(e,x,"gfmFootnoteDefinitionWhitespace")):i(_)}function x(_){return t(_)}}function Z3(e,t,i){return e.check(go,t,e.attempt(F3,t,i))}function Q3(e){e.exit("gfmFootnoteDefinition")}function W3(e,t,i){const a=this;return ot(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):i(o)}}function J3(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:o,resolveAll:s};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let h=-1;for(;++h1?h(_):(c.consume(_),m++,x);if(m<2&&!i)return h(_);const S=c.exit("strikethroughSequenceTemporary"),E=zs(_);return S._open=!E||E===2&&!!N,S._close=!N||N===2&&!!E,d(_)}}}class eD{constructor(){this.map=[]}add(t,i,a){tD(this,t,i,a)}consume(t){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(t.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),t.length=this.map[i][0];a.push(t.slice()),t.length=0;let s=a.pop();for(;s;){for(const o of s)t.push(o);s=a.pop()}this.map.length=0}}function tD(e,t,i,a){let s=0;if(!(i===0&&a.length===0)){for(;s-1;){const C=a.events[q][1].type;if(C==="lineEnding"||C==="linePrefix")q--;else break}const X=q>-1?a.events[q][1].type:null,G=X==="tableHead"||X==="tableRow"?R:h;return G===R&&a.parser.lazy[a.now().line]?i(L):G(L)}function h(L){return e.enter("tableHead"),e.enter("tableRow"),f(L)}function f(L){return L===124||(c=!0,o+=1),p(L)}function p(L){return L===null?i(L):Be(L)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),x):i(L):tt(L)?ot(e,p,"whitespace")(L):(o+=1,c&&(c=!1,s+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),c=!0,p):(e.enter("data"),m(L)))}function m(L){return L===null||L===124||At(L)?(e.exit("data"),p(L)):(e.consume(L),L===92?y:m)}function y(L){return L===92||L===124?(e.consume(L),m):m(L)}function x(L){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(L):(e.enter("tableDelimiterRow"),c=!1,tt(L)?ot(e,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):_(L))}function _(L){return L===45||L===58?S(L):L===124?(c=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),N):B(L)}function N(L){return tt(L)?ot(e,S,"whitespace")(L):S(L)}function S(L){return L===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),E):L===45?(o+=1,E(L)):L===null||Be(L)?O(L):B(L)}function E(L){return L===45?(e.enter("tableDelimiterFiller"),k(L)):B(L)}function k(L){return L===45?(e.consume(L),k):L===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(L))}function w(L){return tt(L)?ot(e,O,"whitespace")(L):O(L)}function O(L){return L===124?_(L):L===null||Be(L)?!c||s!==o?B(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):B(L)}function B(L){return i(L)}function R(L){return e.enter("tableRow"),H(L)}function H(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),H):L===null||Be(L)?(e.exit("tableRow"),t(L)):tt(L)?ot(e,H,"whitespace")(L):(e.enter("data"),I(L))}function I(L){return L===null||L===124||At(L)?(e.exit("data"),H(L)):(e.consume(L),L===92?K:I)}function K(L){return L===92||L===124?(e.consume(L),I):I(L)}}function aD(e,t){let i=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,f,p,m;const y=new eD;for(;++ii[2]+1){const _=i[2]+1,N=i[3]-i[2]-1;e.add(_,N,[])}}e.add(i[3]+1,0,[["exit",m,t]])}return s!==void 0&&(o.end=Object.assign({},ks(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function Ly(e,t,i,a,s){const o=[],c=ks(t.events,i);s&&(s.end=Object.assign({},c),o.push(["exit",s,t])),a.end=Object.assign({},c),o.push(["exit",a,t]),e.add(i+1,0,o)}function ks(e,t){const i=e[t],a=i[0]==="enter"?"start":"end";return i[1][a]}const sD={name:"tasklistCheck",tokenize:oD};function lD(){return{text:{91:sD}}}function oD(e,t,i){const a=this;return s;function s(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return At(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):i(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):i(h)}function d(h){return Be(h)?t(h):tt(h)?e.check({tokenize:cD},t,i)(h):i(h)}}function cD(e,t,i){return ot(e,a,"whitespace");function a(s){return s===null?i(s):t(s)}}function uD(e){return F_([z3(),G3(),J3(e),iD(),lD()])}const dD={};function Tm(e){const t=this,i=e||dD,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(uD(i)),o.push(O3()),c.push(R3(i))}var xh,zy;function fD(){if(zy)return xh;zy=1;function e(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach(pe=>{const we=ne[pe],Pe=typeof we;(Pe==="object"||Pe==="function")&&!Object.isFrozen(we)&&e(we)}),ne}class t{constructor(pe){pe.data===void 0&&(pe.data={}),this.data=pe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function a(ne,...pe){const we=Object.create(null);for(const Pe in ne)we[Pe]=ne[Pe];return pe.forEach(function(Pe){for(const St in Pe)we[St]=Pe[St]}),we}const s="",o=ne=>!!ne.scope,c=(ne,{prefix:pe})=>{if(ne.startsWith("language:"))return ne.replace("language:","language-");if(ne.includes(".")){const we=ne.split(".");return[`${pe}${we.shift()}`,...we.map((Pe,St)=>`${Pe}${"_".repeat(St+1)}`)].join(" ")}return`${pe}${ne}`};class d{constructor(pe,we){this.buffer="",this.classPrefix=we.classPrefix,pe.walk(this)}addText(pe){this.buffer+=i(pe)}openNode(pe){if(!o(pe))return;const we=c(pe.scope,{prefix:this.classPrefix});this.span(we)}closeNode(pe){o(pe)&&(this.buffer+=s)}value(){return this.buffer}span(pe){this.buffer+=``}}const h=(ne={})=>{const pe={children:[]};return Object.assign(pe,ne),pe};class f{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(pe){this.top.children.push(pe)}openNode(pe){const we=h({scope:pe});this.add(we),this.stack.push(we)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(pe){return this.constructor._walk(pe,this.rootNode)}static _walk(pe,we){return typeof we=="string"?pe.addText(we):we.children&&(pe.openNode(we),we.children.forEach(Pe=>this._walk(pe,Pe)),pe.closeNode(we)),pe}static _collapse(pe){typeof pe!="string"&&pe.children&&(pe.children.every(we=>typeof we=="string")?pe.children=[pe.children.join("")]:pe.children.forEach(we=>{f._collapse(we)}))}}class p extends f{constructor(pe){super(),this.options=pe}addText(pe){pe!==""&&this.add(pe)}startScope(pe){this.openNode(pe)}endScope(){this.closeNode()}__addSublanguage(pe,we){const Pe=pe.root;we&&(Pe.scope=`language:${we}`),this.add(Pe)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(ne){return ne?typeof ne=="string"?ne:ne.source:null}function y(ne){return N("(?=",ne,")")}function x(ne){return N("(?:",ne,")*")}function _(ne){return N("(?:",ne,")?")}function N(...ne){return ne.map(we=>m(we)).join("")}function S(ne){const pe=ne[ne.length-1];return typeof pe=="object"&&pe.constructor===Object?(ne.splice(ne.length-1,1),pe):{}}function E(...ne){return"("+(S(ne).capture?"":"?:")+ne.map(Pe=>m(Pe)).join("|")+")"}function k(ne){return new RegExp(ne.toString()+"|").exec("").length-1}function w(ne,pe){const we=ne&&ne.exec(pe);return we&&we.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function B(ne,{joinWith:pe}){let we=0;return ne.map(Pe=>{we+=1;const St=we;let gt=m(Pe),Ce="";for(;gt.length>0;){const Se=O.exec(gt);if(!Se){Ce+=gt;break}Ce+=gt.substring(0,Se.index),gt=gt.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Ce+="\\"+String(Number(Se[1])+St):(Ce+=Se[0],Se[0]==="("&&we++)}return Ce}).map(Pe=>`(${Pe})`).join(pe)}const R=/\b\B/,H="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",K="\\b\\d+(\\.\\d+)?",L="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",X="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(ne={})=>{const pe=/^#![ ]*\//;return ne.binary&&(ne.begin=N(pe,/.*\b/,ne.binary,/\b.*/)),a({scope:"meta",begin:pe,end:/$/,relevance:0,"on:begin":(we,Pe)=>{we.index!==0&&Pe.ignoreMatch()}},ne)},C={begin:"\\\\[\\s\\S]",relevance:0},j={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[C]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[C]},U={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(ne,pe,we={}){const Pe=a({scope:"comment",begin:ne,end:pe,contains:[]},we);Pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const St=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Pe.contains.push({begin:N(/[ ]+/,"(",St,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Pe},Z=Y("//","$"),A=Y("/\\*","\\*/"),z=Y("#","$"),V={scope:"number",begin:K,relevance:0},D={scope:"number",begin:L,relevance:0},F={scope:"number",begin:q,relevance:0},$={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[C,{begin:/\[/,end:/\]/,relevance:0,contains:[C]}]},Q={scope:"title",begin:H,relevance:0},J={scope:"title",begin:I,relevance:0},W={begin:"\\.\\s*"+I,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:j,BACKSLASH_ESCAPE:C,BINARY_NUMBER_MODE:F,BINARY_NUMBER_RE:q,COMMENT:Y,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:Z,C_NUMBER_MODE:D,C_NUMBER_RE:L,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(pe,we)=>{we.data._beginMatch=pe[1]},"on:end":(pe,we)=>{we.data._beginMatch!==pe[1]&&we.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:H,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:V,NUMBER_RE:K,PHRASAL_WORDS_MODE:U,QUOTE_STRING_MODE:M,REGEXP_MODE:$,RE_STARTERS_RE:X,SHEBANG:G,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:J});function fe(ne,pe){ne.input[ne.index-1]==="."&&pe.ignoreMatch()}function be(ne,pe){ne.className!==void 0&&(ne.scope=ne.className,delete ne.className)}function Ee(ne,pe){pe&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=fe,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function Ne(ne,pe){Array.isArray(ne.illegal)&&(ne.illegal=E(...ne.illegal))}function Le(ne,pe){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function $e(ne,pe){ne.relevance===void 0&&(ne.relevance=1)}const st=(ne,pe)=>{if(!ne.beforeMatch)return;if(ne.starts)throw new Error("beforeMatch cannot be used with starts");const we=Object.assign({},ne);Object.keys(ne).forEach(Pe=>{delete ne[Pe]}),ne.keywords=we.keywords,ne.begin=N(we.beforeMatch,y(we.begin)),ne.starts={relevance:0,contains:[Object.assign(we,{endsParent:!0})]},ne.relevance=0,delete we.beforeMatch},Rt=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Pt(ne,pe,we=Yt){const Pe=Object.create(null);return typeof ne=="string"?St(we,ne.split(" ")):Array.isArray(ne)?St(we,ne):Object.keys(ne).forEach(function(gt){Object.assign(Pe,Pt(ne[gt],pe,gt))}),Pe;function St(gt,Ce){pe&&(Ce=Ce.map(Se=>Se.toLowerCase())),Ce.forEach(function(Se){const Ue=Se.split("|");Pe[Ue[0]]=[gt,Xt(Ue[0],Ue[1])]})}}function Xt(ne,pe){return pe?Number(pe):Vn(ne)?0:1}function Vn(ne){return Rt.includes(ne.toLowerCase())}const En={},ct=ne=>{console.error(ne)},It=(ne,...pe)=>{console.log(`WARN: ${ne}`,...pe)},ue=(ne,pe)=>{En[`${ne}/${pe}`]||(console.log(`Deprecated as of ${ne}. ${pe}`),En[`${ne}/${pe}`]=!0)},xe=new Error;function Oe(ne,pe,{key:we}){let Pe=0;const St=ne[we],gt={},Ce={};for(let Se=1;Se<=pe.length;Se++)Ce[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=k(pe[Se-1]);ne[we]=Ce,ne[we]._emit=gt,ne[we]._multi=!0}function Fe(ne){if(Array.isArray(ne.begin)){if(ne.skip||ne.excludeBegin||ne.returnBegin)throw ct("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xe;if(typeof ne.beginScope!="object"||ne.beginScope===null)throw ct("beginScope must be object"),xe;Oe(ne,ne.begin,{key:"beginScope"}),ne.begin=B(ne.begin,{joinWith:""})}}function Ze(ne){if(Array.isArray(ne.end)){if(ne.skip||ne.excludeEnd||ne.returnEnd)throw ct("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xe;if(typeof ne.endScope!="object"||ne.endScope===null)throw ct("endScope must be object"),xe;Oe(ne,ne.end,{key:"endScope"}),ne.end=B(ne.end,{joinWith:""})}}function on(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function wn(ne){on(ne),typeof ne.beginScope=="string"&&(ne.beginScope={_wrap:ne.beginScope}),typeof ne.endScope=="string"&&(ne.endScope={_wrap:ne.endScope}),Fe(ne),Ze(ne)}function Kt(ne){function pe(Ce,Se){return new RegExp(m(Ce),"m"+(ne.case_insensitive?"i":"")+(ne.unicodeRegex?"u":"")+(Se?"g":""))}class we{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=k(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=pe(B(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Bt=Ue.findIndex((gi,vr)=>vr>0&&gi!==void 0),Mt=this.matchIndexes[Bt];return Ue.splice(0,Bt),Object.assign(Ue,Mt)}}class Pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new we;return this.rules.slice(Se).forEach(([Bt,Mt])=>Ue.addRule(Bt,Mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Bt=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Bt&&Bt.index===this.lastIndex)){const Mt=this.getMatcher(0);Mt.lastIndex=this.lastIndex+1,Bt=Mt.exec(Se)}return Bt&&(this.regexIndex+=Bt.position+1,this.regexIndex===this.count&&this.considerAll()),Bt}}function St(Ce){const Se=new Pe;return Ce.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ce.terminatorEnd&&Se.addRule(Ce.terminatorEnd,{type:"end"}),Ce.illegal&&Se.addRule(Ce.illegal,{type:"illegal"}),Se}function gt(Ce,Se){const Ue=Ce;if(Ce.isCompiled)return Ue;[be,Le,wn,st].forEach(Mt=>Mt(Ce,Se)),ne.compilerExtensions.forEach(Mt=>Mt(Ce,Se)),Ce.__beforeBegin=null,[Ee,Ne,$e].forEach(Mt=>Mt(Ce,Se)),Ce.isCompiled=!0;let Bt=null;return typeof Ce.keywords=="object"&&Ce.keywords.$pattern&&(Ce.keywords=Object.assign({},Ce.keywords),Bt=Ce.keywords.$pattern,delete Ce.keywords.$pattern),Bt=Bt||/\w+/,Ce.keywords&&(Ce.keywords=Pt(Ce.keywords,ne.case_insensitive)),Ue.keywordPatternRe=pe(Bt,!0),Se&&(Ce.begin||(Ce.begin=/\B|\b/),Ue.beginRe=pe(Ue.begin),!Ce.end&&!Ce.endsWithParent&&(Ce.end=/\B|\b/),Ce.end&&(Ue.endRe=pe(Ue.end)),Ue.terminatorEnd=m(Ue.end)||"",Ce.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Ce.end?"|":"")+Se.terminatorEnd)),Ce.illegal&&(Ue.illegalRe=pe(Ce.illegal)),Ce.contains||(Ce.contains=[]),Ce.contains=[].concat(...Ce.contains.map(function(Mt){return Wt(Mt==="self"?Ce:Mt)})),Ce.contains.forEach(function(Mt){gt(Mt,Ue)}),Ce.starts&>(Ce.starts,Se),Ue.matcher=St(Ue),Ue}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ne.classNameAliases=a(ne.classNameAliases||{}),gt(ne)}function Ct(ne){return ne?ne.endsWithParent||Ct(ne.starts):!1}function Wt(ne){return ne.variants&&!ne.cachedVariants&&(ne.cachedVariants=ne.variants.map(function(pe){return a(ne,{variants:null},pe)})),ne.cachedVariants?ne.cachedVariants:Ct(ne)?a(ne,{starts:ne.starts?a(ne.starts):null}):Object.isFrozen(ne)?a(ne):ne}var ut="11.11.1";class zn extends Error{constructor(pe,we){super(pe),this.name="HTMLInjectionError",this.html=we}}const cn=i,yr=a,nt=Symbol("nomatch"),Yn=7,Cn=function(ne){const pe=Object.create(null),we=Object.create(null),Pe=[];let St=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",Ce={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:p};function Ue(ye){return Se.noHighlightRe.test(ye)}function Bt(ye){let ze=ye.className+" ";ze+=ye.parentNode?ye.parentNode.className:"";const Qe=Se.languageDetectRe.exec(ze);if(Qe){const ft=bn(Qe[1]);return ft||(It(gt.replace("{}",Qe[1])),It("Falling back to no-highlight mode for this block.",ye)),ft?Qe[1]:"no-highlight"}return ze.split(/\s+/).find(ft=>Ue(ft)||bn(ft))}function Mt(ye,ze,Qe){let ft="",Ht="";typeof ze=="object"?(ft=ye,Qe=ze.ignoreIllegals,Ht=ze.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),Ht=ye,ft=ze),Qe===void 0&&(Qe=!0);const mn={code:ft,language:Ht};Ki("before:highlight",mn);const Mn=mn.result?mn.result:gi(mn.language,mn.code,Qe);return Mn.code=mn.code,Ki("after:highlight",Mn),Mn}function gi(ye,ze,Qe,ft){const Ht=Object.create(null);function mn(_e,Re){return _e.keywords[Re]}function Mn(){if(!qe.keywords){Jt.addText(bt);return}let _e=0;qe.keywordPatternRe.lastIndex=0;let Re=qe.keywordPatternRe.exec(bt),Ye="";for(;Re;){Ye+=bt.substring(_e,Re.index);const it=un.case_insensitive?Re[0].toLowerCase():Re[0],$t=mn(qe,it);if($t){const[si,Xs]=$t;if(Jt.addText(Ye),Ye="",Ht[it]=(Ht[it]||0)+1,Ht[it]<=Yn&&(Tr+=Xs),si.startsWith("_"))Ye+=Re[0];else{const ko=un.classNameAliases[si]||si;On(Re[0],ko)}}else Ye+=Re[0];_e=qe.keywordPatternRe.lastIndex,Re=qe.keywordPatternRe.exec(bt)}Ye+=bt.substring(_e),Jt.addText(Ye)}function Nn(){if(bt==="")return;let _e=null;if(typeof qe.subLanguage=="string"){if(!pe[qe.subLanguage]){Jt.addText(bt);return}_e=gi(qe.subLanguage,bt,!0,So[qe.subLanguage]),So[qe.subLanguage]=_e._top}else _e=_r(bt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Tr+=_e.relevance),Jt.__addSublanguage(_e._emitter,_e.language)}function _t(){qe.subLanguage!=null?Nn():Mn(),bt=""}function On(_e,Re){_e!==""&&(Jt.startScope(Re),Jt.addText(_e),Jt.endScope())}function Ga(_e,Re){let Ye=1;const it=Re.length-1;for(;Ye<=it;){if(!_e._emit[Ye]){Ye++;continue}const $t=un.classNameAliases[_e[Ye]]||_e[Ye],si=Re[Ye];$t?On(si,$t):(bt=si,Mn(),bt=""),Ye++}}function Nr(_e,Re){return _e.scope&&typeof _e.scope=="string"&&Jt.openNode(un.classNameAliases[_e.scope]||_e.scope),_e.beginScope&&(_e.beginScope._wrap?(On(bt,un.classNameAliases[_e.beginScope._wrap]||_e.beginScope._wrap),bt=""):_e.beginScope._multi&&(Ga(_e.beginScope,Re),bt="")),qe=Object.create(_e,{parent:{value:qe}}),qe}function Li(_e,Re,Ye){let it=w(_e.endRe,Ye);if(it){if(_e["on:end"]){const $t=new t(_e);_e["on:end"](Re,$t),$t.isMatchIgnored&&(it=!1)}if(it){for(;_e.endsParent&&_e.parent;)_e=_e.parent;return _e}}if(_e.endsWithParent)return Li(_e.parent,Re,Ye)}function Sr(_e){return qe.matcher.regexIndex===0?(bt+=_e[0],1):(Ar=!0,0)}function Va(_e){const Re=_e[0],Ye=_e.rule,it=new t(Ye),$t=[Ye.__beforeBegin,Ye["on:begin"]];for(const si of $t)if(si&&(si(_e,it),it.isMatchIgnored))return Sr(Re);return Ye.skip?bt+=Re:(Ye.excludeBegin&&(bt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Re)),Nr(Ye,_e),Ye.returnBegin?0:Re.length}function Sn(_e){const Re=_e[0],Ye=ze.substring(_e.index),it=Li(qe,_e,Ye);if(!it)return nt;const $t=qe;qe.endScope&&qe.endScope._wrap?(_t(),On(Re,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?(_t(),Ga(qe.endScope,_e)):$t.skip?bt+=Re:($t.returnEnd||$t.excludeEnd||(bt+=Re),_t(),$t.excludeEnd&&(bt=Re));do qe.scope&&Jt.closeNode(),!qe.skip&&!qe.subLanguage&&(Tr+=qe.relevance),qe=qe.parent;while(qe!==it.parent);return it.starts&&Nr(it.starts,_e),$t.returnEnd?0:Re.length}function ca(){const _e=[];for(let Re=qe;Re!==un;Re=Re.parent)Re.scope&&_e.unshift(Re.scope);_e.forEach(Re=>Jt.openNode(Re))}let _i={};function kr(_e,Re){const Ye=Re&&Re[0];if(bt+=_e,Ye==null)return _t(),0;if(_i.type==="begin"&&Re.type==="end"&&_i.index===Re.index&&Ye===""){if(bt+=ze.slice(Re.index,Re.index+1),!St){const it=new Error(`0 width match regex (${ye})`);throw it.languageName=ye,it.badRule=_i.rule,it}return 1}if(_i=Re,Re.type==="begin")return Va(Re);if(Re.type==="illegal"&&!Qe){const it=new Error('Illegal lexeme "'+Ye+'" for mode "'+(qe.scope||"")+'"');throw it.mode=qe,it}else if(Re.type==="end"){const it=Sn(Re);if(it!==nt)return it}if(Re.type==="illegal"&&Ye==="")return bt+=` +`,1;if(Ys>1e5&&Ys>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return bt+=Ye,Ye.length}const un=bn(ye);if(!un)throw ct(gt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const ua=Kt(un);let Ya="",qe=ft||ua;const So={},Jt=new Se.__emitter(Se);ca();let bt="",Tr=0,Zi=0,Ys=0,Ar=!1;try{if(un.__emitTokens)un.__emitTokens(ze,Jt);else{for(qe.matcher.considerAll();;){Ys++,Ar?Ar=!1:qe.matcher.considerAll(),qe.matcher.lastIndex=Zi;const _e=qe.matcher.exec(ze);if(!_e)break;const Re=ze.substring(Zi,_e.index),Ye=kr(Re,_e);Zi=_e.index+Ye}kr(ze.substring(Zi))}return Jt.finalize(),Ya=Jt.toHTML(),{language:ye,value:Ya,relevance:Tr,illegal:!1,_emitter:Jt,_top:qe}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:ye,value:cn(ze),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:Zi,context:ze.slice(Zi-100,Zi+100),mode:_e.mode,resultSoFar:Ya},_emitter:Jt};if(St)return{language:ye,value:cn(ze),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:qe};throw _e}}function vr(ye){const ze={value:cn(ye),illegal:!1,relevance:0,_top:Ce,_emitter:new Se.__emitter(Se)};return ze._emitter.addText(ye),ze}function _r(ye,ze){ze=ze||Se.languages||Object.keys(pe);const Qe=vr(ye),ft=ze.filter(bn).filter(yi).map(_t=>gi(_t,ye,!1));ft.unshift(Qe);const Ht=ft.sort((_t,On)=>{if(_t.relevance!==On.relevance)return On.relevance-_t.relevance;if(_t.language&&On.language){if(bn(_t.language).supersetOf===On.language)return 1;if(bn(On.language).supersetOf===_t.language)return-1}return 0}),[mn,Mn]=Ht,Nn=mn;return Nn.secondBest=Mn,Nn}function ai(ye,ze,Qe){const ft=ze&&we[ze]||Qe;ye.classList.add("hljs"),ye.classList.add(`language-${ft}`)}function Ut(ye){let ze=null;const Qe=Bt(ye);if(Ue(Qe))return;if(Ki("before:highlightElement",{el:ye,language:Qe}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(Se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),Se.throwUnescapedHTML))throw new zn("One of your code blocks includes unescaped HTML.",ye.innerHTML);ze=ye;const ft=ze.textContent,Ht=Qe?Mt(ft,{language:Qe,ignoreIllegals:!0}):_r(ft);ye.innerHTML=Ht.value,ye.dataset.highlighted="yes",ai(ye,Qe,Ht.language),ye.result={language:Ht.language,re:Ht.relevance,relevance:Ht.relevance},Ht.secondBest&&(ye.secondBest={language:Ht.secondBest.language,relevance:Ht.secondBest.relevance}),Ki("after:highlightElement",{el:ye,result:Ht,text:ft})}function pn(ye){Se=yr(Se,ye)}const bi=()=>{wr(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Er(){wr(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let la=!1;function wr(){function ye(){wr()}if(document.readyState==="loading"){la||window.addEventListener("DOMContentLoaded",ye,!1),la=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function Pa(ye,ze){let Qe=null;try{Qe=ze(ne)}catch(ft){if(ct("Language definition for '{}' could not be registered.".replace("{}",ye)),St)ct(ft);else throw ft;Qe=Ce}Qe.name||(Qe.name=ye),pe[ye]=Qe,Qe.rawDefinition=ze.bind(null,ne),Qe.aliases&&xi(Qe.aliases,{languageName:ye})}function Xi(ye){delete pe[ye];for(const ze of Object.keys(we))we[ze]===ye&&delete we[ze]}function oa(){return Object.keys(pe)}function bn(ye){return ye=(ye||"").toLowerCase(),pe[ye]||pe[we[ye]]}function xi(ye,{languageName:ze}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{we[Qe.toLowerCase()]=ze})}function yi(ye){const ze=bn(ye);return ze&&!ze.disableAutodetect}function Di(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=ze=>{ye["before:highlightBlock"](Object.assign({block:ze.el},ze))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=ze=>{ye["after:highlightBlock"](Object.assign({block:ze.el},ze))})}function Ft(ye){Di(ye),Pe.push(ye)}function Fa(ye){const ze=Pe.indexOf(ye);ze!==-1&&Pe.splice(ze,1)}function Ki(ye,ze){const Qe=ye;Pe.forEach(function(ft){ft[Qe]&&ft[Qe](ze)})}function vi(ye){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),Ut(ye)}Object.assign(ne,{highlight:Mt,highlightAuto:_r,highlightAll:wr,highlightElement:Ut,highlightBlock:vi,configure:pn,initHighlighting:bi,initHighlightingOnLoad:Er,registerLanguage:Pa,unregisterLanguage:Xi,listLanguages:oa,getLanguage:bn,registerAliases:xi,autoDetection:yi,inherit:yr,addPlugin:Ft,removePlugin:Fa}),ne.debugMode=function(){St=!1},ne.safeMode=function(){St=!0},ne.versionString=ut,ne.regex={concat:N,lookahead:y,either:E,optional:_,anyNumberOfTimes:x};for(const ye in ce)typeof ce[ye]=="object"&&e(ce[ye]);return Object.assign(ne,ce),ne},hn=Cn({});return hn.newInstance=()=>Cn({}),xh=hn,hn.HighlightJS=hn,hn.default=hn,xh}var yh,jy;function hD(){if(jy)return yh;jy=1;function e(t){const i=t.regex,a=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=t.inherit(c,{begin:/\(/,end:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[c,f,h,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[c,d,f,h]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:p}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return yh=e,yh}var vh,Iy;function pD(){if(Iy)return vh;Iy=1;function e(t){const i=t.regex,a={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),d={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},h={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,o]};o.contains.push(h);const f={match:/\\"/},p={className:"string",begin:/'/,end:/'/},m={match:/\\'/},y={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=t.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),N={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},S=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],E=["true","false"],k={match:/(\/[a-z._-]+)+/},w=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],O=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],B=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:S,literal:E,built_in:[...w,...O,"set","shopt",...B,...R]},contains:[_,t.SHEBANG(),N,y,c,d,k,h,f,p,m,a]}}return vh=e,vh}var _h,By;function mD(){if(By)return _h;By=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="("+s+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+t.IDENT_RE+"\\s*\\(",E={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},k=[y,h,a,t.C_BLOCK_COMMENT_MODE,m,p],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:k.concat([{begin:/\(/,end:/\)/,keywords:E,contains:k.concat(["self"]),relevance:0}]),relevance:0},O={begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:E,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,m,h,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,m,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:y,strings:p,keywords:E}}}return _h=e,_h}var Eh,Uy;function gD(){if(Uy)return Eh;Uy=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="(?!struct)("+s+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+t.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],S=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],k=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],B={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},R={className:"function.dispatch",relevance:0,keywords:{_hint:k},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},H=[R,y,h,a,t.C_BLOCK_COMMENT_MODE,m,p],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:H.concat([{begin:/\(/,end:/\)/,keywords:B,contains:H.concat(["self"]),relevance:0}]),relevance:0},K={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:B,relevance:0},{begin:_,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,m,h,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,m,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"",keywords:B,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Eh=e,Eh}var wh,Hy;function bD(){if(Hy)return wh;Hy=1;function e(t){const i=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],d={keyword:o.concat(c),built_in:i,literal:s},h=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},y=t.inherit(m,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:d},_=t.inherit(x,{illegal:/\n/}),N={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},E=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});x.contains=[S,N,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],_.contains=[E,N,y,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[p,S,N,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},w={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},O=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",B={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:d,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},k,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},h,w,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,w,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+O+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:d,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,w],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,relevance:0,contains:[k,f,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},B]}}return wh=e,wh}var Nh,$y;function xD(){if($y)return Nh;$y=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(f){const p=f.regex,m=e(f),y={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",_=/@-?\w[\w]*(-\w+)*/,N="[a-zA-Z-][a-zA-Z0-9_-]*",S=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,y,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...S,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},m.FUNCTION_DISPATCH]},{begin:p.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Nh=h,Nh}var Sh,qy;function yD(){if(qy)return Sh;qy=1;function e(t){const i=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},d={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},y=t.inherit(p,{contains:[]}),x=t.inherit(m,{contains:[]});p.contains.push(x),m.contains.push(y);let _=[a,f];return[p,m,y,x].forEach(k=>{k.contains=k.contains.concat(_)}),_=_.concat(p,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},a,c,p,m,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},o,s,f,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Sh=e,Sh}var kh,Py;function vD(){if(Py)return kh;Py=1;function e(t){const i=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:i.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:i.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return kh=e,kh}var Th,Fy;function _D(){if(Fy)return Th;Fy=1;function e(t){const i=t.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=i.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=i.concat(s,/(::\w+)*/),d={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},h={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},p=[t.COMMENT("#","$",{contains:[h]}),t.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:d},y={className:"string",contains:[t.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:i.concat(/<<[-~]?'?/,i.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,m]})]}]},x="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},S={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:d}]},H=[y,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:d},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[S]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[y,{begin:a}],relevance:0},N,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:d},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,p),relevance:0}].concat(f,p);m.contains=H,S.contains=H;const q=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:H}}];return p.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(q).concat(p).concat(H)}}return Th=e,Th}var Ah,Gy;function ED(){if(Gy)return Ah;Gy=1;function e(t){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"s(c,d,h-1))}function o(c){const d=c.regex,h="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",f=h+s("(?:<"+h+"~~~(?:\\s*,\\s*"+h+"~~~)*>)?",/~~~/g,2),_={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},N={className:"meta",begin:"@"+h,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},S={className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[c.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:_,illegal:/<\/|#/,contains:[c.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[c.BACKSLASH_ESCAPE]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,h],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[d.concat(/(?!else)/,h),/\s+/,h,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,h],className:{1:"keyword",3:"title.class"},contains:[S,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+f+"\\s+)",c.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:_,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[N,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,a,c.C_BLOCK_COMMENT_MODE]},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},a,N]}}return Oh=o,Oh}var Rh,Ky;function kD(){if(Ky)return Rh;Ky=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(o,a,s);function h(f){const p=f.regex,m=(J,{after:W})=>{const ee="",end:""},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,N={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,W)=>{const ee=J[0].length+J.index,ce=J.input[ee];if(ce==="<"||ce===","){W.ignoreMatch();return}ce===">"&&(m(J,{after:ee})||W.ignoreMatch());let fe;const be=J.input.substring(ee);if(fe=be.match(/^\s*=/)){W.ignoreMatch();return}if((fe=be.match(/^\s+extends\s+/))&&fe.index===0){W.ignoreMatch();return}}},S={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},E="[0-9](_?[0-9])*",k=`\\.(${E})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",O={className:"number",variants:[{begin:`(\\b(${w})((${k})|\\.)?|(${k}))[eE][+-]?(${E})\\b`},{begin:`\\b(${w})\\b((${k})\\b|\\.)?|(${k})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},B={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"graphql"}},K={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,B]},q={className:"comment",variants:[f.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},X=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,I,K,{match:/\$\d+/},O];B.contains=X.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(X)});const G=[].concat(q,B.contains),C=G.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(G)}]),j={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:C},M={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,p.concat(y,"(",p.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},U={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},Y={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Z={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[j],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(J){return p.concat("(?!",J.join("|"),")")}const V={match:p.concat(/\b/,z([...o,"super","import"].map(J=>`${J}\\s*\\(`)),y,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},D={begin:p.concat(/\./,p.lookahead(p.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},j]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[j]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),Y,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,I,K,q,{match:/\$\d+/},O,U,{scope:"attr",match:y+p.lookahead(":"),relevance:0},Q,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,f.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:_},{begin:N.begin,"on:begin":N.isTrulyOpeningTag,end:N.end}],subLanguage:"xml",contains:[{begin:N.begin,end:N.end,skip:!0,contains:["self"]}]}]},Z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[j,f.inherit(f.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},D,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[j]},V,A,M,F,{match:/\$[(.]/}]}}return Rh=h,Rh}var Dh,Zy;function TD(){if(Zy)return Dh;Zy=1;function e(t){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],o={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[i,a,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Dh=e,Dh}var Lh,Qy;function AD(){if(Qy)return Lh;Qy=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},d={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},h={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},f={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},p={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},m={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[p,f]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,p,f]}]};f.contains.push(m);const y={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(m,{className:"string"}),"self"]}]},_=a,N=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),S={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=S;return E.variants[1].contains=[S],S.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,N,d,h,y,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[S,o.C_LINE_COMMENT_MODE,N],relevance:0},o.C_LINE_COMMENT_MODE,N,y,x,m,o.C_NUMBER_MODE]},N]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},y,x]},m,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},_]}}return Lh=s,Lh}var zh,Wy;function CD(){if(Wy)return zh;Wy=1;const e=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),h=o.concat(c).sort().reverse();function f(p){const m=e(p),y=h,x="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],E=[],k=function(G){return{className:"string",begin:"~?"+G+".*?"+G}},w=function(G,C,j){return{className:G,begin:C,relevance:j}},O={$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},B={begin:"\\(",end:"\\)",contains:E,keywords:O,relevance:0};E.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,k("'"),k('"'),m.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},m.HEXCOLOR,B,w("variable","@@?"+_,10),w("variable","@\\{"+_+"\\}"),w("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},m.IMPORTANT,{beginKeywords:"and not"},m.FUNCTION_DISPATCH);const R=E.concat({begin:/\{/,end:/\}/,contains:S}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(E)},I={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:E}}]},K={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:O,returnEnd:!0,contains:E,relevance:0}},L={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},q={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:N,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,H,w("keyword","all\\b"),w("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},m.CSS_NUMBER_MODE,w("selector-tag",N,0),w("selector-id","#"+N),w("selector-class","\\."+N,0),w("selector-tag","&",0),m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},m.FUNCTION_DISPATCH]},X={begin:_+`:(:)?(${y.join("|")})`,returnBegin:!0,contains:[q]};return S.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,K,L,X,I,q,H,m.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return zh=f,zh}var jh,Jy;function MD(){if(Jy)return jh;Jy=1;function e(t){const i="\\[=*\\[",a="\\]=*\\]",s={begin:i,end:a,contains:["self"]},o=[t.COMMENT("--(?!"+i+")","$"),t.COMMENT("--"+i,a,{contains:[s],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:i,end:a,contains:[s],relevance:5}])}}return jh=e,jh}var Ih,ev;function OD(){if(ev)return Ih;ev=1;function e(t){const i={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%\{/,end:/\}/},h={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},f={scope:"variable",variants:[{begin:/\$\d/},{begin:i.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[h]},p={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},m=[t.BACKSLASH_ESCAPE,c,f],y=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(S,E,k="\\1")=>{const w=k==="\\1"?k:i.concat(k,E);return i.concat(i.concat("(?:",S,")"),E,/(?:\\.|[^\\\/])*?/,w,/(?:\\.|[^\\\/])*?/,k,s)},_=(S,E,k)=>i.concat(i.concat("(?:",S,")"),E,/(?:\\.|[^\\\/])*?/,k,s),N=[f,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:m,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},p,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",i.either(...y,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",i.either(...y,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h,p]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=N,d.contains=N,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:N}}return Bh=e,Bh}var Uh,nv;function DD(){if(nv)return Uh;nv=1;function e(t){const i={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,h={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},f={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:h,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return Uh=e,Uh}var Hh,iv;function LD(){if(iv)return Hh;iv=1;function e(t){const i=t.regex,a=/(?![A-Za-z0-9])(?![$])/,s=i.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),o=i.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),c=i.concat(/[A-Z]+/,a),d={scope:"variable",match:"\\$+"+s},h={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},f={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=t.inherit(t.APOS_STRING_MODE,{illegal:null}),m=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(f)}),y={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(f),"on:begin":(j,M)=>{M.data._beginMatch=j[1]||j[2]},"on:end":(j,M)=>{M.data._beginMatch!==j[1]&&M.ignoreMatch()}},x=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[ +]`,N={scope:"string",variants:[m,p,y,x]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},E=["false","null","true"],k=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],w=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],B={keyword:k,literal:(j=>{const M=[];return j.forEach(U=>{M.push(U),U.toLowerCase()===U?M.push(U.toUpperCase()):M.push(U.toLowerCase())}),M})(E),built_in:w},R=j=>j.map(M=>M.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,i.concat(_,"+"),i.concat("(?!",R(w).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},I=i.concat(s,"\\b(?!\\()"),K={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[o,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:i.concat(s,i.lookahead(":"),i.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:B,contains:[L,d,K,t.C_BLOCK_COMMENT_MODE,N,S,H]},X={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",R(k).join("\\b|"),"|",R(w).join("\\b|"),"\\b)"),s,i.concat(_,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(X);const G=[L,K,t.C_BLOCK_COMMENT_MODE,N,S,H],C={begin:i.concat(/#\[\s*\\?/,i.either(o,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...G]},...G,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:B,contains:[C,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},h,{scope:"variable.language",match:/\$this\b/},d,X,K,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},H,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:B,contains:["self",C,d,K,t.C_BLOCK_COMMENT_MODE,N,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},N,S]}}return Hh=e,Hh}var $h,rv;function zD(){if(rv)return $h;rv=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return $h=e,$h}var qh,av;function jD(){if(av)return qh;av=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return qh=e,qh}var Ph,sv;function ID(){if(sv)return Ph;sv=1;function e(t){const i=t.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],h={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},m={begin:/\{\{/,relevance:0},y={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f,m,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f,m,p]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,m,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,m,p]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",_=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,N=`\\b|${s.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${_}))[eE][+-]?(${x})[jJ]?(?=${N})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${N})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${N})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${N})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${N})`},{begin:`\\b(${x})[jJ](?=${N})`}]},E={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",f,S,y,t.HASH_COMMENT_MODE]}]};return p.contains=[y,S,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[f,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},y,E,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[S,k,y]}]}}return Ph=e,Ph}var Fh,lv;function BD(){if(lv)return Fh;lv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Fh=e,Fh}var Gh,ov;function UD(){if(ov)return Gh;ov=1;function e(t){const i=t.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=i.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=i.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:i.lookahead(i.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[c,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Gh=e,Gh}var Vh,cv;function HD(){if(cv)return Vh;cv=1;function e(t){const i=t.regex,a=/(r#)?/,s=i.concat(a,t.UNDERSCORE_IDENT_RE),o=i.concat(a,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,i.lookahead(/\s*\(/))},d="([ui](8|16|32|64|128|size)|f(32|64))?",h=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],f=["true","false","Some","None","Ok","Err"],p=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],m=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:m,keyword:h,literal:f,built_in:p},illegal:""},c]}}return Vh=e,Vh}var Yh,uv;function $D(){if(uv)return Yh;uv=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(f){const p=e(f),m=c,y=o,x="@[a-z-]+",_="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,p.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+y.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+m.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[p.CSS_NUMBER_MODE]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[p.BLOCK_COMMENT,S,p.HEXCOLOR,p.CSS_NUMBER_MODE,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,p.IMPORTANT,p.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,p.HEXCOLOR,p.CSS_NUMBER_MODE]},p.FUNCTION_DISPATCH]}}return Yh=h,Yh}var Xh,dv;function qD(){if(dv)return Xh;dv=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Xh=e,Xh}var Kh,fv;function PD(){if(fv)return Kh;fv=1;function e(t){const i=t.regex,a=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],d=["double precision","large object","with timezone","without timezone"],h=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],y=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=m,N=[...p,...f].filter(R=>!m.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},E={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:i.concat(/\b/,i.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function w(R){return i.concat(/\b/,i.either(...R.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const O={scope:"keyword",match:w(x),relevance:0};function B(R,{exceptions:H,when:I}={}){const K=I;return H=H||[],R.map(L=>L.match(/\|\d+$/)||H.includes(L)?L:K(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(N,{when:R=>R.length<3}),literal:c,type:h,built_in:y},contains:[{scope:"type",match:w(d)},O,k,S,s,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,E]}}return Kh=e,Kh}var Zh,hv;function FD(){if(hv)return Zh;hv=1;function e(I){return I?typeof I=="string"?I:I.source:null}function t(I){return i("(?=",I,")")}function i(...I){return I.map(L=>e(L)).join("")}function a(I){const K=I[I.length-1];return typeof K=="object"&&K.constructor===Object?(I.splice(I.length-1,1),K):{}}function s(...I){return"("+(a(I).capture?"":"?:")+I.map(q=>e(q)).join("|")+")"}const o=I=>i(/\b/,I,/\w$/.test(I)?/\b/:/\B/),c=["Protocol","Type"].map(o),d=["init","self"].map(o),h=["Any","Self"],f=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],p=["false","nil","true"],m=["assignment","associativity","higherThan","left","lowerThan","none","right"],y=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=s(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),N=s(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),S=i(_,N,"*"),E=s(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=s(E,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=i(E,k,"*"),O=i(/[A-Z]/,k,"*"),B=["attached","autoclosure",i(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",i(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],R=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(I){const K={match:/\s+/,relevance:0},L=I.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[I.C_LINE_COMMENT_MODE,L],X={match:[/\./,s(...c,...d)],className:{2:"keyword"}},G={match:i(/\./,s(...f)),relevance:0},C=f.filter(nt=>typeof nt=="string").concat(["_|0"]),j=f.filter(nt=>typeof nt!="string").concat(h).map(o),M={variants:[{className:"keyword",match:s(...j,...d)}]},U={$pattern:s(/\b\w+/,/#\w+/),keyword:C.concat(y),literal:p},Y=[X,G,M],Z={match:i(/\./,s(...x)),relevance:0},A={className:"built_in",match:i(/\b/,s(...x),/(?=\()/)},z=[Z,A],V={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},F=[V,D],$="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${$})(\\.(${$}))?([eE][+-]?(${$}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${$}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},W=(nt="")=>({className:"subst",variants:[{match:i(/\\/,nt,/[0\\tnr"']/)},{match:i(/\\/,nt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ee=(nt="")=>({className:"subst",match:i(/\\/,nt,/[\t ]*(?:[\r\n]|\r\n)/)}),ce=(nt="")=>({className:"subst",label:"interpol",begin:i(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:i(nt,/"""/),end:i(/"""/,nt),contains:[W(nt),ee(nt),ce(nt)]}),be=(nt="")=>({begin:i(nt,/"/),end:i(/"/,nt),contains:[W(nt),ce(nt)]}),Ee={className:"string",variants:[fe(),fe("#"),fe("##"),fe("###"),be(),be("#"),be("##"),be("###")]},Ne=[I.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[I.BACKSLASH_ESCAPE]}],Le={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ne},$e=nt=>{const Yn=i(nt,/\//),Cn=i(/\//,nt);return{begin:Yn,end:Cn,contains:[...Ne,{scope:"comment",begin:`#(?!.*${Cn})`,end:/$/}]}},st={scope:"regexp",variants:[$e("###"),$e("##"),$e("#"),Le]},Rt={match:i(/`/,w,/`/)},Yt={className:"variable",match:/\$\d+/},Pt={className:"variable",match:`\\$${k}+`},Xt=[Rt,Yt,Pt],Vn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...F,J,Ee]}]}},En={scope:"keyword",match:i(/@/,s(...B),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:i(/@/,w)},It=[Vn,En,ct],ue={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:O,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,t(O)),relevance:0}]},xe={begin://,keywords:U,contains:[...q,...Y,...It,V,ue]};ue.contains.push(xe);const Oe={match:i(w,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:U,contains:["self",Oe,...q,st,...Y,...z,...F,J,Ee,...Xt,...It,ue]},Ze={begin://,keywords:"repeat each",contains:[...q,ue]},on={begin:s(t(i(w,/\s*:/)),t(i(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:w}]},wn={begin:/\(/,end:/\)/,keywords:U,contains:[on,...q,...Y,...F,J,Ee,...It,ue,Fe],endsParent:!0,illegal:/["']/},Kt={match:[/(func|macro)/,/\s+/,s(Rt.match,w,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,wn,K],illegal:[/\[/,/%/]},Ct={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,wn,K],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,O],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...m,...p],end:/}/},zn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},cn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},yr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,w,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:U,contains:[Ze,...Y,{begin:/:/,end:/\{/,keywords:U,contains:[{scope:"title.class.inherited",match:O},...Y],relevance:0}]};for(const nt of Ee.variants){const Yn=nt.contains.find(hn=>hn.label==="interpol");Yn.keywords=U;const Cn=[...Y,...z,...F,J,Ee,...Xt];Yn.contains=[...Cn,{begin:/\(/,end:/\)/,contains:["self",...Cn]}]}return{name:"Swift",keywords:U,contains:[...q,Kt,Ct,zn,cn,yr,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},st,...Y,...z,...F,J,Ee,...Xt,...It,ue,Fe]}}return Zh=H,Zh}var Qh,pv;function GD(){if(pv)return Qh;pv=1;function e(t){const i="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},d={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},h=t.inherit(d,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},N={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},E=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},x,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},N,S,c,d],k=[...E];return k.pop(),k.push(h),_.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:E}}return Qh=e,Qh}var Wh,mv;function VD(){if(mv)return Wh;mv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(o,a,s);function h(p){const m=p.regex,y=(W,{after:ee})=>{const ce="",end:""},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,ee)=>{const ce=W[0].length+W.index,fe=W.input[ce];if(fe==="<"||fe===","){ee.ignoreMatch();return}fe===">"&&(y(W,{after:ce})||ee.ignoreMatch());let be;const Ee=W.input.substring(ce);if(be=Ee.match(/^\s*=/)){ee.ignoreMatch();return}if((be=Ee.match(/^\s+extends\s+/))&&be.index===0){ee.ignoreMatch();return}}},E={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},k="[0-9](_?[0-9])*",w=`\\.(${k})`,O="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",B={className:"number",variants:[{begin:`(\\b(${O})((${w})|\\.)?|(${w}))[eE][+-]?(${k})\\b`},{begin:`\\b(${O})\\b((${w})\\b|\\.)?|(${w})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},I={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"css"}},K={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,R]},X={className:"comment",variants:[p.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},G=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,I,K,L,{match:/\$\d+/},B];R.contains=G.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(G)});const C=[].concat(X,R.contains),j=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:E,contains:["self"].concat(C)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:j},U={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,m.concat(x,"(",m.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},Z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},z={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function V(W){return m.concat("(?!",W.join("|"),")")}const D={match:m.concat(/\b/,V([...o,"super","import"].map(W=>`${W}\\s*\\(`)),x,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:m.concat(/\./,m.lookahead(m.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),Z,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,I,K,L,X,{match:/\$\d+/},B,Y,{scope:"attr",match:x+m.lookahead(":"),relevance:0},J,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[X,p.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:j}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:N},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,p.inherit(p.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},D,z,U,$,{match:/\$[(.]/}]}}function f(p){const m=p.regex,y=h(p),x=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,p.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[y.exports.CLASS_REFERENCE]},E={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},k=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],w={$pattern:e,keyword:t.concat(k),literal:i,built_in:d.concat(_),"variable.language":c},O={className:"meta",begin:"@"+x},B=(K,L,q)=>{const X=K.contains.findIndex(G=>G.label===L);if(X===-1)throw new Error("can not find mode to replace");K.contains.splice(X,1,q)};Object.assign(y.keywords,w),y.exports.PARAMS_CONTAINS.push(O);const R=y.contains.find(K=>K.scope==="attr"),H=Object.assign({},R,{match:m.concat(x,m.lookahead(/\s*\?:/))});y.exports.PARAMS_CONTAINS.push([y.exports.CLASS_REFERENCE,R,H]),y.contains=y.contains.concat([O,N,S,H]),B(y,"shebang",p.SHEBANG()),B(y,"use_strict",E);const I=y.contains.find(K=>K.label==="func.def");return I.relevance=0,Object.assign(y,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),y}return Wh=f,Wh}var Jh,gv;function YD(){if(gv)return Jh;gv=1;function e(t){const i=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,d=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,h=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:i.concat(/# */,i.either(c,o),/ *#/)},{begin:i.concat(/# */,h,/ *#/)},{begin:i.concat(/# */,d,/ *#/)},{begin:i.concat(/# */,i.either(c,o),/ +/,i.either(d,h),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},m={className:"label",begin:/^\w+:/},y=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,s,f,p,m,y,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}return Jh=e,Jh}var ep,bv;function XD(){if(bv)return ep;bv=1;function e(t){t.regex;const i=t.COMMENT(/\(;/,/;\)/);i.contains.push("self");const a=t.COMMENT(/;;/,/$/),s=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},d={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},h={className:"number",relevance:0,match:/[+-]?\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/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={className:"keyword",match:/\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|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[a,i,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,d,o,t.QUOTE_STRING_MODE,f,p,h]}}return ep=e,ep}var tp,xv;function KD(){if(xv)return tp;xv=1;var e=fD();return e.registerLanguage("xml",hD()),e.registerLanguage("bash",pD()),e.registerLanguage("c",mD()),e.registerLanguage("cpp",gD()),e.registerLanguage("csharp",bD()),e.registerLanguage("css",xD()),e.registerLanguage("markdown",yD()),e.registerLanguage("diff",vD()),e.registerLanguage("ruby",_D()),e.registerLanguage("go",ED()),e.registerLanguage("graphql",wD()),e.registerLanguage("ini",ND()),e.registerLanguage("java",SD()),e.registerLanguage("javascript",kD()),e.registerLanguage("json",TD()),e.registerLanguage("kotlin",AD()),e.registerLanguage("less",CD()),e.registerLanguage("lua",MD()),e.registerLanguage("makefile",OD()),e.registerLanguage("perl",RD()),e.registerLanguage("objectivec",DD()),e.registerLanguage("php",LD()),e.registerLanguage("php-template",zD()),e.registerLanguage("plaintext",jD()),e.registerLanguage("python",ID()),e.registerLanguage("python-repl",BD()),e.registerLanguage("r",UD()),e.registerLanguage("rust",HD()),e.registerLanguage("scss",$D()),e.registerLanguage("shell",qD()),e.registerLanguage("sql",PD()),e.registerLanguage("swift",FD()),e.registerLanguage("yaml",GD()),e.registerLanguage("typescript",VD()),e.registerLanguage("vbnet",YD()),e.registerLanguage("wasm",XD()),e.HighlightJS=e,e.default=e,tp=e,tp}var ZD=KD();const Fn=ho(ZD);function QD(e){const t=e.regex,i="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:t.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(s,{relevance:0})]}}function WD(e){const t=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function JD(e){const t={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[a,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},a,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function e4(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"{rm(o),s(!0),setTimeout(()=>s(!1),2e3)};return b.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[x?b.jsxs("div",{className:"flex items-stretch",children:[b.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[x,b.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),b.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),b.jsx("button",{onClick:S,className:"px-3 py-2 text-[#555] hover:text-white transition-colors border-b border-[#2a2a2a]","aria-label":"Copy code",children:a?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})})]}):b.jsx("button",{onClick:S,className:"absolute top-2 right-2 z-10 p-1 rounded text-[#444] hover:text-white opacity-0 group-hover/code:opacity-100 transition-opacity","aria-label":"Copy code",children:a?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})}),b.jsx("div",{className:"overflow-auto max-h-[400px]",children:b.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:b.jsx("tbody",{children:N.map((w,O)=>b.jsxs("tr",{children:[b.jsx("td",{className:"select-none w-[1px] whitespace-nowrap px-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:y+O}),b.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:w||` +`}})]},O))})})})]})}function Am(){return e=>{const t=i=>{var a;if(i.type==="element"&&i.tagName==="pre"&&i.children){const s=i.children.find(o=>o.type==="element"&&o.tagName==="code");(a=s==null?void 0:s.data)!=null&&a.meta&&(s.properties=s.properties||{},s.properties.metastring=s.data.meta)}i.children&&i.children.forEach(s=>t(s))};t(e)}}const Cm={code:zE,pre:({children:e})=>b.jsx(b.Fragment,{children:e})};function na({title:e,content:t,action:i}){return b.jsxs("section",{children:[(e||i)&&b.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?b.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):b.jsx("span",{}),i]}),b.jsx("div",{className:"prose-markdown",children:b.jsx(wm,{remarkPlugins:[Tm],rehypePlugins:[Am],components:Cm,children:t})})]})}class n4{diff(t,i,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const o=this.castInput(t,a),c=this.castInput(i,a),d=this.removeEmpty(this.tokenize(o,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,h,a,s)}diffWithOptionsObj(t,i,a,s){var o;const c=k=>{if(k=this.postProcess(k,a),s){setTimeout(function(){s(k)},0);return}else return k},d=i.length,h=t.length;let f=1,p=d+h;a.maxEditLength!=null&&(p=Math.min(p,a.maxEditLength));const m=(o=a.timeout)!==null&&o!==void 0?o:1/0,y=Date.now()+m,x=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(x[0],i,t,0,a);if(x[0].oldPos+1>=h&&_+1>=d)return c(this.buildValues(x[0].lastComponent,i,t));let N=-1/0,S=1/0;const E=()=>{for(let k=Math.max(N,-f);k<=Math.min(S,f);k+=2){let w;const O=x[k-1],B=x[k+1];O&&(x[k-1]=void 0);let R=!1;if(B){const I=B.oldPos-k;R=B&&0<=I&&I=h&&_+1>=d)return c(this.buildValues(w.lastComponent,i,t))||!0;x[k]=w,w.oldPos+1>=h&&(S=Math.min(S,k-1)),_+1>=d&&(N=Math.max(N,k+1))}f++};if(s)(function k(){setTimeout(function(){if(f>p||Date.now()>y)return s(void 0);E()||k()},0)})();else for(;f<=p&&Date.now()<=y;){const k=E();if(k)return k}}addToPath(t,i,a,s,o){const c=t.lastComponent;return c&&!o.oneChangePerToken&&c.added===i&&c.removed===a?{oldPos:t.oldPos+s,lastComponent:{count:c.count+1,added:i,removed:a,previousComponent:c.previousComponent}}:{oldPos:t.oldPos+s,lastComponent:{count:1,added:i,removed:a,previousComponent:c}}}extractCommon(t,i,a,s,o){const c=i.length,d=a.length;let h=t.oldPos,f=h-s,p=0;for(;f+1y.length?_:y}),p.value=this.join(m)}else p.value=this.join(i.slice(h,h+p.count));h+=p.count,p.added||(f+=p.count)}}return s}}class i4 extends n4{constructor(){super(...arguments),this.tokenize=s4}equals(t,i,a){return a.ignoreWhitespace?((!a.newlineIsToken||!t.includes(` +`))&&(t=t.trim()),(!a.newlineIsToken||!i.includes(` +`))&&(i=i.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(t.endsWith(` +`)&&(t=t.slice(0,-1)),i.endsWith(` +`)&&(i=i.slice(0,-1))),super.equals(t,i,a)}}const r4=new i4;function a4(e,t,i){return r4.diff(e,t,i)}function s4(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,` +`));const i=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;sN.value.replace(/\n$/,"").split(` +`).map(S=>{const E=S===""?` +`:f!=="text"?l4(S,f):S.replace(/&/g,"&").replace(//g,">");let k="",w="";return N.removed?k=String(m++):(N.added||(k=String(m++)),w=String(y++)),{highlighted:E,added:!!N.added,removed:!!N.removed,leftNo:k,rightNo:w}})),_=()=>{rm(s),d(!0),setTimeout(()=>d(!1),2e3),o==null||o()};return b.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[b.jsxs("div",{className:"flex items-stretch",children:[b.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a] break-all",children:[e,":",h,b.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),b.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),b.jsx("button",{onClick:_,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy fixed code",children:c?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})})]}),b.jsx("div",{className:"overflow-auto max-h-[400px]",children:b.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:b.jsx("tbody",{children:x.map((N,S)=>b.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[b.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-4 pr-1.5 text-right text-[#555] align-top text-[12px] leading-[22px]",children:N.leftNo}),b.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-1.5 pr-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:N.rightNo}),b.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}function c4({description:e,scriptCode:t,onCopy:i}){const[a,s]=re.useState(!1);if(!e&&!t)return null;const o=()=>{t&&(rm(t),s(!0),setTimeout(()=>s(!1),2e3),i==null||i())};return b.jsxs("section",{children:[b.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),b.jsxs("div",{className:"space-y-4",children:[e&&b.jsx("div",{className:"prose-markdown",children:b.jsx(wm,{remarkPlugins:[Tm],rehypePlugins:[Am],components:Cm,children:e})}),t&&b.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[b.jsxs("div",{className:"flex items-stretch",children:[b.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",b.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),b.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),b.jsx("button",{onClick:o,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy PoC code",children:a?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})})]}),b.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:b.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:b.jsx("code",{dangerouslySetInnerHTML:{__html:Fn.highlight(t,{language:"python"}).value}})})})]})]})]})}function u4(e){const t=e.match(/(?:https?:\/\/)?(?:www\.)?github\.com\/([^\s/]+\/[^\s/]+)/);if(t){const s=t[1].replace(/\.git$/,"");return{display:s,href:`https://github.com/${s}`,provider:"github"}}const i=e.match(/(?:https?:\/\/)?(?:www\.)?gitlab\.com\/([^\s/]+\/[^\s/]+)/);if(i){const s=i[1].replace(/\.git$/,"");return{display:s,href:`https://gitlab.com/${s}`,provider:"gitlab"}}const a=e.match(/(?:https?:\/\/)?(?:www\.)?bitbucket\.org\/([^\s/]+\/[^\s/]+)/);if(a){const s=a[1].replace(/\.git$/,"");return{display:s,href:`https://bitbucket.org/${s}`,provider:"bitbucket"}}return/^https?:\/\//i.test(e)?{display:e.replace(/^https?:\/\/(www\.)?/,""),href:e,provider:null}:/^[a-zA-Z0-9][\w.-]*\.[a-zA-Z]{2,}/.test(e)?{display:e,href:`https://${e}`,provider:null}:{display:e,href:null,provider:null}}function d4({className:e}){return b.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:b.jsx("path",{d:"M2.65 3a.72.72 0 0 0-.72.83l2.86 17.39a.98.98 0 0 0 .96.82h13.72a.72.72 0 0 0 .72-.6l2.86-17.4A.72.72 0 0 0 22.3 3H2.65Zm12.1 12.53H9.3L8.06 8.9h7.8l-1.11 6.63Z"})})}function f4({provider:e,className:t}){const i=t??"w-4 h-4";return e==="gitlab"?b.jsx(V2,{className:`${i} text-orange-400`}):e==="bitbucket"?b.jsx(d4,{className:`${i} text-blue-400`}):b.jsx(F2,{className:`${i} text-white`})}const h4={attack_vector:{N:"Remotely exploitable",A:"Adjacent network",L:"Local access required",P:"Physical access required"},attack_complexity:{L:"Easy to exploit",H:"Requires specific conditions"},privileges_required:{N:"No authentication needed",L:"Low privileges needed",H:"High privileges needed"},user_interaction:{N:"No user action required",R:"Requires user action",P:"Passive user role",A:"Active user role"},scope:{U:"Impact stays contained",C:"Can spread to other systems"},confidentiality:{N:"No data exposure",L:"Partial data exposure",H:"Full data exposure"},integrity:{N:"No data modification",L:"Limited modification",H:"Full data modification"},availability:{N:"No service disruption",L:"Limited disruption",H:"Full service disruption"}},p4={attack_vector:{N:"high",A:"medium",L:"low",P:"low"},attack_complexity:{L:"high",H:"low"},privileges_required:{N:"high",L:"medium",H:"low"},user_interaction:{N:"high",R:"low",P:"medium",A:"low"},scope:{C:"high",U:"low"},confidentiality:{H:"high",L:"medium",N:"low"},integrity:{H:"high",L:"medium",N:"low"},availability:{H:"high",L:"medium",N:"low"}},m4={high:"bg-red-500/15 text-red-400 border-red-500/25",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/25",low:"bg-[#222] text-[#666] border-[#333]"},g4=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function b4(e,t,i,a,s){const o=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),d=i.split("/").map(encodeURIComponent).join("/");return t==="github"?`${o}/blob/${d}/${c}#L${s}`:t==="gitlab"?`${o}/-/blob/${d}/${c}#L${s}`:null}function x4({vulnerability:e,statusSlot:t,slackThreadUrl:i}){var R;const{severity:a,cvss:s,cve:o,cwe:c,fix_effort:d,created_at:h,target:f,endpoint:p,method:m,code_locations:y,cvss_breakdown:x,location_meta:_}=e,[N,S]=re.useState(!0),E=y==null?void 0:y.filter(H=>H.fix_before&&H.fix_after),k=E&&E.length>0,w=f?u4(f):null,O=!!(f||p||m||k),B=x&&Object.values(x).some(H=>H!=null);return b.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[b.jsx("div",{className:"pb-4",children:b.jsxs("div",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx("div",{className:`w-2 h-2 rounded-full ${im(a)}`,"aria-hidden":"true"}),b.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),b.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),o&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),b.jsx("span",{className:"text-sm text-white font-mono",children:o})]}),c&&c.length>0&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),b.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),b.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=VT[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx(a_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),b.jsx("span",{className:"text-sm text-white",children:Ep(h)})]})]}),b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),O&&b.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[b.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),b.jsxs("div",{className:"space-y-2.5",children:[f&&w&&b.jsxs("div",{className:"flex items-center gap-1.5",children:[w.provider?b.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:b.jsx(f4,{provider:w.provider})}):b.jsx(em,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),w.href?b.jsx("a",{href:w.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white hover:text-[#ccc] break-words min-w-0 transition-colors",children:w.display}):b.jsx("span",{className:"text-sm text-white break-words min-w-0",children:w.display})]}),p&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),b.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:p})]}),m&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),b.jsx("span",{className:"text-xs text-white font-mono",children:m})]}),k&&b.jsxs("div",{children:[b.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),b.jsx("div",{className:"space-y-0.5",children:E.map((H,I)=>{const K=`${H.file}:${H.start_line}`,L=_?b4(_.repo_url,_.provider,_.branch,H.file,H.start_line):null;return L?b.jsx("a",{href:L,target:"_blank",rel:"noopener noreferrer",className:"text-[13px] text-[#888] hover:text-white font-mono break-all transition-colors block",children:K},`loc-${I}`):b.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:K},`loc-${I}`)})})]})]})]}),B&&b.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[b.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[b.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),b.jsx(n_,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),b.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:g4.map(H=>{const I=H.keys.filter(K=>x[K]!=null);return I.length===0?null:b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[b.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:H.label}),b.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),b.jsx("div",{className:"space-y-1",children:I.map(K=>{var G,C;const L=x[K],q=L?((G=p4[K])==null?void 0:G[L])??"low":"low",X=L?((C=h4[K])==null?void 0:C[L])??L:"N/A";return b.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[b.jsx("span",{className:"text-[12px] text-[#aaa]",children:X}),b.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${m4[q]}`,children:q})]},K)})})]},H.label)})})]})]})}function yv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Ep(e)}`:` on ${Ep(e)}`:""}const y4={open:null,in_progress:{icon:a_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:a2,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:_2,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:e_,label:"Marked as Ignored",iconColor:"text-[#888]"}};function v4({vulnerability:e}){const t=GT[e.status],i=e.code_locations&&e.code_locations.length>0,a=i||e.remediation_steps,s=!!(e.evidence||e.assumptions||e.poc_description||e.poc_script_code),[o,c]=re.useState("fix"),h=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(f=>f.show);return b.jsxs("div",{className:"space-y-6",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"mb-2",children:[e.display_number&&b.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:PA(e.display_number)}),b.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),b.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[b.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded-full border ${t.color}`,children:t.label}),b.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${h_[e.severity]}`,title:zc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[b.jsx("div",{className:`w-2 h-2 rounded-full ${im(e.severity)}`}),b.jsxs("span",{className:"capitalize",children:[e.severity,!zc(e)&&e.cvss?` ${e.cvss}`:""]}),zc(e)&&b.jsx(Ls,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-[#333]",children:"·"}),b.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),e.status!=="open"&&(()=>{const f=y4[e.status];if(!f)return null;const p=f.icon;return b.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[b.jsx(p,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${f.iconColor}`,"aria-hidden":"true"}),b.jsxs("div",{className:"min-w-0",children:[b.jsxs("p",{className:"text-sm font-semibold text-white",children:[f.label,yv(e.status_changed_at)]}),e.status_note&&b.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),zc(e)&&b.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[b.jsx(Ls,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),b.jsxs("div",{className:"min-w-0",children:[b.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",b.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",b.jsx("span",{className:"capitalize",children:e.severity}),yv(e.severity_changed_at)]}),e.severity_override_reason&&b.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),b.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[b.jsxs("div",{className:"min-w-0",children:[b.jsxs("div",{className:"space-y-8",children:[b.jsx(na,{title:"TL;DR",content:e.description}),e.impact&&b.jsx(na,{title:"Impact",content:e.impact}),e.technical_analysis&&b.jsx(na,{title:"Technical Details",content:e.technical_analysis})]}),h.length>0&&b.jsxs("div",{className:"mt-10",children:[b.jsx("div",{className:"border-b border-[#2a2a2a]",children:b.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:h.map(f=>b.jsxs("button",{onClick:()=>c(f.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${o===f.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":o===f.id?"page":void 0,children:[f.label,o===f.id&&b.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},f.id))})}),a&&b.jsxs("div",{className:`pt-6 space-y-6 ${o==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&b.jsx(na,{title:"How do I fix it?",content:e.remediation_steps}),i&&e.code_locations.filter(f=>f.fix_before&&f.fix_after).map((f,p)=>b.jsx(o4,{file:f.file,startLine:f.start_line,endLine:f.end_line,before:f.fix_before,after:f.fix_after},`fix-${p}`))]}),s&&b.jsxs("div",{className:`pt-6 space-y-8 ${o==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&b.jsx(na,{title:"Assumptions",content:e.assumptions}),e.evidence&&b.jsx(na,{title:"Evidence",content:e.evidence}),b.jsx(c4,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),b.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:b.jsx(x4,{vulnerability:e,statusSlot:b.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-full border ${t.color}`,children:[b.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]}),b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsx("p",{className:"text-sm font-semibold text-white",children:"Ship the fix with your team"}),b.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Take this finding into your team's workflow."}),b.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[b.jsx(Ms,{label:"Auto-fix & open a PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:su}),b.jsx(Ms,{label:"Sync to Jira / Linear",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:$2}),b.jsx(Ms,{label:"Catch this in PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:Jp})]})]})]})}const vv=[{key:"critical",label:"critical",dotClass:"bg-red-500",textClass:"text-red-500"},{key:"high",label:"high",dotClass:"bg-orange-500",textClass:"text-orange-500"},{key:"medium",label:"medium",dotClass:"bg-yellow-500",textClass:"text-yellow-500"},{key:"low",label:"low",dotClass:"bg-blue-500",textClass:"text-blue-500"}];function _4({findings:e,className:t,unit:i="issues",trailing:a}){return e.total<=0?null:b.jsxs("div",{className:Bc("space-y-3",t),children:[b.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),b.jsx("span",{className:"text-sm text-[#666]",children:i})]}),b.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:vv.map(({key:s,label:o,dotClass:c,textClass:d})=>{const h=e[s];return h<=0?null:b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx("div",{className:Bc("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),b.jsx("span",{className:Bc("text-sm tabular-nums",d),children:h}),b.jsx("span",{className:"text-xs text-[#555]",children:o})]},s)})}),a?b.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),b.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:vv.map(({key:s,dotClass:o})=>{const c=e[s];return c<=0?null:b.jsx("div",{className:Bc("h-full",o),style:{width:`${c/e.total*100}%`}},s)})})]})}function ln(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,a;i{}};function Ou(){for(var e=0,t=arguments.length,i={},a;e=0&&(a=i.slice(s+1),i=i.slice(0,s)),i&&!t.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}tu.prototype=Ou.prototype={constructor:tu,on:function(e,t){var i=this._,a=w4(e+"",i),s,o=-1,c=a.length;if(arguments.length<2){for(;++o0)for(var i=new Array(s),a=0,s,o;a=0&&(t=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Ev.hasOwnProperty(t)?{space:Ev[t],local:e}:e}function S4(e){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===Lp&&t.documentElement.namespaceURI===Lp?t.createElement(e):t.createElementNS(i,e)}}function k4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function jE(e){var t=Ru(e);return(t.local?k4:S4)(t)}function T4(){}function Mm(e){return e==null?T4:function(){return this.querySelector(e)}}function A4(e){typeof e!="function"&&(e=Mm(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s=w&&(w=k+1);!(B=S[w])&&++w<_;);O._next=B||null}}return c=new ri(c,a),c._enter=d,c._exit=h,c}function X4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function K4(){return new ri(this._exit||this._groups.map(HE),this._parents)}function Z4(e,t,i){var a=this.enter(),s=this,o=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),i==null?o.remove():i(o),a&&s?a.merge(s).order():s}function Q4(e){for(var t=e.selection?e.selection():e,i=this._groups,a=t._groups,s=i.length,o=a.length,c=Math.min(s,o),d=new Array(s),h=0;h=0;)(c=a[s])&&(o&&c.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(c,o),o=c);return this}function J4(e){e||(e=eL);function t(m,y){return m&&y?e(m.__data__,y.__data__):!m-!y}for(var i=this._groups,a=i.length,s=new Array(a),o=0;ot?1:e>=t?0:NaN}function tL(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function nL(){return Array.from(this)}function iL(){for(var e=this._groups,t=0,i=e.length;t1?this.each((t==null?pL:typeof t=="function"?gL:mL)(e,t,i??"")):js(this.node(),e)}function js(e,t){return e.style.getPropertyValue(t)||$E(e).getComputedStyle(e,null).getPropertyValue(t)}function xL(e){return function(){delete this[e]}}function yL(e,t){return function(){this[e]=t}}function vL(e,t){return function(){var i=t.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function _L(e,t){return arguments.length>1?this.each((t==null?xL:typeof t=="function"?vL:yL)(e,t)):this.node()[e]}function qE(e){return e.trim().split(/^|\s+/)}function Om(e){return e.classList||new PE(e)}function PE(e){this._node=e,this._names=qE(e.getAttribute("class")||"")}PE.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 FE(e,t){for(var i=Om(e),a=-1,s=t.length;++a=0&&(i=t.slice(a+1),t=t.slice(0,a)),{type:t,name:i}})}function KL(e){return function(){var t=this.__on;if(t){for(var i=0,a=-1,s=t.length,o;i()=>e;function zp(e,{sourceEvent:t,subject:i,target:a,identifier:s,active:o,x:c,y:d,dx:h,dy:f,dispatch:p}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:p}})}zp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function az(e){return!e.ctrlKey&&!e.button}function sz(){return this.parentNode}function lz(e,t){return t??{x:e.x,y:e.y}}function oz(){return navigator.maxTouchPoints||"ontouchstart"in this}function ZE(){var e=az,t=sz,i=lz,a=oz,s={},o=Ou("start","drag","end"),c=0,d,h,f,p,m=0;function y(O){O.on("mousedown.drag",x).filter(a).on("touchstart.drag",S).on("touchmove.drag",E,rz).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(O,B){if(!(p||!e.call(this,O,B))){var R=w(this,t.call(this,O,B),O,B,"mouse");R&&(ni(O.view).on("mousemove.drag",_,io).on("mouseup.drag",N,io),XE(O.view),np(O),f=!1,d=O.clientX,h=O.clientY,R("start",O))}}function _(O){if(Os(O),!f){var B=O.clientX-d,R=O.clientY-h;f=B*B+R*R>m}s.mouse("drag",O)}function N(O){ni(O.view).on("mousemove.drag mouseup.drag",null),KE(O.view,f),Os(O),s.mouse("end",O)}function S(O,B){if(e.call(this,O,B)){var R=O.changedTouches,H=t.call(this,O,B),I=R.length,K,L;for(K=0;K>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):i===8?Fc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):i===4?Fc(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=uz.exec(e))?new Pn(t[1],t[2],t[3],1):(t=dz.exec(e))?new Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fz.exec(e))?Fc(t[1],t[2],t[3],t[4]):(t=hz.exec(e))?Fc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pz.exec(e))?Cv(t[1],t[2]/100,t[3]/100,1):(t=mz.exec(e))?Cv(t[1],t[2]/100,t[3]/100,t[4]):wv.hasOwnProperty(e)?kv(wv[e]):e==="transparent"?new Pn(NaN,NaN,NaN,0):null}function kv(e){return new Pn(e>>16&255,e>>8&255,e&255,1)}function Fc(e,t,i,a){return a<=0&&(e=t=i=NaN),new Pn(e,t,i,a)}function xz(e){return e instanceof yo||(e=ja(e)),e?(e=e.rgb(),new Pn(e.r,e.g,e.b,e.opacity)):new Pn}function jp(e,t,i,a){return arguments.length===1?xz(e):new Pn(e,t,i,a??1)}function Pn(e,t,i,a){this.r=+e,this.g=+t,this.b=+i,this.opacity=+a}Rm(Pn,jp,QE(yo,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ro:Math.pow(ro,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(Da(this.r),Da(this.g),Da(this.b),pu(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:Tv,formatHex:Tv,formatHex8:yz,formatRgb:Av,toString:Av}));function Tv(){return`#${Oa(this.r)}${Oa(this.g)}${Oa(this.b)}`}function yz(){return`#${Oa(this.r)}${Oa(this.g)}${Oa(this.b)}${Oa((isNaN(this.opacity)?1:this.opacity)*255)}`}function Av(){const e=pu(this.opacity);return`${e===1?"rgb(":"rgba("}${Da(this.r)}, ${Da(this.g)}, ${Da(this.b)}${e===1?")":`, ${e})`}`}function pu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Da(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oa(e){return e=Da(e),(e<16?"0":"")+e.toString(16)}function Cv(e,t,i,a){return a<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new ki(e,t,i,a)}function WE(e){if(e instanceof ki)return new ki(e.h,e.s,e.l,e.opacity);if(e instanceof yo||(e=ja(e)),!e)return new ki;if(e instanceof ki)return e;e=e.rgb();var t=e.r/255,i=e.g/255,a=e.b/255,s=Math.min(t,i,a),o=Math.max(t,i,a),c=NaN,d=o-s,h=(o+s)/2;return d?(t===o?c=(i-a)/d+(i0&&h<1?0:c,new ki(c,d,h,e.opacity)}function vz(e,t,i,a){return arguments.length===1?WE(e):new ki(e,t,i,a??1)}function ki(e,t,i,a){this.h=+e,this.s=+t,this.l=+i,this.opacity=+a}Rm(ki,vz,QE(yo,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new ki(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ro:Math.pow(ro,e),new ki(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,i=this.l,a=i+(i<.5?i:1-i)*t,s=2*i-a;return new Pn(ip(e>=240?e-240:e+120,s,a),ip(e,s,a),ip(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new ki(Mv(this.h),Gc(this.s),Gc(this.l),pu(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=pu(this.opacity);return`${e===1?"hsl(":"hsla("}${Mv(this.h)}, ${Gc(this.s)*100}%, ${Gc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Mv(e){return e=(e||0)%360,e<0?e+360:e}function Gc(e){return Math.max(0,Math.min(1,e||0))}function ip(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}const Dm=e=>()=>e;function _z(e,t){return function(i){return e+i*t}}function Ez(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(a){return Math.pow(e+a*t,i)}}function wz(e){return(e=+e)==1?JE:function(t,i){return i-t?Ez(t,i,e):Dm(isNaN(t)?i:t)}}function JE(e,t){var i=t-e;return i?_z(e,i):Dm(isNaN(e)?t:e)}const mu=(function e(t){var i=wz(t);function a(s,o){var c=i((s=jp(s)).r,(o=jp(o)).r),d=i(s.g,o.g),h=i(s.b,o.b),f=JE(s.opacity,o.opacity);return function(p){return s.r=c(p),s.g=d(p),s.b=h(p),s.opacity=f(p),s+""}}return a.gamma=e,a})(1);function Nz(e,t){t||(t=[]);var i=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(o){for(s=0;si&&(o=t.slice(i,o),d[c]?d[c]+=o:d[++c]=o),(a=a[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,h.push({i:c,x:$i(a,s)})),i=rp.lastIndex;return i180?p+=360:p-f>180&&(f+=360),y.push({i:m.push(s(m)+"rotate(",null,a)-2,x:$i(f,p)})):p&&m.push(s(m)+"rotate("+p+a)}function d(f,p,m,y){f!==p?y.push({i:m.push(s(m)+"skewX(",null,a)-2,x:$i(f,p)}):p&&m.push(s(m)+"skewX("+p+a)}function h(f,p,m,y,x,_){if(f!==m||p!==y){var N=x.push(s(x)+"scale(",null,",",null,")");_.push({i:N-4,x:$i(f,m)},{i:N-2,x:$i(p,y)})}else(m!==1||y!==1)&&x.push(s(x)+"scale("+m+","+y+")")}return function(f,p){var m=[],y=[];return f=e(f),p=e(p),o(f.translateX,f.translateY,p.translateX,p.translateY,m,y),c(f.rotate,p.rotate,m,y),d(f.skewX,p.skewX,m,y),h(f.scaleX,f.scaleY,p.scaleX,p.scaleY,m,y),f=p=null,function(x){for(var _=-1,N=y.length,S;++_=0&&e._call.call(void 0,t),e=e._next;--Is}function Dv(){Ia=(bu=so.now())+Du,Is=Yl=0;try{Uz()}finally{Is=0,$z(),Ia=0}}function Hz(){var e=so.now(),t=e-bu;t>iw&&(Du-=t,bu=e)}function $z(){for(var e,t=gu,i,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(i=t._next,t._next=null,t=e?e._next=i:gu=i);Xl=e,Up(a)}function Up(e){if(!Is){Yl&&(Yl=clearTimeout(Yl));var t=e-Ia;t>24?(e<1/0&&(Yl=setTimeout(Dv,e-so.now()-Du)),Pl&&(Pl=clearInterval(Pl))):(Pl||(bu=so.now(),Pl=setInterval(Hz,iw)),Is=1,rw(Dv))}}function Lv(e,t,i){var a=new xu;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,i),a}var qz=Ou("start","end","cancel","interrupt"),Pz=[],sw=0,zv=1,Hp=2,iu=3,jv=4,$p=5,ru=6;function Lu(e,t,i,a,s,o){var c=e.__transition;if(!c)e.__transition={};else if(i in c)return;Fz(e,i,{name:t,index:a,group:s,on:qz,tween:Pz,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:sw})}function zm(e,t){var i=Ri(e,t);if(i.state>sw)throw new Error("too late; already scheduled");return i}function Vi(e,t){var i=Ri(e,t);if(i.state>iu)throw new Error("too late; already running");return i}function Ri(e,t){var i=e.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function Fz(e,t,i){var a=e.__transition,s;a[t]=i,i.timer=aw(o,0,i.time);function o(f){i.state=zv,i.timer.restart(c,i.delay,i.time),i.delay<=f&&c(f-i.delay)}function c(f){var p,m,y,x;if(i.state!==zv)return h();for(p in a)if(x=a[p],x.name===i.name){if(x.state===iu)return Lv(c);x.state===jv?(x.state=ru,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete a[p]):+pHp&&a.state<$p,a.state=ru,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete i[c]}o&&delete e.__transition}}function Gz(e){return this.each(function(){au(this,e)})}function Vz(e,t){var i,a;return function(){var s=Vi(this,e),o=s.tween;if(o!==i){a=i=o;for(var c=0,d=a.length;c=0&&(t=t.slice(0,i)),!t||t==="start"})}function vj(e,t,i){var a,s,o=yj(t)?zm:Vi;return function(){var c=o(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,i),c.on=s}}function _j(e,t){var i=this._id;return arguments.length<2?Ri(this.node(),i).on.on(e):this.each(vj(i,e,t))}function Ej(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}function wj(){return this.on("end.remove",Ej(this._id))}function Nj(e){var t=this._name,i=this._id;typeof e!="function"&&(e=Mm(e));for(var a=this._groups,s=a.length,o=new Array(s),c=0;c()=>e;function Kj(e,{sourceEvent:t,target:i,transform:a,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:s}})}function mr(e,t,i){this.k=e,this.x=t,this.y=i}mr.prototype={constructor:mr,scale:function(e){return e===1?this:new mr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new mr(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 zu=new mr(1,0,0);uw.prototype=mr.prototype;function uw(e){for(;!e.__zoom;)if(!(e=e.parentNode))return zu;return e.__zoom}function ap(e){e.stopImmediatePropagation()}function Fl(e){e.preventDefault(),e.stopImmediatePropagation()}function Zj(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Qj(){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 Iv(){return this.__zoom||zu}function Wj(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Jj(){return navigator.maxTouchPoints||"ontouchstart"in this}function eI(e,t,i){var a=e.invertX(t[0][0])-i[0][0],s=e.invertX(t[1][0])-i[1][0],o=e.invertY(t[0][1])-i[0][1],c=e.invertY(t[1][1])-i[1][1];return e.translate(s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s),c>o?(o+c)/2:Math.min(0,o)||Math.max(0,c))}function dw(){var e=Zj,t=Qj,i=eI,a=Wj,s=Jj,o=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=nu,f=Ou("start","zoom","end"),p,m,y,x=500,_=150,N=0,S=10;function E(C){C.property("__zoom",Iv).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",K).on("dblclick.zoom",L).filter(s).on("touchstart.zoom",q).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(C,j,M,U){var Y=C.selection?C.selection():C;Y.property("__zoom",Iv),C!==Y?B(C,j,M,U):Y.interrupt().each(function(){R(this,arguments).event(U).start().zoom(null,typeof j=="function"?j.apply(this,arguments):j).end()})},E.scaleBy=function(C,j,M,U){E.scaleTo(C,function(){var Y=this.__zoom.k,Z=typeof j=="function"?j.apply(this,arguments):j;return Y*Z},M,U)},E.scaleTo=function(C,j,M,U){E.transform(C,function(){var Y=t.apply(this,arguments),Z=this.__zoom,A=M==null?O(Y):typeof M=="function"?M.apply(this,arguments):M,z=Z.invert(A),V=typeof j=="function"?j.apply(this,arguments):j;return i(w(k(Z,V),A,z),Y,c)},M,U)},E.translateBy=function(C,j,M,U){E.transform(C,function(){return i(this.__zoom.translate(typeof j=="function"?j.apply(this,arguments):j,typeof M=="function"?M.apply(this,arguments):M),t.apply(this,arguments),c)},null,U)},E.translateTo=function(C,j,M,U,Y){E.transform(C,function(){var Z=t.apply(this,arguments),A=this.__zoom,z=U==null?O(Z):typeof U=="function"?U.apply(this,arguments):U;return i(zu.translate(z[0],z[1]).scale(A.k).translate(typeof j=="function"?-j.apply(this,arguments):-j,typeof M=="function"?-M.apply(this,arguments):-M),Z,c)},U,Y)};function k(C,j){return j=Math.max(o[0],Math.min(o[1],j)),j===C.k?C:new mr(j,C.x,C.y)}function w(C,j,M){var U=j[0]-M[0]*C.k,Y=j[1]-M[1]*C.k;return U===C.x&&Y===C.y?C:new mr(C.k,U,Y)}function O(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function B(C,j,M,U){C.on("start.zoom",function(){R(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(U).end()}).tween("zoom",function(){var Y=this,Z=arguments,A=R(Y,Z).event(U),z=t.apply(Y,Z),V=M==null?O(z):typeof M=="function"?M.apply(Y,Z):M,D=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),F=Y.__zoom,$=typeof j=="function"?j.apply(Y,Z):j,Q=h(F.invert(V).concat(D/F.k),$.invert(V).concat(D/$.k));return function(J){if(J===1)J=$;else{var W=Q(J),ee=D/W[2];J=new mr(ee,V[0]-W[0]*ee,V[1]-W[1]*ee)}A.zoom(null,J)}})}function R(C,j,M){return!M&&C.__zooming||new H(C,j)}function H(C,j){this.that=C,this.args=j,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,j),this.taps=0}H.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,j){return this.mouse&&C!=="mouse"&&(this.mouse[1]=j.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=j.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=j.invert(this.touch1[0])),this.that.__zoom=j,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var j=ni(this.that).datum();f.call(C,this.that,new Kj(C,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:f}),j)}};function I(C,...j){if(!e.apply(this,arguments))return;var M=R(this,j).event(C),U=this.__zoom,Y=Math.max(o[0],Math.min(o[1],U.k*Math.pow(2,a.apply(this,arguments)))),Z=Si(C);if(M.wheel)(M.mouse[0][0]!==Z[0]||M.mouse[0][1]!==Z[1])&&(M.mouse[1]=U.invert(M.mouse[0]=Z)),clearTimeout(M.wheel);else{if(U.k===Y)return;M.mouse=[Z,U.invert(Z)],au(this),M.start()}Fl(C),M.wheel=setTimeout(A,_),M.zoom("mouse",i(w(k(U,Y),M.mouse[0],M.mouse[1]),M.extent,c));function A(){M.wheel=null,M.end()}}function K(C,...j){if(y||!e.apply(this,arguments))return;var M=C.currentTarget,U=R(this,j,!0).event(C),Y=ni(C.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",D,!0),Z=Si(C,M),A=C.clientX,z=C.clientY;XE(C.view),ap(C),U.mouse=[Z,this.__zoom.invert(Z)],au(this),U.start();function V(F){if(Fl(F),!U.moved){var $=F.clientX-A,Q=F.clientY-z;U.moved=$*$+Q*Q>N}U.event(F).zoom("mouse",i(w(U.that.__zoom,U.mouse[0]=Si(F,M),U.mouse[1]),U.extent,c))}function D(F){Y.on("mousemove.zoom mouseup.zoom",null),KE(F.view,U.moved),Fl(F),U.event(F).end()}}function L(C,...j){if(e.apply(this,arguments)){var M=this.__zoom,U=Si(C.changedTouches?C.changedTouches[0]:C,this),Y=M.invert(U),Z=M.k*(C.shiftKey?.5:2),A=i(w(k(M,Z),U,Y),t.apply(this,j),c);Fl(C),d>0?ni(this).transition().duration(d).call(B,A,U,C):ni(this).call(E.transform,A,U,C)}}function q(C,...j){if(e.apply(this,arguments)){var M=C.touches,U=M.length,Y=R(this,j,C.changedTouches.length===U).event(C),Z,A,z,V;for(ap(C),A=0;A`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.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 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:i,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?i:a}", 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.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},lo=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],fw=["Enter"," ","Escape"],hw={"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:i})=>`Moved selected node ${e}. New position, x: ${t}, y: ${i}`,"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 Bs;(function(e){e.Strict="strict",e.Loose="loose"})(Bs||(Bs={}));var La;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(La||(La={}));var oo;(function(e){e.Partial="partial",e.Full="full"})(oo||(oo={}));const pw={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ia;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ia||(ia={}));var yu;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(yu||(yu={}));var je;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(je||(je={}));const Bv={[je.Left]:je.Right,[je.Right]:je.Left,[je.Top]:je.Bottom,[je.Bottom]:je.Top};function mw(e){return e===null?null:e?"valid":"invalid"}const gw=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,tI=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Im=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),vo=(e,t=[0,0])=>{const{width:i,height:a}=Yi(e),s=e.origin??t,o=i*s[0],c=a*s[1];return{x:e.position.x-o,y:e.position.y-c}},nI=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const i=e.reduce((a,s)=>{const o=typeof s=="string";let c=!t.nodeLookup&&!o?s:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(s):Im(s)?s:t.nodeLookup.get(s.id));const d=c?vu(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return ju(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Iu(i)},_o=(e,t={})=>{let i={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(s=>{(t.filter===void 0||t.filter(s))&&(i=ju(i,vu(s)),a=!0)}),a?Iu(i):{x:0,y:0,width:0,height:0}},Bm=(e,t,[i,a,s]=[0,0,1],o=!1,c=!1)=>{const d=(t.x-i)/s,h=(t.y-a)/s,f=t.width/s,p=t.height/s,m=[];for(const y of e.values()){const{measured:x,selectable:_=!0,hidden:N=!1}=y;if(c&&!_||N)continue;const S=x.width??y.width??y.initialWidth??0,E=x.height??y.height??y.initialHeight??0,{x:k,y:w}=y.internals.positionAbsolute,O=vw(d,h,f,p,k,w,S,E),B=S*E,R=o&&O>0;(!y.internals.handleBounds||R||O>=B||y.dragging)&&m.push(y)}return m},iI=(e,t)=>{const i=new Set;return e.forEach(a=>{i.add(a.id)}),t.filter(a=>i.has(a.source)||i.has(a.target))};function rI(e,t){const i=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{let o;if(t!=null&&t.includeHiddenNodes){const{width:c,height:d}=Yi(s);o=c>0&&d>0}else o=!!(s.measured.width&&s.measured.height&&!s.hidden);o&&(!a||a.has(s.id))&&i.set(s.id,s)}),i}async function aI({nodes:e,width:t,height:i,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return!0;const d=rI(e,c),h=_o(d),f=Hm(h,t,i,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??o,(c==null?void 0:c.padding)??.1);return await a.setViewport(f,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function bw({nodeId:e,nextPosition:t,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:s,onError:o}){const c=i.get(e),d=c.parentId?i.get(c.parentId):void 0,{x:h,y:f}=d?d.internals.positionAbsolute:{x:0,y:0},p=c.origin??a;let m=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)o==null||o("005",Mi.error005());else{const x=d.measured.width,_=d.measured.height;x&&_&&(m=[[h,f],[h+x,f+_]])}else d&&Ua(c.extent)&&(m=[[c.extent[0][0]+h,c.extent[0][1]+f],[c.extent[1][0]+h,c.extent[1][1]+f]]);const y=Ua(m)?Ba(t,m,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",Mi.error015())),{position:{x:y.x-h+(c.measured.width??0)*p[0],y:y.y-f+(c.measured.height??0)*p[1]},positionAbsolute:y}}async function sI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:i,edges:a,onBeforeDelete:s}){const o=new Set(e.map(y=>y.id)),c=[];for(const y of i){if(y.deletable===!1)continue;const x=o.has(y.id),_=!x&&y.parentId&&c.find(N=>N.id===y.parentId);(x||_)&&c.push(y)}const d=new Set(t.map(y=>y.id)),h=a.filter(y=>y.deletable!==!1),p=iI(c,h);for(const y of h)d.has(y.id)&&!p.find(_=>_.id===y.id)&&p.push(y);if(!s)return{edges:p,nodes:c};const m=await s({nodes:c,edges:p});return typeof m=="boolean"?m?{edges:p,nodes:c}:{edges:[],nodes:[]}:m}const Us=(e,t=0,i=1)=>Math.min(Math.max(e,t),i),Ba=(e={x:0,y:0},t,i)=>({x:Us(e.x,t[0][0],t[1][0]-((i==null?void 0:i.width)??0)),y:Us(e.y,t[0][1],t[1][1]-((i==null?void 0:i.height)??0))});function xw(e,t,i){const{width:a,height:s}=Yi(i),{x:o,y:c}=i.internals.positionAbsolute;return Ba(e,[[o,c],[o+a,c+s]],t)}const Uv=(e,t,i)=>ei?-Us(Math.abs(e-i),1,t)/t:0,Um=(e,t,i=15,a=40)=>{const s=Uv(e.x,a,t.width-a)*i,o=Uv(e.y,a,t.height-a)*i;return[s,o]},ju=(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)}),qp=({x:e,y:t,width:i,height:a})=>({x:e,y:t,x2:e+i,y2:t+a}),Iu=({x:e,y:t,x2:i,y2:a})=>({x:e,y:t,width:i-e,height:a-t}),co=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Im(e)?e.internals.positionAbsolute:vo(e,t);return{x:i,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},vu=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Im(e)?e.internals.positionAbsolute:vo(e,t);return{x:i,y:a,x2:i+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},yw=(e,t)=>Iu(ju(qp(e),qp(t))),vw=(e,t,i,a,s,o,c,d)=>{const h=Math.max(0,Math.min(e+i,s+c)-Math.max(e,s)),f=Math.max(0,Math.min(t+a,o+d)-Math.max(t,o));return Math.ceil(h*f)},_u=(e,t)=>vw(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),Hv=e=>Ti(e.width)&&Ti(e.height)&&Ti(e.x)&&Ti(e.y),Ti=e=>!isNaN(e)&&isFinite(e),_w=(e,t)=>(i,a)=>{},Eo=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),wo=({x:e,y:t},[i,a,s],o=!1,c=[1,1])=>{const d={x:(e-i)/s,y:(t-a)/s};return o?Eo(d,c):d},Hs=({x:e,y:t},[i,a,s])=>({x:e*s+i,y:t*s+a});function Ns(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(i)}if(typeof e=="string"&&e.endsWith("%")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(t*i*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function lI(e,t,i){if(typeof e=="string"||typeof e=="number"){const a=Ns(e,i),s=Ns(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Ns(e.top??e.y??0,i),s=Ns(e.bottom??e.y??0,i),o=Ns(e.left??e.x??0,t),c=Ns(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:o,x:o+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function oI(e,t,i,a,s,o){const{x:c,y:d}=Hs(e,[t,i,a]),{x:h,y:f}=Hs({x:e.x+e.width,y:e.y+e.height},[t,i,a]),p=s-h,m=o-f;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(p),bottom:Math.floor(m)}}const Hm=(e,t,i,a,s,o)=>{const c=lI(o,t,i),d=(t-c.x)/e.width,h=(i-c.y)/e.height,f=Math.min(d,h),p=Us(f,a,s),m=e.x+e.width/2,y=e.y+e.height/2,x=t/2-m*p,_=i/2-y*p,N=oI(e,x,_,p,t,i),S={left:Math.min(N.left-c.left,0),top:Math.min(N.top-c.top,0),right:Math.min(N.right-c.right,0),bottom:Math.min(N.bottom-c.bottom,0)};return{x:x-S.left+S.right,y:_-S.top+S.bottom,zoom:p}},uo=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Ua(e){return e!=null&&e!=="parent"}function Yi(e){var t,i;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}}function Ew(e){var t,i;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight)!==void 0}function ww(e,t={width:0,height:0},i,a,s){const o={...e},c=a.get(i);if(c){const d=c.origin||s;o.x+=c.internals.positionAbsolute.x-(t.width??0)*d[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*d[1]}return o}function $v(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function cI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function uI(e){return{...hw,...e||{}}}function Jl(e,{snapGrid:t=[0,0],snapToGrid:i=!1,transform:a,containerBounds:s}){const{x:o,y:c}=Ai(e),d=wo({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:h,y:f}=i?Eo(d,t):d;return{xSnapped:h,ySnapped:f,...d}}const $m=e=>({width:e.offsetWidth,height:e.offsetHeight}),Nw=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},dI=["INPUT","SELECT","TEXTAREA"];function Sw(e){var a,s;const t=((s=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:s[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:dI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const kw=e=>"clientX"in e,Ai=(e,t)=>{var o,c;const i=kw(e),a=i?e.clientX:(o=e.touches)==null?void 0:o[0].clientX,s=i?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},qv=(e,t,i,a,s)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(c=>{const d=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:s,position:c.getAttribute("data-handlepos"),x:(d.left-i.left)/a,y:(d.top-i.top)/a,...$m(c)}})};function Tw({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:d}){const h=e*.125+s*.375+c*.375+i*.125,f=t*.125+o*.375+d*.375+a*.125,p=Math.abs(h-e),m=Math.abs(f-t);return[h,f,p,m]}function Xc(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Pv({pos:e,x1:t,y1:i,x2:a,y2:s,c:o}){switch(e){case je.Left:return[t-Xc(t-a,o),i];case je.Right:return[t+Xc(a-t,o),i];case je.Top:return[t,i-Xc(i-s,o)];case je.Bottom:return[t,i+Xc(s-i,o)]}}function Aw({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top,curvature:c=.25}){const[d,h]=Pv({pos:i,x1:e,y1:t,x2:a,y2:s,c}),[f,p]=Pv({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[m,y,x,_]=Tw({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:h,targetControlX:f,targetControlY:p});return[`M${e},${t} C${d},${h} ${f},${p} ${a},${s}`,m,y,x,_]}function Cw({sourceX:e,sourceY:t,targetX:i,targetY:a}){const s=Math.abs(i-e)/2,o=i0}const pI=({source:e,sourceHandle:t,target:i,targetHandle:a})=>`xy-edge__${e}${t||""}-${i}${a||""}`,mI=(e,t)=>t.some(i=>i.source===e.source&&i.target===e.target&&(i.sourceHandle===e.sourceHandle||!i.sourceHandle&&!e.sourceHandle)&&(i.targetHandle===e.targetHandle||!i.targetHandle&&!e.targetHandle)),gI=(e,t,i={})=>{var o;if(!e.source||!e.target)return(o=i.onError)==null||o.call(i,"006",Mi.error006()),t;const a=i.getEdgeId||pI;let s;return gw(e)?s={...e}:s={...e,id:a(e)},mI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function Mw({sourceX:e,sourceY:t,targetX:i,targetY:a}){const[s,o,c,d]=Cw({sourceX:e,sourceY:t,targetX:i,targetY:a});return[`M ${e},${t}L ${i},${a}`,s,o,c,d]}const Fv={[je.Left]:{x:-1,y:0},[je.Right]:{x:1,y:0},[je.Top]:{x:0,y:-1},[je.Bottom]:{x:0,y:1}},bI=({source:e,sourcePosition:t=je.Bottom,target:i})=>t===je.Left||t===je.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function xI({source:e,sourcePosition:t=je.Bottom,target:i,targetPosition:a=je.Top,center:s,offset:o,stepPosition:c}){const d=Fv[t],h=Fv[a],f={x:e.x+d.x*o,y:e.y+d.y*o},p={x:i.x+h.x*o,y:i.y+h.y*o},m=bI({source:f,sourcePosition:t,target:p}),y=m.x!==0?"x":"y",x=m[y];let _=[],N,S;const E={x:0,y:0},k={x:0,y:0},[,,w,O]=Cw({sourceX:e.x,sourceY:e.y,targetX:i.x,targetY:i.y});if(d[y]*h[y]===-1){y==="x"?(N=s.x??f.x+(p.x-f.x)*c,S=s.y??(f.y+p.y)/2):(N=s.x??(f.x+p.x)/2,S=s.y??f.y+(p.y-f.y)*c);const I=[{x:N,y:f.y},{x:N,y:p.y}],K=[{x:f.x,y:S},{x:p.x,y:S}];d[y]===x?_=y==="x"?I:K:_=y==="x"?K:I}else{const I=[{x:f.x,y:p.y}],K=[{x:p.x,y:f.y}];if(y==="x"?_=d.x===x?K:I:_=d.y===x?I:K,t===a){const C=Math.abs(e[y]-i[y]);if(C<=o){const j=Math.min(o-1,o-C);d[y]===x?E[y]=(f[y]>e[y]?-1:1)*j:k[y]=(p[y]>i[y]?-1:1)*j}}if(t!==a){const C=y==="x"?"y":"x",j=d[y]===h[C],M=f[C]>p[C],U=f[C]=G?(N=(L.x+q.x)/2,S=_[0].y):(N=_[0].x,S=(L.y+q.y)/2)}const B={x:f.x+E.x,y:f.y+E.y},R={x:p.x+k.x,y:p.y+k.y};return[[e,...B.x!==_[0].x||B.y!==_[0].y?[B]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],i],N,S,w,O]}function yI(e,t,i,a){const s=Math.min(Gv(e,t)/2,Gv(t,i)/2,a),{x:o,y:c}=t;if(e.x===o&&o===i.x||e.y===c&&c===i.y)return`L${o} ${c}`;if(e.y===c){const f=e.xi.id===t):e[0])||null}function Fp(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function _I(e,{id:t,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:s}){const o=new Set;return e.reduce((c,d)=>([d.markerStart||a,d.markerEnd||s].forEach(h=>{if(h&&typeof h=="object"){const f=Fp(h,t);o.has(f)||(c.push({id:f,color:h.color||i,...h}),o.add(f))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const Ow=1e3,EI=10,qm={nodeOrigin:[0,0],nodeExtent:lo,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},wI={...qm,checkEquality:!0};function Pm(e,t){const i={...e};for(const a in t)t[a]!==void 0&&(i[a]=t[a]);return i}function NI(e,t,i){const a=Pm(qm,i);for(const s of e.values())if(s.parentId)Gm(s,e,t,a);else{const o=vo(s,a.nodeOrigin),c=Ua(s.extent)?s.extent:a.nodeExtent,d=Ba(o,c,Yi(s));s.internals.positionAbsolute=d}}function SI(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const i=[],a=[];for(const s of e.handles){const o={id:s.id,width:s.width??1,height:s.height??1,nodeId:e.id,x:s.x,y:s.y,position:s.position,type:s.type};s.type==="source"?i.push(o):s.type==="target"&&a.push(o)}return{source:i,target:a}}function Fm(e){return e==="manual"}function Gp(e,t,i,a={}){var p,m;const s=Pm(wI,a),o={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!Fm(s.zIndexMode)?Ow:0;let h=e.length>0,f=!1;t.clear(),i.clear();for(const y of e){let x=c.get(y.id);if(s.checkEquality&&y===(x==null?void 0:x.internals.userNode))t.set(y.id,x);else{const _=vo(y,s.nodeOrigin),N=Ua(y.extent)?y.extent:s.nodeExtent,S=Ba(_,N,Yi(y));x={...s.defaults,...y,measured:{width:(p=y.measured)==null?void 0:p.width,height:(m=y.measured)==null?void 0:m.height},internals:{positionAbsolute:S,handleBounds:SI(y,x),z:Rw(y,d,s.zIndexMode),userNode:y}},t.set(y.id,x)}(x.measured===void 0||x.measured.width===void 0||x.measured.height===void 0)&&!x.hidden&&(h=!1),y.parentId&&Gm(x,t,i,a,o),f||(f=y.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:f}}function kI(e,t){if(!e.parentId)return;const i=t.get(e.parentId);i?i.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Gm(e,t,i,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:d,zIndexMode:h}=Pm(qm,a),f=e.parentId,p=t.get(f);if(!p){console.warn(`Parent node ${f} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}kI(e,i),s&&!p.parentId&&p.internals.rootParentIndex===void 0&&h==="auto"&&(p.internals.rootParentIndex=++s.i,p.internals.z=p.internals.z+s.i*EI),s&&p.internals.rootParentIndex!==void 0&&(s.i=p.internals.rootParentIndex);const m=o&&!Fm(h)?Ow:0,{x:y,y:x,z:_}=TI(e,p,c,d,m,h),{positionAbsolute:N}=e.internals,S=y!==N.x||x!==N.y;(S||_!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:y,y:x}:N,z:_}})}function Rw(e,t,i){const a=Ti(e.zIndex)?e.zIndex:0;return Fm(i)?a:a+(e.selected?t:0)}function TI(e,t,i,a,s,o){const{x:c,y:d}=t.internals.positionAbsolute,h=Yi(e),f=vo(e,i),p=Ua(e.extent)?Ba(f,e.extent,h):f;let m=Ba({x:c+p.x,y:d+p.y},a,h);e.extent==="parent"&&(m=xw(m,h,t));const y=Rw(e,s,o),x=t.internals.z??0;return{x:m.x,y:m.y,z:x>=y?x+1:y}}function Vm(e,t,i,a=[0,0]){var c;const s=[],o=new Map;for(const d of e){const h=t.get(d.parentId);if(!h)continue;const f=((c=o.get(d.parentId))==null?void 0:c.expandedRect)??co(h),p=yw(f,d.rect);o.set(d.parentId,{expandedRect:p,parent:h})}return o.size>0&&o.forEach(({expandedRect:d,parent:h},f)=>{var w;const p=h.internals.positionAbsolute,m=Yi(h),y=h.origin??a,x=d.x0||_>0||E||k)&&(s.push({id:f,type:"position",position:{x:h.position.x-x+E,y:h.position.y-_+k}}),(w=i.get(f))==null||w.forEach(O=>{e.some(B=>B.id===O.id)||s.push({id:O.id,type:"position",position:{x:O.position.x+x,y:O.position.y+_}})})),(m.width0){const x=Vm(y,t,i,s);f.push(...x)}return{changes:f,updatedInternals:h}}async function CI({delta:e,panZoom:t,transform:i,translateExtent:a,width:s,height:o}){if(!t||!e.x&&!e.y)return!1;const c=await t.setViewportConstrained({x:i[0]+e.x,y:i[1]+e.y,zoom:i[2]},[[0,0],[s,o]],a);return!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2])}function Kv(e,t,i,a,s,o){let c=s;const d=a.get(c)||new Map;a.set(c,d.set(i,t)),c=`${s}-${e}`;const h=a.get(c)||new Map;if(a.set(c,h.set(i,t)),o){c=`${s}-${e}-${o}`;const f=a.get(c)||new Map;a.set(c,f.set(i,t))}}function Dw(e,t,i){e.clear(),t.clear();for(const a of i){const{source:s,target:o,sourceHandle:c=null,targetHandle:d=null}=a,h={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:d},f=`${s}-${c}--${o}-${d}`,p=`${o}-${d}--${s}-${c}`;Kv("source",h,p,e,s,c),Kv("target",h,f,e,o,d),t.set(a.id,a)}}function Lw(e,t){if(!e.parentId)return!1;const i=t.get(e.parentId);return i?i.selected?!0:Lw(i,t):!1}function Zv(e,t,i){var s;let a=e;do{if((s=a==null?void 0:a.matches)!=null&&s.call(a,t))return!0;if(a===i)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function MI(e,t,i,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!Lw(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const d=e.get(o);d&&s.set(o,{id:o,position:d.position||{x:0,y:0},distance:{x:i.x-d.internals.positionAbsolute.x,y:i.y-d.internals.positionAbsolute.y},extent:d.extent,parentId:d.parentId,origin:d.origin,expandParent:d.expandParent,internals:{positionAbsolute:d.internals.positionAbsolute||{x:0,y:0}},measured:{width:d.measured.width??0,height:d.measured.height??0}})}return s}function sp({nodeId:e,dragItems:t,nodeLookup:i,dragging:a=!0}){var c,d,h;const s=[];for(const[f,p]of t){const m=(c=i.get(f))==null?void 0:c.internals.userNode;m&&s.push({...m,position:p.position,dragging:a})}if(!e)return[s[0],s];const o=(d=i.get(e))==null?void 0:d.internals.userNode;return[o?{...o,position:((h=t.get(e))==null?void 0:h.position)||o.position,dragging:a}:s[0],s]}function OI({dragItems:e,snapGrid:t,x:i,y:a}){const s=e.values().next().value;if(!s)return null;const o={x:i-s.distance.x,y:a-s.distance.y},c=Eo(o,t);return{x:c.x-o.x,y:c.y-o.y}}function RI({onNodeMouseDown:e,getStoreItems:t,onDragStart:i,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,d=new Map,h=!1,f={x:0,y:0},p=null,m=!1,y=null,x=!1,_=!1,N=null;function S({noDragClassName:k,handleSelector:w,domNode:O,isSelectable:B,nodeId:R,nodeClickDistance:H=0}){y=ni(O);function I({x:X,y:G}){const{nodeLookup:C,nodeExtent:j,snapGrid:M,snapToGrid:U,nodeOrigin:Y,onNodeDrag:Z,onSelectionDrag:A,onError:z,updateNodePositions:V}=t();o={x:X,y:G};let D=!1;const F=d.size>1,$=F&&j?qp(_o(d)):null,Q=F&&U?OI({dragItems:d,snapGrid:M,x:X,y:G}):null;for(const[J,W]of d){if(!C.has(J))continue;let ee={x:X-W.distance.x,y:G-W.distance.y};U&&(ee=Q?{x:Math.round(ee.x+Q.x),y:Math.round(ee.y+Q.y)}:Eo(ee,M));let ce=null;if(F&&j&&!W.extent&&$){const{positionAbsolute:Ee}=W.internals,Ne=Ee.x-$.x+j[0][0],Le=Ee.x+W.measured.width-$.x2+j[1][0],$e=Ee.y-$.y+j[0][1],st=Ee.y+W.measured.height-$.y2+j[1][1];ce=[[Ne,$e],[Le,st]]}const{position:fe,positionAbsolute:be}=bw({nodeId:J,nextPosition:ee,nodeLookup:C,nodeExtent:ce||j,nodeOrigin:Y,onError:z});D=D||W.position.x!==fe.x||W.position.y!==fe.y,W.position=fe,W.internals.positionAbsolute=be}if(_=_||D,!!D&&(V(d,!0),N&&(a||Z||!R&&A))){const[J,W]=sp({nodeId:R,dragItems:d,nodeLookup:C});a==null||a(N,d,J,W),Z==null||Z(N,J,W),R||A==null||A(N,W)}}async function K(){if(!p)return;const{transform:X,panBy:G,autoPanSpeed:C,autoPanOnNodeDrag:j}=t();if(!j){h=!1,cancelAnimationFrame(c);return}const[M,U]=Um(f,p,C);(M!==0||U!==0)&&(o.x=(o.x??0)-M/X[2],o.y=(o.y??0)-U/X[2],await G({x:M,y:U})&&I(o)),c=requestAnimationFrame(K)}function L(X){var F;const{nodeLookup:G,multiSelectionActive:C,nodesDraggable:j,transform:M,snapGrid:U,snapToGrid:Y,selectNodesOnDrag:Z,onNodeDragStart:A,onSelectionDragStart:z,unselectNodesAndEdges:V}=t();m=!0,(!Z||!B)&&!C&&R&&((F=G.get(R))!=null&&F.selected||V()),B&&Z&&R&&(e==null||e(R));const D=Jl(X.sourceEvent,{transform:M,snapGrid:U,snapToGrid:Y,containerBounds:p});if(o=D,d=MI(G,j,D,R),d.size>0&&(i||A||!R&&z)){const[$,Q]=sp({nodeId:R,dragItems:d,nodeLookup:G});i==null||i(X.sourceEvent,d,$,Q),A==null||A(X.sourceEvent,$,Q),R||z==null||z(X.sourceEvent,Q)}}const q=ZE().clickDistance(H).on("start",X=>{const{domNode:G,nodeDragThreshold:C,transform:j,snapGrid:M,snapToGrid:U}=t();p=(G==null?void 0:G.getBoundingClientRect())||null,x=!1,_=!1,N=X.sourceEvent,C===0&&L(X),o=Jl(X.sourceEvent,{transform:j,snapGrid:M,snapToGrid:U,containerBounds:p}),f=Ai(X.sourceEvent,p)}).on("drag",X=>{const{autoPanOnNodeDrag:G,transform:C,snapGrid:j,snapToGrid:M,nodeDragThreshold:U,nodeLookup:Y}=t(),Z=Jl(X.sourceEvent,{transform:C,snapGrid:j,snapToGrid:M,containerBounds:p});if(N=X.sourceEvent,(X.sourceEvent.type==="touchmove"&&X.sourceEvent.touches.length>1||R&&!Y.has(R))&&(x=!0),!x){if(!h&&G&&m&&(h=!0,K()),!m){const A=Ai(X.sourceEvent,p),z=A.x-f.x,V=A.y-f.y;Math.sqrt(z*z+V*V)>U&&L(X)}(o.x!==Z.xSnapped||o.y!==Z.ySnapped)&&d&&m&&(f=Ai(X.sourceEvent,p),I(Z))}}).on("end",X=>{if(!m||x){x&&d.size>0&&t().updateNodePositions(d,!1);return}if(h=!1,m=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:G,updateNodePositions:C,onNodeDragStop:j,onSelectionDragStop:M}=t();if(_&&(C(d,!1),_=!1),s||j||!R&&M){const[U,Y]=sp({nodeId:R,dragItems:d,nodeLookup:G,dragging:!1});s==null||s(X.sourceEvent,d,U,Y),j==null||j(X.sourceEvent,U,Y),R||M==null||M(X.sourceEvent,Y)}}}).filter(X=>{const G=X.target;return!X.button&&(!k||!Zv(G,`.${k}`,O))&&(!w||Zv(G,w,O))});y.call(q)}function E(){y==null||y.on(".drag",null)}return{update:S,destroy:E}}function DI(e,t,i){const a=[],s={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const o of t.values())_u(s,co(o))>0&&a.push(o);return a}const LI=250;function zI(e,t,i,a){var d,h;let s=[],o=1/0;const c=DI(e,i,t+LI);for(const f of c){const p=[...((d=f.internals.handleBounds)==null?void 0:d.source)??[],...((h=f.internals.handleBounds)==null?void 0:h.target)??[]];for(const m of p){if(a.nodeId===m.nodeId&&a.type===m.type&&a.id===m.id)continue;const{x:y,y:x}=Ha(f,m,m.position,!0),_=Math.sqrt(Math.pow(y-e.x,2)+Math.pow(x-e.y,2));_>t||(_1){const f=a.type==="source"?"target":"source";return s.find(p=>p.type===f)??s[0]}return s[0]}function zw(e,t,i,a,s,o=!1){var f,p,m;const c=a.get(e);if(!c)return null;const d=s==="strict"?(f=c.internals.handleBounds)==null?void 0:f[t]:[...((p=c.internals.handleBounds)==null?void 0:p.source)??[],...((m=c.internals.handleBounds)==null?void 0:m.target)??[]],h=(i?d==null?void 0:d.find(y=>y.id===i):d==null?void 0:d[0])??null;return h&&o?{...h,...Ha(c,h,h.position,!0)}:h}function jw(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function jI(e,t){let i=null;return t?i=!0:e&&!t&&(i=!1),i}const Iw=()=>!0;function II(e,{connectionMode:t,connectionRadius:i,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:d,nodeLookup:h,lib:f,autoPanOnConnect:p,flowId:m,panBy:y,cancelConnection:x,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:E=Iw,onReconnectEnd:k,updateConnection:w,getTransform:O,getFromHandle:B,autoPanSpeed:R,dragThreshold:H=1,handleDomNode:I}){const K=Nw(e.target);let L=0,q;const{x:X,y:G}=Ai(e),C=jw(o,I),j=d==null?void 0:d.getBoundingClientRect();let M=!1;if(!j||!C)return;const U=zw(s,C,a,h,t);if(!U)return;let Y=Ai(e,j),Z=!1,A=null,z=!1,V=null;function D(){if(!p||!j)return;const[fe,be]=Um(Y,j,R);y({x:fe,y:be}),L=requestAnimationFrame(D)}const F={...U,nodeId:s,type:C,position:U.position},$=h.get(s);let J={inProgress:!0,isValid:null,from:Ha($,F,je.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:$,to:Y,toHandle:null,toPosition:Bv[F.position],toNode:null,pointer:Y};function W(){M=!0,w(J),_==null||_(e,{nodeId:s,handleId:a,handleType:C})}H===0&&W();function ee(fe){if(!M){const{x:st,y:Rt}=Ai(fe),Yt=st-X,Pt=Rt-G;if(!(Yt*Yt+Pt*Pt>H*H))return;W()}if(!B()||!F){ce(fe);return}const be=O();Y=Ai(fe,j),q=zI(wo(Y,be,!1,[1,1]),i,h,F),Z||(D(),Z=!0);const Ee=Bw(fe,{handle:q,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:E,doc:K,lib:f,flowId:m,nodeLookup:h});V=Ee.handleDomNode,A=Ee.connection,z=jI(!!q,Ee.isValid);const Ne=h.get(s),Le=Ne?Ha(Ne,F,je.Left,!0):J.from,$e={...J,from:Le,isValid:z,to:Ee.toHandle&&z?Hs({x:Ee.toHandle.x,y:Ee.toHandle.y},be):Y,toHandle:Ee.toHandle,toPosition:z&&Ee.toHandle?Ee.toHandle.position:Bv[F.position],toNode:Ee.toHandle?h.get(Ee.toHandle.nodeId):null,pointer:Y};w($e),J=$e}function ce(fe){if(!("touches"in fe&&fe.touches.length>0)){if(M){(q||V)&&A&&z&&(N==null||N(A));const{inProgress:be,...Ee}=J,Ne={...Ee,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),o&&(k==null||k(fe,Ne))}x(),cancelAnimationFrame(L),Z=!1,z=!1,A=null,V=null,K.removeEventListener("mousemove",ee),K.removeEventListener("mouseup",ce),K.removeEventListener("touchmove",ee),K.removeEventListener("touchend",ce)}}K.addEventListener("mousemove",ee),K.addEventListener("mouseup",ce),K.addEventListener("touchmove",ee),K.addEventListener("touchend",ce)}function Bw(e,{handle:t,connectionMode:i,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:d,flowId:h,isValidConnection:f=Iw,nodeLookup:p}){const m=o==="target",y=t?c.querySelector(`.${d}-flow__handle[data-id="${h}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x,y:_}=Ai(e),N=c.elementFromPoint(x,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:y,E={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const k=jw(void 0,S),w=S.getAttribute("data-nodeid"),O=S.getAttribute("data-handleid"),B=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!w||!k)return E;const H={source:m?w:a,sourceHandle:m?O:s,target:m?a:w,targetHandle:m?s:O};E.connection=H;const K=B&&R&&(i===Bs.Strict?m&&k==="source"||!m&&k==="target":w!==a||O!==s);E.isValid=K&&f(H),E.toHandle=zw(w,k,O,p,i,!0)}return E}const Vp={onPointerDown:II,isValid:Bw};function BI({domNode:e,panZoom:t,getTransform:i,getViewScale:a}){const s=ni(e);function o({translateExtent:d,width:h,height:f,zoomStep:p=1,pannable:m=!0,zoomable:y=!0,inversePan:x=!1}){const _=w=>{if(w.sourceEvent.type!=="wheel"||!t)return;const O=i(),B=w.sourceEvent.ctrlKey&&uo()?10:1,R=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*p,H=O[2]*Math.pow(2,R*B);t.scaleTo(H)};let N=[0,0];const S=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(N=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},E=w=>{const O=i();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!t)return;const B=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],R=[B[0]-N[0],B[1]-N[1]];N=B;const H=a()*Math.max(O[2],Math.log(O[2]))*(x?-1:1),I={x:O[0]-R[0]*H,y:O[1]-R[1]*H},K=[[0,0],[h,f]];t.setViewportConstrained({x:I.x,y:I.y,zoom:O[2]},K,d)},k=dw().on("start",S).on("zoom",m?E:null).on("zoom.wheel",y?_:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:Si}}const Bu=e=>({x:e.x,y:e.y,zoom:e.k}),lp=({x:e,y:t,zoom:i})=>zu.translate(e,t).scale(i),Ts=(e,t)=>e.target.closest(`.${t}`),Uw=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),UI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,op=(e,t=0,i=UI,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(i).on("end",a):e},Hw=e=>{const t=e.ctrlKey&&uo()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function HI({zoomPanValues:e,noWheelClassName:t,d3Selection:i,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:h,onPanZoomEnd:f}){return p=>{if(Ts(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const m=i.property("__zoom").k||1;if(p.ctrlKey&&c){const S=Si(p),E=Hw(p),k=m*Math.pow(2,E);a.scaleTo(i,k,S,p);return}const y=p.deltaMode===1?20:1;let x=s===La.Vertical?0:p.deltaX*y,_=s===La.Horizontal?0:p.deltaY*y;!uo()&&p.shiftKey&&s!==La.Vertical&&(x=p.deltaY*y,_=0),a.translateBy(i,-(x/m)*o,-(_/m)*o,{internal:!0});const N=Bu(i.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?h==null||h(p,N):(e.isPanScrolling=!0,d==null||d(p,N)),e.panScrollTimeout=setTimeout(()=>{f==null||f(p,N),e.isPanScrolling=!1},150)}}function $I({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:i}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,d=Ts(a,e);if(a.ctrlKey&&o&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),i.call(this,a,s)}}function qI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:i}){return a=>{var o,c,d;if((o=a.sourceEvent)!=null&&o.internal)return;const s=Bu(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((d=a.sourceEvent)==null?void 0:d.type)==="mousedown"&&t(!0),i&&(i==null||i(a.sourceEvent,s))}}function PI({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:i,onTransformChange:a,onPanZoom:s}){return o=>{var c,d;e.usedRightMouseButton=!!(i&&Uw(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),s&&!((d=o.sourceEvent)!=null&&d.internal)&&(s==null||s(o.sourceEvent,Bu(o.transform)))}}function FI({zoomPanValues:e,panOnDrag:t,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:o}){return c=>{var d;if(!((d=c.sourceEvent)!=null&&d.internal)&&(e.isZoomingOrPanning=!1,o&&Uw(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const h=Bu(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,h)},i?150:0)}}}function GI({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:i,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:d,noPanClassName:h,lib:f,connectionInProgress:p}){return m=>{var S;const y=e||t,x=i&&m.ctrlKey,_=m.type==="wheel";if(m.button===1&&m.type==="mousedown"&&(Ts(m,`${f}-flow__node`)||Ts(m,`${f}-flow__edge`)))return!0;if(!a&&!y&&!s&&!o&&!i||c||p&&!_||Ts(m,d)&&_||Ts(m,h)&&(!_||s&&_&&!e)||!i&&m.ctrlKey&&_)return!1;if(!i&&m.type==="touchstart"&&((S=m.touches)==null?void 0:S.length)>1)return m.preventDefault(),!1;if(!y&&!s&&!x&&_||!a&&(m.type==="mousedown"||m.type==="touchstart")||Array.isArray(a)&&!a.includes(m.button)&&m.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(m.button)||!m.button||m.button<=1;return(!m.ctrlKey||_)&&N}}function VI({domNode:e,minZoom:t,maxZoom:i,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:h}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect();let m=[[0,0],[p.width,p.height]];const y=typeof ResizeObserver<"u"?new ResizeObserver(G=>{const C=G[0];C&&(m=[[0,0],[C.contentRect.width,C.contentRect.height]])}):null;y==null||y.observe(e);const x=dw().extent(()=>m).scaleExtent([t,i]).translateExtent(a),_=ni(e).call(x);O({x:s.x,y:s.y,zoom:Us(s.zoom,t,i)},[[0,0],[p.width,p.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");x.wheelDelta(Hw);async function E(G,C){return _?new Promise(j=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Wl:nu).transform(op(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>j(!0)),G)}):!1}function k({noWheelClassName:G,noPanClassName:C,onPaneContextMenu:j,userSelectionActive:M,panOnScroll:U,panOnDrag:Y,panOnScrollMode:Z,panOnScrollSpeed:A,preventScrolling:z,zoomOnPinch:V,zoomOnScroll:D,zoomOnDoubleClick:F,zoomActivationKeyPressed:$,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:ee,selectionOnDrag:ce}){M&&!f.isZoomingOrPanning&&w();const fe=U&&!$&&!M;x.clickDistance(ce?1/0:!Ti(ee)||ee<0?0:ee);const be=fe?HI({zoomPanValues:f,noWheelClassName:G,d3Selection:_,d3Zoom:x,panOnScrollMode:Z,panOnScrollSpeed:A,zoomOnPinch:V,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:d}):$I({noWheelClassName:G,preventScrolling:z,d3ZoomHandler:N});_.on("wheel.zoom",be,{passive:!1});const Ee=qI({zoomPanValues:f,onDraggingChange:h,onPanZoomStart:c});x.on("start",Ee);const Ne=PI({zoomPanValues:f,panOnDrag:Y,onPaneContextMenu:!!j,onPanZoom:o,onTransformChange:J});x.on("zoom",Ne);const Le=FI({zoomPanValues:f,panOnDrag:Y,panOnScroll:U,onPaneContextMenu:j,onPanZoomEnd:d,onDraggingChange:h});x.on("end",Le);const $e=GI({zoomActivationKeyPressed:$,panOnDrag:Y,zoomOnScroll:D,panOnScroll:U,zoomOnDoubleClick:F,zoomOnPinch:V,userSelectionActive:M,noPanClassName:C,noWheelClassName:G,lib:Q,connectionInProgress:W});x.filter($e),F?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function w(){x.on("zoom",null)}async function O(G,C,j){const M=lp(G),U=x==null?void 0:x.constrain()(M,C,j);return U&&await E(U),U}async function B(G,C){const j=lp(G);return await E(j,C),j}function R(G){if(_){const C=lp(G),j=_.property("__zoom");(j.k!==G.zoom||j.x!==G.x||j.y!==G.y)&&(x==null||x.transform(_,C,null,{sync:!0}))}}function H(){const G=_?uw(_.node()):{x:0,y:0,k:1};return{x:G.x,y:G.y,zoom:G.k}}async function I(G,C){return _?new Promise(j=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Wl:nu).scaleTo(op(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>j(!0)),G)}):!1}async function K(G,C){return _?new Promise(j=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Wl:nu).scaleBy(op(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>j(!0)),G)}):!1}function L(G){x==null||x.scaleExtent(G)}function q(G){x==null||x.translateExtent(G)}function X(G){const C=!Ti(G)||G<0?0:G;x==null||x.clickDistance(C)}return{update:k,destroy:w,setViewport:B,setViewportConstrained:O,getViewport:H,scaleTo:I,scaleBy:K,setScaleExtent:L,setTranslateExtent:q,syncViewport:R,setClickDistance:X}}var $s;(function(e){e.Line="line",e.Handle="handle"})($s||($s={}));function YI({width:e,prevWidth:t,height:i,prevHeight:a,affectsX:s,affectsY:o}){const c=e-t,d=i-a,h=[c>0?1:c<0?-1:0,d>0?1:d<0?-1:0];return c&&s&&(h[0]=h[0]*-1),d&&o&&(h[1]=h[1]*-1),h}function Qv(e){const t=e.includes("right")||e.includes("left"),i=e.includes("bottom")||e.includes("top"),a=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:i,affectsX:a,affectsY:s}}function ea(e,t){return Math.max(0,t-e)}function ta(e,t){return Math.max(0,e-t)}function Kc(e,t,i){return Math.max(0,t-e,e-i)}function Wv(e,t){return e?!t:t}function XI(e,t,i,a,s,o,c,d){let{affectsX:h,affectsY:f}=t;const{isHorizontal:p,isVertical:m}=t,y=p&&m,{xSnapped:x,ySnapped:_}=i,{minWidth:N,maxWidth:S,minHeight:E,maxHeight:k}=a,{x:w,y:O,width:B,height:R,aspectRatio:H}=e;let I=Math.floor(p?x-e.pointerX:0),K=Math.floor(m?_-e.pointerY:0);const L=B+(h?-I:I),q=R+(f?-K:K),X=-o[0]*B,G=-o[1]*R;let C=Kc(L,N,S),j=Kc(q,E,k);if(c){let Y=0,Z=0;h&&I<0?Y=ea(w+I+X,c[0][0]):!h&&I>0&&(Y=ta(w+L+X,c[1][0])),f&&K<0?Z=ea(O+K+G,c[0][1]):!f&&K>0&&(Z=ta(O+q+G,c[1][1])),C=Math.max(C,Y),j=Math.max(j,Z)}if(d){let Y=0,Z=0;h&&I>0?Y=ta(w+I,d[0][0]):!h&&I<0&&(Y=ea(w+L,d[1][0])),f&&K>0?Z=ta(O+K,d[0][1]):!f&&K<0&&(Z=ea(O+q,d[1][1])),C=Math.max(C,Y),j=Math.max(j,Z)}if(s){if(p){const Y=Kc(L/H,E,k)*H;if(C=Math.max(C,Y),c){let Z=0;!h&&!f||h&&!f&&y?Z=ta(O+G+L/H,c[1][1])*H:Z=ea(O+G+(h?I:-I)/H,c[0][1])*H,C=Math.max(C,Z)}if(d){let Z=0;!h&&!f||h&&!f&&y?Z=ea(O+L/H,d[1][1])*H:Z=ta(O+(h?I:-I)/H,d[0][1])*H,C=Math.max(C,Z)}}if(m){const Y=Kc(q*H,N,S)/H;if(j=Math.max(j,Y),c){let Z=0;!h&&!f||f&&!h&&y?Z=ta(w+q*H+X,c[1][0])/H:Z=ea(w+(f?K:-K)*H+X,c[0][0])/H,j=Math.max(j,Z)}if(d){let Z=0;!h&&!f||f&&!h&&y?Z=ea(w+q*H,d[1][0])/H:Z=ta(w+(f?K:-K)*H,d[0][0])/H,j=Math.max(j,Z)}}}K=K+(K<0?j:-j),I=I+(I<0?C:-C),s&&(y?L>q*H?K=(Wv(h,f)?-I:I)/H:I=(Wv(h,f)?-K:K)*H:p?(K=I/H,f=h):(I=K*H,h=f));const M=h?w+I:w,U=f?O+K:O;return{width:B+(h?-I:I),height:R+(f?-K:K),x:o[0]*I*(h?-1:1)+M,y:o[1]*K*(f?-1:1)+U}}const $w={width:0,height:0,x:0,y:0},KI={...$w,pointerX:0,pointerY:0,aspectRatio:1};function ZI(e,t,i){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,d=i[0]*o,h=i[1]*c;return[[a-d,s-h],[a+o-d,s+c-h]]}function QI({domNode:e,nodeId:t,getStoreItems:i,onChange:a,onEnd:s}){const o=ni(e);let c={controlDirection:Qv("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:f,boundaries:p,keepAspectRatio:m,resizeDirection:y,onResizeStart:x,onResize:_,onResizeEnd:N,shouldResize:S}){let E={...$w},k={...KI};c={boundaries:p,resizeDirection:y,keepAspectRatio:m,controlDirection:Qv(f)};let w,O=null,B=[],R,H,I,K=!1;const L=ZE().on("start",q=>{const{nodeLookup:X,transform:G,snapGrid:C,snapToGrid:j,nodeOrigin:M,paneDomNode:U}=i();if(w=X.get(t),!w)return;O=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:Y,ySnapped:Z}=Jl(q.sourceEvent,{transform:G,snapGrid:C,snapToGrid:j,containerBounds:O});E={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},k={...E,pointerX:Y,pointerY:Z,aspectRatio:E.width/E.height},R=void 0,H=Ua(w.extent)?w.extent:void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(R=X.get(w.parentId)),R&&w.extent==="parent"&&(H=[[0,0],[R.measured.width,R.measured.height]]),B=[],I=void 0;for(const[A,z]of X)if(z.parentId===t&&(B.push({id:A,position:{...z.position},extent:z.extent}),z.extent==="parent"||z.expandParent)){const V=ZI(z,w,z.origin??M);I?I=[[Math.min(V[0][0],I[0][0]),Math.min(V[0][1],I[0][1])],[Math.max(V[1][0],I[1][0]),Math.max(V[1][1],I[1][1])]]:I=V}x==null||x(q,{...E})}).on("drag",q=>{const{transform:X,snapGrid:G,snapToGrid:C,nodeOrigin:j}=i(),M=Jl(q.sourceEvent,{transform:X,snapGrid:G,snapToGrid:C,containerBounds:O}),U=[];if(!w)return;const{x:Y,y:Z,width:A,height:z}=E,V={},D=w.origin??j,{width:F,height:$,x:Q,y:J}=XI(k,c.controlDirection,M,c.boundaries,c.keepAspectRatio,D,H,I),W=F!==A,ee=$!==z,ce=Q!==Y&&W,fe=J!==Z&ⅇif(!ce&&!fe&&!W&&!ee)return;if((ce||fe||D[0]===1||D[1]===1)&&(V.x=ce?Q:E.x,V.y=fe?J:E.y,E.x=V.x,E.y=V.y,B.length>0)){const Le=Q-Y,$e=J-Z;for(const st of B)st.position={x:st.position.x-Le+D[0]*(F-A),y:st.position.y-$e+D[1]*($-z)},U.push(st)}if((W||ee)&&(V.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?F:E.width,V.height=ee&&(!c.resizeDirection||c.resizeDirection==="vertical")?$:E.height,E.width=V.width,E.height=V.height),R&&w.expandParent){const Le=D[0]*(V.width??0);V.x&&V.x{K&&(N==null||N(q,{...E}),s==null||s({...E}),K=!1)});o.call(L)}function h(){o.on(".drag",null)}return{update:d,destroy:h}}var cp={exports:{}},up={},dp={exports:{}},fp={};/** + * @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 Jv;function WI(){if(Jv)return fp;Jv=1;var e=po();function t(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var i=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function d(m,y){var x=y(),_=a({inst:{value:x,getSnapshot:y}}),N=_[0].inst,S=_[1];return o(function(){N.value=x,N.getSnapshot=y,h(N)&&S({inst:N})},[m,x,y]),s(function(){return h(N)&&S({inst:N}),m(function(){h(N)&&S({inst:N})})},[m]),c(x),x}function h(m){var y=m.getSnapshot;m=m.value;try{var x=y();return!i(m,x)}catch{return!0}}function f(m,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:d;return fp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,fp}var e1;function JI(){return e1||(e1=1,dp.exports=WI()),dp.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 t1;function e6(){if(t1)return up;t1=1;var e=po(),t=JI();function i(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var a=typeof Object.is=="function"?Object.is:i,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,d=e.useMemo,h=e.useDebugValue;return up.useSyncExternalStoreWithSelector=function(f,p,m,y,x){var _=o(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function E(R){if(!k){if(k=!0,w=R,R=y(R),x!==void 0&&N.hasValue){var H=N.value;if(x(H,R))return O=H}return O=R}if(H=O,a(w,R))return H;var I=y(R);return x!==void 0&&x(H,I)?(w=R,H):(w=R,O=I)}var k=!1,w,O,B=m===void 0?null:m;return[function(){return E(p())},B===null?void 0:function(){return E(B())}]},[p,m,y,x]);var S=s(f,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),h(S),S},up}var n1;function t6(){return n1||(n1=1,cp.exports=e6()),cp.exports}var n6=t6();const i6=ho(n6),r6={},i1=e=>{let t;const i=new Set,a=(p,m)=>{const y=typeof p=="function"?p(t):p;if(!Object.is(y,t)){const x=t;t=m??(typeof y!="object"||y===null)?y:Object.assign({},t,y),i.forEach(_=>_(t,x))}},s=()=>t,h={setState:a,getState:s,getInitialState:()=>f,subscribe:p=>(i.add(p),()=>i.delete(p)),destroy:()=>{(r6?"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."),i.clear()}},f=t=e(a,s,h);return h},a6=e=>e?i1(e):i1,{useDebugValue:s6}=qk,{useSyncExternalStoreWithSelector:l6}=i6,o6=e=>e;function qw(e,t=o6,i){const a=l6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return s6(a),a}const r1=(e,t)=>{const i=a6(e),a=(s,o=t)=>qw(i,s,o);return Object.assign(a,i),a},c6=(e,t)=>e?r1(e,t):r1;function qt(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[a,s]of e)if(!Object.is(s,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}W1();const Uu=re.createContext(null),u6=Uu.Provider,Pw=Mi.error001("react");function dt(e,t){const i=re.useContext(Uu);if(i===null)throw new Error(Pw);return qw(i,e,t)}function zt(){const e=re.useContext(Uu);if(e===null)throw new Error(Pw);return re.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const a1={display:"none"},d6={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Fw="react-flow__node-desc",Gw="react-flow__edge-desc",f6="react-flow__aria-live",h6=e=>e.ariaLiveMessage,p6=e=>e.ariaLabelConfig;function m6({rfId:e}){const t=dt(h6);return b.jsx("div",{id:`${f6}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:d6,children:t})}function g6({rfId:e,disableKeyboardA11y:t}){const i=dt(p6);return b.jsxs(b.Fragment,{children:[b.jsx("div",{id:`${Fw}-${e}`,style:a1,children:t?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),b.jsx("div",{id:`${Gw}-${e}`,style:a1,children:i["edge.a11yDescription.default"]}),!t&&b.jsx(m6,{rfId:e})]})}const Hu=re.forwardRef(({position:e="top-left",children:t,className:i,style:a,...s},o)=>{const c=`${e}`.split("-");return b.jsx("div",{className:ln(["react-flow__panel",i,...c]),style:a,ref:o,...s,children:t})});Hu.displayName="Panel";const s1="https://reactflow.dev?utm_source=attribution";function b6({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:b.jsx(Hu,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${s1}`,children:b.jsx("a",{href:s1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const x6=e=>{const t=[],i=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&i.push(a);return{selectedNodes:t,selectedEdges:i}},Zc=e=>e.id;function y6(e,t){return qt(e.selectedNodes.map(Zc),t.selectedNodes.map(Zc))&&qt(e.selectedEdges.map(Zc),t.selectedEdges.map(Zc))}function v6({onSelectionChange:e}){const t=zt(),{selectedNodes:i,selectedEdges:a}=dt(x6,y6);return re.useEffect(()=>{const s={nodes:i,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(o=>o(s))},[i,a,e]),null}const _6=e=>!!e.onSelectionChangeHandlers;function E6({onSelectionChange:e}){const t=dt(_6);return e||t?b.jsx(v6,{onSelectionChange:e}):null}const Vw=[0,0],w6={x:0,y:0,zoom:1},N6=["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"],l1=[...N6,"rfId"],S6=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}),o1={translateExtent:lo,nodeOrigin:Vw,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function k6(e){const{setNodes:t,setEdges:i,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:h}=dt(S6,qt),f=zt();re.useEffect(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=o1,d()}),[]);const p=re.useRef(o1);return re.useEffect(()=>{for(const m of l1){const y=e[m],x=p.current[m];y!==x&&(typeof e[m]>"u"||(m==="nodes"?t(y):m==="edges"?i(y):m==="minZoom"?a(y):m==="maxZoom"?s(y):m==="translateExtent"?o(y):m==="nodeExtent"?c(y):m==="ariaLabelConfig"?f.setState({ariaLabelConfig:uI(y)}):m==="fitView"?f.setState({fitViewQueued:y}):m==="fitViewOptions"?f.setState({fitViewOptions:y}):f.setState({[m]:y})))}p.current=e},l1.map(m=>e[m])),null}function c1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function T6(e){var a;const[t,i]=re.useState(e==="system"?null:e);return re.useEffect(()=>{if(e!=="system"){i(e);return}const s=c1(),o=()=>i(s!=null&&s.matches?"dark":"light");return o(),s==null||s.addEventListener("change",o),()=>{s==null||s.removeEventListener("change",o)}},[e]),t!==null?t:(a=c1())!=null&&a.matches?"dark":"light"}const u1=typeof document<"u"?document:null;function fo(e=null,t={target:u1,actInsideInputWithModifier:!0}){const[i,a]=re.useState(!1),s=re.useRef(!1),o=re.useRef(new Set([])),[c,d]=re.useMemo(()=>{if(e!==null){const f=(Array.isArray(e)?e:[e]).filter(m=>typeof m=="string").map(m=>m.replace("+",` +`).replace(` + +`,` ++`).split(` +`)),p=f.reduce((m,y)=>m.concat(...y),[]);return[f,p]}return[[],[]]},[e]);return re.useEffect(()=>{const h=(t==null?void 0:t.target)??u1,f=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const p=x=>{var S,E;if(s.current=x.ctrlKey||x.metaKey||x.shiftKey||x.altKey,(!s.current||s.current&&!f)&&Sw(x))return!1;const N=f1(x.code,d);if(o.current.add(x[N]),d1(c,o.current,!1)){const k=((E=(S=x.composedPath)==null?void 0:S.call(x))==null?void 0:E[0])||x.target,w=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";t.preventDefault!==!1&&(s.current||!w)&&x.preventDefault(),a(!0)}},m=x=>{const _=f1(x.code,d);d1(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(x[_]),x.key==="Meta"&&o.current.clear(),s.current=!1},y=()=>{o.current.clear(),a(!1)};return h==null||h.addEventListener("keydown",p),h==null||h.addEventListener("keyup",m),window.addEventListener("blur",y),window.addEventListener("contextmenu",y),()=>{h==null||h.removeEventListener("keydown",p),h==null||h.removeEventListener("keyup",m),window.removeEventListener("blur",y),window.removeEventListener("contextmenu",y)}}},[e,a]),i}function d1(e,t,i){return e.filter(a=>i||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function f1(e,t){return t.includes(e)?"code":"key"}const A6=()=>{const e=zt();return re.useMemo(()=>({zoomIn:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1.2,t):!1},zoomOut:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1/1.2,t):!1},zoomTo:async(t,i)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,i):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,i)=>{const{transform:[a,s,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??o},i),!0):!1},getViewport:()=>{const[t,i,a]=e.getState().transform;return{x:t,y:i,zoom:a}},setCenter:async(t,i,a)=>e.getState().setCenter(t,i,a),fitBounds:async(t,i)=>{const{width:a,height:s,minZoom:o,maxZoom:c,panZoom:d}=e.getState(),h=Hm(t,a,s,o,c,(i==null?void 0:i.padding)??.1);return d?(await d.setViewport(h,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),!0):!1},screenToFlowPosition:(t,i={})=>{const{transform:a,snapGrid:s,snapToGrid:o,domNode:c}=e.getState();if(!c)return t;const{x:d,y:h}=c.getBoundingClientRect(),f={x:t.x-d,y:t.y-h},p=i.snapGrid??s,m=i.snapToGrid??o;return wo(f,a,m,p)},flowToScreenPosition:t=>{const{transform:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=Hs(t,i);return{x:c.x+s,y:c.y+o}}}),[])};function Yw(e,t){const i=[],a=new Map,s=[];for(const o of e)if(o.type==="add"){s.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){i.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const d={...o};for(const h of c)C6(h,d);i.push(d)}return s.length&&s.forEach(o=>{o.index!==void 0?i.splice(o.index,0,{...o.item}):i.push({...o.item})}),i}function C6(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 Xw(e,t){return Yw(e,t)}function Kw(e,t){return Yw(e,t)}function Ma(e,t){return{id:e,type:"select",selected:t}}function As(e,t=new Set,i=!1){const a=[];for(const[s,o]of e){const c=t.has(s);!(o.selected===void 0&&!c)&&o.selected!==c&&(i&&(o.selected=c),a.push(Ma(o.id,c)))}return a}function h1({items:e=[],lookup:t}){var s;const i=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,c]of e.entries()){const d=t.get(c.id),h=((s=d==null?void 0:d.internals)==null?void 0:s.userNode)??d;h!==void 0&&h!==c&&i.push({id:c.id,item:c,type:"replace"}),h===void 0&&i.push({item:c,type:"add",index:o})}for(const[o]of t)a.get(o)===void 0&&i.push({id:o,type:"remove"});return i}function p1(e){return{id:e.id,type:"remove"}}const M6=_w();function O6(e,t,i={}){return gI(e,t,{...i,onError:i.onError??M6})}const m1=e=>tI(e),R6=e=>gw(e);function Zw(e){return re.forwardRef(e)}const Qw=typeof window<"u"?re.useLayoutEffect:re.useEffect;function g1(e){const[t,i]=re.useState(BigInt(0)),[a]=re.useState(()=>D6(()=>i(s=>s+BigInt(1))));return Qw(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function D6(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:i=>{t.push(i),e()}}}const Ww=re.createContext(null);function L6({children:e}){const t=zt(),i=re.useCallback(d=>{const{nodes:h=[],setNodes:f,hasDefaultNodes:p,onNodesChange:m,nodeLookup:y,fitViewQueued:x,onNodesChangeMiddlewareMap:_}=t.getState();let N=h;for(const E of d)N=typeof E=="function"?E(N):E;let S=h1({items:N,lookup:y});for(const E of _.values())S=E(S);p&&f(N),S.length>0?m==null||m(S):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:k,setNodes:w}=t.getState();E&&w(k)})},[]),a=g1(i),s=re.useCallback(d=>{const{edges:h=[],setEdges:f,hasDefaultEdges:p,onEdgesChange:m,edgeLookup:y}=t.getState();let x=h;for(const _ of d)x=typeof _=="function"?_(x):_;p?f(x):m&&m(h1({items:x,lookup:y}))},[]),o=g1(s),c=re.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return b.jsx(Ww.Provider,{value:c,children:e})}function z6(){const e=re.useContext(Ww);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const j6=e=>!!e.panZoom;function No(){const e=A6(),t=zt(),i=z6(),a=dt(j6),s=re.useMemo(()=>{const o=m=>t.getState().nodeLookup.get(m),c=m=>{i.nodeQueue.push(m)},d=m=>{i.edgeQueue.push(m)},h=m=>{var E,k;const{nodeLookup:y,nodeOrigin:x}=t.getState(),_=m1(m)?m:y.get(m.id),N=_.parentId?ww(_.position,_.measured,_.parentId,y,x):_.position,S={..._,position:N,width:((E=_.measured)==null?void 0:E.width)??_.width,height:((k=_.measured)==null?void 0:k.height)??_.height};return co(S)},f=(m,y,x={replace:!1})=>{c(_=>_.map(N=>{if(N.id===m){const S=typeof y=="function"?y(N):y;return x.replace&&m1(S)?S:{...N,...S}}return N}))},p=(m,y,x={replace:!1})=>{d(_=>_.map(N=>{if(N.id===m){const S=typeof y=="function"?y(N):y;return x.replace&&R6(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(m=>({...m})),getNode:m=>{var y;return(y=o(m))==null?void 0:y.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:m=[]}=t.getState();return m.map(y=>({...y}))},getEdge:m=>t.getState().edgeLookup.get(m),setNodes:c,setEdges:d,addNodes:m=>{const y=Array.isArray(m)?m:[m];i.nodeQueue.push(x=>[...x,...y])},addEdges:m=>{const y=Array.isArray(m)?m:[m];i.edgeQueue.push(x=>[...x,...y])},toObject:()=>{const{nodes:m=[],edges:y=[],transform:x}=t.getState(),[_,N,S]=x;return{nodes:m.map(E=>({...E})),edges:y.map(E=>({...E})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:m=[],edges:y=[]})=>{const{nodes:x,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:E,triggerEdgeChanges:k,onDelete:w,onBeforeDelete:O}=t.getState(),{nodes:B,edges:R}=await sI({nodesToRemove:m,edgesToRemove:y,nodes:x,edges:_,onBeforeDelete:O}),H=R.length>0,I=B.length>0;if(H){const K=R.map(p1);S==null||S(R),k(K)}if(I){const K=B.map(p1);N==null||N(B),E(K)}return(I||H)&&(w==null||w({nodes:B,edges:R})),{deletedNodes:B,deletedEdges:R}},getIntersectingNodes:(m,y=!0,x)=>{const _=Hv(m),N=_?m:h(m),S=x!==void 0;return N?(x||t.getState().nodes).filter(E=>{const k=t.getState().nodeLookup.get(E.id);if(k&&!_&&(E.id===m.id||!k.internals.positionAbsolute))return!1;const w=co(S?E:k),O=_u(w,N);return y&&O>0||O>=w.width*w.height||O>=N.width*N.height}):[]},isNodeIntersecting:(m,y,x=!0)=>{const N=Hv(m)?m:h(m);if(!N)return!1;const S=_u(N,y);return x&&S>0||S>=y.width*y.height||S>=N.width*N.height},updateNode:f,updateNodeData:(m,y,x={replace:!1})=>{f(m,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},updateEdge:p,updateEdgeData:(m,y,x={replace:!1})=>{p(m,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},getNodesBounds:m=>{const{nodeLookup:y,nodeOrigin:x}=t.getState();return nI(m,{nodeLookup:y,nodeOrigin:x})},getHandleConnections:({type:m,id:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}-${m}${y?`-${y}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:m,handleId:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}${m?y?`-${m}-${y}`:`-${m}`:""}`))==null?void 0:_.values())??[])},fitView:async m=>{const y=t.getState().fitViewResolver??cI();return t.setState({fitViewQueued:!0,fitViewOptions:m,fitViewResolver:y}),i.nodeQueue.push(x=>[...x]),y.promise}}},[]);return re.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const b1=e=>e.selected,I6=typeof window<"u"?window:void 0;function B6({deleteKeyCode:e,multiSelectionKeyCode:t}){const i=zt(),{deleteElements:a}=No(),s=fo(e,{actInsideInputWithModifier:!1}),o=fo(t,{target:I6});re.useEffect(()=>{if(s){const{edges:c,nodes:d}=i.getState();a({nodes:d.filter(b1),edges:c.filter(b1)}),i.setState({nodesSelectionActive:!1})}},[s]),re.useEffect(()=>{i.setState({multiSelectionActive:o})},[o])}function U6(e){const t=zt();re.useEffect(()=>{const i=()=>{var s,o,c,d;if(!e.current||!(((o=(s=e.current).checkVisibility)==null?void 0:o.call(s))??!0))return!1;const a=$m(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",Mi.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){i(),window.addEventListener("resize",i);const a=new ResizeObserver(()=>i());return a.observe(e.current),()=>{window.removeEventListener("resize",i),a&&e.current&&a.unobserve(e.current)}}},[])}const $u={position:"absolute",width:"100%",height:"100%",top:0,left:0},H6=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function $6({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=La.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:h,translateExtent:f,minZoom:p,maxZoom:m,zoomActivationKeyCode:y,preventScrolling:x=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:E,isControlledViewport:k,paneClickDistance:w,selectionOnDrag:O}){const B=zt(),R=re.useRef(null),{userSelectionActive:H,lib:I,connectionInProgress:K}=dt(H6,qt),L=fo(y),q=re.useRef();U6(R);const X=re.useCallback(G=>{E==null||E({x:G[0],y:G[1],zoom:G[2]}),k||B.setState({transform:G})},[E,k]);return re.useEffect(()=>{if(R.current){q.current=VI({domNode:R.current,minZoom:p,maxZoom:m,translateExtent:f,viewport:h,onDraggingChange:M=>B.setState(U=>U.paneDragging===M?U:{paneDragging:M}),onPanZoomStart:(M,U)=>{const{onViewportChangeStart:Y,onMoveStart:Z}=B.getState();Z==null||Z(M,U),Y==null||Y(U)},onPanZoom:(M,U)=>{const{onViewportChange:Y,onMove:Z}=B.getState();Z==null||Z(M,U),Y==null||Y(U)},onPanZoomEnd:(M,U)=>{const{onViewportChangeEnd:Y,onMoveEnd:Z}=B.getState();Z==null||Z(M,U),Y==null||Y(U)}});const{x:G,y:C,zoom:j}=q.current.getViewport();return B.setState({panZoom:q.current,transform:[G,C,j],domNode:R.current.closest(".react-flow")}),()=>{var M;(M=q.current)==null||M.destroy()}}},[]),re.useEffect(()=>{var G;(G=q.current)==null||G.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:L,preventScrolling:x,noPanClassName:S,userSelectionActive:H,noWheelClassName:N,lib:I,onTransformChange:X,connectionInProgress:K,selectionOnDrag:O,paneClickDistance:w})},[e,t,i,a,s,o,c,d,L,x,S,H,N,I,X,K,O,w]),b.jsx("div",{className:"react-flow__renderer",ref:R,style:$u,children:_})}const q6=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function P6(){const{userSelectionActive:e,userSelectionRect:t}=dt(q6,qt);return e&&t?b.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 hp=(e,t)=>i=>{i.target===t.current&&(e==null||e(i))},F6=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function G6({isSelecting:e,selectionKeyPressed:t,selectionMode:i=oo.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:o,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:h,onPaneClick:f,onPaneContextMenu:p,onPaneScroll:m,onPaneMouseEnter:y,onPaneMouseMove:x,onPaneMouseLeave:_,children:N}){const S=re.useRef(0),E=zt(),{userSelectionActive:k,elementsSelectable:w,dragging:O,panBy:B,autoPanSpeed:R}=dt(F6,qt),H=w&&(e||k),I=re.useRef(null),K=re.useRef(),L=re.useRef(new Set),q=re.useRef(new Set),X=re.useRef(!1),G=re.useRef(!1),C=re.useRef({x:0,y:0}),j=re.useRef(!1),M=W=>{if(G.current||X.current||E.getState().connection.inProgress){G.current=!1,X.current=!1;return}f==null||f(W),E.getState().resetSelectedElements(),E.setState({nodesSelectionActive:!1})},U=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}p==null||p(W)},Y=m?W=>m(W):void 0,Z=W=>{G.current&&(W.stopPropagation(),G.current=!1)},A=W=>{var st,Rt;const{domNode:ee,transform:ce}=E.getState();if(K.current=ee==null?void 0:ee.getBoundingClientRect(),!K.current)return;const fe=W.target===I.current;if(!fe&&!!W.target.closest(".nokey")||!e||!(c&&fe||t)||W.button!==0||!W.isPrimary)return;(Rt=(st=W.target)==null?void 0:st.setPointerCapture)==null||Rt.call(st,W.pointerId),G.current=!1;const{x:Ne,y:Le}=Ai(W.nativeEvent,K.current),$e=wo({x:Ne,y:Le},ce);E.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:Le}}),fe||(W.stopPropagation(),W.preventDefault())};function z(W,ee){const{userSelectionRect:ce}=E.getState();if(!ce)return;const{transform:fe,nodeLookup:be,edgeLookup:Ee,connectionLookup:Ne,triggerNodeChanges:Le,triggerEdgeChanges:$e,defaultEdgeOptions:st}=E.getState(),Rt={x:ce.startX,y:ce.startY},{x:Yt,y:Pt}=Hs(Rt,fe),Xt={startX:Rt.x,startY:Rt.y,x:WIt.id)),q.current=new Set;const ct=(st==null?void 0:st.selectable)??!0;for(const It of L.current){const ue=Ne.get(It);if(ue)for(const{edgeId:xe}of ue.values()){const Oe=Ee.get(xe);Oe&&(Oe.selectable??ct)&&q.current.add(xe)}}if(!$v(Vn,L.current)){const It=As(be,L.current,!0);Le(It)}if(!$v(En,q.current)){const It=As(Ee,q.current);$e(It)}E.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function V(){if(!s||!K.current)return;const[W,ee]=Um(C.current,K.current,R);B({x:W,y:ee}).then(ce=>{if(!G.current||!ce){S.current=requestAnimationFrame(V);return}const{x:fe,y:be}=C.current;z(fe,be),S.current=requestAnimationFrame(V)})}const D=()=>{cancelAnimationFrame(S.current),S.current=0,j.current=!1};re.useEffect(()=>()=>D(),[]);const F=W=>{const{userSelectionRect:ee,transform:ce,resetSelectedElements:fe}=E.getState();if(!K.current||!ee)return;const{x:be,y:Ee}=Ai(W.nativeEvent,K.current);C.current={x:be,y:Ee};const Ne=Hs({x:ee.startX,y:ee.startY},ce);if(!G.current){const Le=t?0:o;if(Math.hypot(be-Ne.x,Ee-Ne.y)<=Le)return;fe(),d==null||d(W)}G.current=!0,j.current||(V(),j.current=!0),z(be,Ee)},$=W=>{var ee,ce;if(!H){W.target===I.current&&E.getState().connection.inProgress&&(X.current=!0);return}W.button===0&&((ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),!k&&W.target===I.current&&E.getState().userSelectionRect&&(M==null||M(W)),E.setState({userSelectionActive:!1,userSelectionRect:null}),G.current&&(h==null||h(W),E.setState({nodesSelectionActive:L.current.size>0})),D())},Q=W=>{var ee,ce;(ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),D()},J=a===!0||Array.isArray(a)&&a.includes(0);return b.jsxs("div",{className:ln(["react-flow__pane",{draggable:J,dragging:O,selection:e}]),onClick:H?void 0:hp(M,I),onContextMenu:hp(U,I),onWheel:hp(Y,I),onPointerEnter:H?void 0:y,onPointerMove:H?F:x,onPointerUp:$,onPointerCancel:H?Q:void 0,onPointerDownCapture:H?A:void 0,onClickCapture:H?Z:void 0,onPointerLeave:_,ref:I,style:$u,children:[N,b.jsx(P6,{})]})}function Yp({id:e,store:t,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:d,onError:h}=t.getState(),f=d.get(e);if(!f){h==null||h("012",Mi.error012(e));return}t.setState({nodesSelectionActive:!1}),f.selected?(i||f.selected&&c)&&(o({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var p;return(p=a==null?void 0:a.current)==null?void 0:p.blur()})):s([e])}function Jw({nodeRef:e,disabled:t=!1,noDragClassName:i,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const d=zt(),[h,f]=re.useState(!1),p=re.useRef();return re.useEffect(()=>{if(!t)return p.current=RI({getStoreItems:()=>d.getState(),onNodeMouseDown:m=>{Yp({id:m,store:d,nodeRef:e})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}}),()=>{var m;(m=p.current)==null||m.destroy(),p.current=void 0}},[t,d,e]),re.useEffect(()=>{t||!e.current||!p.current||p.current.update({noDragClassName:i,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c})},[i,a,t,o,e,s,c]),h}const V6=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function eN(){const e=zt();return re.useCallback(i=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:d,updateNodePositions:h,nodeLookup:f,nodeOrigin:p}=e.getState(),m=new Map,y=V6(c),x=s?o[0]:5,_=s?o[1]:5,N=i.direction.x*x*i.factor,S=i.direction.y*_*i.factor;for(const[,E]of f){if(!y(E))continue;let k={x:E.internals.positionAbsolute.x+N,y:E.internals.positionAbsolute.y+S};s&&(k=Eo(k,o));const{position:w,positionAbsolute:O}=bw({nodeId:E.id,nextPosition:k,nodeLookup:f,nodeExtent:a,nodeOrigin:p,onError:d});E.position=w,E.internals.positionAbsolute=O,m.set(E.id,E)}h(m)},[])}const Ym=re.createContext(null),Y6=Ym.Provider;Ym.Consumer;const tN=()=>re.useContext(Ym),X6=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),nN=re.createContext(null);function K6({children:e}){const t=dt(X6,qt);return b.jsx(nN.Provider,{value:t,children:e})}function Z6(){const e=re.useContext(nN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const Q6={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},W6=(e,t,i)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:d,toHandle:h,isValid:f}=c;if(!d&&!s)return Q6;const p=(h==null?void 0:h.nodeId)===e&&(h==null?void 0:h.id)===t&&(h==null?void 0:h.type)===i;return{connectingFrom:(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===i,connectingTo:p,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===i,isPossibleEndHandle:o===Bs.Strict?(d==null?void 0:d.type)!==i:e!==(d==null?void 0:d.nodeId)||t!==(d==null?void 0:d.id),connectionInProcess:!!d,clickConnectionInProcess:!!s,valid:p&&f}};function J6({type:e="source",position:t=je.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:d,children:h,className:f,onMouseDown:p,onTouchStart:m,...y},x){var j,M;const _=c||null,N=e==="target",S=zt(),E=tN(),{connectOnClick:k,noPanClassName:w,rfId:O}=Z6(),{connectingFrom:B,connectingTo:R,clickConnecting:H,isPossibleEndHandle:I,connectionInProcess:K,clickConnectionInProcess:L,valid:q}=dt(W6(E,_,e),qt);E||(M=(j=S.getState()).onError)==null||M.call(j,"010",Mi.error010());const X=U=>{const{defaultEdgeOptions:Y,onConnect:Z,hasDefaultEdges:A}=S.getState(),z={...Y,...U};if(A){const{edges:V,setEdges:D,onError:F}=S.getState();D(O6(z,V,{onError:F}))}Z==null||Z(z),d==null||d(z)},G=U=>{if(!E)return;const Y=kw(U.nativeEvent);if(s&&(Y&&U.button===0||!Y)){const Z=S.getState();Vp.onPointerDown(U.nativeEvent,{handleDomNode:U.currentTarget,autoPanOnConnect:Z.autoPanOnConnect,connectionMode:Z.connectionMode,connectionRadius:Z.connectionRadius,domNode:Z.domNode,nodeLookup:Z.nodeLookup,lib:Z.lib,isTarget:N,handleId:_,nodeId:E,flowId:Z.rfId,panBy:Z.panBy,cancelConnection:Z.cancelConnection,onConnectStart:Z.onConnectStart,onConnectEnd:(...A)=>{var z,V;return(V=(z=S.getState()).onConnectEnd)==null?void 0:V.call(z,...A)},updateConnection:Z.updateConnection,onConnect:X,isValidConnection:i||((...A)=>{var z,V;return((V=(z=S.getState()).isValidConnection)==null?void 0:V.call(z,...A))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:Z.autoPanSpeed,dragThreshold:Z.connectionDragThreshold})}Y?p==null||p(U):m==null||m(U)},C=U=>{const{onClickConnectStart:Y,onClickConnectEnd:Z,connectionClickStartHandle:A,connectionMode:z,isValidConnection:V,lib:D,rfId:F,nodeLookup:$,connection:Q}=S.getState();if(!E||!A&&!s)return;if(!A){Y==null||Y(U.nativeEvent,{nodeId:E,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:E,type:e,id:_}});return}const J=Nw(U.target),W=i||V,{connection:ee,isValid:ce}=Vp.isValid(U.nativeEvent,{handle:{nodeId:E,id:_,type:e},connectionMode:z,fromNodeId:A.nodeId,fromHandleId:A.id||null,fromType:A.type,isValidConnection:W,flowId:F,doc:J,lib:D,nodeLookup:$});ce&&ee&&X(ee);const fe=structuredClone(Q);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,Z==null||Z(U,fe),S.setState({connectionClickStartHandle:null})};return b.jsx("div",{"data-handleid":_,"data-nodeid":E,"data-handlepos":t,"data-id":`${O}-${E}-${_}-${e}`,className:ln(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",w,f,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:o,clickconnecting:H,connectingfrom:B,connectingto:R,valid:q,connectionindicator:a&&(!K||I)&&(K||L?o:s)}]),onMouseDown:G,onTouchStart:G,onClick:k?C:void 0,ref:x,...y,children:h})}const qs=re.memo(Zw(J6));function e8({data:e,isConnectable:t,sourcePosition:i=je.Bottom}){return b.jsxs(b.Fragment,{children:[e==null?void 0:e.label,b.jsx(qs,{type:"source",position:i,isConnectable:t})]})}function t8({data:e,isConnectable:t,targetPosition:i=je.Top,sourcePosition:a=je.Bottom}){return b.jsxs(b.Fragment,{children:[b.jsx(qs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label,b.jsx(qs,{type:"source",position:a,isConnectable:t})]})}function n8(){return null}function i8({data:e,isConnectable:t,targetPosition:i=je.Top}){return b.jsxs(b.Fragment,{children:[b.jsx(qs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label]})}const Eu={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},x1={input:e8,default:t8,output:i8,group:n8};function r8(e){var t,i,a,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((i=e.style)==null?void 0:i.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const a8=e=>{const{width:t,height:i,x:a,y:s}=_o(e.nodeLookup,{filter:o=>!!o.selected});return{width:Ti(t)?t:null,height:Ti(i)?i:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${s}px)`}};function s8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:i}){const a=zt(),{width:s,height:o,transformString:c,userSelectionActive:d}=dt(a8,qt),h=eN(),f=re.useRef(null);re.useEffect(()=>{var x;i||(x=f.current)==null||x.focus({preventScroll:!0})},[i]);const p=!d&&s!==null&&o!==null;if(Jw({nodeRef:f,disabled:!p}),!p)return null;const m=e?x=>{const _=a.getState().nodes.filter(N=>N.selected);e(x,_)}:void 0,y=x=>{Object.prototype.hasOwnProperty.call(Eu,x.key)&&(x.preventDefault(),h({direction:Eu[x.key],factor:x.shiftKey?4:1}))};return b.jsx("div",{className:ln(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:b.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:m,tabIndex:i?void 0:-1,onKeyDown:i?void 0:y,style:{width:s,height:o}})})}const y1=typeof window<"u"?window:void 0,l8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function iN({children:e,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:h,selectionKeyCode:f,selectionOnDrag:p,selectionMode:m,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:w,panOnScroll:O,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:I,autoPanOnSelection:K,defaultViewport:L,translateExtent:q,minZoom:X,maxZoom:G,preventScrolling:C,onSelectionContextMenu:j,noWheelClassName:M,noPanClassName:U,disableKeyboardA11y:Y,onViewportChange:Z,isControlledViewport:A}){const{nodesSelectionActive:z,userSelectionActive:V}=dt(l8,qt),D=fo(f,{target:y1}),F=fo(N,{target:y1}),$=F||I,Q=F||O,J=p&&$!==!0,W=D||V||J;return B6({deleteKeyCode:h,multiSelectionKeyCode:_}),b.jsx($6,{onPaneContextMenu:o,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:w,panOnScroll:Q,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:!D&&$,defaultViewport:L,translateExtent:q,minZoom:X,maxZoom:G,zoomActivationKeyCode:S,preventScrolling:C,noWheelClassName:M,noPanClassName:U,onViewportChange:Z,isControlledViewport:A,paneClickDistance:d,selectionOnDrag:J,children:b.jsxs(G6,{onSelectionStart:y,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:$,autoPanOnSelection:K,isSelecting:!!W,selectionMode:m,selectionKeyPressed:D,paneClickDistance:d,selectionOnDrag:J,children:[e,z&&b.jsx(s8,{onSelectionContextMenu:j,noPanClassName:U,disableKeyboardA11y:Y})]})})}iN.displayName="FlowRenderer";const o8=re.memo(iN),c8=e=>t=>e?Bm(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(i=>i.id):Array.from(t.nodeLookup.keys());function u8(e){return dt(re.useCallback(c8(e),[e]),qt)}const d8=e=>e.updateNodeInternals;function f8(){const e=dt(d8),[t]=re.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(s=>{const o=s.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:s.target,force:!0})}),e(a)}));return re.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function h8({node:e,nodeType:t,hasDimensions:i,resizeObserver:a}){const s=zt(),o=re.useRef(null),c=re.useRef(null),d=re.useRef(e.sourcePosition),h=re.useRef(e.targetPosition),f=re.useRef(t),p=i&&!!e.internals.handleBounds;return re.useEffect(()=>{o.current&&!e.hidden&&(!p||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[p,e.hidden]),re.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),re.useEffect(()=>{if(o.current){const m=f.current!==t,y=d.current!==e.sourcePosition,x=h.current!==e.targetPosition;(m||y||x)&&(f.current=t,d.current=e.sourcePosition,h.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function p8({id:e,onClick:t,onMouseEnter:i,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:d,elementsSelectable:h,nodesConnectable:f,nodesFocusable:p,resizeObserver:m,noDragClassName:y,noPanClassName:x,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:E,onError:k}){const{node:w,internals:O,isParent:B}=dt(W=>{const ee=W.nodeLookup.get(e),ce=W.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:ce}},qt);let R=w.type||"default",H=(S==null?void 0:S[R])||x1[R];H===void 0&&(k==null||k("003",Mi.error003(R)),R="default",H=(S==null?void 0:S.default)||x1.default);const I=!!(w.draggable||d&&typeof w.draggable>"u"),K=!!(w.selectable||h&&typeof w.selectable>"u"),L=!!(w.connectable||f&&typeof w.connectable>"u"),q=!!(w.focusable||p&&typeof w.focusable>"u"),X=zt(),G=Ew(w),C=h8({node:w,nodeType:R,hasDimensions:G,resizeObserver:m}),j=Jw({nodeRef:C,disabled:w.hidden||!I,noDragClassName:y,handleSelector:w.dragHandle,nodeId:e,isSelectable:K,nodeClickDistance:E}),M=eN();if(w.hidden)return null;const U=Yi(w),Y=r8(w),Z=K||I||t||i||a||s,A=i?W=>i(W,{...O.userNode}):void 0,z=a?W=>a(W,{...O.userNode}):void 0,V=s?W=>s(W,{...O.userNode}):void 0,D=o?W=>o(W,{...O.userNode}):void 0,F=c?W=>c(W,{...O.userNode}):void 0,$=W=>{const{selectNodesOnDrag:ee,nodeDragThreshold:ce}=X.getState();K&&(!ee||!I||ce>0)&&Yp({id:e,store:X,nodeRef:C}),t&&t(W,{...O.userNode})},Q=W=>{if(!(Sw(W.nativeEvent)||_)){if(fw.includes(W.key)&&K){const ee=W.key==="Escape";Yp({id:e,store:X,unselect:ee,nodeRef:C})}else if(I&&w.selected&&Object.prototype.hasOwnProperty.call(Eu,W.key)){W.preventDefault();const{ariaLabelConfig:ee}=X.getState();X.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~O.positionAbsolute.x,y:~~O.positionAbsolute.y})}),M({direction:Eu[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=C.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:ee,height:ce,autoPanOnNodeFocus:fe,setCenter:be}=X.getState();if(!fe)return;Bm(new Map([[e,w]]),{x:0,y:0,width:ee,height:ce},W,!0).length>0||be(w.position.x+U.width/2,w.position.y+U.height/2,{zoom:W[2]})};return b.jsx("div",{className:ln(["react-flow__node",`react-flow__node-${R}`,{[x]:I},w.className,{selected:w.selected,selectable:K,parent:B,draggable:I,dragging:j}]),ref:C,style:{zIndex:O.z,transform:`translate(${O.positionAbsolute.x}px,${O.positionAbsolute.y}px)`,pointerEvents:Z?"all":"none",visibility:G?"visible":"hidden",...w.style,...Y},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:A,onMouseMove:z,onMouseLeave:V,onContextMenu:D,onClick:$,onDoubleClick:F,onKeyDown:q?Q:void 0,tabIndex:q?0:void 0,onFocus:q?J:void 0,role:w.ariaRole??(q?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${Fw}-${N}`,"aria-label":w.ariaLabel,...w.domAttributes,children:b.jsx(Y6,{value:e,children:b.jsx(H,{id:e,data:w.data,type:R,positionAbsoluteX:O.positionAbsolute.x,positionAbsoluteY:O.positionAbsolute.y,selected:w.selected??!1,selectable:K,draggable:I,deletable:w.deletable??!0,isConnectable:L,sourcePosition:w.sourcePosition,targetPosition:w.targetPosition,dragging:j,dragHandle:w.dragHandle,zIndex:O.z,parentId:w.parentId,...U})})})}var m8=re.memo(p8);const g8=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function rN(e){const{nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,onError:s}=dt(g8,qt),o=u8(e.onlyRenderVisibleElements),c=f8();return b.jsx("div",{className:"react-flow__nodes",style:$u,children:o.map(d=>b.jsx(m8,{id:d,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:c,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:s},d))})}rN.displayName="NodeRenderer";const b8=re.memo(rN);function x8(e){return dt(re.useCallback(i=>{if(!e)return i.edges.map(s=>s.id);const a=[];if(i.width&&i.height)for(const s of i.edges){const o=i.nodeLookup.get(s.source),c=i.nodeLookup.get(s.target);o&&c&&hI({sourceNode:o,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(s.id)}return a},[e]),qt)}const y8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e}};return b.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},v8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e,fill:e}};return b.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},v1={[yu.Arrow]:y8,[yu.ArrowClosed]:v8};function _8(e){const t=zt();return re.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(v1,e)?v1[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",Mi.error009(e)),null)},[e])}const E8=({id:e,type:t,color:i,width:a=12.5,height:s=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:d="auto-start-reverse"})=>{const h=_8(t);return h?b.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:d,refX:"0",refY:"0",children:b.jsx(h,{color:i,strokeWidth:c})}):null},aN=({defaultColor:e,rfId:t})=>{const i=dt(o=>o.edges),a=dt(o=>o.defaultEdgeOptions),s=re.useMemo(()=>_I(i,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[i,a,t,e]);return s.length?b.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:b.jsx("defs",{children:s.map(o=>b.jsx(E8,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};aN.displayName="MarkerDefinitions";var w8=re.memo(aN);function sN({x:e,y:t,label:i,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:h,className:f,...p}){const[m,y]=re.useState({x:1,y:0,width:0,height:0}),x=ln(["react-flow__edge-textwrapper",f]),_=re.useRef(null);return re.useEffect(()=>{if(_.current){const N=_.current.getBBox();y({x:N.x,y:N.y,width:N.width,height:N.height})}},[i]),i?b.jsxs("g",{transform:`translate(${e-m.width/2} ${t-m.height/2})`,className:x,visibility:m.width?"visible":"hidden",...p,children:[s&&b.jsx("rect",{width:m.width+2*c[0],x:-c[0],y:-c[1],height:m.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:d,ry:d}),b.jsx("text",{className:"react-flow__edge-text",y:m.height/2,dy:"0.3em",ref:_,style:a,children:i}),h]}):null}sN.displayName="EdgeText";const N8=re.memo(sN);function qu({path:e,labelX:t,labelY:i,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h,interactionWidth:f=20,...p}){return b.jsxs(b.Fragment,{children:[b.jsx("path",{...p,d:e,fill:"none",className:ln(["react-flow__edge-path",p.className])}),f?b.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:f,className:"react-flow__edge-interaction"}):null,a&&Ti(t)&&Ti(i)?b.jsx(N8,{x:t,y:i,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h}):null]})}function _1({pos:e,x1:t,y1:i,x2:a,y2:s}){return e===je.Left||e===je.Right?[.5*(t+a),i]:[t,.5*(i+s)]}function lN({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top}){const[c,d]=_1({pos:i,x1:e,y1:t,x2:a,y2:s}),[h,f]=_1({pos:o,x1:a,y1:s,x2:e,y2:t}),[p,m,y,x]=Tw({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:d,targetControlX:h,targetControlY:f});return[`M${e},${t} C${c},${d} ${h},${f} ${a},${s}`,p,m,y,x]}function oN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:d,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:E})=>{const[k,w,O]=lN({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d}),B=e.isInternal?void 0:t;return b.jsx(qu,{id:B,path:k,labelX:w,labelY:O,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:E})})}const S8=oN({isInternal:!1}),cN=oN({isInternal:!0});S8.displayName="SimpleBezierEdge";cN.displayName="SimpleBezierEdgeInternal";function uN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,sourcePosition:x=je.Bottom,targetPosition:_=je.Top,markerEnd:N,markerStart:S,pathOptions:E,interactionWidth:k})=>{const[w,O,B]=Pp({sourceX:i,sourceY:a,sourcePosition:x,targetX:s,targetY:o,targetPosition:_,borderRadius:E==null?void 0:E.borderRadius,offset:E==null?void 0:E.offset,stepPosition:E==null?void 0:E.stepPosition}),R=e.isInternal?void 0:t;return b.jsx(qu,{id:R,path:w,labelX:O,labelY:B,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:N,markerStart:S,interactionWidth:k})})}const dN=uN({isInternal:!1}),fN=uN({isInternal:!0});dN.displayName="SmoothStepEdge";fN.displayName="SmoothStepEdgeInternal";function hN(e){return re.memo(({id:t,...i})=>{var s;const a=e.isInternal?void 0:t;return b.jsx(dN,{...i,id:a,pathOptions:re.useMemo(()=>{var o;return{borderRadius:0,offset:(o=i.pathOptions)==null?void 0:o.offset}},[(s=i.pathOptions)==null?void 0:s.offset])})})}const k8=hN({isInternal:!1}),pN=hN({isInternal:!0});k8.displayName="StepEdge";pN.displayName="StepEdgeInternal";function mN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:x,markerStart:_,interactionWidth:N})=>{const[S,E,k]=Mw({sourceX:i,sourceY:a,targetX:s,targetY:o}),w=e.isInternal?void 0:t;return b.jsx(qu,{id:w,path:S,labelX:E,labelY:k,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:x,markerStart:_,interactionWidth:N})})}const T8=mN({isInternal:!1}),gN=mN({isInternal:!0});T8.displayName="StraightEdge";gN.displayName="StraightEdgeInternal";function bN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,sourcePosition:c=je.Bottom,targetPosition:d=je.Top,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,pathOptions:E,interactionWidth:k})=>{const[w,O,B]=Aw({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d,curvature:E==null?void 0:E.curvature}),R=e.isInternal?void 0:t;return b.jsx(qu,{id:R,path:w,labelX:O,labelY:B,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:k})})}const A8=bN({isInternal:!1}),xN=bN({isInternal:!0});A8.displayName="BezierEdge";xN.displayName="BezierEdgeInternal";const E1={default:xN,straight:gN,step:pN,smoothstep:fN,simplebezier:cN},w1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},C8=(e,t,i)=>i===je.Left?e-t:i===je.Right?e+t:e,M8=(e,t,i)=>i===je.Top?e-t:i===je.Bottom?e+t:e,N1="react-flow__edgeupdater";function S1({position:e,centerX:t,centerY:i,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:d}){return b.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:ln([N1,`${N1}-${d}`]),cx:C8(t,a,e),cy:M8(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function O8({isReconnectable:e,reconnectRadius:t,edge:i,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:d,targetPosition:h,onReconnect:f,onReconnectStart:p,onReconnectEnd:m,setReconnecting:y,setUpdateHover:x}){const _=zt(),N=(O,B)=>{if(O.button!==0)return;const{autoPanOnConnect:R,domNode:H,connectionMode:I,connectionRadius:K,lib:L,onConnectStart:q,cancelConnection:X,nodeLookup:G,rfId:C,panBy:j,updateConnection:M}=_.getState(),U=B.type==="target",Y=(z,V)=>{y(!1),m==null||m(z,i,B.type,V)},Z=z=>f==null?void 0:f(i,z),A=(z,V)=>{y(!0),p==null||p(O,i,B.type),q==null||q(z,V)};Vp.onPointerDown(O.nativeEvent,{autoPanOnConnect:R,connectionMode:I,connectionRadius:K,domNode:H,handleId:B.id,nodeId:B.nodeId,nodeLookup:G,isTarget:U,edgeUpdaterType:B.type,lib:L,flowId:C,cancelConnection:X,panBy:j,isValidConnection:(...z)=>{var V,D;return((D=(V=_.getState()).isValidConnection)==null?void 0:D.call(V,...z))??!0},onConnect:Z,onConnectStart:A,onConnectEnd:(...z)=>{var V,D;return(D=(V=_.getState()).onConnectEnd)==null?void 0:D.call(V,...z)},onReconnectEnd:Y,updateConnection:M,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:O.currentTarget})},S=O=>N(O,{nodeId:i.target,id:i.targetHandle??null,type:"target"}),E=O=>N(O,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),k=()=>x(!0),w=()=>x(!1);return b.jsxs(b.Fragment,{children:[(e===!0||e==="source")&&b.jsx(S1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:k,onMouseOut:w,type:"source"}),(e===!0||e==="target")&&b.jsx(S1,{position:h,centerX:o,centerY:c,radius:t,onMouseDown:E,onMouseEnter:k,onMouseOut:w,type:"target"})]})}function R8({id:e,edgesFocusable:t,edgesReconnectable:i,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,reconnectRadius:p,onReconnect:m,onReconnectStart:y,onReconnectEnd:x,rfId:_,edgeTypes:N,noPanClassName:S,onError:E,disableKeyboardA11y:k}){let w=dt(be=>be.edgeLookup.get(e));const O=dt(be=>be.defaultEdgeOptions);w=O?{...O,...w}:w;let B=w.type||"default",R=(N==null?void 0:N[B])||E1[B];R===void 0&&(E==null||E("011",Mi.error011(B)),B="default",R=(N==null?void 0:N.default)||E1.default);const H=!!(w.focusable||t&&typeof w.focusable>"u"),I=typeof m<"u"&&(w.reconnectable||i&&typeof w.reconnectable>"u"),K=!!(w.selectable||a&&typeof w.selectable>"u"),L=re.useRef(null),[q,X]=re.useState(!1),[G,C]=re.useState(!1),j=zt(),{zIndex:M=w.zIndex,sourceX:U,sourceY:Y,targetX:Z,targetY:A,sourcePosition:z,targetPosition:V}=dt(re.useCallback(be=>{const Ee=be.nodeLookup.get(w.source),Ne=be.nodeLookup.get(w.target);if(!Ee||!Ne)return w1;const Le=vI({id:e,sourceNode:Ee,targetNode:Ne,sourceHandle:w.sourceHandle||null,targetHandle:w.targetHandle||null,connectionMode:be.connectionMode,onError:E}),$e=fI({selected:w.selected,zIndex:w.zIndex,sourceNode:Ee,targetNode:Ne,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...Le||w1,zIndex:$e}},[w.source,w.target,w.sourceHandle,w.targetHandle,w.selected,w.zIndex]),qt),D=re.useMemo(()=>w.markerStart?`url('#${Fp(w.markerStart,_)}')`:void 0,[w.markerStart,_]),F=re.useMemo(()=>w.markerEnd?`url('#${Fp(w.markerEnd,_)}')`:void 0,[w.markerEnd,_]);if(w.hidden||U===null||Y===null||Z===null||A===null)return null;const $=be=>{var $e;const{addSelectedEdges:Ee,unselectNodesAndEdges:Ne,multiSelectionActive:Le}=j.getState();K&&(j.setState({nodesSelectionActive:!1}),w.selected&&Le?(Ne({nodes:[],edges:[w]}),($e=L.current)==null||$e.blur()):Ee([e])),s&&s(be,w)},Q=o?be=>{o(be,{...w})}:void 0,J=c?be=>{c(be,{...w})}:void 0,W=d?be=>{d(be,{...w})}:void 0,ee=h?be=>{h(be,{...w})}:void 0,ce=f?be=>{f(be,{...w})}:void 0,fe=be=>{var Ee;if(!k&&fw.includes(be.key)&&K){const{unselectNodesAndEdges:Ne,addSelectedEdges:Le}=j.getState();be.key==="Escape"?((Ee=L.current)==null||Ee.blur(),Ne({edges:[w]})):Le([e])}};return b.jsx("svg",{style:{zIndex:M},children:b.jsxs("g",{className:ln(["react-flow__edge",`react-flow__edge-${B}`,w.className,S,{selected:w.selected,animated:w.animated,inactive:!K&&!s,updating:q,selectable:K}]),onClick:$,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:ee,onMouseLeave:ce,onKeyDown:H?fe:void 0,tabIndex:H?0:void 0,role:w.ariaRole??(H?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":w.ariaLabel===null?void 0:w.ariaLabel||`Edge from ${w.source} to ${w.target}`,"aria-describedby":H?`${Gw}-${_}`:void 0,ref:L,...w.domAttributes,children:[!G&&b.jsx(R,{id:e,source:w.source,target:w.target,type:w.type,selected:w.selected,animated:w.animated,selectable:K,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,sourceX:U,sourceY:Y,targetX:Z,targetY:A,sourcePosition:z,targetPosition:V,data:w.data,style:w.style,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerStart:D,markerEnd:F,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth}),I&&b.jsx(O8,{edge:w,isReconnectable:I,reconnectRadius:p,onReconnect:m,onReconnectStart:y,onReconnectEnd:x,sourceX:U,sourceY:Y,targetX:Z,targetY:A,sourcePosition:z,targetPosition:V,setUpdateHover:X,setReconnecting:C})]})})}var D8=re.memo(R8);const L8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function yN({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:i,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:h,onEdgeMouseLeave:f,onEdgeClick:p,reconnectRadius:m,onEdgeDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:E,elementsSelectable:k,onError:w}=dt(L8,qt),O=x8(t);return b.jsxs("div",{className:"react-flow__edges",children:[b.jsx(w8,{defaultColor:e,rfId:i}),O.map(B=>b.jsx(D8,{id:B,edgesFocusable:S,edgesReconnectable:E,elementsSelectable:k,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,onClick:p,reconnectRadius:m,onDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,rfId:i,onError:w,edgeTypes:a,disableKeyboardA11y:N},B))]})}yN.displayName="EdgeRenderer";const z8=re.memo(yN),k1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function j8({children:e}){const t=zt(),i=re.useRef(null),[a]=re.useState(()=>t.getState().transform);return Qw(()=>{let s=null;const o=()=>{const c=t.getState().transform;s&&c[0]===s[0]&&c[1]===s[1]&&c[2]===s[2]||(s=c,i.current&&(i.current.style.transform=k1(c)))};return o(),t.subscribe(o)},[t]),b.jsx("div",{ref:i,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:k1(a)},children:e})}function I8(e){const t=No(),i=re.useRef(!1);re.useEffect(()=>{!i.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),i.current=!0)},[e,t.viewportInitialized])}const B8=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function U8(e){const t=dt(B8),i=zt();return re.useEffect(()=>{e&&(t==null||t(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function H8(e){return e.connection.inProgress?{...e.connection,to:wo(e.connection.to,e.transform)}:{...e.connection}}function $8(e){return H8}function q8(e){const t=$8();return dt(t,qt)}const P8=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function F8({containerStyle:e,style:t,type:i,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:d,inProgress:h}=dt(P8,qt);return!(o&&s&&h)?null:b.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:b.jsx("g",{className:ln(["react-flow__connection",mw(d)]),children:b.jsx(vN,{style:t,type:i,CustomComponent:a,isValid:d})})})}const vN=({style:e,type:t=ia.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:d,fromPosition:h,to:f,toNode:p,toHandle:m,toPosition:y,pointer:x}=q8();if(!s)return;if(i)return b.jsx(i,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:o.x,fromY:o.y,toX:f.x,toY:f.y,fromPosition:h,toPosition:y,connectionStatus:mw(a),toNode:p,toHandle:m,pointer:x});let _="";const N={sourceX:o.x,sourceY:o.y,sourcePosition:h,targetX:f.x,targetY:f.y,targetPosition:y};switch(t){case ia.Bezier:[_]=Aw(N);break;case ia.SimpleBezier:[_]=lN(N);break;case ia.Step:[_]=Pp({...N,borderRadius:0});break;case ia.SmoothStep:[_]=Pp(N);break;default:[_]=Mw(N)}return b.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};vN.displayName="ConnectionLine";const G8={};function T1(e=G8){re.useRef(e),zt(),re.useEffect(()=>{},[e])}function V8(){zt(),re.useRef(!1),re.useEffect(()=>{},[])}function _N({nodeTypes:e,edgeTypes:t,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,onSelectionContextMenu:m,onSelectionStart:y,onSelectionEnd:x,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:E,selectionKeyCode:k,selectionOnDrag:w,selectionMode:O,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,deleteKeyCode:I,onlyRenderVisibleElements:K,elementsSelectable:L,defaultViewport:q,translateExtent:X,minZoom:G,maxZoom:C,preventScrolling:j,defaultMarkerColor:M,zoomOnScroll:U,zoomOnPinch:Y,panOnScroll:Z,panOnScrollSpeed:A,panOnScrollMode:z,zoomOnDoubleClick:V,panOnDrag:D,autoPanOnSelection:F,onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:ee,onPaneContextMenu:ce,paneClickDistance:fe,nodeClickDistance:be,onEdgeContextMenu:Ee,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:En,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:xe,onViewportChange:Oe,nodesDraggable:Fe}){return T1(e),T1(t),V8(),I8(i),U8(xe),b.jsx(o8,{onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:ce,onPaneScroll:ee,paneClickDistance:fe,deleteKeyCode:I,selectionKeyCode:k,selectionOnDrag:w,selectionMode:O,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,elementsSelectable:L,zoomOnScroll:U,zoomOnPinch:Y,zoomOnDoubleClick:V,panOnScroll:Z,panOnScrollSpeed:A,panOnScrollMode:z,panOnDrag:D,autoPanOnSelection:F,defaultViewport:q,translateExtent:X,minZoom:G,maxZoom:C,onSelectionContextMenu:m,preventScrolling:j,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:En,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!xe,children:b.jsxs(j8,{children:[b.jsx(z8,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:K,onEdgeContextMenu:Ee,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:M,noPanClassName:En,disableKeyboardA11y:ct,rfId:ue}),b.jsx(F8,{style:N,type:_,component:S,containerStyle:E}),b.jsx("div",{className:"react-flow__edgelabel-renderer"}),b.jsx(b8,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,nodeClickDistance:be,onlyRenderVisibleElements:K,noPanClassName:En,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),b.jsx("div",{className:"react-flow__viewport-portal"})]})})}_N.displayName="GraphView";const Y8=re.memo(_N),X8=_w(),A1=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h=.5,maxZoom:f=2,nodeOrigin:p,nodeExtent:m,zIndexMode:y="basic"}={})=>{const x=new Map,_=new Map,N=new Map,S=new Map,E=a??t??[],k=i??e??[],w=p??[0,0],O=m??lo;Dw(N,S,E);const{nodesInitialized:B}=Gp(k,x,_,{nodeOrigin:w,nodeExtent:O,zIndexMode:y});let R=[0,0,1];if(c&&s&&o){const H=_o(x,{filter:q=>!!((q.width||q.initialWidth)&&(q.height||q.initialHeight))}),{x:I,y:K,zoom:L}=Hm(H,s,o,h,f,(d==null?void 0:d.padding)??.1);R=[I,K,L]}return{rfId:"1",width:s??0,height:o??0,transform:R,nodes:k,nodesInitialized:B,nodeLookup:x,parentLookup:_,edges:E,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:h,maxZoom:f,translateExtent:lo,nodeExtent:O,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Bs.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:w,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:c??!1,fitViewOptions:d,fitViewResolver:null,connection:{...pw},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:X8,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:hw,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},K8=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:m,zIndexMode:y})=>c6((x,_)=>{async function N(){const{nodeLookup:S,panZoom:E,fitViewOptions:k,fitViewResolver:w,width:O,height:B,minZoom:R,maxZoom:H}=_();E&&(await aI({nodes:S,width:O,height:B,panZoom:E,minZoom:R,maxZoom:H},k),w==null||w.resolve(!0),x({fitViewResolver:null}))}return{...A1({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:m,defaultNodes:i,defaultEdges:a,zIndexMode:y}),setNodes:S=>{const{nodeLookup:E,parentLookup:k,nodeOrigin:w,elevateNodesOnSelect:O,fitViewQueued:B,zIndexMode:R,nodesSelectionActive:H}=_(),{nodesInitialized:I,hasSelectedNodes:K}=Gp(S,E,k,{nodeOrigin:w,nodeExtent:m,elevateNodesOnSelect:O,checkEquality:!0,zIndexMode:R}),L=H&&K;B&&I?(N(),x({nodes:S,nodesInitialized:I,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:L})):x({nodes:S,nodesInitialized:I,nodesSelectionActive:L})},setEdges:S=>{const{connectionLookup:E,edgeLookup:k}=_();Dw(E,k,S),x({edges:S})},setDefaultNodesAndEdges:(S,E)=>{if(S){const{setNodes:k}=_();k(S),x({hasDefaultNodes:!0})}if(E){const{setEdges:k}=_();k(E),x({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:E,nodeLookup:k,parentLookup:w,domNode:O,nodeOrigin:B,nodeExtent:R,debug:H,fitViewQueued:I,zIndexMode:K}=_(),{changes:L,updatedInternals:q}=AI(S,k,w,O,B,R,K);q&&(NI(k,w,{nodeOrigin:B,nodeExtent:R,zIndexMode:K}),I?(N(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),(L==null?void 0:L.length)>0&&(H&&console.log("React Flow: trigger node changes",L),E==null||E(L)))},updateNodePositions:(S,E=!1)=>{const k=[];let w=[];const{nodeLookup:O,triggerNodeChanges:B,connection:R,updateConnection:H,onNodesChangeMiddlewareMap:I}=_();for(const[K,L]of S){const q=O.get(K),X=!!(q!=null&&q.expandParent&&(q!=null&&q.parentId)&&(L!=null&&L.position)),G={id:K,type:"position",position:X?{x:Math.max(0,L.position.x),y:Math.max(0,L.position.y)}:L.position,dragging:E};if(q&&R.inProgress&&R.fromNode.id===q.id){const C=Ha(q,R.fromHandle,je.Left,!0);H({...R,from:C})}X&&q.parentId&&k.push({id:K,parentId:q.parentId,rect:{...L.internals.positionAbsolute,width:L.measured.width??0,height:L.measured.height??0}}),w.push(G)}if(k.length>0){const{parentLookup:K,nodeOrigin:L}=_(),q=Vm(k,O,K,L);w.push(...q)}for(const K of I.values())w=K(w);B(w)},triggerNodeChanges:S=>{const{onNodesChange:E,setNodes:k,nodes:w,hasDefaultNodes:O,debug:B}=_();if(S!=null&&S.length){if(O){const R=Xw(S,w);k(R)}B&&console.log("React Flow: trigger node changes",S),E==null||E(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:E,setEdges:k,edges:w,hasDefaultEdges:O,debug:B}=_();if(S!=null&&S.length){if(O){const R=Kw(S,w);k(R)}B&&console.log("React Flow: trigger edge changes",S),E==null||E(S)}},addSelectedNodes:S=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:w,triggerNodeChanges:O,triggerEdgeChanges:B}=_();if(E){const R=S.map(H=>Ma(H,!0));O(R);return}O(As(w,new Set([...S]),!0)),B(As(k))},addSelectedEdges:S=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:w,triggerNodeChanges:O,triggerEdgeChanges:B}=_();if(E){const R=S.map(H=>Ma(H,!0));B(R);return}B(As(k,new Set([...S]))),O(As(w,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:E}={})=>{const{edges:k,nodes:w,nodeLookup:O,triggerNodeChanges:B,triggerEdgeChanges:R}=_(),H=S||w,I=E||k,K=[];for(const q of H){if(!q.selected)continue;const X=O.get(q.id);X&&(X.selected=!1),K.push(Ma(q.id,!1))}const L=[];for(const q of I)q.selected&&L.push(Ma(q.id,!1));B(K),R(L)},setMinZoom:S=>{const{panZoom:E,maxZoom:k}=_();E==null||E.setScaleExtent([S,k]),x({minZoom:S})},setMaxZoom:S=>{const{panZoom:E,minZoom:k}=_();E==null||E.setScaleExtent([k,S]),x({maxZoom:S})},setTranslateExtent:S=>{var E;(E=_().panZoom)==null||E.setTranslateExtent(S),x({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:E,triggerNodeChanges:k,triggerEdgeChanges:w,elementsSelectable:O}=_();if(!O)return;const B=E.reduce((H,I)=>I.selected?[...H,Ma(I.id,!1)]:H,[]),R=S.reduce((H,I)=>I.selected?[...H,Ma(I.id,!1)]:H,[]);k(B),w(R)},setNodeExtent:S=>{const{nodes:E,nodeLookup:k,parentLookup:w,nodeOrigin:O,elevateNodesOnSelect:B,nodeExtent:R,zIndexMode:H}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(Gp(E,k,w,{nodeOrigin:O,nodeExtent:S,elevateNodesOnSelect:B,checkEquality:!1,zIndexMode:H}),x({nodeExtent:S}))},panBy:S=>{const{transform:E,width:k,height:w,panZoom:O,translateExtent:B}=_();return CI({delta:S,panZoom:O,transform:E,translateExtent:B,width:k,height:w})},setCenter:async(S,E,k)=>{const{width:w,height:O,maxZoom:B,panZoom:R}=_();if(!R)return!1;const H=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:B;return await R.setViewport({x:w/2-S*H,y:O/2-E*H,zoom:H},{duration:k==null?void 0:k.duration,ease:k==null?void 0:k.ease,interpolate:k==null?void 0:k.interpolate}),!0},cancelConnection:()=>{x({connection:{...pw}})},updateConnection:S=>{x({connection:S})},reset:()=>x({...A1()})}},Object.is);function Z8({initialNodes:e,initialEdges:t,defaultNodes:i,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:h,fitView:f,nodeOrigin:p,nodeExtent:m,zIndexMode:y,children:x}){const[_]=re.useState(()=>K8({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:f,minZoom:c,maxZoom:d,fitViewOptions:h,nodeOrigin:p,nodeExtent:m,zIndexMode:y}));return b.jsx(u6,{value:_,children:b.jsx(L6,{children:b.jsx(K6,{children:x})})})}function Q8({children:e,nodes:t,edges:i,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:d,fitViewOptions:h,minZoom:f,maxZoom:p,nodeOrigin:m,nodeExtent:y,zIndexMode:x}){return re.useContext(Uu)?b.jsx(b.Fragment,{children:e}):b.jsx(Z8,{initialNodes:t,initialEdges:i,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:d,initialFitViewOptions:h,initialMinZoom:f,initialMaxZoom:p,nodeOrigin:m,nodeExtent:y,zIndexMode:x,children:e})}const W8={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function J8({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:d,onEdgeClick:h,onInit:f,onMove:p,onMoveStart:m,onMoveEnd:y,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:E,onNodeMouseEnter:k,onNodeMouseMove:w,onNodeMouseLeave:O,onNodeContextMenu:B,onNodeDoubleClick:R,onNodeDragStart:H,onNodeDrag:I,onNodeDragStop:K,onNodesDelete:L,onEdgesDelete:q,onDelete:X,onSelectionChange:G,onSelectionDragStart:C,onSelectionDrag:j,onSelectionDragStop:M,onSelectionContextMenu:U,onSelectionStart:Y,onSelectionEnd:Z,onBeforeDelete:A,connectionMode:z,connectionLineType:V=ia.Bezier,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:$,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:ee=oo.Full,panActivationKeyCode:ce="Space",multiSelectionKeyCode:fe=uo()?"Meta":"Control",zoomActivationKeyCode:be=uo()?"Meta":"Control",snapToGrid:Ee,snapGrid:Ne,onlyRenderVisibleElements:Le=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=Vw,edgesFocusable:Vn,edgesReconnectable:En,elementsSelectable:ct=!0,defaultViewport:It=w6,minZoom:ue=.5,maxZoom:xe=2,translateExtent:Oe=lo,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:on="#b1b1b7",zoomOnScroll:wn=!0,zoomOnPinch:Kt=!0,panOnScroll:Ct=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=La.Free,zoomOnDoubleClick:zn=!0,panOnDrag:cn=!0,onPaneClick:yr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:pe=1,nodeClickDistance:we=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:gi,reconnectRadius:vr=10,onNodesChange:_r,onEdgesChange:ai,noDragClassName:Ut="nodrag",noWheelClassName:pn="nowheel",noPanClassName:bi="nopan",fitView:Er,fitViewOptions:la,connectOnClick:wr,attributionPosition:Pa,proOptions:Xi,defaultEdgeOptions:oa,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:xi=!1,disableKeyboardA11y:yi=!1,autoPanOnConnect:Di,autoPanOnNodeDrag:Ft,autoPanOnSelection:Fa=!0,autoPanSpeed:Ki,connectionRadius:vi,isValidConnection:ye,onError:ze,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:mn,viewport:Mn,onViewportChange:Nn,width:_t,height:On,colorMode:Ga="light",debug:Nr,onScroll:Li,ariaLabelConfig:Sr,zIndexMode:Va="basic",...Sn},ca){const _i=ft||"1",kr=T6(Ga),un=re.useCallback(ua=>{ua.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Li==null||Li(ua)},[Li]);return b.jsx("div",{"data-testid":"rf__wrapper",...Sn,onScroll:un,style:{...Qe,...W8},ref:ca,className:ln(["react-flow",s,kr]),id:ft,role:"application",children:b.jsxs(Q8,{nodes:e,edges:t,width:_t,height:On,fitView:Er,fitViewOptions:la,minZoom:ue,maxZoom:xe,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:Va,children:[b.jsx(k6,{nodes:e,edges:t,defaultNodes:i,defaultEdges:a,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:E,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,edgesFocusable:Vn,edgesReconnectable:En,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:xi,minZoom:ue,maxZoom:xe,nodeExtent:Ze,onNodesChange:_r,onEdgesChange:ai,snapToGrid:Ee,snapGrid:Ne,connectionMode:z,translateExtent:Oe,connectOnClick:wr,defaultEdgeOptions:oa,fitView:Er,fitViewOptions:la,onNodesDelete:L,onEdgesDelete:q,onDelete:X,onNodeDragStart:H,onNodeDrag:I,onNodeDragStop:K,onSelectionDrag:j,onSelectionDragStart:C,onSelectionDragStop:M,onMove:p,onMoveStart:m,onMoveEnd:y,noPanClassName:bi,nodeOrigin:Xt,rfId:_i,autoPanOnConnect:Di,autoPanOnNodeDrag:Ft,autoPanSpeed:Ki,onError:ze,connectionRadius:vi,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:mn,onBeforeDelete:A,debug:Nr,ariaLabelConfig:Sr,zIndexMode:Va}),b.jsx(Y8,{onInit:f,onNodeClick:d,onEdgeClick:h,onNodeMouseEnter:k,onNodeMouseMove:w,onNodeMouseLeave:O,onNodeContextMenu:B,onNodeDoubleClick:R,nodeTypes:o,edgeTypes:c,connectionLineType:V,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:$,selectionKeyCode:J,selectionOnDrag:W,selectionMode:ee,deleteKeyCode:Q,multiSelectionKeyCode:fe,panActivationKeyCode:ce,zoomActivationKeyCode:be,onlyRenderVisibleElements:Le,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:xe,preventScrolling:Fe,zoomOnScroll:wn,zoomOnPinch:Kt,zoomOnDoubleClick:zn,panOnScroll:Ct,panOnScrollSpeed:Wt,panOnScrollMode:ut,panOnDrag:cn,autoPanOnSelection:Fa,onPaneClick:yr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:pe,nodeClickDistance:we,onSelectionContextMenu:U,onSelectionStart:Y,onSelectionEnd:Z,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:gi,reconnectRadius:vr,defaultMarkerColor:on,noDragClassName:Ut,noWheelClassName:pn,noPanClassName:bi,rfId:_i,disableKeyboardA11y:yi,nodeExtent:Ze,viewport:Mn,onViewportChange:Nn,nodesDraggable:st}),b.jsx(E6,{onSelectionChange:G}),Pe,b.jsx(b6,{proOptions:Xi,position:Pa}),b.jsx(g6,{rfId:_i,disableKeyboardA11y:yi})]})})}var eB=Zw(J8);function tB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(o=>Xw(s,o)),[]);return[t,i,a]}function nB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(o=>Kw(s,o)),[]);return[t,i,a]}function iB({dimensions:e,lineWidth:t,variant:i,className:a}){return b.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:ln(["react-flow__background-pattern",i,a])})}function rB({radius:e,className:t}){return b.jsx("circle",{cx:e,cy:e,r:e,className:ln(["react-flow__background-pattern","dots",t])})}var ra;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ra||(ra={}));const aB={[ra.Dots]:1,[ra.Lines]:1,[ra.Cross]:6},sB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function EN({id:e,variant:t=ra.Dots,gap:i=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:d,style:h,className:f,patternClassName:p}){const m=re.useRef(null),{transform:y,patternId:x}=dt(sB,qt),_=a||aB[t],N=t===ra.Dots,S=t===ra.Cross,E=Array.isArray(i)?i:[i,i],k=[E[0]*y[2]||1,E[1]*y[2]||1],w=_*y[2],O=Array.isArray(o)?o:[o,o],B=S?[w,w]:k,R=[O[0]*y[2]||1+B[0]/2,O[1]*y[2]||1+B[1]/2],H=`${x}${e||""}`;return b.jsxs("svg",{className:ln(["react-flow__background",f]),style:{...h,...$u,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:m,"data-testid":"rf__background",children:[b.jsx("pattern",{id:H,x:y[0]%k[0],y:y[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:N?b.jsx(rB,{radius:w/2,className:p}):b.jsx(iB,{dimensions:B,lineWidth:s,variant:t,className:p})}),b.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${H})`})]})}EN.displayName="Background";const lB=re.memo(EN);function oB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:b.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function cB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:b.jsx("path",{d:"M0 0h32v4.2H0z"})})}function uB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:b.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 dB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.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 fB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.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 Qc({children:e,className:t,...i}){return b.jsx("button",{type:"button",className:ln(["react-flow__controls-button",t]),...i,children:e})}const hB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function wN({style:e,showZoom:t=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:d,onInteractiveChange:h,className:f,children:p,position:m="bottom-left",orientation:y="vertical","aria-label":x}){const _=zt(),{isInteractive:N,minZoomReached:S,maxZoomReached:E,ariaLabelConfig:k}=dt(hB,qt),{zoomIn:w,zoomOut:O,fitView:B}=No(),R=()=>{w(),o==null||o()},H=()=>{O(),c==null||c()},I=()=>{B(s),d==null||d()},K=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),h==null||h(!N)},L=y==="horizontal"?"horizontal":"vertical";return b.jsxs(Hu,{className:ln(["react-flow__controls",L,f]),position:m,style:e,"data-testid":"rf__controls","aria-label":x??k["controls.ariaLabel"],children:[t&&b.jsxs(b.Fragment,{children:[b.jsx(Qc,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:E,children:b.jsx(oB,{})}),b.jsx(Qc,{onClick:H,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:S,children:b.jsx(cB,{})})]}),i&&b.jsx(Qc,{className:"react-flow__controls-fitview",onClick:I,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:b.jsx(uB,{})}),a&&b.jsx(Qc,{className:"react-flow__controls-interactive",onClick:K,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:N?b.jsx(fB,{}):b.jsx(dB,{})}),p]})}wN.displayName="Controls";const pB=re.memo(wN);function mB({id:e,x:t,y:i,width:a,height:s,style:o,color:c,strokeColor:d,strokeWidth:h,className:f,borderRadius:p,shapeRendering:m,selected:y,onClick:x}){const{background:_,backgroundColor:N}=o||{},S=c||_||N;return b.jsx("rect",{className:ln(["react-flow__minimap-node",{selected:y},f]),x:t,y:i,rx:p,ry:p,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:h},shapeRendering:m,onClick:x?E=>x(E,e):void 0})}const gB=re.memo(mB),bB=e=>e.nodes.map(t=>t.id),pp=e=>e instanceof Function?e:()=>e;function xB({nodeStrokeColor:e,nodeColor:t,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=gB,onClick:c}){const d=dt(bB,qt),h=pp(t),f=pp(e),p=pp(i),m=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return b.jsx(b.Fragment,{children:d.map(y=>b.jsx(vB,{id:y,nodeColorFunc:h,nodeStrokeColorFunc:f,nodeClassNameFunc:p,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:m},y))})}function yB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:d,onClick:h}){const{node:f,x:p,y:m,width:y,height:x}=dt(_=>{const N=_.nodeLookup.get(e);if(!N)return{node:void 0,x:0,y:0,width:0,height:0};const S=N.internals.userNode,{x:E,y:k}=N.internals.positionAbsolute,{width:w,height:O}=Yi(S);return{node:S,x:E,y:k,width:w,height:O}},qt);return!f||f.hidden||!Ew(f)?null:b.jsx(d,{x:p,y:m,width:y,height:x,style:f.style,selected:!!f.selected,className:a(f),color:t(f),borderRadius:s,strokeColor:i(f),strokeWidth:o,shapeRendering:c,onClick:h,id:f.id})}const vB=re.memo(yB);var _B=re.memo(xB);const EB=200,wB=150,NB=e=>!e.hidden,SB=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?yw(_o(e.nodeLookup,{filter:NB}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},C1=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,kB=(e,t)=>C1(e.viewBB,t.viewBB)&&C1(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,TB="react-flow__minimap-desc";function NN({style:e,className:t,nodeStrokeColor:i,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:h,maskColor:f,maskStrokeColor:p,maskStrokeWidth:m,position:y="bottom-right",onClick:x,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:E,inversePan:k,zoomStep:w=1,offsetScale:O=5}){const B=zt(),R=re.useRef(null),{boundingRect:H,viewBB:I,rfId:K,panZoom:L,translateExtent:q,flowWidth:X,flowHeight:G,ariaLabelConfig:C}=dt(SB,kB),j=(e==null?void 0:e.width)??EB,M=(e==null?void 0:e.height)??wB,U=H.width/j,Y=H.height/M,Z=Math.max(U,Y),A=Z*j,z=Z*M,V=O*Z,D=H.x-(A-H.width)/2-V,F=H.y-(z-H.height)/2-V,$=A+V*2,Q=z+V*2,J=`${TB}-${K}`,W=re.useRef(0),ee=re.useRef();W.current=Z,re.useEffect(()=>{if(R.current&&L)return ee.current=BI({domNode:R.current,panZoom:L,getTransform:()=>B.getState().transform,getViewScale:()=>W.current}),()=>{var Ee;(Ee=ee.current)==null||Ee.destroy()}},[L]),re.useEffect(()=>{var Ee;(Ee=ee.current)==null||Ee.update({translateExtent:q,width:X,height:G,inversePan:k,pannable:N,zoomStep:w,zoomable:S})},[N,S,k,w,q,X,G]);const ce=x?Ee=>{var $e;const[Ne,Le]=(($e=ee.current)==null?void 0:$e.pointer(Ee))||[0,0];x(Ee,{x:Ne,y:Le})}:void 0,fe=_?re.useCallback((Ee,Ne)=>{const Le=B.getState().nodeLookup.get(Ne).internals.userNode;_(Ee,Le)},[]):void 0,be=E??C["minimap.ariaLabel"];return b.jsx(Hu,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof m=="number"?m*Z:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:ln(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:b.jsxs("svg",{width:j,height:M,viewBox:`${D} ${F} ${$} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:ce,children:[be&&b.jsx("title",{id:J,children:be}),b.jsx(_B,{onClick:fe,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),b.jsx("path",{className:"react-flow__minimap-mask",d:`M${D-V},${F-V}h${$+V*2}v${Q+V*2}h${-$-V*2}z + M${I.x},${I.y}h${I.width}v${I.height}h${-I.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}NN.displayName="MiniMap";const AB=re.memo(NN),CB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,MB={[$s.Line]:"right",[$s.Handle]:"bottom-right"};function OB({nodeId:e,position:t,variant:i=$s.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:d=10,minHeight:h=10,maxWidth:f=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:m=!1,resizeDirection:y,autoScale:x=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:E}){const k=tN(),w=typeof e=="string"?e:k,O=zt(),B=re.useRef(null),R=i===$s.Handle,H=dt(re.useCallback(CB(R&&x),[R,x]),qt),I=re.useRef(null),K=t??MB[i];re.useEffect(()=>{if(!(!B.current||!w))return I.current||(I.current=QI({domNode:B.current,nodeId:w,getStoreItems:()=>{const{nodeLookup:q,transform:X,snapGrid:G,snapToGrid:C,nodeOrigin:j,domNode:M}=O.getState();return{nodeLookup:q,transform:X,snapGrid:G,snapToGrid:C,nodeOrigin:j,paneDomNode:M}},onChange:(q,X)=>{const{triggerNodeChanges:G,nodeLookup:C,parentLookup:j,nodeOrigin:M}=O.getState(),U=[],Y={x:q.x,y:q.y},Z=C.get(w);if(Z&&Z.expandParent&&Z.parentId){const A=Z.origin??M,z=q.width??Z.measured.width??0,V=q.height??Z.measured.height??0,D={id:Z.id,parentId:Z.parentId,rect:{width:z,height:V,...ww({x:q.x??Z.position.x,y:q.y??Z.position.y},{width:z,height:V},Z.parentId,C,A)}},F=Vm([D],C,j,M);U.push(...F),Y.x=q.x?Math.max(A[0]*z,q.x):void 0,Y.y=q.y?Math.max(A[1]*V,q.y):void 0}if(Y.x!==void 0&&Y.y!==void 0){const A={id:w,type:"position",position:{...Y}};U.push(A)}if(q.width!==void 0&&q.height!==void 0){const z={id:w,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:q.width,height:q.height}};U.push(z)}for(const A of X){const z={...A,type:"position"};U.push(z)}G(U)},onEnd:({width:q,height:X})=>{const G={id:w,type:"dimensions",resizing:!1,dimensions:{width:q,height:X}};O.getState().triggerNodeChanges([G])}})),I.current.update({controlPosition:K,boundaries:{minWidth:d,minHeight:h,maxWidth:f,maxHeight:p},keepAspectRatio:m,resizeDirection:y,onResizeStart:N,onResize:S,onResizeEnd:E,shouldResize:_}),()=>{var q;(q=I.current)==null||q.destroy()}},[K,d,h,f,p,m,N,S,E,_]);const L=K.split("-");return b.jsx("div",{className:ln(["react-flow__resize-control","nodrag",...L,i,a]),ref:B,style:{...s,scale:H,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:o})}re.memo(OB);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Oi=vt((e,t)=>{var i=Object.defineProperty,a=(G,C,j)=>C in G?i(G,C,{enumerable:!0,configurable:!0,writable:!0,value:j}):G[C]=j,s=(G,C)=>()=>(C||G((C={exports:{}}).exports,C),C.exports),o=(G,C,j)=>a(G,typeof C!="symbol"?C+"":C,j),c=s((G,C)=>{var j="\0",M="\0",U="",Y=class{constructor(F){o(this,"_isDirected",!0),o(this,"_isMultigraph",!1),o(this,"_isCompound",!1),o(this,"_label"),o(this,"_defaultNodeLabelFn",()=>{}),o(this,"_defaultEdgeLabelFn",()=>{}),o(this,"_nodes",{}),o(this,"_in",{}),o(this,"_preds",{}),o(this,"_out",{}),o(this,"_sucs",{}),o(this,"_edgeObjs",{}),o(this,"_edgeLabels",{}),o(this,"_nodeCount",0),o(this,"_edgeCount",0),o(this,"_parent"),o(this,"_children"),F&&(this._isDirected=Object.hasOwn(F,"directed")?F.directed:!0,this._isMultigraph=Object.hasOwn(F,"multigraph")?F.multigraph:!1,this._isCompound=Object.hasOwn(F,"compound")?F.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[M]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(F){return this._label=F,this}graph(){return this._label}setDefaultNodeLabel(F){return this._defaultNodeLabelFn=F,typeof F!="function"&&(this._defaultNodeLabelFn=()=>F),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var F=this;return this.nodes().filter($=>Object.keys(F._in[$]).length===0)}sinks(){var F=this;return this.nodes().filter($=>Object.keys(F._out[$]).length===0)}setNodes(F,$){var Q=arguments,J=this;return F.forEach(function(W){Q.length>1?J.setNode(W,$):J.setNode(W)}),this}setNode(F,$){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=$),this):(this._nodes[F]=arguments.length>1?$:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=M,this._children[F]={},this._children[M][F]=!0),this._in[F]={},this._preds[F]={},this._out[F]={},this._sucs[F]={},++this._nodeCount,this)}node(F){return this._nodes[F]}hasNode(F){return Object.hasOwn(this._nodes,F)}removeNode(F){var $=this;if(Object.hasOwn(this._nodes,F)){var Q=J=>$.removeEdge($._edgeObjs[J]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(J){$.setParent(J)}),delete this._children[F]),Object.keys(this._in[F]).forEach(Q),delete this._in[F],delete this._preds[F],Object.keys(this._out[F]).forEach(Q),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this}setParent(F,$){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($===void 0)$=M;else{$+="";for(var Q=$;Q!==void 0;Q=this.parent(Q))if(Q===F)throw new Error("Setting "+$+" as parent of "+F+" would create a cycle");this.setNode($)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=$,this._children[$][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var $=this._parent[F];if($!==M)return $}}children(F=M){if(this._isCompound){var $=this._children[F];if($)return Object.keys($)}else{if(F===M)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var $=this._preds[F];if($)return Object.keys($)}successors(F){var $=this._sucs[F];if($)return Object.keys($)}neighbors(F){var $=this.predecessors(F);if($){let J=new Set($);for(var Q of this.successors(F))J.add(Q);return Array.from(J.values())}}isLeaf(F){var $;return this.isDirected()?$=this.successors(F):$=this.neighbors(F),$.length===0}filterNodes(F){var $=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});$.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([ee,ce]){F(ee)&&$.setNode(ee,ce)}),Object.values(this._edgeObjs).forEach(function(ee){$.hasNode(ee.v)&&$.hasNode(ee.w)&&$.setEdge(ee,Q.edge(ee))});var J={};function W(ee){var ce=Q.parent(ee);return ce===void 0||$.hasNode(ce)?(J[ee]=ce,ce):ce in J?J[ce]:W(ce)}return this._isCompound&&$.nodes().forEach(ee=>$.setParent(ee,W(ee))),$}setDefaultEdgeLabel(F){return this._defaultEdgeLabelFn=F,typeof F!="function"&&(this._defaultEdgeLabelFn=()=>F),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(F,$){var Q=this,J=arguments;return F.reduce(function(W,ee){return J.length>1?Q.setEdge(W,ee,$):Q.setEdge(W,ee),ee}),this}setEdge(){var F,$,Q,J,W=!1,ee=arguments[0];typeof ee=="object"&&ee!==null&&"v"in ee?(F=ee.v,$=ee.w,Q=ee.name,arguments.length===2&&(J=arguments[1],W=!0)):(F=ee,$=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),F=""+F,$=""+$,Q!==void 0&&(Q=""+Q);var ce=z(this._isDirected,F,$,Q);if(Object.hasOwn(this._edgeLabels,ce))return W&&(this._edgeLabels[ce]=J),this;if(Q!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode($),this._edgeLabels[ce]=W?J:this._defaultEdgeLabelFn(F,$,Q);var fe=V(this._isDirected,F,$,Q);return F=fe.v,$=fe.w,Object.freeze(fe),this._edgeObjs[ce]=fe,Z(this._preds[$],F),Z(this._sucs[F],$),this._in[$][ce]=fe,this._out[F][ce]=fe,this._edgeCount++,this}edge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,$,Q);return this._edgeLabels[J]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,$,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,$,Q),W=this._edgeObjs[J];return W&&(F=W.v,$=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],A(this._preds[$],F),A(this._sucs[F],$),delete this._in[$][J],delete this._out[F][J],this._edgeCount--),this}inEdges(F,$){return this.isDirected()?this.filterEdges(this._in[F],F,$):this.nodeEdges(F,$)}outEdges(F,$){return this.isDirected()?this.filterEdges(this._out[F],F,$):this.nodeEdges(F,$)}nodeEdges(F,$){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,$)}filterEdges(F,$,Q){if(F){var J=Object.values(F);return Q?J.filter(function(W){return W.v===$&&W.w===Q||W.v===Q&&W.w===$}):J}}};function Z(F,$){F[$]?F[$]++:F[$]=1}function A(F,$){--F[$]||delete F[$]}function z(F,$,Q,J){var W=""+$,ee=""+Q;if(!F&&W>ee){var ce=W;W=ee,ee=ce}return W+U+ee+U+(J===void 0?j:J)}function V(F,$,Q,J){var W=""+$,ee=""+Q;if(!F&&W>ee){var ce=W;W=ee,ee=ce}var fe={v:W,w:ee};return J&&(fe.name=J),fe}function D(F,$){return z(F,$.v,$.w,$.name)}C.exports=Y}),d=s((G,C)=>{C.exports="3.0.2"}),h=s((G,C)=>{C.exports={Graph:c(),version:d()}}),f=s((G,C)=>{var j=c();C.exports={write:M,read:Z};function M(A){var z={options:{directed:A.isDirected(),multigraph:A.isMultigraph(),compound:A.isCompound()},nodes:U(A),edges:Y(A)};return A.graph()!==void 0&&(z.value=structuredClone(A.graph())),z}function U(A){return A.nodes().map(function(z){var V=A.node(z),D=A.parent(z),F={v:z};return V!==void 0&&(F.value=V),D!==void 0&&(F.parent=D),F})}function Y(A){return A.edges().map(function(z){var V=A.edge(z),D={v:z.v,w:z.w};return z.name!==void 0&&(D.name=z.name),V!==void 0&&(D.value=V),D})}function Z(A){var z=new j(A.options).setGraph(A.value);return A.nodes.forEach(function(V){z.setNode(V.v,V.value),V.parent&&z.setParent(V.v,V.parent)}),A.edges.forEach(function(V){z.setEdge({v:V.v,w:V.w,name:V.name},V.value)}),z}}),p=s((G,C)=>{C.exports=M;var j=()=>1;function M(Y,Z,A,z){return U(Y,String(Z),A||j,z||function(V){return Y.outEdges(V)})}function U(Y,Z,A,z){var V={},D=!0,F=0,$=Y.nodes(),Q=function(ce){var fe=A(ce);V[ce.v].distance+fe{C.exports=j;function j(M){var U={},Y=[],Z;function A(z){Object.hasOwn(U,z)||(U[z]=!0,Z.push(z),M.successors(z).forEach(A),M.predecessors(z).forEach(A))}return M.nodes().forEach(function(z){Z=[],A(z),Z.length&&Y.push(Z)}),Y}}),y=s((G,C)=>{var j=class{constructor(){o(this,"_arr",[]),o(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(M){return M.key})}has(M){return Object.hasOwn(this._keyIndices,M)}priority(M){var U=this._keyIndices[M];if(U!==void 0)return this._arr[U].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(M,U){var Y=this._keyIndices;if(M=String(M),!Object.hasOwn(Y,M)){var Z=this._arr,A=Z.length;return Y[M]=A,Z.push({key:M,priority:U}),this._decrease(A),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var M=this._arr.pop();return delete this._keyIndices[M.key],this._heapify(0),M.key}decrease(M,U){var Y=this._keyIndices[M];if(U>this._arr[Y].priority)throw new Error("New priority is greater than current priority. Key: "+M+" Old: "+this._arr[Y].priority+" New: "+U);this._arr[Y].priority=U,this._decrease(Y)}_heapify(M){var U=this._arr,Y=2*M,Z=Y+1,A=M;Y>1,!(U[Z].priority{var j=y();C.exports=U;var M=()=>1;function U(Z,A,z,V){var D=function(F){return Z.outEdges(F)};return Y(Z,String(A),z||M,V||D)}function Y(Z,A,z,V){var D={},F=new j,$,Q,J=function(W){var ee=W.v!==$?W.v:W.w,ce=D[ee],fe=z(W),be=Q.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);be0&&($=F.removeMin(),Q=D[$],Q.distance!==Number.POSITIVE_INFINITY);)V($).forEach(J);return D}}),_=s((G,C)=>{var j=x();C.exports=M;function M(U,Y,Z){return U.nodes().reduce(function(A,z){return A[z]=j(U,z,Y,Z),A},{})}}),N=s((G,C)=>{C.exports=j;function j(U,Y,Z){if(U[Y].predecessor!==void 0)throw new Error("Invalid source vertex");if(U[Z].predecessor===void 0&&Z!==Y)throw new Error("Invalid destination vertex");return{weight:U[Z].distance,path:M(U,Y,Z)}}function M(U,Y,Z){for(var A=[],z=Z;z!==Y;)A.push(z),z=U[z].predecessor;return A.push(Y),A.reverse()}}),S=s((G,C)=>{C.exports=j;function j(M){var U=0,Y=[],Z={},A=[];function z(V){var D=Z[V]={onStack:!0,lowlink:U,index:U++};if(Y.push(V),M.successors(V).forEach(function(Q){Object.hasOwn(Z,Q)?Z[Q].onStack&&(D.lowlink=Math.min(D.lowlink,Z[Q].index)):(z(Q),D.lowlink=Math.min(D.lowlink,Z[Q].lowlink))}),D.lowlink===D.index){var F=[],$;do $=Y.pop(),Z[$].onStack=!1,F.push($);while(V!==$);A.push(F)}}return M.nodes().forEach(function(V){Object.hasOwn(Z,V)||z(V)}),A}}),E=s((G,C)=>{var j=S();C.exports=M;function M(U){return j(U).filter(function(Y){return Y.length>1||Y.length===1&&U.hasEdge(Y[0],Y[0])})}}),k=s((G,C)=>{C.exports=M;var j=()=>1;function M(Y,Z,A){return U(Y,Z||j,A||function(z){return Y.outEdges(z)})}function U(Y,Z,A){var z={},V=Y.nodes();return V.forEach(function(D){z[D]={},z[D][D]={distance:0},V.forEach(function(F){D!==F&&(z[D][F]={distance:Number.POSITIVE_INFINITY})}),A(D).forEach(function(F){var $=F.v===D?F.w:F.v,Q=Z(F);z[D][$]={distance:Q,predecessor:D}})}),V.forEach(function(D){var F=z[D];V.forEach(function($){var Q=z[$];V.forEach(function(J){var W=Q[D],ee=F[J],ce=Q[J],fe=W.distance+ee.distance;fe{function j(U){var Y={},Z={},A=[];function z(V){if(Object.hasOwn(Z,V))throw new M;Object.hasOwn(Y,V)||(Z[V]=!0,Y[V]=!0,U.predecessors(V).forEach(z),delete Z[V],A.push(V))}if(U.sinks().forEach(z),Object.keys(Y).length!==U.nodeCount())throw new M;return A}var M=class extends Error{constructor(){super(...arguments)}};C.exports=j,j.CycleException=M}),O=s((G,C)=>{var j=w();C.exports=M;function M(U){try{j(U)}catch(Y){if(Y instanceof j.CycleException)return!1;throw Y}return!0}}),B=s((G,C)=>{C.exports=j;function j(U,Y,Z,A,z){Array.isArray(Y)||(Y=[Y]);var V=(U.isDirected()?U.successors:U.neighbors).bind(U),D={};return Y.forEach(function(F){if(!U.hasNode(F))throw new Error("Graph does not have node: "+F);z=M(U,F,Z==="post",D,V,A,z)}),z}function M(U,Y,Z,A,z,V,D){return Object.hasOwn(A,Y)||(A[Y]=!0,Z||(D=V(D,Y)),z(Y).forEach(function(F){D=M(U,F,Z,A,z,V,D)}),Z&&(D=V(D,Y))),D}}),R=s((G,C)=>{var j=B();C.exports=M;function M(U,Y,Z){return j(U,Y,Z,function(A,z){return A.push(z),A},[])}}),H=s((G,C)=>{var j=R();C.exports=M;function M(U,Y){return j(U,Y,"post")}}),I=s((G,C)=>{var j=R();C.exports=M;function M(U,Y){return j(U,Y,"pre")}}),K=s((G,C)=>{var j=c(),M=y();C.exports=U;function U(Y,Z){var A=new j,z={},V=new M,D;function F(Q){var J=Q.v===D?Q.w:Q.v,W=V.priority(J);if(W!==void 0){var ee=Z(Q);ee0;){if(D=V.removeMin(),Object.hasOwn(z,D))A.setEdge(D,z[D]);else{if($)throw new Error("Input graph is not connected: "+Y);$=!0}Y.nodeEdges(D).forEach(F)}return A}}),L=s((G,C)=>{var j=x(),M=p();C.exports=U;function U(Z,A,z,V){return Y(Z,A,z,V||function(D){return Z.outEdges(D)})}function Y(Z,A,z,V){if(z===void 0)return j(Z,A,z,V);for(var D=!1,F=Z.nodes(),$=0;${C.exports={bellmanFord:p(),components:m(),dijkstra:x(),dijkstraAll:_(),extractPath:N(),findCycles:E(),floydWarshall:k(),isAcyclic:O(),postorder:H(),preorder:I(),prim:K(),shortestPaths:L(),reduce:B(),tarjan:S(),topsort:w()}}),X=h();t.exports={Graph:X.Graph,json:f(),alg:q(),version:X.version}}),RB=vt((e,t)=>{var i=class{constructor(){let o={};o._next=o._prev=o,this._sentinel=o}dequeue(){let o=this._sentinel,c=o._prev;if(c!==o)return a(c),c}enqueue(o){let c=this._sentinel;o._prev&&o._next&&a(o),o._next=c._next,c._next._prev=o,c._next=o,o._prev=c}toString(){let o=[],c=this._sentinel,d=c._prev;for(;d!==c;)o.push(JSON.stringify(d,s)),d=d._prev;return"["+o.join(", ")+"]"}};function a(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function s(o,c){if(o!=="_next"&&o!=="_prev")return c}t.exports=i}),DB=vt((e,t)=>{var i=Oi().Graph,a=RB();t.exports=o;var s=()=>1;function o(m,y){if(m.nodeCount()<=1)return[];let x=h(m,y||s);return c(x.graph,x.buckets,x.zeroIdx).flatMap(_=>m.outEdges(_.v,_.w))}function c(m,y,x){let _=[],N=y[y.length-1],S=y[0],E;for(;m.nodeCount();){for(;E=S.dequeue();)d(m,y,x,E);for(;E=N.dequeue();)d(m,y,x,E);if(m.nodeCount()){for(let k=y.length-2;k>0;--k)if(E=y[k].dequeue(),E){_=_.concat(d(m,y,x,E,!0));break}}}return _}function d(m,y,x,_,N){let S=N?[]:void 0;return m.inEdges(_.v).forEach(E=>{let k=m.edge(E),w=m.node(E.v);N&&S.push({v:E.v,w:E.w}),w.out-=k,f(y,x,w)}),m.outEdges(_.v).forEach(E=>{let k=m.edge(E),w=E.w,O=m.node(w);O.in-=k,f(y,x,O)}),m.removeNode(_.v),S}function h(m,y){let x=new i,_=0,N=0;m.nodes().forEach(k=>{x.setNode(k,{v:k,in:0,out:0})}),m.edges().forEach(k=>{let w=x.edge(k.v,k.w)||0,O=y(k),B=w+O;x.setEdge(k.v,k.w,B),N=Math.max(N,x.node(k.v).out+=O),_=Math.max(_,x.node(k.w).in+=O)});let S=p(N+_+3).map(()=>new a),E=_+1;return x.nodes().forEach(k=>{f(S,E,x.node(k))}),{graph:x,buckets:S,zeroIdx:E}}function f(m,y,x){x.out?x.in?m[x.out-x.in+y].enqueue(x):m[m.length-1].enqueue(x):m[0].enqueue(x)}function p(m){let y=[];for(let x=0;x{var i=Oi().Graph;t.exports={addBorderNode:y,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:o,buildLayerMatrix:f,intersectRect:h,mapValues:I,maxRank:S,normalizeRanks:p,notime:w,partition:E,pick:H,predecessorWeights:d,range:R,removeEmptyRanks:m,simplify:s,successorWeights:c,time:k,uniqueId:B,zipObject:K};function a(L,q,X,G){for(var C=G;L.hasNode(C);)C=B(G);return X.dummy=q,L.setNode(C,X),C}function s(L){let q=new i().setGraph(L.graph());return L.nodes().forEach(X=>q.setNode(X,L.node(X))),L.edges().forEach(X=>{let G=q.edge(X.v,X.w)||{weight:0,minlen:1},C=L.edge(X);q.setEdge(X.v,X.w,{weight:G.weight+C.weight,minlen:Math.max(G.minlen,C.minlen)})}),q}function o(L){let q=new i({multigraph:L.isMultigraph()}).setGraph(L.graph());return L.nodes().forEach(X=>{L.children(X).length||q.setNode(X,L.node(X))}),L.edges().forEach(X=>{q.setEdge(X,L.edge(X))}),q}function c(L){let q=L.nodes().map(X=>{let G={};return L.outEdges(X).forEach(C=>{G[C.w]=(G[C.w]||0)+L.edge(C).weight}),G});return K(L.nodes(),q)}function d(L){let q=L.nodes().map(X=>{let G={};return L.inEdges(X).forEach(C=>{G[C.v]=(G[C.v]||0)+L.edge(C).weight}),G});return K(L.nodes(),q)}function h(L,q){let X=L.x,G=L.y,C=q.x-X,j=q.y-G,M=L.width/2,U=L.height/2;if(!C&&!j)throw new Error("Not possible to find intersection inside of the rectangle");let Y,Z;return Math.abs(j)*M>Math.abs(C)*U?(j<0&&(U=-U),Y=U*C/j,Z=U):(C<0&&(M=-M),Y=M,Z=M*j/C),{x:X+Y,y:G+Z}}function f(L){let q=R(S(L)+1).map(()=>[]);return L.nodes().forEach(X=>{let G=L.node(X),C=G.rank;C!==void 0&&(q[C][G.order]=X)}),q}function p(L){let q=L.nodes().map(G=>{let C=L.node(G).rank;return C===void 0?Number.MAX_VALUE:C}),X=N(Math.min,q);L.nodes().forEach(G=>{let C=L.node(G);Object.hasOwn(C,"rank")&&(C.rank-=X)})}function m(L){let q=L.nodes().map(M=>L.node(M).rank).filter(M=>M!==void 0),X=N(Math.min,q),G=[];L.nodes().forEach(M=>{let U=L.node(M).rank-X;G[U]||(G[U]=[]),G[U].push(M)});let C=0,j=L.graph().nodeRankFactor;Array.from(G).forEach((M,U)=>{M===void 0&&U%j!==0?--C:M!==void 0&&C&&M.forEach(Y=>L.node(Y).rank+=C)})}function y(L,q,X,G){let C={width:0,height:0};return arguments.length>=4&&(C.rank=X,C.order=G),a(L,"border",C,q)}function x(L,q=_){let X=[];for(let G=0;G_){let X=x(q);return L.apply(null,X.map(G=>L.apply(null,G)))}else return L.apply(null,q)}function S(L){let q=L.nodes().map(X=>{let G=L.node(X).rank;return G===void 0?Number.MIN_VALUE:G});return N(Math.max,q)}function E(L,q){let X={lhs:[],rhs:[]};return L.forEach(G=>{q(G)?X.lhs.push(G):X.rhs.push(G)}),X}function k(L,q){let X=Date.now();try{return q()}finally{console.log(L+" time: "+(Date.now()-X)+"ms")}}function w(L,q){return q()}var O=0;function B(L){var q=++O;return L+(""+q)}function R(L,q,X=1){q==null&&(q=L,L=0);let G=j=>jqG[q]),Object.entries(L).reduce((G,[C,j])=>(G[C]=X(j,C),G),{})}function K(L,q){return L.reduce((X,G,C)=>(X[G]=q[C],X),{})}}),LB=vt((e,t)=>{var i=DB(),a=sn().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?i(d,h(d)):o(d)).forEach(f=>{let p=d.edge(f);d.removeEdge(f),p.forwardName=f.name,p.reversed=!0,d.setEdge(f.w,f.v,p,a("rev"))});function h(f){return p=>f.edge(p).weight}}function o(d){let h=[],f={},p={};function m(y){Object.hasOwn(p,y)||(p[y]=!0,f[y]=!0,d.outEdges(y).forEach(x=>{Object.hasOwn(f,x.w)?h.push(x):m(x.w)}),delete f[y])}return d.nodes().forEach(m),h}function c(d){d.edges().forEach(h=>{let f=d.edge(h);if(f.reversed){d.removeEdge(h);let p=f.forwardName;delete f.reversed,delete f.forwardName,d.setEdge(h.w,h.v,f,p)}})}}),zB=vt((e,t)=>{var i=sn();t.exports={run:a,undo:o};function a(c){c.graph().dummyChains=[],c.edges().forEach(d=>s(c,d))}function s(c,d){let h=d.v,f=c.node(h).rank,p=d.w,m=c.node(p).rank,y=d.name,x=c.edge(d),_=x.labelRank;if(m===f+1)return;c.removeEdge(d);let N,S,E;for(E=0,++f;f{let h=c.node(d),f=h.edgeLabel,p;for(c.setEdge(h.edgeObj,f);h.dummy;)p=c.successors(d)[0],c.removeNode(d),f.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(f.x=h.x,f.y=h.y,f.width=h.width,f.height=h.height),d=p,h=c.node(d)})}}),wu=vt((e,t)=>{var{applyWithChunking:i}=sn();t.exports={longestPath:a,slack:s};function a(o){var c={};function d(h){var f=o.node(h);if(Object.hasOwn(c,h))return f.rank;c[h]=!0;let p=o.outEdges(h).map(y=>y==null?Number.POSITIVE_INFINITY:d(y.w)-o.edge(y).minlen);var m=i(Math.min,p);return m===Number.POSITIVE_INFINITY&&(m=0),f.rank=m}o.sources().forEach(d)}function s(o,c){return o.node(c.w).rank-o.node(c.v).rank-o.edge(c).minlen}}),SN=vt((e,t)=>{var i=Oi().Graph,a=wu().slack;t.exports=s;function s(h){var f=new i({directed:!1}),p=h.nodes()[0],m=h.nodeCount();f.setNode(p,{});for(var y,x;o(f,h){var x=y.v,_=m===x?y.w:x;!h.hasNode(_)&&!a(f,y)&&(h.setNode(_,{}),h.setEdge(m,_,{}),p(_))})}return h.nodes().forEach(p),h.nodeCount()}function c(h,f){return f.edges().reduce((p,m)=>{let y=Number.POSITIVE_INFINITY;return h.hasNode(m.v)!==h.hasNode(m.w)&&(y=a(f,m)),yf.node(m).rank+=p)}}),jB=vt((e,t)=>{var i=SN(),a=wu().slack,s=wu().longestPath,o=Oi().alg.preorder,c=Oi().alg.postorder,d=sn().simplify;t.exports=h,h.initLowLimValues=y,h.initCutValues=f,h.calcCutValue=m,h.leaveEdge=_,h.enterEdge=N,h.exchangeEdges=S;function h(O){O=d(O),s(O);var B=i(O);y(B),f(B,O);for(var R,H;R=_(B);)H=N(B,O,R),S(B,O,R,H)}function f(O,B){var R=c(O,O.nodes());R=R.slice(0,R.length-1),R.forEach(H=>p(O,B,H))}function p(O,B,R){var H=O.node(R),I=H.parent;O.edge(R,I).cutvalue=m(O,B,R)}function m(O,B,R){var H=O.node(R),I=H.parent,K=!0,L=B.edge(R,I),q=0;return L||(K=!1,L=B.edge(I,R)),q=L.weight,B.nodeEdges(R).forEach(X=>{var G=X.v===R,C=G?X.w:X.v;if(C!==I){var j=G===K,M=B.edge(X).weight;if(q+=j?M:-M,k(O,R,C)){var U=O.edge(R,C).cutvalue;q+=j?-U:U}}}),q}function y(O,B){arguments.length<2&&(B=O.nodes()[0]),x(O,{},1,B)}function x(O,B,R,H,I){var K=R,L=O.node(H);return B[H]=!0,O.neighbors(H).forEach(q=>{Object.hasOwn(B,q)||(R=x(O,B,R,q,H))}),L.low=K,L.lim=R++,I?L.parent=I:delete L.parent,R}function _(O){return O.edges().find(B=>O.edge(B).cutvalue<0)}function N(O,B,R){var H=R.v,I=R.w;B.hasEdge(H,I)||(H=R.w,I=R.v);var K=O.node(H),L=O.node(I),q=K,X=!1;K.lim>L.lim&&(q=L,X=!0);var G=B.edges().filter(C=>X===w(O,O.node(C.v),q)&&X!==w(O,O.node(C.w),q));return G.reduce((C,j)=>a(B,j)!B.node(I).parent),H=o(O,R);H=H.slice(1),H.forEach(I=>{var K=O.node(I).parent,L=B.edge(I,K),q=!1;L||(L=B.edge(K,I),q=!0),B.node(I).rank=B.node(K).rank+(q?L.minlen:-L.minlen)})}function k(O,B,R){return O.hasEdge(B,R)}function w(O,B,R){return R.low<=B.lim&&B.lim<=R.lim}}),IB=vt((e,t)=>{var i=wu(),a=i.longestPath,s=SN(),o=jB();t.exports=c;function c(p){var m=p.graph().ranker;if(m instanceof Function)return m(p);switch(p.graph().ranker){case"network-simplex":f(p);break;case"tight-tree":h(p);break;case"longest-path":d(p);break;case"none":break;default:f(p)}}var d=a;function h(p){a(p),s(p)}function f(p){o(p)}}),BB=vt((e,t)=>{t.exports=i;function i(o){let c=s(o);o.graph().dummyChains.forEach(d=>{let h=o.node(d),f=h.edgeObj,p=a(o,c,f.v,f.w),m=p.path,y=p.lca,x=0,_=m[x],N=!0;for(;d!==f.w;){if(h=o.node(d),N){for(;(_=m[x])!==y&&o.node(_).maxRankm||y>c[x].lim));for(_=x,x=h;(x=o.parent(x))!==_;)p.push(x);return{path:f.concat(p.reverse()),lca:_}}function s(o){let c={},d=0;function h(f){let p=d;o.children(f).forEach(h),c[f]={low:p,lim:d++}}return o.children().forEach(h),c}}),UB=vt((e,t)=>{var i=sn();t.exports={run:a,cleanup:d};function a(h){let f=i.addDummyNode(h,"root",{},"_root"),p=o(h),m=Object.values(p),y=i.applyWithChunking(Math.max,m)-1,x=2*y+1;h.graph().nestingRoot=f,h.edges().forEach(N=>h.edge(N).minlen*=x);let _=c(h)+1;h.children().forEach(N=>s(h,f,x,_,y,p,N)),h.graph().nodeRankFactor=x}function s(h,f,p,m,y,x,_){let N=h.children(_);if(!N.length){_!==f&&h.setEdge(f,_,{weight:0,minlen:p});return}let S=i.addBorderNode(h,"_bt"),E=i.addBorderNode(h,"_bb"),k=h.node(_);h.setParent(S,_),k.borderTop=S,h.setParent(E,_),k.borderBottom=E,N.forEach(w=>{s(h,f,p,m,y,x,w);let O=h.node(w),B=O.borderTop?O.borderTop:w,R=O.borderBottom?O.borderBottom:w,H=O.borderTop?m:2*m,I=B!==R?1:y-x[_]+1;h.setEdge(S,B,{weight:H,minlen:I,nestingEdge:!0}),h.setEdge(R,E,{weight:H,minlen:I,nestingEdge:!0})}),h.parent(_)||h.setEdge(f,S,{weight:0,minlen:y+x[_]})}function o(h){var f={};function p(m,y){var x=h.children(m);x&&x.length&&x.forEach(_=>p(_,y+1)),f[m]=y}return h.children().forEach(m=>p(m,1)),f}function c(h){return h.edges().reduce((f,p)=>f+h.edge(p).weight,0)}function d(h){var f=h.graph();h.removeNode(f.nestingRoot),delete f.nestingRoot,h.edges().forEach(p=>{var m=h.edge(p);m.nestingEdge&&h.removeEdge(p)})}}),HB=vt((e,t)=>{var i=sn();t.exports=a;function a(o){function c(d){let h=o.children(d),f=o.node(d);if(h.length&&h.forEach(c),Object.hasOwn(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(let p=f.minRank,m=f.maxRank+1;p{t.exports={adjust:i,undo:a};function i(p){let m=p.graph().rankdir.toLowerCase();(m==="lr"||m==="rl")&&s(p)}function a(p){let m=p.graph().rankdir.toLowerCase();(m==="bt"||m==="rl")&&c(p),(m==="lr"||m==="rl")&&(h(p),s(p))}function s(p){p.nodes().forEach(m=>o(p.node(m))),p.edges().forEach(m=>o(p.edge(m)))}function o(p){let m=p.width;p.width=p.height,p.height=m}function c(p){p.nodes().forEach(m=>d(p.node(m))),p.edges().forEach(m=>{let y=p.edge(m);y.points.forEach(d),Object.hasOwn(y,"y")&&d(y)})}function d(p){p.y=-p.y}function h(p){p.nodes().forEach(m=>f(p.node(m))),p.edges().forEach(m=>{let y=p.edge(m);y.points.forEach(f),Object.hasOwn(y,"x")&&f(y)})}function f(p){let m=p.x;p.x=p.y,p.y=m}}),qB=vt((e,t)=>{var i=sn();t.exports=a;function a(s){let o={},c=s.nodes().filter(m=>!s.children(m).length),d=c.map(m=>s.node(m).rank),h=i.applyWithChunking(Math.max,d),f=i.range(h+1).map(()=>[]);function p(m){if(o[m])return;o[m]=!0;let y=s.node(m);f[y.rank].push(m),s.successors(m).forEach(p)}return c.sort((m,y)=>s.node(m).rank-s.node(y).rank).forEach(p),f}}),PB=vt((e,t)=>{var i=sn().zipObject;t.exports=a;function a(o,c){let d=0;for(let h=1;hN)),f=c.flatMap(_=>o.outEdges(_).map(N=>({pos:h[N.w],weight:o.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),p=1;for(;p{let N=_.pos+p;y[N]+=_.weight;let S=0;for(;N>0;)N%2&&(S+=y[N+1]),N=N-1>>1,y[N]+=_.weight;x+=_.weight*S}),x}}),FB=vt((e,t)=>{t.exports=i;function i(a,s=[]){return s.map(o=>{let c=a.inEdges(o);if(c.length){let d=c.reduce((h,f)=>{let p=a.edge(f),m=a.node(f.v);return{sum:h.sum+p.weight*m.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}}),GB=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let h={};c.forEach((p,m)=>{let y=h[p.v]={indegree:0,in:[],out:[],vs:[p.v],i:m};p.barycenter!==void 0&&(y.barycenter=p.barycenter,y.weight=p.weight)}),d.edges().forEach(p=>{let m=h[p.v],y=h[p.w];m!==void 0&&y!==void 0&&(y.indegree++,m.out.push(h[p.w]))});let f=Object.values(h).filter(p=>!p.indegree);return s(f)}function s(c){let d=[];function h(p){return m=>{m.merged||(m.barycenter===void 0||p.barycenter===void 0||m.barycenter>=p.barycenter)&&o(p,m)}}function f(p){return m=>{m.in.push(p),--m.indegree===0&&c.push(m)}}for(;c.length;){let p=c.pop();d.push(p),p.in.reverse().forEach(h(p)),p.out.forEach(f(p))}return d.filter(p=>!p.merged).map(p=>i.pick(p,["vs","i","barycenter","weight"]))}function o(c,d){let h=0,f=0;c.weight&&(h+=c.barycenter*c.weight,f+=c.weight),d.weight&&(h+=d.barycenter*d.weight,f+=d.weight),c.vs=d.vs.concat(c.vs),c.barycenter=h/f,c.weight=f,c.i=Math.min(d.i,c.i),d.merged=!0}}),VB=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let h=i.partition(c,S=>Object.hasOwn(S,"barycenter")),f=h.lhs,p=h.rhs.sort((S,E)=>E.i-S.i),m=[],y=0,x=0,_=0;f.sort(o(!!d)),_=s(m,p,_),f.forEach(S=>{_+=S.vs.length,m.push(S.vs),y+=S.barycenter*S.weight,x+=S.weight,_=s(m,p,_)});let N={vs:m.flat(!0)};return x&&(N.barycenter=y/x,N.weight=x),N}function s(c,d,h){let f;for(;d.length&&(f=d[d.length-1]).i<=h;)d.pop(),c.push(f.vs),h++;return h}function o(c){return(d,h)=>d.barycenterh.barycenter?1:c?h.i-d.i:d.i-h.i}}),YB=vt((e,t)=>{var i=FB(),a=GB(),s=VB();t.exports=o;function o(h,f,p,m){let y=h.children(f),x=h.node(f),_=x?x.borderLeft:void 0,N=x?x.borderRight:void 0,S={};_&&(y=y.filter(O=>O!==_&&O!==N));let E=i(h,y);E.forEach(O=>{if(h.children(O.v).length){let B=o(h,O.v,p,m);S[O.v]=B,Object.hasOwn(B,"barycenter")&&d(O,B)}});let k=a(E,p);c(k,S);let w=s(k,m);if(_&&(w.vs=[_,w.vs,N].flat(!0),h.predecessors(_).length)){let O=h.node(h.predecessors(_)[0]),B=h.node(h.predecessors(N)[0]);Object.hasOwn(w,"barycenter")||(w.barycenter=0,w.weight=0),w.barycenter=(w.barycenter*w.weight+O.order+B.order)/(w.weight+2),w.weight+=2}return w}function c(h,f){h.forEach(p=>{p.vs=p.vs.flatMap(m=>f[m]?f[m].vs:m)})}function d(h,f){h.barycenter!==void 0?(h.barycenter=(h.barycenter*h.weight+f.barycenter*f.weight)/(h.weight+f.weight),h.weight+=f.weight):(h.barycenter=f.barycenter,h.weight=f.weight)}}),XB=vt((e,t)=>{var i=Oi().Graph,a=sn();t.exports=s;function s(c,d,h,f){f||(f=c.nodes());let p=o(c),m=new i({compound:!0}).setGraph({root:p}).setDefaultNodeLabel(y=>c.node(y));return f.forEach(y=>{let x=c.node(y),_=c.parent(y);(x.rank===d||x.minRank<=d&&d<=x.maxRank)&&(m.setNode(y),m.setParent(y,_||p),c[h](y).forEach(N=>{let S=N.v===y?N.w:N.v,E=m.edge(S,y),k=E!==void 0?E.weight:0;m.setEdge(S,y,{weight:c.edge(N).weight+k})}),Object.hasOwn(x,"minRank")&&m.setNode(y,{borderLeft:x.borderLeft[d],borderRight:x.borderRight[d]}))}),m}function o(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),KB=vt((e,t)=>{t.exports=i;function i(a,s,o){let c={},d;o.forEach(h=>{let f=a.parent(h),p,m;for(;f;){if(p=a.parent(f),p?(m=c[p],c[p]=f):(m=d,d=f),m&&m!==f){s.setEdge(m,f);return}f=p}})}}),ZB=vt((e,t)=>{var i=qB(),a=PB(),s=YB(),o=XB(),c=KB(),d=Oi().Graph,h=sn();t.exports=f;function f(x,_={}){if(typeof _.customOrder=="function"){_.customOrder(x,f);return}let N=h.maxRank(x),S=p(x,h.range(1,N+1),"inEdges"),E=p(x,h.range(N-1,-1,-1),"outEdges"),k=i(x);if(y(x,k),_.disableOptimalOrderHeuristic)return;let w=Number.POSITIVE_INFINITY,O,B=_.constraints||[];for(let R=0,H=0;H<4;++R,++H){m(R%2?S:E,R%4>=2,B),k=h.buildLayerMatrix(x);let I=a(x,k);I{S.has(k)||S.set(k,[]),S.get(k).push(w)};for(let k of x.nodes()){let w=x.node(k);if(typeof w.rank=="number"&&E(w.rank,k),typeof w.minRank=="number"&&typeof w.maxRank=="number")for(let O=w.minRank;O<=w.maxRank;O++)O!==w.rank&&E(O,k)}return _.map(function(k){return o(x,k,N,S.get(k)||[])})}function m(x,_,N){let S=new d;x.forEach(function(E){N.forEach(O=>S.setEdge(O.left,O.right));let k=E.graph().root,w=s(E,k,S,_);w.vs.forEach((O,B)=>E.node(O).order=B),c(E,S,w.vs)})}function y(x,_){Object.values(_).forEach(N=>N.forEach((S,E)=>x.node(S).order=E))}}),QB=vt((e,t)=>{var i=Oi().Graph,a=sn();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:o,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:p,alignCoordinates:x,findSmallestWidthAlignment:y,balance:_};function s(k,w){let O={};function B(R,H){let I=0,K=0,L=R.length,q=H[H.length-1];return H.forEach((X,G)=>{let C=c(k,X),j=C?k.node(C).order:L;(C||X===q)&&(H.slice(K,G+1).forEach(M=>{k.predecessors(M).forEach(U=>{let Y=k.node(U),Z=Y.order;(Z{X=H[G],k.node(X).dummy&&k.predecessors(X).forEach(C=>{let j=k.node(C);j.dummy&&(j.orderq)&&d(O,C,X)})})}function R(H,I){let K=-1,L,q=0;return I.forEach((X,G)=>{if(k.node(X).dummy==="border"){let C=k.predecessors(X);C.length&&(L=k.node(C[0]).order,B(I,q,G,K,L),q=G,K=L)}B(I,q,I.length,L,H.length)}),I}return w.length&&w.reduce(R),O}function c(k,w){if(k.node(w).dummy)return k.predecessors(w).find(O=>k.node(O).dummy)}function d(k,w,O){if(w>O){let R=w;w=O,O=R}let B=k[w];B||(k[w]=B={}),B[O]=!0}function h(k,w,O){if(w>O){let B=w;w=O,O=B}return!!k[w]&&Object.hasOwn(k[w],O)}function f(k,w,O,B){let R={},H={},I={};return w.forEach(K=>{K.forEach((L,q)=>{R[L]=L,H[L]=L,I[L]=q})}),w.forEach(K=>{let L=-1;K.forEach(q=>{let X=B(q);if(X.length){X=X.sort((C,j)=>I[C]-I[j]);let G=(X.length-1)/2;for(let C=Math.floor(G),j=Math.ceil(G);C<=j;++C){let M=X[C];H[q]===q&&LMath.max(C,H[j.v]+I.edge(j)),0)}function X(G){let C=I.outEdges(G).reduce((M,U)=>Math.min(M,H[U.w]-I.edge(U)),Number.POSITIVE_INFINITY),j=k.node(G);C!==Number.POSITIVE_INFINITY&&j.borderType!==K&&(H[G]=Math.max(H[G],C))}return L(q,I.predecessors.bind(I)),L(X,I.successors.bind(I)),Object.keys(B).forEach(G=>H[G]=H[O[G]]),H}function m(k,w,O,B){let R=new i,H=k.graph(),I=S(H.nodesep,H.edgesep,B);return w.forEach(K=>{let L;K.forEach(q=>{let X=O[q];if(R.setNode(X),L){var G=O[L],C=R.edge(G,X);R.setEdge(G,X,Math.max(I(k,q,L),C||0))}L=q})}),R}function y(k,w){return Object.values(w).reduce((O,B)=>{let R=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;Object.entries(B).forEach(([K,L])=>{let q=E(k,K)/2;R=Math.max(L+q,R),H=Math.min(L-q,H)});let I=R-H;return I{["l","r"].forEach(I=>{let K=H+I,L=k[K];if(L===w)return;let q=Object.values(L),X=B-a.applyWithChunking(Math.min,q);I!=="l"&&(X=R-a.applyWithChunking(Math.max,q)),X&&(k[K]=a.mapValues(L,G=>G+X))})})}function _(k,w){return a.mapValues(k.ul,(O,B)=>{if(w)return k[w.toLowerCase()][B];{let R=Object.values(k).map(H=>H[B]).sort((H,I)=>H-I);return(R[1]+R[2])/2}})}function N(k){let w=a.buildLayerMatrix(k),O=Object.assign(s(k,w),o(k,w)),B={},R;["u","d"].forEach(I=>{R=I==="u"?w:Object.values(w).reverse(),["l","r"].forEach(K=>{K==="r"&&(R=R.map(G=>Object.values(G).reverse()));let L=(I==="u"?k.predecessors:k.successors).bind(k),q=f(k,R,O,L),X=p(k,R,q.root,q.align,K==="r");K==="r"&&(X=a.mapValues(X,G=>-G)),B[I+K]=X})});let H=y(k,B);return x(B,H),_(B,k.graph().align)}function S(k,w,O){return(B,R,H)=>{let I=B.node(R),K=B.node(H),L=0,q;if(L+=I.width/2,Object.hasOwn(I,"labelpos"))switch(I.labelpos.toLowerCase()){case"l":q=-I.width/2;break;case"r":q=I.width/2;break}if(q&&(L+=O?q:-q),q=0,L+=(I.dummy?w:k)/2,L+=(K.dummy?w:k)/2,L+=K.width/2,Object.hasOwn(K,"labelpos"))switch(K.labelpos.toLowerCase()){case"l":q=K.width/2;break;case"r":q=-K.width/2;break}return q&&(L+=O?q:-q),q=0,L}}function E(k,w){return k.node(w).width}}),WB=vt((e,t)=>{var i=sn(),a=QB().positionX;t.exports=s;function s(c){c=i.asNonCompoundGraph(c),o(c),Object.entries(a(c)).forEach(([d,h])=>c.node(d).x=h)}function o(c){let d=i.buildLayerMatrix(c),h=c.graph().ranksep,f=c.graph().rankalign,p=0;d.forEach(m=>{let y=m.reduce((x,_)=>{let N=c.node(_).height;return x>N?x:N},0);m.forEach(x=>{let _=c.node(x);f==="top"?_.y=p+_.height/2:f==="bottom"?_.y=p+y-_.height/2:_.y=p+y/2}),p+=y+h})}}),JB=vt((e,t)=>{var i=LB(),a=zB(),s=IB(),o=sn().normalizeRanks,c=BB(),d=sn().removeEmptyRanks,h=UB(),f=HB(),p=$B(),m=ZB(),y=WB(),x=sn(),_=Oi().Graph;t.exports=N;function N($,Q={}){let J=Q.debugTiming?x.time:x.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>L($));return J(" runLayout",()=>S(W,J,Q)),J(" updateInputGraph",()=>E($,W)),W})}function S($,Q,J){Q(" makeSpaceForEdgeLabels",()=>q($)),Q(" removeSelfEdges",()=>A($)),Q(" acyclic",()=>i.run($)),Q(" nestingGraph.run",()=>h.run($)),Q(" rank",()=>s(x.asNonCompoundGraph($))),Q(" injectEdgeLabelProxies",()=>X($)),Q(" removeEmptyRanks",()=>d($)),Q(" nestingGraph.cleanup",()=>h.cleanup($)),Q(" normalizeRanks",()=>o($)),Q(" assignRankMinMax",()=>G($)),Q(" removeEdgeLabelProxies",()=>C($)),Q(" normalize.run",()=>a.run($)),Q(" parentDummyChains",()=>c($)),Q(" addBorderSegments",()=>f($)),Q(" order",()=>m($,J)),Q(" insertSelfEdges",()=>z($)),Q(" adjustCoordinateSystem",()=>p.adjust($)),Q(" position",()=>y($)),Q(" positionSelfEdges",()=>V($)),Q(" removeBorderNodes",()=>Z($)),Q(" normalize.undo",()=>a.undo($)),Q(" fixupEdgeLabelCoords",()=>U($)),Q(" undoCoordinateSystem",()=>p.undo($)),Q(" translateGraph",()=>j($)),Q(" assignNodeIntersects",()=>M($)),Q(" reversePoints",()=>Y($)),Q(" acyclic.undo",()=>i.undo($))}function E($,Q){$.nodes().forEach(J=>{let W=$.node(J),ee=Q.node(J);W&&(W.x=ee.x,W.y=ee.y,W.order=ee.order,W.rank=ee.rank,Q.children(J).length&&(W.width=ee.width,W.height=ee.height))}),$.edges().forEach(J=>{let W=$.edge(J),ee=Q.edge(J);W.points=ee.points,Object.hasOwn(ee,"x")&&(W.x=ee.x,W.y=ee.y)}),$.graph().width=Q.graph().width,$.graph().height=Q.graph().height}var k=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},O=["acyclicer","ranker","rankdir","align","rankalign"],B=["width","height","rank"],R={width:0,height:0},H=["minlen","weight","width","height","labeloffset"],I={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function L($){let Q=new _({multigraph:!0,compound:!0}),J=F($.graph());return Q.setGraph(Object.assign({},w,D(J,k),x.pick(J,O))),$.nodes().forEach(W=>{let ee=F($.node(W)),ce=D(ee,B);Object.keys(R).forEach(fe=>{ce[fe]===void 0&&(ce[fe]=R[fe])}),Q.setNode(W,ce),Q.setParent(W,$.parent(W))}),$.edges().forEach(W=>{let ee=F($.edge(W));Q.setEdge(W,Object.assign({},I,D(ee,H),x.pick(ee,K)))}),Q}function q($){let Q=$.graph();Q.ranksep/=2,$.edges().forEach(J=>{let W=$.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function X($){$.edges().forEach(Q=>{let J=$.edge(Q);if(J.width&&J.height){let W=$.node(Q.v),ee={rank:($.node(Q.w).rank-W.rank)/2+W.rank,e:Q};x.addDummyNode($,"edge-proxy",ee,"_ep")}})}function G($){let Q=0;$.nodes().forEach(J=>{let W=$.node(J);W.borderTop&&(W.minRank=$.node(W.borderTop).rank,W.maxRank=$.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),$.graph().maxRank=Q}function C($){$.nodes().forEach(Q=>{let J=$.node(Q);J.dummy==="edge-proxy"&&($.edge(J.e).labelRank=J.rank,$.removeNode(Q))})}function j($){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,ee=0,ce=$.graph(),fe=ce.marginx||0,be=ce.marginy||0;function Ee(Ne){let Le=Ne.x,$e=Ne.y,st=Ne.width,Rt=Ne.height;Q=Math.min(Q,Le-st/2),J=Math.max(J,Le+st/2),W=Math.min(W,$e-Rt/2),ee=Math.max(ee,$e+Rt/2)}$.nodes().forEach(Ne=>Ee($.node(Ne))),$.edges().forEach(Ne=>{let Le=$.edge(Ne);Object.hasOwn(Le,"x")&&Ee(Le)}),Q-=fe,W-=be,$.nodes().forEach(Ne=>{let Le=$.node(Ne);Le.x-=Q,Le.y-=W}),$.edges().forEach(Ne=>{let Le=$.edge(Ne);Le.points.forEach($e=>{$e.x-=Q,$e.y-=W}),Object.hasOwn(Le,"x")&&(Le.x-=Q),Object.hasOwn(Le,"y")&&(Le.y-=W)}),ce.width=J-Q+fe,ce.height=ee-W+be}function M($){$.edges().forEach(Q=>{let J=$.edge(Q),W=$.node(Q.v),ee=$.node(Q.w),ce,fe;J.points?(ce=J.points[0],fe=J.points[J.points.length-1]):(J.points=[],ce=ee,fe=W),J.points.unshift(x.intersectRect(W,ce)),J.points.push(x.intersectRect(ee,fe))})}function U($){$.edges().forEach(Q=>{let J=$.edge(Q);if(Object.hasOwn(J,"x"))switch((J.labelpos==="l"||J.labelpos==="r")&&(J.width-=J.labeloffset),J.labelpos){case"l":J.x-=J.width/2+J.labeloffset;break;case"r":J.x+=J.width/2+J.labeloffset;break}})}function Y($){$.edges().forEach(Q=>{let J=$.edge(Q);J.reversed&&J.points.reverse()})}function Z($){$.nodes().forEach(Q=>{if($.children(Q).length){let J=$.node(Q),W=$.node(J.borderTop),ee=$.node(J.borderBottom),ce=$.node(J.borderLeft[J.borderLeft.length-1]),fe=$.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(fe.x-ce.x),J.height=Math.abs(ee.y-W.y),J.x=ce.x+J.width/2,J.y=W.y+J.height/2}}),$.nodes().forEach(Q=>{$.node(Q).dummy==="border"&&$.removeNode(Q)})}function A($){$.edges().forEach(Q=>{if(Q.v===Q.w){var J=$.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:$.edge(Q)}),$.removeEdge(Q)}})}function z($){var Q=x.buildLayerMatrix($);Q.forEach(J=>{var W=0;J.forEach((ee,ce)=>{var fe=$.node(ee);fe.order=ce+W,(fe.selfEdges||[]).forEach(be=>{x.addDummyNode($,"selfedge",{width:be.label.width,height:be.label.height,rank:fe.rank,order:ce+ ++W,e:be.e,label:be.label},"_se")}),delete fe.selfEdges})})}function V($){$.nodes().forEach(Q=>{var J=$.node(Q);if(J.dummy==="selfedge"){var W=$.node(J.e.v),ee=W.x+W.width/2,ce=W.y,fe=J.x-ee,be=W.height/2;$.setEdge(J.e,J.label),$.removeNode(Q),J.label.points=[{x:ee+2*fe/3,y:ce-be},{x:ee+5*fe/6,y:ce-be},{x:ee+fe,y:ce},{x:ee+5*fe/6,y:ce+be},{x:ee+2*fe/3,y:ce+be}],J.label.x=J.x,J.label.y=J.y}})}function D($,Q){return x.mapValues(x.pick($,Q),Number)}function F($){var Q={};return $&&Object.entries($).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),e9=vt((e,t)=>{var i=sn(),a=Oi().Graph;t.exports={debugOrdering:s};function s(o){let c=i.buildLayerMatrix(o),d=new a({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(h=>{d.setNode(h,{label:h}),d.setParent(h,"layer"+o.node(h).rank)}),o.edges().forEach(h=>d.setEdge(h.v,h.w,{},h.name)),c.forEach((h,f)=>{let p="layer"+f;d.setNode(p,{rank:"same"}),h.reduce((m,y)=>(d.setEdge(m,y,{style:"invis"}),y))}),d}}),t9=vt((e,t)=>{t.exports="2.0.4"}),n9=vt((e,t)=>{t.exports={graphlib:Oi(),layout:JB(),debug:e9(),util:{time:sn().time,notime:sn().notime},version:t9()}});const M1=n9();/*! For license information please see dagre.esm.js.LEGAL.txt */const O1={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function i9({data:e,selected:t}){const i=e;return b.jsxs("div",{className:`w-[260px] rounded-lg border px-4 py-3 transition-colors ${i.isSelected||t?"border-white/30 bg-[#0a0a0a]":"border-[#222] bg-black hover:border-[#333]"}`,children:[b.jsx(qs,{type:"target",position:je.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.parentId?"!bg-[#444]":"!bg-transparent"}`}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[b.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${O1[i.status]??"bg-gray-500"} ${i.status==="running"?"animate-ping":""}`}),b.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${O1[i.status]??"bg-gray-500"}`})]}),b.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:i.name})]}),b.jsx(qs,{type:"source",position:je.Bottom,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.children&&i.children.length>0?"!bg-[#444]":"!bg-transparent"}`})]})}const r9=re.memo(i9);function Gl({w:e=24}){return b.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[b.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[b.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),b.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),b.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),b.jsxs("div",{className:"flex gap-3",children:[b.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),b.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function Ss(){return b.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function R1({count:e}){return b.jsx("div",{className:"relative flex justify-center",children:b.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function a9(){return b.jsx("div",{className:"h-full bg-black overflow-hidden",children:b.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[b.jsx(Gl,{w:20}),b.jsx(Ss,{}),b.jsx(R1,{count:3}),b.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(Gl,{w:e})]},t))}),b.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(R1,{count:2}),b.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(Gl,{w:e})]},t))})]}),b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(Gl,{w:18}),b.jsx(Ss,{}),b.jsx(Gl,{w:12})]}),b.jsx("div",{className:"w-[180px]"})]})]})})}const Xp=260,Kp=80,s9={agentNode:r9};function l9(e,t){const i=new M1.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],s=[];for(const[o,c]of e)if(i.setNode(o,{width:Xp,height:Kp}),a.push({id:o,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:o===t}}),c.parentId&&e.has(c.parentId)){const d=`${c.parentId}->${o}`;i.setEdge(c.parentId,o),s.push({id:d,source:c.parentId,target:o,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}M1.layout(i);for(const o of a){const c=i.node(o.id);c&&(o.position={x:c.x-Xp/2,y:c.y-Kp/2})}return{nodes:a,edges:s}}const mp=300;function o9({nodes:e}){const{setCenter:t}=No(),i=re.useRef(!1);return re.useEffect(()=>{if(e.length>0&&!i.current){const s=e.find(d=>!d.data.parentId)??e[0];i.current=!0;const o=s.position.x+Xp/2,c=s.position.y+Kp/2;setTimeout(()=>t(o,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function c9(){const{zoomIn:e,zoomOut:t,fitView:i}=No();return b.jsx(pB,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:b.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[b.jsx("button",{onClick:()=>e({duration:mp}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:b.jsx("path",{d:"M12 5v14M5 12h14"})})}),b.jsx("button",{onClick:()=>t({duration:mp}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] border-y border-[#222] transition-colors",title:"Zoom out",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:b.jsx("path",{d:"M5 12h14"})})}),b.jsx("button",{onClick:()=>i({padding:.3,duration:mp}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:b.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function u9({agents:e,selectedAgentId:t,onSelectAgent:i,eventsLoaded:a,eventsEmpty:s,scanCompleted:o}){const[c,d,h]=tB([]),[f,p,m]=nB([]);re.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:E}=l9(e,t);d(S),p(E)},[e.size,d,p]),re.useEffect(()=>{e.size!==0&&d(S=>S.map(E=>{const k=e.get(E.id);return k?{...E,data:{...k,isSelected:E.id===t}}:E}))},[e,t,d]);const y=re.useRef(!1),x=re.useCallback((S,E)=>{y.current=!0,i(E.id)},[i]),_=re.useCallback(()=>{if(y.current){y.current=!1;return}i(null)},[i]);if(e.size===0&&a&&s)return b.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[b.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:o?b.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})}):b.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),b.jsx("p",{className:"text-sm text-[#555]",children:o?"Agent trace data is not available for this pentest":"Waiting for agent data…"})]});const N=e.size>0;return b.jsxs("div",{className:"relative h-full",children:[b.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:b.jsx(a9,{})}),b.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:b.jsxs(eB,{nodes:c,edges:f,onNodesChange:h,onEdgesChange:m,onNodeClick:x,onPaneClick:_,nodeTypes:s9,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[b.jsx(lB,{color:"#111",gap:20}),b.jsx(o9,{nodes:c}),b.jsx(c9,{}),b.jsx(AB,{position:"bottom-left",nodeColor:S=>{var k;const E=(k=S.data)==null?void 0:k.status;return E==="running"?"#3b82f6":E==="completed"?"#10b981":E==="failed"||E==="error"?"#ef4444":"#555"},maskColor:"rgba(0,0,0,0.8)",style:{width:80,height:50},className:"!bg-[#0a0a0a] !border-[#222]"})]})})]})}function Cs({text:e,className:t=""}){return b.jsx("div",{className:`prose-markdown ${t}`,children:b.jsx(wm,{remarkPlugins:[Tm],rehypePlugins:[Am],components:Cm,children:e})})}const D1=6,L1=20;function Ln({text:e,maxLines:t=20}){const[i,a]=re.useState(!1),o=e.trimEnd().split(` +`).length>t;return b.jsxs("div",{children:[b.jsx("div",{className:i&&o?"max-h-[1200px] overflow-auto":"",style:!i&&o?{display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:b.jsx(Cs,{text:e})}),o&&b.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:i?"Show less":"Show more"})]})}function br({children:e,className:t=""}){const[i,a]=re.useState(!1),o=typeof e=="string"?e.trimEnd().split(` +`):null,c=o!==null&&o.length>D1,d=c&&!i?o.slice(0,D1).join(` +`):e;return b.jsxs("div",{children:[b.jsx("pre",{className:`font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words mt-1 ${i?"overflow-auto max-h-[1200px]":"overflow-hidden"} ${t}`,children:d}),c&&b.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:i?"Show less":"Show more"})]})}function Xm({code:e,language:t,className:i="",collapsible:a=!1}){const[s,o]=re.useState(!1),c=e.trimEnd().split(` +`),d=a&&c.length>L1,h=d&&!s?c.slice(0,L1).join(` +`):e;let f;try{f=t?Fn.highlight(h,{language:t,ignoreIllegals:!0}).value:Fn.highlightAuto(h).value}catch{f=Fn.highlightAuto(h).value}return b.jsxs("div",{children:[b.jsx("pre",{className:`font-mono text-[12px] leading-relaxed px-0 py-1 mt-1 whitespace-pre-wrap break-all ${a?s?"overflow-auto max-h-[1200px]":"overflow-hidden":"overflow-auto max-h-[400px]"} ${i}`,children:b.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),d&&b.jsx("button",{onClick:()=>o(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const d9=50,z1=200,j1=25,I1=24,f9=[/\n?\[Command still running after [\d.]+s - showing output so far\.?\s*(?:Use C-c to interrupt if needed\.)?\]/g,/^\[Below is the output of the previous command\.\]\n?/gm,/^No command is currently running\. Cannot send input\.$/gm,/^A command is already running\. Use is_input=true to send input to it, or interrupt it first \(e\.g\., with C-c\)\.$/gm],h9=/^Chunk ID: [0-9a-f]+\s*$/,p9=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function m9(e){const t=[];for(let i=0;is.test(e[a]));)a++;az1?e.slice(0,z1-3)+"...":e}function b9(e,t=""){let i=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of f9)i=i.replace(a,"");if(i.trim()){const a=m9(i.split(` +`)),s=[];for(const o of a)s.length===0&&!o.trim()||/^\[STRIX_\d+\]\$\s*/.test(o)||t&&o.trim()===t.trim()||t&&new RegExp(`^[\\$#>]\\s*${g9(t.trim())}\\s*$`).test(o)||s.push(o);for(;s.length>0&&/^\[STRIX_\d+\]\$\s*/.test(s[s.length-1]);)s.pop();i=s.join(` +`)}return i.trim()}function x9(e){const t=e.split(` +`);if(t.length<=d9)return t.map(gp).join(` +`);const i=t.length-j1-I1;return[...t.slice(0,j1).map(gp),`... ${i} lines truncated ...`,...t.slice(-I1).map(gp)].join(` +`)}function y9({toolName:e,args:t,result:i}){const a=e==="write_stdin",s=a?t.chars??t.input??"":t.command??t.cmd??"",o=i;let c=null,d=null,h=null;if(o&&typeof o=="object"){c=typeof o.content=="string"?o.content:null,d=typeof o.error=="string"?o.error:null,h=typeof o.exit_code=="number"?o.exit_code:null;const p=typeof o.status=="string"?o.status:"";(p==="running"||p==="command still running")&&(c=null)}else typeof o=="string"&&(c=o);const f=c?x9(b9(c,s)):null;return b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&b.jsx(Xm,{code:s,language:"bash",collapsible:!0}),d&&b.jsx(br,{className:"text-red-400/70",children:d}),f&&b.jsx(br,{className:"text-[#666]",children:f}),h!=null&&h!==0&&b.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",h]})]})}const B1={back:"going back in browser history",forward:"going forward in browser history",scroll_down:"scrolling down",scroll_up:"scrolling up",refresh:"refreshing",close_tab:"closing tab",switch_tab:"switching tab",list_tabs:"listing tabs",view_source:"viewing page source",get_console_logs:"getting console logs",screenshot:"taking screenshot",wait:"waiting...",close:"closing"},U1={click:"clicking",double_click:"double clicking",hover:"hovering"};function bp({prefix:e,url:t,suffix:i}){return b.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&b.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),i]})}function v9(e){const t=e.action??"",i=e.url??void 0;if(t in B1)return B1[t];if(t==="launch")return i?b.jsx(bp,{prefix:"launching ",url:i}):"launching";if(t==="goto"||t==="navigate")return b.jsx(bp,{prefix:"navigating to ",url:i});if(t==="new_tab")return b.jsx(bp,{prefix:"opening tab ",url:i});if(t in U1)return U1[t];if(t==="type")return`typing "${(e.text??"").slice(0,40)}"`;if(t==="press_key"||t==="key_press")return`pressing key ${e.key??""}`;if(t==="save_pdf"||t==="save_as_pdf"){const a=e.file_path??"";return`saving PDF${a?` to ${a}`:""}`}return t==="execute_js"?"executing javascript":t||"browser action"}function _9({args:e}){const i=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=v9(e);return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[b.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),b.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),i&&b.jsx(Xm,{code:i,language:"javascript",collapsible:!0})]})}function Km(e){return e.length>60?"..."+e.slice(-57):e}const Wc=30;function E9({toolName:e,args:t}){const i=t.path??t.file_path??"",a=t.command??"",s=t.old_str??"",o=t.new_str??"",c=t.regex??"";let d;e==="list_files"?d="list":e==="search_files"?d="search":a==="view"?d="view":a==="create"?d="create":a==="str_replace"?d="edit":a==="undo_edit"?d="undo":a==="insert"?d="insert":d="file";const h=i?Km(i):"",f=c?` /${c}/`:"",p=s?s.split(` +`):[],m=o?o.split(` +`):[],y=p.length+m.length,x=y>Wc,_=x?Math.round(Wc*(p.length/y)):p.length,N=x?Wc-_:m.length;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-baseline gap-2",children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),h&&b.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:h})]}),f&&b.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:f}),(s||o)&&b.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[p.slice(0,_).map((S,E)=>b.jsxs("div",{className:"text-red-400/60",children:[b.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${E}`)),m.slice(0,N).map((S,E)=>b.jsxs("div",{className:"text-emerald-400/60",children:[b.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${E}`)),x&&b.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",y-Wc," more lines"]})]})]})}const Jc=30,w9="*** Begin Patch",N9="*** End Patch",H1="*** Add File: ",$1="*** Update File: ",q1="*** Delete File: ",S9={add:"create",update:"edit",delete:"delete"};function k9(e){const t=e.patch;return typeof t=="string"?t:t&&typeof t=="object"&&typeof t.patch=="string"?t.patch:typeof e.input=="string"?e.input:""}function T9(e){const t=[];let i=null;const a=()=>{i&&t.push(i),i=null};for(const s of e.split(` +`))if(!(s===w9||s===N9))if(s.startsWith(H1))a(),i={kind:"add",path:s.slice(H1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith($1))a(),i={kind:"update",path:s.slice($1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(q1))a(),i={kind:"delete",path:s.slice(q1.length).trim(),oldLines:[],newLines:[]};else if((i==null?void 0:i.kind)==="update"){if(s.startsWith("@@"))continue;s.startsWith("-")&&!s.startsWith("---")?i.oldLines.push(s.slice(1)):s.startsWith("+")&&!s.startsWith("+++")&&i.newLines.push(s.slice(1))}else(i==null?void 0:i.kind)==="add"&&(s.startsWith("+")?i.newLines.push(s.slice(1)):s.trim()&&i.newLines.push(s));return a(),t}function A9({op:e}){const t=S9[e.kind]??"file",i=e.oldLines.length+e.newLines.length,a=i>Jc,s=a&&i>0?Math.round(Jc*(e.oldLines.length/i)):e.oldLines.length,o=a?Jc-s:e.newLines.length;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-baseline gap-2",children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&b.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Km(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&b.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>b.jsxs("div",{className:"text-red-400/60",children:[b.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,o).map((c,d)=>b.jsxs("div",{className:"text-emerald-400/60",children:[b.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&b.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",i-Jc," more lines"]})]})]})}function C9({args:e,result:t,status:i}){const a=T9(k9(e));return a.length===0?b.jsxs("div",{children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),i==="failed"&&typeof t=="string"&&t.trim()&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):b.jsxs("div",{className:"space-y-2",children:[a.map((s,o)=>b.jsx(A9,{op:s},o)),i==="failed"&&typeof t=="string"&&t.trim()&&b.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}function M9({args:e,result:t}){const i=(e.path??"").trim(),a=t;let s=null;if(typeof a=="string"){const o=a.trim();o&&!o.toLowerCase().startsWith("data:image/")&&!o.startsWith("{")&&(s=o)}return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-baseline gap-2",children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),i&&b.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Km(i)})]}),s&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const O9={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function R9({args:e,result:t}){const i=e.title??"",a=e.description??"",s=e.impact??"",o=e.target??"",c=e.endpoint??"",d=e.method??"",h=e.technical_analysis??"",f=e.poc_description??"",p=e.poc_script_code??"",m=e.remediation_steps??"",y=e.cve??"",x=e.cwe??"",_=t,N=(_&&typeof _=="object"?_.severity:null)??e.severity??"medium",S=String(N).toLowerCase(),E=(_&&typeof _=="object"?_.cvss_score:null)??e.cvss??null,k=O9[S]??"text-yellow-400";return b.jsxs("div",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx("span",{className:`font-semibold text-sm ${k}`,children:S.toUpperCase()}),E!=null&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",E]}),y&&b.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),x&&b.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:x})]}),i&&b.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:i}),(o||c)&&b.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[o,c?` ${d} ${c}`:""]}),a&&b.jsx(Ln,{text:a,maxLines:20}),s&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:s,maxLines:15})})]}),h&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:h,maxLines:20})})]}),(f||p)&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),f&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:f})}),p&&b.jsx(zE,{children:p})]}),m&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:m,maxLines:15})})]})]})}const kN=200,TN={GET:"text-emerald-400/80",POST:"text-blue-400/80",PUT:"text-yellow-400/80",PATCH:"text-orange-400/80",DELETE:"text-red-400/80"};function Zm(e){return e<300?"text-emerald-400/80":e<400?"text-yellow-400/80":e<500?"text-orange-400/80":"text-red-400/80"}function Fi(e,t=80){return e.length>t?e.slice(0,t-3)+"...":e}function Zp(e,t=150){return Fi(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function Qp(e,t){const i=e.split(` +`),a=i.slice(0,t).map(s=>Fi(s,kN-5)).join(` +`);return i.length>t?a+` +...`:a}function D9({args:e,result:t}){const i=e.httpql_filter??"",a=t,s=a?a.requests:null,o=Array.isArray(s)?s:[];return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),i&&b.jsx("span",{className:"text-[#888] text-[13px]",children:Fi(i,150)})]}),o.length>0&&b.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[o.slice(0,20).map((c,d)=>{const h=(c.method??"GET").toUpperCase(),f=c.host??"",p=c.path??"",m=c.response,y=(m==null?void 0:m.statusCode)??null;return b.jsxs("div",{className:"flex gap-2",children:[b.jsx("span",{className:`w-10 shrink-0 font-bold ${TN[h]??"text-[#888]"}`,children:h}),b.jsx("span",{className:"text-[#777] truncate",children:Fi(f+p,180)}),y!=null&&b.jsx("span",{className:`ml-auto shrink-0 ${Zm(y)}`,children:y})]},d)}),o.length>20&&b.jsxs("div",{className:"text-[#555]",children:["... +",o.length-20," more"]})]})]})}function L9({args:e,result:t}){const i=e.request_id,a=e.part??"request",s=e.search_pattern??"",o=t,c=o?o.matches:null,d=Array.isArray(c)?c:[],h=o?o.content??null:null,f=o?!!o.has_more:!1;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),i!=null&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]}),s&&b.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Fi(s,100),"/"]})]}),d.length>0&&b.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((p,m)=>{const y=(p.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),x=(p.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return b.jsxs("div",{children:[y&&b.jsxs("span",{className:"text-[#555]",children:["...",y]}),b.jsx("span",{className:"text-amber-400/80 font-bold",children:p.match}),x&&b.jsxs("span",{className:"text-[#555]",children:[x,"..."]})]},m)}),d.length>5&&b.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),h&&!d.length&&(()=>{const p=h.split(` +`),m=p.slice(0,15).map(x=>Fi(x,kN)).join(` +`),y=f||p.length>15;return b.jsx(br,{className:"text-[#666]",children:m+(y?` +... more content available`:"")})})()]})}function z9({args:e,result:t}){const i=(e.method??"GET").toUpperCase(),a=e.url??"",s=e.headers,o=e.body,c=typeof o=="string"?o:"",d=t,h=d?d.error??null:null,f=d?d.status_code??null:null,p=d?d.response_time_ms??null:null,m=d?d.body:null,y=typeof m=="string"?m:null;return b.jsxs("div",{children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),b.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[b.jsxs("div",{children:[b.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),b.jsx("span",{className:`font-bold ${TN[i]??"text-[#888]"}`,children:i}),b.jsx("span",{className:"text-[#888] ml-1 break-all",children:Fi(a,180)})]}),s&&typeof s=="object"&&Object.entries(s).slice(0,5).map(([x,_])=>b.jsxs("div",{className:"text-[#555] pl-5",children:[x,": ",Zp(String(_),150)]},x))]}),c&&b.jsx(br,{className:"text-[#888]",children:Qp(c,4)}),h&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:Zp(h,150)}),f!=null&&b.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[b.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),b.jsx("span",{className:`font-bold ${Zm(f)}`,children:f}),p!=null&&b.jsxs("span",{className:"text-[#555] ml-2",children:[p,"ms"]})]}),y&&b.jsx(br,{className:"text-[#666]",children:Qp(y,6)})]})}function j9({args:e,result:t}){const i=e.request_id,a=e.modifications,s=t,o=s?s.status_code??null:null,c=s?s.response_time_ms??null:null,d=s?s.body:null,h=typeof d=="string"?d:null;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),i!=null&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&b.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([f,p])=>b.jsxs("div",{children:[b.jsxs("span",{className:"text-orange-400/60",children:[f,":"]})," ",b.jsx("span",{className:"text-[#777]",children:Zp(typeof p=="string"?p:JSON.stringify(p),150)})]},f))}),o!=null&&b.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[b.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),b.jsx("span",{className:`font-bold ${Zm(o)}`,children:o}),c!=null&&b.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),h&&b.jsx(br,{className:"text-[#666]",children:Qp(h,5)})]})}const I9={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function B9({args:e}){const t=e.action??"",i=e.scope_name??"",a=I9[t]??(t||"managing");return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),i&&b.jsx("span",{className:"text-[#888] text-[13px]",children:Fi(i,50)})]})}function U9({args:e}){const t=e.parent_id;return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Fi(String(t),20)]})]})}function H9({args:e}){const t=e.entry_id;return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Fi(String(t),20)]})]})}function $9(e){switch(e.toolName){case"list_requests":return b.jsx(D9,{...e});case"view_request":return b.jsx(L9,{...e});case"send_request":return b.jsx(z9,{...e});case"repeat_request":return b.jsx(j9,{...e});case"scope_rules":return b.jsx(B9,{...e});case"list_sitemap":return b.jsx(U9,{...e});case"view_sitemap_entry":return b.jsx(H9,{...e});default:return b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function q9({args:e}){const t=e.thought??e.content??"";return t?b.jsxs("div",{children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),b.jsx("div",{className:"mt-1.5 italic text-[#888]",children:b.jsx(Ln,{text:t,maxLines:20})})]}):null}function P9({toolName:e,args:t}){if(e==="create_agent"){const i=t.name??t.agent_name??"",a=t.task??"";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),i&&b.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:i})]}),a&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:a,maxLines:15})})]})}if(e==="agent_finish"){const i=t.result_summary??"",a=t.success,s=t.findings,o=Array.isArray(s)?s:void 0;return b.jsxs("div",{children:[b.jsx("span",{className:`font-semibold text-sm ${a===!1?"text-red-400/80":"text-emerald-400/80"}`,children:a===!1?"Agent failed":"Agent completed"}),i&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:i,maxLines:20})}),o&&o.length>0&&b.jsx("div",{className:"mt-1.5 space-y-0.5",children:o.map((c,d)=>b.jsxs("div",{className:"text-[13px] text-[#888]",children:[b.jsx("span",{className:"text-red-400/50 mr-1",children:"•"}),typeof c=="string"?c:JSON.stringify(c)]},d))})]})}if(e==="send_message_to_agent"){const i=t.message??"",a=t.target_agent_id??t.agent_id??"";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),i&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:i,maxLines:20})})]})}if(e==="wait_for_message"){const i=t.reason??"";return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),i&&b.jsx("span",{className:"text-[#888] text-[13px] truncate",children:i})]})}if(e==="stop_agent"){const i=t.target_agent_id??"",a=t.cascade!==!1,s=t.reason??"";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),i&&b.jsx("span",{className:"text-[#888] text-[13px]",children:i.slice(0,16)}),a&&b.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&b.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function F9({args:e,result:t}){const i=e.query??e.search_query??"",a=t,s=a?a.content??null:null,o=a&&!a.success?a.message??null:null;return b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),i&&b.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:i}),o&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:o}),s&&b.jsx("div",{className:"mt-2",children:b.jsx(Ln,{text:s,maxLines:15})})]})}const G9=50,P1=200,F1=25,G1=24,V9=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,Y9=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function X9(e){return e.replace(V9,"")}function xp(e){const t=X9(e);return t.length>P1?t.slice(0,P1-3)+"...":t}function K9(e){return e.replace(Y9,"").trim()}function Z9(e){const t=e.split(` +`);if(t.length<=G9)return t.map(xp).join(` +`);const i=t.length-F1-G1;return[...t.slice(0,F1).map(xp),`... ${i} lines truncated ...`,...t.slice(-G1).map(xp)].join(` +`)}function Q9({args:e,result:t}){const i=e.action??"",a=e.code??e.script??"",s=t;let o=null;s&&typeof s=="object"?o=typeof s.stdout=="string"?s.stdout:null:typeof s=="string"&&(o=s);const c=i==="new_session"?"new session":i==="close"?"close session":i==="list_sessions"?"list sessions":null,d=o?Z9(K9(o)):null;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&b.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&b.jsx(Xm,{code:a,language:"python",collapsible:!0}),d&&b.jsx(br,{className:"text-[#666]",children:d})]})}function W9({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&b.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,o)=>b.jsxs("div",{className:"text-[13px] text-[#888]",children:[b.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},o))})]})}function J9({args:e}){const t=e.name??"Unknown Agent",i=e.task??"";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),b.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),i&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:i,maxLines:15})})]})}function eU(e){return e.toolName==="subagent_start_info"?b.jsx(J9,{...e}):b.jsx(W9,{...e})}function tU({args:e}){const t=e.executive_summary??"",i=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return b.jsxs("div",{className:"space-y-3",children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:t,maxLines:25})})]}),i&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:i,maxLines:25})})]}),a&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:a,maxLines:25})})]}),s&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:s,maxLines:25})})]}),!t&&!i&&!a&&!s&&b.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function nU({toolName:e,args:t,result:i}){if(e==="create_note"){const a=t.title??"",s=t.content??"",o=t.category??"general";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),b.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",o,")"]})]}),a&&b.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:s})})]})}if(e==="delete_note")return b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note removed"});if(e==="update_note"){const a=t.title??"",s=t.content??"";return b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&b.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:s})})]})}if(e==="get_note"){const a=i,s=a&&typeof a=="object"&&a.success?a.note:void 0;return b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",b.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]})]}),s.content&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:s.content})})]})]})}if(e==="list_notes"){const a=i;let s=[];if(a&&typeof a=="object"&&a.success){const o=a.notes;s=Array.isArray(o)?o:[]}return b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?b.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((o,c)=>b.jsxs("div",{className:"text-[13px]",children:[b.jsx("span",{className:"text-[#555] mr-1",children:"-"}),b.jsx("span",{className:"text-[#999]",children:o.title??"(untitled)"}),b.jsxs("span",{className:"text-[#555] ml-1",children:["(",o.category??"general",")"]}),o.content&&b.jsx("div",{className:"ml-3",children:b.jsx(Cs,{text:o.content})})]},c))}):b.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const iU={create_todo:{label:"Task added",Icon:bT},list_todos:{label:"Plan",Icon:h2},update_todo:{label:"Task updated",Icon:mT},mark_todo_done:{label:"Task completed",Icon:r_},mark_todo_pending:{label:"Task reopened",Icon:AT},delete_todo:{label:"Task removed",Icon:IT}};function rU({status:e}){return e==="done"?b.jsx(r_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?b.jsx(w2,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):b.jsx(S2,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function aU({todos:e,highlightId:t}){return b.jsx("div",{className:"space-y-0",children:e.map((i,a)=>{const s=i.status??"pending",o=t&&i.id===t;return b.jsxs("div",{className:`flex items-start gap-2.5 py-1.5 px-2 -mx-2 rounded-md transition-colors ${o?"bg-purple-500/[0.08]":""}`,children:[b.jsx("div",{className:"mt-[1px]",children:b.jsx(rU,{status:s})}),b.jsx("span",{className:`text-[13px] leading-snug ${s==="done"?"text-[#555] line-through":s==="in_progress"?"text-[#bbb]":"text-[#999]"}`,children:i.title??"(untitled)"})]},i.id??a)})})}function sU({toolName:e,args:t,result:i}){const a=iU[e]??{label:"Plan",Icon:NT},s=a.Icon,o=i;if(typeof o=="string"&&o.trim())return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),b.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:o.trim()})]});let c=[],d=null,h;if(o&&typeof o=="object"){if(d=o.error??null,o.success){const p=o.todos;c=Array.isArray(p)?p:[]}h=o.id??t.todo_id??void 0}const f=e!=="list_todos"?h:void 0;return c.length===0&&!d?b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[b.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&b.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&b.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:b.jsx(aU,{todos:c,highlightId:f})})]})}function V1(e){if(e==null)return null;if(typeof e=="string")return e.trim()?e:null;if(typeof e=="object"){const t=e;if(typeof t.__raw=="string")return t.__raw;if(Object.keys(t).length===0)return null;try{return JSON.stringify(e,null,2)}catch{return String(e)}}return String(e)}function AN({toolName:e,args:t,result:i}){const a=V1(t),s=V1(i);return b.jsxs("div",{children:[b.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&b.jsx(br,{className:"text-[#777]",children:a}),s&&b.jsx(br,{className:"text-[#666]",children:s})]})}function lU({args:e}){const i=(e.skills??"").split(",").map(a=>a.trim()).filter(Boolean);return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),i.length>0&&b.jsx("span",{className:"text-[#888] text-[13px]",children:i.join(", ")})]})}const Pu={terminal:{renderer:y9,icon:u_,color:"text-emerald-400"},python:{renderer:Q9,icon:A2,color:"text-yellow-400"},browser:{renderer:_9,icon:em,color:"text-blue-400"},filesystem:{renderer:E9,icon:s_,color:"text-sky-400"},proxy:{renderer:$9,icon:Su,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:R9,icon:OT,color:"text-red-400"},thinking:{renderer:q9,icon:t_,color:"text-purple-400"},agents:{renderer:P9,icon:Wp,color:"text-cyan-400",match:/agent/},search:{renderer:F9,icon:c_,color:"text-amber-400"},lifecycle:{renderer:eU,icon:l_,color:"text-emerald-400"},notes:{renderer:nU,icon:LT,color:"text-amber-400",match:/note/},skills:{renderer:lU,icon:su,color:"text-emerald-400"},todos:{renderer:sU,icon:nT,color:"text-purple-400",match:/todo/},telemetry:{renderer:AN,icon:su,color:"text-[#555]"}},oU={terminal:["exec_command","write_stdin","terminal_execute"],python:["python_action"],browser:["browser_action"],filesystem:["apply_patch","view_image","str_replace_editor","list_files","search_files"],proxy:["list_requests","view_request","repeat_request","list_sitemap","view_sitemap_entry","scope_rules","send_request"],reporting:["create_vulnerability_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_message","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan"],notes:["create_note","delete_note","update_note","list_notes","get_note"],skills:["load_skill"],todos:["create_todo","list_todos","update_todo","mark_todo_done","mark_todo_pending","delete_todo"],telemetry:["sandbox_error_details","llm_error_details"]},cU=Object.fromEntries(Object.entries(oU).flatMap(([e,t])=>t.map(i=>[i,e]))),uU={finish_scan:tU,apply_patch:C9,view_image:M9},dU={agent_finish:{icon:l_,color:"text-cyan-400"},send_message_to_agent:{icon:Bx,color:"text-cyan-400"},wait_for_message:{icon:Bx,color:"text-cyan-400"},view_agent_graph:{icon:z2,color:"text-cyan-400"},stop_agent:{icon:e_,color:"text-red-400"},scan_start_info:{icon:O2,color:"text-emerald-400"},subagent_start_info:{icon:Wp,color:"text-purple-400"},view_image:{icon:Z2,color:"text-sky-400"}},fU=Pu.telemetry;function CN(e){var i;const t=cU[e];if(t)return t;for(const[a,s]of Object.entries(Pu))if((i=s.match)!=null&&i.test(e))return a;return null}function hU(e){const t=uU[e];if(t)return t;const i=CN(e);return i?Pu[i].renderer:AN}function pU(e){const t=dU[e];if(t)return t;const i=CN(e),a=i?Pu[i]:fU;return{icon:a.icon,color:a.color}}const mU=30;function gU({role:e,content:t}){const i=e==="user"||e==="human";return b.jsxs("div",{children:[b.jsx("span",{className:`font-semibold text-sm ${i?"text-blue-400/80":"text-purple-400/80"}`,children:i?"User":"Thinking"}),b.jsx("div",{className:"mt-1.5 italic text-[#888]",children:b.jsx(Ln,{text:t,maxLines:mU})})]})}class bU extends re.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?b.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function xU(e){const t=hU(e.toolName);return b.jsx(bU,{toolName:e.toolName,children:b.jsx(t,{...e})})}function MN(e){if(e==null||typeof e!="string")return e;const t=e.trim();if(!t)return e;try{return JSON.parse(t)}catch{}try{const i=t.replace(/\bNone\b/g,"null").replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/'/g,'"');return JSON.parse(i)}catch{return{__raw:e}}}function ON(e){const t=MN(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function Y1(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function RN(e){var i;const t=(i=e.data)==null?void 0:i.role;return e.type==="chat"&&(t==="user"||t==="human")}const yU={completed:"text-emerald-400 border-emerald-500/30 bg-emerald-500/10",running:"text-blue-400 border-blue-500/30 bg-blue-500/10",waiting:"text-yellow-400 border-yellow-500/30 bg-yellow-500/10",stopped:"text-[#aaa] border-[#333] bg-[#1a1a1a]",crashed:"text-red-400 border-red-500/30 bg-red-500/10",failed:"text-red-400 border-red-500/30 bg-red-500/10"};function vU(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function _U(e,t){var d;const i=new Map;for(const h of e)if(h.parent_id){const f=i.get(h.parent_id)??[];f.push(h.id),i.set(h.parent_id,f)}const a=new Map,s=new Map,o=new Map;for(const h of t)if(h.type==="tool"){if(a.set(h.agent_id,(a.get(h.agent_id)??0)+1),((d=h.data)==null?void 0:d.tool_name)==="create_agent"){const f=ON(h.data.args),p=f.name??f.agent_name??"",m=f.task??"";p&&m&&o.set(p,m)}}else RN(h)||s.set(h.agent_id,(s.get(h.agent_id)??0)+1);const c=new Map;for(const h of e)c.set(h.id,{id:h.id,name:h.name,task:o.get(h.name)??"",status:vU(h.status),parentId:h.parent_id,children:i.get(h.id)??[],createdAt:h.created_at,toolCount:a.get(h.id)??0,messageCount:s.get(h.id)??0});return c}function EU({agent:e,events:t,showHeader:i=!0}){const a=re.useMemo(()=>t.filter(c=>c.agent_id===e.id&&!RN(c)).sort((c,d)=>Y1(c.id)-Y1(d.id)),[t,e.id]),s=a.filter(c=>c.type==="tool").length,o=a.length-s;return b.jsxs("div",{children:[i&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[b.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),b.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${yU[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),b.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),b.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[o," message",o===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?b.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):b.jsx("div",{className:"py-1",children:a.map((c,d)=>{var N,S,E,k,w,O;const h=d===a.length-1,f=c.type==="tool",p=f?String(((N=c.data)==null?void 0:N.tool_name)??"tool"):"",m=f?"":String(((S=c.data)==null?void 0:S.role)??"assistant");let y,x;if(f){const B=pU(p);y=B.icon,x=B.color}else{const B=m==="user"||m==="human";y=B?Wp:t_,x=B?"text-blue-400":"text-purple-400"}const _=f?String(((E=c.data)==null?void 0:E.status)??"completed"):"completed";return b.jsxs("div",{className:"flex gap-3",children:[b.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[b.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${f&&_==="running"?"border-blue-500/40 animate-pulse":f&&_==="failed"?"border-red-500/30":"border-[#222]"}`,children:b.jsx(y,{className:`w-3.5 h-3.5 ${x}`})}),!h&&b.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),b.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:f?b.jsx(xU,{toolName:p,args:ON((k=c.data)==null?void 0:k.args),result:MN((w=c.data)==null?void 0:w.result)??null,status:_}):b.jsx(gU,{role:m,content:String(((O=c.data)==null?void 0:O.content)??"")})})]},c.id)})})]})}const wU={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},NU=80;function SU({agent:e,events:t,onClose:i}){const a=re.useRef(null),s=re.useRef(!1),o=re.useCallback(()=>{const c=a.current;c&&(s.current=c.scrollHeight-c.scrollTop-c.clientHeight{const c=a.current;!c||!s.current||requestAnimationFrame(()=>{c.scrollTo({top:c.scrollHeight,behavior:"smooth"})})},[t]),re.useEffect(()=>{const c=h=>{h.key==="Escape"&&i()};document.addEventListener("keydown",c);const d=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",c),document.body.style.overflow=d}},[i]),b.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4 sm:p-8",onClick:i,role:"dialog","aria-modal":"true","aria-label":`Agent ${e.name}`,children:b.jsxs("div",{className:"relative flex h-[80vh] w-full max-w-5xl flex-col rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl",onClick:c=>c.stopPropagation(),children:[b.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[b.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[b.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${wU[e.status]??"bg-[#888]"}`}),b.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name}),b.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:e.id})]}),b.jsx("button",{type:"button",onClick:i,"aria-label":"Close",className:"flex-shrink-0 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white",children:b.jsx(f_,{className:"h-4 w-4"})})]}),b.jsx("div",{ref:a,onScroll:o,className:"flex-1 overflow-y-auto p-5",children:b.jsx(EU,{agent:e,events:t,showHeader:!1})}),b.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-[#222] px-5 py-3",children:[b.jsx("span",{className:"text-xs text-[#888]",children:"Steer agents live from your terminal."}),b.jsx("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("steer_agent"),className:"text-xs font-medium text-[#60a5fa] hover:underline",children:"Upgrade to Pro to steer agents from the web →"})]})]})})}class Nu extends Error{constructor(t){super(t),this.name="RunParseError"}}const kU=["critical","high","medium","low"];function TU(e){const t=String(e??"").toLowerCase().trim();return kU.includes(t)?t:"low"}function AU(e){if(typeof e=="string"&&e.trim()){const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);if(!Number.isNaN(i.getTime()))return i.toISOString();const a=new Date(e);if(!Number.isNaN(a.getTime()))return a.toISOString()}return new Date().toISOString()}function Ot(e){return typeof e=="string"&&e.length>0?e:null}function CU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function DN(e,t){try{return JSON.parse(e)}catch{throw new Nu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function MU(e){const t=DN(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Nu("run.json is not an object.");const i=t,a=[],s=i.targets_info;if(Array.isArray(s)){for(const x of s)if(x&&typeof x=="object"){const _=x.original;typeof _=="string"&&_&&a.push(_)}}const o=Ot(i.start_time),c=Ot(i.end_time);let d=null;if(o&&c){const x=new Date(o).getTime(),_=new Date(c).getTime();!Number.isNaN(x)&&!Number.isNaN(_)&&_>=x&&(d=Math.round((_-x)/1e3))}let h=null,f=null,p=null,m=null;const y=i.scan_results;if(y&&typeof y=="object"){const x=y;h=Ot(x.executive_summary),f=Ot(x.technical_analysis),p=Ot(x.methodology),m=Ot(x.recommendations)}return{runId:Ot(i.run_id),runName:Ot(i.run_name),targets:a,scanMode:Ot(i.scan_mode),status:Ot(i.status),startTime:o,endTime:c,durationSeconds:d,executiveSummary:h,technicalAnalysis:f,methodology:p,recommendations:m}}function OU(){return{pr_review_id:null,cve:null,cvss:null,potential_risk_saving:null,risk_saving_description:null,impact:null,endpoint:null,method:null,target:null,technical_analysis:null,poc_description:null,poc_script_code:null,code_diff:null,code_file:null,code_before:null,code_after:null,cwe:null,code_locations:null,remediation_steps:null,fix_pr_body:null,evidence:null,assumptions:null,fix_effort:null,cvss_breakdown:null,status_changed_at:null,status_changed_by:null,status_note:null,snoozed_until:null,reopened_at:null,reopened_by:null,original_severity:null,severity_changed_at:null,severity_changed_by:null,severity_override_reason:null,retest_of_vulnerability_id:null}}function RU(e,t,i){const a=e.cwe,s=typeof a=="string"&&a.trim()?[a.trim()]:Array.isArray(a)?a.filter(c=>typeof c=="string"&&c):null;return{...OU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:i,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:TU(e.severity),status:"open",created_at:AU(e.timestamp),cve:Ot(e.cve),cvss:CU(e.cvss),impact:Ot(e.impact),endpoint:Ot(e.endpoint),method:Ot(e.method),target:Ot(e.target),technical_analysis:Ot(e.technical_analysis),poc_description:Ot(e.poc_description),poc_script_code:Ot(e.poc_script_code),cwe:s,code_locations:Array.isArray(e.code_locations)?e.code_locations:null,remediation_steps:Ot(e.remediation_steps),fix_pr_body:Ot(e.fix_pr_body),evidence:Ot(e.evidence),assumptions:Ot(e.assumptions),fix_effort:Ot(e.fix_effort)??null,cvss_breakdown:e.cvss_breakdown??null}}function DU(e,t=null){const i=DN(e,"vulnerabilities.json");if(!Array.isArray(i))throw new Nu("vulnerabilities.json is not a JSON array.");return i.map((a,s)=>{if(!a||typeof a!="object")throw new Nu(`vulnerabilities.json entry #${s+1} is not an object.`);return RU(a,s,t)})}function LU(e){const t={critical:0,high:0,medium:0,low:0};for(const i of e)t[i.severity]+=1;return t}async function Vs(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function Fu(e){return e?`?run=${encodeURIComponent(e)}`:""}async function LN(e){const t=await Vs("/api/run"+Fu(e)),i=MU(JSON.stringify(t)),a=t.finished===!0;return{summary:i,raw:t,finished:a}}async function zN(e,t){const i=await Vs("/api/vulnerabilities"+Fu(t));return DU(JSON.stringify(i),e)}async function zU(e){const t=await Vs("/api/report"+Fu(e));return(t==null?void 0:t.markdown)??null}async function jN(e){const t=await Vs("/api/transcript"+Fu(e));return{agents:Array.isArray(t==null?void 0:t.agents)?t.agents:[],events:Array.isArray(t==null?void 0:t.events)?t.events:[]}}async function X1(e){const{summary:t,raw:i,finished:a}=await LN(e),[s,o,c]=await Promise.all([zN(t.runId,e).catch(()=>[]),zU(e).catch(()=>null),jN(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:i,finished:a,vulnerabilities:s,reportMarkdown:o,transcript:c}}async function Gu(e,t){const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),cache:"no-store"});let a={};try{const s=await i.json();s&&typeof s=="object"&&(a=s)}catch{}return{ok:i.ok,status:i.status,data:a}}async function jU(){const e=await Vs("/api/runs");return{locked:(e==null?void 0:e.locked)??!0,count:typeof(e==null?void 0:e.count)=="number"?e.count:0,runs:Array.isArray(e==null?void 0:e.runs)?e.runs:[]}}async function IU(){const e=await Vs("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function BU(e){const{ok:t,data:i}=await Gu("/api/auth/otp/start",{email:e});return t&&i.ok===!0?{ok:!0}:{ok:!1,error:String(i.error??"unavailable")}}async function UU(e,t){const{ok:i,data:a}=await Gu("/api/auth/otp/verify",{email:e,code:t});return i&&a.verified===!0?{verified:!0,email:String(a.email??e)}:{verified:!1,error:String(a.error??"invalid_code")}}async function HU(){await Gu("/api/auth/forget",{})}async function $U(e){const{ok:t,data:i}=await Gu("/api/report/send",e?{run:e}:{});return t&&i.ok===!0?{ok:!0,password:String(i.password??""),filename:String(i.filename??"strix-report.pdf")}:{ok:!1,error:String(i.error??"unavailable")}}const qU=[{title:"PR Reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:Jp},{title:"Repositories",desc:"Connect your org's repositories and domains.",slug:"repositories",icon:W2},{title:"Domains",desc:"Connect your org's repositories and domains.",slug:"domains",icon:em},{title:"Integrations",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:yT},{title:"Members",desc:"Invite your team and set roles.",slug:"members",icon:$T},{title:"Pentests",desc:"Launch deeper pentests on managed infra.",slug:"pentests",icon:c_},{title:"Dashboard",desc:"See every project and finding in one place.",slug:"dashboard",icon:eT},{title:"Issues",desc:"Track and triage findings across your org.",slug:"platform_issues",icon:UT},{title:"Chat",desc:"Ask the agents about any finding.",slug:"chat",icon:dT},{title:"Networks",desc:"Map and monitor your network exposure.",slug:"networks",icon:hT},{title:"Knowledge",desc:"Give agents context about your systems.",slug:"knowledge",icon:D2}];function PU({view:e,onSelectView:t,issuesCount:i,agentCount:a,runCount:s,verified:o,email:c,onOpenEmail:d,onOpenHistory:h,onForget:f}){return b.jsx("aside",{className:"hidden w-60 flex-shrink-0 border-r border-[#222] lg:block",children:b.jsxs("div",{className:"sticky top-0 flex h-screen flex-col overflow-y-auto px-3 py-4",children:[b.jsxs("div",{className:"px-1.5",children:[b.jsxs("a",{href:"https://app.strix.ai",target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("logo"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100",title:"Open Strix Cloud",children:[b.jsx("img",{src:"./logo.png",alt:"Strix",className:"h-8 w-10 object-cover"}),b.jsx("span",{className:"text-base font-medium tracking-tight text-white",children:"Strix"})]}),b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("sidebar_start_free"),className:"mt-3 flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-lg bg-white px-3 py-2 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:["Start free",b.jsx(Su,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),o&&c&&b.jsxs("div",{className:"mt-2.5 flex items-center gap-2 rounded-lg px-2.5 py-2",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[b.jsx(nm,{className:"h-3.5 w-3.5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"truncate text-[11px] text-[#666]",children:"Signed in as"}),b.jsx("p",{className:"truncate text-xs text-[#aaa]",title:c,children:c})]}),b.jsx("button",{onClick:f,title:"Forget this email on this machine",className:"flex-shrink-0 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Forget",children:b.jsx(lT,{className:"h-3.5 w-3.5"})})]})]}),b.jsxs(K1,{label:"This run",children:[b.jsx(Vl,{icon:s_,label:"Overview",active:e==="overview",onClick:()=>t("overview")}),b.jsx(Vl,{icon:c2,label:"Issues",count:i>0?i:void 0,active:e==="issues",onClick:()=>t("issues")}),a>0&&b.jsx(Vl,{icon:d_,label:"Agents",count:a,active:e==="agents",onClick:()=>t("agents")})]}),b.jsxs(K1,{label:"Your runs",children:[b.jsx(Vl,{icon:Ls,label:"Past runs",count:s>0?s:void 0,active:e==="history",onClick:h}),b.jsx(Vl,{icon:tm,label:"Email report",onClick:d})]}),b.jsxs("div",{className:"mt-6",children:[b.jsx("p",{className:"px-2.5 pb-1 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Platform"}),b.jsx("p",{className:"px-2.5 pb-2 text-[11px] leading-snug text-[#666]",children:"Get the most out of Strix for your team."}),b.jsx("div",{className:"space-y-0.5",children:qU.map(p=>b.jsx(KT,{item:p},p.slug))})]})]})})}function K1({label:e,children:t}){return b.jsxs("div",{className:"mt-6",children:[b.jsx("p",{className:"px-2.5 pb-1.5 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:e}),b.jsx("div",{className:"space-y-0.5",children:t})]})}function Vl({icon:e,label:t,count:i,active:a,onClick:s}){return b.jsxs("button",{onClick:s,className:`flex w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm transition-colors ${a?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:a?{background:"rgba(255,255,255,0.12)"}:void 0,children:[b.jsx(e,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"}),b.jsx("span",{className:"flex-1 text-left",children:t}),i!=null&&b.jsx("span",{className:"text-xs text-[#666] tabular-nums",children:i})]})}const FU=[{key:"critical",dot:"bg-red-500",text:"text-red-500"},{key:"high",dot:"bg-orange-500",text:"text-orange-500"},{key:"medium",dot:"bg-yellow-500",text:"text-yellow-500"},{key:"low",dot:"bg-blue-500",text:"text-blue-500"}];function GU({counts:e}){const t=FU.filter(i=>e[i.key]>0);return t.length===0?b.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):b.jsx("div",{className:"flex items-center gap-3",children:t.map(i=>b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx("span",{className:`h-2 w-2 rounded-full ${i.dot}`,"aria-hidden":"true"}),b.jsx("span",{className:`text-xs tabular-nums ${i.text}`,children:e[i.key]})]},i.key))})}function Z1(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);return Number.isNaN(i.getTime())?null:i.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function VU({runs:e,activeRun:t,onSelectRun:i,onVerifyClick:a}){const s=(e==null?void 0:e.count)??0;return!e||e.locked?b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[b.jsx("div",{className:"mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:b.jsx(Ls,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),b.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),b.jsxs("p",{className:"mx-auto mt-1.5 max-w-md text-sm text-[#888]",children:["You have ",s," past ",s===1?"run":"runs"," on this machine. Verify your email to browse them here."]}),b.jsx("button",{onClick:a,className:"mt-4 cursor-pointer rounded-lg bg-white px-4 py-2 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:"Verify email to unlock"}),b.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[b.jsx(u_,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",b.jsx("code",{className:"font-mono text-[#888]",children:"strix view "})]})]}):e.runs.length===0?b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:"No past runs found on this machine yet."}):b.jsx("div",{className:"space-y-2",children:e.runs.map(o=>{const c=o.name===t,d=Z1(o.start_time)??Z1(o.end_time);return b.jsxs("button",{onClick:()=>i(o.name),className:`group flex w-full cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 text-left transition-colors ${c?"border-[#444] bg-[rgba(255,255,255,0.04)]":"border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"}`,children:[b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"truncate text-sm font-medium text-white",children:o.name}),c&&b.jsx("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-400",style:{border:"1px solid rgba(16,185,129,0.3)"},children:"Active"})]}),b.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-[#666]",children:[o.target&&b.jsx("span",{className:"truncate font-mono text-[#888]",children:o.target}),o.target&&(o.scan_mode||d||o.status)&&b.jsx("span",{className:"text-[#333]",children:"·"}),o.scan_mode&&b.jsx("span",{className:"capitalize",children:o.scan_mode}),d&&b.jsx("span",{className:"text-[#333]",children:"·"}),d&&b.jsx("span",{children:d}),o.status&&b.jsx("span",{className:"text-[#333]",children:"·"}),o.status&&b.jsx("span",{className:"capitalize",children:o.status})]})]}),b.jsx(GU,{counts:o.severity_counts}),b.jsx(b2,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},o.name)})})}const YU={rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},XU={forbidden:"This email was unsubscribed from Strix, so we cannot send to it.",too_large:"This report is too large to email. Try a smaller run.",unavailable:"The email service is unavailable right now. Try again shortly."};function KU({open:e,onClose:t,activeRun:i,auth:a,onVerified:s}){const o=(a==null?void 0:a.verified)===!0,[c,d]=re.useState("disclosure"),[h,f]=re.useState(""),[p,m]=re.useState(""),[y,x]=re.useState(!1),[_,N]=re.useState(null),[S,E]=re.useState(null),[k,w]=re.useState(""),[O,B]=re.useState(""),[R,H]=re.useState(!1),I=re.useRef("");if(re.useEffect(()=>{e&&(d("disclosure"),m(""),x(!1),N(null),E(null),w(""),B(""),H(!1),f((a==null?void 0:a.email)??""))},[e,a==null?void 0:a.email]),re.useEffect(()=>{if(!e)return;const j=M=>{M.key==="Escape"&&c!=="password"&&t()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[e,c,t]),!e)return null;const K=async()=>{d("sending"),N(null);const j=await $U(i);if(j.ok){w(j.password),B(j.filename),d("password");return}if(j.error==="reverify"||j.error==="unverified"){E("Your verification expired. Enter your email to verify again."),d("email");return}N(XU[j.error]??"Could not send the report. Try again."),d("disclosure")},L=()=>{N(null),E(null),o?K():d("email")},q=async()=>{const j=h.trim();if(!j){N("Enter your email to continue.");return}x(!0),N(null);const M=await BU(j);x(!1),M.ok?(E(`We sent a 6-digit code to ${j}.`),d("code")):N(YU[M.error]??"Could not send a code. Try again.")},X=async()=>{const j=p.trim();if(j.length<4){N("Enter the 6-digit code from your email.");return}x(!0),N(null);const M=await UU(h.trim(),j);x(!1),M.verified?(I.current=M.email,s(),K()):N("That code did not match. Check it and try again.")},G=async()=>{try{await navigator.clipboard.writeText(k),H(!0),setTimeout(()=>H(!1),1500)}catch{}},C=I.current||(a==null?void 0:a.email)||h.trim();return b.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":"Email an encrypted report",children:[b.jsx("div",{className:"absolute inset-0 bg-black/70",onClick:()=>c!=="password"&&t()}),b.jsxs("div",{className:"relative z-10 w-full max-w-md rounded-2xl bg-[#0a0a0a] p-6 shadow-2xl",style:{border:"1px solid #2a2a2a"},children:[b.jsx("button",{onClick:t,className:"absolute right-4 top-4 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Close",children:b.jsx(f_,{className:"h-5 w-5"})}),b.jsxs("div",{className:"mb-4 flex items-center gap-2.5",children:[b.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:b.jsx(tm,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),b.jsxs("div",{children:[b.jsx("h2",{className:"text-base font-semibold text-white",children:"Email an encrypted PDF"}),b.jsx("p",{className:"text-xs text-[#666]",children:"Unlock with your email"})]})]}),_&&b.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[b.jsx(i_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),b.jsx("p",{className:"text-xs text-red-300",children:_})]}),S&&!_&&c!=="password"&&b.jsx("p",{className:"mb-4 text-xs text-[#888]",children:S}),c==="disclosure"&&b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{className:"space-y-2.5 rounded-lg p-3.5",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[b.jsxs("div",{className:"flex items-start gap-2.5",children:[b.jsx(nm,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),b.jsxs("p",{className:"text-xs leading-relaxed text-[#aaa]",children:["Viewing stays local and nothing is uploaded. Emailing is an explicit opt-in: we send an ",b.jsx("span",{className:"text-white",children:"encrypted PDF"}),"."]})]}),b.jsxs("div",{className:"flex items-start gap-2.5",children:[b.jsx(aT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),b.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:"The report is encrypted with a password that only you hold. Strix cannot read it and never stores it. We collect only your email so we can send it."})]})]}),b.jsx("button",{onClick:L,className:"w-full cursor-pointer rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:o?"Email me the encrypted PDF":"Continue with your email"}),o&&(a==null?void 0:a.email)&&b.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",a.email]})]}),c==="email"&&b.jsxs("form",{className:"space-y-4",onSubmit:j=>{j.preventDefault(),q()},children:[b.jsxs("label",{className:"block",children:[b.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your email"}),b.jsx("input",{type:"email",autoFocus:!0,value:h,onChange:j=>f(j.target.value),placeholder:"you@company.com",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),b.jsxs("button",{type:"submit",disabled:y,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[y&&b.jsx(Jf,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),c==="code"&&b.jsxs("form",{className:"space-y-4",onSubmit:j=>{j.preventDefault(),X()},children:[b.jsxs("label",{className:"block",children:[b.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),b.jsx("input",{inputMode:"numeric",autoFocus:!0,value:p,onChange:j=>m(j.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),b.jsxs("button",{type:"submit",disabled:y,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[y&&b.jsx(Jf,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Verify and send"]}),b.jsx("button",{type:"button",onClick:()=>{d("email"),N(null),E(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]}),c==="sending"&&b.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[b.jsx(Jf,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),b.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),c==="password"&&b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-emerald-500/30 bg-emerald-500/5 px-3 py-2.5",children:[b.jsx(Ds,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),b.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",C,". Open the attached PDF with this password."]})]}),b.jsxs("div",{children:[b.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),b.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[b.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:k}),b.jsxs("button",{onClick:G,className:"flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-xs text-[#aaa] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",style:{border:"1px solid #2a2a2a"},children:[R?b.jsx(Ds,{className:"h-3.5 w-3.5"}):b.jsx(eo,{className:"h-3.5 w-3.5"}),R?"Copied":"Copy"]})]}),b.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",b.jsx("span",{className:"font-mono text-[#888]",children:O})]})]}),b.jsx("button",{onClick:t,className:"w-full cursor-pointer rounded-lg px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-[rgba(255,255,255,0.06)]",style:{border:"1px solid #2a2a2a"},children:"Done"})]})]})]})}const ZU="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix. Emailing a report is an explicit opt-in that sends an encrypted copy only you can open.",Q1=["critical","high","medium","low"],QU=500,WU=[{title:"One-click autofix + open a fix PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:su},{title:"Export SOC 2 / ISO 27001 report",desc:"Share an auditor-ready report with your team.",slug:"compliance",icon:I2}],JU=[{title:"Scheduled pentesting",desc:"Continuous coverage for your whole org.",slug:"scheduled",icon:d2},{title:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:o_},{title:"PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:Jp}];function eH(){const[e,t]=re.useState(null),[i,a]=re.useState(null),[s,o]=re.useState(null),[c,d]=re.useState(null),[h,f]=re.useState("overview"),[p,m]=re.useState(null),[y,x]=re.useState(null),[_,N]=re.useState(!1),S=re.useCallback(async()=>{try{m(await IU())}catch{}},[]),E=re.useCallback(async()=>{try{x(await jU())}catch{}},[]);re.useEffect(()=>{S(),E()},[S,E]);const k=re.useRef(!1);re.useEffect(()=>{let q=!1,X;k.current=!1;const G=()=>{X=setTimeout(C,QU)},C=async()=>{if(!q)try{const{summary:j,raw:M,finished:U}=await LN(e);if(q)return;if(U&&!k.current){k.current=!0;const A=await X1(e);q||a(A);return}const[Y,Z]=await Promise.all([jN(e).catch(()=>({agents:[],events:[]})),zN(j.runId,e).catch(()=>[])]);if(q)return;a(A=>({summary:j,raw:M,finished:U,transcript:Y,vulnerabilities:Z,reportMarkdown:(A==null?void 0:A.reportMarkdown)??null})),G()}catch(j){if(q)return;o(j instanceof Error?j.message:"Could not load run data."),G()}};return(async()=>{try{const j=await X1(e);if(q)return;a(j),j.finished?k.current=!0:G()}catch(j){if(q)return;o(j instanceof Error?j.message:"Could not load run data."),G()}})(),()=>{q=!0,X&&clearTimeout(X)}},[e]);const w=re.useMemo(()=>i?LU(i.vulnerabilities):null,[i]),O=(i==null?void 0:i.vulnerabilities.find(q=>q.id===c))??null,B=(i==null?void 0:i.transcript.agents.length)??0,R=(p==null?void 0:p.verified)===!0,H=re.useCallback(q=>{t(q),d(null),a(null),o(null),f("overview")},[]),I=re.useCallback(()=>{qi("email_report"),N(!0)},[]),K=re.useCallback(()=>{qi("history_unlock"),E(),f("history")},[E]),L=re.useCallback(async()=>{await HU(),await S(),await E()},[S,E]);return b.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[b.jsx(PU,{view:h,onSelectView:q=>{q==="history"?K():f(q)},issuesCount:(i==null?void 0:i.vulnerabilities.length)??0,agentCount:B,runCount:(y==null?void 0:y.count)??0,verified:R,email:(p==null?void 0:p.email)??null,onOpenEmail:I,onOpenHistory:K,onForget:()=>void L()}),b.jsxs("div",{className:"flex-1 min-w-0",children:[b.jsx("div",{className:"border-b border-[#222]",children:b.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-4 flex items-center gap-1.5",children:[b.jsxs("a",{href:"https://app.strix.ai",target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("logo"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[b.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),b.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),b.jsx("span",{className:"text-xs text-[#666]",children:"Local results"}),i&&b.jsx(nH,{finished:i.finished}),b.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[R&&y&&!y.locked&&y.runs.length>0&&b.jsx(tH,{runs:y,activeRun:e,launchedName:(i==null?void 0:i.summary.runName)??(i==null?void 0:i.summary.runId)??"Current run",onSelect:H}),b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("sidebar_start_free"),className:"inline-flex items-center gap-1 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity hover:opacity-90",children:["Start free",b.jsx(Su,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),b.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-8 space-y-6",children:[b.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[b.jsx(nm,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-emerald-400","aria-hidden":"true"}),b.jsx("p",{className:"text-sm text-[#aaa] leading-relaxed",children:ZU})]}),s&&!i&&h!=="history"&&b.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[b.jsx(i_,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),b.jsx("p",{className:"text-sm text-red-300",children:s})]}),h==="history"?b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ls,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),b.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),b.jsx(VU,{runs:y,activeRun:e,onSelectRun:H,onVerifyClick:I})]}):!i&&!s?b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[b.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),b.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):i&&w?b.jsxs(b.Fragment,{children:[b.jsx(rH,{summary:i.summary}),b.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[b.jsx(vp,{active:h==="overview",onClick:()=>f("overview"),children:"Overview"}),b.jsxs(vp,{active:h==="issues",onClick:()=>f("issues"),children:["Issues",i.vulnerabilities.length>0?` (${i.vulnerabilities.length})`:""]}),B>0&&b.jsxs(vp,{active:h==="agents",onClick:()=>f("agents"),children:["Agents (",B,")"]})]}),h==="overview"?b.jsx(cH,{summary:i.summary,counts:w,total:i.vulnerabilities.length,reportMarkdown:i.reportMarkdown,onOpenEmail:I}):h==="agents"&&B>0?b.jsx(uH,{run:i}):O?b.jsxs("div",{className:"space-y-4",children:[b.jsxs("button",{onClick:()=>d(null),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] hover:text-white transition-colors",children:[b.jsx(t2,{className:"w-4 h-4"})," Back to all findings"]}),b.jsx(v4,{vulnerability:O})]}):b.jsx(aH,{vulnerabilities:i.vulnerabilities,finished:i.finished,onSelect:q=>d(q)})]}):null]})]}),b.jsx(KU,{open:_,onClose:()=>N(!1),activeRun:e,auth:p,onVerified:()=>{S(),E()}})]})}function tH({runs:e,activeRun:t,launchedName:i,onSelect:a}){const[s,o]=re.useState(!1),c=t??i;return b.jsxs("div",{className:"relative",children:[b.jsxs("button",{onClick:()=>o(d=>!d),onBlur:()=>setTimeout(()=>o(!1),150),className:"flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs text-[#aaa] transition-colors hover:text-white",style:{border:"1px solid #2a2a2a"},children:[b.jsx(Ls,{className:"w-3.5 h-3.5","aria-hidden":"true"}),b.jsx("span",{className:"max-w-[160px] truncate",children:c}),b.jsx(n_,{className:"w-3.5 h-3.5","aria-hidden":"true"})]}),s&&b.jsx("div",{className:"absolute right-0 z-50 mt-1.5 max-h-80 w-64 overflow-y-auto rounded-lg py-1 shadow-xl",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e.runs.map(d=>{const h=d.name===t;return b.jsxs("button",{onMouseDown:()=>a(d.name),className:`flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-colors hover:bg-[rgba(255,255,255,0.06)] ${h?"text-white":"text-[#aaa]"}`,children:[b.jsxs("span",{className:"min-w-0 flex-1",children:[b.jsx("span",{className:"block truncate",children:d.name}),d.target&&b.jsx("span",{className:"block truncate font-mono text-[#666]",children:d.target})]}),h&&b.jsx("span",{className:"h-1.5 w-1.5 flex-shrink-0 rounded-full bg-emerald-400"})]},d.name)})})]})}function nH({finished:e}){return e?b.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[b.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):b.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[b.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[b.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),b.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function iH(e){if(e==null)return null;if(e<60)return`${e}s`;const t=Math.floor(e/60);return t<60?`${t}m`:`${Math.floor(t/60)}h ${t%60}m`}function rH({summary:e}){const t=iH(e.durationSeconds);return b.jsxs("div",{children:[b.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.runName??e.runId??"Scan results"}),b.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-[#888]",children:[e.targets.length>0&&b.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&b.jsx(yp,{label:e.scanMode}),t&&b.jsx(yp,{label:t}),e.status&&b.jsx(yp,{label:e.status})]})]})}function yp({label:e}){return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-[#333]",children:"·"}),b.jsx("span",{className:"capitalize",children:e})]})}function aH({vulnerabilities:e,finished:t,onSelect:i}){const a=[...e].sort((s,o)=>Q1.indexOf(s.severity)-Q1.indexOf(o.severity));return a.length===0?b.jsxs("div",{className:"space-y-4",children:[b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:t?"No findings in this run.":"No findings yet. The scan is still running…"}),t&&b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),b.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),b.jsx(Ms,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:o_})]})]}):b.jsx("div",{className:"space-y-2",children:a.map(s=>b.jsxs("button",{onClick:()=>i(s.id),className:"cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3",children:[b.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${im(s.severity)}`,"aria-hidden":"true"}),b.jsxs("span",{className:"flex-1 min-w-0",children:[b.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&b.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),b.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${h_[s.severity]}`,children:s.severity})]},s.id))})}function sH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function lH(e){const t=[];let i=null;for(const a of e.split(` +`)){const s=a.match(/^#{1,6}\s+(.*)$/);if(s){const o=s[1].trim().toLowerCase();if(o===i)continue;i=o}else a.trim()!==""&&(i=null);t.push(a)}return t.join(` +`)}function oH({onOpenEmail:e}){return b.jsx("button",{onClick:e,className:"group w-full cursor-pointer rounded-xl border border-emerald-500/25 bg-emerald-500/[0.06] p-4 text-left transition-colors hover:border-emerald-500/40",children:b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{border:"1px solid rgba(16,185,129,0.3)",background:"rgba(16,185,129,0.08)"},children:b.jsx(tm,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF of this report"}),b.jsx("p",{className:"mt-0.5 text-xs text-[#888]",children:"Email yourself an encrypted PDF of this report. Unlock with your email."})]}),b.jsx("span",{className:"flex-shrink-0 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity group-hover:opacity-90",children:"Email report"})]})})}function cH({summary:e,counts:t,total:i,reportMarkdown:a,onOpenEmail:s}){const o=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,c])=>!!c).map(([c,d])=>({title:c,content:sH(d)}));return b.jsxs("div",{className:"space-y-6",children:[i>0&&b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:b.jsx(_4,{findings:{total:i,...t}})}),b.jsx(oH,{onOpenEmail:s}),o.length>0?b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:o.map(c=>b.jsx(na,{title:c.title,content:c.content},c.title))}):a?b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:b.jsx(na,{content:lH(a)})}):i===0&&b.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."}),b.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:WU.map(c=>b.jsx(Ux,{item:c},c.slug))}),b.jsxs("div",{children:[b.jsx("p",{className:"mb-2 text-sm font-semibold text-white",children:"Continuous coverage for your org"}),b.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:JU.map(c=>b.jsx(Ux,{item:c},c.slug))})]})]})}function vp({active:e,onClick:t,children:i}){return b.jsxs("button",{onClick:t,className:`cursor-pointer relative pb-2.5 text-sm font-semibold transition-colors ${e?"text-white":"text-[#666] hover:text-white"}`,children:[i,e&&b.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function uH({run:e}){const{agents:t,events:i}=e.transcript,a=re.useMemo(()=>_U(t,i),[t,i]),[s,o]=re.useState(null),c=s?t.find(d=>d.id===s)??null:null;return b.jsxs("div",{className:"space-y-5",children:[b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(d_,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),b.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),b.jsxs("span",{className:"text-xs text-[#666]",children:[t.length," agent",t.length===1?"":"s"]})]}),b.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),b.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:b.jsx(u9,{agents:a,selectedAgentId:s,onSelectAgent:d=>o(d),eventsLoaded:!0,eventsEmpty:a.size===0,scanCompleted:e.finished})})]}),b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsx("p",{className:"text-sm font-semibold text-white",children:"Drive the agents live"}),b.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Steer and re-run this scan from the web."}),b.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[b.jsx(Ms,{label:"Steer agents from the web",desc:"Guide the agents live while they scan.",slug:"live_scan_prompt",icon:ET}),b.jsx(Ms,{label:"Re-run in Strix Cloud with more depth",desc:"Run this scan on managed infra with more depth.",slug:"live_scan",icon:kT})]})]}),c&&b.jsx(SU,{agent:c,events:i,onClose:()=>o(null)})]})}Xk.createRoot(document.getElementById("root")).render(b.jsx(re.StrictMode,{children:b.jsx(eH,{})})); diff --git a/strix/viewer/viewer_dist/assets/index-Dffipx3y.css b/strix/viewer/viewer_dist/assets/index-Dffipx3y.css new file mode 100644 index 00000000..73a092e0 --- /dev/null +++ b/strix/viewer/viewer_dist/assets/index-Dffipx3y.css @@ -0,0 +1,10 @@ +pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: GitHub Dark + Description: Dark theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-dark + Current colors taken from GitHub's CSS +*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-400:oklch(82.8% .189 84.429);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-400:oklch(78.9% .154 211.53);--color-sky-400:oklch(74.6% .16 232.661);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{inset-inline:0}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing) * 4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-\[1px\]{margin-top:1px}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\!h-1\.5{height:calc(var(--spacing) * 1.5)!important}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-\[30px\]{height:30px}.h-\[72px\]{height:72px}.h-\[80vh\]{height:80vh}.h-\[480px\]{height:480px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[400px\]{max-height:400px}.max-h-\[1200px\]{max-height:1200px}.min-h-screen{min-height:100vh}.\!w-1\.5{width:calc(var(--spacing) * 1.5)!important}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-28{width:calc(var(--spacing) * 28)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-\[1px\]{width:1px}.w-\[30px\]{width:30px}.w-\[180px\]{width:180px}.w-\[260px\]{width:260px}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[72rem\]{max-width:72rem}.max-w-\[75\%\]{max-width:75%}.max-w-\[80\%\]{max-width:80%}.max-w-\[160px\]{max-width:160px}.max-w-\[240px\]{max-width:240px}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.min-w-\[80px\]{min-width:80px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\!border-none{--tw-border-style:none!important;border-style:none!important}.\!border-\[\#222\]{border-color:#222!important}.border-\[\#1a1a1a\]{border-color:#1a1a1a}.border-\[\#2a2a2a\]{border-color:#2a2a2a}.border-\[\#222\]{border-color:#222}.border-\[\#333\]{border-color:#333}.border-\[\#444\]{border-color:#444}.border-\[\#191919\]{border-color:#191919}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-blue-500\/40{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/40{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/25{border-color:#00bb7f40}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/25{border-color:color-mix(in oklab,var(--color-emerald-500) 25%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-gray-500\/20{border-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.border-gray-500\/20{border-color:color-mix(in oklab,var(--color-gray-500) 20%,transparent)}}.border-orange-500\/20{border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/20{border-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500) 30%,transparent)}}.border-purple-500\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/20{border-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-red-500\/25{border-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.border-red-500\/25{border-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.border-white\/\[0\.06\]{border-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.06\]{border-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.border-yellow-500\/20{border-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/20{border-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.border-yellow-500\/25{border-color:#edb20040}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/25{border-color:color-mix(in oklab,var(--color-yellow-500) 25%,transparent)}}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.\!bg-\[\#0a0a0a\]{background-color:#0a0a0a!important}.\!bg-\[\#444\]{background-color:#444!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#0a0a0a\]{background-color:#0a0a0a}.bg-\[\#1a1a1a\]{background-color:#1a1a1a}.bg-\[\#1e1e1e\]{background-color:#1e1e1e}.bg-\[\#2a2a2a\]{background-color:#2a2a2a}.bg-\[\#111\]{background-color:#111}.bg-\[\#222\]{background-color:#222}.bg-\[\#555\]{background-color:#555}.bg-\[\#888\]{background-color:#888}.bg-\[\#252525\]{background-color:#252525}.bg-\[rgba\(255\,255\,255\,0\.02\)\]{background-color:#ffffff05}.bg-\[rgba\(255\,255\,255\,0\.04\)\]{background-color:#ffffff0a}.bg-black{background-color:var(--color-black)}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-blue-500\/\[0\.12\]{background-color:#3080ff1f}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-blue-500) 12%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/5{background-color:#00bb7f0d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/5{background-color:color-mix(in oklab,var(--color-emerald-500) 5%,transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/\[0\.06\]{background-color:#00bb7f0f}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/\[0\.06\]{background-color:color-mix(in oklab,var(--color-emerald-500) 6%,transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-500\/10{background-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.bg-gray-500\/10{background-color:color-mix(in oklab,var(--color-gray-500) 10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-purple-500\/\[0\.08\]{background-color:#ac4bff14}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-purple-500) 8%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-500\/\[0\.12\]{background-color:#fb2c361f}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-red-500) 12%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/8{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/8{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-white\/60{background-color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.bg-white\/\[0\.015\]{background-color:#ffffff04}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.015\]{background-color:color-mix(in oklab,var(--color-white) 1.5%,transparent)}}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500) 15%,transparent)}}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.object-cover{object-fit:cover}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-0{padding-inline:0}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-\[5px\]{padding-top:5px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-1\.5{padding-left:calc(var(--spacing) * 1.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.4em\]{--tw-tracking:.4em;letter-spacing:.4em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#60a5fa\]{color:#60a5fa}.text-\[\#333\]{color:#333}.text-\[\#444\]{color:#444}.text-\[\#555\]{color:#555}.text-\[\#666\]{color:#666}.text-\[\#777\]{color:#777}.text-\[\#888\]{color:#888}.text-\[\#999\]{color:#999}.text-\[\#aaa\]{color:#aaa}.text-\[\#bbb\]{color:#bbb}.text-\[\#ddd\]{color:#ddd}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/80{color:#fcbb00cc}@supports (color:color-mix(in lab,red,red)){.text-amber-400\/80{color:color-mix(in oklab,var(--color-amber-400) 80%,transparent)}}.text-black{color:var(--color-black)}.text-blue-400{color:var(--color-blue-400)}.text-blue-400\/80{color:#54a2ffcc}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/80{color:color-mix(in oklab,var(--color-blue-400) 80%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-400\/80{color:#00d2efcc}@supports (color:color-mix(in lab,red,red)){.text-cyan-400\/80{color:color-mix(in oklab,var(--color-cyan-400) 80%,transparent)}}.text-emerald-200{color:var(--color-emerald-200)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/30{color:#00d2944d}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/30{color:color-mix(in oklab,var(--color-emerald-400) 30%,transparent)}}.text-emerald-400\/60{color:#00d29499}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/60{color:color-mix(in oklab,var(--color-emerald-400) 60%,transparent)}}.text-emerald-400\/70{color:#00d294b3}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/70{color:color-mix(in oklab,var(--color-emerald-400) 70%,transparent)}}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400) 80%,transparent)}}.text-gray-400{color:var(--color-gray-400)}.text-orange-400{color:var(--color-orange-400)}.text-orange-400\/60{color:#ff8b1a99}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/60{color:color-mix(in oklab,var(--color-orange-400) 60%,transparent)}}.text-orange-400\/80{color:#ff8b1acc}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/80{color:color-mix(in oklab,var(--color-orange-400) 80%,transparent)}}.text-orange-500{color:var(--color-orange-500)}.text-purple-400{color:var(--color-purple-400)}.text-purple-400\/60{color:#c07eff99}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/60{color:color-mix(in oklab,var(--color-purple-400) 60%,transparent)}}.text-purple-400\/70{color:#c07effb3}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/70{color:color-mix(in oklab,var(--color-purple-400) 70%,transparent)}}.text-purple-400\/80{color:#c07effcc}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/80{color:color-mix(in oklab,var(--color-purple-400) 80%,transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-400\/30{color:#ff65684d}@supports (color:color-mix(in lab,red,red)){.text-red-400\/30{color:color-mix(in oklab,var(--color-red-400) 30%,transparent)}}.text-red-400\/50{color:#ff656880}@supports (color:color-mix(in lab,red,red)){.text-red-400\/50{color:color-mix(in oklab,var(--color-red-400) 50%,transparent)}}.text-red-400\/60{color:#ff656899}@supports (color:color-mix(in lab,red,red)){.text-red-400\/60{color:color-mix(in oklab,var(--color-red-400) 60%,transparent)}}.text-red-400\/70{color:#ff6568b3}@supports (color:color-mix(in lab,red,red)){.text-red-400\/70{color:color-mix(in oklab,var(--color-red-400) 70%,transparent)}}.text-red-400\/80{color:#ff6568cc}@supports (color:color-mix(in lab,red,red)){.text-red-400\/80{color:color-mix(in oklab,var(--color-red-400) 80%,transparent)}}.text-red-500{color:var(--color-red-500)}.text-sky-400{color:var(--color-sky-400)}.text-sky-400\/80{color:#00bcfecc}@supports (color:color-mix(in lab,red,red)){.text-sky-400\/80{color:color-mix(in oklab,var(--color-sky-400) 80%,transparent)}}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-400\/80{color:#fac800cc}@supports (color:color-mix(in lab,red,red)){.text-yellow-400\/80{color:color-mix(in oklab,var(--color-yellow-400) 80%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-500{--tw-duration:.5s;transition-duration:.5s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[font-variant-ligatures\:none\]{font-variant-ligatures:none}@media(hover:hover){.group-hover\:text-\[\#aaa\]:is(:where(.group):hover *){color:#aaa}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\/code\:opacity-100:is(:where(.group\/code):hover *){opacity:1}.hover\:border-\[\#333\]:hover{border-color:#333}.hover\:border-\[\#444\]:hover{border-color:#444}.hover\:border-emerald-500\/40:hover{border-color:#00bb7f66}@supports (color:color-mix(in lab,red,red)){.hover\:border-emerald-500\/40:hover{border-color:color-mix(in oklab,var(--color-emerald-500) 40%,transparent)}}.hover\:bg-\[\#1a1a1a\]:hover{background-color:#1a1a1a}.hover\:bg-\[\#2a2a2a\]:hover{background-color:#2a2a2a}.hover\:bg-\[rgba\(255\,255\,255\,0\.06\)\]:hover{background-color:#ffffff0f}.hover\:text-\[\#888\]:hover{color:#888}.hover\:text-\[\#aaa\]:hover{color:#aaa}.hover\:text-\[\#ccc\]:hover{color:#ccc}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.focus\:border-\[\#444\]:focus{border-color:#444}.disabled\:opacity-60:disabled{opacity:.6}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:p-8{padding:calc(var(--spacing) * 8)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-6{top:calc(var(--spacing) * 6)}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.lg\:grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}.lg\:overflow-y-auto{overflow-y:auto}.lg\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lg\:border-\[\#2a2a2a\]{border-color:#2a2a2a}.lg\:pl-6{padding-left:calc(var(--spacing) * 6)}}.\[\&_svg\]\:h-3\.5 svg{height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:w-3\.5 svg{width:calc(var(--spacing) * 3.5)}}:root{--font-geist-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-geist-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}html,body{color:#fff;font-family:var(--font-geist-sans);background:#000}@keyframes tab-in{0%{opacity:0;filter:blur(4px);transform:translateY(6px)}to{opacity:1;filter:blur();transform:translateY(0)}}.animate-tab-in{animation:.2s ease-out tab-in}.prose-markdown{color:#999;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.7}.prose-markdown p{margin-bottom:.75em}.prose-markdown p:last-child{margin-bottom:0}.prose-markdown strong{color:#ccc;font-weight:600}.prose-markdown em{font-style:italic}.prose-markdown code{color:#ccc;font-variant-ligatures:none;background:#0a0a0a;border:1px solid #111;border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.prose-markdown pre{font-variant-ligatures:none;background:0 0;border:none;border-radius:0;margin:0;padding:0}.prose-markdown pre code{color:inherit;background:0 0;border:none;padding:0;font-size:13px}.prose-markdown ul,.prose-markdown ol{margin-bottom:.75em;padding-left:1.5em}.prose-markdown ul{list-style-type:disc}.prose-markdown ol{list-style-type:decimal}.prose-markdown li{margin-bottom:.25em}.prose-markdown li>ul,.prose-markdown li>ol{margin-top:.25em;margin-bottom:.25em;padding-left:1.5em}.prose-markdown ol+ul{margin-top:-.5em;padding-left:3em}.prose-markdown h1,.prose-markdown h2,.prose-markdown h3,.prose-markdown h4,.prose-markdown h5,.prose-markdown h6{color:#ddd;margin-top:1em;margin-bottom:.5em;font-weight:600}.prose-markdown a{color:inherit;pointer-events:none;text-decoration:none}.prose-markdown blockquote{color:#777;border-left:3px solid #333;margin:.75em 0;padding-left:1em}.prose-markdown hr{border:none;border-top:1px solid #222;margin:1em 0}.prose-markdown>table{border-collapse:collapse;width:100%;margin:.75em 0}.prose-markdown>table th,.prose-markdown>table td{text-align:left;border:1px solid #333;padding:.4em .75em;font-size:13px}.prose-markdown>table th{color:#ccc;background:#1a1a1a;font-weight:600}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}} diff --git a/strix/viewer/viewer_dist/assets/index-F6wiPyoI.css b/strix/viewer/viewer_dist/assets/index-F6wiPyoI.css deleted file mode 100644 index ef1df785..00000000 --- a/strix/viewer/viewer_dist/assets/index-F6wiPyoI.css +++ /dev/null @@ -1,10 +0,0 @@ -pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! - Theme: GitHub Dark - Description: Dark theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-dark - Current colors taken from GitHub's CSS -*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-400:oklch(82.8% .189 84.429);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-400:oklch(78.9% .154 211.53);--color-sky-400:oklch(74.6% .16 232.661);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{inset-inline:0}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:0}.z-10{z-index:10}.z-50{z-index:50}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing) * 4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-\[1px\]{margin-top:1px}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.\!h-1\.5{height:calc(var(--spacing) * 1.5)!important}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-\[30px\]{height:30px}.h-\[72px\]{height:72px}.h-\[80vh\]{height:80vh}.h-\[480px\]{height:480px}.h-full{height:100%}.h-px{height:1px}.max-h-\[400px\]{max-height:400px}.max-h-\[1200px\]{max-height:1200px}.min-h-screen{min-height:100vh}.\!w-1\.5{width:calc(var(--spacing) * 1.5)!important}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-28{width:calc(var(--spacing) * 28)}.w-\[1px\]{width:1px}.w-\[30px\]{width:30px}.w-\[180px\]{width:180px}.w-\[260px\]{width:260px}.w-full{width:100%}.w-px{width:1px}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[75\%\]{max-width:75%}.max-w-\[80\%\]{max-width:80%}.max-w-\[88rem\]{max-width:88rem}.min-w-0{min-width:0}.min-w-\[80px\]{min-width:80px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-rotate-90{rotate:-90deg}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\!border-none{--tw-border-style:none!important;border-style:none!important}.\!border-\[\#222\]{border-color:#222!important}.border-\[\#1a1a1a\]{border-color:#1a1a1a}.border-\[\#2a2a2a\]{border-color:#2a2a2a}.border-\[\#222\]{border-color:#222}.border-\[\#333\]{border-color:#333}.border-\[\#191919\]{border-color:#191919}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-blue-500\/40{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/40{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-gray-500\/20{border-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.border-gray-500\/20{border-color:color-mix(in oklab,var(--color-gray-500) 20%,transparent)}}.border-orange-500\/20{border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/20{border-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500) 30%,transparent)}}.border-purple-500\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/20{border-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-red-500\/25{border-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.border-red-500\/25{border-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.border-white\/\[0\.06\]{border-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.06\]{border-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.border-yellow-500\/20{border-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/20{border-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.border-yellow-500\/25{border-color:#edb20040}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/25{border-color:color-mix(in oklab,var(--color-yellow-500) 25%,transparent)}}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.\!bg-\[\#0a0a0a\]{background-color:#0a0a0a!important}.\!bg-\[\#444\]{background-color:#444!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#0a0a0a\]{background-color:#0a0a0a}.bg-\[\#1a1a1a\]{background-color:#1a1a1a}.bg-\[\#1e1e1e\]{background-color:#1e1e1e}.bg-\[\#2a2a2a\]{background-color:#2a2a2a}.bg-\[\#111\]{background-color:#111}.bg-\[\#222\]{background-color:#222}.bg-\[\#555\]{background-color:#555}.bg-\[\#888\]{background-color:#888}.bg-\[\#252525\]{background-color:#252525}.bg-\[rgba\(255\,255\,255\,0\.02\)\]{background-color:#ffffff05}.bg-black{background-color:var(--color-black)}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-blue-500\/\[0\.12\]{background-color:#3080ff1f}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-blue-500) 12%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-500\/10{background-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.bg-gray-500\/10{background-color:color-mix(in oklab,var(--color-gray-500) 10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-purple-500\/\[0\.08\]{background-color:#ac4bff14}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-purple-500) 8%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-500\/\[0\.12\]{background-color:#fb2c361f}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-red-500) 12%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/8{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/8{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-white\/60{background-color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.bg-white\/\[0\.015\]{background-color:#ffffff04}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.015\]{background-color:color-mix(in oklab,var(--color-white) 1.5%,transparent)}}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500) 15%,transparent)}}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.object-cover{object-fit:cover}.p-1{padding:var(--spacing)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-0{padding-inline:0}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-\[5px\]{padding-top:5px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-1\.5{padding-left:calc(var(--spacing) * 1.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#60a5fa\]{color:#60a5fa}.text-\[\#333\]{color:#333}.text-\[\#444\]{color:#444}.text-\[\#555\]{color:#555}.text-\[\#666\]{color:#666}.text-\[\#777\]{color:#777}.text-\[\#888\]{color:#888}.text-\[\#999\]{color:#999}.text-\[\#aaa\]{color:#aaa}.text-\[\#bbb\]{color:#bbb}.text-\[\#ddd\]{color:#ddd}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/80{color:#fcbb00cc}@supports (color:color-mix(in lab,red,red)){.text-amber-400\/80{color:color-mix(in oklab,var(--color-amber-400) 80%,transparent)}}.text-blue-400{color:var(--color-blue-400)}.text-blue-400\/80{color:#54a2ffcc}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/80{color:color-mix(in oklab,var(--color-blue-400) 80%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-400\/80{color:#00d2efcc}@supports (color:color-mix(in lab,red,red)){.text-cyan-400\/80{color:color-mix(in oklab,var(--color-cyan-400) 80%,transparent)}}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/30{color:#00d2944d}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/30{color:color-mix(in oklab,var(--color-emerald-400) 30%,transparent)}}.text-emerald-400\/60{color:#00d29499}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/60{color:color-mix(in oklab,var(--color-emerald-400) 60%,transparent)}}.text-emerald-400\/70{color:#00d294b3}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/70{color:color-mix(in oklab,var(--color-emerald-400) 70%,transparent)}}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400) 80%,transparent)}}.text-gray-400{color:var(--color-gray-400)}.text-orange-400{color:var(--color-orange-400)}.text-orange-400\/60{color:#ff8b1a99}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/60{color:color-mix(in oklab,var(--color-orange-400) 60%,transparent)}}.text-orange-400\/80{color:#ff8b1acc}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/80{color:color-mix(in oklab,var(--color-orange-400) 80%,transparent)}}.text-orange-500{color:var(--color-orange-500)}.text-purple-400{color:var(--color-purple-400)}.text-purple-400\/60{color:#c07eff99}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/60{color:color-mix(in oklab,var(--color-purple-400) 60%,transparent)}}.text-purple-400\/70{color:#c07effb3}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/70{color:color-mix(in oklab,var(--color-purple-400) 70%,transparent)}}.text-purple-400\/80{color:#c07effcc}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/80{color:color-mix(in oklab,var(--color-purple-400) 80%,transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-400\/30{color:#ff65684d}@supports (color:color-mix(in lab,red,red)){.text-red-400\/30{color:color-mix(in oklab,var(--color-red-400) 30%,transparent)}}.text-red-400\/50{color:#ff656880}@supports (color:color-mix(in lab,red,red)){.text-red-400\/50{color:color-mix(in oklab,var(--color-red-400) 50%,transparent)}}.text-red-400\/60{color:#ff656899}@supports (color:color-mix(in lab,red,red)){.text-red-400\/60{color:color-mix(in oklab,var(--color-red-400) 60%,transparent)}}.text-red-400\/70{color:#ff6568b3}@supports (color:color-mix(in lab,red,red)){.text-red-400\/70{color:color-mix(in oklab,var(--color-red-400) 70%,transparent)}}.text-red-400\/80{color:#ff6568cc}@supports (color:color-mix(in lab,red,red)){.text-red-400\/80{color:color-mix(in oklab,var(--color-red-400) 80%,transparent)}}.text-red-500{color:var(--color-red-500)}.text-sky-400{color:var(--color-sky-400)}.text-sky-400\/80{color:#00bcfecc}@supports (color:color-mix(in lab,red,red)){.text-sky-400\/80{color:color-mix(in oklab,var(--color-sky-400) 80%,transparent)}}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-400\/80{color:#fac800cc}@supports (color:color-mix(in lab,red,red)){.text-yellow-400\/80{color:color-mix(in oklab,var(--color-yellow-400) 80%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-500{--tw-duration:.5s;transition-duration:.5s}.select-none{-webkit-user-select:none;user-select:none}.\[font-variant-ligatures\:none\]{font-variant-ligatures:none}@media(hover:hover){.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\/code\:opacity-100:is(:where(.group\/code):hover *){opacity:1}.hover\:border-\[\#333\]:hover{border-color:#333}.hover\:border-\[\#444\]:hover{border-color:#444}.hover\:bg-\[\#1a1a1a\]:hover{background-color:#1a1a1a}.hover\:bg-\[\#2a2a2a\]:hover{background-color:#2a2a2a}.hover\:text-\[\#888\]:hover{color:#888}.hover\:text-\[\#ccc\]:hover{color:#ccc}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}@media(min-width:40rem){.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:p-8{padding:calc(var(--spacing) * 8)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-6{top:calc(var(--spacing) * 6)}.lg\:max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.lg\:grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}.lg\:overflow-y-auto{overflow-y:auto}.lg\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lg\:border-\[\#2a2a2a\]{border-color:#2a2a2a}.lg\:pl-6{padding-left:calc(var(--spacing) * 6)}}.\[\&_svg\]\:h-3\.5 svg{height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:w-3\.5 svg{width:calc(var(--spacing) * 3.5)}}:root{--font-geist-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-geist-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}html,body{color:#fff;font-family:var(--font-geist-sans);background:#000}@keyframes tab-in{0%{opacity:0;filter:blur(4px);transform:translateY(6px)}to{opacity:1;filter:blur();transform:translateY(0)}}.animate-tab-in{animation:.2s ease-out tab-in}.prose-markdown{color:#999;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.7}.prose-markdown p{margin-bottom:.75em}.prose-markdown p:last-child{margin-bottom:0}.prose-markdown strong{color:#ccc;font-weight:600}.prose-markdown em{font-style:italic}.prose-markdown code{color:#ccc;font-variant-ligatures:none;background:#0a0a0a;border:1px solid #111;border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.prose-markdown pre{font-variant-ligatures:none;background:0 0;border:none;border-radius:0;margin:0;padding:0}.prose-markdown pre code{color:inherit;background:0 0;border:none;padding:0;font-size:13px}.prose-markdown ul,.prose-markdown ol{margin-bottom:.75em;padding-left:1.5em}.prose-markdown ul{list-style-type:disc}.prose-markdown ol{list-style-type:decimal}.prose-markdown li{margin-bottom:.25em}.prose-markdown li>ul,.prose-markdown li>ol{margin-top:.25em;margin-bottom:.25em;padding-left:1.5em}.prose-markdown ol+ul{margin-top:-.5em;padding-left:3em}.prose-markdown h1,.prose-markdown h2,.prose-markdown h3,.prose-markdown h4,.prose-markdown h5,.prose-markdown h6{color:#ddd;margin-top:1em;margin-bottom:.5em;font-weight:600}.prose-markdown a{color:inherit;pointer-events:none;text-decoration:none}.prose-markdown blockquote{color:#777;border-left:3px solid #333;margin:.75em 0;padding-left:1em}.prose-markdown hr{border:none;border-top:1px solid #222;margin:1em 0}.prose-markdown>table{border-collapse:collapse;width:100%;margin:.75em 0}.prose-markdown>table th,.prose-markdown>table td{text-align:left;border:1px solid #333;padding:.4em .75em;font-size:13px}.prose-markdown>table th{color:#ccc;background:#1a1a1a;font-weight:600}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}} diff --git a/strix/viewer/viewer_dist/assets/index-HNJsx9zD.js b/strix/viewer/viewer_dist/assets/index-HNJsx9zD.js deleted file mode 100644 index 98c1be09..00000000 --- a/strix/viewer/viewer_dist/assets/index-HNJsx9zD.js +++ /dev/null @@ -1,402 +0,0 @@ -(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(l){if(l.ep)return;l.ep=!0;const s=i(l);fetch(l.href,s)}})();function as(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bd={exports:{}},Oo={};/** - * @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 hy;function bk(){if(hy)return Oo;hy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(a,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:a,key:c,ref:l!==void 0?l:null,props:s}}return Oo.Fragment=n,Oo.jsx=i,Oo.jsxs=i,Oo}var py;function yk(){return py||(py=1,Bd.exports=bk()),Bd.exports}var v=yk(),Ud={exports:{}},Ve={};/** - * @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 my;function xk(){if(my)return Ve;my=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};function E(z,G,D){this.props=z,this.context=G,this.refs=N,this.updater=D||_}E.prototype.isReactComponent={},E.prototype.setState=function(z,G){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,G,"setState")},E.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function k(){}k.prototype=E.prototype;function w(z,G,D){this.props=z,this.context=G,this.refs=N,this.updater=D||_}var O=w.prototype=new k;O.constructor=w,S(O,E.prototype),O.isPureReactComponent=!0;var I=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function K(z,G,D){var F=D.ref;return{$$typeof:e,type:z,key:G,ref:F!==void 0?F:null,props:D}}function L(z,G){return K(z.type,G,z.props)}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function X(z){var G={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(D){return G[D]})}var Y=/\/+/g;function A(z,G){return typeof z=="object"&&z!==null&&z.key!=null?X(""+z.key):G.toString(36)}function $(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(G){z.status==="pending"&&(z.status="fulfilled",z.value=G)},function(G){z.status==="pending"&&(z.status="rejected",z.reason=G)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function M(z,G,D,F,U){var Q=typeof z;(Q==="undefined"||Q==="boolean")&&(z=null);var J=!1;if(z===null)J=!0;else switch(Q){case"bigint":case"string":case"number":J=!0;break;case"object":switch(z.$$typeof){case e:case n:J=!0;break;case p:return J=z._init,M(J(z._payload),G,D,F,U)}}if(J)return U=U(z),J=F===""?"."+A(z,0):F,I(U)?(D="",J!=null&&(D=J.replace(Y,"$&/")+"/"),M(U,G,D,"",function(ce){return ce})):U!=null&&(q(U)&&(U=L(U,D+(U.key==null||z&&z.key===U.key?"":(""+U.key).replace(Y,"$&/")+"/")+J)),G.push(U)),1;J=0;var W=F===""?".":F+":";if(I(z))for(var ee=0;ee>>1,C=M[Z];if(0>>1;Zl(D,V))Fl(U,D)?(M[Z]=U,M[F]=V,Z=F):(M[Z]=D,M[G]=V,Z=G);else if(Fl(U,V))M[Z]=U,M[F]=V,Z=F;else break e}}return B}function l(M,B){var V=M.sortIndex-B.sortIndex;return V!==0?V:M.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],d=[],p=1,m=null,y=3,b=!1,_=!1,S=!1,N=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function O(M){for(var B=i(d);B!==null;){if(B.callback===null)a(d);else if(B.startTime<=M)a(d),B.sortIndex=B.expirationTime,n(h,B);else break;B=i(d)}}function I(M){if(S=!1,O(M),!_)if(i(h)!==null)_=!0,R||(R=!0,X());else{var B=i(d);B!==null&&$(I,B.startTime-M)}}var R=!1,H=-1,j=5,K=-1;function L(){return N?!0:!(e.unstable_now()-KM&&L());){var Z=m.callback;if(typeof Z=="function"){m.callback=null,y=m.priorityLevel;var C=Z(m.expirationTime<=M);if(M=e.unstable_now(),typeof C=="function"){m.callback=C,O(M),B=!0;break t}m===i(h)&&a(h),O(M)}else a(h);m=i(h)}if(m!==null)B=!0;else{var z=i(d);z!==null&&$(I,z.startTime-M),B=!1}}break e}finally{m=null,y=V,b=!1}B=void 0}}finally{B?X():R=!1}}}var X;if(typeof w=="function")X=function(){w(q)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,A=Y.port2;Y.port1.onmessage=q,X=function(){A.postMessage(null)}}else X=function(){E(q,0)};function $(M,B){H=E(function(){M(e.unstable_now())},B)}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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125Z?(M.sortIndex=V,n(d,M),i(h)===null&&M===i(d)&&(S?(k(H),H=-1):S=!0,$(I,V-Z))):(M.sortIndex=C,n(h,M),_||b||(_=!0,R||(R=!0,X()))),M},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(M){var B=y;return function(){var V=y;y=B;try{return M.apply(this,arguments)}finally{y=V}}}})(qd)),qd}var yy;function Ek(){return yy||(yy=1,$d.exports=_k()),$d.exports}var Pd={exports:{}},kn={};/** - * @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 xy;function wk(){if(xy)return kn;xy=1;var e=ls();function n(h){var d="https://react.dev/errors/"+h;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Pd.exports=wk(),Pd.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 _y;function Sk(){if(_y)return Ro;_y=1;var e=Ek(),n=ls(),i=j_();function a(t){var r="https://react.dev/errors/"+t;if(1C||(t.current=Z[C],Z[C]=null,C--)}function D(t,r){C++,Z[C]=t.current,t.current=r}var F=z(null),U=z(null),Q=z(null),J=z(null);function W(t,r){switch(D(Q,r),D(U,t),D(F,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?I0(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=I0(r),t=j0(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(F),D(F,t)}function ee(){G(F),G(U),G(Q)}function ce(t){t.memoizedState!==null&&D(J,t);var r=F.current,o=j0(r,t.type);r!==o&&(D(U,t),D(F,o))}function de(t){U.current===t&&(G(F),G(U)),J.current===t&&(G(J),To._currentValue=V)}var be,Ee;function Se(t){if(be===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",Ee=-1)":-1g||te[u]!==oe[g]){var he=` -`+te[u].replace(" at new "," at ");return t.displayName&&he.includes("")&&(he=he.replace("",t.displayName)),he}while(1<=u&&0<=g);break}}}finally{De=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?Se(o):""}function lt(t,r){switch(t.tag){case 26:case 27:case 5:return Se(t.type);case 16:return Se("Lazy");case 13:return t.child!==r&&r!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return He(t.type,!1);case 11:return He(t.type.render,!1);case 1:return He(t.type,!0);case 31:return Se("Activity");default:return""}}function Rt(t){try{var r="",o=null;do r+=lt(t,o),o=t,t=t.return;while(t);return r}catch(u){return` -Error generating stack: `+u.message+` -`+u.stack}}var Yt=Object.prototype.hasOwnProperty,Pt=e.unstable_scheduleCallback,Xt=e.unstable_cancelCallback,Vn=e.unstable_shouldYield,En=e.unstable_requestPaint,ct=e.unstable_now,jt=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,ye=e.unstable_UserBlockingPriority,Me=e.unstable_NormalPriority,Pe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,sn=e.log,wn=e.unstable_setDisableYieldValue,Kt=null,Ct=null;function Wt(t){if(typeof sn=="function"&&wn(t),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Kt,t)}catch{}}var ut=Math.clz32?Math.clz32:yr,zn=Math.log,cn=Math.LN2;function yr(t){return t>>>=0,t===0?32:31-(zn(t)/cn|0)|0}var nt=256,Yn=262144,Cn=4194304;function hn(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ne(t,r,o){var u=t.pendingLanes;if(u===0)return 0;var g=0,x=t.suspendedLanes,T=t.pingedLanes;t=t.warmLanes;var P=u&134217727;return P!==0?(u=P&~x,u!==0?g=hn(u):(T&=P,T!==0?g=hn(T):o||(o=P&~t,o!==0&&(g=hn(o))))):(P=u&~x,P!==0?g=hn(P):T!==0?g=hn(T):o||(o=u&~t,o!==0&&(g=hn(o)))),g===0?0:r!==0&&r!==g&&(r&x)===0&&(x=g&-g,o=r&-r,x>=o||x===32&&(o&4194048)!==0)?r:g}function pe(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function we(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var t=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),t}function Nt(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function gt(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ce(t,r,o,u,g,x){var T=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var P=t.entanglements,te=t.expirationTimes,oe=t.hiddenUpdates;for(o=T&~o;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ga=/[\n"\\]/g;function Nn(t){return t.replace(Ga,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function sa(t,r,o,u,g,x,T,P){t.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.type=T:t.removeAttribute("type"),r!=null?T==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+_t(r)):t.value!==""+_t(r)&&(t.value=""+_t(r)):T!=="submit"&&T!=="reset"||t.removeAttribute("value"),r!=null?Nr(t,T,_t(r)):o!=null?Nr(t,T,_t(o)):u!=null&&t.removeAttribute("value"),g==null&&x!=null&&(t.defaultChecked=!!x),g!=null&&(t.checked=g&&typeof g!="function"&&typeof g!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?t.name=""+_t(P):t.removeAttribute("name")}function _i(t,r,o,u,g,x,T,P){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.type=x),r!=null||o!=null){if(!(x!=="submit"&&x!=="reset"||r!=null)){wr(t);return}o=o!=null?""+_t(o):"",r=r!=null?""+_t(r):o,P||r===t.value||(t.value=r),t.defaultValue=r}u=u??g,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=P?t.checked:!!u,t.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(t.name=T),wr(t)}function Nr(t,r,o){r==="number"&&Sr(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function un(t,r,o,u){if(t=t.options,r){r={};for(var g=0;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ju=!1;if(Zi)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){ju=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{ju=!1}var Ar=null,Bu=null,xs=null;function jm(){if(xs)return xs;var t,r=Bu,o=r.length,u,g="value"in Ar?Ar.value:Ar.textContent,x=g.length;for(t=0;t=Yl),Pm=" ",Fm=!1;function Gm(t,r){switch(t){case"keyup":return US.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ya=!1;function $S(t,r){switch(t){case"compositionend":return Vm(r);case"keypress":return r.which!==32?null:(Fm=!0,Pm);case"textInput":return t=r.data,t===Pm&&Fm?null:t;default:return null}}function qS(t,r){if(Ya)return t==="compositionend"||!Pu&&Gm(t,r)?(t=jm(),xs=Bu=Ar=null,Ya=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:o,offset:r-t};t=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=eg(o)}}function ng(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?ng(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function ig(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Sr(t.document);r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Sr(t.document)}return r}function Vu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var ZS=Zi&&"documentMode"in document&&11>=document.documentMode,Xa=null,Yu=null,Ql=null,Xu=!1;function rg(t,r,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Xu||Xa==null||Xa!==Sr(u)||(u=Xa,"selectionStart"in u&&Vu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ql&&Zl(Ql,u)||(Ql=u,u=dc(Yu,"onSelect"),0>=T,g-=T,zi=1<<32-ut(r)+g|o<Ke?(at=Re,Re=null):at=Re.sibling;var pt=se(re,Re,le[Ke],me);if(pt===null){Re===null&&(Re=at);break}t&&Re&&pt.alternate===null&&r(re,Re),ie=x(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt,Re=at}if(Ke===le.length)return o(re,Re),ot&&Wi(re,Ke),Ie;if(Re===null){for(;KeKe?(at=Re,Re=null):at=Re.sibling;var Zr=se(re,Re,pt.value,me);if(Zr===null){Re===null&&(Re=at);break}t&&Re&&Zr.alternate===null&&r(re,Re),ie=x(Zr,ie,Ke),ht===null?Ie=Zr:ht.sibling=Zr,ht=Zr,Re=at}if(pt.done)return o(re,Re),ot&&Wi(re,Ke),Ie;if(Re===null){for(;!pt.done;Ke++,pt=le.next())pt=ge(re,pt.value,me),pt!==null&&(ie=x(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt);return ot&&Wi(re,Ke),Ie}for(Re=u(Re);!pt.done;Ke++,pt=le.next())pt=fe(Re,re,Ke,pt.value,me),pt!==null&&(t&&pt.alternate!==null&&Re.delete(pt.key===null?Ke:pt.key),ie=x(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt);return t&&Re.forEach(function(gk){return r(re,gk)}),ot&&Wi(re,Ke),Ie}function St(re,ie,le,me){if(typeof le=="object"&&le!==null&&le.type===S&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case b:e:{for(var Ie=le.key;ie!==null;){if(ie.key===Ie){if(Ie=le.type,Ie===S){if(ie.tag===7){o(re,ie.sibling),me=g(ie,le.props.children),me.return=re,re=me;break e}}else if(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===j&&xa(Ie)===ie.type){o(re,ie.sibling),me=g(ie,le.props),io(me,le),me.return=re,re=me;break e}o(re,ie);break}else r(re,ie);ie=ie.sibling}le.type===S?(me=pa(le.props.children,re.mode,me,le.key),me.return=re,re=me):(me=Cs(le.type,le.key,le.props,null,re.mode,me),io(me,le),me.return=re,re=me)}return T(re);case _:e:{for(Ie=le.key;ie!==null;){if(ie.key===Ie)if(ie.tag===4&&ie.stateNode.containerInfo===le.containerInfo&&ie.stateNode.implementation===le.implementation){o(re,ie.sibling),me=g(ie,le.children||[]),me.return=re,re=me;break e}else{o(re,ie);break}else r(re,ie);ie=ie.sibling}me=tf(le,re.mode,me),me.return=re,re=me}return T(re);case j:return le=xa(le),St(re,ie,le,me)}if($(le))return Ae(re,ie,le,me);if(X(le)){if(Ie=X(le),typeof Ie!="function")throw Error(a(150));return le=Ie.call(le),Ue(re,ie,le,me)}if(typeof le.then=="function")return St(re,ie,Is(le),me);if(le.$$typeof===w)return St(re,ie,Rs(re,le),me);js(re,le)}return typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint"?(le=""+le,ie!==null&&ie.tag===6?(o(re,ie.sibling),me=g(ie,le),me.return=re,re=me):(o(re,ie),me=ef(le,re.mode,me),me.return=re,re=me),T(re)):o(re,ie)}return function(re,ie,le,me){try{no=0;var Ie=St(re,ie,le,me);return al=null,Ie}catch(Re){if(Re===rl||Re===Ls)throw Re;var ht=Kn(29,Re,null,re.mode);return ht.lanes=me,ht.return=re,ht}finally{}}}var _a=Tg(!0),Ag=Tg(!1),Dr=!1;function pf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Lr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zr(t,r,o){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(mt&2)!==0){var g=u.pending;return g===null?r.next=r:(r.next=g.next,g.next=r),u.pending=r,r=As(t),fg(t,null,o),r}return Ts(t,u,r,o),As(t)}function ro(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var u=r.lanes;u&=t.pendingLanes,o|=u,r.lanes=o,Be(t,o)}}function gf(t,r){var o=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var g=null,x=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};x===null?g=x=T:x=x.next=T,o=o.next}while(o!==null);x===null?g=x=r:x=x.next=r}else g=x=r;o={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:x,shared:u.shared,callbacks:u.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}var bf=!1;function ao(){if(bf){var t=il;if(t!==null)throw t}}function lo(t,r,o,u){bf=!1;var g=t.updateQueue;Dr=!1;var x=g.firstBaseUpdate,T=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var te=P,oe=te.next;te.next=null,T===null?x=oe:T.next=oe,T=te;var he=t.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==T&&(P===null?he.firstBaseUpdate=oe:P.next=oe,he.lastBaseUpdate=te))}if(x!==null){var ge=g.baseState;T=0,he=oe=te=null,P=x;do{var se=P.lane&-536870913,fe=se!==P.lane;if(fe?(rt&se)===se:(u&se)===se){se!==0&&se===nl&&(bf=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ae=t,Ue=P;se=r;var St=o;switch(Ue.tag){case 1:if(Ae=Ue.payload,typeof Ae=="function"){ge=Ae.call(St,ge,se);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Ue.payload,se=typeof Ae=="function"?Ae.call(St,ge,se):Ae,se==null)break e;ge=m({},ge,se);break e;case 2:Dr=!0}}se=P.callback,se!==null&&(t.flags|=64,fe&&(t.flags|=8192),fe=g.callbacks,fe===null?g.callbacks=[se]:fe.push(se))}else fe={lane:se,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(oe=he=fe,te=ge):he=he.next=fe,T|=se;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;fe=P,P=fe.next,fe.next=null,g.lastBaseUpdate=fe,g.shared.pending=null}}while(!0);he===null&&(te=ge),g.baseState=te,g.firstBaseUpdate=oe,g.lastBaseUpdate=he,x===null&&(g.shared.lanes=0),Hr|=T,t.lanes=T,t.memoizedState=ge}}function Cg(t,r){if(typeof t!="function")throw Error(a(191,t));t.call(r)}function Mg(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;tx?x:8;var T=M.T,P={};M.T=P,If(t,!1,r,o);try{var te=g(),oe=M.S;if(oe!==null&&oe(P,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=aN(te,u);co(t,r,he,ei(t))}else co(t,r,u,ei(t))}catch(ge){co(t,r,{then:function(){},status:"rejected",reason:ge},ei())}finally{B.p=x,T!==null&&P.types!==null&&(T.types=P.types),M.T=T}}function fN(){}function Lf(t,r,o,u){if(t.tag!==5)throw Error(a(476));var g=sb(t).queue;ob(t,g,r,V,o===null?fN:function(){return cb(t),o(u)})}function sb(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:V},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function cb(t){var r=sb(t);r.next===null&&(r=t.alternate.memoizedState),co(t,r.next.queue,{},ei())}function zf(){return xn(To)}function ub(){return Qt().memoizedState}function fb(){return Qt().memoizedState}function dN(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var o=ei();t=Lr(o);var u=zr(r,t,o);u!==null&&($n(u,r,o),ro(u,r,o)),r={cache:uf()},t.payload=r;return}r=r.return}}function hN(t,r,o){var u=ei();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ys(t)?hb(r,o):(o=Wu(t,r,o,u),o!==null&&($n(o,t,u),pb(o,r,u)))}function db(t,r,o){var u=ei();co(t,r,o,u)}function co(t,r,o,u){var g={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ys(t))hb(r,g);else{var x=t.alternate;if(t.lanes===0&&(x===null||x.lanes===0)&&(x=r.lastRenderedReducer,x!==null))try{var T=r.lastRenderedState,P=x(T,o);if(g.hasEagerState=!0,g.eagerState=P,Xn(P,T))return Ts(t,r,g,0),kt===null&&ks(),!1}catch{}finally{}if(o=Wu(t,r,g,u),o!==null)return $n(o,t,u),pb(o,r,u),!0}return!1}function If(t,r,o,u){if(u={lane:2,revertLane:pd(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ys(t)){if(r)throw Error(a(479))}else r=Wu(t,o,u,2),r!==null&&$n(r,t,2)}function Ys(t){var r=t.alternate;return t===Xe||r!==null&&r===Xe}function hb(t,r){ol=Hs=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function pb(t,r,o){if((o&4194048)!==0){var u=r.lanes;u&=t.pendingLanes,o|=u,r.lanes=o,Be(t,o)}}var uo={readContext:xn,use:Ps,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};uo.useEffectEvent=Gt;var mb={readContext:xn,use:Ps,useCallback:function(t,r){return Rn().memoizedState=[t,r===void 0?null:r],t},useContext:xn,useEffect:Wg,useImperativeHandle:function(t,r,o){o=o!=null?o.concat([t]):null,Gs(4194308,4,nb.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Gs(4194308,4,t,r)},useInsertionEffect:function(t,r){Gs(4,2,t,r)},useMemo:function(t,r){var o=Rn();r=r===void 0?null:r;var u=t();if(Ea){Wt(!0);try{t()}finally{Wt(!1)}}return o.memoizedState=[u,r],u},useReducer:function(t,r,o){var u=Rn();if(o!==void 0){var g=o(r);if(Ea){Wt(!0);try{o(r)}finally{Wt(!1)}}}else g=r;return u.memoizedState=u.baseState=g,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:g},u.queue=t,t=t.dispatch=hN.bind(null,Xe,t),[u.memoizedState,t]},useRef:function(t){var r=Rn();return t={current:t},r.memoizedState=t},useState:function(t){t=Cf(t);var r=t.queue,o=db.bind(null,Xe,r);return r.dispatch=o,[t.memoizedState,o]},useDebugValue:Rf,useDeferredValue:function(t,r){var o=Rn();return Df(o,t,r)},useTransition:function(){var t=Cf(!1);return t=ob.bind(null,Xe,t.queue,!0,!1),Rn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,o){var u=Xe,g=Rn();if(ot){if(o===void 0)throw Error(a(407));o=o()}else{if(o=r(),kt===null)throw Error(a(349));(rt&127)!==0||Ig(u,r,o)}g.memoizedState=o;var x={value:o,getSnapshot:r};return g.queue=x,Wg(Bg.bind(null,u,x,t),[t]),u.flags|=2048,cl(9,{destroy:void 0},jg.bind(null,u,x,o,r),null),o},useId:function(){var t=Rn(),r=kt.identifierPrefix;if(ot){var o=Ii,u=zi;o=(u&~(1<<32-ut(u)-1)).toString(32)+o,r="_"+r+"R_"+o,o=$s++,0<\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof u.is=="string"?T.createElement("select",{is:u.is}):T.createElement("select"),u.multiple?x.multiple=!0:u.size&&(x.size=u.size);break;default:x=typeof u.is=="string"?T.createElement(g,{is:u.is}):T.createElement(g)}}x[Ut]=r,x[pn]=u;e:for(T=r.child;T!==null;){if(T.tag===5||T.tag===6)x.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===r)break e;for(;T.sibling===null;){if(T.return===null||T.return===r)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}r.stateNode=x;e:switch(_n(x,g,u),g){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&rr(r)}}return Lt(r),Zf(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,o),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==u&&rr(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(t=Q.current,el(r)){if(t=r.stateNode,o=r.memoizedProps,u=null,g=yn,g!==null)switch(g.tag){case 27:case 5:u=g.memoizedProps}t[Ut]=r,t=!!(t.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||L0(t.nodeValue,o)),t||Or(r,!0)}else t=hc(t).createTextNode(u),t[Ut]=r,r.stateNode=t}return Lt(r),null;case 31:if(o=r.memoizedState,t===null||t.memoizedState!==null){if(u=el(r),o!==null){if(t===null){if(!u)throw Error(a(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[Ut]=r}else ma(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),t=!1}else o=lf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=!0;if(!t)return r.flags&256?(Qn(r),r):(Qn(r),null);if((r.flags&128)!==0)throw Error(a(558))}return Lt(r),null;case 13:if(u=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(g=el(r),u!==null&&u.dehydrated!==null){if(t===null){if(!g)throw Error(a(318));if(g=r.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(a(317));g[Ut]=r}else ma(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),g=!1}else g=lf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=g),g=!0;if(!g)return r.flags&256?(Qn(r),r):(Qn(r),null)}return Qn(r),(r.flags&128)!==0?(r.lanes=o,r):(o=u!==null,t=t!==null&&t.memoizedState!==null,o&&(u=r.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool),x=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(x=u.memoizedState.cachePool.pool),x!==g&&(u.flags|=2048)),o!==t&&o&&(r.child.flags|=8192),Ws(r,r.updateQueue),Lt(r),null);case 4:return ee(),t===null&&yd(r.stateNode.containerInfo),Lt(r),null;case 10:return er(r.type),Lt(r),null;case 19:if(G(Zt),u=r.memoizedState,u===null)return Lt(r),null;if(g=(r.flags&128)!==0,x=u.rendering,x===null)if(g)ho(u,!1);else{if(Vt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(x=Us(t),x!==null){for(r.flags|=128,ho(u,!1),t=x.updateQueue,r.updateQueue=t,Ws(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)dg(o,t),o=o.sibling;return D(Zt,Zt.current&1|2),ot&&Wi(r,u.treeForkCount),r.child}t=t.sibling}u.tail!==null&&ct()>ic&&(r.flags|=128,g=!0,ho(u,!1),r.lanes=4194304)}else{if(!g)if(t=Us(x),t!==null){if(r.flags|=128,g=!0,t=t.updateQueue,r.updateQueue=t,Ws(r,t),ho(u,!0),u.tail===null&&u.tailMode==="hidden"&&!x.alternate&&!ot)return Lt(r),null}else 2*ct()-u.renderingStartTime>ic&&o!==536870912&&(r.flags|=128,g=!0,ho(u,!1),r.lanes=4194304);u.isBackwards?(x.sibling=r.child,r.child=x):(t=u.last,t!==null?t.sibling=x:r.child=x,u.last=x)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=ct(),t.sibling=null,o=Zt.current,D(Zt,g?o&1|2:o&1),ot&&Wi(r,u.treeForkCount),t):(Lt(r),null);case 22:case 23:return Qn(r),xf(),u=r.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(o&536870912)!==0&&(r.flags&128)===0&&(Lt(r),r.subtreeFlags&6&&(r.flags|=8192)):Lt(r),o=r.updateQueue,o!==null&&Ws(r,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048),t!==null&&G(ya),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),er(en),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function yN(t,r){switch(rf(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return er(en),ee(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return de(r),null;case 31:if(r.memoizedState!==null){if(Qn(r),r.alternate===null)throw Error(a(340));ma()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(Qn(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(a(340));ma()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return G(Zt),null;case 4:return ee(),null;case 10:return er(r.type),null;case 22:case 23:return Qn(r),xf(),t!==null&&G(ya),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return er(en),null;case 25:return null;default:return null}}function Ub(t,r){switch(rf(r),r.tag){case 3:er(en),ee();break;case 26:case 27:case 5:de(r);break;case 4:ee();break;case 31:r.memoizedState!==null&&Qn(r);break;case 13:Qn(r);break;case 19:G(Zt);break;case 10:er(r.type);break;case 22:case 23:Qn(r),xf(),t!==null&&G(ya);break;case 24:er(en)}}function po(t,r){try{var o=r.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var g=u.next;o=g;do{if((o.tag&t)===t){u=void 0;var x=o.create,T=o.inst;u=x(),T.destroy=u}o=o.next}while(o!==g)}}catch(P){xt(r,r.return,P)}}function Br(t,r,o){try{var u=r.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var x=g.next;u=x;do{if((u.tag&t)===t){var T=u.inst,P=T.destroy;if(P!==void 0){T.destroy=void 0,g=r;var te=o,oe=P;try{oe()}catch(he){xt(g,te,he)}}}u=u.next}while(u!==x)}}catch(he){xt(r,r.return,he)}}function Hb(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;try{Mg(r,o)}catch(u){xt(t,t.return,u)}}}function $b(t,r,o){o.props=wa(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(u){xt(t,r,u)}}function mo(t,r){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof o=="function"?t.refCleanup=o(u):o.current=u}}catch(g){xt(t,r,g)}}function ji(t,r){var o=t.ref,u=t.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(g){xt(t,r,g)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){xt(t,r,g)}else o.current=null}function qb(t){var r=t.type,o=t.memoizedProps,u=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(g){xt(t,t.return,g)}}function Qf(t,r,o){try{var u=t.stateNode;HN(u,t.type,o,r),u[pn]=r}catch(g){xt(t,t.return,g)}}function Pb(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Gr(t.type)||t.tag===4}function Wf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Pb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Gr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Jf(t,r,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(t),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=_e));else if(u!==4&&(u===27&&Gr(t.type)&&(o=t.stateNode,r=null),t=t.child,t!==null))for(Jf(t,r,o),t=t.sibling;t!==null;)Jf(t,r,o),t=t.sibling}function Js(t,r,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(u!==4&&(u===27&&Gr(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(Js(t,r,o),t=t.sibling;t!==null;)Js(t,r,o),t=t.sibling}function Fb(t){var r=t.stateNode,o=t.memoizedProps;try{for(var u=t.type,g=r.attributes;g.length;)r.removeAttributeNode(g[0]);_n(r,u,o),r[Ut]=t,r[pn]=o}catch(x){xt(t,t.return,x)}}var ar=!1,rn=!1,ed=!1,Gb=typeof WeakSet=="function"?WeakSet:Set,gn=null;function xN(t,r){if(t=t.containerInfo,_d=vc,t=ig(t),Vu(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var g=u.anchorOffset,x=u.focusNode;u=u.focusOffset;try{o.nodeType,x.nodeType}catch{o=null;break e}var T=0,P=-1,te=-1,oe=0,he=0,ge=t,se=null;t:for(;;){for(var fe;ge!==o||g!==0&&ge.nodeType!==3||(P=T+g),ge!==x||u!==0&&ge.nodeType!==3||(te=T+u),ge.nodeType===3&&(T+=ge.nodeValue.length),(fe=ge.firstChild)!==null;)se=ge,ge=fe;for(;;){if(ge===t)break t;if(se===o&&++oe===g&&(P=T),se===x&&++he===u&&(te=T),(fe=ge.nextSibling)!==null)break;ge=se,se=ge.parentNode}ge=fe}o=P===-1||te===-1?null:{start:P,end:te}}else o=null}o=o||{start:0,end:0}}else o=null;for(Ed={focusedElem:t,selectionRange:o},vc=!1,gn=r;gn!==null;)if(r=gn,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,gn=t;else for(;gn!==null;){switch(r=gn,x=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(o=0;o title"))),_n(x,u,o),x[Ut]=t,Ft(x),u=x;break e;case"link":var T=Q0("link","href",g).get(u+(o.href||""));if(T){for(var P=0;PSt&&(T=St,St=Ue,Ue=T);var re=tg(P,Ue),ie=tg(P,St);if(re&&ie&&(fe.rangeCount!==1||fe.anchorNode!==re.node||fe.anchorOffset!==re.offset||fe.focusNode!==ie.node||fe.focusOffset!==ie.offset)){var le=ge.createRange();le.setStart(re.node,re.offset),fe.removeAllRanges(),Ue>St?(fe.addRange(le),fe.extend(ie.node,ie.offset)):(le.setEnd(ie.node,ie.offset),fe.addRange(le))}}}}for(ge=[],fe=P;fe=fe.parentNode;)fe.nodeType===1&&ge.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;Po?32:o,M.T=null,o=od,od=null;var x=qr,T=ur;if(fn=0,pl=qr=null,ur=0,(mt&6)!==0)throw Error(a(331));var P=mt;if(mt|=4,n0(x.current),Jb(x,x.current,T,o),mt=P,_o(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Kt,x)}catch{}return!0}finally{B.p=g,M.T=u,v0(t,r)}}function E0(t,r,o){r=si(o,r),r=Hf(t.stateNode,r,2),t=zr(t,r,2),t!==null&&(gt(t,2),Bi(t))}function xt(t,r,o){if(t.tag===3)E0(t,t,o);else for(;r!==null;){if(r.tag===3){E0(r,t,o);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&($r===null||!$r.has(u))){t=si(o,t),o=wb(2),u=zr(r,o,2),u!==null&&(Sb(o,u,r,t),gt(u,2),Bi(u));break}}r=r.return}}function fd(t,r,o){var u=t.pingCache;if(u===null){u=t.pingCache=new EN;var g=new Set;u.set(r,g)}else g=u.get(r),g===void 0&&(g=new Set,u.set(r,g));g.has(o)||(id=!0,g.add(o),t=TN.bind(null,t,r,o),r.then(t,t))}function TN(t,r,o){var u=t.pingCache;u!==null&&u.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,kt===t&&(rt&o)===o&&(Vt===4||Vt===3&&(rt&62914560)===rt&&300>ct()-nc?(mt&2)===0&&ml(t,0):rd|=o,hl===rt&&(hl=0)),Bi(t)}function w0(t,r){r===0&&(r=qe()),t=ha(t,r),t!==null&&(gt(t,r),Bi(t))}function AN(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),w0(t,o)}function CN(t,r){var o=0;switch(t.tag){case 31:case 13:var u=t.stateNode,g=t.memoizedState;g!==null&&(o=g.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),w0(t,o)}function MN(t,r){return Pt(t,r)}var cc=null,bl=null,dd=!1,uc=!1,hd=!1,Fr=0;function Bi(t){t!==bl&&t.next===null&&(bl===null?cc=bl=t:bl=bl.next=t),uc=!0,dd||(dd=!0,RN())}function _o(t,r){if(!hd&&uc){hd=!0;do for(var o=!1,u=cc;u!==null;){if(t!==0){var g=u.pendingLanes;if(g===0)var x=0;else{var T=u.suspendedLanes,P=u.pingedLanes;x=(1<<31-ut(42|t)+1)-1,x&=g&~(T&~P),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(o=!0,T0(u,x))}else x=rt,x=ne(u,u===kt?x:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(x&3)===0||pe(u,x)||(o=!0,T0(u,x));u=u.next}while(o);hd=!1}}function ON(){S0()}function S0(){uc=dd=!1;var t=0;Fr!==0&&qN()&&(t=Fr);for(var r=ct(),o=null,u=cc;u!==null;){var g=u.next,x=N0(u,r);x===0?(u.next=null,o===null?cc=g:o.next=g,g===null&&(bl=o)):(o=u,(t!==0||(x&3)!==0)&&(uc=!0)),u=g}fn!==0&&fn!==5||_o(t),Fr!==0&&(Fr=0)}function N0(t,r){for(var o=t.suspendedLanes,u=t.pingedLanes,g=t.expirationTimes,x=t.pendingLanes&-62914561;0P)break;var he=te.transferSize,ge=te.initiatorType;he&&z0(ge)&&(te=te.responseEnd,T+=he*(te"u"?null:document;function Y0(t,r,o){var u=yl;if(u&&typeof r=="string"&&r){var g=Nn(r);g='link[rel="'+t+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),V0.has(g)||(V0.add(g),t={rel:t,crossOrigin:o,href:r},u.querySelector(g)===null&&(r=u.createElement("link"),_n(r,"link",t),Ft(r),u.head.appendChild(r)))}}function QN(t){fr.D(t),Y0("dns-prefetch",t,null)}function WN(t,r){fr.C(t,r),Y0("preconnect",t,r)}function JN(t,r,o){fr.L(t,r,o);var u=yl;if(u&&t&&r){var g='link[rel="preload"][as="'+Nn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+Nn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+Nn(o.imageSizes)+'"]')):g+='[href="'+Nn(t)+'"]';var x=g;switch(r){case"style":x=xl(t);break;case"script":x=vl(t)}pi.has(x)||(t=m({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),pi.set(x,t),u.querySelector(g)!==null||r==="style"&&u.querySelector(No(x))||r==="script"&&u.querySelector(ko(x))||(r=u.createElement("link"),_n(r,"link",t),Ft(r),u.head.appendChild(r)))}}function ek(t,r){fr.m(t,r);var o=yl;if(o&&t){var u=r&&typeof r.as=="string"?r.as:"script",g='link[rel="modulepreload"][as="'+Nn(u)+'"][href="'+Nn(t)+'"]',x=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=vl(t)}if(!pi.has(x)&&(t=m({rel:"modulepreload",href:t},r),pi.set(x,t),o.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(ko(x)))return}u=o.createElement("link"),_n(u,"link",t),Ft(u),o.head.appendChild(u)}}}function tk(t,r,o){fr.S(t,r,o);var u=yl;if(u&&t){var g=Di(u).hoistableStyles,x=xl(t);r=r||"default";var T=g.get(x);if(!T){var P={loading:0,preload:null};if(T=u.querySelector(No(x)))P.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":r},o),(o=pi.get(x))&&Cd(t,o);var te=T=u.createElement("link");Ft(te),_n(te,"link",t),te._p=new Promise(function(oe,he){te.onload=oe,te.onerror=he}),te.addEventListener("load",function(){P.loading|=1}),te.addEventListener("error",function(){P.loading|=2}),P.loading|=4,mc(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:P},g.set(x,T)}}}function nk(t,r){fr.X(t,r);var o=yl;if(o&&t){var u=Di(o).hoistableScripts,g=vl(t),x=u.get(g);x||(x=o.querySelector(ko(g)),x||(t=m({src:t,async:!0},r),(r=pi.get(g))&&Md(t,r),x=o.createElement("script"),Ft(x),_n(x,"link",t),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},u.set(g,x))}}function ik(t,r){fr.M(t,r);var o=yl;if(o&&t){var u=Di(o).hoistableScripts,g=vl(t),x=u.get(g);x||(x=o.querySelector(ko(g)),x||(t=m({src:t,async:!0,type:"module"},r),(r=pi.get(g))&&Md(t,r),x=o.createElement("script"),Ft(x),_n(x,"link",t),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},u.set(g,x))}}function X0(t,r,o,u){var g=(g=Q.current)?pc(g):null;if(!g)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=xl(o.href),o=Di(g).hoistableStyles,u=o.get(r),u||(u={type:"style",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=xl(o.href);var x=Di(g).hoistableStyles,T=x.get(t);if(T||(g=g.ownerDocument||g,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(t,T),(x=g.querySelector(No(t)))&&!x._p&&(T.instance=x,T.state.loading=5),pi.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},pi.set(t,o),x||rk(g,t,o,T.state))),r&&u===null)throw Error(a(528,""));return T}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=vl(o),o=Di(g).hoistableScripts,u=o.get(r),u||(u={type:"script",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function xl(t){return'href="'+Nn(t)+'"'}function No(t){return'link[rel="stylesheet"]['+t+"]"}function K0(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function rk(t,r,o,u){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=t.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),_n(r,"link",o),Ft(r),t.head.appendChild(r))}function vl(t){return'[src="'+Nn(t)+'"]'}function ko(t){return"script[async]"+t}function Z0(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var u=t.querySelector('style[data-href~="'+Nn(o.href)+'"]');if(u)return r.instance=u,Ft(u),u;var g=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Ft(u),_n(u,"style",g),mc(u,o.precedence,t),r.instance=u;case"stylesheet":g=xl(o.href);var x=t.querySelector(No(g));if(x)return r.state.loading|=4,r.instance=x,Ft(x),x;u=K0(o),(g=pi.get(g))&&Cd(u,g),x=(t.ownerDocument||t).createElement("link"),Ft(x);var T=x;return T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(x,"link",u),r.state.loading|=4,mc(x,o.precedence,t),r.instance=x;case"script":return x=vl(o.src),(g=t.querySelector(ko(x)))?(r.instance=g,Ft(g),g):(u=o,(g=pi.get(x))&&(u=m({},o),Md(u,g)),t=t.ownerDocument||t,g=t.createElement("script"),Ft(g),_n(g,"link",u),t.head.appendChild(g),r.instance=g);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,mc(u,o.precedence,t));return r.instance}function mc(t,r,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,x=g,T=0;T title"):null)}function ak(t,r,o){if(o===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function J0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function lk(t,r,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=xl(u.href),x=r.querySelector(No(g));if(x){r=x._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=bc.bind(t),r.then(t,t)),o.state.loading|=4,o.instance=x,Ft(x);return}x=r.ownerDocument||r,u=K0(u),(g=pi.get(g))&&Cd(u,g),x=x.createElement("link"),Ft(x);var T=x;T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(x,"link",u),o.instance=x}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=bc.bind(t),r.addEventListener("load",o),r.addEventListener("error",o))}}var Od=0;function ok(t,r){return t.stylesheets&&t.count===0&&xc(t,t.stylesheets),0Od?50:800)+r);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(g)}}:null}function bc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var yc=null;function xc(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,yc=new Map,r.forEach(sk,t),yc=null,bc.call(t))}function sk(t,r){if(!(r.state.loading&4)){var o=yc.get(t);if(o)var u=o.get(null);else{o=new Map,yc.set(t,o);for(var g=t.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Hd.exports=Sk(),Hd.exports}var kk=Nk();/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const B_=(...e)=>e.filter((n,i,a)=>!!n&&n.trim()!==""&&a.indexOf(n)===i).join(" ").trim();/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Tk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ak=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,a)=>a?a.toUpperCase():i.toLowerCase());/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const wy=e=>{const n=Ak(e);return n.charAt(0).toUpperCase()+n.slice(1)};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var Ck={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Mk=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ok=ae.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:s,iconNode:c,...f},h)=>ae.createElement("svg",{ref:h,...Ck,width:n,height:n,stroke:e,strokeWidth:a?Number(i)*24/Number(n):i,className:B_("lucide",l),...!s&&!Mk(f)&&{"aria-hidden":"true"},...f},[...c.map(([d,p])=>ae.createElement(d,p)),...Array.isArray(s)?s:[s]]));/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ge=(e,n)=>{const i=ae.forwardRef(({className:a,...l},s)=>ae.createElement(Ok,{ref:s,iconNode:n,className:B_(`lucide-${Tk(wy(e))}`,`lucide-${e}`,a),...l}));return i.displayName=wy(e),i};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Rk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dk=Ge("arrow-left",Rk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Lk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],zk=Ge("arrow-up-right",Lk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ik=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],U_=Ge("ban",Ik);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const jk=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],Bk=Ge("bell-off",jk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Uk=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],qp=Ge("bot",Uk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Hk=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],H_=Ge("brain",Hk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $k=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],qk=Ge("calendar-clock",$k);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Pk=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Fk=Ge("check-check",Pk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Gk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wc=Ge("check",Gk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Vk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yk=Ge("chevron-down",Vk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Xk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Kk=Ge("circle-alert",Xk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Zk=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],$_=Ge("circle-check-big",Zk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Qk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Wk=Ge("circle-check",Qk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Jk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],e2=Ge("circle-dot",Jk);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const t2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],n2=Ge("circle",t2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const i2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],q_=Ge("clock",i2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const r2=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],a2=Ge("code",r2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const l2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Jc=Ge("copy",l2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const o2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],s2=Ge("crosshair",o2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const c2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],u2=Ge("eye",c2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const f2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],d2=Ge("file-text",f2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const h2=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],P_=Ge("flag",h2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const p2=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],m2=Ge("git-pull-request",p2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const g2=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],b2=Ge("github",g2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const y2=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],x2=Ge("gitlab",y2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const v2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],F_=Ge("globe",v2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Sy=Ge("history",_2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const E2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],w2=Ge("image",E2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const S2=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],N2=Ge("list-todo",S2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const k2=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],T2=Ge("lock",k2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const A2=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Ny=Ge("message-circle",A2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const C2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],M2=Ge("pencil",C2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const O2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],R2=Ge("plus",O2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],L2=Ge("refresh-cw",D2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const z2=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],I2=Ge("rocket",z2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const j2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],B2=Ge("rotate-ccw",j2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const U2=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],H2=Ge("search",U2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],q2=Ge("shield-alert",$2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const P2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],F2=Ge("shield-check",P2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G2=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],V2=Ge("sticky-note",G2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Y2=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],X2=Ge("terminal",Y2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const K2=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Z2=Ge("trash-2",K2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Q2=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],W2=Ge("waypoints",Q2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const J2=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ky=Ge("wrench",J2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const eT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tT=Ge("x",eT),nT={open:{label:"Open",color:"bg-red-500/10 text-red-400 border-red-500/20",dotColor:"bg-red-500",description:"Newly discovered, awaiting triage"},in_progress:{label:"In Progress",color:"bg-blue-500/10 text-blue-400 border-blue-500/20",dotColor:"bg-blue-500",description:"Someone is working on this"},snoozed:{label:"Snoozed",color:"bg-purple-500/10 text-purple-400 border-purple-500/20",dotColor:"bg-purple-500",description:"Temporarily hidden until a follow-up date"},fixed:{label:"Fixed",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",dotColor:"bg-emerald-500",description:"This vulnerability has been fixed"},ignored:{label:"Ignored",color:"bg-gray-500/10 text-gray-400 border-gray-500/20",dotColor:"bg-gray-500",description:"Acknowledged but accepted"}},iT={trivial:{label:"Trivial",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20"},low:{label:"Low",color:"bg-blue-500/10 text-blue-400 border-blue-500/20"},medium:{label:"Medium",color:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20"},high:{label:"High",color:"bg-orange-500/10 text-orange-400 border-orange-500/20"}},G_={critical:"bg-red-500/20 text-red-500 border-red-500/30",high:"bg-orange-500/20 text-orange-500 border-orange-500/30",medium:"bg-yellow-500/20 text-yellow-500 border-yellow-500/30",low:"bg-blue-500/20 text-blue-500 border-blue-500/30"};function Tc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const rT={js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",php:"php",cs:"csharp",cpp:"cpp",c:"c",sh:"bash",bash:"bash",sql:"sql",html:"html",css:"css",json:"json",yaml:"yaml",yml:"yaml",xml:"xml"};function aT(e){var i;if(!e)return null;const n=(i=e.split(".").pop())==null?void 0:i.toLowerCase();return n&&rT[n]||null}function Pp(e){switch(e){case"critical":return"bg-red-500";case"high":return"bg-orange-500";case"medium":return"bg-yellow-500";default:return"bg-blue-500"}}async function Fp(e){try{await navigator.clipboard.writeText(e)}catch{const n=document.createElement("textarea");n.value=e,n.style.position="absolute",n.style.left="-9999px",document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}}function V_(e){var n,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n{const i=new Array(e.length+n.length);for(let a=0;a({classGroupId:e,validator:n}),Y_=(e=new Map,n=null,i)=>({nextPart:e,validators:n,classGroupId:i}),eu="-",Ty=[],cT="arbitrary..",uT=e=>{const n=dT(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return fT(c);const f=c.split(eu),h=f[0]===""&&f.length>1?1:0;return X_(f,h,n)},getConflictingClassGroupIds:(c,f)=>{if(f){const h=a[c],d=i[c];return h?d?oT(d,h):h:d||Ty}return i[c]||Ty}}},X_=(e,n,i)=>{if(e.length-n===0)return i.classGroupId;const l=e[n],s=i.nextPart.get(l);if(s){const d=X_(e,n+1,s);if(d)return d}const c=i.validators;if(c===null)return;const f=n===0?e.join(eu):e.slice(n).join(eu),h=c.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),i=n.indexOf(":"),a=n.slice(0,i);return a?cT+a:void 0})(),dT=e=>{const{theme:n,classGroups:i}=e;return hT(i,n)},hT=(e,n)=>{const i=Y_();for(const a in e){const l=e[a];Gp(l,i,a,n)}return i},Gp=(e,n,i,a)=>{const l=e.length;for(let s=0;s{if(typeof e=="string"){mT(e,n,i);return}if(typeof e=="function"){gT(e,n,i,a);return}bT(e,n,i,a)},mT=(e,n,i)=>{const a=e===""?n:K_(n,e);a.classGroupId=i},gT=(e,n,i,a)=>{if(yT(e)){Gp(e(a),n,i,a);return}n.validators===null&&(n.validators=[]),n.validators.push(sT(i,e))},bT=(e,n,i,a)=>{const l=Object.entries(e),s=l.length;for(let c=0;c{let i=e;const a=n.split(eu),l=a.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,xT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,i=Object.create(null),a=Object.create(null);const l=(s,c)=>{i[s]=c,n++,n>e&&(n=0,a=i,i=Object.create(null))};return{get(s){let c=i[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return l(s,c),c},set(s,c){s in i?i[s]=c:l(s,c)}}},fp="!",Ay=":",vT=[],Cy=(e,n,i,a,l)=>({modifiers:e,hasImportantModifier:n,baseClassName:i,maybePostfixModifierPosition:a,isExternal:l}),_T=e=>{const{prefix:n,experimentalParseClassName:i}=e;let a=l=>{const s=[];let c=0,f=0,h=0,d;const p=l.length;for(let S=0;Sh?d-h:void 0;return Cy(s,b,y,_)};if(n){const l=n+Ay,s=a;a=c=>c.startsWith(l)?s(c.slice(l.length)):Cy(vT,!1,c,void 0,!0)}if(i){const l=a;a=s=>i({className:s,parseClassName:l})}return a},ET=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{n.set(i,1e6+a)}),i=>{const a=[];let l=[];for(let s=0;s0&&(l.sort(),a.push(...l),l=[]),a.push(c)):l.push(c)}return l.length>0&&(l.sort(),a.push(...l)),a}},wT=e=>({cache:xT(e.cacheSize),parseClassName:_T(e),sortModifiers:ET(e),postfixLookupClassGroupIds:ST(e),...uT(e)}),ST=e=>{const n=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let a=0;a{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:s,postfixLookupClassGroupIds:c}=n,f=[],h=e.trim().split(NT);let d="";for(let p=h.length-1;p>=0;p-=1){const m=h[p],{isExternal:y,modifiers:b,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:N}=i(m);if(y){d=m+(d.length>0?" "+d:d);continue}let E=!!N,k;if(E){const H=S.substring(0,N);k=a(H);const j=k&&c[k]?a(S):void 0;j&&j!==k&&(k=j,E=!1)}else k=a(S);if(!k){if(!E){d=m+(d.length>0?" "+d:d);continue}if(k=a(S),!k){d=m+(d.length>0?" "+d:d);continue}E=!1}const w=b.length===0?"":b.length===1?b[0]:s(b).join(":"),O=_?w+fp:w,I=O+k;if(f.indexOf(I)>-1)continue;f.push(I);const R=l(k,E);for(let H=0;H0?" "+d:d)}return d},TT=(...e)=>{let n=0,i,a,l="";for(;n{if(typeof e=="string")return e;let n,i="";for(let a=0;a{let i,a,l,s;const c=h=>{const d=n.reduce((p,m)=>m(p),e());return i=wT(d),a=i.cache.get,l=i.cache.set,s=f,f(h)},f=h=>{const d=a(h);if(d)return d;const p=kT(h,i);return l(h,p),p};return s=c,(...h)=>s(TT(...h))},CT=[],dn=e=>{const n=i=>i[e]||CT;return n.isThemeGetter=!0,n},Q_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,OT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,RT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,LT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qr=e=>MT.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Ui=e=>!!e&&Number.isInteger(Number(e)),Fd=e=>e.endsWith("%")&&We(e.slice(0,-1)),dr=e=>OT.test(e),J_=()=>!0,IT=e=>RT.test(e)&&!DT.test(e),Vp=()=>!1,jT=e=>LT.test(e),BT=e=>zT.test(e),UT=e=>!ke(e)&&!Te(e),HT=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),$T=e=>ra(e,n1,Vp),ke=e=>Q_.test(e),ka=e=>ra(e,i1,IT),My=e=>ra(e,KT,We),qT=e=>ra(e,a1,J_),PT=e=>ra(e,r1,Vp),Oy=e=>ra(e,e1,Vp),FT=e=>ra(e,t1,BT),Ac=e=>ra(e,l1,jT),Te=e=>W_.test(e),Do=e=>Ha(e,i1),GT=e=>Ha(e,r1),Ry=e=>Ha(e,e1),VT=e=>Ha(e,n1),YT=e=>Ha(e,t1),Cc=e=>Ha(e,l1,!0),XT=e=>Ha(e,a1,!0),ra=(e,n,i)=>{const a=Q_.exec(e);return a?a[1]?n(a[1]):i(a[2]):!1},Ha=(e,n,i=!1)=>{const a=W_.exec(e);return a?a[1]?n(a[1]):i:!1},e1=e=>e==="position"||e==="percentage",t1=e=>e==="image"||e==="url",n1=e=>e==="length"||e==="size"||e==="bg-size",i1=e=>e==="length",KT=e=>e==="number",r1=e=>e==="family-name",a1=e=>e==="number"||e==="weight",l1=e=>e==="shadow",ZT=()=>{const e=dn("color"),n=dn("font"),i=dn("text"),a=dn("font-weight"),l=dn("tracking"),s=dn("leading"),c=dn("breakpoint"),f=dn("container"),h=dn("spacing"),d=dn("radius"),p=dn("shadow"),m=dn("inset-shadow"),y=dn("text-shadow"),b=dn("drop-shadow"),_=dn("blur"),S=dn("perspective"),N=dn("aspect"),E=dn("ease"),k=dn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...O(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],j=()=>[Te,ke,h],K=()=>[Qr,"full","auto",...j()],L=()=>[Ui,"none","subgrid",Te,ke],q=()=>["auto",{span:["full",Ui,Te,ke]},Ui,Te,ke],X=()=>[Ui,"auto",Te,ke],Y=()=>["auto","min","max","fr",Te,ke],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...j()],B=()=>[Qr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],V=()=>[Qr,"screen","full","dvw","lvw","svw","min","max","fit",...j()],Z=()=>[Qr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],C=()=>[e,Te,ke],z=()=>[...O(),Ry,Oy,{position:[Te,ke]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",VT,$T,{size:[Te,ke]}],F=()=>[Fd,Do,ka],U=()=>["","none","full",d,Te,ke],Q=()=>["",We,Do,ka],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[We,Fd,Ry,Oy],ce=()=>["","none",_,Te,ke],de=()=>["none",We,Te,ke],be=()=>["none",We,Te,ke],Ee=()=>[We,Te,ke],Se=()=>[Qr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dr],breakpoint:[dr],color:[J_],container:[dr],"drop-shadow":[dr],ease:["in","out","in-out"],font:[UT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dr],shadow:[dr],spacing:["px",We],text:[dr],"text-shadow":[dr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qr,ke,Te,N]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[HT],columns:[{columns:[We,ke,Te,f]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Ui,"auto",Te,ke]}],basis:[{basis:[Qr,"full","auto",f,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,Qr,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Ui,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...Z()]}],"min-block-size":[{"min-block":["auto",...Z()]}],"max-block-size":[{"max-block":["none",...Z()]}],w:[{w:[f,"screen",...B()]}],"min-w":[{"min-w":[f,"screen","none",...B()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",i,Do,ka]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,XT,qT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fd,ke]}],"font-family":[{font:[GT,PT,n]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,Te,ke]}],"line-clamp":[{"line-clamp":[We,"none",Te,My]}],leading:[{leading:[s,...j()]}],"list-image":[{"list-image":["none",Te,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,ka]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[We,"auto",Te,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[Ui,Te,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ui,Te,ke],radial:["",Te,ke],conic:[Ui,Te,ke]},YT,FT]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,Do,ka]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",p,Cc,Ac]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",m,Cc,Ac]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[We,ka]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",y,Cc,Ac]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[We,Te,ke]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Te,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,ke]}],filter:[{filter:["","none",Te,ke]}],blur:[{blur:ce()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",b,Cc,Ac]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",We,Te,ke]}],"hue-rotate":[{"hue-rotate":[We,Te,ke]}],invert:[{invert:["",We,Te,ke]}],saturate:[{saturate:[We,Te,ke]}],sepia:[{sepia:["",We,Te,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,ke]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[We,Te,ke]}],"backdrop-contrast":[{"backdrop-contrast":[We,Te,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,Te,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,Te,ke]}],"backdrop-invert":[{"backdrop-invert":["",We,Te,ke]}],"backdrop-opacity":[{"backdrop-opacity":[We,Te,ke]}],"backdrop-saturate":[{"backdrop-saturate":[We,Te,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",We,Te,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",Te,ke]}],ease:[{ease:["linear","initial",E,Te,ke]}],delay:[{delay:[We,Te,ke]}],animate:[{animate:["none",k,Te,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Te,ke]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[Te,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],zoom:[{zoom:[Ui,Te,ke]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te,ke]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[We,Do,ka,My]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QT=AT(ZT);function Mc(...e){return QT(lT(e))}function WT(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function dp(e){const n=new Date(e),a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<60?"just now":a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:WT(e)}function JT(e){return`STRIX-${e}`}function eA(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const tA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iA={};function Dy(e,n){return(iA.jsx?nA:tA).test(e)}const rA=/[ \t\n\f\r]/g;function aA(e){return typeof e=="object"?e.type==="text"?Ly(e.value):!1:Ly(e)}function Ly(e){return e.replace(rA,"")===""}class os{constructor(n,i,a){this.normal=i,this.property=n,a&&(this.space=a)}}os.prototype.normal={};os.prototype.property={};os.prototype.space=void 0;function o1(e,n){const i={},a={};for(const l of e)Object.assign(i,l.property),Object.assign(a,l.normal);return new os(i,a,n)}function hp(e){return e.toLowerCase()}class Gn{constructor(n,i){this.attribute=i,this.property=n}}Gn.prototype.attribute="";Gn.prototype.booleanish=!1;Gn.prototype.boolean=!1;Gn.prototype.commaOrSpaceSeparated=!1;Gn.prototype.commaSeparated=!1;Gn.prototype.defined=!1;Gn.prototype.mustUseProperty=!1;Gn.prototype.number=!1;Gn.prototype.overloadedBoolean=!1;Gn.prototype.property="";Gn.prototype.spaceSeparated=!1;Gn.prototype.space=void 0;let lA=0;const Fe=$a(),an=$a(),pp=$a(),ve=$a(),Tt=$a(),Oa=$a(),ti=$a();function $a(){return 2**++lA}const mp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Fe,booleanish:an,commaOrSpaceSeparated:ti,commaSeparated:Oa,number:ve,overloadedBoolean:pp,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),Gd=Object.keys(mp);class Yp extends Gn{constructor(n,i,a,l){let s=-1;if(super(n,i),zy(this,"space",l),typeof a=="number")for(;++s4&&i.slice(0,4)==="data"&&fA.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Iy,pA);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Iy.test(s)){let c=s.replace(uA,hA);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=Yp}return new l(a,n)}function hA(e){return"-"+e.toLowerCase()}function pA(e){return e.charAt(1).toUpperCase()}const mA=o1([s1,oA,f1,d1,h1],"html"),Xp=o1([s1,sA,f1,d1,h1],"svg");function gA(e){return e.join(" ").trim()}var El={},Vd,jy;function bA(){if(jy)return Vd;jy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=` -`,d="/",p="*",m="",y="comment",b="declaration";function _(N,E){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];E=E||{};var k=1,w=1;function O(A){var $=A.match(n);$&&(k+=$.length);var M=A.lastIndexOf(h);w=~M?A.length-M:w+A.length}function I(){var A={line:k,column:w};return function($){return $.position=new R(A),K(),$}}function R(A){this.start=A,this.end={line:k,column:w},this.source=E.source}R.prototype.content=N;function H(A){var $=new Error(E.source+":"+k+":"+w+": "+A);if($.reason=A,$.filename=E.source,$.line=k,$.column=w,$.source=N,!E.silent)throw $}function j(A){var $=A.exec(N);if($){var M=$[0];return O(M),N=N.slice(M.length),$}}function K(){j(i)}function L(A){var $;for(A=A||[];$=q();)$!==!1&&A.push($);return A}function q(){var A=I();if(!(d!=N.charAt(0)||p!=N.charAt(1))){for(var $=2;m!=N.charAt($)&&(p!=N.charAt($)||d!=N.charAt($+1));)++$;if($+=2,m===N.charAt($-1))return H("End of comment missing");var M=N.slice(2,$-2);return w+=2,O(M),N=N.slice($),w+=2,A({type:y,comment:M})}}function X(){var A=I(),$=j(a);if($){if(q(),!j(l))return H("property missing ':'");var M=j(s),B=A({type:b,property:S($[0].replace(e,m)),value:M?S(M[0].replace(e,m)):m});return j(c),B}}function Y(){var A=[];L(A);for(var $;$=X();)$!==!1&&(A.push($),L(A));return A}return K(),Y()}function S(N){return N?N.replace(f,m):m}return Vd=_,Vd}var By;function yA(){if(By)return El;By=1;var e=El&&El.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(El,"__esModule",{value:!0}),El.default=i;const n=e(bA());function i(a,l){let s=null;if(!a||typeof a!="string")return s;const c=(0,n.default)(a),f=typeof l=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:d,value:p}=h;f?l(d,p,h):p&&(s=s||{},s[d]=p)}),s}return El}var Lo={},Uy;function xA(){if(Uy)return Lo;Uy=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(d){return!d||i.test(d)||e.test(d)},c=function(d,p){return p.toUpperCase()},f=function(d,p){return"".concat(p,"-")},h=function(d,p){return p===void 0&&(p={}),s(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(l,f):d=d.replace(a,f),d.replace(n,c))};return Lo.camelCase=h,Lo}var zo,Hy;function vA(){if(Hy)return zo;Hy=1;var e=zo&&zo.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(yA()),i=xA();function a(l,s){var c={};return!l||typeof l!="string"||(0,n.default)(l,function(f,h){f&&h&&(c[(0,i.camelCase)(f,s)]=h)}),c}return a.default=a,zo=a,zo}var _A=vA();const EA=as(_A),p1=m1("end"),Kp=m1("start");function m1(e){return n;function n(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function wA(e){const n=Kp(e),i=p1(e);if(n&&i)return{start:n,end:i}}function Po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?$y(e.position):"start"in e||"end"in e?$y(e):"line"in e||"column"in e?gp(e):""}function gp(e){return qy(e&&e.line)+":"+qy(e&&e.column)}function $y(e){return gp(e&&e.start)+"-"+gp(e&&e.end)}function qy(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(n,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let l="",s={},c=!1;if(i&&("line"in i&&"column"in i?s={place:i}:"start"in i&&"end"in i?s={place:i}:"type"in i?s={ancestors:[i],place:i.position}:s={...i}),typeof n=="string"?l=n:!s.cause&&n&&(c=!0,l=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?s.ruleId=a:(s.source=a.slice(0,h),s.ruleId=a.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=Po(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="";An.prototype.name="";An.prototype.reason="";An.prototype.message="";An.prototype.stack="";An.prototype.column=void 0;An.prototype.line=void 0;An.prototype.ancestors=void 0;An.prototype.cause=void 0;An.prototype.fatal=void 0;An.prototype.place=void 0;An.prototype.ruleId=void 0;An.prototype.source=void 0;const Zp={}.hasOwnProperty,SA=new Map,NA=/[A-Z]/g,kA=new Set(["table","tbody","thead","tfoot","tr"]),TA=new Set(["td","th"]),g1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function AA(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let a;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=IA(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=zA(i,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:a,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Xp:mA,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=b1(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function b1(e,n,i){if(n.type==="element")return CA(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return MA(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return RA(e,n,i);if(n.type==="mdxjsEsm")return OA(e,n);if(n.type==="root")return DA(e,n,i);if(n.type==="text")return LA(e,n)}function CA(e,n,i){const a=e.schema;let l=a;n.tagName.toLowerCase()==="svg"&&a.space==="html"&&(l=Xp,e.schema=l),e.ancestors.push(n);const s=x1(e,n.tagName,!1),c=jA(e,n);let f=Wp(e,n);return kA.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!aA(h):!0})),y1(e,c,s,n),Qp(c,f),e.ancestors.pop(),e.schema=a,e.create(n,s,c,i)}function MA(e,n){if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Xo(e,n.position)}function OA(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Xo(e,n.position)}function RA(e,n,i){const a=e.schema;let l=a;n.name==="svg"&&a.space==="html"&&(l=Xp,e.schema=l),e.ancestors.push(n);const s=n.name===null?e.Fragment:x1(e,n.name,!0),c=BA(e,n),f=Wp(e,n);return y1(e,c,s,n),Qp(c,f),e.ancestors.pop(),e.schema=a,e.create(n,s,c,i)}function DA(e,n,i){const a={};return Qp(a,Wp(e,n)),e.create(n,e.Fragment,a,i)}function LA(e,n){return n.value}function y1(e,n,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=a)}function Qp(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function zA(e,n,i){return a;function a(l,s,c,f){const d=Array.isArray(c.children)?i:n;return f?d(s,c,f):d(s,c)}}function IA(e,n){return i;function i(a,l,s,c){const f=Array.isArray(s.children),h=Kp(a);return n(l,s,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function jA(e,n){const i={};let a,l;for(l in n.properties)if(l!=="children"&&Zp.call(n.properties,l)){const s=UA(e,l,n.properties[l]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&TA.has(n.tagName)?a=f:i[c]=f}}if(a){const s=i.style||(i.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function BA(e,n){const i={};for(const a of n.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else Xo(e,n.position);else{const l=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Xo(e,n.position);else s=a.value===null?!0:a.value;i[l]=s}return i}function Wp(e,n){const i=[];let a=-1;const l=e.passKeys?new Map:SA;for(;++al?0:l+n:n=n>l?l:n,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(n,i),e.splice(...c);else for(i&&e.splice(n,i);s0?(ii(e,e.length,0,n),e):n}const Gy={}.hasOwnProperty;function _1(e){const n={};let i=-1;for(;++i13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dn=aa(/[A-Za-z]/),Tn=aa(/[\dA-Za-z]/),XA=aa(/[#-'*+\--9=?A-Z^-~]/);function tu(e){return e!==null&&(e<32||e===127)}const bp=aa(/\d/),KA=aa(/[\dA-Fa-f]/),ZA=aa(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function At(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const yu=aa(new RegExp("\\p{P}|\\p{S}","u")),La=aa(/\s/);function aa(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Hl(e){const n=[];let i=-1,a=0,l=0;for(;++i55295&&s<57344){const f=e.charCodeAt(i+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),l=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(a,i),encodeURIComponent(c)),a=i+l+1,c=""),l&&(i+=l,l=0)}return n.join("")+e.slice(a)}function st(e,n,i,a){const l=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return tt(h)?(e.enter(i),f(h)):n(h)}function f(h){return tt(h)&&s++c))return;const H=n.events.length;let j=H,K,L;for(;j--;)if(n.events[j][0]==="exit"&&n.events[j][1].type==="chunkFlow"){if(K){L=n.events[j][1].end;break}K=!0}for(E(a),R=H;Rw;){const I=i[O];n.containerState=I[1],I[0].exit.call(n,e)}i.length=w}function k(){l.write([null]),s=void 0,l=void 0,n.containerState._closeFlow=void 0}}function tC(e,n,i){return st(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ol(e){if(e===null||At(e)||La(e))return 1;if(yu(e))return 2}function xu(e,n,i){const a=[];let l=-1;for(;++l1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const m={...e[a][1].end},y={...e[i][1].start};Yy(m,-h),Yy(y,h),c={type:h>1?"strongSequence":"emphasisSequence",start:m,end:{...e[a][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:y},s={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},l={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[i][1].start={...f.end},d=[],e[a][1].end.offset-e[a][1].start.offset&&(d=mi(d,[["enter",e[a][1],n],["exit",e[a][1],n]])),d=mi(d,[["enter",l,n],["enter",c,n],["exit",c,n],["enter",s,n]]),d=mi(d,xu(n.parser.constructs.insideSpan.null,e.slice(a+1,i),n)),d=mi(d,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",l,n]]),e[i][1].end.offset-e[i][1].start.offset?(p=2,d=mi(d,[["enter",e[i][1],n],["exit",e[i][1],n]])):p=0,ii(e,a-1,i-a+3,d),i=a+d.length-p-2;break}}for(i=-1;++i0&&tt(R)?st(e,k,"linePrefix",s+1)(R):k(R)}function k(R){return R===null||je(R)?e.check(Xy,S,O)(R):(e.enter("codeFlowValue"),w(R))}function w(R){return R===null||je(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),w)}function O(R){return e.exit("codeFenced"),n(R)}function I(R,H,j){let K=0;return L;function L($){return R.enter("lineEnding"),R.consume($),R.exit("lineEnding"),q}function q($){return R.enter("codeFencedFence"),tt($)?st(R,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):X($)}function X($){return $===f?(R.enter("codeFencedFenceSequence"),Y($)):j($)}function Y($){return $===f?(K++,R.consume($),Y):K>=c?(R.exit("codeFencedFenceSequence"),tt($)?st(R,A,"whitespace")($):A($)):j($)}function A($){return $===null||je($)?(R.exit("codeFencedFence"),H($)):j($)}}}function hC(e,n,i){const a=this;return l;function l(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?i(c):n(c)}}const Xd={name:"codeIndented",tokenize:mC},pC={partial:!0,tokenize:gC};function mC(e,n,i){const a=this;return l;function l(d){return e.enter("codeIndented"),st(e,s,"linePrefix",5)(d)}function s(d){const p=a.events[a.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(d):i(d)}function c(d){return d===null?h(d):je(d)?e.attempt(pC,c,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||je(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),n(d)}}function gC(e,n,i){const a=this;return l;function l(c){return a.parser.lazy[a.now().line]?i(c):je(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):st(e,s,"linePrefix",5)(c)}function s(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):je(c)?l(c):i(c)}}const bC={name:"codeText",previous:xC,resolve:yC,tokenize:vC};function yC(e){let n=e.length-4,i=3,a,l;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=i;++a=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(n,i,a){const l=i||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return a&&Io(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Io(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Io(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(c):e.interrupt(a.parser.constructs.flow,i,n)(c)}}function T1(e,n,i,a,l,s,c,f,h){const d=h||Number.POSITIVE_INFINITY;let p=0;return m;function m(E){return E===60?(e.enter(a),e.enter(l),e.enter(s),e.consume(E),e.exit(s),y):E===null||E===32||E===41||tu(E)?i(E):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(E))}function y(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(l),e.exit(a),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===62?(e.exit("chunkString"),e.exit(f),y(E)):E===null||E===60||je(E)?i(E):(e.consume(E),E===92?_:b)}function _(E){return E===60||E===62||E===92?(e.consume(E),b):b(E)}function S(E){return!p&&(E===null||E===41||At(E))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),n(E)):p999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(s),e.enter(l),e.consume(b),e.exit(l),e.exit(a),n):je(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||b===91||b===93||je(b)||f++>999?(e.exit("chunkString"),p(b)):(e.consume(b),h||(h=!tt(b)),b===92?y:m)}function y(b){return b===91||b===92||b===93?(e.consume(b),f++,m):m(b)}}function C1(e,n,i,a,l,s){let c;return f;function f(y){return y===34||y===39||y===40?(e.enter(a),e.enter(l),e.consume(y),e.exit(l),c=y===40?41:y,h):i(y)}function h(y){return y===c?(e.enter(l),e.consume(y),e.exit(l),e.exit(a),n):(e.enter(s),d(y))}function d(y){return y===c?(e.exit(s),h(c)):y===null?i(y):je(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),st(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===c||y===null||je(y)?(e.exit("chunkString"),d(y)):(e.consume(y),y===92?m:p)}function m(y){return y===c||y===92?(e.consume(y),p):p(y)}}function Fo(e,n){let i;return a;function a(l){return je(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i=!0,a):tt(l)?st(e,a,i?"linePrefix":"lineSuffix")(l):n(l)}}const AC={name:"definition",tokenize:MC},CC={partial:!0,tokenize:OC};function MC(e,n,i){const a=this;let l;return s;function s(b){return e.enter("definition"),c(b)}function c(b){return A1.call(a,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return l=Ci(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):i(b)}function h(b){return At(b)?Fo(e,d)(b):d(b)}function d(b){return T1(e,p,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function p(b){return e.attempt(CC,m,m)(b)}function m(b){return tt(b)?st(e,y,"whitespace")(b):y(b)}function y(b){return b===null||je(b)?(e.exit("definition"),a.parser.defined.push(l),n(b)):i(b)}}function OC(e,n,i){return a;function a(f){return At(f)?Fo(e,l)(f):i(f)}function l(f){return C1(e,s,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return tt(f)?st(e,c,"whitespace")(f):c(f)}function c(f){return f===null||je(f)?n(f):i(f)}}const RC={name:"hardBreakEscape",tokenize:DC};function DC(e,n,i){return a;function a(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return je(s)?(e.exit("hardBreakEscape"),n(s)):i(s)}}const LC={name:"headingAtx",resolve:zC,tokenize:IC};function zC(e,n){let i=e.length-2,a=3,l,s;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(l={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},s={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ii(e,a,i-a+1,[["enter",l,n],["enter",s,n],["exit",s,n],["exit",l,n]])),e}function IC(e,n,i){let a=0;return l;function l(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),c(p)}function c(p){return p===35&&a++<6?(e.consume(p),c):p===null||At(p)?(e.exit("atxHeadingSequence"),f(p)):i(p)}function f(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||je(p)?(e.exit("atxHeading"),n(p)):tt(p)?st(e,f,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),f(p))}function d(p){return p===null||p===35||At(p)?(e.exit("atxHeadingText"),f(p)):(e.consume(p),d)}}const jC=["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"],Zy=["pre","script","style","textarea"],BC={concrete:!0,name:"htmlFlow",resolveTo:$C,tokenize:qC},UC={partial:!0,tokenize:FC},HC={partial:!0,tokenize:PC};function $C(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function qC(e,n,i){const a=this;let l,s,c,f,h;return d;function d(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),m}function m(D){return D===33?(e.consume(D),y):D===47?(e.consume(D),s=!0,S):D===63?(e.consume(D),l=3,a.interrupt?n:C):Dn(D)?(e.consume(D),c=String.fromCharCode(D),N):i(D)}function y(D){return D===45?(e.consume(D),l=2,b):D===91?(e.consume(D),l=5,f=0,_):Dn(D)?(e.consume(D),l=4,a.interrupt?n:C):i(D)}function b(D){return D===45?(e.consume(D),a.interrupt?n:C):i(D)}function _(D){const F="CDATA[";return D===F.charCodeAt(f++)?(e.consume(D),f===F.length?a.interrupt?n:X:_):i(D)}function S(D){return Dn(D)?(e.consume(D),c=String.fromCharCode(D),N):i(D)}function N(D){if(D===null||D===47||D===62||At(D)){const F=D===47,U=c.toLowerCase();return!F&&!s&&Zy.includes(U)?(l=1,a.interrupt?n(D):X(D)):jC.includes(c.toLowerCase())?(l=6,F?(e.consume(D),E):a.interrupt?n(D):X(D)):(l=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(D):s?k(D):w(D))}return D===45||Tn(D)?(e.consume(D),c+=String.fromCharCode(D),N):i(D)}function E(D){return D===62?(e.consume(D),a.interrupt?n:X):i(D)}function k(D){return tt(D)?(e.consume(D),k):L(D)}function w(D){return D===47?(e.consume(D),L):D===58||D===95||Dn(D)?(e.consume(D),O):tt(D)?(e.consume(D),w):L(D)}function O(D){return D===45||D===46||D===58||D===95||Tn(D)?(e.consume(D),O):I(D)}function I(D){return D===61?(e.consume(D),R):tt(D)?(e.consume(D),I):w(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?i(D):D===34||D===39?(e.consume(D),h=D,H):tt(D)?(e.consume(D),R):j(D)}function H(D){return D===h?(e.consume(D),h=null,K):D===null||je(D)?i(D):(e.consume(D),H)}function j(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||At(D)?I(D):(e.consume(D),j)}function K(D){return D===47||D===62||tt(D)?w(D):i(D)}function L(D){return D===62?(e.consume(D),q):i(D)}function q(D){return D===null||je(D)?X(D):tt(D)?(e.consume(D),q):i(D)}function X(D){return D===45&&l===2?(e.consume(D),M):D===60&&l===1?(e.consume(D),B):D===62&&l===4?(e.consume(D),z):D===63&&l===3?(e.consume(D),C):D===93&&l===5?(e.consume(D),Z):je(D)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(UC,G,Y)(D)):D===null||je(D)?(e.exit("htmlFlowData"),Y(D)):(e.consume(D),X)}function Y(D){return e.check(HC,A,G)(D)}function A(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),$}function $(D){return D===null||je(D)?Y(D):(e.enter("htmlFlowData"),X(D))}function M(D){return D===45?(e.consume(D),C):X(D)}function B(D){return D===47?(e.consume(D),c="",V):X(D)}function V(D){if(D===62){const F=c.toLowerCase();return Zy.includes(F)?(e.consume(D),z):X(D)}return Dn(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),V):X(D)}function Z(D){return D===93?(e.consume(D),C):X(D)}function C(D){return D===62?(e.consume(D),z):D===45&&l===2?(e.consume(D),C):X(D)}function z(D){return D===null||je(D)?(e.exit("htmlFlowData"),G(D)):(e.consume(D),z)}function G(D){return e.exit("htmlFlow"),n(D)}}function PC(e,n,i){const a=this;return l;function l(c){return je(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):i(c)}function s(c){return a.parser.lazy[a.now().line]?i(c):n(c)}}function FC(e,n,i){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ss,n,i)}}const GC={name:"htmlText",tokenize:VC};function VC(e,n,i){const a=this;let l,s,c;return f;function f(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),h}function h(C){return C===33?(e.consume(C),d):C===47?(e.consume(C),I):C===63?(e.consume(C),w):Dn(C)?(e.consume(C),j):i(C)}function d(C){return C===45?(e.consume(C),p):C===91?(e.consume(C),s=0,_):Dn(C)?(e.consume(C),k):i(C)}function p(C){return C===45?(e.consume(C),b):i(C)}function m(C){return C===null?i(C):C===45?(e.consume(C),y):je(C)?(c=m,B(C)):(e.consume(C),m)}function y(C){return C===45?(e.consume(C),b):m(C)}function b(C){return C===62?M(C):C===45?y(C):m(C)}function _(C){const z="CDATA[";return C===z.charCodeAt(s++)?(e.consume(C),s===z.length?S:_):i(C)}function S(C){return C===null?i(C):C===93?(e.consume(C),N):je(C)?(c=S,B(C)):(e.consume(C),S)}function N(C){return C===93?(e.consume(C),E):S(C)}function E(C){return C===62?M(C):C===93?(e.consume(C),E):S(C)}function k(C){return C===null||C===62?M(C):je(C)?(c=k,B(C)):(e.consume(C),k)}function w(C){return C===null?i(C):C===63?(e.consume(C),O):je(C)?(c=w,B(C)):(e.consume(C),w)}function O(C){return C===62?M(C):w(C)}function I(C){return Dn(C)?(e.consume(C),R):i(C)}function R(C){return C===45||Tn(C)?(e.consume(C),R):H(C)}function H(C){return je(C)?(c=H,B(C)):tt(C)?(e.consume(C),H):M(C)}function j(C){return C===45||Tn(C)?(e.consume(C),j):C===47||C===62||At(C)?K(C):i(C)}function K(C){return C===47?(e.consume(C),M):C===58||C===95||Dn(C)?(e.consume(C),L):je(C)?(c=K,B(C)):tt(C)?(e.consume(C),K):M(C)}function L(C){return C===45||C===46||C===58||C===95||Tn(C)?(e.consume(C),L):q(C)}function q(C){return C===61?(e.consume(C),X):je(C)?(c=q,B(C)):tt(C)?(e.consume(C),q):K(C)}function X(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),l=C,Y):je(C)?(c=X,B(C)):tt(C)?(e.consume(C),X):(e.consume(C),A)}function Y(C){return C===l?(e.consume(C),l=void 0,$):C===null?i(C):je(C)?(c=Y,B(C)):(e.consume(C),Y)}function A(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||At(C)?K(C):(e.consume(C),A)}function $(C){return C===47||C===62||At(C)?K(C):i(C)}function M(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),n):i(C)}function B(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),V}function V(C){return tt(C)?st(e,Z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):Z(C)}function Z(C){return e.enter("htmlTextData"),c(C)}}const tm={name:"labelEnd",resolveAll:ZC,resolveTo:QC,tokenize:WC},YC={tokenize:JC},XC={tokenize:eM},KC={tokenize:tM};function ZC(e){let n=-1;const i=[];for(;++n=3&&(d===null||je(d))?(e.exit("thematicBreak"),n(d)):i(d)}function h(d){return d===l?(e.consume(d),a++,h):(e.exit("thematicBreakSequence"),tt(d)?st(e,f,"whitespace")(d):f(d))}}const qn={continuation:{tokenize:fM},exit:hM,name:"list",tokenize:uM},sM={partial:!0,tokenize:pM},cM={partial:!0,tokenize:dM};function uM(e,n,i){const a=this,l=a.events[a.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return f;function f(b){const _=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:bp(b)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Vc,i,d)(b):d(b);if(!a.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return i(b)}function h(b){return bp(b)&&++c<10?(e.consume(b),h):(!a.interrupt||c<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),d(b)):i(b)}function d(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,e.check(ss,a.interrupt?i:p,e.attempt(sM,y,m))}function p(b){return a.containerState.initialBlankLine=!0,s++,y(b)}function m(b){return tt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),y):i(b)}function y(b){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function fM(e,n,i){const a=this;return a.containerState._closeFlow=void 0,e.check(ss,l,s);function l(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,st(e,n,"listItemIndent",a.containerState.size+1)(f)}function s(f){return a.containerState.furtherBlankLines||!tt(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(cM,n,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,st(e,e.attempt(qn,n,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function dM(e,n,i){const a=this;return st(e,l,"listItemIndent",a.containerState.size+1);function l(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?n(s):i(s)}}function hM(e){e.exit(this.containerState.type)}function pM(e,n,i){const a=this;return st(e,l,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=a.events[a.events.length-1];return!tt(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):i(s)}}const Qy={name:"setextUnderline",resolveTo:mM,tokenize:gM};function mM(e,n){let i=e.length,a,l,s;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(l=i)}else e[i][1].type==="content"&&e.splice(i,1),!s&&e[i][1].type==="definition"&&(s=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,n]),e.splice(s+1,0,["exit",e[a][1],n]),e[a][1].end={...e[s][1].end}):e[a][1]=c,e.push(["exit",c,n]),e}function gM(e,n,i){const a=this;let l;return s;function s(d){let p=a.events.length,m;for(;p--;)if(a.events[p][1].type!=="lineEnding"&&a.events[p][1].type!=="linePrefix"&&a.events[p][1].type!=="content"){m=a.events[p][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||m)?(e.enter("setextHeadingLine"),l=d,c(d)):i(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===l?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),tt(d)?st(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||je(d)?(e.exit("setextHeadingLine"),n(d)):i(d)}}const bM={tokenize:yM};function yM(e){const n=this,i=e.attempt(ss,a,e.attempt(this.parser.constructs.flowInitial,l,st(e,e.attempt(this.parser.constructs.flow,l,e.attempt(wC,l)),"linePrefix")));return i;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,i}}const xM={resolveAll:O1()},vM=M1("string"),_M=M1("text");function M1(e){return{resolveAll:O1(e==="text"?EM:void 0),tokenize:n};function n(i){const a=this,l=this.parser.constructs[e],s=i.attempt(l,c,f);return c;function c(p){return d(p)?s(p):f(p)}function f(p){if(p===null){i.consume(p);return}return i.enter("data"),i.consume(p),h}function h(p){return d(p)?(i.exit("data"),s(p)):(i.consume(p),h)}function d(p){if(p===null)return!0;const m=l[p];let y=-1;if(m)for(;++y-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function zM(e,n){let i=-1;const a=[];let l;for(;++i0){const sn=Me.tokenStack[Me.tokenStack.length-1];(sn[1]||Jy).call(Me,void 0,sn[0])}for(ye.position={start:Wr(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Wr(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze0&&(a.className=["language-"+l[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return n.meta&&(s.data={meta:n.meta}),e.patch(n,s),s=e.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(n,s),s}function KM(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function ZM(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function QM(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(n.identifier).toUpperCase(),l=Hl(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=s+1,f+=1,e.footnoteCounts.set(a,f);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+l,id:i+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,d),e.applyData(n,d)}function WM(e,n){const i={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function JM(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function L1(e,n){const i=n.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+a}];const l=e.all(n),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=a:l.push({type:"text",value:a}),l}function eO(e,n){const i=String(n.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return L1(e,n);const l={src:Hl(a.url||""),alt:n.alt};a.title!==null&&a.title!==void 0&&(l.title=a.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,s),e.applyData(n,s)}function tO(e,n){const i={src:Hl(n.url)};n.alt!==null&&n.alt!==void 0&&(i.alt=n.alt),n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,a),e.applyData(n,a)}function nO(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,a),e.applyData(n,a)}function iO(e,n){const i=String(n.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return L1(e,n);const l={href:Hl(a.url||"")};a.title!==null&&a.title!==void 0&&(l.title=a.title);const s={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function rO(e,n){const i={href:Hl(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function aO(e,n,i){const a=e.all(n),l=i?lO(i):z1(n),s={},c=[];if(typeof n.checked=="boolean"){const p=a[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f1}function oO(e,n){const i={},a=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++l0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=Kp(n.children[1]),h=p1(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),l.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,s),e.applyData(n,s)}function dO(e,n,i){const a=i?i.children:void 0,s=(a?a.indexOf(n):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:n.children.length;let h=-1;const d=[];for(;++h0,!0),a[0]),l=a.index+a[0].length,a=i.exec(n);return s.push(nx(n.slice(l),l>0,!1)),s.join("")}function nx(e,n,i){let a=0,l=e.length;if(n){let s=e.codePointAt(a);for(;s===ex||s===tx;)a++,s=e.codePointAt(a)}if(i){let s=e.codePointAt(l-1);for(;s===ex||s===tx;)l--,s=e.codePointAt(l-1)}return l>a?e.slice(a,l):""}function mO(e,n){const i={type:"text",value:pO(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function gO(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const bO={blockquote:VM,break:YM,code:XM,delete:KM,emphasis:ZM,footnoteReference:QM,heading:WM,html:JM,imageReference:eO,image:tO,inlineCode:nO,linkReference:iO,link:rO,listItem:aO,list:oO,paragraph:sO,root:cO,strong:uO,table:fO,tableCell:hO,tableRow:dO,text:mO,thematicBreak:gO,toml:Oc,yaml:Oc,definition:Oc,footnoteDefinition:Oc};function Oc(){}const I1=-1,vu=0,Go=1,nu=2,nm=3,im=4,rm=5,am=6,j1=7,B1=8,U1=typeof self=="object"?self:globalThis,ix=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new U1[e](n)},yO=(e,n)=>{const i=(l,s)=>(e.set(s,l),l),a=l=>{if(e.has(l))return e.get(l);const[s,c]=n[l];switch(s){case vu:case I1:return i(c,l);case Go:{const f=i([],l);for(const h of c)f.push(a(h));return f}case nu:{const f=i({},l);for(const[h,d]of c)f[a(h)]=a(d);return f}case nm:return i(new Date(c),l);case im:{const{source:f,flags:h}=c;return i(new RegExp(f,h),l)}case rm:{const f=i(new Map,l);for(const[h,d]of c)f.set(a(h),a(d));return f}case am:{const f=i(new Set,l);for(const h of c)f.add(a(h));return f}case j1:{const{name:f,message:h}=c;return i(typeof U1[f]=="function"?ix(f,h):new Error(h),l)}case B1:return i(BigInt(c),l);case"BigInt":return i(Object(BigInt(c)),l);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(ix(s,c),l)};return a},rx=e=>yO(new Map,e)(0),Aa="",{toString:xO}={},{keys:vO}=Object,jo=e=>{const n=typeof e;if(n!=="object"||!e)return[vu,n];const i=xO.call(e).slice(8,-1);switch(i){case"Array":return[Go,Aa];case"Object":return[nu,Aa];case"Date":return[nm,Aa];case"RegExp":return[im,Aa];case"Map":return[rm,Aa];case"Set":return[am,Aa];case"DataView":return[Go,i]}return i.includes("Array")?[Go,i]:e instanceof Error?[j1,e.name||"Error"]:[nu,i]},Rc=([e,n])=>e===vu&&(n==="function"||n==="symbol"),_O=(e,n,i,a)=>{const l=(c,f)=>{const h=a.push(c)-1;return i.set(f,h),h},s=c=>{if(i.has(c))return i.get(c);let[f,h]=jo(c);switch(f){case vu:{let p=c;switch(h){case"bigint":f=B1,p=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return l([I1],c)}return l([f,p],c)}case Go:{if(h){let y=c;return h==="DataView"?y=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(y=new Uint8Array(c)),l([h,[...y]],c)}const p=[],m=l([f,p],c);for(const y of c)p.push(s(y));return m}case nu:{if(h)switch(h){case"BigInt":return l([h,c.toString()],c);case"Boolean":case"Number":case"String":return l([h,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const p=[],m=l([f,p],c);for(const y of vO(c))(e||!Rc(jo(c[y])))&&p.push([s(y),s(c[y])]);return m}case nm:return l([f,isNaN(c.getTime())?Aa:c.toISOString()],c);case im:{const{source:p,flags:m}=c;return l([f,{source:p,flags:m}],c)}case rm:{const p=[],m=l([f,p],c);for(const[y,b]of c)(e||!(Rc(jo(y))||Rc(jo(b))))&&p.push([s(y),s(b)]);return m}case am:{const p=[],m=l([f,p],c);for(const y of c)(e||!Rc(jo(y)))&&p.push(s(y));return m}}const{message:d}=c;return l([f,{name:h,message:d}],c)};return s},ax=(e,{json:n,lossy:i}={})=>{const a=[];return _O(!(n||i),!!n,new Map,a)(e),a},iu=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?rx(ax(e,n)):structuredClone(e):(e,n)=>rx(ax(e,n));function EO(e,n){const i=[{type:"text",value:"↩"}];return n>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),i}function wO(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function SO(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||EO,a=e.options.footnoteBackLabel||wO,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h0&&_.push({type:"text",value:" "});let k=typeof i=="string"?i:i(h,b);typeof k=="string"&&(k={type:"text",value:k}),_.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+y+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,b),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const N=p[p.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const k=N.children[N.children.length-1];k&&k.type==="text"?k.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(..._)}else p.push(..._);const E={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(p,!0)};e.patch(d,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...iu(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:` -`}]}}const _u=(function(e){if(e==null)return AO;if(typeof e=="function")return Eu(e);if(typeof e=="object")return Array.isArray(e)?NO(e):kO(e);if(typeof e=="string")return TO(e);throw new Error("Expected function, string, or object as test")});function NO(e){const n=[];let i=-1;for(;++i":""))+")"})}return y;function y(){let b=H1,_,S,N;if((!n||s(h,d,p[p.length-1]||void 0))&&(b=RO(i(h,p)),b[0]===xp))return b;if("children"in h&&h.children){const E=h;if(E.children&&b[0]!==OO)for(S=(a?E.children.length:-1)+c,N=p.concat(E);S>-1&&S0&&i.push({type:"text",value:` -`}),i}function lx(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function ox(e,n){const i=LO(e,n),a=i.one(e,void 0),l=SO(i),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return l&&s.children.push({type:"text",value:` -`},l),s}function UO(e,n){return e&&"run"in e?async function(i,a){const l=ox(i,{file:a,...n});await e.run(l,a)}:function(i,a){return ox(i,{file:a,...e||n})}}function sx(e){if(e)throw e}var Zd,cx;function HO(){if(cx)return Zd;cx=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},s=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var p=e.call(d,"constructor"),m=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!p&&!m)return!1;var y;for(y in d);return typeof y>"u"||e.call(d,y)},c=function(d,p){i&&p.name==="__proto__"?i(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},f=function(d,p){if(p==="__proto__")if(e.call(d,p)){if(a)return a(d,p).value}else return;return d[p]};return Zd=function h(){var d,p,m,y,b,_,S=arguments[0],N=1,E=arguments.length,k=!1;for(typeof S=="boolean"&&(k=S,S=arguments[1]||{},N=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});Nc.length;let h;f&&c.push(l);try{h=e.apply(this,c)}catch(d){const p=d;if(f&&i)throw p;return l(p)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,l):h instanceof Error?l(h):s(h))}function l(c,...f){i||(i=!0,n(c,...f))}function s(c){l(null,c)}}const Hi={basename:FO,dirname:GO,extname:VO,join:YO,sep:"/"};function FO(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');cs(e);let i=0,a=-1,l=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){i=l+1;break}}else a<0&&(s=!0,a=l+1);return a<0?"":e.slice(i,a)}if(n===e)return"";let c=-1,f=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){i=l+1;break}}else c<0&&(s=!0,c=l+1),f>-1&&(e.codePointAt(l)===n.codePointAt(f--)?f<0&&(a=l):(f=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function GO(e){if(cs(e),e.length===0)return".";let n=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){n=i;break}}else a||(a=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function VO(e){cs(e);let n=e.length,i=-1,a=0,l=-1,s=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){a=n+1;break}continue}i<0&&(c=!0,i=n+1),f===46?l<0?l=n:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||i<0||s===0||s===1&&l===i-1&&l===a+1?"":e.slice(l,i)}function YO(...e){let n=-1,i;for(;++n0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function KO(e,n){let i="",a=0,l=-1,s=0,c=-1,f,h;for(;++c<=e.length;){if(c2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",a=0):(i=i.slice(0,h),a=i.length-1-i.lastIndexOf("/")),l=c,s=0;continue}}else if(i.length>0){i="",a=0,l=c,s=0;continue}}n&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(l+1,c):i=e.slice(l+1,c),a=c-l-1;l=c,s=0}else f===46&&s>-1?s++:s=-1}return i}function cs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ZO={cwd:QO};function QO(){return"/"}function Ep(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function WO(e){if(typeof e=="string")e=new URL(e);else if(!Ep(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return JO(e)}function JO(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let i=-1;for(;++i0){let[b,..._]=p;const S=a[y][1];_p(S)&&_p(b)&&(b=Qd(!0,S,b)),a[y]=[d,b,..._]}}}}const iR=new om().freeze();function th(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function nh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ih(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fx(e){if(!_p(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dx(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Dc(e){return rR(e)?e:new q1(e)}function rR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function aR(e){return typeof e=="string"||lR(e)}function lR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const oR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",hx=[],px={allowDangerousHtml:!0},sR=/^(https?|ircs?|mailto|xmpp)$/i,cR=[{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 sm(e){const n=uR(e),i=fR(e);return dR(n.runSync(n.parse(i),i),e)}function uR(e){const n=e.rehypePlugins||hx,i=e.remarkPlugins||hx,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...px}:px;return iR().use(GM).use(i).use(UO,a).use(n)}function fR(e){const n=e.children||"",i=new q1;return typeof n=="string"&&(i.value=n),i}function dR(e,n){const i=n.allowedElements,a=n.allowElement,l=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||hR;for(const p of cR)Object.hasOwn(n,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+oR+p.id,void 0);return lm(e,d),AA(e,{Fragment:v.Fragment,components:l,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function d(p,m,y){if(p.type==="raw"&&y&&typeof m=="number")return c?y.children.splice(m,1):y.children[m]={type:"text",value:p.value},m;if(p.type==="element"){let b;for(b in Yd)if(Object.hasOwn(Yd,b)&&Object.hasOwn(p.properties,b)){const _=p.properties[b],S=Yd[b];(S===null||S.includes(p.tagName))&&(p.properties[b]=h(String(_||""),b,p))}}if(p.type==="element"){let b=i?!i.includes(p.tagName):s?s.includes(p.tagName):!1;if(!b&&a&&typeof m=="number"&&(b=!a(p,m,y)),b&&y&&typeof m=="number")return f&&p.children?y.children.splice(m,1,...p.children):y.children.splice(m,1),m}}}function hR(e){const n=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||i!==-1&&n>i||a!==-1&&n>a||sR.test(e.slice(0,n))?e:""}function mx(e,n){const i=String(e);if(typeof n!="string")throw new TypeError("Expected character");let a=0,l=i.indexOf(n);for(;l!==-1;)a++,l=i.indexOf(n,l+n.length);return a}function pR(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mR(e,n,i){const l=_u((i||{}).ignore||[]),s=gR(n);let c=-1;for(;++c0?{type:"text",value:R}:void 0),R===!1?y.lastIndex=O+1:(_!==O&&k.push({type:"text",value:d.value.slice(_,O)}),Array.isArray(R)?k.push(...R):R&&k.push(R),_=O+w[0].length,E=!0),!y.global)break;w=y.exec(d.value)}return E?(_?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let i=n[0],a=i.indexOf(")");const l=mx(e,"(");let s=mx(e,")");for(;a!==-1&&l>s;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),s++;return[e,i]}function P1(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||La(i)||yu(i))&&(!n||i!==47)}F1.peek=UR;function OR(){this.buffer()}function RR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function DR(){this.buffer()}function LR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zR(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),i.label=n}function IR(e){this.exit(e)}function jR(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),i.label=n}function BR(e){this.exit(e)}function UR(){return"["}function F1(e,n,i,a){const l=i.createTracker(a);let s=l.move("[^");const c=i.enter("footnoteReference"),f=i.enter("reference");return s+=l.move(i.safe(i.associationId(e),{after:"]",before:s})),f(),c(),s+=l.move("]"),s}function HR(){return{enter:{gfmFootnoteCallString:OR,gfmFootnoteCall:RR,gfmFootnoteDefinitionLabelString:DR,gfmFootnoteDefinition:LR},exit:{gfmFootnoteCallString:zR,gfmFootnoteCall:IR,gfmFootnoteDefinitionLabelString:jR,gfmFootnoteDefinition:BR}}}function $R(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:F1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,l,s,c){const f=s.createTracker(c);let h=f.move("[^");const d=s.enter("footnoteDefinition"),p=s.enter("label");return h+=f.move(s.safe(s.associationId(a),{before:h,after:"]"})),p(),h+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),h+=f.move((n?` -`:" ")+s.indentLines(s.containerFlow(a,f.current()),n?G1:qR))),d(),h}}function qR(e,n,i){return n===0?e:G1(e,n,i)}function G1(e,n,i){return(i?"":" ")+e}const PR=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];V1.peek=XR;function FR(){return{canContainEols:["delete"],enter:{strikethrough:VR},exit:{strikethrough:YR}}}function GR(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PR}],handlers:{delete:V1}}}function VR(e){this.enter({type:"delete",children:[]},e)}function YR(e){this.exit(e)}function V1(e,n,i,a){const l=i.createTracker(a),s=i.enter("strikethrough");let c=l.move("~~");return c+=i.containerPhrasing(e,{...l.current(),before:c,after:"~"}),c+=l.move("~~"),s(),c}function XR(){return"~"}function KR(e){return e.length}function ZR(e,n){const i=n||{},a=(i.align||[]).concat(),l=i.stringLength||KR,s=[],c=[],f=[],h=[];let d=0,p=-1;for(;++pd&&(d=e[p].length);++Eh[E])&&(h[E]=w)}S.push(k)}c[p]=S,f[p]=N}let m=-1;if(typeof a=="object"&&"length"in a)for(;++mh[m]&&(h[m]=k),b[m]=k),y[m]=w}c.splice(1,0,y),f.splice(1,0,b),p=-1;const _=[];for(;++p "),s.shift(2);const c=i.indentLines(i.containerFlow(e,s.current()),JR);return l(),c}function JR(e,n,i){return">"+(i?"":" ")+e}function eD(e,n){return bx(e,n.inConstruct,!0)&&!bx(e,n.notInConstruct,!1)}function bx(e,n,i){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return i;let a=-1;for(;++ac&&(c=s):s=1,l=a+n.length,a=i.indexOf(n,l);return c}function nD(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iD(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function rD(e,n,i,a){const l=iD(i),s=e.value||"",c=l==="`"?"GraveAccent":"Tilde";if(nD(e,i)){const m=i.enter("codeIndented"),y=i.indentLines(s,aD);return m(),y}const f=i.createTracker(a),h=l.repeat(Math.max(tD(s,l)+1,3)),d=i.enter("codeFenced");let p=f.move(h);if(e.lang){const m=i.enter(`codeFencedLang${c}`);p+=f.move(i.safe(e.lang,{before:p,after:" ",encode:["`"],...f.current()})),m()}if(e.lang&&e.meta){const m=i.enter(`codeFencedMeta${c}`);p+=f.move(" "),p+=f.move(i.safe(e.meta,{before:p,after:` -`,encode:["`"],...f.current()})),m()}return p+=f.move(` -`),s&&(p+=f.move(s+` -`)),p+=f.move(h),d(),p}function aD(e,n,i){return(i?"":" ")+e}function cm(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function lD(e,n,i,a){const l=cm(i),s=l==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const h=i.createTracker(a);let d=h.move("[");return d+=h.move(i.safe(i.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":` -`,...h.current()}))),f(),e.title&&(f=i.enter(`title${s}`),d+=h.move(" "+l),d+=h.move(i.safe(e.title,{before:d,after:l,...h.current()})),d+=h.move(l),f()),c(),d}function oD(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Ko(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ru(e,n,i){const a=Ol(e),l=Ol(n);return a===void 0?l===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Y1.peek=sD;function Y1(e,n,i,a){const l=oD(i),s=i.enter("emphasis"),c=i.createTracker(a),f=c.move(l);let h=c.move(i.containerPhrasing(e,{after:l,before:f,...c.current()}));const d=h.charCodeAt(0),p=ru(a.before.charCodeAt(a.before.length-1),d,l);p.inside&&(h=Ko(d)+h.slice(1));const m=h.charCodeAt(h.length-1),y=ru(a.after.charCodeAt(0),m,l);y.inside&&(h=h.slice(0,-1)+Ko(m));const b=c.move(l);return s(),i.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},f+h+b}function sD(e,n,i){return i.options.emphasis||"*"}function cD(e,n){let i=!1;return lm(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,xp}),!!((!e.depth||e.depth<3)&&Jp(e)&&(n.options.setext||i))}function uD(e,n,i,a){const l=Math.max(Math.min(6,e.depth||1),1),s=i.createTracker(a);if(cD(e,i)){const p=i.enter("headingSetext"),m=i.enter("phrasing"),y=i.containerPhrasing(e,{...s.current(),before:` -`,after:` -`});return m(),p(),y+` -`+(l===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(` -`))+1))}const c="#".repeat(l),f=i.enter("headingAtx"),h=i.enter("phrasing");s.move(c+" ");let d=i.containerPhrasing(e,{before:"# ",after:` -`,...s.current()});return/^[\t ]/.test(d)&&(d=Ko(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,i.options.closeAtx&&(d+=" "+c),h(),f(),d}X1.peek=fD;function X1(e){return e.value||""}function fD(){return"<"}K1.peek=dD;function K1(e,n,i,a){const l=cm(i),s=l==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const h=i.createTracker(a);let d=h.move("![");return d+=h.move(i.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=i.enter(`title${s}`),d+=h.move(" "+l),d+=h.move(i.safe(e.title,{before:d,after:l,...h.current()})),d+=h.move(l),f()),d+=h.move(")"),c(),d}function dD(){return"!"}Z1.peek=hD;function Z1(e,n,i,a){const l=e.referenceType,s=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(a);let h=f.move("![");const d=i.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const p=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=p,s(),l==="full"||!d||d!==m?h+=f.move(m+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function hD(){return"!"}Q1.peek=pD;function Q1(e,n,i){let a=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(a);)l+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s\u007F]/.test(e.url))}J1.peek=mD;function J1(e,n,i,a){const l=cm(i),s=l==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let f,h;if(W1(e,i)){const p=i.stack;i.stack=[],f=i.enter("autolink");let m=c.move("<");return m+=c.move(i.containerPhrasing(e,{before:m,after:">",...c.current()})),m+=c.move(">"),f(),i.stack=p,m}f=i.enter("link"),h=i.enter("label");let d=c.move("[");return d+=c.move(i.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=i.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(i.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(h=i.enter("destinationRaw"),d+=c.move(i.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=i.enter(`title${s}`),d+=c.move(" "+l),d+=c.move(i.safe(e.title,{before:d,after:l,...c.current()})),d+=c.move(l),h()),d+=c.move(")"),f(),d}function mD(e,n,i){return W1(e,i)?"<":"["}eE.peek=gD;function eE(e,n,i,a){const l=e.referenceType,s=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(a);let h=f.move("[");const d=i.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const p=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=p,s(),l==="full"||!d||d!==m?h+=f.move(m+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function gD(){return"["}function um(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function bD(e){const n=um(e),i=e.options.bulletOther;if(!i)return n==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+i+"`) to be different");return i}function yD(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function tE(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function xD(e,n,i,a){const l=i.enter("list"),s=i.bulletCurrent;let c=e.ordered?yD(i):um(i);const f=e.ordered?c==="."?")":".":bD(i);let h=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&p&&(!p.children||!p.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(h=!0),tE(i)===c&&p){let m=-1;for(;++m-1?n.start:1)+(i.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=i.createTracker(a);f.move(s+" ".repeat(c-s.length)),f.shift(c);const h=i.enter("listItem"),d=i.indentLines(i.containerFlow(e,f.current()),p);return h(),d;function p(m,y,b){return y?(b?"":" ".repeat(c))+m:(b?s:s+" ".repeat(c-s.length))+m}}function ED(e,n,i,a){const l=i.enter("paragraph"),s=i.enter("phrasing"),c=i.containerPhrasing(e,a);return s(),l(),c}const wD=_u(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function SD(e,n,i,a){return(e.children.some(function(c){return wD(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function ND(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}nE.peek=kD;function nE(e,n,i,a){const l=ND(i),s=i.enter("strong"),c=i.createTracker(a),f=c.move(l+l);let h=c.move(i.containerPhrasing(e,{after:l,before:f,...c.current()}));const d=h.charCodeAt(0),p=ru(a.before.charCodeAt(a.before.length-1),d,l);p.inside&&(h=Ko(d)+h.slice(1));const m=h.charCodeAt(h.length-1),y=ru(a.after.charCodeAt(0),m,l);y.inside&&(h=h.slice(0,-1)+Ko(m));const b=c.move(l+l);return s(),i.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},f+h+b}function kD(e,n,i){return i.options.strong||"*"}function TD(e,n,i,a){return i.safe(e.value,a)}function AD(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function CD(e,n,i){const a=(tE(i)+(i.options.ruleSpaces?" ":"")).repeat(AD(i));return i.options.ruleSpaces?a.slice(0,-1):a}const iE={blockquote:WR,break:yx,code:rD,definition:lD,emphasis:Y1,hardBreak:yx,heading:uD,html:X1,image:K1,imageReference:Z1,inlineCode:Q1,link:J1,linkReference:eE,list:xD,listItem:_D,paragraph:ED,root:SD,strong:nE,text:TD,thematicBreak:CD};function MD(){return{enter:{table:OD,tableData:xx,tableHeader:xx,tableRow:DD},exit:{codeText:LD,table:RD,tableData:oh,tableHeader:oh,tableRow:oh}}}function OD(e){const n=e._align;this.enter({type:"table",align:n.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function RD(e){this.exit(e),this.data.inTable=void 0}function DD(e){this.enter({type:"tableRow",children:[]},e)}function oh(e){this.exit(e)}function xx(e){this.enter({type:"tableCell",children:[]},e)}function LD(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,zD));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function zD(e,n){return n==="|"?n:e}function ID(e){const n=e||{},i=n.tableCellPadding,a=n.tablePipeAlign,l=n.stringLength,s=i?" ":"|";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:y,table:c,tableCell:h,tableRow:f}};function c(b,_,S,N){return d(p(b,S,N),b.align)}function f(b,_,S,N){const E=m(b,S,N),k=d([E]);return k.slice(0,k.indexOf(` -`))}function h(b,_,S,N){const E=S.enter("tableCell"),k=S.enter("phrasing"),w=S.containerPhrasing(b,{...N,before:s,after:s});return k(),E(),w}function d(b,_){return ZR(b,{align:_,alignDelimiters:a,padding:i,stringLength:l})}function p(b,_,S){const N=b.children;let E=-1;const k=[],w=_.enter("table");for(;++E0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const e5={tokenize:s5,partial:!0};function t5(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:a5,continuation:{tokenize:l5},exit:o5}},text:{91:{name:"gfmFootnoteCall",tokenize:r5},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:n5,resolveTo:i5}}}}function n5(e,n,i){const a=this;let l=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;l--;){const h=a.events[l][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return i(h);const d=Ci(a.sliceSerialize({start:c.end,end:a.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function i5(e,n){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[i+1],e[i+2],["enter",a,n],e[i+3],e[i+4],["enter",l,n],["exit",l,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",a,n]];return e.splice(i,e.length-i+1,...f),e}function r5(e,n,i){const a=this,l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return f;function f(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),h}function h(m){return m!==94?i(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(m){if(s>999||m===93&&!c||m===null||m===91||At(m))return i(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return l.includes(Ci(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(m)}return At(m)||(c=!0),s++,e.consume(m),m===92?p:d}function p(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function a5(e,n,i){const a=this,l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,f;return h;function h(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):i(_)}function p(_){if(c>999||_===93&&!f||_===null||_===91||At(_))return i(_);if(_===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return s=Ci(a.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return At(_)||(f=!0),c++,e.consume(_),_===92?m:p}function m(_){return _===91||_===92||_===93?(e.consume(_),c++,p):p(_)}function y(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),l.includes(s)||l.push(s),st(e,b,"gfmFootnoteDefinitionWhitespace")):i(_)}function b(_){return n(_)}}function l5(e,n,i){return e.check(ss,n,e.attempt(e5,n,i))}function o5(e){e.exit("gfmFootnoteDefinition")}function s5(e,n,i){const a=this;return st(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):i(s)}}function c5(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:l};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function l(c,f){let h=-1;for(;++h1?h(_):(c.consume(_),m++,b);if(m<2&&!i)return h(_);const N=c.exit("strikethroughSequenceTemporary"),E=Ol(_);return N._open=!E||E===2&&!!S,N._close=!S||S===2&&!!E,f(_)}}}class u5{constructor(){this.map=[]}add(n,i,a){f5(this,n,i,a)}consume(n){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(n.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),n.length=this.map[i][0];a.push(n.slice()),n.length=0;let l=a.pop();for(;l;){for(const s of l)n.push(s);l=a.pop()}this.map.length=0}}function f5(e,n,i,a){let l=0;if(!(i===0&&a.length===0)){for(;l-1;){const A=a.events[q][1].type;if(A==="lineEnding"||A==="linePrefix")q--;else break}const X=q>-1?a.events[q][1].type:null,Y=X==="tableHead"||X==="tableRow"?R:h;return Y===R&&a.parser.lazy[a.now().line]?i(L):Y(L)}function h(L){return e.enter("tableHead"),e.enter("tableRow"),d(L)}function d(L){return L===124||(c=!0,s+=1),p(L)}function p(L){return L===null?i(L):je(L)?s>1?(s=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),b):i(L):tt(L)?st(e,p,"whitespace")(L):(s+=1,c&&(c=!1,l+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),c=!0,p):(e.enter("data"),m(L)))}function m(L){return L===null||L===124||At(L)?(e.exit("data"),p(L)):(e.consume(L),L===92?y:m)}function y(L){return L===92||L===124?(e.consume(L),m):m(L)}function b(L){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(L):(e.enter("tableDelimiterRow"),c=!1,tt(L)?st(e,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):_(L))}function _(L){return L===45||L===58?N(L):L===124?(c=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),S):I(L)}function S(L){return tt(L)?st(e,N,"whitespace")(L):N(L)}function N(L){return L===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),E):L===45?(s+=1,E(L)):L===null||je(L)?O(L):I(L)}function E(L){return L===45?(e.enter("tableDelimiterFiller"),k(L)):I(L)}function k(L){return L===45?(e.consume(L),k):L===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(L))}function w(L){return tt(L)?st(e,O,"whitespace")(L):O(L)}function O(L){return L===124?_(L):L===null||je(L)?!c||l!==s?I(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):I(L)}function I(L){return i(L)}function R(L){return e.enter("tableRow"),H(L)}function H(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),H):L===null||je(L)?(e.exit("tableRow"),n(L)):tt(L)?st(e,H,"whitespace")(L):(e.enter("data"),j(L))}function j(L){return L===null||L===124||At(L)?(e.exit("data"),H(L)):(e.consume(L),L===92?K:j)}function K(L){return L===92||L===124?(e.consume(L),j):j(L)}}function m5(e,n){let i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,d,p,m;const y=new u5;for(;++ii[2]+1){const _=i[2]+1,S=i[3]-i[2]-1;e.add(_,S,[])}}e.add(i[3]+1,0,[["exit",m,n]])}return l!==void 0&&(s.end=Object.assign({},Nl(n.events,l)),e.add(l,0,[["exit",s,n]]),s=void 0),s}function _x(e,n,i,a,l){const s=[],c=Nl(n.events,i);l&&(l.end=Object.assign({},c),s.push(["exit",l,n])),a.end=Object.assign({},c),s.push(["exit",a,n]),e.add(i+1,0,s)}function Nl(e,n){const i=e[n],a=i[0]==="enter"?"start":"end";return i[1][a]}const g5={name:"tasklistCheck",tokenize:y5};function b5(){return{text:{91:g5}}}function y5(e,n,i){const a=this;return l;function l(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return At(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):i(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(h)}function f(h){return je(h)?n(h):tt(h)?e.check({tokenize:x5},n,i)(h):i(h)}}function x5(e,n,i){return st(e,a,"whitespace");function a(l){return l===null?i(l):n(l)}}function v5(e){return _1([GD(),t5(),c5(e),h5(),b5()])}const _5={};function dm(e){const n=this,i=e||_5,a=n.data(),l=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);l.push(v5(i)),s.push($D()),c.push(qD(i))}var sh,Ex;function E5(){if(Ex)return sh;Ex=1;function e(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach(pe=>{const we=ne[pe],qe=typeof we;(qe==="object"||qe==="function")&&!Object.isFrozen(we)&&e(we)}),ne}class n{constructor(pe){pe.data===void 0&&(pe.data={}),this.data=pe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function a(ne,...pe){const we=Object.create(null);for(const qe in ne)we[qe]=ne[qe];return pe.forEach(function(qe){for(const Nt in qe)we[Nt]=qe[Nt]}),we}const l="",s=ne=>!!ne.scope,c=(ne,{prefix:pe})=>{if(ne.startsWith("language:"))return ne.replace("language:","language-");if(ne.includes(".")){const we=ne.split(".");return[`${pe}${we.shift()}`,...we.map((qe,Nt)=>`${qe}${"_".repeat(Nt+1)}`)].join(" ")}return`${pe}${ne}`};class f{constructor(pe,we){this.buffer="",this.classPrefix=we.classPrefix,pe.walk(this)}addText(pe){this.buffer+=i(pe)}openNode(pe){if(!s(pe))return;const we=c(pe.scope,{prefix:this.classPrefix});this.span(we)}closeNode(pe){s(pe)&&(this.buffer+=l)}value(){return this.buffer}span(pe){this.buffer+=``}}const h=(ne={})=>{const pe={children:[]};return Object.assign(pe,ne),pe};class d{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(pe){this.top.children.push(pe)}openNode(pe){const we=h({scope:pe});this.add(we),this.stack.push(we)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(pe){return this.constructor._walk(pe,this.rootNode)}static _walk(pe,we){return typeof we=="string"?pe.addText(we):we.children&&(pe.openNode(we),we.children.forEach(qe=>this._walk(pe,qe)),pe.closeNode(we)),pe}static _collapse(pe){typeof pe!="string"&&pe.children&&(pe.children.every(we=>typeof we=="string")?pe.children=[pe.children.join("")]:pe.children.forEach(we=>{d._collapse(we)}))}}class p extends d{constructor(pe){super(),this.options=pe}addText(pe){pe!==""&&this.add(pe)}startScope(pe){this.openNode(pe)}endScope(){this.closeNode()}__addSublanguage(pe,we){const qe=pe.root;we&&(qe.scope=`language:${we}`),this.add(qe)}toHTML(){return new f(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(ne){return ne?typeof ne=="string"?ne:ne.source:null}function y(ne){return S("(?=",ne,")")}function b(ne){return S("(?:",ne,")*")}function _(ne){return S("(?:",ne,")?")}function S(...ne){return ne.map(we=>m(we)).join("")}function N(ne){const pe=ne[ne.length-1];return typeof pe=="object"&&pe.constructor===Object?(ne.splice(ne.length-1,1),pe):{}}function E(...ne){return"("+(N(ne).capture?"":"?:")+ne.map(qe=>m(qe)).join("|")+")"}function k(ne){return new RegExp(ne.toString()+"|").exec("").length-1}function w(ne,pe){const we=ne&&ne.exec(pe);return we&&we.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function I(ne,{joinWith:pe}){let we=0;return ne.map(qe=>{we+=1;const Nt=we;let gt=m(qe),Ce="";for(;gt.length>0;){const Ne=O.exec(gt);if(!Ne){Ce+=gt;break}Ce+=gt.substring(0,Ne.index),gt=gt.substring(Ne.index+Ne[0].length),Ne[0][0]==="\\"&&Ne[1]?Ce+="\\"+String(Number(Ne[1])+Nt):(Ce+=Ne[0],Ne[0]==="("&&we++)}return Ce}).map(qe=>`(${qe})`).join(pe)}const R=/\b\B/,H="[a-zA-Z]\\w*",j="[a-zA-Z_]\\w*",K="\\b\\d+(\\.\\d+)?",L="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",X="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Y=(ne={})=>{const pe=/^#![ ]*\//;return ne.binary&&(ne.begin=S(pe,/.*\b/,ne.binary,/\b.*/)),a({scope:"meta",begin:pe,end:/$/,relevance:0,"on:begin":(we,qe)=>{we.index!==0&&qe.ignoreMatch()}},ne)},A={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},B={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},V=function(ne,pe,we={}){const qe=a({scope:"comment",begin:ne,end:pe,contains:[]},we);qe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Nt=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return qe.contains.push({begin:S(/[ ]+/,"(",Nt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),qe},Z=V("//","$"),C=V("/\\*","\\*/"),z=V("#","$"),G={scope:"number",begin:K,relevance:0},D={scope:"number",begin:L,relevance:0},F={scope:"number",begin:q,relevance:0},U={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},Q={scope:"title",begin:H,relevance:0},J={scope:"title",begin:j,relevance:0},W={begin:"\\.\\s*"+j,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:F,BINARY_NUMBER_RE:q,COMMENT:V,C_BLOCK_COMMENT_MODE:C,C_LINE_COMMENT_MODE:Z,C_NUMBER_MODE:D,C_NUMBER_RE:L,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(pe,we)=>{we.data._beginMatch=pe[1]},"on:end":(pe,we)=>{we.data._beginMatch!==pe[1]&&we.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:H,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:G,NUMBER_RE:K,PHRASAL_WORDS_MODE:B,QUOTE_STRING_MODE:M,REGEXP_MODE:U,RE_STARTERS_RE:X,SHEBANG:Y,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:j,UNDERSCORE_TITLE_MODE:J});function de(ne,pe){ne.input[ne.index-1]==="."&&pe.ignoreMatch()}function be(ne,pe){ne.className!==void 0&&(ne.scope=ne.className,delete ne.className)}function Ee(ne,pe){pe&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=de,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function Se(ne,pe){Array.isArray(ne.illegal)&&(ne.illegal=E(...ne.illegal))}function De(ne,pe){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function He(ne,pe){ne.relevance===void 0&&(ne.relevance=1)}const lt=(ne,pe)=>{if(!ne.beforeMatch)return;if(ne.starts)throw new Error("beforeMatch cannot be used with starts");const we=Object.assign({},ne);Object.keys(ne).forEach(qe=>{delete ne[qe]}),ne.keywords=we.keywords,ne.begin=S(we.beforeMatch,y(we.begin)),ne.starts={relevance:0,contains:[Object.assign(we,{endsParent:!0})]},ne.relevance=0,delete we.beforeMatch},Rt=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Pt(ne,pe,we=Yt){const qe=Object.create(null);return typeof ne=="string"?Nt(we,ne.split(" ")):Array.isArray(ne)?Nt(we,ne):Object.keys(ne).forEach(function(gt){Object.assign(qe,Pt(ne[gt],pe,gt))}),qe;function Nt(gt,Ce){pe&&(Ce=Ce.map(Ne=>Ne.toLowerCase())),Ce.forEach(function(Ne){const Be=Ne.split("|");qe[Be[0]]=[gt,Xt(Be[0],Be[1])]})}}function Xt(ne,pe){return pe?Number(pe):Vn(ne)?0:1}function Vn(ne){return Rt.includes(ne.toLowerCase())}const En={},ct=ne=>{console.error(ne)},jt=(ne,...pe)=>{console.log(`WARN: ${ne}`,...pe)},ue=(ne,pe)=>{En[`${ne}/${pe}`]||(console.log(`Deprecated as of ${ne}. ${pe}`),En[`${ne}/${pe}`]=!0)},ye=new Error;function Me(ne,pe,{key:we}){let qe=0;const Nt=ne[we],gt={},Ce={};for(let Ne=1;Ne<=pe.length;Ne++)Ce[Ne+qe]=Nt[Ne],gt[Ne+qe]=!0,qe+=k(pe[Ne-1]);ne[we]=Ce,ne[we]._emit=gt,ne[we]._multi=!0}function Pe(ne){if(Array.isArray(ne.begin)){if(ne.skip||ne.excludeBegin||ne.returnBegin)throw ct("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ye;if(typeof ne.beginScope!="object"||ne.beginScope===null)throw ct("beginScope must be object"),ye;Me(ne,ne.begin,{key:"beginScope"}),ne.begin=I(ne.begin,{joinWith:""})}}function Ze(ne){if(Array.isArray(ne.end)){if(ne.skip||ne.excludeEnd||ne.returnEnd)throw ct("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ye;if(typeof ne.endScope!="object"||ne.endScope===null)throw ct("endScope must be object"),ye;Me(ne,ne.end,{key:"endScope"}),ne.end=I(ne.end,{joinWith:""})}}function sn(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function wn(ne){sn(ne),typeof ne.beginScope=="string"&&(ne.beginScope={_wrap:ne.beginScope}),typeof ne.endScope=="string"&&(ne.endScope={_wrap:ne.endScope}),Pe(ne),Ze(ne)}function Kt(ne){function pe(Ce,Ne){return new RegExp(m(Ce),"m"+(ne.case_insensitive?"i":"")+(ne.unicodeRegex?"u":"")+(Ne?"g":""))}class we{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ne,Be){Be.position=this.position++,this.matchIndexes[this.matchAt]=Be,this.regexes.push([Be,Ne]),this.matchAt+=k(Ne)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ne=this.regexes.map(Be=>Be[1]);this.matcherRe=pe(I(Ne,{joinWith:"|"}),!0),this.lastIndex=0}exec(Ne){this.matcherRe.lastIndex=this.lastIndex;const Be=this.matcherRe.exec(Ne);if(!Be)return null;const Bt=Be.findIndex((gi,xr)=>xr>0&&gi!==void 0),Mt=this.matchIndexes[Bt];return Be.splice(0,Bt),Object.assign(Be,Mt)}}class qe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ne){if(this.multiRegexes[Ne])return this.multiRegexes[Ne];const Be=new we;return this.rules.slice(Ne).forEach(([Bt,Mt])=>Be.addRule(Bt,Mt)),Be.compile(),this.multiRegexes[Ne]=Be,Be}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ne,Be){this.rules.push([Ne,Be]),Be.type==="begin"&&this.count++}exec(Ne){const Be=this.getMatcher(this.regexIndex);Be.lastIndex=this.lastIndex;let Bt=Be.exec(Ne);if(this.resumingScanAtSamePosition()&&!(Bt&&Bt.index===this.lastIndex)){const Mt=this.getMatcher(0);Mt.lastIndex=this.lastIndex+1,Bt=Mt.exec(Ne)}return Bt&&(this.regexIndex+=Bt.position+1,this.regexIndex===this.count&&this.considerAll()),Bt}}function Nt(Ce){const Ne=new qe;return Ce.contains.forEach(Be=>Ne.addRule(Be.begin,{rule:Be,type:"begin"})),Ce.terminatorEnd&&Ne.addRule(Ce.terminatorEnd,{type:"end"}),Ce.illegal&&Ne.addRule(Ce.illegal,{type:"illegal"}),Ne}function gt(Ce,Ne){const Be=Ce;if(Ce.isCompiled)return Be;[be,De,wn,lt].forEach(Mt=>Mt(Ce,Ne)),ne.compilerExtensions.forEach(Mt=>Mt(Ce,Ne)),Ce.__beforeBegin=null,[Ee,Se,He].forEach(Mt=>Mt(Ce,Ne)),Ce.isCompiled=!0;let Bt=null;return typeof Ce.keywords=="object"&&Ce.keywords.$pattern&&(Ce.keywords=Object.assign({},Ce.keywords),Bt=Ce.keywords.$pattern,delete Ce.keywords.$pattern),Bt=Bt||/\w+/,Ce.keywords&&(Ce.keywords=Pt(Ce.keywords,ne.case_insensitive)),Be.keywordPatternRe=pe(Bt,!0),Ne&&(Ce.begin||(Ce.begin=/\B|\b/),Be.beginRe=pe(Be.begin),!Ce.end&&!Ce.endsWithParent&&(Ce.end=/\B|\b/),Ce.end&&(Be.endRe=pe(Be.end)),Be.terminatorEnd=m(Be.end)||"",Ce.endsWithParent&&Ne.terminatorEnd&&(Be.terminatorEnd+=(Ce.end?"|":"")+Ne.terminatorEnd)),Ce.illegal&&(Be.illegalRe=pe(Ce.illegal)),Ce.contains||(Ce.contains=[]),Ce.contains=[].concat(...Ce.contains.map(function(Mt){return Wt(Mt==="self"?Ce:Mt)})),Ce.contains.forEach(function(Mt){gt(Mt,Be)}),Ce.starts&>(Ce.starts,Ne),Be.matcher=Nt(Be),Be}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ne.classNameAliases=a(ne.classNameAliases||{}),gt(ne)}function Ct(ne){return ne?ne.endsWithParent||Ct(ne.starts):!1}function Wt(ne){return ne.variants&&!ne.cachedVariants&&(ne.cachedVariants=ne.variants.map(function(pe){return a(ne,{variants:null},pe)})),ne.cachedVariants?ne.cachedVariants:Ct(ne)?a(ne,{starts:ne.starts?a(ne.starts):null}):Object.isFrozen(ne)?a(ne):ne}var ut="11.11.1";class zn extends Error{constructor(pe,we){super(pe),this.name="HTMLInjectionError",this.html=we}}const cn=i,yr=a,nt=Symbol("nomatch"),Yn=7,Cn=function(ne){const pe=Object.create(null),we=Object.create(null),qe=[];let Nt=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",Ce={disableAutodetect:!0,name:"Plain text",contains:[]};let Ne={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:p};function Be(xe){return Ne.noHighlightRe.test(xe)}function Bt(xe){let Le=xe.className+" ";Le+=xe.parentNode?xe.parentNode.className:"";const Qe=Ne.languageDetectRe.exec(Le);if(Qe){const dt=bn(Qe[1]);return dt||(jt(gt.replace("{}",Qe[1])),jt("Falling back to no-highlight mode for this block.",xe)),dt?Qe[1]:"no-highlight"}return Le.split(/\s+/).find(dt=>Be(dt)||bn(dt))}function Mt(xe,Le,Qe){let dt="",Ht="";typeof Le=="object"?(dt=xe,Qe=Le.ignoreIllegals,Ht=Le.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),Ht=xe,dt=Le),Qe===void 0&&(Qe=!0);const mn={code:dt,language:Ht};Xi("before:highlight",mn);const Mn=mn.result?mn.result:gi(mn.language,mn.code,Qe);return Mn.code=mn.code,Xi("after:highlight",Mn),Mn}function gi(xe,Le,Qe,dt){const Ht=Object.create(null);function mn(_e,Oe){return _e.keywords[Oe]}function Mn(){if(!$e.keywords){Jt.addText(bt);return}let _e=0;$e.keywordPatternRe.lastIndex=0;let Oe=$e.keywordPatternRe.exec(bt),Ye="";for(;Oe;){Ye+=bt.substring(_e,Oe.index);const it=un.case_insensitive?Oe[0].toLowerCase():Oe[0],$t=mn($e,it);if($t){const[li,ql]=$t;if(Jt.addText(Ye),Ye="",Ht[it]=(Ht[it]||0)+1,Ht[it]<=Yn&&(kr+=ql),li.startsWith("_"))Ye+=Oe[0];else{const ys=un.classNameAliases[li]||li;On(Oe[0],ys)}}else Ye+=Oe[0];_e=$e.keywordPatternRe.lastIndex,Oe=$e.keywordPatternRe.exec(bt)}Ye+=bt.substring(_e),Jt.addText(Ye)}function Sn(){if(bt==="")return;let _e=null;if(typeof $e.subLanguage=="string"){if(!pe[$e.subLanguage]){Jt.addText(bt);return}_e=gi($e.subLanguage,bt,!0,bs[$e.subLanguage]),bs[$e.subLanguage]=_e._top}else _e=vr(bt,$e.subLanguage.length?$e.subLanguage:null);$e.relevance>0&&(kr+=_e.relevance),Jt.__addSublanguage(_e._emitter,_e.language)}function _t(){$e.subLanguage!=null?Sn():Mn(),bt=""}function On(_e,Oe){_e!==""&&(Jt.startScope(Oe),Jt.addText(_e),Jt.endScope())}function Fa(_e,Oe){let Ye=1;const it=Oe.length-1;for(;Ye<=it;){if(!_e._emit[Ye]){Ye++;continue}const $t=un.classNameAliases[_e[Ye]]||_e[Ye],li=Oe[Ye];$t?On(li,$t):(bt=li,Mn(),bt=""),Ye++}}function wr(_e,Oe){return _e.scope&&typeof _e.scope=="string"&&Jt.openNode(un.classNameAliases[_e.scope]||_e.scope),_e.beginScope&&(_e.beginScope._wrap?(On(bt,un.classNameAliases[_e.beginScope._wrap]||_e.beginScope._wrap),bt=""):_e.beginScope._multi&&(Fa(_e.beginScope,Oe),bt="")),$e=Object.create(_e,{parent:{value:$e}}),$e}function Li(_e,Oe,Ye){let it=w(_e.endRe,Ye);if(it){if(_e["on:end"]){const $t=new n(_e);_e["on:end"](Oe,$t),$t.isMatchIgnored&&(it=!1)}if(it){for(;_e.endsParent&&_e.parent;)_e=_e.parent;return _e}}if(_e.endsWithParent)return Li(_e.parent,Oe,Ye)}function Sr(_e){return $e.matcher.regexIndex===0?(bt+=_e[0],1):(Tr=!0,0)}function Ga(_e){const Oe=_e[0],Ye=_e.rule,it=new n(Ye),$t=[Ye.__beforeBegin,Ye["on:begin"]];for(const li of $t)if(li&&(li(_e,it),it.isMatchIgnored))return Sr(Oe);return Ye.skip?bt+=Oe:(Ye.excludeBegin&&(bt+=Oe),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Oe)),wr(Ye,_e),Ye.returnBegin?0:Oe.length}function Nn(_e){const Oe=_e[0],Ye=Le.substring(_e.index),it=Li($e,_e,Ye);if(!it)return nt;const $t=$e;$e.endScope&&$e.endScope._wrap?(_t(),On(Oe,$e.endScope._wrap)):$e.endScope&&$e.endScope._multi?(_t(),Fa($e.endScope,_e)):$t.skip?bt+=Oe:($t.returnEnd||$t.excludeEnd||(bt+=Oe),_t(),$t.excludeEnd&&(bt=Oe));do $e.scope&&Jt.closeNode(),!$e.skip&&!$e.subLanguage&&(kr+=$e.relevance),$e=$e.parent;while($e!==it.parent);return it.starts&&wr(it.starts,_e),$t.returnEnd?0:Oe.length}function sa(){const _e=[];for(let Oe=$e;Oe!==un;Oe=Oe.parent)Oe.scope&&_e.unshift(Oe.scope);_e.forEach(Oe=>Jt.openNode(Oe))}let _i={};function Nr(_e,Oe){const Ye=Oe&&Oe[0];if(bt+=_e,Ye==null)return _t(),0;if(_i.type==="begin"&&Oe.type==="end"&&_i.index===Oe.index&&Ye===""){if(bt+=Le.slice(Oe.index,Oe.index+1),!Nt){const it=new Error(`0 width match regex (${xe})`);throw it.languageName=xe,it.badRule=_i.rule,it}return 1}if(_i=Oe,Oe.type==="begin")return Ga(Oe);if(Oe.type==="illegal"&&!Qe){const it=new Error('Illegal lexeme "'+Ye+'" for mode "'+($e.scope||"")+'"');throw it.mode=$e,it}else if(Oe.type==="end"){const it=Nn(Oe);if(it!==nt)return it}if(Oe.type==="illegal"&&Ye==="")return bt+=` -`,1;if($l>1e5&&$l>Oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return bt+=Ye,Ye.length}const un=bn(xe);if(!un)throw ct(gt.replace("{}",xe)),new Error('Unknown language: "'+xe+'"');const ca=Kt(un);let Va="",$e=dt||ca;const bs={},Jt=new Ne.__emitter(Ne);sa();let bt="",kr=0,Ki=0,$l=0,Tr=!1;try{if(un.__emitTokens)un.__emitTokens(Le,Jt);else{for($e.matcher.considerAll();;){$l++,Tr?Tr=!1:$e.matcher.considerAll(),$e.matcher.lastIndex=Ki;const _e=$e.matcher.exec(Le);if(!_e)break;const Oe=Le.substring(Ki,_e.index),Ye=Nr(Oe,_e);Ki=_e.index+Ye}Nr(Le.substring(Ki))}return Jt.finalize(),Va=Jt.toHTML(),{language:xe,value:Va,relevance:kr,illegal:!1,_emitter:Jt,_top:$e}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:xe,value:cn(Le),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:Ki,context:Le.slice(Ki-100,Ki+100),mode:_e.mode,resultSoFar:Va},_emitter:Jt};if(Nt)return{language:xe,value:cn(Le),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:$e};throw _e}}function xr(xe){const Le={value:cn(xe),illegal:!1,relevance:0,_top:Ce,_emitter:new Ne.__emitter(Ne)};return Le._emitter.addText(xe),Le}function vr(xe,Le){Le=Le||Ne.languages||Object.keys(pe);const Qe=xr(xe),dt=Le.filter(bn).filter(xi).map(_t=>gi(_t,xe,!1));dt.unshift(Qe);const Ht=dt.sort((_t,On)=>{if(_t.relevance!==On.relevance)return On.relevance-_t.relevance;if(_t.language&&On.language){if(bn(_t.language).supersetOf===On.language)return 1;if(bn(On.language).supersetOf===_t.language)return-1}return 0}),[mn,Mn]=Ht,Sn=mn;return Sn.secondBest=Mn,Sn}function ai(xe,Le,Qe){const dt=Le&&we[Le]||Qe;xe.classList.add("hljs"),xe.classList.add(`language-${dt}`)}function Ut(xe){let Le=null;const Qe=Bt(xe);if(Be(Qe))return;if(Xi("before:highlightElement",{el:xe,language:Qe}),xe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",xe);return}if(xe.children.length>0&&(Ne.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(xe)),Ne.throwUnescapedHTML))throw new zn("One of your code blocks includes unescaped HTML.",xe.innerHTML);Le=xe;const dt=Le.textContent,Ht=Qe?Mt(dt,{language:Qe,ignoreIllegals:!0}):vr(dt);xe.innerHTML=Ht.value,xe.dataset.highlighted="yes",ai(xe,Qe,Ht.language),xe.result={language:Ht.language,re:Ht.relevance,relevance:Ht.relevance},Ht.secondBest&&(xe.secondBest={language:Ht.secondBest.language,relevance:Ht.secondBest.relevance}),Xi("after:highlightElement",{el:xe,result:Ht,text:dt})}function pn(xe){Ne=yr(Ne,xe)}const bi=()=>{Er(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _r(){Er(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let la=!1;function Er(){function xe(){Er()}if(document.readyState==="loading"){la||window.addEventListener("DOMContentLoaded",xe,!1),la=!0;return}document.querySelectorAll(Ne.cssSelector).forEach(Ut)}function qa(xe,Le){let Qe=null;try{Qe=Le(ne)}catch(dt){if(ct("Language definition for '{}' could not be registered.".replace("{}",xe)),Nt)ct(dt);else throw dt;Qe=Ce}Qe.name||(Qe.name=xe),pe[xe]=Qe,Qe.rawDefinition=Le.bind(null,ne),Qe.aliases&&yi(Qe.aliases,{languageName:xe})}function Yi(xe){delete pe[xe];for(const Le of Object.keys(we))we[Le]===xe&&delete we[Le]}function oa(){return Object.keys(pe)}function bn(xe){return xe=(xe||"").toLowerCase(),pe[xe]||pe[we[xe]]}function yi(xe,{languageName:Le}){typeof xe=="string"&&(xe=[xe]),xe.forEach(Qe=>{we[Qe.toLowerCase()]=Le})}function xi(xe){const Le=bn(xe);return Le&&!Le.disableAutodetect}function Di(xe){xe["before:highlightBlock"]&&!xe["before:highlightElement"]&&(xe["before:highlightElement"]=Le=>{xe["before:highlightBlock"](Object.assign({block:Le.el},Le))}),xe["after:highlightBlock"]&&!xe["after:highlightElement"]&&(xe["after:highlightElement"]=Le=>{xe["after:highlightBlock"](Object.assign({block:Le.el},Le))})}function Ft(xe){Di(xe),qe.push(xe)}function Pa(xe){const Le=qe.indexOf(xe);Le!==-1&&qe.splice(Le,1)}function Xi(xe,Le){const Qe=xe;qe.forEach(function(dt){dt[Qe]&&dt[Qe](Le)})}function vi(xe){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),Ut(xe)}Object.assign(ne,{highlight:Mt,highlightAuto:vr,highlightAll:Er,highlightElement:Ut,highlightBlock:vi,configure:pn,initHighlighting:bi,initHighlightingOnLoad:_r,registerLanguage:qa,unregisterLanguage:Yi,listLanguages:oa,getLanguage:bn,registerAliases:yi,autoDetection:xi,inherit:yr,addPlugin:Ft,removePlugin:Pa}),ne.debugMode=function(){Nt=!1},ne.safeMode=function(){Nt=!0},ne.versionString=ut,ne.regex={concat:S,lookahead:y,either:E,optional:_,anyNumberOfTimes:b};for(const xe in ce)typeof ce[xe]=="object"&&e(ce[xe]);return Object.assign(ne,ce),ne},hn=Cn({});return hn.newInstance=()=>Cn({}),sh=hn,hn.HighlightJS=hn,hn.default=hn,sh}var ch,wx;function w5(){if(wx)return ch;wx=1;function e(n){const i=n.regex,a=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),l=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},f=n.inherit(c,{begin:/\(/,end:/\)/}),h=n.inherit(n.APOS_STRING_MODE,{className:"string"}),d=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[c,d,h,f,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[c,f,d,h]}]}]},n.COMMENT(//,{relevance:10}),{begin://,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:p}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return ch=e,ch}var uh,Sx;function S5(){if(Sx)return uh;Sx=1;function e(n){const i=n.regex,a={},l={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},l]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},c=n.inherit(n.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),f={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},h={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,a,s]};s.contains.push(h);const d={match:/\\"/},p={className:"string",begin:/'/,end:/'/},m={match:/\\'/},y={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,a]},b=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=n.SHEBANG({binary:`(${b.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},N=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],E=["true","false"],k={match:/(\/[a-z._-]+)+/},w=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],O=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:N,literal:E,built_in:[...w,...O,"set","shopt",...I,...R]},contains:[_,n.SHEBANG(),S,y,c,f,k,h,d,p,m,a]}}return uh=e,uh}var fh,Nx;function N5(){if(Nx)return fh;Nx=1;function e(n){const i=n.regex,a=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",f="("+l+"|"+i.optional(s)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,n.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:i.optional(s)+n.IDENT_RE,relevance:0},_=i.optional(s)+n.IDENT_RE+"\\s*\\(",E={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},k=[y,h,a,n.C_BLOCK_COMMENT_MODE,m,p],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:k.concat([{begin:/\(/,end:/\)/,keywords:E,contains:k.concat(["self"]),relevance:0}]),relevance:0},O={begin:"("+f+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:E,relevance:0},{begin:_,returnBegin:!0,contains:[n.inherit(b,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[a,n.C_BLOCK_COMMENT_MODE,p,m,h,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",a,n.C_BLOCK_COMMENT_MODE,p,m,h]}]},h,a,n.C_BLOCK_COMMENT_MODE,y]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{preprocessor:y,strings:p,keywords:E}}}return fh=e,fh}var dh,kx;function k5(){if(kx)return dh;kx=1;function e(n){const i=n.regex,a=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",f="(?!struct)("+l+"|"+i.optional(s)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,n.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:i.optional(s)+n.IDENT_RE,relevance:0},_=i.optional(s)+n.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],N=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],k=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:N,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},R={className:"function.dispatch",relevance:0,keywords:{_hint:k},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},H=[R,y,h,a,n.C_BLOCK_COMMENT_MODE,m,p],j={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:H.concat([{begin:/\(/,end:/\)/,keywords:I,contains:H.concat(["self"]),relevance:0}]),relevance:0},K={className:"function",begin:"("+f+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:I,relevance:0},{begin:_,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[a,n.C_BLOCK_COMMENT_MODE,p,m,h,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",a,n.C_BLOCK_COMMENT_MODE,p,m,h]}]},h,a,n.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"",keywords:I,contains:["self",h]},{begin:n.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return dh=e,dh}var hh,Tx;function T5(){if(Tx)return hh;Tx=1;function e(n){const i=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],l=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],f={keyword:s.concat(c),built_in:i,literal:l},h=n.inherit(n.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},y=n.inherit(m,{illegal:/\n/}),b={className:"subst",begin:/\{/,end:/\}/,keywords:f},_=n.inherit(b,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},n.BACKSLASH_ESCAPE,_]},N={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]},E=n.inherit(N,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});b.contains=[N,S,m,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,d,n.C_BLOCK_COMMENT_MODE],_.contains=[E,S,y,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,d,n.inherit(n.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[p,N,S,m,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},w={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},O=n.IDENT_RE+"(<"+n.IDENT_RE+"(\\s*,\\s*"+n.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+n.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:f,illegal:/::/,contains:[n.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},k,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},h,w,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,w,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+O+"\\s+)+"+n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:f,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[n.TITLE_MODE,w],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,relevance:0,contains:[k,d,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},I]}}return hh=e,hh}var ph,Ax;function A5(){if(Ax)return ph;Ax=1;const e=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...n,...i],l=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),f=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(d){const p=d.regex,m=e(d),y={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},b="and or not only",_=/@-?\w[\w]*(-\w+)*/,S="[a-zA-Z-][a-zA-Z0-9_-]*",N=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,y,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+S,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+s.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+f.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.CSS_NUMBER_MODE,...N,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...N,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},m.FUNCTION_DISPATCH]},{begin:p.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:b,attribute:l.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...N,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return ph=h,ph}var mh,Cx;function C5(){if(Cx)return mh;Cx=1;function e(n){const i=n.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},l={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},f={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},y=n.inherit(p,{contains:[]}),b=n.inherit(m,{contains:[]});p.contains.push(b),m.contains.push(y);let _=[a,d];return[p,m,y,b].forEach(k=>{k.contains=k.contains.concat(_)}),_=_.concat(p,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},a,c,p,m,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},s,l,d,f,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return mh=e,mh}var gh,Mx;function M5(){if(Mx)return gh;Mx=1;function e(n){const i=n.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:i.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:i.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return gh=e,gh}var bh,Ox;function O5(){if(Ox)return bh;Ox=1;function e(n){const i=n.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",l=i.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=i.concat(l,/(::\w+)*/),f={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},h={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},p=[n.COMMENT("#","$",{contains:[h]}),n.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),n.COMMENT("^__END__",n.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:f},y={className:"string",contains:[n.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:i.concat(/<<[-~]?'?/,i.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[n.BACKSLASH_ESCAPE,m]})]}]},b="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${b})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},N={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:f}]},H=[y,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:f},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:f},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:l,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[N]},{begin:n.IDENT_RE+"::"},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[y,{begin:a}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:f},{begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[n.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,p),relevance:0}].concat(d,p);m.contains=H,N.contains=H;const q=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:f,contains:H}}];return p.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:f,illegal:/\/\*/,contains:[n.SHEBANG({binary:"ruby"})].concat(q).concat(p).concat(H)}}return bh=e,bh}var yh,Rx;function R5(){if(Rx)return yh;Rx=1;function e(n){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"l(c,f,h-1))}function s(c){const f=c.regex,h="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",d=h+l("(?:<"+h+"~~~(?:\\s*,\\s*"+h+"~~~)*>)?",/~~~/g,2),_={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},S={className:"meta",begin:"@"+h,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},N={className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[c.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:_,illegal:/<\/|#/,contains:[c.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[c.BACKSLASH_ESCAPE]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,h],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[f.concat(/(?!else)/,h),/\s+/,h,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,h],className:{1:"keyword",3:"title.class"},contains:[N,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+d+"\\s+)",c.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:_,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[S,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,a,c.C_BLOCK_COMMENT_MODE]},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},a,S]}}return _h=s,_h}var Eh,Ix;function I5(){if(Ix)return Eh;Ix=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],l=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],f=[].concat(s,a,l);function h(d){const p=d.regex,m=(J,{after:W})=>{const ee="",end:""},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,W)=>{const ee=J[0].length+J.index,ce=J.input[ee];if(ce==="<"||ce===","){W.ignoreMatch();return}ce===">"&&(m(J,{after:ee})||W.ignoreMatch());let de;const be=J.input.substring(ee);if(de=be.match(/^\s*=/)){W.ignoreMatch();return}if((de=be.match(/^\s+extends\s+/))&&de.index===0){W.ignoreMatch();return}}},N={$pattern:e,keyword:n,literal:i,built_in:f,"variable.language":c},E="[0-9](_?[0-9])*",k=`\\.(${E})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",O={className:"number",variants:[{begin:`(\\b(${w})((${k})|\\.)?|(${k}))[eE][+-]?(${E})\\b`},{begin:`\\b(${w})\\b((${k})\\b|\\.)?|(${k})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:N,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,I],subLanguage:"css"}},j={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},K={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,I]},q={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},X=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,R,H,j,K,{match:/\$\d+/},O];I.contains=X.concat({begin:/\{/,end:/\}/,keywords:N,contains:["self"].concat(X)});const Y=[].concat(q,I.contains),A=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:N,contains:["self"].concat(Y)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:N,contains:A},M={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,p.concat(y,"(",p.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},B={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...l]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Z={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},C={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(J){return p.concat("(?!",J.join("|"),")")}const G={match:p.concat(/\b/,z([...s,"super","import"].map(J=>`${J}\\s*\\(`)),y,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},D={begin:p.concat(/\./,p.lookahead(p.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:N,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:B},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,R,H,j,K,q,{match:/\$\d+/},O,B,{scope:"attr",match:y+p.lookahead(":"),relevance:0},Q,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,d.REGEXP_MODE,{className:"function",begin:U,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:N,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:b.begin,end:b.end},{match:_},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},Z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,d.inherit(d.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},D,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},G,C,M,F,{match:/\$[(.]/}]}}return Eh=h,Eh}var wh,jx;function j5(){if(jx)return wh;jx=1;function e(n){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},l=["true","false","null"],s={scope:"literal",beginKeywords:l.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:l},contains:[i,a,n.QUOTE_STRING_MODE,s,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return wh=e,wh}var Sh,Bx;function B5(){if(Bx)return Sh;Bx=1;var e="[0-9](_*[0-9])*",n=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${n})|\\.)?|(${n}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function l(s){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},f={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},h={className:"symbol",begin:s.UNDERSCORE_IDENT_RE+"@"},d={className:"subst",begin:/\$\{/,end:/\}/,contains:[s.C_NUMBER_MODE]},p={className:"variable",begin:"\\$"+s.UNDERSCORE_IDENT_RE},m={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[p,d]},{begin:"'",end:"'",illegal:/\n/,contains:[s.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[s.BACKSLASH_ESCAPE,p,d]}]};d.contains.push(m);const y={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+s.UNDERSCORE_IDENT_RE+")?"},b={className:"meta",begin:"@"+s.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[s.inherit(m,{className:"string"}),"self"]}]},_=a,S=s.COMMENT("/\\*","\\*/",{contains:[s.C_BLOCK_COMMENT_MODE]}),N={variants:[{className:"type",begin:s.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=N;return E.variants[1].contains=[N],N.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),s.C_LINE_COMMENT_MODE,S,f,h,y,b,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:s.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[s.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[N,s.C_LINE_COMMENT_MODE,S],relevance:0},s.C_LINE_COMMENT_MODE,S,y,b,m,s.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,s.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},s.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},y,b]},m,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},_]}}return Sh=l,Sh}var Nh,Ux;function U5(){if(Ux)return Nh;Ux=1;const e=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...n,...i],l=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),f=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),h=s.concat(c).sort().reverse();function d(p){const m=e(p),y=h,b="and or not only",_="[\\w-]+",S="("+_+"|@\\{"+_+"\\})",N=[],E=[],k=function(Y){return{className:"string",begin:"~?"+Y+".*?"+Y}},w=function(Y,A,$){return{className:Y,begin:A,relevance:$}},O={$pattern:/[a-z-]+/,keyword:b,attribute:l.join(" ")},I={begin:"\\(",end:"\\)",contains:E,keywords:O,relevance:0};E.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,k("'"),k('"'),m.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},m.HEXCOLOR,I,w("variable","@@?"+_,10),w("variable","@\\{"+_+"\\}"),w("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},m.IMPORTANT,{beginKeywords:"and not"},m.FUNCTION_DISPATCH);const R=E.concat({begin:/\{/,end:/\}/,contains:N}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(E)},j={begin:S+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+f.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:E}}]},K={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:O,returnEnd:!0,contains:E,relevance:0}},L={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},q={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:S,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,H,w("keyword","all\\b"),w("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},m.CSS_NUMBER_MODE,w("selector-tag",S,0),w("selector-id","#"+S),w("selector-class","\\."+S,0),w("selector-tag","&",0),m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+s.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},m.FUNCTION_DISPATCH]},X={begin:_+`:(:)?(${y.join("|")})`,returnBegin:!0,contains:[q]};return N.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,K,L,X,j,q,H,m.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:N}}return Nh=d,Nh}var kh,Hx;function H5(){if(Hx)return kh;Hx=1;function e(n){const i="\\[=*\\[",a="\\]=*\\]",l={begin:i,end:a,contains:["self"]},s=[n.COMMENT("--(?!"+i+")","$"),n.COMMENT("--"+i,a,{contains:[l],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:n.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:i,end:a,contains:[l],relevance:5}])}}return kh=e,kh}var Th,$x;function $5(){if($x)return Th;$x=1;function e(n){const i={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%\{/,end:/\}/},h={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:i.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[h]},p={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},m=[n.BACKSLASH_ESCAPE,c,d],y=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],b=(N,E,k="\\1")=>{const w=k==="\\1"?k:i.concat(k,E);return i.concat(i.concat("(?:",N,")"),E,/(?:\\.|[^\\\/])*?/,w,/(?:\\.|[^\\\/])*?/,k,l)},_=(N,E,k)=>i.concat(i.concat("(?:",N,")"),E,/(?:\\.|[^\\\/])*?/,k,l),S=[d,n.HASH_COMMENT_MODE,n.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),f,{className:"string",contains:m,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},p,{begin:"(\\/\\/|"+n.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[n.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:b("s|tr|y",i.either(...y,{capture:!0}))},{begin:b("s|tr|y","\\(","\\)")},{begin:b("s|tr|y","\\[","\\]")},{begin:b("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",i.either(...y,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,h]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,h,p]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=S,f.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:S}}return Ah=e,Ah}var Ch,Px;function P5(){if(Px)return Ch;Px=1;function e(n){const i={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,h={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:h,illegal:"/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}return Ch=e,Ch}var Mh,Fx;function F5(){if(Fx)return Mh;Fx=1;function e(n){const i=n.regex,a=/(?![A-Za-z0-9])(?![$])/,l=i.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),s=i.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),c=i.concat(/[A-Z]+/,a),f={scope:"variable",match:"\\$+"+l},h={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},d={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=n.inherit(n.APOS_STRING_MODE,{illegal:null}),m=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(d)}),y={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(d),"on:begin":($,M)=>{M.data._beginMatch=$[1]||$[2]},"on:end":($,M)=>{M.data._beginMatch!==$[1]&&M.ignoreMatch()}},b=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[ -]`,S={scope:"string",variants:[m,p,y,b]},N={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},E=["false","null","true"],k=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],w=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],I={keyword:k,literal:($=>{const M=[];return $.forEach(B=>{M.push(B),B.toLowerCase()===B?M.push(B.toUpperCase()):M.push(B.toLowerCase())}),M})(E),built_in:w},R=$=>$.map(M=>M.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,i.concat(_,"+"),i.concat("(?!",R(w).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},j=i.concat(l,"\\b(?!\\()"),K={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),j],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,i.concat(/::/,i.lookahead(/(?!class\b)/)),j],scope:{1:"title.class",3:"variable.constant"}},{match:[s,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:i.concat(l,i.lookahead(":"),i.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:I,contains:[L,f,K,n.C_BLOCK_COMMENT_MODE,S,N,H]},X={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",R(k).join("\\b|"),"|",R(w).join("\\b|"),"\\b)"),l,i.concat(_,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(X);const Y=[L,K,n.C_BLOCK_COMMENT_MODE,S,N,H],A={begin:i.concat(/#\[\s*\\?/,i.either(s,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...Y]},...Y,{scope:"meta",variants:[{match:s},{match:c}]}]};return{case_insensitive:!1,keywords:I,contains:[A,n.HASH_COMMENT_MODE,n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:n.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},h,{scope:"variable.language",match:/\$this\b/},f,X,K,{match:[/const/,/\s/,l],scope:{1:"keyword",3:"variable.constant"}},H,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:I,contains:["self",A,f,K,n.C_BLOCK_COMMENT_MODE,S,N]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},n.UNDERSCORE_TITLE_MODE]},S,N]}}return Mh=e,Mh}var Oh,Gx;function G5(){if(Gx)return Oh;Gx=1;function e(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Oh=e,Oh}var Rh,Vx;function V5(){if(Vx)return Rh;Vx=1;function e(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Rh=e,Rh}var Dh,Yx;function Y5(){if(Yx)return Dh;Yx=1;function e(n){const i=n.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),l=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],h={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:l,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},m={begin:/\{\{/,relevance:0},y={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,d,m,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,d,m,p]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,m,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,m,p]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",_=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,S=`\\b|${l.join("|")}`,N={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${_}))[eE][+-]?(${b})[jJ]?(?=${S})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${S})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${S})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${S})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${S})`},{begin:`\\b(${b})[jJ](?=${S})`}]},E={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",d,N,y,n.HASH_COMMENT_MODE]}]};return p.contains=[y,N,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[d,N,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},y,E,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[N,k,y]}]}}return Dh=e,Dh}var Lh,Xx;function X5(){if(Xx)return Lh;Xx=1;function e(n){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Lh=e,Lh}var zh,Kx;function K5(){if(Kx)return zh;Kx=1;function e(n){const i=n.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,l=i.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=i.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[n.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:i.lookahead(i.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),n.HASH_COMMENT_MODE,{scope:"string",contains:[n.BACKSLASH_ESCAPE],variants:[n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,l]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,l]},{scope:{1:"punctuation",2:"number"},match:[c,l]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,l]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return zh=e,zh}var Ih,Zx;function Z5(){if(Zx)return Ih;Zx=1;function e(n){const i=n.regex,a=/(r#)?/,l=i.concat(a,n.UNDERSCORE_IDENT_RE),s=i.concat(a,n.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,i.lookahead(/\s*\(/))},f="([ui](8|16|32|64|128|size)|f(32|64))?",h=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],d=["true","false","Some","None","Ok","Err"],p=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],m=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:n.IDENT_RE+"!?",type:m,keyword:h,literal:d,built_in:p},illegal:""},c]}}return Ih=e,Ih}var jh,Qx;function Q5(){if(Qx)return jh;Qx=1;const e=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...n,...i],l=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),f=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(d){const p=e(d),m=c,y=s,b="@[a-z-]+",_="and or not only",N={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,p.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+y.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+m.join("|")+")"},N,{begin:/\(/,end:/\)/,contains:[p.CSS_NUMBER_MODE]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+f.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[p.BLOCK_COMMENT,N,p.HEXCOLOR,p.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,p.IMPORTANT,p.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:b,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:l.join(" ")},contains:[{begin:b,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},N,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,p.HEXCOLOR,p.CSS_NUMBER_MODE]},p.FUNCTION_DISPATCH]}}return jh=h,jh}var Bh,Wx;function W5(){if(Wx)return Bh;Wx=1;function e(n){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Bh=e,Bh}var Uh,Jx;function J5(){if(Jx)return Uh;Jx=1;function e(n){const i=n.regex,a=n.COMMENT("--","$"),l={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],f=["double precision","large object","with timezone","without timezone"],h=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],y=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],b=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=m,S=[...p,...d].filter(R=>!m.includes(R)),N={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},E={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:i.concat(/\b/,i.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function w(R){return i.concat(/\b/,i.either(...R.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const O={scope:"keyword",match:w(b),relevance:0};function I(R,{exceptions:H,when:j}={}){const K=j;return H=H||[],R.map(L=>L.match(/\|\d+$/)||H.includes(L)?L:K(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:I(S,{when:R=>R.length<3}),literal:c,type:h,built_in:y},contains:[{scope:"type",match:w(f)},O,k,N,l,s,n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,a,E]}}return Uh=e,Uh}var Hh,ev;function eL(){if(ev)return Hh;ev=1;function e(j){return j?typeof j=="string"?j:j.source:null}function n(j){return i("(?=",j,")")}function i(...j){return j.map(L=>e(L)).join("")}function a(j){const K=j[j.length-1];return typeof K=="object"&&K.constructor===Object?(j.splice(j.length-1,1),K):{}}function l(...j){return"("+(a(j).capture?"":"?:")+j.map(q=>e(q)).join("|")+")"}const s=j=>i(/\b/,j,/\w$/.test(j)?/\b/:/\B/),c=["Protocol","Type"].map(s),f=["init","self"].map(s),h=["Any","Self"],d=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],p=["false","nil","true"],m=["assignment","associativity","higherThan","left","lowerThan","none","right"],y=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],b=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=l(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),S=l(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),N=i(_,S,"*"),E=l(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=l(E,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=i(E,k,"*"),O=i(/[A-Z]/,k,"*"),I=["attached","autoclosure",i(/convention\(/,l("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",i(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],R=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(j){const K={match:/\s+/,relevance:0},L=j.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[j.C_LINE_COMMENT_MODE,L],X={match:[/\./,l(...c,...f)],className:{2:"keyword"}},Y={match:i(/\./,l(...d)),relevance:0},A=d.filter(nt=>typeof nt=="string").concat(["_|0"]),$=d.filter(nt=>typeof nt!="string").concat(h).map(s),M={variants:[{className:"keyword",match:l(...$,...f)}]},B={$pattern:l(/\b\w+/,/#\w+/),keyword:A.concat(y),literal:p},V=[X,Y,M],Z={match:i(/\./,l(...b)),relevance:0},C={className:"built_in",match:i(/\b/,l(...b),/(?=\()/)},z=[Z,C],G={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:N},{match:`\\.(\\.|${S})+`}]},F=[G,D],U="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${U})(\\.(${U}))?([eE][+-]?(${U}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${U}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},W=(nt="")=>({className:"subst",variants:[{match:i(/\\/,nt,/[0\\tnr"']/)},{match:i(/\\/,nt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ee=(nt="")=>({className:"subst",match:i(/\\/,nt,/[\t ]*(?:[\r\n]|\r\n)/)}),ce=(nt="")=>({className:"subst",label:"interpol",begin:i(/\\/,nt,/\(/),end:/\)/}),de=(nt="")=>({begin:i(nt,/"""/),end:i(/"""/,nt),contains:[W(nt),ee(nt),ce(nt)]}),be=(nt="")=>({begin:i(nt,/"/),end:i(/"/,nt),contains:[W(nt),ce(nt)]}),Ee={className:"string",variants:[de(),de("#"),de("##"),de("###"),be(),be("#"),be("##"),be("###")]},Se=[j.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[j.BACKSLASH_ESCAPE]}],De={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Se},He=nt=>{const Yn=i(nt,/\//),Cn=i(/\//,nt);return{begin:Yn,end:Cn,contains:[...Se,{scope:"comment",begin:`#(?!.*${Cn})`,end:/$/}]}},lt={scope:"regexp",variants:[He("###"),He("##"),He("#"),De]},Rt={match:i(/`/,w,/`/)},Yt={className:"variable",match:/\$\d+/},Pt={className:"variable",match:`\\$${k}+`},Xt=[Rt,Yt,Pt],Vn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...F,J,Ee]}]}},En={scope:"keyword",match:i(/@/,l(...I),n(l(/\(/,/\s+/)))},ct={scope:"meta",match:i(/@/,w)},jt=[Vn,En,ct],ue={match:n(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:O,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,n(O)),relevance:0}]},ye={begin://,keywords:B,contains:[...q,...V,...jt,G,ue]};ue.contains.push(ye);const Me={match:i(w,/\s*:/),keywords:"_|0",relevance:0},Pe={begin:/\(/,end:/\)/,relevance:0,keywords:B,contains:["self",Me,...q,lt,...V,...z,...F,J,Ee,...Xt,...jt,ue]},Ze={begin://,keywords:"repeat each",contains:[...q,ue]},sn={begin:l(n(i(w,/\s*:/)),n(i(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:w}]},wn={begin:/\(/,end:/\)/,keywords:B,contains:[sn,...q,...V,...F,J,Ee,...jt,ue,Pe],endsParent:!0,illegal:/["']/},Kt={match:[/(func|macro)/,/\s+/,l(Rt.match,w,N)],className:{1:"keyword",3:"title.function"},contains:[Ze,wn,K],illegal:[/\[/,/%/]},Ct={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,wn,K],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,N],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,O],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...m,...p],end:/}/},zn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},cn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},yr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,w,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:B,contains:[Ze,...V,{begin:/:/,end:/\{/,keywords:B,contains:[{scope:"title.class.inherited",match:O},...V],relevance:0}]};for(const nt of Ee.variants){const Yn=nt.contains.find(hn=>hn.label==="interpol");Yn.keywords=B;const Cn=[...V,...z,...F,J,Ee,...Xt];Yn.contains=[...Cn,{begin:/\(/,end:/\)/,contains:["self",...Cn]}]}return{name:"Swift",keywords:B,contains:[...q,Kt,Ct,zn,cn,yr,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},lt,...V,...z,...F,J,Ee,...Xt,...jt,ue,Pe]}}return Hh=H,Hh}var $h,tv;function tL(){if(tv)return $h;tv=1;function e(n){const i="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",l={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},f={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,s]},h=n.inherit(f,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),b={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},S={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},N={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},E=[l,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},b,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},S,N,c,f],k=[...E];return k.pop(),k.push(h),_.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:E}}return $h=e,$h}var qh,nv;function nL(){if(nv)return qh;nv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],l=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],f=[].concat(s,a,l);function h(p){const m=p.regex,y=(W,{after:ee})=>{const ce="",end:""},S=/<[A-Za-z0-9\\._:-]+\s*\/>/,N={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,ee)=>{const ce=W[0].length+W.index,de=W.input[ce];if(de==="<"||de===","){ee.ignoreMatch();return}de===">"&&(y(W,{after:ce})||ee.ignoreMatch());let be;const Ee=W.input.substring(ce);if(be=Ee.match(/^\s*=/)){ee.ignoreMatch();return}if((be=Ee.match(/^\s+extends\s+/))&&be.index===0){ee.ignoreMatch();return}}},E={$pattern:e,keyword:n,literal:i,built_in:f,"variable.language":c},k="[0-9](_?[0-9])*",w=`\\.(${k})`,O="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",I={className:"number",variants:[{begin:`(\\b(${O})((${w})|\\.)?|(${w}))[eE][+-]?(${k})\\b`},{begin:`\\b(${O})\\b((${w})\\b|\\.)?|(${w})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},j={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"css"}},K={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,R]},X={className:"comment",variants:[p.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:b+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},Y=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,j,K,L,{match:/\$\d+/},I];R.contains=Y.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(Y)});const A=[].concat(X,R.contains),$=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:E,contains:["self"].concat(A)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:$},B={variants:[{match:[/class/,/\s+/,b,/\s+/,/extends/,/\s+/,m.concat(b,"(",m.concat(/\./,b),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,b],scope:{1:"keyword",3:"title.class"}}]},V={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...l]}},Z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},C={variants:[{match:[/function/,/\s+/,b,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},z={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function G(W){return m.concat("(?!",W.join("|"),")")}const D={match:m.concat(/\b/,G([...s,"super","import"].map(W=>`${W}\\s*\\(`)),b,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:m.concat(/\./,m.lookahead(m.concat(b,/(?![0-9A-Za-z$_(])/))),end:b,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},U={match:[/get|set/,/\s+/,b,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,b,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),Z,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,j,K,L,X,{match:/\$\d+/},I,V,{scope:"attr",match:b+m.lookahead(":"),relevance:0},J,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[X,p.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:$}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:S},{begin:N.begin,"on:begin":N.isTrulyOpeningTag,end:N.end}],subLanguage:"xml",contains:[{begin:N.begin,end:N.end,skip:!0,contains:["self"]}]}]},C,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,p.inherit(p.TITLE_MODE,{begin:b,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+b,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},D,z,B,U,{match:/\$[(.]/}]}}function d(p){const m=p.regex,y=h(p),b=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],S={begin:[/namespace/,/\s+/,p.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},N={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[y.exports.CLASS_REFERENCE]},E={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},k=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],w={$pattern:e,keyword:n.concat(k),literal:i,built_in:f.concat(_),"variable.language":c},O={className:"meta",begin:"@"+b},I=(K,L,q)=>{const X=K.contains.findIndex(Y=>Y.label===L);if(X===-1)throw new Error("can not find mode to replace");K.contains.splice(X,1,q)};Object.assign(y.keywords,w),y.exports.PARAMS_CONTAINS.push(O);const R=y.contains.find(K=>K.scope==="attr"),H=Object.assign({},R,{match:m.concat(b,m.lookahead(/\s*\?:/))});y.exports.PARAMS_CONTAINS.push([y.exports.CLASS_REFERENCE,R,H]),y.contains=y.contains.concat([O,S,N,H]),I(y,"shebang",p.SHEBANG()),I(y,"use_strict",E);const j=y.contains.find(K=>K.label==="func.def");return j.relevance=0,Object.assign(y,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),y}return qh=d,qh}var Ph,iv;function iL(){if(iv)return Ph;iv=1;function e(n){const i=n.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},l={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,f=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,h=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:i.concat(/# */,i.either(c,s),/ *#/)},{begin:i.concat(/# */,h,/ *#/)},{begin:i.concat(/# */,f,/ *#/)},{begin:i.concat(/# */,i.either(c,s),/ +/,i.either(f,h),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},m={className:"label",begin:/^\w+:/},y=n.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),b=n.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,l,d,p,m,y,b,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[b]}]}}return Ph=e,Ph}var Fh,rv;function rL(){if(rv)return Fh;rv=1;function e(n){n.regex;const i=n.COMMENT(/\(;/,/;\)/);i.contains.push("self");const a=n.COMMENT(/;;/,/$/),l=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},f={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},h={className:"number",relevance:0,match:/[+-]?\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/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={className:"keyword",match:/\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|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:l},contains:[a,i,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,f,s,n.QUOTE_STRING_MODE,d,p,h]}}return Fh=e,Fh}var Gh,av;function aL(){if(av)return Gh;av=1;var e=E5();return e.registerLanguage("xml",w5()),e.registerLanguage("bash",S5()),e.registerLanguage("c",N5()),e.registerLanguage("cpp",k5()),e.registerLanguage("csharp",T5()),e.registerLanguage("css",A5()),e.registerLanguage("markdown",C5()),e.registerLanguage("diff",M5()),e.registerLanguage("ruby",O5()),e.registerLanguage("go",R5()),e.registerLanguage("graphql",D5()),e.registerLanguage("ini",L5()),e.registerLanguage("java",z5()),e.registerLanguage("javascript",I5()),e.registerLanguage("json",j5()),e.registerLanguage("kotlin",B5()),e.registerLanguage("less",U5()),e.registerLanguage("lua",H5()),e.registerLanguage("makefile",$5()),e.registerLanguage("perl",q5()),e.registerLanguage("objectivec",P5()),e.registerLanguage("php",F5()),e.registerLanguage("php-template",G5()),e.registerLanguage("plaintext",V5()),e.registerLanguage("python",Y5()),e.registerLanguage("python-repl",X5()),e.registerLanguage("r",K5()),e.registerLanguage("rust",Z5()),e.registerLanguage("scss",Q5()),e.registerLanguage("shell",W5()),e.registerLanguage("sql",J5()),e.registerLanguage("swift",eL()),e.registerLanguage("yaml",tL()),e.registerLanguage("typescript",nL()),e.registerLanguage("vbnet",iL()),e.registerLanguage("wasm",rL()),e.HighlightJS=e,e.default=e,Gh=e,Gh}var lL=aL();const Fn=as(lL);function oL(e){const n=e.regex,i="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,l={className:"attribute",begin:n.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[l,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(l,{relevance:0})]}}function sL(e){const n=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:n.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},l={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:l.contains,keywords:{section:"upstream location"}},{className:"section",begin:n.concat(e.UNDERSCORE_IDENT_RE+n.lookahead(/\s+\{/)),relevance:0},{begin:n.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:l}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function cL(e){const n={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},l={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[a,l,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",n]},a,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function uL(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"{Fp(s),l(!0),setTimeout(()=>l(!1),2e3)};return v.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[b?v.jsxs("div",{className:"flex items-stretch",children:[v.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[b,v.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),v.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),v.jsx("button",{onClick:N,className:"px-3 py-2 text-[#555] hover:text-white transition-colors border-b border-[#2a2a2a]","aria-label":"Copy code",children:a?v.jsx(Wc,{className:"w-3.5 h-3.5 text-emerald-400"}):v.jsx(Jc,{className:"w-3.5 h-3.5"})})]}):v.jsx("button",{onClick:N,className:"absolute top-2 right-2 z-10 p-1 rounded text-[#444] hover:text-white opacity-0 group-hover/code:opacity-100 transition-opacity","aria-label":"Copy code",children:a?v.jsx(Wc,{className:"w-3.5 h-3.5 text-emerald-400"}):v.jsx(Jc,{className:"w-3.5 h-3.5"})}),v.jsx("div",{className:"overflow-auto max-h-[400px]",children:v.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:v.jsx("tbody",{children:S.map((w,O)=>v.jsxs("tr",{children:[v.jsx("td",{className:"select-none w-[1px] whitespace-nowrap px-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:y+O}),v.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:w||` -`}})]},O))})})})]})}function hm(){return e=>{const n=i=>{var a;if(i.type==="element"&&i.tagName==="pre"&&i.children){const l=i.children.find(s=>s.type==="element"&&s.tagName==="code");(a=l==null?void 0:l.data)!=null&&a.meta&&(l.properties=l.properties||{},l.properties.metastring=l.data.meta)}i.children&&i.children.forEach(l=>n(l))};n(e)}}const pm={code:dE,pre:({children:e})=>v.jsx(v.Fragment,{children:e})};function ta({title:e,content:n,action:i}){return v.jsxs("section",{children:[(e||i)&&v.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?v.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):v.jsx("span",{}),i]}),v.jsx("div",{className:"prose-markdown",children:v.jsx(sm,{remarkPlugins:[dm],rehypePlugins:[hm],components:pm,children:n})})]})}class dL{diff(n,i,a={}){let l;typeof a=="function"?(l=a,a={}):"callback"in a&&(l=a.callback);const s=this.castInput(n,a),c=this.castInput(i,a),f=this.removeEmpty(this.tokenize(s,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(f,h,a,l)}diffWithOptionsObj(n,i,a,l){var s;const c=k=>{if(k=this.postProcess(k,a),l){setTimeout(function(){l(k)},0);return}else return k},f=i.length,h=n.length;let d=1,p=f+h;a.maxEditLength!=null&&(p=Math.min(p,a.maxEditLength));const m=(s=a.timeout)!==null&&s!==void 0?s:1/0,y=Date.now()+m,b=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(b[0],i,n,0,a);if(b[0].oldPos+1>=h&&_+1>=f)return c(this.buildValues(b[0].lastComponent,i,n));let S=-1/0,N=1/0;const E=()=>{for(let k=Math.max(S,-d);k<=Math.min(N,d);k+=2){let w;const O=b[k-1],I=b[k+1];O&&(b[k-1]=void 0);let R=!1;if(I){const j=I.oldPos-k;R=I&&0<=j&&j=h&&_+1>=f)return c(this.buildValues(w.lastComponent,i,n))||!0;b[k]=w,w.oldPos+1>=h&&(N=Math.min(N,k-1)),_+1>=f&&(S=Math.max(S,k+1))}d++};if(l)(function k(){setTimeout(function(){if(d>p||Date.now()>y)return l(void 0);E()||k()},0)})();else for(;d<=p&&Date.now()<=y;){const k=E();if(k)return k}}addToPath(n,i,a,l,s){const c=n.lastComponent;return c&&!s.oneChangePerToken&&c.added===i&&c.removed===a?{oldPos:n.oldPos+l,lastComponent:{count:c.count+1,added:i,removed:a,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:i,removed:a,previousComponent:c}}}extractCommon(n,i,a,l,s){const c=i.length,f=a.length;let h=n.oldPos,d=h-l,p=0;for(;d+1y.length?_:y}),p.value=this.join(m)}else p.value=this.join(i.slice(h,h+p.count));h+=p.count,p.added||(d+=p.count)}}return l}}class hL extends dL{constructor(){super(...arguments),this.tokenize=gL}equals(n,i,a){return a.ignoreWhitespace?((!a.newlineIsToken||!n.includes(` -`))&&(n=n.trim()),(!a.newlineIsToken||!i.includes(` -`))&&(i=i.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(n.endsWith(` -`)&&(n=n.slice(0,-1)),i.endsWith(` -`)&&(i=i.slice(0,-1))),super.equals(n,i,a)}}const pL=new hL;function mL(e,n,i){return pL.diff(e,n,i)}function gL(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,` -`));const i=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let l=0;lS.value.replace(/\n$/,"").split(` -`).map(N=>{const E=N===""?` -`:d!=="text"?bL(N,d):N.replace(/&/g,"&").replace(//g,">");let k="",w="";return S.removed?k=String(m++):(S.added||(k=String(m++)),w=String(y++)),{highlighted:E,added:!!S.added,removed:!!S.removed,leftNo:k,rightNo:w}})),_=()=>{Fp(l),f(!0),setTimeout(()=>f(!1),2e3),s==null||s()};return v.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[v.jsxs("div",{className:"flex items-stretch",children:[v.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a] break-all",children:[e,":",h,v.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),v.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),v.jsx("button",{onClick:_,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy fixed code",children:c?v.jsx(Wc,{className:"w-3.5 h-3.5 text-emerald-400"}):v.jsx(Jc,{className:"w-3.5 h-3.5"})})]}),v.jsx("div",{className:"overflow-auto max-h-[400px]",children:v.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:v.jsx("tbody",{children:b.map((S,N)=>v.jsxs("tr",{className:S.added?"bg-blue-500/[0.12]":S.removed?"bg-red-500/[0.12]":"",children:[v.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-4 pr-1.5 text-right text-[#555] align-top text-[12px] leading-[22px]",children:S.leftNo}),v.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-1.5 pr-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:S.rightNo}),v.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:S.highlighted}})]},N))})})})]})}function xL({description:e,scriptCode:n,onCopy:i}){const[a,l]=ae.useState(!1);if(!e&&!n)return null;const s=()=>{n&&(Fp(n),l(!0),setTimeout(()=>l(!1),2e3),i==null||i())};return v.jsxs("section",{children:[v.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),v.jsxs("div",{className:"space-y-4",children:[e&&v.jsx("div",{className:"prose-markdown",children:v.jsx(sm,{remarkPlugins:[dm],rehypePlugins:[hm],components:pm,children:e})}),n&&v.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[v.jsxs("div",{className:"flex items-stretch",children:[v.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",v.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),v.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),v.jsx("button",{onClick:s,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy PoC code",children:a?v.jsx(Wc,{className:"w-3.5 h-3.5 text-emerald-400"}):v.jsx(Jc,{className:"w-3.5 h-3.5"})})]}),v.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:v.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:v.jsx("code",{dangerouslySetInnerHTML:{__html:Fn.highlight(n,{language:"python"}).value}})})})]})]})]})}function vL(e){const n=e.match(/(?:https?:\/\/)?(?:www\.)?github\.com\/([^\s/]+\/[^\s/]+)/);if(n){const l=n[1].replace(/\.git$/,"");return{display:l,href:`https://github.com/${l}`,provider:"github"}}const i=e.match(/(?:https?:\/\/)?(?:www\.)?gitlab\.com\/([^\s/]+\/[^\s/]+)/);if(i){const l=i[1].replace(/\.git$/,"");return{display:l,href:`https://gitlab.com/${l}`,provider:"gitlab"}}const a=e.match(/(?:https?:\/\/)?(?:www\.)?bitbucket\.org\/([^\s/]+\/[^\s/]+)/);if(a){const l=a[1].replace(/\.git$/,"");return{display:l,href:`https://bitbucket.org/${l}`,provider:"bitbucket"}}return/^https?:\/\//i.test(e)?{display:e.replace(/^https?:\/\/(www\.)?/,""),href:e,provider:null}:/^[a-zA-Z0-9][\w.-]*\.[a-zA-Z]{2,}/.test(e)?{display:e,href:`https://${e}`,provider:null}:{display:e,href:null,provider:null}}function _L({className:e}){return v.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:v.jsx("path",{d:"M2.65 3a.72.72 0 0 0-.72.83l2.86 17.39a.98.98 0 0 0 .96.82h13.72a.72.72 0 0 0 .72-.6l2.86-17.4A.72.72 0 0 0 22.3 3H2.65Zm12.1 12.53H9.3L8.06 8.9h7.8l-1.11 6.63Z"})})}function EL({provider:e,className:n}){const i=n??"w-4 h-4";return e==="gitlab"?v.jsx(x2,{className:`${i} text-orange-400`}):e==="bitbucket"?v.jsx(_L,{className:`${i} text-blue-400`}):v.jsx(b2,{className:`${i} text-white`})}const wL={attack_vector:{N:"Remotely exploitable",A:"Adjacent network",L:"Local access required",P:"Physical access required"},attack_complexity:{L:"Easy to exploit",H:"Requires specific conditions"},privileges_required:{N:"No authentication needed",L:"Low privileges needed",H:"High privileges needed"},user_interaction:{N:"No user action required",R:"Requires user action",P:"Passive user role",A:"Active user role"},scope:{U:"Impact stays contained",C:"Can spread to other systems"},confidentiality:{N:"No data exposure",L:"Partial data exposure",H:"Full data exposure"},integrity:{N:"No data modification",L:"Limited modification",H:"Full data modification"},availability:{N:"No service disruption",L:"Limited disruption",H:"Full service disruption"}},SL={attack_vector:{N:"high",A:"medium",L:"low",P:"low"},attack_complexity:{L:"high",H:"low"},privileges_required:{N:"high",L:"medium",H:"low"},user_interaction:{N:"high",R:"low",P:"medium",A:"low"},scope:{C:"high",U:"low"},confidentiality:{H:"high",L:"medium",N:"low"},integrity:{H:"high",L:"medium",N:"low"},availability:{H:"high",L:"medium",N:"low"}},NL={high:"bg-red-500/15 text-red-400 border-red-500/25",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/25",low:"bg-[#222] text-[#666] border-[#333]"},kL=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function TL(e,n,i,a,l){const s=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),f=i.split("/").map(encodeURIComponent).join("/");return n==="github"?`${s}/blob/${f}/${c}#L${l}`:n==="gitlab"?`${s}/-/blob/${f}/${c}#L${l}`:null}function AL({vulnerability:e,statusSlot:n,slackThreadUrl:i}){var R;const{severity:a,cvss:l,cve:s,cwe:c,fix_effort:f,created_at:h,target:d,endpoint:p,method:m,code_locations:y,cvss_breakdown:b,location_meta:_}=e,[S,N]=ae.useState(!0),E=y==null?void 0:y.filter(H=>H.fix_before&&H.fix_after),k=E&&E.length>0,w=d?vL(d):null,O=!!(d||p||m||k),I=b&&Object.values(b).some(H=>H!=null);return v.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[v.jsx("div",{className:"pb-4",children:v.jsxs("div",{className:"space-y-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("div",{className:`w-2 h-2 rounded-full ${Pp(a)}`,"aria-hidden":"true"}),v.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),v.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:l!==null?l:"N/A"})]}),s&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),v.jsx("span",{className:"text-sm text-white font-mono",children:s})]}),c&&c.length>0&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),v.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),f&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),v.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=iT[f])==null?void 0:R.color)??"text-[#666]"}`,children:f.charAt(0).toUpperCase()+f.slice(1)})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx(q_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),v.jsx("span",{className:"text-sm text-white",children:dp(h)})]})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),n]})]})}),O&&v.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[v.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),v.jsxs("div",{className:"space-y-2.5",children:[d&&w&&v.jsxs("div",{className:"flex items-center gap-1.5",children:[w.provider?v.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:v.jsx(EL,{provider:w.provider})}):v.jsx(F_,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),w.href?v.jsx("a",{href:w.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white hover:text-[#ccc] break-words min-w-0 transition-colors",children:w.display}):v.jsx("span",{className:"text-sm text-white break-words min-w-0",children:w.display})]}),p&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),v.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:p})]}),m&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),v.jsx("span",{className:"text-xs text-white font-mono",children:m})]}),k&&v.jsxs("div",{children:[v.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),v.jsx("div",{className:"space-y-0.5",children:E.map((H,j)=>{const K=`${H.file}:${H.start_line}`,L=_?TL(_.repo_url,_.provider,_.branch,H.file,H.start_line):null;return L?v.jsx("a",{href:L,target:"_blank",rel:"noopener noreferrer",className:"text-[13px] text-[#888] hover:text-white font-mono break-all transition-colors block",children:K},`loc-${j}`):v.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:K},`loc-${j}`)})})]})]})]}),I&&v.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[v.jsxs("button",{onClick:()=>N(!S),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":S,children:[v.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),v.jsx(Yk,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${S?"":"-rotate-90"}`,"aria-hidden":"true"})]}),v.jsx("div",{className:`space-y-3 ${S?"":"hidden"}`,children:kL.map(H=>{const j=H.keys.filter(K=>b[K]!=null);return j.length===0?null:v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[v.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:H.label}),v.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),v.jsx("div",{className:"space-y-1",children:j.map(K=>{var Y,A;const L=b[K],q=L?((Y=SL[K])==null?void 0:Y[L])??"low":"low",X=L?((A=wL[K])==null?void 0:A[L])??L:"N/A";return v.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[v.jsx("span",{className:"text-[12px] text-[#aaa]",children:X}),v.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${NL[q]}`,children:q})]},K)})})]},H.label)})})]})]})}function lv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${dp(e)}`:` on ${dp(e)}`:""}const CL={open:null,in_progress:{icon:q_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:Bk,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:Wk,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:U_,label:"Marked as Ignored",iconColor:"text-[#888]"}};function ML({vulnerability:e}){const n=nT[e.status],i=e.code_locations&&e.code_locations.length>0,a=i||e.remediation_steps,l=!!(e.evidence||e.assumptions||e.poc_description||e.poc_script_code),[s,c]=ae.useState("fix"),h=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:l}].filter(d=>d.show);return v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"mb-2",children:[e.display_number&&v.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:JT(e.display_number)}),v.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),v.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[v.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded-full border ${n.color}`,children:n.label}),v.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${G_[e.severity]}`,title:Tc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[v.jsx("div",{className:`w-2 h-2 rounded-full ${Pp(e.severity)}`}),v.jsxs("span",{className:"capitalize",children:[e.severity,!Tc(e)&&e.cvss?` ${e.cvss}`:""]}),Tc(e)&&v.jsx(Sy,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-[#333]",children:"·"}),v.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),e.status!=="open"&&(()=>{const d=CL[e.status];if(!d)return null;const p=d.icon;return v.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[v.jsx(p,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${d.iconColor}`,"aria-hidden":"true"}),v.jsxs("div",{className:"min-w-0",children:[v.jsxs("p",{className:"text-sm font-semibold text-white",children:[d.label,lv(e.status_changed_at)]}),e.status_note&&v.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),Tc(e)&&v.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[v.jsx(Sy,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),v.jsxs("div",{className:"min-w-0",children:[v.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",v.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",v.jsx("span",{className:"capitalize",children:e.severity}),lv(e.severity_changed_at)]}),e.severity_override_reason&&v.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsxs("div",{className:"space-y-8",children:[v.jsx(ta,{title:"TL;DR",content:e.description}),e.impact&&v.jsx(ta,{title:"Impact",content:e.impact}),e.technical_analysis&&v.jsx(ta,{title:"Technical Details",content:e.technical_analysis})]}),h.length>0&&v.jsxs("div",{className:"mt-10",children:[v.jsx("div",{className:"border-b border-[#2a2a2a]",children:v.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:h.map(d=>v.jsxs("button",{onClick:()=>c(d.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${s===d.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":s===d.id?"page":void 0,children:[d.label,s===d.id&&v.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},d.id))})}),a&&v.jsxs("div",{className:`pt-6 space-y-6 ${s==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&v.jsx(ta,{title:"How do I fix it?",content:e.remediation_steps}),i&&e.code_locations.filter(d=>d.fix_before&&d.fix_after).map((d,p)=>v.jsx(yL,{file:d.file,startLine:d.start_line,endLine:d.end_line,before:d.fix_before,after:d.fix_after},`fix-${p}`))]}),l&&v.jsxs("div",{className:`pt-6 space-y-8 ${s==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&v.jsx(ta,{title:"Assumptions",content:e.assumptions}),e.evidence&&v.jsx(ta,{title:"Evidence",content:e.evidence}),v.jsx(xL,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),v.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:v.jsx(AL,{vulnerability:e,statusSlot:v.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-full border ${n.color}`,children:[v.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${n.dotColor}`}),n.label]})})})]})]})}const ov=[{key:"critical",label:"critical",dotClass:"bg-red-500",textClass:"text-red-500"},{key:"high",label:"high",dotClass:"bg-orange-500",textClass:"text-orange-500"},{key:"medium",label:"medium",dotClass:"bg-yellow-500",textClass:"text-yellow-500"},{key:"low",label:"low",dotClass:"bg-blue-500",textClass:"text-blue-500"}];function OL({findings:e,className:n,unit:i="issues",trailing:a}){return e.total<=0?null:v.jsxs("div",{className:Mc("space-y-3",n),children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),v.jsx("span",{className:"text-sm text-[#666]",children:i})]}),v.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:ov.map(({key:l,label:s,dotClass:c,textClass:f})=>{const h=e[l];return h<=0?null:v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("div",{className:Mc("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),v.jsx("span",{className:Mc("text-sm tabular-nums",f),children:h}),v.jsx("span",{className:"text-xs text-[#555]",children:s})]},l)})}),a?v.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),v.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:ov.map(({key:l,dotClass:s})=>{const c=e[l];return c<=0?null:v.jsx("div",{className:Mc("h-full",s),style:{width:`${c/e.total*100}%`}},l)})})]})}function on(e){if(typeof e=="string"||typeof e=="number")return""+e;let n="";if(Array.isArray(e))for(let i=0,a;i{}};function wu(){for(var e=0,n=arguments.length,i={},a;e=0&&(a=i.slice(l+1),i=i.slice(0,l)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}Yc.prototype=wu.prototype={constructor:Yc,on:function(e,n){var i=this._,a=DL(e+"",i),l,s=-1,c=a.length;if(arguments.length<2){for(;++s0)for(var i=new Array(l),a=0,l,s;a=0&&(n=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),cv.hasOwnProperty(n)?{space:cv[n],local:e}:e}function zL(e){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Sp&&n.documentElement.namespaceURI===Sp?n.createElement(e):n.createElementNS(i,e)}}function IL(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function hE(e){var n=Su(e);return(n.local?IL:zL)(n)}function jL(){}function mm(e){return e==null?jL:function(){return this.querySelector(e)}}function BL(e){typeof e!="function"&&(e=mm(e));for(var n=this._groups,i=n.length,a=new Array(i),l=0;l=w&&(w=k+1);!(I=N[w])&&++w<_;);O._next=I||null}}return c=new ri(c,a),c._enter=f,c._exit=h,c}function r3(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function a3(){return new ri(this._exit||this._groups.map(bE),this._parents)}function l3(e,n,i){var a=this.enter(),l=this,s=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),n!=null&&(l=n(l),l&&(l=l.selection())),i==null?s.remove():i(s),a&&l?a.merge(l).order():l}function o3(e){for(var n=e.selection?e.selection():e,i=this._groups,a=n._groups,l=i.length,s=a.length,c=Math.min(l,s),f=new Array(l),h=0;h=0;)(c=a[l])&&(s&&c.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(c,s),s=c);return this}function c3(e){e||(e=u3);function n(m,y){return m&&y?e(m.__data__,y.__data__):!m-!y}for(var i=this._groups,a=i.length,l=new Array(a),s=0;sn?1:e>=n?0:NaN}function f3(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function d3(){return Array.from(this)}function h3(){for(var e=this._groups,n=0,i=e.length;n1?this.each((n==null?S3:typeof n=="function"?k3:N3)(e,n,i??"")):Rl(this.node(),e)}function Rl(e,n){return e.style.getPropertyValue(n)||yE(e).getComputedStyle(e,null).getPropertyValue(n)}function A3(e){return function(){delete this[e]}}function C3(e,n){return function(){this[e]=n}}function M3(e,n){return function(){var i=n.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function O3(e,n){return arguments.length>1?this.each((n==null?A3:typeof n=="function"?M3:C3)(e,n)):this.node()[e]}function xE(e){return e.trim().split(/^|\s+/)}function gm(e){return e.classList||new vE(e)}function vE(e){this._node=e,this._names=xE(e.getAttribute("class")||"")}vE.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function _E(e,n){for(var i=gm(e),a=-1,l=n.length;++a=0&&(i=n.slice(a+1),n=n.slice(0,a)),{type:n,name:i}})}function az(e){return function(){var n=this.__on;if(n){for(var i=0,a=-1,l=n.length,s;i()=>e;function Np(e,{sourceEvent:n,subject:i,target:a,identifier:l,active:s,x:c,y:f,dx:h,dy:d,dispatch:p}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:l,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:p}})}Np.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function mz(e){return!e.ctrlKey&&!e.button}function gz(){return this.parentNode}function bz(e,n){return n??{x:e.x,y:e.y}}function yz(){return navigator.maxTouchPoints||"ontouchstart"in this}function TE(){var e=mz,n=gz,i=bz,a=yz,l={},s=wu("start","drag","end"),c=0,f,h,d,p,m=0;function y(O){O.on("mousedown.drag",b).filter(a).on("touchstart.drag",N).on("touchmove.drag",E,pz).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(O,I){if(!(p||!e.call(this,O,I))){var R=w(this,n.call(this,O,I),O,I,"mouse");R&&(ni(O.view).on("mousemove.drag",_,Zo).on("mouseup.drag",S,Zo),NE(O.view),Vh(O),d=!1,f=O.clientX,h=O.clientY,R("start",O))}}function _(O){if(Cl(O),!d){var I=O.clientX-f,R=O.clientY-h;d=I*I+R*R>m}l.mouse("drag",O)}function S(O){ni(O.view).on("mousemove.drag mouseup.drag",null),kE(O.view,d),Cl(O),l.mouse("end",O)}function N(O,I){if(e.call(this,O,I)){var R=O.changedTouches,H=n.call(this,O,I),j=R.length,K,L;for(K=0;K>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Ic(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Ic(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=vz.exec(e))?new Pn(n[1],n[2],n[3],1):(n=_z.exec(e))?new Pn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Ez.exec(e))?Ic(n[1],n[2],n[3],n[4]):(n=wz.exec(e))?Ic(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Sz.exec(e))?gv(n[1],n[2]/100,n[3]/100,1):(n=Nz.exec(e))?gv(n[1],n[2]/100,n[3]/100,n[4]):uv.hasOwnProperty(e)?hv(uv[e]):e==="transparent"?new Pn(NaN,NaN,NaN,0):null}function hv(e){return new Pn(e>>16&255,e>>8&255,e&255,1)}function Ic(e,n,i,a){return a<=0&&(e=n=i=NaN),new Pn(e,n,i,a)}function Az(e){return e instanceof fs||(e=za(e)),e?(e=e.rgb(),new Pn(e.r,e.g,e.b,e.opacity)):new Pn}function kp(e,n,i,a){return arguments.length===1?Az(e):new Pn(e,n,i,a??1)}function Pn(e,n,i,a){this.r=+e,this.g=+n,this.b=+i,this.opacity=+a}bm(Pn,kp,AE(fs,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qo:Math.pow(Qo,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(Ra(this.r),Ra(this.g),Ra(this.b),ou(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:pv,formatHex:pv,formatHex8:Cz,formatRgb:mv,toString:mv}));function pv(){return`#${Ma(this.r)}${Ma(this.g)}${Ma(this.b)}`}function Cz(){return`#${Ma(this.r)}${Ma(this.g)}${Ma(this.b)}${Ma((isNaN(this.opacity)?1:this.opacity)*255)}`}function mv(){const e=ou(this.opacity);return`${e===1?"rgb(":"rgba("}${Ra(this.r)}, ${Ra(this.g)}, ${Ra(this.b)}${e===1?")":`, ${e})`}`}function ou(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ra(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ma(e){return e=Ra(e),(e<16?"0":"")+e.toString(16)}function gv(e,n,i,a){return a<=0?e=n=i=NaN:i<=0||i>=1?e=n=NaN:n<=0&&(e=NaN),new ki(e,n,i,a)}function CE(e){if(e instanceof ki)return new ki(e.h,e.s,e.l,e.opacity);if(e instanceof fs||(e=za(e)),!e)return new ki;if(e instanceof ki)return e;e=e.rgb();var n=e.r/255,i=e.g/255,a=e.b/255,l=Math.min(n,i,a),s=Math.max(n,i,a),c=NaN,f=s-l,h=(s+l)/2;return f?(n===s?c=(i-a)/f+(i0&&h<1?0:c,new ki(c,f,h,e.opacity)}function Mz(e,n,i,a){return arguments.length===1?CE(e):new ki(e,n,i,a??1)}function ki(e,n,i,a){this.h=+e,this.s=+n,this.l=+i,this.opacity=+a}bm(ki,Mz,AE(fs,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new ki(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qo:Math.pow(Qo,e),new ki(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,l=2*i-a;return new Pn(Yh(e>=240?e-240:e+120,l,a),Yh(e,l,a),Yh(e<120?e+240:e-120,l,a),this.opacity)},clamp(){return new ki(bv(this.h),jc(this.s),jc(this.l),ou(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=ou(this.opacity);return`${e===1?"hsl(":"hsla("}${bv(this.h)}, ${jc(this.s)*100}%, ${jc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function bv(e){return e=(e||0)%360,e<0?e+360:e}function jc(e){return Math.max(0,Math.min(1,e||0))}function Yh(e,n,i){return(e<60?n+(i-n)*e/60:e<180?i:e<240?n+(i-n)*(240-e)/60:n)*255}const ym=e=>()=>e;function Oz(e,n){return function(i){return e+i*n}}function Rz(e,n,i){return e=Math.pow(e,i),n=Math.pow(n,i)-e,i=1/i,function(a){return Math.pow(e+a*n,i)}}function Dz(e){return(e=+e)==1?ME:function(n,i){return i-n?Rz(n,i,e):ym(isNaN(n)?i:n)}}function ME(e,n){var i=n-e;return i?Oz(e,i):ym(isNaN(e)?n:e)}const su=(function e(n){var i=Dz(n);function a(l,s){var c=i((l=kp(l)).r,(s=kp(s)).r),f=i(l.g,s.g),h=i(l.b,s.b),d=ME(l.opacity,s.opacity);return function(p){return l.r=c(p),l.g=f(p),l.b=h(p),l.opacity=d(p),l+""}}return a.gamma=e,a})(1);function Lz(e,n){n||(n=[]);var i=e?Math.min(n.length,e.length):0,a=n.slice(),l;return function(s){for(l=0;li&&(s=n.slice(i,s),f[c]?f[c]+=s:f[++c]=s),(a=a[0])===(l=l[0])?f[c]?f[c]+=l:f[++c]=l:(f[++c]=null,h.push({i:c,x:$i(a,l)})),i=Xh.lastIndex;return i180?p+=360:p-d>180&&(d+=360),y.push({i:m.push(l(m)+"rotate(",null,a)-2,x:$i(d,p)})):p&&m.push(l(m)+"rotate("+p+a)}function f(d,p,m,y){d!==p?y.push({i:m.push(l(m)+"skewX(",null,a)-2,x:$i(d,p)}):p&&m.push(l(m)+"skewX("+p+a)}function h(d,p,m,y,b,_){if(d!==m||p!==y){var S=b.push(l(b)+"scale(",null,",",null,")");_.push({i:S-4,x:$i(d,m)},{i:S-2,x:$i(p,y)})}else(m!==1||y!==1)&&b.push(l(b)+"scale("+m+","+y+")")}return function(d,p){var m=[],y=[];return d=e(d),p=e(p),s(d.translateX,d.translateY,p.translateX,p.translateY,m,y),c(d.rotate,p.rotate,m,y),f(d.skewX,p.skewX,m,y),h(d.scaleX,d.scaleY,p.scaleX,p.scaleY,m,y),d=p=null,function(b){for(var _=-1,S=y.length,N;++_=0&&e._call.call(void 0,n),e=e._next;--Dl}function vv(){Ia=(uu=Jo.now())+Nu,Dl=$o=0;try{Kz()}finally{Dl=0,Qz(),Ia=0}}function Zz(){var e=Jo.now(),n=e-uu;n>LE&&(Nu-=n,uu=e)}function Qz(){for(var e,n=cu,i,a=1/0;n;)n._call?(a>n._time&&(a=n._time),e=n,n=n._next):(i=n._next,n._next=null,n=e?e._next=i:cu=i);qo=e,Cp(a)}function Cp(e){if(!Dl){$o&&($o=clearTimeout($o));var n=e-Ia;n>24?(e<1/0&&($o=setTimeout(vv,e-Jo.now()-Nu)),Bo&&(Bo=clearInterval(Bo))):(Bo||(uu=Jo.now(),Bo=setInterval(Zz,LE)),Dl=1,zE(vv))}}function _v(e,n,i){var a=new fu;return n=n==null?0:+n,a.restart(l=>{a.stop(),e(l+n)},n,i),a}var Wz=wu("start","end","cancel","interrupt"),Jz=[],jE=0,Ev=1,Mp=2,Kc=3,wv=4,Op=5,Zc=6;function ku(e,n,i,a,l,s){var c=e.__transition;if(!c)e.__transition={};else if(i in c)return;e4(e,i,{name:n,index:a,group:l,on:Wz,tween:Jz,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:jE})}function vm(e,n){var i=Ri(e,n);if(i.state>jE)throw new Error("too late; already scheduled");return i}function Gi(e,n){var i=Ri(e,n);if(i.state>Kc)throw new Error("too late; already running");return i}function Ri(e,n){var i=e.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function e4(e,n,i){var a=e.__transition,l;a[n]=i,i.timer=IE(s,0,i.time);function s(d){i.state=Ev,i.timer.restart(c,i.delay,i.time),i.delay<=d&&c(d-i.delay)}function c(d){var p,m,y,b;if(i.state!==Ev)return h();for(p in a)if(b=a[p],b.name===i.name){if(b.state===Kc)return _v(c);b.state===wv?(b.state=Zc,b.timer.stop(),b.on.call("interrupt",e,e.__data__,b.index,b.group),delete a[p]):+pMp&&a.state=0&&(n=n.slice(0,i)),!n||n==="start"})}function M4(e,n,i){var a,l,s=C4(n)?vm:Gi;return function(){var c=s(this,e),f=c.on;f!==a&&(l=(a=f).copy()).on(n,i),c.on=l}}function O4(e,n){var i=this._id;return arguments.length<2?Ri(this.node(),i).on.on(e):this.each(M4(i,e,n))}function R4(e){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==e)return;n&&n.removeChild(this)}}function D4(){return this.on("end.remove",R4(this._id))}function L4(e){var n=this._name,i=this._id;typeof e!="function"&&(e=mm(e));for(var a=this._groups,l=a.length,s=new Array(l),c=0;c()=>e;function aI(e,{sourceEvent:n,target:i,transform:a,dispatch:l}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:l}})}function pr(e,n,i){this.k=e,this.x=n,this.y=i}pr.prototype={constructor:pr,scale:function(e){return e===1?this:new pr(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new pr(this.k,this.x+this.k*e,this.y+this.k*n)},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 Tu=new pr(1,0,0);$E.prototype=pr.prototype;function $E(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Tu;return e.__zoom}function Kh(e){e.stopImmediatePropagation()}function Uo(e){e.preventDefault(),e.stopImmediatePropagation()}function lI(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function oI(){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 Sv(){return this.__zoom||Tu}function sI(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function cI(){return navigator.maxTouchPoints||"ontouchstart"in this}function uI(e,n,i){var a=e.invertX(n[0][0])-i[0][0],l=e.invertX(n[1][0])-i[1][0],s=e.invertY(n[0][1])-i[0][1],c=e.invertY(n[1][1])-i[1][1];return e.translate(l>a?(a+l)/2:Math.min(0,a)||Math.max(0,l),c>s?(s+c)/2:Math.min(0,s)||Math.max(0,c))}function qE(){var e=lI,n=oI,i=uI,a=sI,l=cI,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,h=Xc,d=wu("start","zoom","end"),p,m,y,b=500,_=150,S=0,N=10;function E(A){A.property("__zoom",Sv).on("wheel.zoom",j,{passive:!1}).on("mousedown.zoom",K).on("dblclick.zoom",L).filter(l).on("touchstart.zoom",q).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(A,$,M,B){var V=A.selection?A.selection():A;V.property("__zoom",Sv),A!==V?I(A,$,M,B):V.interrupt().each(function(){R(this,arguments).event(B).start().zoom(null,typeof $=="function"?$.apply(this,arguments):$).end()})},E.scaleBy=function(A,$,M,B){E.scaleTo(A,function(){var V=this.__zoom.k,Z=typeof $=="function"?$.apply(this,arguments):$;return V*Z},M,B)},E.scaleTo=function(A,$,M,B){E.transform(A,function(){var V=n.apply(this,arguments),Z=this.__zoom,C=M==null?O(V):typeof M=="function"?M.apply(this,arguments):M,z=Z.invert(C),G=typeof $=="function"?$.apply(this,arguments):$;return i(w(k(Z,G),C,z),V,c)},M,B)},E.translateBy=function(A,$,M,B){E.transform(A,function(){return i(this.__zoom.translate(typeof $=="function"?$.apply(this,arguments):$,typeof M=="function"?M.apply(this,arguments):M),n.apply(this,arguments),c)},null,B)},E.translateTo=function(A,$,M,B,V){E.transform(A,function(){var Z=n.apply(this,arguments),C=this.__zoom,z=B==null?O(Z):typeof B=="function"?B.apply(this,arguments):B;return i(Tu.translate(z[0],z[1]).scale(C.k).translate(typeof $=="function"?-$.apply(this,arguments):-$,typeof M=="function"?-M.apply(this,arguments):-M),Z,c)},B,V)};function k(A,$){return $=Math.max(s[0],Math.min(s[1],$)),$===A.k?A:new pr($,A.x,A.y)}function w(A,$,M){var B=$[0]-M[0]*A.k,V=$[1]-M[1]*A.k;return B===A.x&&V===A.y?A:new pr(A.k,B,V)}function O(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function I(A,$,M,B){A.on("start.zoom",function(){R(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(B).end()}).tween("zoom",function(){var V=this,Z=arguments,C=R(V,Z).event(B),z=n.apply(V,Z),G=M==null?O(z):typeof M=="function"?M.apply(V,Z):M,D=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),F=V.__zoom,U=typeof $=="function"?$.apply(V,Z):$,Q=h(F.invert(G).concat(D/F.k),U.invert(G).concat(D/U.k));return function(J){if(J===1)J=U;else{var W=Q(J),ee=D/W[2];J=new pr(ee,G[0]-W[0]*ee,G[1]-W[1]*ee)}C.zoom(null,J)}})}function R(A,$,M){return!M&&A.__zooming||new H(A,$)}function H(A,$){this.that=A,this.args=$,this.active=0,this.sourceEvent=null,this.extent=n.apply(A,$),this.taps=0}H.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,$){return this.mouse&&A!=="mouse"&&(this.mouse[1]=$.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=$.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=$.invert(this.touch1[0])),this.that.__zoom=$,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var $=ni(this.that).datum();d.call(A,this.that,new aI(A,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:d}),$)}};function j(A,...$){if(!e.apply(this,arguments))return;var M=R(this,$).event(A),B=this.__zoom,V=Math.max(s[0],Math.min(s[1],B.k*Math.pow(2,a.apply(this,arguments)))),Z=Ni(A);if(M.wheel)(M.mouse[0][0]!==Z[0]||M.mouse[0][1]!==Z[1])&&(M.mouse[1]=B.invert(M.mouse[0]=Z)),clearTimeout(M.wheel);else{if(B.k===V)return;M.mouse=[Z,B.invert(Z)],Qc(this),M.start()}Uo(A),M.wheel=setTimeout(C,_),M.zoom("mouse",i(w(k(B,V),M.mouse[0],M.mouse[1]),M.extent,c));function C(){M.wheel=null,M.end()}}function K(A,...$){if(y||!e.apply(this,arguments))return;var M=A.currentTarget,B=R(this,$,!0).event(A),V=ni(A.view).on("mousemove.zoom",G,!0).on("mouseup.zoom",D,!0),Z=Ni(A,M),C=A.clientX,z=A.clientY;NE(A.view),Kh(A),B.mouse=[Z,this.__zoom.invert(Z)],Qc(this),B.start();function G(F){if(Uo(F),!B.moved){var U=F.clientX-C,Q=F.clientY-z;B.moved=U*U+Q*Q>S}B.event(F).zoom("mouse",i(w(B.that.__zoom,B.mouse[0]=Ni(F,M),B.mouse[1]),B.extent,c))}function D(F){V.on("mousemove.zoom mouseup.zoom",null),kE(F.view,B.moved),Uo(F),B.event(F).end()}}function L(A,...$){if(e.apply(this,arguments)){var M=this.__zoom,B=Ni(A.changedTouches?A.changedTouches[0]:A,this),V=M.invert(B),Z=M.k*(A.shiftKey?.5:2),C=i(w(k(M,Z),B,V),n.apply(this,$),c);Uo(A),f>0?ni(this).transition().duration(f).call(I,C,B,A):ni(this).call(E.transform,C,B,A)}}function q(A,...$){if(e.apply(this,arguments)){var M=A.touches,B=M.length,V=R(this,$,A.changedTouches.length===B).event(A),Z,C,z,G;for(Kh(A),C=0;C`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.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 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:n,sourceHandle:i,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?i:a}", edge id: ${n}.`,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.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},es=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],PE=["Enter"," ","Escape"],FE={"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:n,y:i})=>`Moved selected node ${e}. New position, x: ${n}, y: ${i}`,"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 Ll;(function(e){e.Strict="strict",e.Loose="loose"})(Ll||(Ll={}));var Da;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Da||(Da={}));var ts;(function(e){e.Partial="partial",e.Full="full"})(ts||(ts={}));const GE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var na;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(na||(na={}));var du;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(du||(du={}));var ze;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ze||(ze={}));const Nv={[ze.Left]:ze.Right,[ze.Right]:ze.Left,[ze.Top]:ze.Bottom,[ze.Bottom]:ze.Top};function VE(e){return e===null?null:e?"valid":"invalid"}const YE=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,fI=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Em=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),ds=(e,n=[0,0])=>{const{width:i,height:a}=Vi(e),l=e.origin??n,s=i*l[0],c=a*l[1];return{x:e.position.x-s,y:e.position.y-c}},dI=(e,n={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const i=e.reduce((a,l)=>{const s=typeof l=="string";let c=!n.nodeLookup&&!s?l:void 0;n.nodeLookup&&(c=s?n.nodeLookup.get(l):Em(l)?l:n.nodeLookup.get(l.id));const f=c?hu(c,n.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Au(a,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Cu(i)},hs=(e,n={})=>{let i={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(l=>{(n.filter===void 0||n.filter(l))&&(i=Au(i,hu(l)),a=!0)}),a?Cu(i):{x:0,y:0,width:0,height:0}},wm=(e,n,[i,a,l]=[0,0,1],s=!1,c=!1)=>{const f=(n.x-i)/l,h=(n.y-a)/l,d=n.width/l,p=n.height/l,m=[];for(const y of e.values()){const{measured:b,selectable:_=!0,hidden:S=!1}=y;if(c&&!_||S)continue;const N=b.width??y.width??y.initialWidth??0,E=b.height??y.height??y.initialHeight??0,{x:k,y:w}=y.internals.positionAbsolute,O=QE(f,h,d,p,k,w,N,E),I=N*E,R=s&&O>0;(!y.internals.handleBounds||R||O>=I||y.dragging)&&m.push(y)}return m},hI=(e,n)=>{const i=new Set;return e.forEach(a=>{i.add(a.id)}),n.filter(a=>i.has(a.source)||i.has(a.target))};function pI(e,n){const i=new Map,a=n!=null&&n.nodes?new Set(n.nodes.map(l=>l.id)):null;return e.forEach(l=>{let s;if(n!=null&&n.includeHiddenNodes){const{width:c,height:f}=Vi(l);s=c>0&&f>0}else s=!!(l.measured.width&&l.measured.height&&!l.hidden);s&&(!a||a.has(l.id))&&i.set(l.id,l)}),i}async function mI({nodes:e,width:n,height:i,panZoom:a,minZoom:l,maxZoom:s},c){if(e.size===0)return!0;const f=pI(e,c),h=hs(f),d=Nm(h,n,i,(c==null?void 0:c.minZoom)??l,(c==null?void 0:c.maxZoom)??s,(c==null?void 0:c.padding)??.1);return await a.setViewport(d,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function XE({nodeId:e,nextPosition:n,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:l,onError:s}){const c=i.get(e),f=c.parentId?i.get(c.parentId):void 0,{x:h,y:d}=f?f.internals.positionAbsolute:{x:0,y:0},p=c.origin??a;let m=c.extent||l;if(c.extent==="parent"&&!c.expandParent)if(!f)s==null||s("005",Mi.error005());else{const b=f.measured.width,_=f.measured.height;b&&_&&(m=[[h,d],[h+b,d+_]])}else f&&Ba(c.extent)&&(m=[[c.extent[0][0]+h,c.extent[0][1]+d],[c.extent[1][0]+h,c.extent[1][1]+d]]);const y=Ba(m)?ja(n,m,c.measured):n;return(c.measured.width===void 0||c.measured.height===void 0)&&(s==null||s("015",Mi.error015())),{position:{x:y.x-h+(c.measured.width??0)*p[0],y:y.y-d+(c.measured.height??0)*p[1]},positionAbsolute:y}}async function gI({nodesToRemove:e=[],edgesToRemove:n=[],nodes:i,edges:a,onBeforeDelete:l}){const s=new Set(e.map(y=>y.id)),c=[];for(const y of i){if(y.deletable===!1)continue;const b=s.has(y.id),_=!b&&y.parentId&&c.find(S=>S.id===y.parentId);(b||_)&&c.push(y)}const f=new Set(n.map(y=>y.id)),h=a.filter(y=>y.deletable!==!1),p=hI(c,h);for(const y of h)f.has(y.id)&&!p.find(_=>_.id===y.id)&&p.push(y);if(!l)return{edges:p,nodes:c};const m=await l({nodes:c,edges:p});return typeof m=="boolean"?m?{edges:p,nodes:c}:{edges:[],nodes:[]}:m}const zl=(e,n=0,i=1)=>Math.min(Math.max(e,n),i),ja=(e={x:0,y:0},n,i)=>({x:zl(e.x,n[0][0],n[1][0]-((i==null?void 0:i.width)??0)),y:zl(e.y,n[0][1],n[1][1]-((i==null?void 0:i.height)??0))});function KE(e,n,i){const{width:a,height:l}=Vi(i),{x:s,y:c}=i.internals.positionAbsolute;return ja(e,[[s,c],[s+a,c+l]],n)}const kv=(e,n,i)=>ei?-zl(Math.abs(e-i),1,n)/n:0,Sm=(e,n,i=15,a=40)=>{const l=kv(e.x,a,n.width-a)*i,s=kv(e.y,a,n.height-a)*i;return[l,s]},Au=(e,n)=>({x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),x2:Math.max(e.x2,n.x2),y2:Math.max(e.y2,n.y2)}),Rp=({x:e,y:n,width:i,height:a})=>({x:e,y:n,x2:e+i,y2:n+a}),Cu=({x:e,y:n,x2:i,y2:a})=>({x:e,y:n,width:i-e,height:a-n}),ns=(e,n=[0,0])=>{var l,s;const{x:i,y:a}=Em(e)?e.internals.positionAbsolute:ds(e,n);return{x:i,y:a,width:((l=e.measured)==null?void 0:l.width)??e.width??e.initialWidth??0,height:((s=e.measured)==null?void 0:s.height)??e.height??e.initialHeight??0}},hu=(e,n=[0,0])=>{var l,s;const{x:i,y:a}=Em(e)?e.internals.positionAbsolute:ds(e,n);return{x:i,y:a,x2:i+(((l=e.measured)==null?void 0:l.width)??e.width??e.initialWidth??0),y2:a+(((s=e.measured)==null?void 0:s.height)??e.height??e.initialHeight??0)}},ZE=(e,n)=>Cu(Au(Rp(e),Rp(n))),QE=(e,n,i,a,l,s,c,f)=>{const h=Math.max(0,Math.min(e+i,l+c)-Math.max(e,l)),d=Math.max(0,Math.min(n+a,s+f)-Math.max(n,s));return Math.ceil(h*d)},pu=(e,n)=>QE(e.x,e.y,e.width,e.height,n.x,n.y,n.width,n.height),Tv=e=>Ti(e.width)&&Ti(e.height)&&Ti(e.x)&&Ti(e.y),Ti=e=>!isNaN(e)&&isFinite(e),WE=(e,n)=>(i,a)=>{},ps=(e,n=[1,1])=>({x:n[0]*Math.round(e.x/n[0]),y:n[1]*Math.round(e.y/n[1])}),ms=({x:e,y:n},[i,a,l],s=!1,c=[1,1])=>{const f={x:(e-i)/l,y:(n-a)/l};return s?ps(f,c):f},Il=({x:e,y:n},[i,a,l])=>({x:e*l+i,y:n*l+a});function wl(e,n){if(typeof e=="number")return Math.floor((n-n/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(i)}if(typeof e=="string"&&e.endsWith("%")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(n*i*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function bI(e,n,i){if(typeof e=="string"||typeof e=="number"){const a=wl(e,i),l=wl(e,n);return{top:a,right:l,bottom:a,left:l,x:l*2,y:a*2}}if(typeof e=="object"){const a=wl(e.top??e.y??0,i),l=wl(e.bottom??e.y??0,i),s=wl(e.left??e.x??0,n),c=wl(e.right??e.x??0,n);return{top:a,right:c,bottom:l,left:s,x:s+c,y:a+l}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function yI(e,n,i,a,l,s){const{x:c,y:f}=Il(e,[n,i,a]),{x:h,y:d}=Il({x:e.x+e.width,y:e.y+e.height},[n,i,a]),p=l-h,m=s-d;return{left:Math.floor(c),top:Math.floor(f),right:Math.floor(p),bottom:Math.floor(m)}}const Nm=(e,n,i,a,l,s)=>{const c=bI(s,n,i),f=(n-c.x)/e.width,h=(i-c.y)/e.height,d=Math.min(f,h),p=zl(d,a,l),m=e.x+e.width/2,y=e.y+e.height/2,b=n/2-m*p,_=i/2-y*p,S=yI(e,b,_,p,n,i),N={left:Math.min(S.left-c.left,0),top:Math.min(S.top-c.top,0),right:Math.min(S.right-c.right,0),bottom:Math.min(S.bottom-c.bottom,0)};return{x:b-N.left+N.right,y:_-N.top+N.bottom,zoom:p}},is=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Ba(e){return e!=null&&e!=="parent"}function Vi(e){var n,i;return{width:((n=e.measured)==null?void 0:n.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}}function JE(e){var n,i;return(((n=e.measured)==null?void 0:n.width)??e.width??e.initialWidth)!==void 0&&(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight)!==void 0}function ew(e,n={width:0,height:0},i,a,l){const s={...e},c=a.get(i);if(c){const f=c.origin||l;s.x+=c.internals.positionAbsolute.x-(n.width??0)*f[0],s.y+=c.internals.positionAbsolute.y-(n.height??0)*f[1]}return s}function Av(e,n){if(e.size!==n.size)return!1;for(const i of e)if(!n.has(i))return!1;return!0}function xI(){let e,n;return{promise:new Promise((a,l)=>{e=a,n=l}),resolve:e,reject:n}}function vI(e){return{...FE,...e||{}}}function Yo(e,{snapGrid:n=[0,0],snapToGrid:i=!1,transform:a,containerBounds:l}){const{x:s,y:c}=Ai(e),f=ms({x:s-((l==null?void 0:l.left)??0),y:c-((l==null?void 0:l.top)??0)},a),{x:h,y:d}=i?ps(f,n):f;return{xSnapped:h,ySnapped:d,...f}}const km=e=>({width:e.offsetWidth,height:e.offsetHeight}),tw=e=>{var n;return((n=e==null?void 0:e.getRootNode)==null?void 0:n.call(e))||(window==null?void 0:window.document)},_I=["INPUT","SELECT","TEXTAREA"];function nw(e){var a,l;const n=((l=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:l[0])||e.target;return(n==null?void 0:n.nodeType)!==1?!1:_I.includes(n.nodeName)||n.hasAttribute("contenteditable")||!!n.closest(".nokey")}const iw=e=>"clientX"in e,Ai=(e,n)=>{var s,c;const i=iw(e),a=i?e.clientX:(s=e.touches)==null?void 0:s[0].clientX,l=i?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((n==null?void 0:n.left)??0),y:l-((n==null?void 0:n.top)??0)}},Cv=(e,n,i,a,l)=>{const s=n.querySelectorAll(`.${e}`);return!s||!s.length?null:Array.from(s).map(c=>{const f=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:l,position:c.getAttribute("data-handlepos"),x:(f.left-i.left)/a,y:(f.top-i.top)/a,...km(c)}})};function rw({sourceX:e,sourceY:n,targetX:i,targetY:a,sourceControlX:l,sourceControlY:s,targetControlX:c,targetControlY:f}){const h=e*.125+l*.375+c*.375+i*.125,d=n*.125+s*.375+f*.375+a*.125,p=Math.abs(h-e),m=Math.abs(d-n);return[h,d,p,m]}function Hc(e,n){return e>=0?.5*e:n*25*Math.sqrt(-e)}function Mv({pos:e,x1:n,y1:i,x2:a,y2:l,c:s}){switch(e){case ze.Left:return[n-Hc(n-a,s),i];case ze.Right:return[n+Hc(a-n,s),i];case ze.Top:return[n,i-Hc(i-l,s)];case ze.Bottom:return[n,i+Hc(l-i,s)]}}function aw({sourceX:e,sourceY:n,sourcePosition:i=ze.Bottom,targetX:a,targetY:l,targetPosition:s=ze.Top,curvature:c=.25}){const[f,h]=Mv({pos:i,x1:e,y1:n,x2:a,y2:l,c}),[d,p]=Mv({pos:s,x1:a,y1:l,x2:e,y2:n,c}),[m,y,b,_]=rw({sourceX:e,sourceY:n,targetX:a,targetY:l,sourceControlX:f,sourceControlY:h,targetControlX:d,targetControlY:p});return[`M${e},${n} C${f},${h} ${d},${p} ${a},${l}`,m,y,b,_]}function lw({sourceX:e,sourceY:n,targetX:i,targetY:a}){const l=Math.abs(i-e)/2,s=i0}const SI=({source:e,sourceHandle:n,target:i,targetHandle:a})=>`xy-edge__${e}${n||""}-${i}${a||""}`,NI=(e,n)=>n.some(i=>i.source===e.source&&i.target===e.target&&(i.sourceHandle===e.sourceHandle||!i.sourceHandle&&!e.sourceHandle)&&(i.targetHandle===e.targetHandle||!i.targetHandle&&!e.targetHandle)),kI=(e,n,i={})=>{var s;if(!e.source||!e.target)return(s=i.onError)==null||s.call(i,"006",Mi.error006()),n;const a=i.getEdgeId||SI;let l;return YE(e)?l={...e}:l={...e,id:a(e)},NI(l,n)?n:(l.sourceHandle===null&&delete l.sourceHandle,l.targetHandle===null&&delete l.targetHandle,n.concat(l))};function ow({sourceX:e,sourceY:n,targetX:i,targetY:a}){const[l,s,c,f]=lw({sourceX:e,sourceY:n,targetX:i,targetY:a});return[`M ${e},${n}L ${i},${a}`,l,s,c,f]}const Ov={[ze.Left]:{x:-1,y:0},[ze.Right]:{x:1,y:0},[ze.Top]:{x:0,y:-1},[ze.Bottom]:{x:0,y:1}},TI=({source:e,sourcePosition:n=ze.Bottom,target:i})=>n===ze.Left||n===ze.Right?e.xMath.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2));function AI({source:e,sourcePosition:n=ze.Bottom,target:i,targetPosition:a=ze.Top,center:l,offset:s,stepPosition:c}){const f=Ov[n],h=Ov[a],d={x:e.x+f.x*s,y:e.y+f.y*s},p={x:i.x+h.x*s,y:i.y+h.y*s},m=TI({source:d,sourcePosition:n,target:p}),y=m.x!==0?"x":"y",b=m[y];let _=[],S,N;const E={x:0,y:0},k={x:0,y:0},[,,w,O]=lw({sourceX:e.x,sourceY:e.y,targetX:i.x,targetY:i.y});if(f[y]*h[y]===-1){y==="x"?(S=l.x??d.x+(p.x-d.x)*c,N=l.y??(d.y+p.y)/2):(S=l.x??(d.x+p.x)/2,N=l.y??d.y+(p.y-d.y)*c);const j=[{x:S,y:d.y},{x:S,y:p.y}],K=[{x:d.x,y:N},{x:p.x,y:N}];f[y]===b?_=y==="x"?j:K:_=y==="x"?K:j}else{const j=[{x:d.x,y:p.y}],K=[{x:p.x,y:d.y}];if(y==="x"?_=f.x===b?K:j:_=f.y===b?j:K,n===a){const A=Math.abs(e[y]-i[y]);if(A<=s){const $=Math.min(s-1,s-A);f[y]===b?E[y]=(d[y]>e[y]?-1:1)*$:k[y]=(p[y]>i[y]?-1:1)*$}}if(n!==a){const A=y==="x"?"y":"x",$=f[y]===h[A],M=d[A]>p[A],B=d[A]=Y?(S=(L.x+q.x)/2,N=_[0].y):(S=_[0].x,N=(L.y+q.y)/2)}const I={x:d.x+E.x,y:d.y+E.y},R={x:p.x+k.x,y:p.y+k.y};return[[e,...I.x!==_[0].x||I.y!==_[0].y?[I]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],i],S,N,w,O]}function CI(e,n,i,a){const l=Math.min(Rv(e,n)/2,Rv(n,i)/2,a),{x:s,y:c}=n;if(e.x===s&&s===i.x||e.y===c&&c===i.y)return`L${s} ${c}`;if(e.y===c){const d=e.xi.id===n):e[0])||null}function Lp(e,n){return e?typeof e=="string"?e:`${n?`${n}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function OI(e,{id:n,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:l}){const s=new Set;return e.reduce((c,f)=>([f.markerStart||a,f.markerEnd||l].forEach(h=>{if(h&&typeof h=="object"){const d=Lp(h,n);s.has(d)||(c.push({id:d,color:h.color||i,...h}),s.add(d))}}),c),[]).sort((c,f)=>c.id.localeCompare(f.id))}const sw=1e3,RI=10,Tm={nodeOrigin:[0,0],nodeExtent:es,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},DI={...Tm,checkEquality:!0};function Am(e,n){const i={...e};for(const a in n)n[a]!==void 0&&(i[a]=n[a]);return i}function LI(e,n,i){const a=Am(Tm,i);for(const l of e.values())if(l.parentId)Mm(l,e,n,a);else{const s=ds(l,a.nodeOrigin),c=Ba(l.extent)?l.extent:a.nodeExtent,f=ja(s,c,Vi(l));l.internals.positionAbsolute=f}}function zI(e,n){if(!e.handles)return e.measured?n==null?void 0:n.internals.handleBounds:void 0;const i=[],a=[];for(const l of e.handles){const s={id:l.id,width:l.width??1,height:l.height??1,nodeId:e.id,x:l.x,y:l.y,position:l.position,type:l.type};l.type==="source"?i.push(s):l.type==="target"&&a.push(s)}return{source:i,target:a}}function Cm(e){return e==="manual"}function zp(e,n,i,a={}){var p,m;const l=Am(DI,a),s={i:0},c=new Map(n),f=l!=null&&l.elevateNodesOnSelect&&!Cm(l.zIndexMode)?sw:0;let h=e.length>0,d=!1;n.clear(),i.clear();for(const y of e){let b=c.get(y.id);if(l.checkEquality&&y===(b==null?void 0:b.internals.userNode))n.set(y.id,b);else{const _=ds(y,l.nodeOrigin),S=Ba(y.extent)?y.extent:l.nodeExtent,N=ja(_,S,Vi(y));b={...l.defaults,...y,measured:{width:(p=y.measured)==null?void 0:p.width,height:(m=y.measured)==null?void 0:m.height},internals:{positionAbsolute:N,handleBounds:zI(y,b),z:cw(y,f,l.zIndexMode),userNode:y}},n.set(y.id,b)}(b.measured===void 0||b.measured.width===void 0||b.measured.height===void 0)&&!b.hidden&&(h=!1),y.parentId&&Mm(b,n,i,a,s),d||(d=y.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:d}}function II(e,n){if(!e.parentId)return;const i=n.get(e.parentId);i?i.set(e.id,e):n.set(e.parentId,new Map([[e.id,e]]))}function Mm(e,n,i,a,l){const{elevateNodesOnSelect:s,nodeOrigin:c,nodeExtent:f,zIndexMode:h}=Am(Tm,a),d=e.parentId,p=n.get(d);if(!p){console.warn(`Parent node ${d} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}II(e,i),l&&!p.parentId&&p.internals.rootParentIndex===void 0&&h==="auto"&&(p.internals.rootParentIndex=++l.i,p.internals.z=p.internals.z+l.i*RI),l&&p.internals.rootParentIndex!==void 0&&(l.i=p.internals.rootParentIndex);const m=s&&!Cm(h)?sw:0,{x:y,y:b,z:_}=jI(e,p,c,f,m,h),{positionAbsolute:S}=e.internals,N=y!==S.x||b!==S.y;(N||_!==e.internals.z)&&n.set(e.id,{...e,internals:{...e.internals,positionAbsolute:N?{x:y,y:b}:S,z:_}})}function cw(e,n,i){const a=Ti(e.zIndex)?e.zIndex:0;return Cm(i)?a:a+(e.selected?n:0)}function jI(e,n,i,a,l,s){const{x:c,y:f}=n.internals.positionAbsolute,h=Vi(e),d=ds(e,i),p=Ba(e.extent)?ja(d,e.extent,h):d;let m=ja({x:c+p.x,y:f+p.y},a,h);e.extent==="parent"&&(m=KE(m,h,n));const y=cw(e,l,s),b=n.internals.z??0;return{x:m.x,y:m.y,z:b>=y?b+1:y}}function Om(e,n,i,a=[0,0]){var c;const l=[],s=new Map;for(const f of e){const h=n.get(f.parentId);if(!h)continue;const d=((c=s.get(f.parentId))==null?void 0:c.expandedRect)??ns(h),p=ZE(d,f.rect);s.set(f.parentId,{expandedRect:p,parent:h})}return s.size>0&&s.forEach(({expandedRect:f,parent:h},d)=>{var w;const p=h.internals.positionAbsolute,m=Vi(h),y=h.origin??a,b=f.x0||_>0||E||k)&&(l.push({id:d,type:"position",position:{x:h.position.x-b+E,y:h.position.y-_+k}}),(w=i.get(d))==null||w.forEach(O=>{e.some(I=>I.id===O.id)||l.push({id:O.id,type:"position",position:{x:O.position.x+b,y:O.position.y+_}})})),(m.width0){const b=Om(y,n,i,l);d.push(...b)}return{changes:d,updatedInternals:h}}async function UI({delta:e,panZoom:n,transform:i,translateExtent:a,width:l,height:s}){if(!n||!e.x&&!e.y)return!1;const c=await n.setViewportConstrained({x:i[0]+e.x,y:i[1]+e.y,zoom:i[2]},[[0,0],[l,s]],a);return!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2])}function Iv(e,n,i,a,l,s){let c=l;const f=a.get(c)||new Map;a.set(c,f.set(i,n)),c=`${l}-${e}`;const h=a.get(c)||new Map;if(a.set(c,h.set(i,n)),s){c=`${l}-${e}-${s}`;const d=a.get(c)||new Map;a.set(c,d.set(i,n))}}function uw(e,n,i){e.clear(),n.clear();for(const a of i){const{source:l,target:s,sourceHandle:c=null,targetHandle:f=null}=a,h={edgeId:a.id,source:l,target:s,sourceHandle:c,targetHandle:f},d=`${l}-${c}--${s}-${f}`,p=`${s}-${f}--${l}-${c}`;Iv("source",h,p,e,l,c),Iv("target",h,d,e,s,f),n.set(a.id,a)}}function fw(e,n){if(!e.parentId)return!1;const i=n.get(e.parentId);return i?i.selected?!0:fw(i,n):!1}function jv(e,n,i){var l;let a=e;do{if((l=a==null?void 0:a.matches)!=null&&l.call(a,n))return!0;if(a===i)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function HI(e,n,i,a){const l=new Map;for(const[s,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!fw(c,e))&&(c.draggable||n&&typeof c.draggable>"u")){const f=e.get(s);f&&l.set(s,{id:s,position:f.position||{x:0,y:0},distance:{x:i.x-f.internals.positionAbsolute.x,y:i.y-f.internals.positionAbsolute.y},extent:f.extent,parentId:f.parentId,origin:f.origin,expandParent:f.expandParent,internals:{positionAbsolute:f.internals.positionAbsolute||{x:0,y:0}},measured:{width:f.measured.width??0,height:f.measured.height??0}})}return l}function Zh({nodeId:e,dragItems:n,nodeLookup:i,dragging:a=!0}){var c,f,h;const l=[];for(const[d,p]of n){const m=(c=i.get(d))==null?void 0:c.internals.userNode;m&&l.push({...m,position:p.position,dragging:a})}if(!e)return[l[0],l];const s=(f=i.get(e))==null?void 0:f.internals.userNode;return[s?{...s,position:((h=n.get(e))==null?void 0:h.position)||s.position,dragging:a}:l[0],l]}function $I({dragItems:e,snapGrid:n,x:i,y:a}){const l=e.values().next().value;if(!l)return null;const s={x:i-l.distance.x,y:a-l.distance.y},c=ps(s,n);return{x:c.x-s.x,y:c.y-s.y}}function qI({onNodeMouseDown:e,getStoreItems:n,onDragStart:i,onDrag:a,onDragStop:l}){let s={x:null,y:null},c=0,f=new Map,h=!1,d={x:0,y:0},p=null,m=!1,y=null,b=!1,_=!1,S=null;function N({noDragClassName:k,handleSelector:w,domNode:O,isSelectable:I,nodeId:R,nodeClickDistance:H=0}){y=ni(O);function j({x:X,y:Y}){const{nodeLookup:A,nodeExtent:$,snapGrid:M,snapToGrid:B,nodeOrigin:V,onNodeDrag:Z,onSelectionDrag:C,onError:z,updateNodePositions:G}=n();s={x:X,y:Y};let D=!1;const F=f.size>1,U=F&&$?Rp(hs(f)):null,Q=F&&B?$I({dragItems:f,snapGrid:M,x:X,y:Y}):null;for(const[J,W]of f){if(!A.has(J))continue;let ee={x:X-W.distance.x,y:Y-W.distance.y};B&&(ee=Q?{x:Math.round(ee.x+Q.x),y:Math.round(ee.y+Q.y)}:ps(ee,M));let ce=null;if(F&&$&&!W.extent&&U){const{positionAbsolute:Ee}=W.internals,Se=Ee.x-U.x+$[0][0],De=Ee.x+W.measured.width-U.x2+$[1][0],He=Ee.y-U.y+$[0][1],lt=Ee.y+W.measured.height-U.y2+$[1][1];ce=[[Se,He],[De,lt]]}const{position:de,positionAbsolute:be}=XE({nodeId:J,nextPosition:ee,nodeLookup:A,nodeExtent:ce||$,nodeOrigin:V,onError:z});D=D||W.position.x!==de.x||W.position.y!==de.y,W.position=de,W.internals.positionAbsolute=be}if(_=_||D,!!D&&(G(f,!0),S&&(a||Z||!R&&C))){const[J,W]=Zh({nodeId:R,dragItems:f,nodeLookup:A});a==null||a(S,f,J,W),Z==null||Z(S,J,W),R||C==null||C(S,W)}}async function K(){if(!p)return;const{transform:X,panBy:Y,autoPanSpeed:A,autoPanOnNodeDrag:$}=n();if(!$){h=!1,cancelAnimationFrame(c);return}const[M,B]=Sm(d,p,A);(M!==0||B!==0)&&(s.x=(s.x??0)-M/X[2],s.y=(s.y??0)-B/X[2],await Y({x:M,y:B})&&j(s)),c=requestAnimationFrame(K)}function L(X){var F;const{nodeLookup:Y,multiSelectionActive:A,nodesDraggable:$,transform:M,snapGrid:B,snapToGrid:V,selectNodesOnDrag:Z,onNodeDragStart:C,onSelectionDragStart:z,unselectNodesAndEdges:G}=n();m=!0,(!Z||!I)&&!A&&R&&((F=Y.get(R))!=null&&F.selected||G()),I&&Z&&R&&(e==null||e(R));const D=Yo(X.sourceEvent,{transform:M,snapGrid:B,snapToGrid:V,containerBounds:p});if(s=D,f=HI(Y,$,D,R),f.size>0&&(i||C||!R&&z)){const[U,Q]=Zh({nodeId:R,dragItems:f,nodeLookup:Y});i==null||i(X.sourceEvent,f,U,Q),C==null||C(X.sourceEvent,U,Q),R||z==null||z(X.sourceEvent,Q)}}const q=TE().clickDistance(H).on("start",X=>{const{domNode:Y,nodeDragThreshold:A,transform:$,snapGrid:M,snapToGrid:B}=n();p=(Y==null?void 0:Y.getBoundingClientRect())||null,b=!1,_=!1,S=X.sourceEvent,A===0&&L(X),s=Yo(X.sourceEvent,{transform:$,snapGrid:M,snapToGrid:B,containerBounds:p}),d=Ai(X.sourceEvent,p)}).on("drag",X=>{const{autoPanOnNodeDrag:Y,transform:A,snapGrid:$,snapToGrid:M,nodeDragThreshold:B,nodeLookup:V}=n(),Z=Yo(X.sourceEvent,{transform:A,snapGrid:$,snapToGrid:M,containerBounds:p});if(S=X.sourceEvent,(X.sourceEvent.type==="touchmove"&&X.sourceEvent.touches.length>1||R&&!V.has(R))&&(b=!0),!b){if(!h&&Y&&m&&(h=!0,K()),!m){const C=Ai(X.sourceEvent,p),z=C.x-d.x,G=C.y-d.y;Math.sqrt(z*z+G*G)>B&&L(X)}(s.x!==Z.xSnapped||s.y!==Z.ySnapped)&&f&&m&&(d=Ai(X.sourceEvent,p),j(Z))}}).on("end",X=>{if(!m||b){b&&f.size>0&&n().updateNodePositions(f,!1);return}if(h=!1,m=!1,cancelAnimationFrame(c),f.size>0){const{nodeLookup:Y,updateNodePositions:A,onNodeDragStop:$,onSelectionDragStop:M}=n();if(_&&(A(f,!1),_=!1),l||$||!R&&M){const[B,V]=Zh({nodeId:R,dragItems:f,nodeLookup:Y,dragging:!1});l==null||l(X.sourceEvent,f,B,V),$==null||$(X.sourceEvent,B,V),R||M==null||M(X.sourceEvent,V)}}}).filter(X=>{const Y=X.target;return!X.button&&(!k||!jv(Y,`.${k}`,O))&&(!w||jv(Y,w,O))});y.call(q)}function E(){y==null||y.on(".drag",null)}return{update:N,destroy:E}}function PI(e,n,i){const a=[],l={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const s of n.values())pu(l,ns(s))>0&&a.push(s);return a}const FI=250;function GI(e,n,i,a){var f,h;let l=[],s=1/0;const c=PI(e,i,n+FI);for(const d of c){const p=[...((f=d.internals.handleBounds)==null?void 0:f.source)??[],...((h=d.internals.handleBounds)==null?void 0:h.target)??[]];for(const m of p){if(a.nodeId===m.nodeId&&a.type===m.type&&a.id===m.id)continue;const{x:y,y:b}=Ua(d,m,m.position,!0),_=Math.sqrt(Math.pow(y-e.x,2)+Math.pow(b-e.y,2));_>n||(_1){const d=a.type==="source"?"target":"source";return l.find(p=>p.type===d)??l[0]}return l[0]}function dw(e,n,i,a,l,s=!1){var d,p,m;const c=a.get(e);if(!c)return null;const f=l==="strict"?(d=c.internals.handleBounds)==null?void 0:d[n]:[...((p=c.internals.handleBounds)==null?void 0:p.source)??[],...((m=c.internals.handleBounds)==null?void 0:m.target)??[]],h=(i?f==null?void 0:f.find(y=>y.id===i):f==null?void 0:f[0])??null;return h&&s?{...h,...Ua(c,h,h.position,!0)}:h}function hw(e,n){return e||(n!=null&&n.classList.contains("target")?"target":n!=null&&n.classList.contains("source")?"source":null)}function VI(e,n){let i=null;return n?i=!0:e&&!n&&(i=!1),i}const pw=()=>!0;function YI(e,{connectionMode:n,connectionRadius:i,handleId:a,nodeId:l,edgeUpdaterType:s,isTarget:c,domNode:f,nodeLookup:h,lib:d,autoPanOnConnect:p,flowId:m,panBy:y,cancelConnection:b,onConnectStart:_,onConnect:S,onConnectEnd:N,isValidConnection:E=pw,onReconnectEnd:k,updateConnection:w,getTransform:O,getFromHandle:I,autoPanSpeed:R,dragThreshold:H=1,handleDomNode:j}){const K=tw(e.target);let L=0,q;const{x:X,y:Y}=Ai(e),A=hw(s,j),$=f==null?void 0:f.getBoundingClientRect();let M=!1;if(!$||!A)return;const B=dw(l,A,a,h,n);if(!B)return;let V=Ai(e,$),Z=!1,C=null,z=!1,G=null;function D(){if(!p||!$)return;const[de,be]=Sm(V,$,R);y({x:de,y:be}),L=requestAnimationFrame(D)}const F={...B,nodeId:l,type:A,position:B.position},U=h.get(l);let J={inProgress:!0,isValid:null,from:Ua(U,F,ze.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:U,to:V,toHandle:null,toPosition:Nv[F.position],toNode:null,pointer:V};function W(){M=!0,w(J),_==null||_(e,{nodeId:l,handleId:a,handleType:A})}H===0&&W();function ee(de){if(!M){const{x:lt,y:Rt}=Ai(de),Yt=lt-X,Pt=Rt-Y;if(!(Yt*Yt+Pt*Pt>H*H))return;W()}if(!I()||!F){ce(de);return}const be=O();V=Ai(de,$),q=GI(ms(V,be,!1,[1,1]),i,h,F),Z||(D(),Z=!0);const Ee=mw(de,{handle:q,connectionMode:n,fromNodeId:l,fromHandleId:a,fromType:c?"target":"source",isValidConnection:E,doc:K,lib:d,flowId:m,nodeLookup:h});G=Ee.handleDomNode,C=Ee.connection,z=VI(!!q,Ee.isValid);const Se=h.get(l),De=Se?Ua(Se,F,ze.Left,!0):J.from,He={...J,from:De,isValid:z,to:Ee.toHandle&&z?Il({x:Ee.toHandle.x,y:Ee.toHandle.y},be):V,toHandle:Ee.toHandle,toPosition:z&&Ee.toHandle?Ee.toHandle.position:Nv[F.position],toNode:Ee.toHandle?h.get(Ee.toHandle.nodeId):null,pointer:V};w(He),J=He}function ce(de){if(!("touches"in de&&de.touches.length>0)){if(M){(q||G)&&C&&z&&(S==null||S(C));const{inProgress:be,...Ee}=J,Se={...Ee,toPosition:J.toHandle?J.toPosition:null};N==null||N(de,Se),s&&(k==null||k(de,Se))}b(),cancelAnimationFrame(L),Z=!1,z=!1,C=null,G=null,K.removeEventListener("mousemove",ee),K.removeEventListener("mouseup",ce),K.removeEventListener("touchmove",ee),K.removeEventListener("touchend",ce)}}K.addEventListener("mousemove",ee),K.addEventListener("mouseup",ce),K.addEventListener("touchmove",ee),K.addEventListener("touchend",ce)}function mw(e,{handle:n,connectionMode:i,fromNodeId:a,fromHandleId:l,fromType:s,doc:c,lib:f,flowId:h,isValidConnection:d=pw,nodeLookup:p}){const m=s==="target",y=n?c.querySelector(`.${f}-flow__handle[data-id="${h}-${n==null?void 0:n.nodeId}-${n==null?void 0:n.id}-${n==null?void 0:n.type}"]`):null,{x:b,y:_}=Ai(e),S=c.elementFromPoint(b,_),N=S!=null&&S.classList.contains(`${f}-flow__handle`)?S:y,E={handleDomNode:N,isValid:!1,connection:null,toHandle:null};if(N){const k=hw(void 0,N),w=N.getAttribute("data-nodeid"),O=N.getAttribute("data-handleid"),I=N.classList.contains("connectable"),R=N.classList.contains("connectableend");if(!w||!k)return E;const H={source:m?w:a,sourceHandle:m?O:l,target:m?a:w,targetHandle:m?l:O};E.connection=H;const K=I&&R&&(i===Ll.Strict?m&&k==="source"||!m&&k==="target":w!==a||O!==l);E.isValid=K&&d(H),E.toHandle=dw(w,k,O,p,i,!0)}return E}const Ip={onPointerDown:YI,isValid:mw};function XI({domNode:e,panZoom:n,getTransform:i,getViewScale:a}){const l=ni(e);function s({translateExtent:f,width:h,height:d,zoomStep:p=1,pannable:m=!0,zoomable:y=!0,inversePan:b=!1}){const _=w=>{if(w.sourceEvent.type!=="wheel"||!n)return;const O=i(),I=w.sourceEvent.ctrlKey&&is()?10:1,R=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*p,H=O[2]*Math.pow(2,R*I);n.scaleTo(H)};let S=[0,0];const N=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(S=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},E=w=>{const O=i();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!n)return;const I=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],R=[I[0]-S[0],I[1]-S[1]];S=I;const H=a()*Math.max(O[2],Math.log(O[2]))*(b?-1:1),j={x:O[0]-R[0]*H,y:O[1]-R[1]*H},K=[[0,0],[h,d]];n.setViewportConstrained({x:j.x,y:j.y,zoom:O[2]},K,f)},k=qE().on("start",N).on("zoom",m?E:null).on("zoom.wheel",y?_:null);l.call(k,{})}function c(){l.on("zoom",null)}return{update:s,destroy:c,pointer:Ni}}const Mu=e=>({x:e.x,y:e.y,zoom:e.k}),Qh=({x:e,y:n,zoom:i})=>Tu.translate(e,n).scale(i),kl=(e,n)=>e.target.closest(`.${n}`),gw=(e,n)=>n===2&&Array.isArray(e)&&e.includes(2),KI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Wh=(e,n=0,i=KI,a=()=>{})=>{const l=typeof n=="number"&&n>0;return l||a(),l?e.transition().duration(n).ease(i).on("end",a):e},bw=e=>{const n=e.ctrlKey&&is()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*n};function ZI({zoomPanValues:e,noWheelClassName:n,d3Selection:i,d3Zoom:a,panOnScrollMode:l,panOnScrollSpeed:s,zoomOnPinch:c,onPanZoomStart:f,onPanZoom:h,onPanZoomEnd:d}){return p=>{if(kl(p,n))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const m=i.property("__zoom").k||1;if(p.ctrlKey&&c){const N=Ni(p),E=bw(p),k=m*Math.pow(2,E);a.scaleTo(i,k,N,p);return}const y=p.deltaMode===1?20:1;let b=l===Da.Vertical?0:p.deltaX*y,_=l===Da.Horizontal?0:p.deltaY*y;!is()&&p.shiftKey&&l!==Da.Vertical&&(b=p.deltaY*y,_=0),a.translateBy(i,-(b/m)*s,-(_/m)*s,{internal:!0});const S=Mu(i.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?h==null||h(p,S):(e.isPanScrolling=!0,f==null||f(p,S)),e.panScrollTimeout=setTimeout(()=>{d==null||d(p,S),e.isPanScrolling=!1},150)}}function QI({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:i}){return function(a,l){const s=a.type==="wheel",c=!n&&s&&!a.ctrlKey,f=kl(a,e);if(a.ctrlKey&&s&&f&&a.preventDefault(),c||f)return null;a.preventDefault(),i.call(this,a,l)}}function WI({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:i}){return a=>{var s,c,f;if((s=a.sourceEvent)!=null&&s.internal)return;const l=Mu(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=l,((f=a.sourceEvent)==null?void 0:f.type)==="mousedown"&&n(!0),i&&(i==null||i(a.sourceEvent,l))}}function JI({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:i,onTransformChange:a,onPanZoom:l}){return s=>{var c,f;e.usedRightMouseButton=!!(i&&gw(n,e.mouseButton??0)),(c=s.sourceEvent)!=null&&c.sync||a([s.transform.x,s.transform.y,s.transform.k]),l&&!((f=s.sourceEvent)!=null&&f.internal)&&(l==null||l(s.sourceEvent,Mu(s.transform)))}}function ej({zoomPanValues:e,panOnDrag:n,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:l,onPaneContextMenu:s}){return c=>{var f;if(!((f=c.sourceEvent)!=null&&f.internal)&&(e.isZoomingOrPanning=!1,s&&gw(n,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&s(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),l)){const h=Mu(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{l==null||l(c.sourceEvent,h)},i?150:0)}}}function tj({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:i,panOnDrag:a,panOnScroll:l,zoomOnDoubleClick:s,userSelectionActive:c,noWheelClassName:f,noPanClassName:h,lib:d,connectionInProgress:p}){return m=>{var N;const y=e||n,b=i&&m.ctrlKey,_=m.type==="wheel";if(m.button===1&&m.type==="mousedown"&&(kl(m,`${d}-flow__node`)||kl(m,`${d}-flow__edge`)))return!0;if(!a&&!y&&!l&&!s&&!i||c||p&&!_||kl(m,f)&&_||kl(m,h)&&(!_||l&&_&&!e)||!i&&m.ctrlKey&&_)return!1;if(!i&&m.type==="touchstart"&&((N=m.touches)==null?void 0:N.length)>1)return m.preventDefault(),!1;if(!y&&!l&&!b&&_||!a&&(m.type==="mousedown"||m.type==="touchstart")||Array.isArray(a)&&!a.includes(m.button)&&m.type==="mousedown")return!1;const S=Array.isArray(a)&&a.includes(m.button)||!m.button||m.button<=1;return(!m.ctrlKey||_)&&S}}function nj({domNode:e,minZoom:n,maxZoom:i,translateExtent:a,viewport:l,onPanZoom:s,onPanZoomStart:c,onPanZoomEnd:f,onDraggingChange:h}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect();let m=[[0,0],[p.width,p.height]];const y=typeof ResizeObserver<"u"?new ResizeObserver(Y=>{const A=Y[0];A&&(m=[[0,0],[A.contentRect.width,A.contentRect.height]])}):null;y==null||y.observe(e);const b=qE().extent(()=>m).scaleExtent([n,i]).translateExtent(a),_=ni(e).call(b);O({x:l.x,y:l.y,zoom:zl(l.zoom,n,i)},[[0,0],[p.width,p.height]],a);const S=_.on("wheel.zoom"),N=_.on("dblclick.zoom");b.wheelDelta(bw);async function E(Y,A){return _?new Promise($=>{b==null||b.interpolate((A==null?void 0:A.interpolate)==="linear"?Vo:Xc).transform(Wh(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>$(!0)),Y)}):!1}function k({noWheelClassName:Y,noPanClassName:A,onPaneContextMenu:$,userSelectionActive:M,panOnScroll:B,panOnDrag:V,panOnScrollMode:Z,panOnScrollSpeed:C,preventScrolling:z,zoomOnPinch:G,zoomOnScroll:D,zoomOnDoubleClick:F,zoomActivationKeyPressed:U,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:ee,selectionOnDrag:ce}){M&&!d.isZoomingOrPanning&&w();const de=B&&!U&&!M;b.clickDistance(ce?1/0:!Ti(ee)||ee<0?0:ee);const be=de?ZI({zoomPanValues:d,noWheelClassName:Y,d3Selection:_,d3Zoom:b,panOnScrollMode:Z,panOnScrollSpeed:C,zoomOnPinch:G,onPanZoomStart:c,onPanZoom:s,onPanZoomEnd:f}):QI({noWheelClassName:Y,preventScrolling:z,d3ZoomHandler:S});_.on("wheel.zoom",be,{passive:!1});const Ee=WI({zoomPanValues:d,onDraggingChange:h,onPanZoomStart:c});b.on("start",Ee);const Se=JI({zoomPanValues:d,panOnDrag:V,onPaneContextMenu:!!$,onPanZoom:s,onTransformChange:J});b.on("zoom",Se);const De=ej({zoomPanValues:d,panOnDrag:V,panOnScroll:B,onPaneContextMenu:$,onPanZoomEnd:f,onDraggingChange:h});b.on("end",De);const He=tj({zoomActivationKeyPressed:U,panOnDrag:V,zoomOnScroll:D,panOnScroll:B,zoomOnDoubleClick:F,zoomOnPinch:G,userSelectionActive:M,noPanClassName:A,noWheelClassName:Y,lib:Q,connectionInProgress:W});b.filter(He),F?_.on("dblclick.zoom",N):_.on("dblclick.zoom",null)}function w(){b.on("zoom",null)}async function O(Y,A,$){const M=Qh(Y),B=b==null?void 0:b.constrain()(M,A,$);return B&&await E(B),B}async function I(Y,A){const $=Qh(Y);return await E($,A),$}function R(Y){if(_){const A=Qh(Y),$=_.property("__zoom");($.k!==Y.zoom||$.x!==Y.x||$.y!==Y.y)&&(b==null||b.transform(_,A,null,{sync:!0}))}}function H(){const Y=_?$E(_.node()):{x:0,y:0,k:1};return{x:Y.x,y:Y.y,zoom:Y.k}}async function j(Y,A){return _?new Promise($=>{b==null||b.interpolate((A==null?void 0:A.interpolate)==="linear"?Vo:Xc).scaleTo(Wh(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>$(!0)),Y)}):!1}async function K(Y,A){return _?new Promise($=>{b==null||b.interpolate((A==null?void 0:A.interpolate)==="linear"?Vo:Xc).scaleBy(Wh(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>$(!0)),Y)}):!1}function L(Y){b==null||b.scaleExtent(Y)}function q(Y){b==null||b.translateExtent(Y)}function X(Y){const A=!Ti(Y)||Y<0?0:Y;b==null||b.clickDistance(A)}return{update:k,destroy:w,setViewport:I,setViewportConstrained:O,getViewport:H,scaleTo:j,scaleBy:K,setScaleExtent:L,setTranslateExtent:q,syncViewport:R,setClickDistance:X}}var jl;(function(e){e.Line="line",e.Handle="handle"})(jl||(jl={}));function ij({width:e,prevWidth:n,height:i,prevHeight:a,affectsX:l,affectsY:s}){const c=e-n,f=i-a,h=[c>0?1:c<0?-1:0,f>0?1:f<0?-1:0];return c&&l&&(h[0]=h[0]*-1),f&&s&&(h[1]=h[1]*-1),h}function Bv(e){const n=e.includes("right")||e.includes("left"),i=e.includes("bottom")||e.includes("top"),a=e.includes("left"),l=e.includes("top");return{isHorizontal:n,isVertical:i,affectsX:a,affectsY:l}}function Jr(e,n){return Math.max(0,n-e)}function ea(e,n){return Math.max(0,e-n)}function $c(e,n,i){return Math.max(0,n-e,e-i)}function Uv(e,n){return e?!n:n}function rj(e,n,i,a,l,s,c,f){let{affectsX:h,affectsY:d}=n;const{isHorizontal:p,isVertical:m}=n,y=p&&m,{xSnapped:b,ySnapped:_}=i,{minWidth:S,maxWidth:N,minHeight:E,maxHeight:k}=a,{x:w,y:O,width:I,height:R,aspectRatio:H}=e;let j=Math.floor(p?b-e.pointerX:0),K=Math.floor(m?_-e.pointerY:0);const L=I+(h?-j:j),q=R+(d?-K:K),X=-s[0]*I,Y=-s[1]*R;let A=$c(L,S,N),$=$c(q,E,k);if(c){let V=0,Z=0;h&&j<0?V=Jr(w+j+X,c[0][0]):!h&&j>0&&(V=ea(w+L+X,c[1][0])),d&&K<0?Z=Jr(O+K+Y,c[0][1]):!d&&K>0&&(Z=ea(O+q+Y,c[1][1])),A=Math.max(A,V),$=Math.max($,Z)}if(f){let V=0,Z=0;h&&j>0?V=ea(w+j,f[0][0]):!h&&j<0&&(V=Jr(w+L,f[1][0])),d&&K>0?Z=ea(O+K,f[0][1]):!d&&K<0&&(Z=Jr(O+q,f[1][1])),A=Math.max(A,V),$=Math.max($,Z)}if(l){if(p){const V=$c(L/H,E,k)*H;if(A=Math.max(A,V),c){let Z=0;!h&&!d||h&&!d&&y?Z=ea(O+Y+L/H,c[1][1])*H:Z=Jr(O+Y+(h?j:-j)/H,c[0][1])*H,A=Math.max(A,Z)}if(f){let Z=0;!h&&!d||h&&!d&&y?Z=Jr(O+L/H,f[1][1])*H:Z=ea(O+(h?j:-j)/H,f[0][1])*H,A=Math.max(A,Z)}}if(m){const V=$c(q*H,S,N)/H;if($=Math.max($,V),c){let Z=0;!h&&!d||d&&!h&&y?Z=ea(w+q*H+X,c[1][0])/H:Z=Jr(w+(d?K:-K)*H+X,c[0][0])/H,$=Math.max($,Z)}if(f){let Z=0;!h&&!d||d&&!h&&y?Z=Jr(w+q*H,f[1][0])/H:Z=ea(w+(d?K:-K)*H,f[0][0])/H,$=Math.max($,Z)}}}K=K+(K<0?$:-$),j=j+(j<0?A:-A),l&&(y?L>q*H?K=(Uv(h,d)?-j:j)/H:j=(Uv(h,d)?-K:K)*H:p?(K=j/H,d=h):(j=K*H,h=d));const M=h?w+j:w,B=d?O+K:O;return{width:I+(h?-j:j),height:R+(d?-K:K),x:s[0]*j*(h?-1:1)+M,y:s[1]*K*(d?-1:1)+B}}const yw={width:0,height:0,x:0,y:0},aj={...yw,pointerX:0,pointerY:0,aspectRatio:1};function lj(e,n,i){const a=n.position.x+e.position.x,l=n.position.y+e.position.y,s=e.measured.width??0,c=e.measured.height??0,f=i[0]*s,h=i[1]*c;return[[a-f,l-h],[a+s-f,l+c-h]]}function oj({domNode:e,nodeId:n,getStoreItems:i,onChange:a,onEnd:l}){const s=ni(e);let c={controlDirection:Bv("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function f({controlPosition:d,boundaries:p,keepAspectRatio:m,resizeDirection:y,onResizeStart:b,onResize:_,onResizeEnd:S,shouldResize:N}){let E={...yw},k={...aj};c={boundaries:p,resizeDirection:y,keepAspectRatio:m,controlDirection:Bv(d)};let w,O=null,I=[],R,H,j,K=!1;const L=TE().on("start",q=>{const{nodeLookup:X,transform:Y,snapGrid:A,snapToGrid:$,nodeOrigin:M,paneDomNode:B}=i();if(w=X.get(n),!w)return;O=(B==null?void 0:B.getBoundingClientRect())??null;const{xSnapped:V,ySnapped:Z}=Yo(q.sourceEvent,{transform:Y,snapGrid:A,snapToGrid:$,containerBounds:O});E={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},k={...E,pointerX:V,pointerY:Z,aspectRatio:E.width/E.height},R=void 0,H=Ba(w.extent)?w.extent:void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(R=X.get(w.parentId)),R&&w.extent==="parent"&&(H=[[0,0],[R.measured.width,R.measured.height]]),I=[],j=void 0;for(const[C,z]of X)if(z.parentId===n&&(I.push({id:C,position:{...z.position},extent:z.extent}),z.extent==="parent"||z.expandParent)){const G=lj(z,w,z.origin??M);j?j=[[Math.min(G[0][0],j[0][0]),Math.min(G[0][1],j[0][1])],[Math.max(G[1][0],j[1][0]),Math.max(G[1][1],j[1][1])]]:j=G}b==null||b(q,{...E})}).on("drag",q=>{const{transform:X,snapGrid:Y,snapToGrid:A,nodeOrigin:$}=i(),M=Yo(q.sourceEvent,{transform:X,snapGrid:Y,snapToGrid:A,containerBounds:O}),B=[];if(!w)return;const{x:V,y:Z,width:C,height:z}=E,G={},D=w.origin??$,{width:F,height:U,x:Q,y:J}=rj(k,c.controlDirection,M,c.boundaries,c.keepAspectRatio,D,H,j),W=F!==C,ee=U!==z,ce=Q!==V&&W,de=J!==Z&ⅇif(!ce&&!de&&!W&&!ee)return;if((ce||de||D[0]===1||D[1]===1)&&(G.x=ce?Q:E.x,G.y=de?J:E.y,E.x=G.x,E.y=G.y,I.length>0)){const De=Q-V,He=J-Z;for(const lt of I)lt.position={x:lt.position.x-De+D[0]*(F-C),y:lt.position.y-He+D[1]*(U-z)},B.push(lt)}if((W||ee)&&(G.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?F:E.width,G.height=ee&&(!c.resizeDirection||c.resizeDirection==="vertical")?U:E.height,E.width=G.width,E.height=G.height),R&&w.expandParent){const De=D[0]*(G.width??0);G.x&&G.x{K&&(S==null||S(q,{...E}),l==null||l({...E}),K=!1)});s.call(L)}function h(){s.on(".drag",null)}return{update:f,destroy:h}}var Jh={exports:{}},ep={},tp={exports:{}},np={};/** - * @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 Hv;function sj(){if(Hv)return np;Hv=1;var e=ls();function n(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var i=typeof Object.is=="function"?Object.is:n,a=e.useState,l=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function f(m,y){var b=y(),_=a({inst:{value:b,getSnapshot:y}}),S=_[0].inst,N=_[1];return s(function(){S.value=b,S.getSnapshot=y,h(S)&&N({inst:S})},[m,b,y]),l(function(){return h(S)&&N({inst:S}),m(function(){h(S)&&N({inst:S})})},[m]),c(b),b}function h(m){var y=m.getSnapshot;m=m.value;try{var b=y();return!i(m,b)}catch{return!0}}function d(m,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return np.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,np}var $v;function cj(){return $v||($v=1,tp.exports=sj()),tp.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 qv;function uj(){if(qv)return ep;qv=1;var e=ls(),n=cj();function i(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var a=typeof Object.is=="function"?Object.is:i,l=n.useSyncExternalStore,s=e.useRef,c=e.useEffect,f=e.useMemo,h=e.useDebugValue;return ep.useSyncExternalStoreWithSelector=function(d,p,m,y,b){var _=s(null);if(_.current===null){var S={hasValue:!1,value:null};_.current=S}else S=_.current;_=f(function(){function E(R){if(!k){if(k=!0,w=R,R=y(R),b!==void 0&&S.hasValue){var H=S.value;if(b(H,R))return O=H}return O=R}if(H=O,a(w,R))return H;var j=y(R);return b!==void 0&&b(H,j)?(w=R,H):(w=R,O=j)}var k=!1,w,O,I=m===void 0?null:m;return[function(){return E(p())},I===null?void 0:function(){return E(I())}]},[p,m,y,b]);var N=l(d,_[0],_[1]);return c(function(){S.hasValue=!0,S.value=N},[N]),h(N),N},ep}var Pv;function fj(){return Pv||(Pv=1,Jh.exports=uj()),Jh.exports}var dj=fj();const hj=as(dj),pj={},Fv=e=>{let n;const i=new Set,a=(p,m)=>{const y=typeof p=="function"?p(n):p;if(!Object.is(y,n)){const b=n;n=m??(typeof y!="object"||y===null)?y:Object.assign({},n,y),i.forEach(_=>_(n,b))}},l=()=>n,h={setState:a,getState:l,getInitialState:()=>d,subscribe:p=>(i.add(p),()=>i.delete(p)),destroy:()=>{(pj?"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."),i.clear()}},d=n=e(a,l,h);return h},mj=e=>e?Fv(e):Fv,{useDebugValue:gj}=vk,{useSyncExternalStoreWithSelector:bj}=hj,yj=e=>e;function xw(e,n=yj,i){const a=bj(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,i);return gj(a),a}const Gv=(e,n)=>{const i=mj(e),a=(l,s=n)=>xw(i,l,s);return Object.assign(a,i),a},xj=(e,n)=>e?Gv(e,n):Gv;function qt(e,n){if(Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(const[a,l]of e)if(!Object.is(l,n.get(a)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(const a of e)if(!n.has(a))return!1;return!0}const i=Object.keys(e);if(i.length!==Object.keys(n).length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(n,a)||!Object.is(e[a],n[a]))return!1;return!0}j_();const Ou=ae.createContext(null),vj=Ou.Provider,vw=Mi.error001("react");function ft(e,n){const i=ae.useContext(Ou);if(i===null)throw new Error(vw);return xw(i,e,n)}function zt(){const e=ae.useContext(Ou);if(e===null)throw new Error(vw);return ae.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const Vv={display:"none"},_j={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},_w="react-flow__node-desc",Ew="react-flow__edge-desc",Ej="react-flow__aria-live",wj=e=>e.ariaLiveMessage,Sj=e=>e.ariaLabelConfig;function Nj({rfId:e}){const n=ft(wj);return v.jsx("div",{id:`${Ej}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:_j,children:n})}function kj({rfId:e,disableKeyboardA11y:n}){const i=ft(Sj);return v.jsxs(v.Fragment,{children:[v.jsx("div",{id:`${_w}-${e}`,style:Vv,children:n?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),v.jsx("div",{id:`${Ew}-${e}`,style:Vv,children:i["edge.a11yDescription.default"]}),!n&&v.jsx(Nj,{rfId:e})]})}const Ru=ae.forwardRef(({position:e="top-left",children:n,className:i,style:a,...l},s)=>{const c=`${e}`.split("-");return v.jsx("div",{className:on(["react-flow__panel",i,...c]),style:a,ref:s,...l,children:n})});Ru.displayName="Panel";const Yv="https://reactflow.dev?utm_source=attribution";function Tj({proOptions:e,position:n="bottom-right"}){return e!=null&&e.hideAttribution?null:v.jsx(Ru,{position:n,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${Yv}`,children:v.jsx("a",{href:Yv,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const Aj=e=>{const n=[],i=[];for(const[,a]of e.nodeLookup)a.selected&&n.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&i.push(a);return{selectedNodes:n,selectedEdges:i}},qc=e=>e.id;function Cj(e,n){return qt(e.selectedNodes.map(qc),n.selectedNodes.map(qc))&&qt(e.selectedEdges.map(qc),n.selectedEdges.map(qc))}function Mj({onSelectionChange:e}){const n=zt(),{selectedNodes:i,selectedEdges:a}=ft(Aj,Cj);return ae.useEffect(()=>{const l={nodes:i,edges:a};e==null||e(l),n.getState().onSelectionChangeHandlers.forEach(s=>s(l))},[i,a,e]),null}const Oj=e=>!!e.onSelectionChangeHandlers;function Rj({onSelectionChange:e}){const n=ft(Oj);return e||n?v.jsx(Mj,{onSelectionChange:e}):null}const ww=[0,0],Dj={x:0,y:0,zoom:1},Lj=["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"],Xv=[...Lj,"rfId"],zj=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}),Kv={translateExtent:es,nodeOrigin:ww,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function Ij(e){const{setNodes:n,setEdges:i,setMinZoom:a,setMaxZoom:l,setTranslateExtent:s,setNodeExtent:c,reset:f,setDefaultNodesAndEdges:h}=ft(zj,qt),d=zt();ae.useEffect(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=Kv,f()}),[]);const p=ae.useRef(Kv);return ae.useEffect(()=>{for(const m of Xv){const y=e[m],b=p.current[m];y!==b&&(typeof e[m]>"u"||(m==="nodes"?n(y):m==="edges"?i(y):m==="minZoom"?a(y):m==="maxZoom"?l(y):m==="translateExtent"?s(y):m==="nodeExtent"?c(y):m==="ariaLabelConfig"?d.setState({ariaLabelConfig:vI(y)}):m==="fitView"?d.setState({fitViewQueued:y}):m==="fitViewOptions"?d.setState({fitViewOptions:y}):d.setState({[m]:y})))}p.current=e},Xv.map(m=>e[m])),null}function Zv(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function jj(e){var a;const[n,i]=ae.useState(e==="system"?null:e);return ae.useEffect(()=>{if(e!=="system"){i(e);return}const l=Zv(),s=()=>i(l!=null&&l.matches?"dark":"light");return s(),l==null||l.addEventListener("change",s),()=>{l==null||l.removeEventListener("change",s)}},[e]),n!==null?n:(a=Zv())!=null&&a.matches?"dark":"light"}const Qv=typeof document<"u"?document:null;function rs(e=null,n={target:Qv,actInsideInputWithModifier:!0}){const[i,a]=ae.useState(!1),l=ae.useRef(!1),s=ae.useRef(new Set([])),[c,f]=ae.useMemo(()=>{if(e!==null){const d=(Array.isArray(e)?e:[e]).filter(m=>typeof m=="string").map(m=>m.replace("+",` -`).replace(` - -`,` -+`).split(` -`)),p=d.reduce((m,y)=>m.concat(...y),[]);return[d,p]}return[[],[]]},[e]);return ae.useEffect(()=>{const h=(n==null?void 0:n.target)??Qv,d=(n==null?void 0:n.actInsideInputWithModifier)??!0;if(e!==null){const p=b=>{var N,E;if(l.current=b.ctrlKey||b.metaKey||b.shiftKey||b.altKey,(!l.current||l.current&&!d)&&nw(b))return!1;const S=Jv(b.code,f);if(s.current.add(b[S]),Wv(c,s.current,!1)){const k=((E=(N=b.composedPath)==null?void 0:N.call(b))==null?void 0:E[0])||b.target,w=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";n.preventDefault!==!1&&(l.current||!w)&&b.preventDefault(),a(!0)}},m=b=>{const _=Jv(b.code,f);Wv(c,s.current,!0)?(a(!1),s.current.clear()):s.current.delete(b[_]),b.key==="Meta"&&s.current.clear(),l.current=!1},y=()=>{s.current.clear(),a(!1)};return h==null||h.addEventListener("keydown",p),h==null||h.addEventListener("keyup",m),window.addEventListener("blur",y),window.addEventListener("contextmenu",y),()=>{h==null||h.removeEventListener("keydown",p),h==null||h.removeEventListener("keyup",m),window.removeEventListener("blur",y),window.removeEventListener("contextmenu",y)}}},[e,a]),i}function Wv(e,n,i){return e.filter(a=>i||a.length===n.size).some(a=>a.every(l=>n.has(l)))}function Jv(e,n){return n.includes(e)?"code":"key"}const Bj=()=>{const e=zt();return ae.useMemo(()=>({zoomIn:async n=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1.2,n):!1},zoomOut:async n=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1/1.2,n):!1},zoomTo:async(n,i)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(n,i):!1},getZoom:()=>e.getState().transform[2],setViewport:async(n,i)=>{const{transform:[a,l,s],panZoom:c}=e.getState();return c?(await c.setViewport({x:n.x??a,y:n.y??l,zoom:n.zoom??s},i),!0):!1},getViewport:()=>{const[n,i,a]=e.getState().transform;return{x:n,y:i,zoom:a}},setCenter:async(n,i,a)=>e.getState().setCenter(n,i,a),fitBounds:async(n,i)=>{const{width:a,height:l,minZoom:s,maxZoom:c,panZoom:f}=e.getState(),h=Nm(n,a,l,s,c,(i==null?void 0:i.padding)??.1);return f?(await f.setViewport(h,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),!0):!1},screenToFlowPosition:(n,i={})=>{const{transform:a,snapGrid:l,snapToGrid:s,domNode:c}=e.getState();if(!c)return n;const{x:f,y:h}=c.getBoundingClientRect(),d={x:n.x-f,y:n.y-h},p=i.snapGrid??l,m=i.snapToGrid??s;return ms(d,a,m,p)},flowToScreenPosition:n=>{const{transform:i,domNode:a}=e.getState();if(!a)return n;const{x:l,y:s}=a.getBoundingClientRect(),c=Il(n,i);return{x:c.x+l,y:c.y+s}}}),[])};function Sw(e,n){const i=[],a=new Map,l=[];for(const s of e)if(s.type==="add"){l.push(s);continue}else if(s.type==="remove"||s.type==="replace")a.set(s.id,[s]);else{const c=a.get(s.id);c?c.push(s):a.set(s.id,[s])}for(const s of n){const c=a.get(s.id);if(!c){i.push(s);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const f={...s};for(const h of c)Uj(h,f);i.push(f)}return l.length&&l.forEach(s=>{s.index!==void 0?i.splice(s.index,0,{...s.item}):i.push({...s.item})}),i}function Uj(e,n){switch(e.type){case"select":{n.selected=e.selected;break}case"position":{typeof e.position<"u"&&(n.position=e.position),typeof e.dragging<"u"&&(n.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(n.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(n.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(n.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(n.resizing=e.resizing);break}}}function Nw(e,n){return Sw(e,n)}function kw(e,n){return Sw(e,n)}function Ca(e,n){return{id:e,type:"select",selected:n}}function Tl(e,n=new Set,i=!1){const a=[];for(const[l,s]of e){const c=n.has(l);!(s.selected===void 0&&!c)&&s.selected!==c&&(i&&(s.selected=c),a.push(Ca(s.id,c)))}return a}function e_({items:e=[],lookup:n}){var l;const i=[],a=new Map(e.map(s=>[s.id,s]));for(const[s,c]of e.entries()){const f=n.get(c.id),h=((l=f==null?void 0:f.internals)==null?void 0:l.userNode)??f;h!==void 0&&h!==c&&i.push({id:c.id,item:c,type:"replace"}),h===void 0&&i.push({item:c,type:"add",index:s})}for(const[s]of n)a.get(s)===void 0&&i.push({id:s,type:"remove"});return i}function t_(e){return{id:e.id,type:"remove"}}const Hj=WE();function $j(e,n,i={}){return kI(e,n,{...i,onError:i.onError??Hj})}const n_=e=>fI(e),qj=e=>YE(e);function Tw(e){return ae.forwardRef(e)}const Aw=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function i_(e){const[n,i]=ae.useState(BigInt(0)),[a]=ae.useState(()=>Pj(()=>i(l=>l+BigInt(1))));return Aw(()=>{const l=a.get();l.length&&(e(l),a.reset())},[n]),a}function Pj(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:i=>{n.push(i),e()}}}const Cw=ae.createContext(null);function Fj({children:e}){const n=zt(),i=ae.useCallback(f=>{const{nodes:h=[],setNodes:d,hasDefaultNodes:p,onNodesChange:m,nodeLookup:y,fitViewQueued:b,onNodesChangeMiddlewareMap:_}=n.getState();let S=h;for(const E of f)S=typeof E=="function"?E(S):E;let N=e_({items:S,lookup:y});for(const E of _.values())N=E(N);p&&d(S),N.length>0?m==null||m(N):b&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:k,setNodes:w}=n.getState();E&&w(k)})},[]),a=i_(i),l=ae.useCallback(f=>{const{edges:h=[],setEdges:d,hasDefaultEdges:p,onEdgesChange:m,edgeLookup:y}=n.getState();let b=h;for(const _ of f)b=typeof _=="function"?_(b):_;p?d(b):m&&m(e_({items:b,lookup:y}))},[]),s=i_(l),c=ae.useMemo(()=>({nodeQueue:a,edgeQueue:s}),[]);return v.jsx(Cw.Provider,{value:c,children:e})}function Gj(){const e=ae.useContext(Cw);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const Vj=e=>!!e.panZoom;function gs(){const e=Bj(),n=zt(),i=Gj(),a=ft(Vj),l=ae.useMemo(()=>{const s=m=>n.getState().nodeLookup.get(m),c=m=>{i.nodeQueue.push(m)},f=m=>{i.edgeQueue.push(m)},h=m=>{var E,k;const{nodeLookup:y,nodeOrigin:b}=n.getState(),_=n_(m)?m:y.get(m.id),S=_.parentId?ew(_.position,_.measured,_.parentId,y,b):_.position,N={..._,position:S,width:((E=_.measured)==null?void 0:E.width)??_.width,height:((k=_.measured)==null?void 0:k.height)??_.height};return ns(N)},d=(m,y,b={replace:!1})=>{c(_=>_.map(S=>{if(S.id===m){const N=typeof y=="function"?y(S):y;return b.replace&&n_(N)?N:{...S,...N}}return S}))},p=(m,y,b={replace:!1})=>{f(_=>_.map(S=>{if(S.id===m){const N=typeof y=="function"?y(S):y;return b.replace&&qj(N)?N:{...S,...N}}return S}))};return{getNodes:()=>n.getState().nodes.map(m=>({...m})),getNode:m=>{var y;return(y=s(m))==null?void 0:y.internals.userNode},getInternalNode:s,getEdges:()=>{const{edges:m=[]}=n.getState();return m.map(y=>({...y}))},getEdge:m=>n.getState().edgeLookup.get(m),setNodes:c,setEdges:f,addNodes:m=>{const y=Array.isArray(m)?m:[m];i.nodeQueue.push(b=>[...b,...y])},addEdges:m=>{const y=Array.isArray(m)?m:[m];i.edgeQueue.push(b=>[...b,...y])},toObject:()=>{const{nodes:m=[],edges:y=[],transform:b}=n.getState(),[_,S,N]=b;return{nodes:m.map(E=>({...E})),edges:y.map(E=>({...E})),viewport:{x:_,y:S,zoom:N}}},deleteElements:async({nodes:m=[],edges:y=[]})=>{const{nodes:b,edges:_,onNodesDelete:S,onEdgesDelete:N,triggerNodeChanges:E,triggerEdgeChanges:k,onDelete:w,onBeforeDelete:O}=n.getState(),{nodes:I,edges:R}=await gI({nodesToRemove:m,edgesToRemove:y,nodes:b,edges:_,onBeforeDelete:O}),H=R.length>0,j=I.length>0;if(H){const K=R.map(t_);N==null||N(R),k(K)}if(j){const K=I.map(t_);S==null||S(I),E(K)}return(j||H)&&(w==null||w({nodes:I,edges:R})),{deletedNodes:I,deletedEdges:R}},getIntersectingNodes:(m,y=!0,b)=>{const _=Tv(m),S=_?m:h(m),N=b!==void 0;return S?(b||n.getState().nodes).filter(E=>{const k=n.getState().nodeLookup.get(E.id);if(k&&!_&&(E.id===m.id||!k.internals.positionAbsolute))return!1;const w=ns(N?E:k),O=pu(w,S);return y&&O>0||O>=w.width*w.height||O>=S.width*S.height}):[]},isNodeIntersecting:(m,y,b=!0)=>{const S=Tv(m)?m:h(m);if(!S)return!1;const N=pu(S,y);return b&&N>0||N>=y.width*y.height||N>=S.width*S.height},updateNode:d,updateNodeData:(m,y,b={replace:!1})=>{d(m,_=>{const S=typeof y=="function"?y(_):y;return b.replace?{..._,data:S}:{..._,data:{..._.data,...S}}},b)},updateEdge:p,updateEdgeData:(m,y,b={replace:!1})=>{p(m,_=>{const S=typeof y=="function"?y(_):y;return b.replace?{..._,data:S}:{..._,data:{..._.data,...S}}},b)},getNodesBounds:m=>{const{nodeLookup:y,nodeOrigin:b}=n.getState();return dI(m,{nodeLookup:y,nodeOrigin:b})},getHandleConnections:({type:m,id:y,nodeId:b})=>{var _;return Array.from(((_=n.getState().connectionLookup.get(`${b}-${m}${y?`-${y}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:m,handleId:y,nodeId:b})=>{var _;return Array.from(((_=n.getState().connectionLookup.get(`${b}${m?y?`-${m}-${y}`:`-${m}`:""}`))==null?void 0:_.values())??[])},fitView:async m=>{const y=n.getState().fitViewResolver??xI();return n.setState({fitViewQueued:!0,fitViewOptions:m,fitViewResolver:y}),i.nodeQueue.push(b=>[...b]),y.promise}}},[]);return ae.useMemo(()=>({...l,...e,viewportInitialized:a}),[a])}const r_=e=>e.selected,Yj=typeof window<"u"?window:void 0;function Xj({deleteKeyCode:e,multiSelectionKeyCode:n}){const i=zt(),{deleteElements:a}=gs(),l=rs(e,{actInsideInputWithModifier:!1}),s=rs(n,{target:Yj});ae.useEffect(()=>{if(l){const{edges:c,nodes:f}=i.getState();a({nodes:f.filter(r_),edges:c.filter(r_)}),i.setState({nodesSelectionActive:!1})}},[l]),ae.useEffect(()=>{i.setState({multiSelectionActive:s})},[s])}function Kj(e){const n=zt();ae.useEffect(()=>{const i=()=>{var l,s,c,f;if(!e.current||!(((s=(l=e.current).checkVisibility)==null?void 0:s.call(l))??!0))return!1;const a=km(e.current);(a.height===0||a.width===0)&&((f=(c=n.getState()).onError)==null||f.call(c,"004",Mi.error004())),n.setState({width:a.width||500,height:a.height||500})};if(e.current){i(),window.addEventListener("resize",i);const a=new ResizeObserver(()=>i());return a.observe(e.current),()=>{window.removeEventListener("resize",i),a&&e.current&&a.unobserve(e.current)}}},[])}const Du={position:"absolute",width:"100%",height:"100%",top:0,left:0},Zj=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function Qj({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:l=.5,panOnScrollMode:s=Da.Free,zoomOnDoubleClick:c=!0,panOnDrag:f=!0,defaultViewport:h,translateExtent:d,minZoom:p,maxZoom:m,zoomActivationKeyCode:y,preventScrolling:b=!0,children:_,noWheelClassName:S,noPanClassName:N,onViewportChange:E,isControlledViewport:k,paneClickDistance:w,selectionOnDrag:O}){const I=zt(),R=ae.useRef(null),{userSelectionActive:H,lib:j,connectionInProgress:K}=ft(Zj,qt),L=rs(y),q=ae.useRef();Kj(R);const X=ae.useCallback(Y=>{E==null||E({x:Y[0],y:Y[1],zoom:Y[2]}),k||I.setState({transform:Y})},[E,k]);return ae.useEffect(()=>{if(R.current){q.current=nj({domNode:R.current,minZoom:p,maxZoom:m,translateExtent:d,viewport:h,onDraggingChange:M=>I.setState(B=>B.paneDragging===M?B:{paneDragging:M}),onPanZoomStart:(M,B)=>{const{onViewportChangeStart:V,onMoveStart:Z}=I.getState();Z==null||Z(M,B),V==null||V(B)},onPanZoom:(M,B)=>{const{onViewportChange:V,onMove:Z}=I.getState();Z==null||Z(M,B),V==null||V(B)},onPanZoomEnd:(M,B)=>{const{onViewportChangeEnd:V,onMoveEnd:Z}=I.getState();Z==null||Z(M,B),V==null||V(B)}});const{x:Y,y:A,zoom:$}=q.current.getViewport();return I.setState({panZoom:q.current,transform:[Y,A,$],domNode:R.current.closest(".react-flow")}),()=>{var M;(M=q.current)==null||M.destroy()}}},[]),ae.useEffect(()=>{var Y;(Y=q.current)==null||Y.update({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:l,panOnScrollMode:s,zoomOnDoubleClick:c,panOnDrag:f,zoomActivationKeyPressed:L,preventScrolling:b,noPanClassName:N,userSelectionActive:H,noWheelClassName:S,lib:j,onTransformChange:X,connectionInProgress:K,selectionOnDrag:O,paneClickDistance:w})},[e,n,i,a,l,s,c,f,L,b,N,H,S,j,X,K,O,w]),v.jsx("div",{className:"react-flow__renderer",ref:R,style:Du,children:_})}const Wj=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Jj(){const{userSelectionActive:e,userSelectionRect:n}=ft(Wj,qt);return e&&n?v.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:n.width,height:n.height,transform:`translate(${n.x}px, ${n.y}px)`}}):null}const ip=(e,n)=>i=>{i.target===n.current&&(e==null||e(i))},e6=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function t6({isSelecting:e,selectionKeyPressed:n,selectionMode:i=ts.Full,panOnDrag:a,autoPanOnSelection:l,paneClickDistance:s,selectionOnDrag:c,onSelectionStart:f,onSelectionEnd:h,onPaneClick:d,onPaneContextMenu:p,onPaneScroll:m,onPaneMouseEnter:y,onPaneMouseMove:b,onPaneMouseLeave:_,children:S}){const N=ae.useRef(0),E=zt(),{userSelectionActive:k,elementsSelectable:w,dragging:O,panBy:I,autoPanSpeed:R}=ft(e6,qt),H=w&&(e||k),j=ae.useRef(null),K=ae.useRef(),L=ae.useRef(new Set),q=ae.useRef(new Set),X=ae.useRef(!1),Y=ae.useRef(!1),A=ae.useRef({x:0,y:0}),$=ae.useRef(!1),M=W=>{if(Y.current||X.current||E.getState().connection.inProgress){Y.current=!1,X.current=!1;return}d==null||d(W),E.getState().resetSelectedElements(),E.setState({nodesSelectionActive:!1})},B=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}p==null||p(W)},V=m?W=>m(W):void 0,Z=W=>{Y.current&&(W.stopPropagation(),Y.current=!1)},C=W=>{var lt,Rt;const{domNode:ee,transform:ce}=E.getState();if(K.current=ee==null?void 0:ee.getBoundingClientRect(),!K.current)return;const de=W.target===j.current;if(!de&&!!W.target.closest(".nokey")||!e||!(c&&de||n)||W.button!==0||!W.isPrimary)return;(Rt=(lt=W.target)==null?void 0:lt.setPointerCapture)==null||Rt.call(lt,W.pointerId),Y.current=!1;const{x:Se,y:De}=Ai(W.nativeEvent,K.current),He=ms({x:Se,y:De},ce);E.setState({userSelectionRect:{width:0,height:0,startX:He.x,startY:He.y,x:Se,y:De}}),de||(W.stopPropagation(),W.preventDefault())};function z(W,ee){const{userSelectionRect:ce}=E.getState();if(!ce)return;const{transform:de,nodeLookup:be,edgeLookup:Ee,connectionLookup:Se,triggerNodeChanges:De,triggerEdgeChanges:He,defaultEdgeOptions:lt}=E.getState(),Rt={x:ce.startX,y:ce.startY},{x:Yt,y:Pt}=Il(Rt,de),Xt={startX:Rt.x,startY:Rt.y,x:Wjt.id)),q.current=new Set;const ct=(lt==null?void 0:lt.selectable)??!0;for(const jt of L.current){const ue=Se.get(jt);if(ue)for(const{edgeId:ye}of ue.values()){const Me=Ee.get(ye);Me&&(Me.selectable??ct)&&q.current.add(ye)}}if(!Av(Vn,L.current)){const jt=Tl(be,L.current,!0);De(jt)}if(!Av(En,q.current)){const jt=Tl(Ee,q.current);He(jt)}E.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function G(){if(!l||!K.current)return;const[W,ee]=Sm(A.current,K.current,R);I({x:W,y:ee}).then(ce=>{if(!Y.current||!ce){N.current=requestAnimationFrame(G);return}const{x:de,y:be}=A.current;z(de,be),N.current=requestAnimationFrame(G)})}const D=()=>{cancelAnimationFrame(N.current),N.current=0,$.current=!1};ae.useEffect(()=>()=>D(),[]);const F=W=>{const{userSelectionRect:ee,transform:ce,resetSelectedElements:de}=E.getState();if(!K.current||!ee)return;const{x:be,y:Ee}=Ai(W.nativeEvent,K.current);A.current={x:be,y:Ee};const Se=Il({x:ee.startX,y:ee.startY},ce);if(!Y.current){const De=n?0:s;if(Math.hypot(be-Se.x,Ee-Se.y)<=De)return;de(),f==null||f(W)}Y.current=!0,$.current||(G(),$.current=!0),z(be,Ee)},U=W=>{var ee,ce;if(!H){W.target===j.current&&E.getState().connection.inProgress&&(X.current=!0);return}W.button===0&&((ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),!k&&W.target===j.current&&E.getState().userSelectionRect&&(M==null||M(W)),E.setState({userSelectionActive:!1,userSelectionRect:null}),Y.current&&(h==null||h(W),E.setState({nodesSelectionActive:L.current.size>0})),D())},Q=W=>{var ee,ce;(ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),D()},J=a===!0||Array.isArray(a)&&a.includes(0);return v.jsxs("div",{className:on(["react-flow__pane",{draggable:J,dragging:O,selection:e}]),onClick:H?void 0:ip(M,j),onContextMenu:ip(B,j),onWheel:ip(V,j),onPointerEnter:H?void 0:y,onPointerMove:H?F:b,onPointerUp:U,onPointerCancel:H?Q:void 0,onPointerDownCapture:H?C:void 0,onClickCapture:H?Z:void 0,onPointerLeave:_,ref:j,style:Du,children:[S,v.jsx(Jj,{})]})}function jp({id:e,store:n,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:l,unselectNodesAndEdges:s,multiSelectionActive:c,nodeLookup:f,onError:h}=n.getState(),d=f.get(e);if(!d){h==null||h("012",Mi.error012(e));return}n.setState({nodesSelectionActive:!1}),d.selected?(i||d.selected&&c)&&(s({nodes:[d],edges:[]}),requestAnimationFrame(()=>{var p;return(p=a==null?void 0:a.current)==null?void 0:p.blur()})):l([e])}function Mw({nodeRef:e,disabled:n=!1,noDragClassName:i,handleSelector:a,nodeId:l,isSelectable:s,nodeClickDistance:c}){const f=zt(),[h,d]=ae.useState(!1),p=ae.useRef();return ae.useEffect(()=>{if(!n)return p.current=qI({getStoreItems:()=>f.getState(),onNodeMouseDown:m=>{jp({id:m,store:f,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}}),()=>{var m;(m=p.current)==null||m.destroy(),p.current=void 0}},[n,f,e]),ae.useEffect(()=>{n||!e.current||!p.current||p.current.update({noDragClassName:i,handleSelector:a,domNode:e.current,isSelectable:s,nodeId:l,nodeClickDistance:c})},[i,a,n,s,e,l,c]),h}const n6=e=>n=>n.selected&&(n.draggable||e&&typeof n.draggable>"u");function Ow(){const e=zt();return ae.useCallback(i=>{const{nodeExtent:a,snapToGrid:l,snapGrid:s,nodesDraggable:c,onError:f,updateNodePositions:h,nodeLookup:d,nodeOrigin:p}=e.getState(),m=new Map,y=n6(c),b=l?s[0]:5,_=l?s[1]:5,S=i.direction.x*b*i.factor,N=i.direction.y*_*i.factor;for(const[,E]of d){if(!y(E))continue;let k={x:E.internals.positionAbsolute.x+S,y:E.internals.positionAbsolute.y+N};l&&(k=ps(k,s));const{position:w,positionAbsolute:O}=XE({nodeId:E.id,nextPosition:k,nodeLookup:d,nodeExtent:a,nodeOrigin:p,onError:f});E.position=w,E.internals.positionAbsolute=O,m.set(E.id,E)}h(m)},[])}const Rm=ae.createContext(null),i6=Rm.Provider;Rm.Consumer;const Rw=()=>ae.useContext(Rm),r6=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Dw=ae.createContext(null);function a6({children:e}){const n=ft(r6,qt);return v.jsx(Dw.Provider,{value:n,children:e})}function l6(){const e=ae.useContext(Dw);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const o6={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},s6=(e,n,i)=>a=>{const{connectionClickStartHandle:l,connectionMode:s,connection:c}=a,{fromHandle:f,toHandle:h,isValid:d}=c;if(!f&&!l)return o6;const p=(h==null?void 0:h.nodeId)===e&&(h==null?void 0:h.id)===n&&(h==null?void 0:h.type)===i;return{connectingFrom:(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===n&&(f==null?void 0:f.type)===i,connectingTo:p,clickConnecting:(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===n&&(l==null?void 0:l.type)===i,isPossibleEndHandle:s===Ll.Strict?(f==null?void 0:f.type)!==i:e!==(f==null?void 0:f.nodeId)||n!==(f==null?void 0:f.id),connectionInProcess:!!f,clickConnectionInProcess:!!l,valid:p&&d}};function c6({type:e="source",position:n=ze.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:l=!0,isConnectableEnd:s=!0,id:c,onConnect:f,children:h,className:d,onMouseDown:p,onTouchStart:m,...y},b){var $,M;const _=c||null,S=e==="target",N=zt(),E=Rw(),{connectOnClick:k,noPanClassName:w,rfId:O}=l6(),{connectingFrom:I,connectingTo:R,clickConnecting:H,isPossibleEndHandle:j,connectionInProcess:K,clickConnectionInProcess:L,valid:q}=ft(s6(E,_,e),qt);E||(M=($=N.getState()).onError)==null||M.call($,"010",Mi.error010());const X=B=>{const{defaultEdgeOptions:V,onConnect:Z,hasDefaultEdges:C}=N.getState(),z={...V,...B};if(C){const{edges:G,setEdges:D,onError:F}=N.getState();D($j(z,G,{onError:F}))}Z==null||Z(z),f==null||f(z)},Y=B=>{if(!E)return;const V=iw(B.nativeEvent);if(l&&(V&&B.button===0||!V)){const Z=N.getState();Ip.onPointerDown(B.nativeEvent,{handleDomNode:B.currentTarget,autoPanOnConnect:Z.autoPanOnConnect,connectionMode:Z.connectionMode,connectionRadius:Z.connectionRadius,domNode:Z.domNode,nodeLookup:Z.nodeLookup,lib:Z.lib,isTarget:S,handleId:_,nodeId:E,flowId:Z.rfId,panBy:Z.panBy,cancelConnection:Z.cancelConnection,onConnectStart:Z.onConnectStart,onConnectEnd:(...C)=>{var z,G;return(G=(z=N.getState()).onConnectEnd)==null?void 0:G.call(z,...C)},updateConnection:Z.updateConnection,onConnect:X,isValidConnection:i||((...C)=>{var z,G;return((G=(z=N.getState()).isValidConnection)==null?void 0:G.call(z,...C))??!0}),getTransform:()=>N.getState().transform,getFromHandle:()=>N.getState().connection.fromHandle,autoPanSpeed:Z.autoPanSpeed,dragThreshold:Z.connectionDragThreshold})}V?p==null||p(B):m==null||m(B)},A=B=>{const{onClickConnectStart:V,onClickConnectEnd:Z,connectionClickStartHandle:C,connectionMode:z,isValidConnection:G,lib:D,rfId:F,nodeLookup:U,connection:Q}=N.getState();if(!E||!C&&!l)return;if(!C){V==null||V(B.nativeEvent,{nodeId:E,handleId:_,handleType:e}),N.setState({connectionClickStartHandle:{nodeId:E,type:e,id:_}});return}const J=tw(B.target),W=i||G,{connection:ee,isValid:ce}=Ip.isValid(B.nativeEvent,{handle:{nodeId:E,id:_,type:e},connectionMode:z,fromNodeId:C.nodeId,fromHandleId:C.id||null,fromType:C.type,isValidConnection:W,flowId:F,doc:J,lib:D,nodeLookup:U});ce&&ee&&X(ee);const de=structuredClone(Q);delete de.inProgress,de.toPosition=de.toHandle?de.toHandle.position:null,Z==null||Z(B,de),N.setState({connectionClickStartHandle:null})};return v.jsx("div",{"data-handleid":_,"data-nodeid":E,"data-handlepos":n,"data-id":`${O}-${E}-${_}-${e}`,className:on(["react-flow__handle",`react-flow__handle-${n}`,"nodrag",w,d,{source:!S,target:S,connectable:a,connectablestart:l,connectableend:s,clickconnecting:H,connectingfrom:I,connectingto:R,valid:q,connectionindicator:a&&(!K||j)&&(K||L?s:l)}]),onMouseDown:Y,onTouchStart:Y,onClick:k?A:void 0,ref:b,...y,children:h})}const Bl=ae.memo(Tw(c6));function u6({data:e,isConnectable:n,sourcePosition:i=ze.Bottom}){return v.jsxs(v.Fragment,{children:[e==null?void 0:e.label,v.jsx(Bl,{type:"source",position:i,isConnectable:n})]})}function f6({data:e,isConnectable:n,targetPosition:i=ze.Top,sourcePosition:a=ze.Bottom}){return v.jsxs(v.Fragment,{children:[v.jsx(Bl,{type:"target",position:i,isConnectable:n}),e==null?void 0:e.label,v.jsx(Bl,{type:"source",position:a,isConnectable:n})]})}function d6(){return null}function h6({data:e,isConnectable:n,targetPosition:i=ze.Top}){return v.jsxs(v.Fragment,{children:[v.jsx(Bl,{type:"target",position:i,isConnectable:n}),e==null?void 0:e.label]})}const mu={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},a_={input:u6,default:f6,output:h6,group:d6};function p6(e){var n,i,a,l;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((n=e.style)==null?void 0:n.width),height:e.height??e.initialHeight??((i=e.style)==null?void 0:i.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((l=e.style)==null?void 0:l.height)}}const m6=e=>{const{width:n,height:i,x:a,y:l}=hs(e.nodeLookup,{filter:s=>!!s.selected});return{width:Ti(n)?n:null,height:Ti(i)?i:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${l}px)`}};function g6({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:i}){const a=zt(),{width:l,height:s,transformString:c,userSelectionActive:f}=ft(m6,qt),h=Ow(),d=ae.useRef(null);ae.useEffect(()=>{var b;i||(b=d.current)==null||b.focus({preventScroll:!0})},[i]);const p=!f&&l!==null&&s!==null;if(Mw({nodeRef:d,disabled:!p}),!p)return null;const m=e?b=>{const _=a.getState().nodes.filter(S=>S.selected);e(b,_)}:void 0,y=b=>{Object.prototype.hasOwnProperty.call(mu,b.key)&&(b.preventDefault(),h({direction:mu[b.key],factor:b.shiftKey?4:1}))};return v.jsx("div",{className:on(["react-flow__nodesselection","react-flow__container",n]),style:{transform:c},children:v.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:m,tabIndex:i?void 0:-1,onKeyDown:i?void 0:y,style:{width:l,height:s}})})}const l_=typeof window<"u"?window:void 0,b6=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Lw({children:e,onPaneClick:n,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:l,onPaneContextMenu:s,onPaneScroll:c,paneClickDistance:f,deleteKeyCode:h,selectionKeyCode:d,selectionOnDrag:p,selectionMode:m,onSelectionStart:y,onSelectionEnd:b,multiSelectionKeyCode:_,panActivationKeyCode:S,zoomActivationKeyCode:N,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:w,panOnScroll:O,panOnScrollSpeed:I,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:j,autoPanOnSelection:K,defaultViewport:L,translateExtent:q,minZoom:X,maxZoom:Y,preventScrolling:A,onSelectionContextMenu:$,noWheelClassName:M,noPanClassName:B,disableKeyboardA11y:V,onViewportChange:Z,isControlledViewport:C}){const{nodesSelectionActive:z,userSelectionActive:G}=ft(b6,qt),D=rs(d,{target:l_}),F=rs(S,{target:l_}),U=F||j,Q=F||O,J=p&&U!==!0,W=D||G||J;return Xj({deleteKeyCode:h,multiSelectionKeyCode:_}),v.jsx(Qj,{onPaneContextMenu:s,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:w,panOnScroll:Q,panOnScrollSpeed:I,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:!D&&U,defaultViewport:L,translateExtent:q,minZoom:X,maxZoom:Y,zoomActivationKeyCode:N,preventScrolling:A,noWheelClassName:M,noPanClassName:B,onViewportChange:Z,isControlledViewport:C,paneClickDistance:f,selectionOnDrag:J,children:v.jsxs(t6,{onSelectionStart:y,onSelectionEnd:b,onPaneClick:n,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:l,onPaneContextMenu:s,onPaneScroll:c,panOnDrag:U,autoPanOnSelection:K,isSelecting:!!W,selectionMode:m,selectionKeyPressed:D,paneClickDistance:f,selectionOnDrag:J,children:[e,z&&v.jsx(g6,{onSelectionContextMenu:$,noPanClassName:B,disableKeyboardA11y:V})]})})}Lw.displayName="FlowRenderer";const y6=ae.memo(Lw),x6=e=>n=>e?wm(n.nodeLookup,{x:0,y:0,width:n.width,height:n.height},n.transform,!0).map(i=>i.id):Array.from(n.nodeLookup.keys());function v6(e){return ft(ae.useCallback(x6(e),[e]),qt)}const _6=e=>e.updateNodeInternals;function E6(){const e=ft(_6),[n]=ae.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(l=>{const s=l.target.getAttribute("data-id");a.set(s,{id:s,nodeElement:l.target,force:!0})}),e(a)}));return ae.useEffect(()=>()=>{n==null||n.disconnect()},[n]),n}function w6({node:e,nodeType:n,hasDimensions:i,resizeObserver:a}){const l=zt(),s=ae.useRef(null),c=ae.useRef(null),f=ae.useRef(e.sourcePosition),h=ae.useRef(e.targetPosition),d=ae.useRef(n),p=i&&!!e.internals.handleBounds;return ae.useEffect(()=>{s.current&&!e.hidden&&(!p||c.current!==s.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(s.current),c.current=s.current)},[p,e.hidden]),ae.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),ae.useEffect(()=>{if(s.current){const m=d.current!==n,y=f.current!==e.sourcePosition,b=h.current!==e.targetPosition;(m||y||b)&&(d.current=n,f.current=e.sourcePosition,h.current=e.targetPosition,l.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:s.current,force:!0}]])))}},[e.id,n,e.sourcePosition,e.targetPosition]),s}function S6({id:e,onClick:n,onMouseEnter:i,onMouseMove:a,onMouseLeave:l,onContextMenu:s,onDoubleClick:c,nodesDraggable:f,elementsSelectable:h,nodesConnectable:d,nodesFocusable:p,resizeObserver:m,noDragClassName:y,noPanClassName:b,disableKeyboardA11y:_,rfId:S,nodeTypes:N,nodeClickDistance:E,onError:k}){const{node:w,internals:O,isParent:I}=ft(W=>{const ee=W.nodeLookup.get(e),ce=W.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:ce}},qt);let R=w.type||"default",H=(N==null?void 0:N[R])||a_[R];H===void 0&&(k==null||k("003",Mi.error003(R)),R="default",H=(N==null?void 0:N.default)||a_.default);const j=!!(w.draggable||f&&typeof w.draggable>"u"),K=!!(w.selectable||h&&typeof w.selectable>"u"),L=!!(w.connectable||d&&typeof w.connectable>"u"),q=!!(w.focusable||p&&typeof w.focusable>"u"),X=zt(),Y=JE(w),A=w6({node:w,nodeType:R,hasDimensions:Y,resizeObserver:m}),$=Mw({nodeRef:A,disabled:w.hidden||!j,noDragClassName:y,handleSelector:w.dragHandle,nodeId:e,isSelectable:K,nodeClickDistance:E}),M=Ow();if(w.hidden)return null;const B=Vi(w),V=p6(w),Z=K||j||n||i||a||l,C=i?W=>i(W,{...O.userNode}):void 0,z=a?W=>a(W,{...O.userNode}):void 0,G=l?W=>l(W,{...O.userNode}):void 0,D=s?W=>s(W,{...O.userNode}):void 0,F=c?W=>c(W,{...O.userNode}):void 0,U=W=>{const{selectNodesOnDrag:ee,nodeDragThreshold:ce}=X.getState();K&&(!ee||!j||ce>0)&&jp({id:e,store:X,nodeRef:A}),n&&n(W,{...O.userNode})},Q=W=>{if(!(nw(W.nativeEvent)||_)){if(PE.includes(W.key)&&K){const ee=W.key==="Escape";jp({id:e,store:X,unselect:ee,nodeRef:A})}else if(j&&w.selected&&Object.prototype.hasOwnProperty.call(mu,W.key)){W.preventDefault();const{ariaLabelConfig:ee}=X.getState();X.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~O.positionAbsolute.x,y:~~O.positionAbsolute.y})}),M({direction:mu[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Se;if(_||!((Se=A.current)!=null&&Se.matches(":focus-visible")))return;const{transform:W,width:ee,height:ce,autoPanOnNodeFocus:de,setCenter:be}=X.getState();if(!de)return;wm(new Map([[e,w]]),{x:0,y:0,width:ee,height:ce},W,!0).length>0||be(w.position.x+B.width/2,w.position.y+B.height/2,{zoom:W[2]})};return v.jsx("div",{className:on(["react-flow__node",`react-flow__node-${R}`,{[b]:j},w.className,{selected:w.selected,selectable:K,parent:I,draggable:j,dragging:$}]),ref:A,style:{zIndex:O.z,transform:`translate(${O.positionAbsolute.x}px,${O.positionAbsolute.y}px)`,pointerEvents:Z?"all":"none",visibility:Y?"visible":"hidden",...w.style,...V},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:C,onMouseMove:z,onMouseLeave:G,onContextMenu:D,onClick:U,onDoubleClick:F,onKeyDown:q?Q:void 0,tabIndex:q?0:void 0,onFocus:q?J:void 0,role:w.ariaRole??(q?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${_w}-${S}`,"aria-label":w.ariaLabel,...w.domAttributes,children:v.jsx(i6,{value:e,children:v.jsx(H,{id:e,data:w.data,type:R,positionAbsoluteX:O.positionAbsolute.x,positionAbsoluteY:O.positionAbsolute.y,selected:w.selected??!1,selectable:K,draggable:j,deletable:w.deletable??!0,isConnectable:L,sourcePosition:w.sourcePosition,targetPosition:w.targetPosition,dragging:$,dragHandle:w.dragHandle,zIndex:O.z,parentId:w.parentId,...B})})})}var N6=ae.memo(S6);const k6=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function zw(e){const{nodesConnectable:n,nodesFocusable:i,elementsSelectable:a,onError:l}=ft(k6,qt),s=v6(e.onlyRenderVisibleElements),c=E6();return v.jsx("div",{className:"react-flow__nodes",style:Du,children:s.map(f=>v.jsx(N6,{id:f,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:c,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:n,nodesFocusable:i,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:l},f))})}zw.displayName="NodeRenderer";const T6=ae.memo(zw);function A6(e){return ft(ae.useCallback(i=>{if(!e)return i.edges.map(l=>l.id);const a=[];if(i.width&&i.height)for(const l of i.edges){const s=i.nodeLookup.get(l.source),c=i.nodeLookup.get(l.target);s&&c&&wI({sourceNode:s,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(l.id)}return a},[e]),qt)}const C6=({color:e="none",strokeWidth:n=1})=>{const i={strokeWidth:n,...e&&{stroke:e}};return v.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},M6=({color:e="none",strokeWidth:n=1})=>{const i={strokeWidth:n,...e&&{stroke:e,fill:e}};return v.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},o_={[du.Arrow]:C6,[du.ArrowClosed]:M6};function O6(e){const n=zt();return ae.useMemo(()=>{var l,s;return Object.prototype.hasOwnProperty.call(o_,e)?o_[e]:((s=(l=n.getState()).onError)==null||s.call(l,"009",Mi.error009(e)),null)},[e])}const R6=({id:e,type:n,color:i,width:a=12.5,height:l=12.5,markerUnits:s="strokeWidth",strokeWidth:c,orient:f="auto-start-reverse"})=>{const h=O6(n);return h?v.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${l}`,viewBox:"-10 -10 20 20",markerUnits:s,orient:f,refX:"0",refY:"0",children:v.jsx(h,{color:i,strokeWidth:c})}):null},Iw=({defaultColor:e,rfId:n})=>{const i=ft(s=>s.edges),a=ft(s=>s.defaultEdgeOptions),l=ae.useMemo(()=>OI(i,{id:n,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[i,a,n,e]);return l.length?v.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:v.jsx("defs",{children:l.map(s=>v.jsx(R6,{id:s.id,type:s.type,color:s.color,width:s.width,height:s.height,markerUnits:s.markerUnits,strokeWidth:s.strokeWidth,orient:s.orient},s.id))})}):null};Iw.displayName="MarkerDefinitions";var D6=ae.memo(Iw);function jw({x:e,y:n,label:i,labelStyle:a,labelShowBg:l=!0,labelBgStyle:s,labelBgPadding:c=[2,4],labelBgBorderRadius:f=2,children:h,className:d,...p}){const[m,y]=ae.useState({x:1,y:0,width:0,height:0}),b=on(["react-flow__edge-textwrapper",d]),_=ae.useRef(null);return ae.useEffect(()=>{if(_.current){const S=_.current.getBBox();y({x:S.x,y:S.y,width:S.width,height:S.height})}},[i]),i?v.jsxs("g",{transform:`translate(${e-m.width/2} ${n-m.height/2})`,className:b,visibility:m.width?"visible":"hidden",...p,children:[l&&v.jsx("rect",{width:m.width+2*c[0],x:-c[0],y:-c[1],height:m.height+2*c[1],className:"react-flow__edge-textbg",style:s,rx:f,ry:f}),v.jsx("text",{className:"react-flow__edge-text",y:m.height/2,dy:"0.3em",ref:_,style:a,children:i}),h]}):null}jw.displayName="EdgeText";const L6=ae.memo(jw);function Lu({path:e,labelX:n,labelY:i,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:h,interactionWidth:d=20,...p}){return v.jsxs(v.Fragment,{children:[v.jsx("path",{...p,d:e,fill:"none",className:on(["react-flow__edge-path",p.className])}),d?v.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,a&&Ti(n)&&Ti(i)?v.jsx(L6,{x:n,y:i,label:a,labelStyle:l,labelShowBg:s,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:h}):null]})}function s_({pos:e,x1:n,y1:i,x2:a,y2:l}){return e===ze.Left||e===ze.Right?[.5*(n+a),i]:[n,.5*(i+l)]}function Bw({sourceX:e,sourceY:n,sourcePosition:i=ze.Bottom,targetX:a,targetY:l,targetPosition:s=ze.Top}){const[c,f]=s_({pos:i,x1:e,y1:n,x2:a,y2:l}),[h,d]=s_({pos:s,x1:a,y1:l,x2:e,y2:n}),[p,m,y,b]=rw({sourceX:e,sourceY:n,targetX:a,targetY:l,sourceControlX:c,sourceControlY:f,targetControlX:h,targetControlY:d});return[`M${e},${n} C${c},${f} ${h},${d} ${a},${l}`,p,m,y,b]}function Uw(e){return ae.memo(({id:n,sourceX:i,sourceY:a,targetX:l,targetY:s,sourcePosition:c,targetPosition:f,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:b,style:_,markerEnd:S,markerStart:N,interactionWidth:E})=>{const[k,w,O]=Bw({sourceX:i,sourceY:a,sourcePosition:c,targetX:l,targetY:s,targetPosition:f}),I=e.isInternal?void 0:n;return v.jsx(Lu,{id:I,path:k,labelX:w,labelY:O,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:b,style:_,markerEnd:S,markerStart:N,interactionWidth:E})})}const z6=Uw({isInternal:!1}),Hw=Uw({isInternal:!0});z6.displayName="SimpleBezierEdge";Hw.displayName="SimpleBezierEdgeInternal";function $w(e){return ae.memo(({id:n,sourceX:i,sourceY:a,targetX:l,targetY:s,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:y,sourcePosition:b=ze.Bottom,targetPosition:_=ze.Top,markerEnd:S,markerStart:N,pathOptions:E,interactionWidth:k})=>{const[w,O,I]=Dp({sourceX:i,sourceY:a,sourcePosition:b,targetX:l,targetY:s,targetPosition:_,borderRadius:E==null?void 0:E.borderRadius,offset:E==null?void 0:E.offset,stepPosition:E==null?void 0:E.stepPosition}),R=e.isInternal?void 0:n;return v.jsx(Lu,{id:R,path:w,labelX:O,labelY:I,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:S,markerStart:N,interactionWidth:k})})}const qw=$w({isInternal:!1}),Pw=$w({isInternal:!0});qw.displayName="SmoothStepEdge";Pw.displayName="SmoothStepEdgeInternal";function Fw(e){return ae.memo(({id:n,...i})=>{var l;const a=e.isInternal?void 0:n;return v.jsx(qw,{...i,id:a,pathOptions:ae.useMemo(()=>{var s;return{borderRadius:0,offset:(s=i.pathOptions)==null?void 0:s.offset}},[(l=i.pathOptions)==null?void 0:l.offset])})})}const I6=Fw({isInternal:!1}),Gw=Fw({isInternal:!0});I6.displayName="StepEdge";Gw.displayName="StepEdgeInternal";function Vw(e){return ae.memo(({id:n,sourceX:i,sourceY:a,targetX:l,targetY:s,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:b,markerStart:_,interactionWidth:S})=>{const[N,E,k]=ow({sourceX:i,sourceY:a,targetX:l,targetY:s}),w=e.isInternal?void 0:n;return v.jsx(Lu,{id:w,path:N,labelX:E,labelY:k,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:b,markerStart:_,interactionWidth:S})})}const j6=Vw({isInternal:!1}),Yw=Vw({isInternal:!0});j6.displayName="StraightEdge";Yw.displayName="StraightEdgeInternal";function Xw(e){return ae.memo(({id:n,sourceX:i,sourceY:a,targetX:l,targetY:s,sourcePosition:c=ze.Bottom,targetPosition:f=ze.Top,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:b,style:_,markerEnd:S,markerStart:N,pathOptions:E,interactionWidth:k})=>{const[w,O,I]=aw({sourceX:i,sourceY:a,sourcePosition:c,targetX:l,targetY:s,targetPosition:f,curvature:E==null?void 0:E.curvature}),R=e.isInternal?void 0:n;return v.jsx(Lu,{id:R,path:w,labelX:O,labelY:I,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:b,style:_,markerEnd:S,markerStart:N,interactionWidth:k})})}const B6=Xw({isInternal:!1}),Kw=Xw({isInternal:!0});B6.displayName="BezierEdge";Kw.displayName="BezierEdgeInternal";const c_={default:Kw,straight:Yw,step:Gw,smoothstep:Pw,simplebezier:Hw},u_={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},U6=(e,n,i)=>i===ze.Left?e-n:i===ze.Right?e+n:e,H6=(e,n,i)=>i===ze.Top?e-n:i===ze.Bottom?e+n:e,f_="react-flow__edgeupdater";function d_({position:e,centerX:n,centerY:i,radius:a=10,onMouseDown:l,onMouseEnter:s,onMouseOut:c,type:f}){return v.jsx("circle",{onMouseDown:l,onMouseEnter:s,onMouseOut:c,className:on([f_,`${f_}-${f}`]),cx:U6(n,a,e),cy:H6(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function $6({isReconnectable:e,reconnectRadius:n,edge:i,sourceX:a,sourceY:l,targetX:s,targetY:c,sourcePosition:f,targetPosition:h,onReconnect:d,onReconnectStart:p,onReconnectEnd:m,setReconnecting:y,setUpdateHover:b}){const _=zt(),S=(O,I)=>{if(O.button!==0)return;const{autoPanOnConnect:R,domNode:H,connectionMode:j,connectionRadius:K,lib:L,onConnectStart:q,cancelConnection:X,nodeLookup:Y,rfId:A,panBy:$,updateConnection:M}=_.getState(),B=I.type==="target",V=(z,G)=>{y(!1),m==null||m(z,i,I.type,G)},Z=z=>d==null?void 0:d(i,z),C=(z,G)=>{y(!0),p==null||p(O,i,I.type),q==null||q(z,G)};Ip.onPointerDown(O.nativeEvent,{autoPanOnConnect:R,connectionMode:j,connectionRadius:K,domNode:H,handleId:I.id,nodeId:I.nodeId,nodeLookup:Y,isTarget:B,edgeUpdaterType:I.type,lib:L,flowId:A,cancelConnection:X,panBy:$,isValidConnection:(...z)=>{var G,D;return((D=(G=_.getState()).isValidConnection)==null?void 0:D.call(G,...z))??!0},onConnect:Z,onConnectStart:C,onConnectEnd:(...z)=>{var G,D;return(D=(G=_.getState()).onConnectEnd)==null?void 0:D.call(G,...z)},onReconnectEnd:V,updateConnection:M,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:O.currentTarget})},N=O=>S(O,{nodeId:i.target,id:i.targetHandle??null,type:"target"}),E=O=>S(O,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),k=()=>b(!0),w=()=>b(!1);return v.jsxs(v.Fragment,{children:[(e===!0||e==="source")&&v.jsx(d_,{position:f,centerX:a,centerY:l,radius:n,onMouseDown:N,onMouseEnter:k,onMouseOut:w,type:"source"}),(e===!0||e==="target")&&v.jsx(d_,{position:h,centerX:s,centerY:c,radius:n,onMouseDown:E,onMouseEnter:k,onMouseOut:w,type:"target"})]})}function q6({id:e,edgesFocusable:n,edgesReconnectable:i,elementsSelectable:a,onClick:l,onDoubleClick:s,onContextMenu:c,onMouseEnter:f,onMouseMove:h,onMouseLeave:d,reconnectRadius:p,onReconnect:m,onReconnectStart:y,onReconnectEnd:b,rfId:_,edgeTypes:S,noPanClassName:N,onError:E,disableKeyboardA11y:k}){let w=ft(be=>be.edgeLookup.get(e));const O=ft(be=>be.defaultEdgeOptions);w=O?{...O,...w}:w;let I=w.type||"default",R=(S==null?void 0:S[I])||c_[I];R===void 0&&(E==null||E("011",Mi.error011(I)),I="default",R=(S==null?void 0:S.default)||c_.default);const H=!!(w.focusable||n&&typeof w.focusable>"u"),j=typeof m<"u"&&(w.reconnectable||i&&typeof w.reconnectable>"u"),K=!!(w.selectable||a&&typeof w.selectable>"u"),L=ae.useRef(null),[q,X]=ae.useState(!1),[Y,A]=ae.useState(!1),$=zt(),{zIndex:M=w.zIndex,sourceX:B,sourceY:V,targetX:Z,targetY:C,sourcePosition:z,targetPosition:G}=ft(ae.useCallback(be=>{const Ee=be.nodeLookup.get(w.source),Se=be.nodeLookup.get(w.target);if(!Ee||!Se)return u_;const De=MI({id:e,sourceNode:Ee,targetNode:Se,sourceHandle:w.sourceHandle||null,targetHandle:w.targetHandle||null,connectionMode:be.connectionMode,onError:E}),He=EI({selected:w.selected,zIndex:w.zIndex,sourceNode:Ee,targetNode:Se,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...De||u_,zIndex:He}},[w.source,w.target,w.sourceHandle,w.targetHandle,w.selected,w.zIndex]),qt),D=ae.useMemo(()=>w.markerStart?`url('#${Lp(w.markerStart,_)}')`:void 0,[w.markerStart,_]),F=ae.useMemo(()=>w.markerEnd?`url('#${Lp(w.markerEnd,_)}')`:void 0,[w.markerEnd,_]);if(w.hidden||B===null||V===null||Z===null||C===null)return null;const U=be=>{var He;const{addSelectedEdges:Ee,unselectNodesAndEdges:Se,multiSelectionActive:De}=$.getState();K&&($.setState({nodesSelectionActive:!1}),w.selected&&De?(Se({nodes:[],edges:[w]}),(He=L.current)==null||He.blur()):Ee([e])),l&&l(be,w)},Q=s?be=>{s(be,{...w})}:void 0,J=c?be=>{c(be,{...w})}:void 0,W=f?be=>{f(be,{...w})}:void 0,ee=h?be=>{h(be,{...w})}:void 0,ce=d?be=>{d(be,{...w})}:void 0,de=be=>{var Ee;if(!k&&PE.includes(be.key)&&K){const{unselectNodesAndEdges:Se,addSelectedEdges:De}=$.getState();be.key==="Escape"?((Ee=L.current)==null||Ee.blur(),Se({edges:[w]})):De([e])}};return v.jsx("svg",{style:{zIndex:M},children:v.jsxs("g",{className:on(["react-flow__edge",`react-flow__edge-${I}`,w.className,N,{selected:w.selected,animated:w.animated,inactive:!K&&!l,updating:q,selectable:K}]),onClick:U,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:ee,onMouseLeave:ce,onKeyDown:H?de:void 0,tabIndex:H?0:void 0,role:w.ariaRole??(H?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":w.ariaLabel===null?void 0:w.ariaLabel||`Edge from ${w.source} to ${w.target}`,"aria-describedby":H?`${Ew}-${_}`:void 0,ref:L,...w.domAttributes,children:[!Y&&v.jsx(R,{id:e,source:w.source,target:w.target,type:w.type,selected:w.selected,animated:w.animated,selectable:K,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,sourceX:B,sourceY:V,targetX:Z,targetY:C,sourcePosition:z,targetPosition:G,data:w.data,style:w.style,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerStart:D,markerEnd:F,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth}),j&&v.jsx($6,{edge:w,isReconnectable:j,reconnectRadius:p,onReconnect:m,onReconnectStart:y,onReconnectEnd:b,sourceX:B,sourceY:V,targetX:Z,targetY:C,sourcePosition:z,targetPosition:G,setUpdateHover:X,setReconnecting:A})]})})}var P6=ae.memo(q6);const F6=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Zw({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:i,edgeTypes:a,noPanClassName:l,onReconnect:s,onEdgeContextMenu:c,onEdgeMouseEnter:f,onEdgeMouseMove:h,onEdgeMouseLeave:d,onEdgeClick:p,reconnectRadius:m,onEdgeDoubleClick:y,onReconnectStart:b,onReconnectEnd:_,disableKeyboardA11y:S}){const{edgesFocusable:N,edgesReconnectable:E,elementsSelectable:k,onError:w}=ft(F6,qt),O=A6(n);return v.jsxs("div",{className:"react-flow__edges",children:[v.jsx(D6,{defaultColor:e,rfId:i}),O.map(I=>v.jsx(P6,{id:I,edgesFocusable:N,edgesReconnectable:E,elementsSelectable:k,noPanClassName:l,onReconnect:s,onContextMenu:c,onMouseEnter:f,onMouseMove:h,onMouseLeave:d,onClick:p,reconnectRadius:m,onDoubleClick:y,onReconnectStart:b,onReconnectEnd:_,rfId:i,onError:w,edgeTypes:a,disableKeyboardA11y:S},I))]})}Zw.displayName="EdgeRenderer";const G6=ae.memo(Zw),h_=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function V6({children:e}){const n=zt(),i=ae.useRef(null),[a]=ae.useState(()=>n.getState().transform);return Aw(()=>{let l=null;const s=()=>{const c=n.getState().transform;l&&c[0]===l[0]&&c[1]===l[1]&&c[2]===l[2]||(l=c,i.current&&(i.current.style.transform=h_(c)))};return s(),n.subscribe(s)},[n]),v.jsx("div",{ref:i,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:h_(a)},children:e})}function Y6(e){const n=gs(),i=ae.useRef(!1);ae.useEffect(()=>{!i.current&&n.viewportInitialized&&e&&(setTimeout(()=>e(n),1),i.current=!0)},[e,n.viewportInitialized])}const X6=e=>{var n;return(n=e.panZoom)==null?void 0:n.syncViewport};function K6(e){const n=ft(X6),i=zt();return ae.useEffect(()=>{e&&(n==null||n(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,n]),null}function Z6(e){return e.connection.inProgress?{...e.connection,to:ms(e.connection.to,e.transform)}:{...e.connection}}function Q6(e){return Z6}function W6(e){const n=Q6();return ft(n,qt)}const J6=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function eB({containerStyle:e,style:n,type:i,component:a}){const{nodesConnectable:l,width:s,height:c,isValid:f,inProgress:h}=ft(J6,qt);return!(s&&l&&h)?null:v.jsx("svg",{style:e,width:s,height:c,className:"react-flow__connectionline react-flow__container",children:v.jsx("g",{className:on(["react-flow__connection",VE(f)]),children:v.jsx(Qw,{style:n,type:i,CustomComponent:a,isValid:f})})})}const Qw=({style:e,type:n=na.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:l,from:s,fromNode:c,fromHandle:f,fromPosition:h,to:d,toNode:p,toHandle:m,toPosition:y,pointer:b}=W6();if(!l)return;if(i)return v.jsx(i,{connectionLineType:n,connectionLineStyle:e,fromNode:c,fromHandle:f,fromX:s.x,fromY:s.y,toX:d.x,toY:d.y,fromPosition:h,toPosition:y,connectionStatus:VE(a),toNode:p,toHandle:m,pointer:b});let _="";const S={sourceX:s.x,sourceY:s.y,sourcePosition:h,targetX:d.x,targetY:d.y,targetPosition:y};switch(n){case na.Bezier:[_]=aw(S);break;case na.SimpleBezier:[_]=Bw(S);break;case na.Step:[_]=Dp({...S,borderRadius:0});break;case na.SmoothStep:[_]=Dp(S);break;default:[_]=ow(S)}return v.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};Qw.displayName="ConnectionLine";const tB={};function p_(e=tB){ae.useRef(e),zt(),ae.useEffect(()=>{},[e])}function nB(){zt(),ae.useRef(!1),ae.useEffect(()=>{},[])}function Ww({nodeTypes:e,edgeTypes:n,onInit:i,onNodeClick:a,onEdgeClick:l,onNodeDoubleClick:s,onEdgeDoubleClick:c,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:d,onNodeContextMenu:p,onSelectionContextMenu:m,onSelectionStart:y,onSelectionEnd:b,connectionLineType:_,connectionLineStyle:S,connectionLineComponent:N,connectionLineContainerStyle:E,selectionKeyCode:k,selectionOnDrag:w,selectionMode:O,multiSelectionKeyCode:I,panActivationKeyCode:R,zoomActivationKeyCode:H,deleteKeyCode:j,onlyRenderVisibleElements:K,elementsSelectable:L,defaultViewport:q,translateExtent:X,minZoom:Y,maxZoom:A,preventScrolling:$,defaultMarkerColor:M,zoomOnScroll:B,zoomOnPinch:V,panOnScroll:Z,panOnScrollSpeed:C,panOnScrollMode:z,zoomOnDoubleClick:G,panOnDrag:D,autoPanOnSelection:F,onPaneClick:U,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:ee,onPaneContextMenu:ce,paneClickDistance:de,nodeClickDistance:be,onEdgeContextMenu:Ee,onEdgeMouseEnter:Se,onEdgeMouseMove:De,onEdgeMouseLeave:He,reconnectRadius:lt,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:En,disableKeyboardA11y:ct,nodeExtent:jt,rfId:ue,viewport:ye,onViewportChange:Me,nodesDraggable:Pe}){return p_(e),p_(n),nB(),Y6(i),K6(ye),v.jsx(y6,{onPaneClick:U,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:ce,onPaneScroll:ee,paneClickDistance:de,deleteKeyCode:j,selectionKeyCode:k,selectionOnDrag:w,selectionMode:O,onSelectionStart:y,onSelectionEnd:b,multiSelectionKeyCode:I,panActivationKeyCode:R,zoomActivationKeyCode:H,elementsSelectable:L,zoomOnScroll:B,zoomOnPinch:V,zoomOnDoubleClick:G,panOnScroll:Z,panOnScrollSpeed:C,panOnScrollMode:z,panOnDrag:D,autoPanOnSelection:F,defaultViewport:q,translateExtent:X,minZoom:Y,maxZoom:A,onSelectionContextMenu:m,preventScrolling:$,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:En,disableKeyboardA11y:ct,onViewportChange:Me,isControlledViewport:!!ye,children:v.jsxs(V6,{children:[v.jsx(G6,{edgeTypes:n,onEdgeClick:l,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:K,onEdgeContextMenu:Ee,onEdgeMouseEnter:Se,onEdgeMouseMove:De,onEdgeMouseLeave:He,reconnectRadius:lt,defaultMarkerColor:M,noPanClassName:En,disableKeyboardA11y:ct,rfId:ue}),v.jsx(eB,{style:S,type:_,component:N,containerStyle:E}),v.jsx("div",{className:"react-flow__edgelabel-renderer"}),v.jsx(T6,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:s,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:d,onNodeContextMenu:p,nodeClickDistance:be,onlyRenderVisibleElements:K,noPanClassName:En,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:jt,rfId:ue,nodesDraggable:Pe}),v.jsx("div",{className:"react-flow__viewport-portal"})]})})}Ww.displayName="GraphView";const iB=ae.memo(Ww),rB=WE(),m_=({nodes:e,edges:n,defaultNodes:i,defaultEdges:a,width:l,height:s,fitView:c,fitViewOptions:f,minZoom:h=.5,maxZoom:d=2,nodeOrigin:p,nodeExtent:m,zIndexMode:y="basic"}={})=>{const b=new Map,_=new Map,S=new Map,N=new Map,E=a??n??[],k=i??e??[],w=p??[0,0],O=m??es;uw(S,N,E);const{nodesInitialized:I}=zp(k,b,_,{nodeOrigin:w,nodeExtent:O,zIndexMode:y});let R=[0,0,1];if(c&&l&&s){const H=hs(b,{filter:q=>!!((q.width||q.initialWidth)&&(q.height||q.initialHeight))}),{x:j,y:K,zoom:L}=Nm(H,l,s,h,d,(f==null?void 0:f.padding)??.1);R=[j,K,L]}return{rfId:"1",width:l??0,height:s??0,transform:R,nodes:k,nodesInitialized:I,nodeLookup:b,parentLookup:_,edges:E,edgeLookup:N,connectionLookup:S,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:h,maxZoom:d,translateExtent:es,nodeExtent:O,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ll.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:w,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:c??!1,fitViewOptions:f,fitViewResolver:null,connection:{...GE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:rB,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:FE,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},aB=({nodes:e,edges:n,defaultNodes:i,defaultEdges:a,width:l,height:s,fitView:c,fitViewOptions:f,minZoom:h,maxZoom:d,nodeOrigin:p,nodeExtent:m,zIndexMode:y})=>xj((b,_)=>{async function S(){const{nodeLookup:N,panZoom:E,fitViewOptions:k,fitViewResolver:w,width:O,height:I,minZoom:R,maxZoom:H}=_();E&&(await mI({nodes:N,width:O,height:I,panZoom:E,minZoom:R,maxZoom:H},k),w==null||w.resolve(!0),b({fitViewResolver:null}))}return{...m_({nodes:e,edges:n,width:l,height:s,fitView:c,fitViewOptions:f,minZoom:h,maxZoom:d,nodeOrigin:p,nodeExtent:m,defaultNodes:i,defaultEdges:a,zIndexMode:y}),setNodes:N=>{const{nodeLookup:E,parentLookup:k,nodeOrigin:w,elevateNodesOnSelect:O,fitViewQueued:I,zIndexMode:R,nodesSelectionActive:H}=_(),{nodesInitialized:j,hasSelectedNodes:K}=zp(N,E,k,{nodeOrigin:w,nodeExtent:m,elevateNodesOnSelect:O,checkEquality:!0,zIndexMode:R}),L=H&&K;I&&j?(S(),b({nodes:N,nodesInitialized:j,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:L})):b({nodes:N,nodesInitialized:j,nodesSelectionActive:L})},setEdges:N=>{const{connectionLookup:E,edgeLookup:k}=_();uw(E,k,N),b({edges:N})},setDefaultNodesAndEdges:(N,E)=>{if(N){const{setNodes:k}=_();k(N),b({hasDefaultNodes:!0})}if(E){const{setEdges:k}=_();k(E),b({hasDefaultEdges:!0})}},updateNodeInternals:N=>{const{triggerNodeChanges:E,nodeLookup:k,parentLookup:w,domNode:O,nodeOrigin:I,nodeExtent:R,debug:H,fitViewQueued:j,zIndexMode:K}=_(),{changes:L,updatedInternals:q}=BI(N,k,w,O,I,R,K);q&&(LI(k,w,{nodeOrigin:I,nodeExtent:R,zIndexMode:K}),j?(S(),b({fitViewQueued:!1,fitViewOptions:void 0})):b({}),(L==null?void 0:L.length)>0&&(H&&console.log("React Flow: trigger node changes",L),E==null||E(L)))},updateNodePositions:(N,E=!1)=>{const k=[];let w=[];const{nodeLookup:O,triggerNodeChanges:I,connection:R,updateConnection:H,onNodesChangeMiddlewareMap:j}=_();for(const[K,L]of N){const q=O.get(K),X=!!(q!=null&&q.expandParent&&(q!=null&&q.parentId)&&(L!=null&&L.position)),Y={id:K,type:"position",position:X?{x:Math.max(0,L.position.x),y:Math.max(0,L.position.y)}:L.position,dragging:E};if(q&&R.inProgress&&R.fromNode.id===q.id){const A=Ua(q,R.fromHandle,ze.Left,!0);H({...R,from:A})}X&&q.parentId&&k.push({id:K,parentId:q.parentId,rect:{...L.internals.positionAbsolute,width:L.measured.width??0,height:L.measured.height??0}}),w.push(Y)}if(k.length>0){const{parentLookup:K,nodeOrigin:L}=_(),q=Om(k,O,K,L);w.push(...q)}for(const K of j.values())w=K(w);I(w)},triggerNodeChanges:N=>{const{onNodesChange:E,setNodes:k,nodes:w,hasDefaultNodes:O,debug:I}=_();if(N!=null&&N.length){if(O){const R=Nw(N,w);k(R)}I&&console.log("React Flow: trigger node changes",N),E==null||E(N)}},triggerEdgeChanges:N=>{const{onEdgesChange:E,setEdges:k,edges:w,hasDefaultEdges:O,debug:I}=_();if(N!=null&&N.length){if(O){const R=kw(N,w);k(R)}I&&console.log("React Flow: trigger edge changes",N),E==null||E(N)}},addSelectedNodes:N=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:w,triggerNodeChanges:O,triggerEdgeChanges:I}=_();if(E){const R=N.map(H=>Ca(H,!0));O(R);return}O(Tl(w,new Set([...N]),!0)),I(Tl(k))},addSelectedEdges:N=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:w,triggerNodeChanges:O,triggerEdgeChanges:I}=_();if(E){const R=N.map(H=>Ca(H,!0));I(R);return}I(Tl(k,new Set([...N]))),O(Tl(w,new Set,!0))},unselectNodesAndEdges:({nodes:N,edges:E}={})=>{const{edges:k,nodes:w,nodeLookup:O,triggerNodeChanges:I,triggerEdgeChanges:R}=_(),H=N||w,j=E||k,K=[];for(const q of H){if(!q.selected)continue;const X=O.get(q.id);X&&(X.selected=!1),K.push(Ca(q.id,!1))}const L=[];for(const q of j)q.selected&&L.push(Ca(q.id,!1));I(K),R(L)},setMinZoom:N=>{const{panZoom:E,maxZoom:k}=_();E==null||E.setScaleExtent([N,k]),b({minZoom:N})},setMaxZoom:N=>{const{panZoom:E,minZoom:k}=_();E==null||E.setScaleExtent([k,N]),b({maxZoom:N})},setTranslateExtent:N=>{var E;(E=_().panZoom)==null||E.setTranslateExtent(N),b({translateExtent:N})},resetSelectedElements:()=>{const{edges:N,nodes:E,triggerNodeChanges:k,triggerEdgeChanges:w,elementsSelectable:O}=_();if(!O)return;const I=E.reduce((H,j)=>j.selected?[...H,Ca(j.id,!1)]:H,[]),R=N.reduce((H,j)=>j.selected?[...H,Ca(j.id,!1)]:H,[]);k(I),w(R)},setNodeExtent:N=>{const{nodes:E,nodeLookup:k,parentLookup:w,nodeOrigin:O,elevateNodesOnSelect:I,nodeExtent:R,zIndexMode:H}=_();N[0][0]===R[0][0]&&N[0][1]===R[0][1]&&N[1][0]===R[1][0]&&N[1][1]===R[1][1]||(zp(E,k,w,{nodeOrigin:O,nodeExtent:N,elevateNodesOnSelect:I,checkEquality:!1,zIndexMode:H}),b({nodeExtent:N}))},panBy:N=>{const{transform:E,width:k,height:w,panZoom:O,translateExtent:I}=_();return UI({delta:N,panZoom:O,transform:E,translateExtent:I,width:k,height:w})},setCenter:async(N,E,k)=>{const{width:w,height:O,maxZoom:I,panZoom:R}=_();if(!R)return!1;const H=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:I;return await R.setViewport({x:w/2-N*H,y:O/2-E*H,zoom:H},{duration:k==null?void 0:k.duration,ease:k==null?void 0:k.ease,interpolate:k==null?void 0:k.interpolate}),!0},cancelConnection:()=>{b({connection:{...GE}})},updateConnection:N=>{b({connection:N})},reset:()=>b({...m_()})}},Object.is);function lB({initialNodes:e,initialEdges:n,defaultNodes:i,defaultEdges:a,initialWidth:l,initialHeight:s,initialMinZoom:c,initialMaxZoom:f,initialFitViewOptions:h,fitView:d,nodeOrigin:p,nodeExtent:m,zIndexMode:y,children:b}){const[_]=ae.useState(()=>aB({nodes:e,edges:n,defaultNodes:i,defaultEdges:a,width:l,height:s,fitView:d,minZoom:c,maxZoom:f,fitViewOptions:h,nodeOrigin:p,nodeExtent:m,zIndexMode:y}));return v.jsx(vj,{value:_,children:v.jsx(Fj,{children:v.jsx(a6,{children:b})})})}function oB({children:e,nodes:n,edges:i,defaultNodes:a,defaultEdges:l,width:s,height:c,fitView:f,fitViewOptions:h,minZoom:d,maxZoom:p,nodeOrigin:m,nodeExtent:y,zIndexMode:b}){return ae.useContext(Ou)?v.jsx(v.Fragment,{children:e}):v.jsx(lB,{initialNodes:n,initialEdges:i,defaultNodes:a,defaultEdges:l,initialWidth:s,initialHeight:c,fitView:f,initialFitViewOptions:h,initialMinZoom:d,initialMaxZoom:p,nodeOrigin:m,nodeExtent:y,zIndexMode:b,children:e})}const sB={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function cB({nodes:e,edges:n,defaultNodes:i,defaultEdges:a,className:l,nodeTypes:s,edgeTypes:c,onNodeClick:f,onEdgeClick:h,onInit:d,onMove:p,onMoveStart:m,onMoveEnd:y,onConnect:b,onConnectStart:_,onConnectEnd:S,onClickConnectStart:N,onClickConnectEnd:E,onNodeMouseEnter:k,onNodeMouseMove:w,onNodeMouseLeave:O,onNodeContextMenu:I,onNodeDoubleClick:R,onNodeDragStart:H,onNodeDrag:j,onNodeDragStop:K,onNodesDelete:L,onEdgesDelete:q,onDelete:X,onSelectionChange:Y,onSelectionDragStart:A,onSelectionDrag:$,onSelectionDragStop:M,onSelectionContextMenu:B,onSelectionStart:V,onSelectionEnd:Z,onBeforeDelete:C,connectionMode:z,connectionLineType:G=na.Bezier,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:U,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:ee=ts.Full,panActivationKeyCode:ce="Space",multiSelectionKeyCode:de=is()?"Meta":"Control",zoomActivationKeyCode:be=is()?"Meta":"Control",snapToGrid:Ee,snapGrid:Se,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:He,nodesDraggable:lt,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=ww,edgesFocusable:Vn,edgesReconnectable:En,elementsSelectable:ct=!0,defaultViewport:jt=Dj,minZoom:ue=.5,maxZoom:ye=2,translateExtent:Me=es,preventScrolling:Pe=!0,nodeExtent:Ze,defaultMarkerColor:sn="#b1b1b7",zoomOnScroll:wn=!0,zoomOnPinch:Kt=!0,panOnScroll:Ct=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=Da.Free,zoomOnDoubleClick:zn=!0,panOnDrag:cn=!0,onPaneClick:yr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:pe=1,nodeClickDistance:we=0,children:qe,onReconnect:Nt,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Ne,onEdgeDoubleClick:Be,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:gi,reconnectRadius:xr=10,onNodesChange:vr,onEdgesChange:ai,noDragClassName:Ut="nodrag",noWheelClassName:pn="nowheel",noPanClassName:bi="nopan",fitView:_r,fitViewOptions:la,connectOnClick:Er,attributionPosition:qa,proOptions:Yi,defaultEdgeOptions:oa,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:yi=!1,disableKeyboardA11y:xi=!1,autoPanOnConnect:Di,autoPanOnNodeDrag:Ft,autoPanOnSelection:Pa=!0,autoPanSpeed:Xi,connectionRadius:vi,isValidConnection:xe,onError:Le,style:Qe,id:dt,nodeDragThreshold:Ht,connectionDragThreshold:mn,viewport:Mn,onViewportChange:Sn,width:_t,height:On,colorMode:Fa="light",debug:wr,onScroll:Li,ariaLabelConfig:Sr,zIndexMode:Ga="basic",...Nn},sa){const _i=dt||"1",Nr=jj(Fa),un=ae.useCallback(ca=>{ca.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Li==null||Li(ca)},[Li]);return v.jsx("div",{"data-testid":"rf__wrapper",...Nn,onScroll:un,style:{...Qe,...sB},ref:sa,className:on(["react-flow",l,Nr]),id:dt,role:"application",children:v.jsxs(oB,{nodes:e,edges:n,width:_t,height:On,fitView:_r,fitViewOptions:la,minZoom:ue,maxZoom:ye,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:Ga,children:[v.jsx(Ij,{nodes:e,edges:n,defaultNodes:i,defaultEdges:a,onConnect:b,onConnectStart:_,onConnectEnd:S,onClickConnectStart:N,onClickConnectEnd:E,nodesDraggable:lt,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,edgesFocusable:Vn,edgesReconnectable:En,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:yi,minZoom:ue,maxZoom:ye,nodeExtent:Ze,onNodesChange:vr,onEdgesChange:ai,snapToGrid:Ee,snapGrid:Se,connectionMode:z,translateExtent:Me,connectOnClick:Er,defaultEdgeOptions:oa,fitView:_r,fitViewOptions:la,onNodesDelete:L,onEdgesDelete:q,onDelete:X,onNodeDragStart:H,onNodeDrag:j,onNodeDragStop:K,onSelectionDrag:$,onSelectionDragStart:A,onSelectionDragStop:M,onMove:p,onMoveStart:m,onMoveEnd:y,noPanClassName:bi,nodeOrigin:Xt,rfId:_i,autoPanOnConnect:Di,autoPanOnNodeDrag:Ft,autoPanSpeed:Xi,onError:Le,connectionRadius:vi,isValidConnection:xe,selectNodesOnDrag:He,nodeDragThreshold:Ht,connectionDragThreshold:mn,onBeforeDelete:C,debug:wr,ariaLabelConfig:Sr,zIndexMode:Ga}),v.jsx(iB,{onInit:d,onNodeClick:f,onEdgeClick:h,onNodeMouseEnter:k,onNodeMouseMove:w,onNodeMouseLeave:O,onNodeContextMenu:I,onNodeDoubleClick:R,nodeTypes:s,edgeTypes:c,connectionLineType:G,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:U,selectionKeyCode:J,selectionOnDrag:W,selectionMode:ee,deleteKeyCode:Q,multiSelectionKeyCode:de,panActivationKeyCode:ce,zoomActivationKeyCode:be,onlyRenderVisibleElements:De,defaultViewport:jt,translateExtent:Me,minZoom:ue,maxZoom:ye,preventScrolling:Pe,zoomOnScroll:wn,zoomOnPinch:Kt,zoomOnDoubleClick:zn,panOnScroll:Ct,panOnScrollSpeed:Wt,panOnScrollMode:ut,panOnDrag:cn,autoPanOnSelection:Pa,onPaneClick:yr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:pe,nodeClickDistance:we,onSelectionContextMenu:B,onSelectionStart:V,onSelectionEnd:Z,onReconnect:Nt,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Ne,onEdgeDoubleClick:Be,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:gi,reconnectRadius:xr,defaultMarkerColor:sn,noDragClassName:Ut,noWheelClassName:pn,noPanClassName:bi,rfId:_i,disableKeyboardA11y:xi,nodeExtent:Ze,viewport:Mn,onViewportChange:Sn,nodesDraggable:lt}),v.jsx(Rj,{onSelectionChange:Y}),qe,v.jsx(Tj,{proOptions:Yi,position:qa}),v.jsx(kj,{rfId:_i,disableKeyboardA11y:xi})]})})}var uB=Tw(cB);function fB(e){const[n,i]=ae.useState(e),a=ae.useCallback(l=>i(s=>Nw(l,s)),[]);return[n,i,a]}function dB(e){const[n,i]=ae.useState(e),a=ae.useCallback(l=>i(s=>kw(l,s)),[]);return[n,i,a]}function hB({dimensions:e,lineWidth:n,variant:i,className:a}){return v.jsx("path",{strokeWidth:n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:on(["react-flow__background-pattern",i,a])})}function pB({radius:e,className:n}){return v.jsx("circle",{cx:e,cy:e,r:e,className:on(["react-flow__background-pattern","dots",n])})}var ia;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ia||(ia={}));const mB={[ia.Dots]:1,[ia.Lines]:1,[ia.Cross]:6},gB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Jw({id:e,variant:n=ia.Dots,gap:i=20,size:a,lineWidth:l=1,offset:s=0,color:c,bgColor:f,style:h,className:d,patternClassName:p}){const m=ae.useRef(null),{transform:y,patternId:b}=ft(gB,qt),_=a||mB[n],S=n===ia.Dots,N=n===ia.Cross,E=Array.isArray(i)?i:[i,i],k=[E[0]*y[2]||1,E[1]*y[2]||1],w=_*y[2],O=Array.isArray(s)?s:[s,s],I=N?[w,w]:k,R=[O[0]*y[2]||1+I[0]/2,O[1]*y[2]||1+I[1]/2],H=`${b}${e||""}`;return v.jsxs("svg",{className:on(["react-flow__background",d]),style:{...h,...Du,"--xy-background-color-props":f,"--xy-background-pattern-color-props":c},ref:m,"data-testid":"rf__background",children:[v.jsx("pattern",{id:H,x:y[0]%k[0],y:y[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:S?v.jsx(pB,{radius:w/2,className:p}):v.jsx(hB,{dimensions:I,lineWidth:l,variant:n,className:p})}),v.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${H})`})]})}Jw.displayName="Background";const bB=ae.memo(Jw);function yB(){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:v.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function xB(){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:v.jsx("path",{d:"M0 0h32v4.2H0z"})})}function vB(){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:v.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 _B(){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:v.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 EB(){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:v.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 Pc({children:e,className:n,...i}){return v.jsx("button",{type:"button",className:on(["react-flow__controls-button",n]),...i,children:e})}const wB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function eS({style:e,showZoom:n=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:l,onZoomIn:s,onZoomOut:c,onFitView:f,onInteractiveChange:h,className:d,children:p,position:m="bottom-left",orientation:y="vertical","aria-label":b}){const _=zt(),{isInteractive:S,minZoomReached:N,maxZoomReached:E,ariaLabelConfig:k}=ft(wB,qt),{zoomIn:w,zoomOut:O,fitView:I}=gs(),R=()=>{w(),s==null||s()},H=()=>{O(),c==null||c()},j=()=>{I(l),f==null||f()},K=()=>{_.setState({nodesDraggable:!S,nodesConnectable:!S,elementsSelectable:!S}),h==null||h(!S)},L=y==="horizontal"?"horizontal":"vertical";return v.jsxs(Ru,{className:on(["react-flow__controls",L,d]),position:m,style:e,"data-testid":"rf__controls","aria-label":b??k["controls.ariaLabel"],children:[n&&v.jsxs(v.Fragment,{children:[v.jsx(Pc,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:E,children:v.jsx(yB,{})}),v.jsx(Pc,{onClick:H,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:N,children:v.jsx(xB,{})})]}),i&&v.jsx(Pc,{className:"react-flow__controls-fitview",onClick:j,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:v.jsx(vB,{})}),a&&v.jsx(Pc,{className:"react-flow__controls-interactive",onClick:K,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:S?v.jsx(EB,{}):v.jsx(_B,{})}),p]})}eS.displayName="Controls";const SB=ae.memo(eS);function NB({id:e,x:n,y:i,width:a,height:l,style:s,color:c,strokeColor:f,strokeWidth:h,className:d,borderRadius:p,shapeRendering:m,selected:y,onClick:b}){const{background:_,backgroundColor:S}=s||{},N=c||_||S;return v.jsx("rect",{className:on(["react-flow__minimap-node",{selected:y},d]),x:n,y:i,rx:p,ry:p,width:a,height:l,style:{fill:N,stroke:f,strokeWidth:h},shapeRendering:m,onClick:b?E=>b(E,e):void 0})}const kB=ae.memo(NB),TB=e=>e.nodes.map(n=>n.id),rp=e=>e instanceof Function?e:()=>e;function AB({nodeStrokeColor:e,nodeColor:n,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:l,nodeComponent:s=kB,onClick:c}){const f=ft(TB,qt),h=rp(n),d=rp(e),p=rp(i),m=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return v.jsx(v.Fragment,{children:f.map(y=>v.jsx(MB,{id:y,nodeColorFunc:h,nodeStrokeColorFunc:d,nodeClassNameFunc:p,nodeBorderRadius:a,nodeStrokeWidth:l,NodeComponent:s,onClick:c,shapeRendering:m},y))})}function CB({id:e,nodeColorFunc:n,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:l,nodeStrokeWidth:s,shapeRendering:c,NodeComponent:f,onClick:h}){const{node:d,x:p,y:m,width:y,height:b}=ft(_=>{const S=_.nodeLookup.get(e);if(!S)return{node:void 0,x:0,y:0,width:0,height:0};const N=S.internals.userNode,{x:E,y:k}=S.internals.positionAbsolute,{width:w,height:O}=Vi(N);return{node:N,x:E,y:k,width:w,height:O}},qt);return!d||d.hidden||!JE(d)?null:v.jsx(f,{x:p,y:m,width:y,height:b,style:d.style,selected:!!d.selected,className:a(d),color:n(d),borderRadius:l,strokeColor:i(d),strokeWidth:s,shapeRendering:c,onClick:h,id:d.id})}const MB=ae.memo(CB);var OB=ae.memo(AB);const RB=200,DB=150,LB=e=>!e.hidden,zB=e=>{const n={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:n,boundingRect:e.nodeLookup.size>0?ZE(hs(e.nodeLookup,{filter:LB}),n):n,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},g_=(e,n)=>e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height,IB=(e,n)=>g_(e.viewBB,n.viewBB)&&g_(e.boundingRect,n.boundingRect)&&e.rfId===n.rfId&&e.panZoom===n.panZoom&&e.translateExtent===n.translateExtent&&e.flowWidth===n.flowWidth&&e.flowHeight===n.flowHeight&&e.ariaLabelConfig===n.ariaLabelConfig,jB="react-flow__minimap-desc";function tS({style:e,className:n,nodeStrokeColor:i,nodeColor:a,nodeClassName:l="",nodeBorderRadius:s=5,nodeStrokeWidth:c,nodeComponent:f,bgColor:h,maskColor:d,maskStrokeColor:p,maskStrokeWidth:m,position:y="bottom-right",onClick:b,onNodeClick:_,pannable:S=!1,zoomable:N=!1,ariaLabel:E,inversePan:k,zoomStep:w=1,offsetScale:O=5}){const I=zt(),R=ae.useRef(null),{boundingRect:H,viewBB:j,rfId:K,panZoom:L,translateExtent:q,flowWidth:X,flowHeight:Y,ariaLabelConfig:A}=ft(zB,IB),$=(e==null?void 0:e.width)??RB,M=(e==null?void 0:e.height)??DB,B=H.width/$,V=H.height/M,Z=Math.max(B,V),C=Z*$,z=Z*M,G=O*Z,D=H.x-(C-H.width)/2-G,F=H.y-(z-H.height)/2-G,U=C+G*2,Q=z+G*2,J=`${jB}-${K}`,W=ae.useRef(0),ee=ae.useRef();W.current=Z,ae.useEffect(()=>{if(R.current&&L)return ee.current=XI({domNode:R.current,panZoom:L,getTransform:()=>I.getState().transform,getViewScale:()=>W.current}),()=>{var Ee;(Ee=ee.current)==null||Ee.destroy()}},[L]),ae.useEffect(()=>{var Ee;(Ee=ee.current)==null||Ee.update({translateExtent:q,width:X,height:Y,inversePan:k,pannable:S,zoomStep:w,zoomable:N})},[S,N,k,w,q,X,Y]);const ce=b?Ee=>{var He;const[Se,De]=((He=ee.current)==null?void 0:He.pointer(Ee))||[0,0];b(Ee,{x:Se,y:De})}:void 0,de=_?ae.useCallback((Ee,Se)=>{const De=I.getState().nodeLookup.get(Se).internals.userNode;_(Ee,De)},[]):void 0,be=E??A["minimap.ariaLabel"];return v.jsx(Ru,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof m=="number"?m*Z:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:on(["react-flow__minimap",n]),"data-testid":"rf__minimap",children:v.jsxs("svg",{width:$,height:M,viewBox:`${D} ${F} ${U} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:ce,children:[be&&v.jsx("title",{id:J,children:be}),v.jsx(OB,{onClick:de,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:s,nodeClassName:l,nodeStrokeWidth:c,nodeComponent:f}),v.jsx("path",{className:"react-flow__minimap-mask",d:`M${D-G},${F-G}h${U+G*2}v${Q+G*2}h${-U-G*2}z - M${j.x},${j.y}h${j.width}v${j.height}h${-j.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}tS.displayName="MiniMap";const BB=ae.memo(tS),UB=e=>n=>e?`${Math.max(1/n.transform[2],1)}`:void 0,HB={[jl.Line]:"right",[jl.Handle]:"bottom-right"};function $B({nodeId:e,position:n,variant:i=jl.Handle,className:a,style:l=void 0,children:s,color:c,minWidth:f=10,minHeight:h=10,maxWidth:d=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:m=!1,resizeDirection:y,autoScale:b=!0,shouldResize:_,onResizeStart:S,onResize:N,onResizeEnd:E}){const k=Rw(),w=typeof e=="string"?e:k,O=zt(),I=ae.useRef(null),R=i===jl.Handle,H=ft(ae.useCallback(UB(R&&b),[R,b]),qt),j=ae.useRef(null),K=n??HB[i];ae.useEffect(()=>{if(!(!I.current||!w))return j.current||(j.current=oj({domNode:I.current,nodeId:w,getStoreItems:()=>{const{nodeLookup:q,transform:X,snapGrid:Y,snapToGrid:A,nodeOrigin:$,domNode:M}=O.getState();return{nodeLookup:q,transform:X,snapGrid:Y,snapToGrid:A,nodeOrigin:$,paneDomNode:M}},onChange:(q,X)=>{const{triggerNodeChanges:Y,nodeLookup:A,parentLookup:$,nodeOrigin:M}=O.getState(),B=[],V={x:q.x,y:q.y},Z=A.get(w);if(Z&&Z.expandParent&&Z.parentId){const C=Z.origin??M,z=q.width??Z.measured.width??0,G=q.height??Z.measured.height??0,D={id:Z.id,parentId:Z.parentId,rect:{width:z,height:G,...ew({x:q.x??Z.position.x,y:q.y??Z.position.y},{width:z,height:G},Z.parentId,A,C)}},F=Om([D],A,$,M);B.push(...F),V.x=q.x?Math.max(C[0]*z,q.x):void 0,V.y=q.y?Math.max(C[1]*G,q.y):void 0}if(V.x!==void 0&&V.y!==void 0){const C={id:w,type:"position",position:{...V}};B.push(C)}if(q.width!==void 0&&q.height!==void 0){const z={id:w,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:q.width,height:q.height}};B.push(z)}for(const C of X){const z={...C,type:"position"};B.push(z)}Y(B)},onEnd:({width:q,height:X})=>{const Y={id:w,type:"dimensions",resizing:!1,dimensions:{width:q,height:X}};O.getState().triggerNodeChanges([Y])}})),j.current.update({controlPosition:K,boundaries:{minWidth:f,minHeight:h,maxWidth:d,maxHeight:p},keepAspectRatio:m,resizeDirection:y,onResizeStart:S,onResize:N,onResizeEnd:E,shouldResize:_}),()=>{var q;(q=j.current)==null||q.destroy()}},[K,f,h,d,p,m,S,N,E,_]);const L=K.split("-");return v.jsx("div",{className:on(["react-flow__resize-control","nodrag",...L,i,a]),ref:I,style:{...l,scale:H,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:s})}ae.memo($B);var vt=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Oi=vt((e,n)=>{var i=Object.defineProperty,a=(Y,A,$)=>A in Y?i(Y,A,{enumerable:!0,configurable:!0,writable:!0,value:$}):Y[A]=$,l=(Y,A)=>()=>(A||Y((A={exports:{}}).exports,A),A.exports),s=(Y,A,$)=>a(Y,typeof A!="symbol"?A+"":A,$),c=l((Y,A)=>{var $="\0",M="\0",B="",V=class{constructor(F){s(this,"_isDirected",!0),s(this,"_isMultigraph",!1),s(this,"_isCompound",!1),s(this,"_label"),s(this,"_defaultNodeLabelFn",()=>{}),s(this,"_defaultEdgeLabelFn",()=>{}),s(this,"_nodes",{}),s(this,"_in",{}),s(this,"_preds",{}),s(this,"_out",{}),s(this,"_sucs",{}),s(this,"_edgeObjs",{}),s(this,"_edgeLabels",{}),s(this,"_nodeCount",0),s(this,"_edgeCount",0),s(this,"_parent"),s(this,"_children"),F&&(this._isDirected=Object.hasOwn(F,"directed")?F.directed:!0,this._isMultigraph=Object.hasOwn(F,"multigraph")?F.multigraph:!1,this._isCompound=Object.hasOwn(F,"compound")?F.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[M]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(F){return this._label=F,this}graph(){return this._label}setDefaultNodeLabel(F){return this._defaultNodeLabelFn=F,typeof F!="function"&&(this._defaultNodeLabelFn=()=>F),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var F=this;return this.nodes().filter(U=>Object.keys(F._in[U]).length===0)}sinks(){var F=this;return this.nodes().filter(U=>Object.keys(F._out[U]).length===0)}setNodes(F,U){var Q=arguments,J=this;return F.forEach(function(W){Q.length>1?J.setNode(W,U):J.setNode(W)}),this}setNode(F,U){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=U),this):(this._nodes[F]=arguments.length>1?U:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=M,this._children[F]={},this._children[M][F]=!0),this._in[F]={},this._preds[F]={},this._out[F]={},this._sucs[F]={},++this._nodeCount,this)}node(F){return this._nodes[F]}hasNode(F){return Object.hasOwn(this._nodes,F)}removeNode(F){var U=this;if(Object.hasOwn(this._nodes,F)){var Q=J=>U.removeEdge(U._edgeObjs[J]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(J){U.setParent(J)}),delete this._children[F]),Object.keys(this._in[F]).forEach(Q),delete this._in[F],delete this._preds[F],Object.keys(this._out[F]).forEach(Q),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this}setParent(F,U){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(U===void 0)U=M;else{U+="";for(var Q=U;Q!==void 0;Q=this.parent(Q))if(Q===F)throw new Error("Setting "+U+" as parent of "+F+" would create a cycle");this.setNode(U)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=U,this._children[U][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var U=this._parent[F];if(U!==M)return U}}children(F=M){if(this._isCompound){var U=this._children[F];if(U)return Object.keys(U)}else{if(F===M)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var U=this._preds[F];if(U)return Object.keys(U)}successors(F){var U=this._sucs[F];if(U)return Object.keys(U)}neighbors(F){var U=this.predecessors(F);if(U){let J=new Set(U);for(var Q of this.successors(F))J.add(Q);return Array.from(J.values())}}isLeaf(F){var U;return this.isDirected()?U=this.successors(F):U=this.neighbors(F),U.length===0}filterNodes(F){var U=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});U.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([ee,ce]){F(ee)&&U.setNode(ee,ce)}),Object.values(this._edgeObjs).forEach(function(ee){U.hasNode(ee.v)&&U.hasNode(ee.w)&&U.setEdge(ee,Q.edge(ee))});var J={};function W(ee){var ce=Q.parent(ee);return ce===void 0||U.hasNode(ce)?(J[ee]=ce,ce):ce in J?J[ce]:W(ce)}return this._isCompound&&U.nodes().forEach(ee=>U.setParent(ee,W(ee))),U}setDefaultEdgeLabel(F){return this._defaultEdgeLabelFn=F,typeof F!="function"&&(this._defaultEdgeLabelFn=()=>F),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(F,U){var Q=this,J=arguments;return F.reduce(function(W,ee){return J.length>1?Q.setEdge(W,ee,U):Q.setEdge(W,ee),ee}),this}setEdge(){var F,U,Q,J,W=!1,ee=arguments[0];typeof ee=="object"&&ee!==null&&"v"in ee?(F=ee.v,U=ee.w,Q=ee.name,arguments.length===2&&(J=arguments[1],W=!0)):(F=ee,U=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),F=""+F,U=""+U,Q!==void 0&&(Q=""+Q);var ce=z(this._isDirected,F,U,Q);if(Object.hasOwn(this._edgeLabels,ce))return W&&(this._edgeLabels[ce]=J),this;if(Q!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode(U),this._edgeLabels[ce]=W?J:this._defaultEdgeLabelFn(F,U,Q);var de=G(this._isDirected,F,U,Q);return F=de.v,U=de.w,Object.freeze(de),this._edgeObjs[ce]=de,Z(this._preds[U],F),Z(this._sucs[F],U),this._in[U][ce]=de,this._out[F][ce]=de,this._edgeCount++,this}edge(F,U,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,U,Q);return this._edgeLabels[J]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,U,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,U,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(F,U,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,U,Q),W=this._edgeObjs[J];return W&&(F=W.v,U=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],C(this._preds[U],F),C(this._sucs[F],U),delete this._in[U][J],delete this._out[F][J],this._edgeCount--),this}inEdges(F,U){return this.isDirected()?this.filterEdges(this._in[F],F,U):this.nodeEdges(F,U)}outEdges(F,U){return this.isDirected()?this.filterEdges(this._out[F],F,U):this.nodeEdges(F,U)}nodeEdges(F,U){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,U)}filterEdges(F,U,Q){if(F){var J=Object.values(F);return Q?J.filter(function(W){return W.v===U&&W.w===Q||W.v===Q&&W.w===U}):J}}};function Z(F,U){F[U]?F[U]++:F[U]=1}function C(F,U){--F[U]||delete F[U]}function z(F,U,Q,J){var W=""+U,ee=""+Q;if(!F&&W>ee){var ce=W;W=ee,ee=ce}return W+B+ee+B+(J===void 0?$:J)}function G(F,U,Q,J){var W=""+U,ee=""+Q;if(!F&&W>ee){var ce=W;W=ee,ee=ce}var de={v:W,w:ee};return J&&(de.name=J),de}function D(F,U){return z(F,U.v,U.w,U.name)}A.exports=V}),f=l((Y,A)=>{A.exports="3.0.2"}),h=l((Y,A)=>{A.exports={Graph:c(),version:f()}}),d=l((Y,A)=>{var $=c();A.exports={write:M,read:Z};function M(C){var z={options:{directed:C.isDirected(),multigraph:C.isMultigraph(),compound:C.isCompound()},nodes:B(C),edges:V(C)};return C.graph()!==void 0&&(z.value=structuredClone(C.graph())),z}function B(C){return C.nodes().map(function(z){var G=C.node(z),D=C.parent(z),F={v:z};return G!==void 0&&(F.value=G),D!==void 0&&(F.parent=D),F})}function V(C){return C.edges().map(function(z){var G=C.edge(z),D={v:z.v,w:z.w};return z.name!==void 0&&(D.name=z.name),G!==void 0&&(D.value=G),D})}function Z(C){var z=new $(C.options).setGraph(C.value);return C.nodes.forEach(function(G){z.setNode(G.v,G.value),G.parent&&z.setParent(G.v,G.parent)}),C.edges.forEach(function(G){z.setEdge({v:G.v,w:G.w,name:G.name},G.value)}),z}}),p=l((Y,A)=>{A.exports=M;var $=()=>1;function M(V,Z,C,z){return B(V,String(Z),C||$,z||function(G){return V.outEdges(G)})}function B(V,Z,C,z){var G={},D=!0,F=0,U=V.nodes(),Q=function(ce){var de=C(ce);G[ce.v].distance+de{A.exports=$;function $(M){var B={},V=[],Z;function C(z){Object.hasOwn(B,z)||(B[z]=!0,Z.push(z),M.successors(z).forEach(C),M.predecessors(z).forEach(C))}return M.nodes().forEach(function(z){Z=[],C(z),Z.length&&V.push(Z)}),V}}),y=l((Y,A)=>{var $=class{constructor(){s(this,"_arr",[]),s(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(M){return M.key})}has(M){return Object.hasOwn(this._keyIndices,M)}priority(M){var B=this._keyIndices[M];if(B!==void 0)return this._arr[B].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(M,B){var V=this._keyIndices;if(M=String(M),!Object.hasOwn(V,M)){var Z=this._arr,C=Z.length;return V[M]=C,Z.push({key:M,priority:B}),this._decrease(C),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var M=this._arr.pop();return delete this._keyIndices[M.key],this._heapify(0),M.key}decrease(M,B){var V=this._keyIndices[M];if(B>this._arr[V].priority)throw new Error("New priority is greater than current priority. Key: "+M+" Old: "+this._arr[V].priority+" New: "+B);this._arr[V].priority=B,this._decrease(V)}_heapify(M){var B=this._arr,V=2*M,Z=V+1,C=M;V>1,!(B[Z].priority{var $=y();A.exports=B;var M=()=>1;function B(Z,C,z,G){var D=function(F){return Z.outEdges(F)};return V(Z,String(C),z||M,G||D)}function V(Z,C,z,G){var D={},F=new $,U,Q,J=function(W){var ee=W.v!==U?W.v:W.w,ce=D[ee],de=z(W),be=Q.distance+de;if(de<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+de);be0&&(U=F.removeMin(),Q=D[U],Q.distance!==Number.POSITIVE_INFINITY);)G(U).forEach(J);return D}}),_=l((Y,A)=>{var $=b();A.exports=M;function M(B,V,Z){return B.nodes().reduce(function(C,z){return C[z]=$(B,z,V,Z),C},{})}}),S=l((Y,A)=>{A.exports=$;function $(B,V,Z){if(B[V].predecessor!==void 0)throw new Error("Invalid source vertex");if(B[Z].predecessor===void 0&&Z!==V)throw new Error("Invalid destination vertex");return{weight:B[Z].distance,path:M(B,V,Z)}}function M(B,V,Z){for(var C=[],z=Z;z!==V;)C.push(z),z=B[z].predecessor;return C.push(V),C.reverse()}}),N=l((Y,A)=>{A.exports=$;function $(M){var B=0,V=[],Z={},C=[];function z(G){var D=Z[G]={onStack:!0,lowlink:B,index:B++};if(V.push(G),M.successors(G).forEach(function(Q){Object.hasOwn(Z,Q)?Z[Q].onStack&&(D.lowlink=Math.min(D.lowlink,Z[Q].index)):(z(Q),D.lowlink=Math.min(D.lowlink,Z[Q].lowlink))}),D.lowlink===D.index){var F=[],U;do U=V.pop(),Z[U].onStack=!1,F.push(U);while(G!==U);C.push(F)}}return M.nodes().forEach(function(G){Object.hasOwn(Z,G)||z(G)}),C}}),E=l((Y,A)=>{var $=N();A.exports=M;function M(B){return $(B).filter(function(V){return V.length>1||V.length===1&&B.hasEdge(V[0],V[0])})}}),k=l((Y,A)=>{A.exports=M;var $=()=>1;function M(V,Z,C){return B(V,Z||$,C||function(z){return V.outEdges(z)})}function B(V,Z,C){var z={},G=V.nodes();return G.forEach(function(D){z[D]={},z[D][D]={distance:0},G.forEach(function(F){D!==F&&(z[D][F]={distance:Number.POSITIVE_INFINITY})}),C(D).forEach(function(F){var U=F.v===D?F.w:F.v,Q=Z(F);z[D][U]={distance:Q,predecessor:D}})}),G.forEach(function(D){var F=z[D];G.forEach(function(U){var Q=z[U];G.forEach(function(J){var W=Q[D],ee=F[J],ce=Q[J],de=W.distance+ee.distance;de{function $(B){var V={},Z={},C=[];function z(G){if(Object.hasOwn(Z,G))throw new M;Object.hasOwn(V,G)||(Z[G]=!0,V[G]=!0,B.predecessors(G).forEach(z),delete Z[G],C.push(G))}if(B.sinks().forEach(z),Object.keys(V).length!==B.nodeCount())throw new M;return C}var M=class extends Error{constructor(){super(...arguments)}};A.exports=$,$.CycleException=M}),O=l((Y,A)=>{var $=w();A.exports=M;function M(B){try{$(B)}catch(V){if(V instanceof $.CycleException)return!1;throw V}return!0}}),I=l((Y,A)=>{A.exports=$;function $(B,V,Z,C,z){Array.isArray(V)||(V=[V]);var G=(B.isDirected()?B.successors:B.neighbors).bind(B),D={};return V.forEach(function(F){if(!B.hasNode(F))throw new Error("Graph does not have node: "+F);z=M(B,F,Z==="post",D,G,C,z)}),z}function M(B,V,Z,C,z,G,D){return Object.hasOwn(C,V)||(C[V]=!0,Z||(D=G(D,V)),z(V).forEach(function(F){D=M(B,F,Z,C,z,G,D)}),Z&&(D=G(D,V))),D}}),R=l((Y,A)=>{var $=I();A.exports=M;function M(B,V,Z){return $(B,V,Z,function(C,z){return C.push(z),C},[])}}),H=l((Y,A)=>{var $=R();A.exports=M;function M(B,V){return $(B,V,"post")}}),j=l((Y,A)=>{var $=R();A.exports=M;function M(B,V){return $(B,V,"pre")}}),K=l((Y,A)=>{var $=c(),M=y();A.exports=B;function B(V,Z){var C=new $,z={},G=new M,D;function F(Q){var J=Q.v===D?Q.w:Q.v,W=G.priority(J);if(W!==void 0){var ee=Z(Q);ee0;){if(D=G.removeMin(),Object.hasOwn(z,D))C.setEdge(D,z[D]);else{if(U)throw new Error("Input graph is not connected: "+V);U=!0}V.nodeEdges(D).forEach(F)}return C}}),L=l((Y,A)=>{var $=b(),M=p();A.exports=B;function B(Z,C,z,G){return V(Z,C,z,G||function(D){return Z.outEdges(D)})}function V(Z,C,z,G){if(z===void 0)return $(Z,C,z,G);for(var D=!1,F=Z.nodes(),U=0;U{A.exports={bellmanFord:p(),components:m(),dijkstra:b(),dijkstraAll:_(),extractPath:S(),findCycles:E(),floydWarshall:k(),isAcyclic:O(),postorder:H(),preorder:j(),prim:K(),shortestPaths:L(),reduce:I(),tarjan:N(),topsort:w()}}),X=h();n.exports={Graph:X.Graph,json:d(),alg:q(),version:X.version}}),qB=vt((e,n)=>{var i=class{constructor(){let s={};s._next=s._prev=s,this._sentinel=s}dequeue(){let s=this._sentinel,c=s._prev;if(c!==s)return a(c),c}enqueue(s){let c=this._sentinel;s._prev&&s._next&&a(s),s._next=c._next,c._next._prev=s,c._next=s,s._prev=c}toString(){let s=[],c=this._sentinel,f=c._prev;for(;f!==c;)s.push(JSON.stringify(f,l)),f=f._prev;return"["+s.join(", ")+"]"}};function a(s){s._prev._next=s._next,s._next._prev=s._prev,delete s._next,delete s._prev}function l(s,c){if(s!=="_next"&&s!=="_prev")return c}n.exports=i}),PB=vt((e,n)=>{var i=Oi().Graph,a=qB();n.exports=s;var l=()=>1;function s(m,y){if(m.nodeCount()<=1)return[];let b=h(m,y||l);return c(b.graph,b.buckets,b.zeroIdx).flatMap(_=>m.outEdges(_.v,_.w))}function c(m,y,b){let _=[],S=y[y.length-1],N=y[0],E;for(;m.nodeCount();){for(;E=N.dequeue();)f(m,y,b,E);for(;E=S.dequeue();)f(m,y,b,E);if(m.nodeCount()){for(let k=y.length-2;k>0;--k)if(E=y[k].dequeue(),E){_=_.concat(f(m,y,b,E,!0));break}}}return _}function f(m,y,b,_,S){let N=S?[]:void 0;return m.inEdges(_.v).forEach(E=>{let k=m.edge(E),w=m.node(E.v);S&&N.push({v:E.v,w:E.w}),w.out-=k,d(y,b,w)}),m.outEdges(_.v).forEach(E=>{let k=m.edge(E),w=E.w,O=m.node(w);O.in-=k,d(y,b,O)}),m.removeNode(_.v),N}function h(m,y){let b=new i,_=0,S=0;m.nodes().forEach(k=>{b.setNode(k,{v:k,in:0,out:0})}),m.edges().forEach(k=>{let w=b.edge(k.v,k.w)||0,O=y(k),I=w+O;b.setEdge(k.v,k.w,I),S=Math.max(S,b.node(k.v).out+=O),_=Math.max(_,b.node(k.w).in+=O)});let N=p(S+_+3).map(()=>new a),E=_+1;return b.nodes().forEach(k=>{d(N,E,b.node(k))}),{graph:b,buckets:N,zeroIdx:E}}function d(m,y,b){b.out?b.in?m[b.out-b.in+y].enqueue(b):m[m.length-1].enqueue(b):m[0].enqueue(b)}function p(m){let y=[];for(let b=0;b{var i=Oi().Graph;n.exports={addBorderNode:y,addDummyNode:a,applyWithChunking:S,asNonCompoundGraph:s,buildLayerMatrix:d,intersectRect:h,mapValues:j,maxRank:N,normalizeRanks:p,notime:w,partition:E,pick:H,predecessorWeights:f,range:R,removeEmptyRanks:m,simplify:l,successorWeights:c,time:k,uniqueId:I,zipObject:K};function a(L,q,X,Y){for(var A=Y;L.hasNode(A);)A=I(Y);return X.dummy=q,L.setNode(A,X),A}function l(L){let q=new i().setGraph(L.graph());return L.nodes().forEach(X=>q.setNode(X,L.node(X))),L.edges().forEach(X=>{let Y=q.edge(X.v,X.w)||{weight:0,minlen:1},A=L.edge(X);q.setEdge(X.v,X.w,{weight:Y.weight+A.weight,minlen:Math.max(Y.minlen,A.minlen)})}),q}function s(L){let q=new i({multigraph:L.isMultigraph()}).setGraph(L.graph());return L.nodes().forEach(X=>{L.children(X).length||q.setNode(X,L.node(X))}),L.edges().forEach(X=>{q.setEdge(X,L.edge(X))}),q}function c(L){let q=L.nodes().map(X=>{let Y={};return L.outEdges(X).forEach(A=>{Y[A.w]=(Y[A.w]||0)+L.edge(A).weight}),Y});return K(L.nodes(),q)}function f(L){let q=L.nodes().map(X=>{let Y={};return L.inEdges(X).forEach(A=>{Y[A.v]=(Y[A.v]||0)+L.edge(A).weight}),Y});return K(L.nodes(),q)}function h(L,q){let X=L.x,Y=L.y,A=q.x-X,$=q.y-Y,M=L.width/2,B=L.height/2;if(!A&&!$)throw new Error("Not possible to find intersection inside of the rectangle");let V,Z;return Math.abs($)*M>Math.abs(A)*B?($<0&&(B=-B),V=B*A/$,Z=B):(A<0&&(M=-M),V=M,Z=M*$/A),{x:X+V,y:Y+Z}}function d(L){let q=R(N(L)+1).map(()=>[]);return L.nodes().forEach(X=>{let Y=L.node(X),A=Y.rank;A!==void 0&&(q[A][Y.order]=X)}),q}function p(L){let q=L.nodes().map(Y=>{let A=L.node(Y).rank;return A===void 0?Number.MAX_VALUE:A}),X=S(Math.min,q);L.nodes().forEach(Y=>{let A=L.node(Y);Object.hasOwn(A,"rank")&&(A.rank-=X)})}function m(L){let q=L.nodes().map(M=>L.node(M).rank).filter(M=>M!==void 0),X=S(Math.min,q),Y=[];L.nodes().forEach(M=>{let B=L.node(M).rank-X;Y[B]||(Y[B]=[]),Y[B].push(M)});let A=0,$=L.graph().nodeRankFactor;Array.from(Y).forEach((M,B)=>{M===void 0&&B%$!==0?--A:M!==void 0&&A&&M.forEach(V=>L.node(V).rank+=A)})}function y(L,q,X,Y){let A={width:0,height:0};return arguments.length>=4&&(A.rank=X,A.order=Y),a(L,"border",A,q)}function b(L,q=_){let X=[];for(let Y=0;Y_){let X=b(q);return L.apply(null,X.map(Y=>L.apply(null,Y)))}else return L.apply(null,q)}function N(L){let q=L.nodes().map(X=>{let Y=L.node(X).rank;return Y===void 0?Number.MIN_VALUE:Y});return S(Math.max,q)}function E(L,q){let X={lhs:[],rhs:[]};return L.forEach(Y=>{q(Y)?X.lhs.push(Y):X.rhs.push(Y)}),X}function k(L,q){let X=Date.now();try{return q()}finally{console.log(L+" time: "+(Date.now()-X)+"ms")}}function w(L,q){return q()}var O=0;function I(L){var q=++O;return L+(""+q)}function R(L,q,X=1){q==null&&(q=L,L=0);let Y=$=>$q<$);let A=[];for(let $=L;Y($);$+=X)A.push($);return A}function H(L,q){let X={};for(let Y of q)L[Y]!==void 0&&(X[Y]=L[Y]);return X}function j(L,q){let X=q;return typeof q=="string"&&(X=Y=>Y[q]),Object.entries(L).reduce((Y,[A,$])=>(Y[A]=X($,A),Y),{})}function K(L,q){return L.reduce((X,Y,A)=>(X[Y]=q[A],X),{})}}),FB=vt((e,n)=>{var i=PB(),a=ln().uniqueId;n.exports={run:l,undo:c};function l(f){(f.graph().acyclicer==="greedy"?i(f,h(f)):s(f)).forEach(d=>{let p=f.edge(d);f.removeEdge(d),p.forwardName=d.name,p.reversed=!0,f.setEdge(d.w,d.v,p,a("rev"))});function h(d){return p=>d.edge(p).weight}}function s(f){let h=[],d={},p={};function m(y){Object.hasOwn(p,y)||(p[y]=!0,d[y]=!0,f.outEdges(y).forEach(b=>{Object.hasOwn(d,b.w)?h.push(b):m(b.w)}),delete d[y])}return f.nodes().forEach(m),h}function c(f){f.edges().forEach(h=>{let d=f.edge(h);if(d.reversed){f.removeEdge(h);let p=d.forwardName;delete d.reversed,delete d.forwardName,f.setEdge(h.w,h.v,d,p)}})}}),GB=vt((e,n)=>{var i=ln();n.exports={run:a,undo:s};function a(c){c.graph().dummyChains=[],c.edges().forEach(f=>l(c,f))}function l(c,f){let h=f.v,d=c.node(h).rank,p=f.w,m=c.node(p).rank,y=f.name,b=c.edge(f),_=b.labelRank;if(m===d+1)return;c.removeEdge(f);let S,N,E;for(E=0,++d;d{let h=c.node(f),d=h.edgeLabel,p;for(c.setEdge(h.edgeObj,d);h.dummy;)p=c.successors(f)[0],c.removeNode(f),d.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(d.x=h.x,d.y=h.y,d.width=h.width,d.height=h.height),f=p,h=c.node(f)})}}),gu=vt((e,n)=>{var{applyWithChunking:i}=ln();n.exports={longestPath:a,slack:l};function a(s){var c={};function f(h){var d=s.node(h);if(Object.hasOwn(c,h))return d.rank;c[h]=!0;let p=s.outEdges(h).map(y=>y==null?Number.POSITIVE_INFINITY:f(y.w)-s.edge(y).minlen);var m=i(Math.min,p);return m===Number.POSITIVE_INFINITY&&(m=0),d.rank=m}s.sources().forEach(f)}function l(s,c){return s.node(c.w).rank-s.node(c.v).rank-s.edge(c).minlen}}),nS=vt((e,n)=>{var i=Oi().Graph,a=gu().slack;n.exports=l;function l(h){var d=new i({directed:!1}),p=h.nodes()[0],m=h.nodeCount();d.setNode(p,{});for(var y,b;s(d,h){var b=y.v,_=m===b?y.w:b;!h.hasNode(_)&&!a(d,y)&&(h.setNode(_,{}),h.setEdge(m,_,{}),p(_))})}return h.nodes().forEach(p),h.nodeCount()}function c(h,d){return d.edges().reduce((p,m)=>{let y=Number.POSITIVE_INFINITY;return h.hasNode(m.v)!==h.hasNode(m.w)&&(y=a(d,m)),yd.node(m).rank+=p)}}),VB=vt((e,n)=>{var i=nS(),a=gu().slack,l=gu().longestPath,s=Oi().alg.preorder,c=Oi().alg.postorder,f=ln().simplify;n.exports=h,h.initLowLimValues=y,h.initCutValues=d,h.calcCutValue=m,h.leaveEdge=_,h.enterEdge=S,h.exchangeEdges=N;function h(O){O=f(O),l(O);var I=i(O);y(I),d(I,O);for(var R,H;R=_(I);)H=S(I,O,R),N(I,O,R,H)}function d(O,I){var R=c(O,O.nodes());R=R.slice(0,R.length-1),R.forEach(H=>p(O,I,H))}function p(O,I,R){var H=O.node(R),j=H.parent;O.edge(R,j).cutvalue=m(O,I,R)}function m(O,I,R){var H=O.node(R),j=H.parent,K=!0,L=I.edge(R,j),q=0;return L||(K=!1,L=I.edge(j,R)),q=L.weight,I.nodeEdges(R).forEach(X=>{var Y=X.v===R,A=Y?X.w:X.v;if(A!==j){var $=Y===K,M=I.edge(X).weight;if(q+=$?M:-M,k(O,R,A)){var B=O.edge(R,A).cutvalue;q+=$?-B:B}}}),q}function y(O,I){arguments.length<2&&(I=O.nodes()[0]),b(O,{},1,I)}function b(O,I,R,H,j){var K=R,L=O.node(H);return I[H]=!0,O.neighbors(H).forEach(q=>{Object.hasOwn(I,q)||(R=b(O,I,R,q,H))}),L.low=K,L.lim=R++,j?L.parent=j:delete L.parent,R}function _(O){return O.edges().find(I=>O.edge(I).cutvalue<0)}function S(O,I,R){var H=R.v,j=R.w;I.hasEdge(H,j)||(H=R.w,j=R.v);var K=O.node(H),L=O.node(j),q=K,X=!1;K.lim>L.lim&&(q=L,X=!0);var Y=I.edges().filter(A=>X===w(O,O.node(A.v),q)&&X!==w(O,O.node(A.w),q));return Y.reduce((A,$)=>a(I,$)!I.node(j).parent),H=s(O,R);H=H.slice(1),H.forEach(j=>{var K=O.node(j).parent,L=I.edge(j,K),q=!1;L||(L=I.edge(K,j),q=!0),I.node(j).rank=I.node(K).rank+(q?L.minlen:-L.minlen)})}function k(O,I,R){return O.hasEdge(I,R)}function w(O,I,R){return R.low<=I.lim&&I.lim<=R.lim}}),YB=vt((e,n)=>{var i=gu(),a=i.longestPath,l=nS(),s=VB();n.exports=c;function c(p){var m=p.graph().ranker;if(m instanceof Function)return m(p);switch(p.graph().ranker){case"network-simplex":d(p);break;case"tight-tree":h(p);break;case"longest-path":f(p);break;case"none":break;default:d(p)}}var f=a;function h(p){a(p),l(p)}function d(p){s(p)}}),XB=vt((e,n)=>{n.exports=i;function i(s){let c=l(s);s.graph().dummyChains.forEach(f=>{let h=s.node(f),d=h.edgeObj,p=a(s,c,d.v,d.w),m=p.path,y=p.lca,b=0,_=m[b],S=!0;for(;f!==d.w;){if(h=s.node(f),S){for(;(_=m[b])!==y&&s.node(_).maxRankm||y>c[b].lim));for(_=b,b=h;(b=s.parent(b))!==_;)p.push(b);return{path:d.concat(p.reverse()),lca:_}}function l(s){let c={},f=0;function h(d){let p=f;s.children(d).forEach(h),c[d]={low:p,lim:f++}}return s.children().forEach(h),c}}),KB=vt((e,n)=>{var i=ln();n.exports={run:a,cleanup:f};function a(h){let d=i.addDummyNode(h,"root",{},"_root"),p=s(h),m=Object.values(p),y=i.applyWithChunking(Math.max,m)-1,b=2*y+1;h.graph().nestingRoot=d,h.edges().forEach(S=>h.edge(S).minlen*=b);let _=c(h)+1;h.children().forEach(S=>l(h,d,b,_,y,p,S)),h.graph().nodeRankFactor=b}function l(h,d,p,m,y,b,_){let S=h.children(_);if(!S.length){_!==d&&h.setEdge(d,_,{weight:0,minlen:p});return}let N=i.addBorderNode(h,"_bt"),E=i.addBorderNode(h,"_bb"),k=h.node(_);h.setParent(N,_),k.borderTop=N,h.setParent(E,_),k.borderBottom=E,S.forEach(w=>{l(h,d,p,m,y,b,w);let O=h.node(w),I=O.borderTop?O.borderTop:w,R=O.borderBottom?O.borderBottom:w,H=O.borderTop?m:2*m,j=I!==R?1:y-b[_]+1;h.setEdge(N,I,{weight:H,minlen:j,nestingEdge:!0}),h.setEdge(R,E,{weight:H,minlen:j,nestingEdge:!0})}),h.parent(_)||h.setEdge(d,N,{weight:0,minlen:y+b[_]})}function s(h){var d={};function p(m,y){var b=h.children(m);b&&b.length&&b.forEach(_=>p(_,y+1)),d[m]=y}return h.children().forEach(m=>p(m,1)),d}function c(h){return h.edges().reduce((d,p)=>d+h.edge(p).weight,0)}function f(h){var d=h.graph();h.removeNode(d.nestingRoot),delete d.nestingRoot,h.edges().forEach(p=>{var m=h.edge(p);m.nestingEdge&&h.removeEdge(p)})}}),ZB=vt((e,n)=>{var i=ln();n.exports=a;function a(s){function c(f){let h=s.children(f),d=s.node(f);if(h.length&&h.forEach(c),Object.hasOwn(d,"minRank")){d.borderLeft=[],d.borderRight=[];for(let p=d.minRank,m=d.maxRank+1;p{n.exports={adjust:i,undo:a};function i(p){let m=p.graph().rankdir.toLowerCase();(m==="lr"||m==="rl")&&l(p)}function a(p){let m=p.graph().rankdir.toLowerCase();(m==="bt"||m==="rl")&&c(p),(m==="lr"||m==="rl")&&(h(p),l(p))}function l(p){p.nodes().forEach(m=>s(p.node(m))),p.edges().forEach(m=>s(p.edge(m)))}function s(p){let m=p.width;p.width=p.height,p.height=m}function c(p){p.nodes().forEach(m=>f(p.node(m))),p.edges().forEach(m=>{let y=p.edge(m);y.points.forEach(f),Object.hasOwn(y,"y")&&f(y)})}function f(p){p.y=-p.y}function h(p){p.nodes().forEach(m=>d(p.node(m))),p.edges().forEach(m=>{let y=p.edge(m);y.points.forEach(d),Object.hasOwn(y,"x")&&d(y)})}function d(p){let m=p.x;p.x=p.y,p.y=m}}),WB=vt((e,n)=>{var i=ln();n.exports=a;function a(l){let s={},c=l.nodes().filter(m=>!l.children(m).length),f=c.map(m=>l.node(m).rank),h=i.applyWithChunking(Math.max,f),d=i.range(h+1).map(()=>[]);function p(m){if(s[m])return;s[m]=!0;let y=l.node(m);d[y.rank].push(m),l.successors(m).forEach(p)}return c.sort((m,y)=>l.node(m).rank-l.node(y).rank).forEach(p),d}}),JB=vt((e,n)=>{var i=ln().zipObject;n.exports=a;function a(s,c){let f=0;for(let h=1;hS)),d=c.flatMap(_=>s.outEdges(_).map(S=>({pos:h[S.w],weight:s.edge(S).weight})).sort((S,N)=>S.pos-N.pos)),p=1;for(;p{let S=_.pos+p;y[S]+=_.weight;let N=0;for(;S>0;)S%2&&(N+=y[S+1]),S=S-1>>1,y[S]+=_.weight;b+=_.weight*N}),b}}),e8=vt((e,n)=>{n.exports=i;function i(a,l=[]){return l.map(s=>{let c=a.inEdges(s);if(c.length){let f=c.reduce((h,d)=>{let p=a.edge(d),m=a.node(d.v);return{sum:h.sum+p.weight*m.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:s,barycenter:f.sum/f.weight,weight:f.weight}}else return{v:s}})}}),t8=vt((e,n)=>{var i=ln();n.exports=a;function a(c,f){let h={};c.forEach((p,m)=>{let y=h[p.v]={indegree:0,in:[],out:[],vs:[p.v],i:m};p.barycenter!==void 0&&(y.barycenter=p.barycenter,y.weight=p.weight)}),f.edges().forEach(p=>{let m=h[p.v],y=h[p.w];m!==void 0&&y!==void 0&&(y.indegree++,m.out.push(h[p.w]))});let d=Object.values(h).filter(p=>!p.indegree);return l(d)}function l(c){let f=[];function h(p){return m=>{m.merged||(m.barycenter===void 0||p.barycenter===void 0||m.barycenter>=p.barycenter)&&s(p,m)}}function d(p){return m=>{m.in.push(p),--m.indegree===0&&c.push(m)}}for(;c.length;){let p=c.pop();f.push(p),p.in.reverse().forEach(h(p)),p.out.forEach(d(p))}return f.filter(p=>!p.merged).map(p=>i.pick(p,["vs","i","barycenter","weight"]))}function s(c,f){let h=0,d=0;c.weight&&(h+=c.barycenter*c.weight,d+=c.weight),f.weight&&(h+=f.barycenter*f.weight,d+=f.weight),c.vs=f.vs.concat(c.vs),c.barycenter=h/d,c.weight=d,c.i=Math.min(f.i,c.i),f.merged=!0}}),n8=vt((e,n)=>{var i=ln();n.exports=a;function a(c,f){let h=i.partition(c,N=>Object.hasOwn(N,"barycenter")),d=h.lhs,p=h.rhs.sort((N,E)=>E.i-N.i),m=[],y=0,b=0,_=0;d.sort(s(!!f)),_=l(m,p,_),d.forEach(N=>{_+=N.vs.length,m.push(N.vs),y+=N.barycenter*N.weight,b+=N.weight,_=l(m,p,_)});let S={vs:m.flat(!0)};return b&&(S.barycenter=y/b,S.weight=b),S}function l(c,f,h){let d;for(;f.length&&(d=f[f.length-1]).i<=h;)f.pop(),c.push(d.vs),h++;return h}function s(c){return(f,h)=>f.barycenterh.barycenter?1:c?h.i-f.i:f.i-h.i}}),i8=vt((e,n)=>{var i=e8(),a=t8(),l=n8();n.exports=s;function s(h,d,p,m){let y=h.children(d),b=h.node(d),_=b?b.borderLeft:void 0,S=b?b.borderRight:void 0,N={};_&&(y=y.filter(O=>O!==_&&O!==S));let E=i(h,y);E.forEach(O=>{if(h.children(O.v).length){let I=s(h,O.v,p,m);N[O.v]=I,Object.hasOwn(I,"barycenter")&&f(O,I)}});let k=a(E,p);c(k,N);let w=l(k,m);if(_&&(w.vs=[_,w.vs,S].flat(!0),h.predecessors(_).length)){let O=h.node(h.predecessors(_)[0]),I=h.node(h.predecessors(S)[0]);Object.hasOwn(w,"barycenter")||(w.barycenter=0,w.weight=0),w.barycenter=(w.barycenter*w.weight+O.order+I.order)/(w.weight+2),w.weight+=2}return w}function c(h,d){h.forEach(p=>{p.vs=p.vs.flatMap(m=>d[m]?d[m].vs:m)})}function f(h,d){h.barycenter!==void 0?(h.barycenter=(h.barycenter*h.weight+d.barycenter*d.weight)/(h.weight+d.weight),h.weight+=d.weight):(h.barycenter=d.barycenter,h.weight=d.weight)}}),r8=vt((e,n)=>{var i=Oi().Graph,a=ln();n.exports=l;function l(c,f,h,d){d||(d=c.nodes());let p=s(c),m=new i({compound:!0}).setGraph({root:p}).setDefaultNodeLabel(y=>c.node(y));return d.forEach(y=>{let b=c.node(y),_=c.parent(y);(b.rank===f||b.minRank<=f&&f<=b.maxRank)&&(m.setNode(y),m.setParent(y,_||p),c[h](y).forEach(S=>{let N=S.v===y?S.w:S.v,E=m.edge(N,y),k=E!==void 0?E.weight:0;m.setEdge(N,y,{weight:c.edge(S).weight+k})}),Object.hasOwn(b,"minRank")&&m.setNode(y,{borderLeft:b.borderLeft[f],borderRight:b.borderRight[f]}))}),m}function s(c){for(var f;c.hasNode(f=a.uniqueId("_root")););return f}}),a8=vt((e,n)=>{n.exports=i;function i(a,l,s){let c={},f;s.forEach(h=>{let d=a.parent(h),p,m;for(;d;){if(p=a.parent(d),p?(m=c[p],c[p]=d):(m=f,f=d),m&&m!==d){l.setEdge(m,d);return}d=p}})}}),l8=vt((e,n)=>{var i=WB(),a=JB(),l=i8(),s=r8(),c=a8(),f=Oi().Graph,h=ln();n.exports=d;function d(b,_={}){if(typeof _.customOrder=="function"){_.customOrder(b,d);return}let S=h.maxRank(b),N=p(b,h.range(1,S+1),"inEdges"),E=p(b,h.range(S-1,-1,-1),"outEdges"),k=i(b);if(y(b,k),_.disableOptimalOrderHeuristic)return;let w=Number.POSITIVE_INFINITY,O,I=_.constraints||[];for(let R=0,H=0;H<4;++R,++H){m(R%2?N:E,R%4>=2,I),k=h.buildLayerMatrix(b);let j=a(b,k);j{N.has(k)||N.set(k,[]),N.get(k).push(w)};for(let k of b.nodes()){let w=b.node(k);if(typeof w.rank=="number"&&E(w.rank,k),typeof w.minRank=="number"&&typeof w.maxRank=="number")for(let O=w.minRank;O<=w.maxRank;O++)O!==w.rank&&E(O,k)}return _.map(function(k){return s(b,k,S,N.get(k)||[])})}function m(b,_,S){let N=new f;b.forEach(function(E){S.forEach(O=>N.setEdge(O.left,O.right));let k=E.graph().root,w=l(E,k,N,_);w.vs.forEach((O,I)=>E.node(O).order=I),c(E,N,w.vs)})}function y(b,_){Object.values(_).forEach(S=>S.forEach((N,E)=>b.node(N).order=E))}}),o8=vt((e,n)=>{var i=Oi().Graph,a=ln();n.exports={positionX:S,findType1Conflicts:l,findType2Conflicts:s,addConflict:f,hasConflict:h,verticalAlignment:d,horizontalCompaction:p,alignCoordinates:b,findSmallestWidthAlignment:y,balance:_};function l(k,w){let O={};function I(R,H){let j=0,K=0,L=R.length,q=H[H.length-1];return H.forEach((X,Y)=>{let A=c(k,X),$=A?k.node(A).order:L;(A||X===q)&&(H.slice(K,Y+1).forEach(M=>{k.predecessors(M).forEach(B=>{let V=k.node(B),Z=V.order;(Z{X=H[Y],k.node(X).dummy&&k.predecessors(X).forEach(A=>{let $=k.node(A);$.dummy&&($.orderq)&&f(O,A,X)})})}function R(H,j){let K=-1,L,q=0;return j.forEach((X,Y)=>{if(k.node(X).dummy==="border"){let A=k.predecessors(X);A.length&&(L=k.node(A[0]).order,I(j,q,Y,K,L),q=Y,K=L)}I(j,q,j.length,L,H.length)}),j}return w.length&&w.reduce(R),O}function c(k,w){if(k.node(w).dummy)return k.predecessors(w).find(O=>k.node(O).dummy)}function f(k,w,O){if(w>O){let R=w;w=O,O=R}let I=k[w];I||(k[w]=I={}),I[O]=!0}function h(k,w,O){if(w>O){let I=w;w=O,O=I}return!!k[w]&&Object.hasOwn(k[w],O)}function d(k,w,O,I){let R={},H={},j={};return w.forEach(K=>{K.forEach((L,q)=>{R[L]=L,H[L]=L,j[L]=q})}),w.forEach(K=>{let L=-1;K.forEach(q=>{let X=I(q);if(X.length){X=X.sort((A,$)=>j[A]-j[$]);let Y=(X.length-1)/2;for(let A=Math.floor(Y),$=Math.ceil(Y);A<=$;++A){let M=X[A];H[q]===q&&LMath.max(A,H[$.v]+j.edge($)),0)}function X(Y){let A=j.outEdges(Y).reduce((M,B)=>Math.min(M,H[B.w]-j.edge(B)),Number.POSITIVE_INFINITY),$=k.node(Y);A!==Number.POSITIVE_INFINITY&&$.borderType!==K&&(H[Y]=Math.max(H[Y],A))}return L(q,j.predecessors.bind(j)),L(X,j.successors.bind(j)),Object.keys(I).forEach(Y=>H[Y]=H[O[Y]]),H}function m(k,w,O,I){let R=new i,H=k.graph(),j=N(H.nodesep,H.edgesep,I);return w.forEach(K=>{let L;K.forEach(q=>{let X=O[q];if(R.setNode(X),L){var Y=O[L],A=R.edge(Y,X);R.setEdge(Y,X,Math.max(j(k,q,L),A||0))}L=q})}),R}function y(k,w){return Object.values(w).reduce((O,I)=>{let R=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;Object.entries(I).forEach(([K,L])=>{let q=E(k,K)/2;R=Math.max(L+q,R),H=Math.min(L-q,H)});let j=R-H;return j{["l","r"].forEach(j=>{let K=H+j,L=k[K];if(L===w)return;let q=Object.values(L),X=I-a.applyWithChunking(Math.min,q);j!=="l"&&(X=R-a.applyWithChunking(Math.max,q)),X&&(k[K]=a.mapValues(L,Y=>Y+X))})})}function _(k,w){return a.mapValues(k.ul,(O,I)=>{if(w)return k[w.toLowerCase()][I];{let R=Object.values(k).map(H=>H[I]).sort((H,j)=>H-j);return(R[1]+R[2])/2}})}function S(k){let w=a.buildLayerMatrix(k),O=Object.assign(l(k,w),s(k,w)),I={},R;["u","d"].forEach(j=>{R=j==="u"?w:Object.values(w).reverse(),["l","r"].forEach(K=>{K==="r"&&(R=R.map(Y=>Object.values(Y).reverse()));let L=(j==="u"?k.predecessors:k.successors).bind(k),q=d(k,R,O,L),X=p(k,R,q.root,q.align,K==="r");K==="r"&&(X=a.mapValues(X,Y=>-Y)),I[j+K]=X})});let H=y(k,I);return b(I,H),_(I,k.graph().align)}function N(k,w,O){return(I,R,H)=>{let j=I.node(R),K=I.node(H),L=0,q;if(L+=j.width/2,Object.hasOwn(j,"labelpos"))switch(j.labelpos.toLowerCase()){case"l":q=-j.width/2;break;case"r":q=j.width/2;break}if(q&&(L+=O?q:-q),q=0,L+=(j.dummy?w:k)/2,L+=(K.dummy?w:k)/2,L+=K.width/2,Object.hasOwn(K,"labelpos"))switch(K.labelpos.toLowerCase()){case"l":q=K.width/2;break;case"r":q=-K.width/2;break}return q&&(L+=O?q:-q),q=0,L}}function E(k,w){return k.node(w).width}}),s8=vt((e,n)=>{var i=ln(),a=o8().positionX;n.exports=l;function l(c){c=i.asNonCompoundGraph(c),s(c),Object.entries(a(c)).forEach(([f,h])=>c.node(f).x=h)}function s(c){let f=i.buildLayerMatrix(c),h=c.graph().ranksep,d=c.graph().rankalign,p=0;f.forEach(m=>{let y=m.reduce((b,_)=>{let S=c.node(_).height;return b>S?b:S},0);m.forEach(b=>{let _=c.node(b);d==="top"?_.y=p+_.height/2:d==="bottom"?_.y=p+y-_.height/2:_.y=p+y/2}),p+=y+h})}}),c8=vt((e,n)=>{var i=FB(),a=GB(),l=YB(),s=ln().normalizeRanks,c=XB(),f=ln().removeEmptyRanks,h=KB(),d=ZB(),p=QB(),m=l8(),y=s8(),b=ln(),_=Oi().Graph;n.exports=S;function S(U,Q={}){let J=Q.debugTiming?b.time:b.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>L(U));return J(" runLayout",()=>N(W,J,Q)),J(" updateInputGraph",()=>E(U,W)),W})}function N(U,Q,J){Q(" makeSpaceForEdgeLabels",()=>q(U)),Q(" removeSelfEdges",()=>C(U)),Q(" acyclic",()=>i.run(U)),Q(" nestingGraph.run",()=>h.run(U)),Q(" rank",()=>l(b.asNonCompoundGraph(U))),Q(" injectEdgeLabelProxies",()=>X(U)),Q(" removeEmptyRanks",()=>f(U)),Q(" nestingGraph.cleanup",()=>h.cleanup(U)),Q(" normalizeRanks",()=>s(U)),Q(" assignRankMinMax",()=>Y(U)),Q(" removeEdgeLabelProxies",()=>A(U)),Q(" normalize.run",()=>a.run(U)),Q(" parentDummyChains",()=>c(U)),Q(" addBorderSegments",()=>d(U)),Q(" order",()=>m(U,J)),Q(" insertSelfEdges",()=>z(U)),Q(" adjustCoordinateSystem",()=>p.adjust(U)),Q(" position",()=>y(U)),Q(" positionSelfEdges",()=>G(U)),Q(" removeBorderNodes",()=>Z(U)),Q(" normalize.undo",()=>a.undo(U)),Q(" fixupEdgeLabelCoords",()=>B(U)),Q(" undoCoordinateSystem",()=>p.undo(U)),Q(" translateGraph",()=>$(U)),Q(" assignNodeIntersects",()=>M(U)),Q(" reversePoints",()=>V(U)),Q(" acyclic.undo",()=>i.undo(U))}function E(U,Q){U.nodes().forEach(J=>{let W=U.node(J),ee=Q.node(J);W&&(W.x=ee.x,W.y=ee.y,W.order=ee.order,W.rank=ee.rank,Q.children(J).length&&(W.width=ee.width,W.height=ee.height))}),U.edges().forEach(J=>{let W=U.edge(J),ee=Q.edge(J);W.points=ee.points,Object.hasOwn(ee,"x")&&(W.x=ee.x,W.y=ee.y)}),U.graph().width=Q.graph().width,U.graph().height=Q.graph().height}var k=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},O=["acyclicer","ranker","rankdir","align","rankalign"],I=["width","height","rank"],R={width:0,height:0},H=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function L(U){let Q=new _({multigraph:!0,compound:!0}),J=F(U.graph());return Q.setGraph(Object.assign({},w,D(J,k),b.pick(J,O))),U.nodes().forEach(W=>{let ee=F(U.node(W)),ce=D(ee,I);Object.keys(R).forEach(de=>{ce[de]===void 0&&(ce[de]=R[de])}),Q.setNode(W,ce),Q.setParent(W,U.parent(W))}),U.edges().forEach(W=>{let ee=F(U.edge(W));Q.setEdge(W,Object.assign({},j,D(ee,H),b.pick(ee,K)))}),Q}function q(U){let Q=U.graph();Q.ranksep/=2,U.edges().forEach(J=>{let W=U.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function X(U){U.edges().forEach(Q=>{let J=U.edge(Q);if(J.width&&J.height){let W=U.node(Q.v),ee={rank:(U.node(Q.w).rank-W.rank)/2+W.rank,e:Q};b.addDummyNode(U,"edge-proxy",ee,"_ep")}})}function Y(U){let Q=0;U.nodes().forEach(J=>{let W=U.node(J);W.borderTop&&(W.minRank=U.node(W.borderTop).rank,W.maxRank=U.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),U.graph().maxRank=Q}function A(U){U.nodes().forEach(Q=>{let J=U.node(Q);J.dummy==="edge-proxy"&&(U.edge(J.e).labelRank=J.rank,U.removeNode(Q))})}function $(U){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,ee=0,ce=U.graph(),de=ce.marginx||0,be=ce.marginy||0;function Ee(Se){let De=Se.x,He=Se.y,lt=Se.width,Rt=Se.height;Q=Math.min(Q,De-lt/2),J=Math.max(J,De+lt/2),W=Math.min(W,He-Rt/2),ee=Math.max(ee,He+Rt/2)}U.nodes().forEach(Se=>Ee(U.node(Se))),U.edges().forEach(Se=>{let De=U.edge(Se);Object.hasOwn(De,"x")&&Ee(De)}),Q-=de,W-=be,U.nodes().forEach(Se=>{let De=U.node(Se);De.x-=Q,De.y-=W}),U.edges().forEach(Se=>{let De=U.edge(Se);De.points.forEach(He=>{He.x-=Q,He.y-=W}),Object.hasOwn(De,"x")&&(De.x-=Q),Object.hasOwn(De,"y")&&(De.y-=W)}),ce.width=J-Q+de,ce.height=ee-W+be}function M(U){U.edges().forEach(Q=>{let J=U.edge(Q),W=U.node(Q.v),ee=U.node(Q.w),ce,de;J.points?(ce=J.points[0],de=J.points[J.points.length-1]):(J.points=[],ce=ee,de=W),J.points.unshift(b.intersectRect(W,ce)),J.points.push(b.intersectRect(ee,de))})}function B(U){U.edges().forEach(Q=>{let J=U.edge(Q);if(Object.hasOwn(J,"x"))switch((J.labelpos==="l"||J.labelpos==="r")&&(J.width-=J.labeloffset),J.labelpos){case"l":J.x-=J.width/2+J.labeloffset;break;case"r":J.x+=J.width/2+J.labeloffset;break}})}function V(U){U.edges().forEach(Q=>{let J=U.edge(Q);J.reversed&&J.points.reverse()})}function Z(U){U.nodes().forEach(Q=>{if(U.children(Q).length){let J=U.node(Q),W=U.node(J.borderTop),ee=U.node(J.borderBottom),ce=U.node(J.borderLeft[J.borderLeft.length-1]),de=U.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(de.x-ce.x),J.height=Math.abs(ee.y-W.y),J.x=ce.x+J.width/2,J.y=W.y+J.height/2}}),U.nodes().forEach(Q=>{U.node(Q).dummy==="border"&&U.removeNode(Q)})}function C(U){U.edges().forEach(Q=>{if(Q.v===Q.w){var J=U.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:U.edge(Q)}),U.removeEdge(Q)}})}function z(U){var Q=b.buildLayerMatrix(U);Q.forEach(J=>{var W=0;J.forEach((ee,ce)=>{var de=U.node(ee);de.order=ce+W,(de.selfEdges||[]).forEach(be=>{b.addDummyNode(U,"selfedge",{width:be.label.width,height:be.label.height,rank:de.rank,order:ce+ ++W,e:be.e,label:be.label},"_se")}),delete de.selfEdges})})}function G(U){U.nodes().forEach(Q=>{var J=U.node(Q);if(J.dummy==="selfedge"){var W=U.node(J.e.v),ee=W.x+W.width/2,ce=W.y,de=J.x-ee,be=W.height/2;U.setEdge(J.e,J.label),U.removeNode(Q),J.label.points=[{x:ee+2*de/3,y:ce-be},{x:ee+5*de/6,y:ce-be},{x:ee+de,y:ce},{x:ee+5*de/6,y:ce+be},{x:ee+2*de/3,y:ce+be}],J.label.x=J.x,J.label.y=J.y}})}function D(U,Q){return b.mapValues(b.pick(U,Q),Number)}function F(U){var Q={};return U&&Object.entries(U).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),u8=vt((e,n)=>{var i=ln(),a=Oi().Graph;n.exports={debugOrdering:l};function l(s){let c=i.buildLayerMatrix(s),f=new a({compound:!0,multigraph:!0}).setGraph({});return s.nodes().forEach(h=>{f.setNode(h,{label:h}),f.setParent(h,"layer"+s.node(h).rank)}),s.edges().forEach(h=>f.setEdge(h.v,h.w,{},h.name)),c.forEach((h,d)=>{let p="layer"+d;f.setNode(p,{rank:"same"}),h.reduce((m,y)=>(f.setEdge(m,y,{style:"invis"}),y))}),f}}),f8=vt((e,n)=>{n.exports="2.0.4"}),d8=vt((e,n)=>{n.exports={graphlib:Oi(),layout:c8(),debug:u8(),util:{time:ln().time,notime:ln().notime},version:f8()}});const b_=d8();/*! For license information please see dagre.esm.js.LEGAL.txt */const y_={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function h8({data:e,selected:n}){const i=e;return v.jsxs("div",{className:`w-[260px] rounded-lg border px-4 py-3 transition-colors ${i.isSelected||n?"border-white/30 bg-[#0a0a0a]":"border-[#222] bg-black hover:border-[#333]"}`,children:[v.jsx(Bl,{type:"target",position:ze.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.parentId?"!bg-[#444]":"!bg-transparent"}`}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[v.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${y_[i.status]??"bg-gray-500"} ${i.status==="running"?"animate-ping":""}`}),v.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${y_[i.status]??"bg-gray-500"}`})]}),v.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:i.name})]}),v.jsx(Bl,{type:"source",position:ze.Bottom,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.children&&i.children.length>0?"!bg-[#444]":"!bg-transparent"}`})]})}const p8=ae.memo(h8);function Ho({w:e=24}){return v.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[v.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),v.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),v.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),v.jsxs("div",{className:"flex gap-3",children:[v.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),v.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function Sl(){return v.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function x_({count:e}){return v.jsx("div",{className:"relative flex justify-center",children:v.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function m8(){return v.jsx("div",{className:"h-full bg-black overflow-hidden",children:v.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[v.jsx(Ho,{w:20}),v.jsx(Sl,{}),v.jsx(x_,{count:3}),v.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,n)=>v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx(Sl,{}),v.jsx(Ho,{w:e})]},n))}),v.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx(Sl,{}),v.jsx(x_,{count:2}),v.jsx("div",{className:"flex gap-10",children:[14,20].map((e,n)=>v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx(Sl,{}),v.jsx(Ho,{w:e})]},n))})]}),v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx(Sl,{}),v.jsx(Ho,{w:18}),v.jsx(Sl,{}),v.jsx(Ho,{w:12})]}),v.jsx("div",{className:"w-[180px]"})]})]})})}const Bp=260,Up=80,g8={agentNode:p8};function b8(e,n){const i=new b_.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],l=[];for(const[s,c]of e)if(i.setNode(s,{width:Bp,height:Up}),a.push({id:s,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:s===n}}),c.parentId&&e.has(c.parentId)){const f=`${c.parentId}->${s}`;i.setEdge(c.parentId,s),l.push({id:f,source:c.parentId,target:s,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}b_.layout(i);for(const s of a){const c=i.node(s.id);c&&(s.position={x:c.x-Bp/2,y:c.y-Up/2})}return{nodes:a,edges:l}}const ap=300;function y8({nodes:e}){const{setCenter:n}=gs(),i=ae.useRef(!1);return ae.useEffect(()=>{if(e.length>0&&!i.current){const l=e.find(f=>!f.data.parentId)??e[0];i.current=!0;const s=l.position.x+Bp/2,c=l.position.y+Up/2;setTimeout(()=>n(s,c,{zoom:.85,duration:400}),60)}},[e,n]),null}function x8(){const{zoomIn:e,zoomOut:n,fitView:i}=gs();return v.jsx(SB,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:v.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[v.jsx("button",{onClick:()=>e({duration:ap}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:v.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:v.jsx("path",{d:"M12 5v14M5 12h14"})})}),v.jsx("button",{onClick:()=>n({duration:ap}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] border-y border-[#222] transition-colors",title:"Zoom out",children:v.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:v.jsx("path",{d:"M5 12h14"})})}),v.jsx("button",{onClick:()=>i({padding:.3,duration:ap}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:v.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:v.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function v8({agents:e,selectedAgentId:n,onSelectAgent:i,eventsLoaded:a,eventsEmpty:l,scanCompleted:s}){const[c,f,h]=fB([]),[d,p,m]=dB([]);ae.useEffect(()=>{if(e.size===0)return;const{nodes:N,edges:E}=b8(e,n);f(N),p(E)},[e.size,f,p]),ae.useEffect(()=>{e.size!==0&&f(N=>N.map(E=>{const k=e.get(E.id);return k?{...E,data:{...k,isSelected:E.id===n}}:E}))},[e,n,f]);const y=ae.useRef(!1),b=ae.useCallback((N,E)=>{y.current=!0,i(E.id)},[i]),_=ae.useCallback(()=>{if(y.current){y.current=!1;return}i(null)},[i]);if(e.size===0&&a&&l)return v.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[v.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:s?v.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})}):v.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),v.jsx("p",{className:"text-sm text-[#555]",children:s?"Agent trace data is not available for this pentest":"Waiting for agent data…"})]});const S=e.size>0;return v.jsxs("div",{className:"relative h-full",children:[v.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${S?"opacity-0 pointer-events-none":"opacity-100"}`,children:v.jsx(m8,{})}),v.jsx("div",{className:`h-full transition-opacity duration-500 ${S?"opacity-100":"opacity-0"}`,children:v.jsxs(uB,{nodes:c,edges:d,onNodesChange:h,onEdgesChange:m,onNodeClick:b,onPaneClick:_,nodeTypes:g8,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[v.jsx(bB,{color:"#111",gap:20}),v.jsx(y8,{nodes:c}),v.jsx(x8,{}),v.jsx(BB,{position:"bottom-left",nodeColor:N=>{var k;const E=(k=N.data)==null?void 0:k.status;return E==="running"?"#3b82f6":E==="completed"?"#10b981":E==="failed"||E==="error"?"#ef4444":"#555"},maskColor:"rgba(0,0,0,0.8)",style:{width:80,height:50},className:"!bg-[#0a0a0a] !border-[#222]"})]})})]})}function Al({text:e,className:n=""}){return v.jsx("div",{className:`prose-markdown ${n}`,children:v.jsx(sm,{remarkPlugins:[dm],rehypePlugins:[hm],components:pm,children:e})})}const v_=6,__=20;function Ln({text:e,maxLines:n=20}){const[i,a]=ae.useState(!1),s=e.trimEnd().split(` -`).length>n;return v.jsxs("div",{children:[v.jsx("div",{className:i&&s?"max-h-[1200px] overflow-auto":"",style:!i&&s?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:v.jsx(Al,{text:e})}),s&&v.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:i?"Show less":"Show more"})]})}function gr({children:e,className:n=""}){const[i,a]=ae.useState(!1),s=typeof e=="string"?e.trimEnd().split(` -`):null,c=s!==null&&s.length>v_,f=c&&!i?s.slice(0,v_).join(` -`):e;return v.jsxs("div",{children:[v.jsx("pre",{className:`font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words mt-1 ${i?"overflow-auto max-h-[1200px]":"overflow-hidden"} ${n}`,children:f}),c&&v.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:i?"Show less":"Show more"})]})}function Dm({code:e,language:n,className:i="",collapsible:a=!1}){const[l,s]=ae.useState(!1),c=e.trimEnd().split(` -`),f=a&&c.length>__,h=f&&!l?c.slice(0,__).join(` -`):e;let d;try{d=n?Fn.highlight(h,{language:n,ignoreIllegals:!0}).value:Fn.highlightAuto(h).value}catch{d=Fn.highlightAuto(h).value}return v.jsxs("div",{children:[v.jsx("pre",{className:`font-mono text-[12px] leading-relaxed px-0 py-1 mt-1 whitespace-pre-wrap break-all ${a?l?"overflow-auto max-h-[1200px]":"overflow-hidden":"overflow-auto max-h-[400px]"} ${i}`,children:v.jsx("code",{dangerouslySetInnerHTML:{__html:d}})}),f&&v.jsx("button",{onClick:()=>s(!l),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:l?"Show less":"Show more"})]})}const _8=50,E_=200,w_=25,S_=24,E8=[/\n?\[Command still running after [\d.]+s - showing output so far\.?\s*(?:Use C-c to interrupt if needed\.)?\]/g,/^\[Below is the output of the previous command\.\]\n?/gm,/^No command is currently running\. Cannot send input\.$/gm,/^A command is already running\. Use is_input=true to send input to it, or interrupt it first \(e\.g\., with C-c\)\.$/gm],w8=/^Chunk ID: [0-9a-f]+\s*$/,S8=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function N8(e){const n=[];for(let i=0;il.test(e[a]));)a++;aE_?e.slice(0,E_-3)+"...":e}function T8(e,n=""){let i=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of E8)i=i.replace(a,"");if(i.trim()){const a=N8(i.split(` -`)),l=[];for(const s of a)l.length===0&&!s.trim()||/^\[STRIX_\d+\]\$\s*/.test(s)||n&&s.trim()===n.trim()||n&&new RegExp(`^[\\$#>]\\s*${k8(n.trim())}\\s*$`).test(s)||l.push(s);for(;l.length>0&&/^\[STRIX_\d+\]\$\s*/.test(l[l.length-1]);)l.pop();i=l.join(` -`)}return i.trim()}function A8(e){const n=e.split(` -`);if(n.length<=_8)return n.map(lp).join(` -`);const i=n.length-w_-S_;return[...n.slice(0,w_).map(lp),`... ${i} lines truncated ...`,...n.slice(-S_).map(lp)].join(` -`)}function C8({toolName:e,args:n,result:i}){const a=e==="write_stdin",l=a?n.chars??n.input??"":n.command??n.cmd??"",s=i;let c=null,f=null,h=null;if(s&&typeof s=="object"){c=typeof s.content=="string"?s.content:null,f=typeof s.error=="string"?s.error:null,h=typeof s.exit_code=="number"?s.exit_code:null;const p=typeof s.status=="string"?s.status:"";(p==="running"||p==="command still running")&&(c=null)}else typeof s=="string"&&(c=s);const d=c?A8(T8(c,l)):null;return v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),l&&v.jsx(Dm,{code:l,language:"bash",collapsible:!0}),f&&v.jsx(gr,{className:"text-red-400/70",children:f}),d&&v.jsx(gr,{className:"text-[#666]",children:d}),h!=null&&h!==0&&v.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",h]})]})}const N_={back:"going back in browser history",forward:"going forward in browser history",scroll_down:"scrolling down",scroll_up:"scrolling up",refresh:"refreshing",close_tab:"closing tab",switch_tab:"switching tab",list_tabs:"listing tabs",view_source:"viewing page source",get_console_logs:"getting console logs",screenshot:"taking screenshot",wait:"waiting...",close:"closing"},k_={click:"clicking",double_click:"double clicking",hover:"hovering"};function op({prefix:e,url:n,suffix:i}){return v.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,n&&v.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:n}),i]})}function M8(e){const n=e.action??"",i=e.url??void 0;if(n in N_)return N_[n];if(n==="launch")return i?v.jsx(op,{prefix:"launching ",url:i}):"launching";if(n==="goto"||n==="navigate")return v.jsx(op,{prefix:"navigating to ",url:i});if(n==="new_tab")return v.jsx(op,{prefix:"opening tab ",url:i});if(n in k_)return k_[n];if(n==="type")return`typing "${(e.text??"").slice(0,40)}"`;if(n==="press_key"||n==="key_press")return`pressing key ${e.key??""}`;if(n==="save_pdf"||n==="save_as_pdf"){const a=e.file_path??"";return`saving PDF${a?` to ${a}`:""}`}return n==="execute_js"?"executing javascript":n||"browser action"}function O8({args:e}){const i=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=M8(e);return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[v.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),v.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),i&&v.jsx(Dm,{code:i,language:"javascript",collapsible:!0})]})}function Lm(e){return e.length>60?"..."+e.slice(-57):e}const Fc=30;function R8({toolName:e,args:n}){const i=n.path??n.file_path??"",a=n.command??"",l=n.old_str??"",s=n.new_str??"",c=n.regex??"";let f;e==="list_files"?f="list":e==="search_files"?f="search":a==="view"?f="view":a==="create"?f="create":a==="str_replace"?f="edit":a==="undo_edit"?f="undo":a==="insert"?f="insert":f="file";const h=i?Lm(i):"",d=c?` /${c}/`:"",p=l?l.split(` -`):[],m=s?s.split(` -`):[],y=p.length+m.length,b=y>Fc,_=b?Math.round(Fc*(p.length/y)):p.length,S=b?Fc-_:m.length;return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-baseline gap-2",children:[v.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:f}),h&&v.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:h})]}),d&&v.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:d}),(l||s)&&v.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[p.slice(0,_).map((N,E)=>v.jsxs("div",{className:"text-red-400/60",children:[v.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),N]},`o${E}`)),m.slice(0,S).map((N,E)=>v.jsxs("div",{className:"text-emerald-400/60",children:[v.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),N]},`n${E}`)),b&&v.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",y-Fc," more lines"]})]})]})}const Gc=30,D8="*** Begin Patch",L8="*** End Patch",T_="*** Add File: ",A_="*** Update File: ",C_="*** Delete File: ",z8={add:"create",update:"edit",delete:"delete"};function I8(e){const n=e.patch;return typeof n=="string"?n:n&&typeof n=="object"&&typeof n.patch=="string"?n.patch:typeof e.input=="string"?e.input:""}function j8(e){const n=[];let i=null;const a=()=>{i&&n.push(i),i=null};for(const l of e.split(` -`))if(!(l===D8||l===L8))if(l.startsWith(T_))a(),i={kind:"add",path:l.slice(T_.length).trim(),oldLines:[],newLines:[]};else if(l.startsWith(A_))a(),i={kind:"update",path:l.slice(A_.length).trim(),oldLines:[],newLines:[]};else if(l.startsWith(C_))a(),i={kind:"delete",path:l.slice(C_.length).trim(),oldLines:[],newLines:[]};else if((i==null?void 0:i.kind)==="update"){if(l.startsWith("@@"))continue;l.startsWith("-")&&!l.startsWith("---")?i.oldLines.push(l.slice(1)):l.startsWith("+")&&!l.startsWith("+++")&&i.newLines.push(l.slice(1))}else(i==null?void 0:i.kind)==="add"&&(l.startsWith("+")?i.newLines.push(l.slice(1)):l.trim()&&i.newLines.push(l));return a(),n}function B8({op:e}){const n=z8[e.kind]??"file",i=e.oldLines.length+e.newLines.length,a=i>Gc,l=a&&i>0?Math.round(Gc*(e.oldLines.length/i)):e.oldLines.length,s=a?Gc-l:e.newLines.length;return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-baseline gap-2",children:[v.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:n}),e.path&&v.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Lm(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&v.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,l).map((c,f)=>v.jsxs("div",{className:"text-red-400/60",children:[v.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${f}`)),e.newLines.slice(0,s).map((c,f)=>v.jsxs("div",{className:"text-emerald-400/60",children:[v.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${f}`)),a&&v.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",i-Gc," more lines"]})]})]})}function U8({args:e,result:n,status:i}){const a=j8(I8(e));return a.length===0?v.jsxs("div",{children:[v.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),i==="failed"&&typeof n=="string"&&n.trim()&&v.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:n.trim()})]}):v.jsxs("div",{className:"space-y-2",children:[a.map((l,s)=>v.jsx(B8,{op:l},s)),i==="failed"&&typeof n=="string"&&n.trim()&&v.jsx("div",{className:"text-red-400/70 text-[13px]",children:n.trim()})]})}function H8({args:e,result:n}){const i=(e.path??"").trim(),a=n;let l=null;if(typeof a=="string"){const s=a.trim();s&&!s.toLowerCase().startsWith("data:image/")&&!s.startsWith("{")&&(l=s)}return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-baseline gap-2",children:[v.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),i&&v.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Lm(i)})]}),l&&v.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:l})]})}const $8={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function q8({args:e,result:n}){const i=e.title??"",a=e.description??"",l=e.impact??"",s=e.target??"",c=e.endpoint??"",f=e.method??"",h=e.technical_analysis??"",d=e.poc_description??"",p=e.poc_script_code??"",m=e.remediation_steps??"",y=e.cve??"",b=e.cwe??"",_=n,S=(_&&typeof _=="object"?_.severity:null)??e.severity??"medium",N=String(S).toLowerCase(),E=(_&&typeof _=="object"?_.cvss_score:null)??e.cvss??null,k=$8[N]??"text-yellow-400";return v.jsxs("div",{className:"space-y-3",children:[v.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[v.jsx("span",{className:`font-semibold text-sm ${k}`,children:N.toUpperCase()}),E!=null&&v.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",E]}),y&&v.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),b&&v.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:b})]}),i&&v.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:i}),(s||c)&&v.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[s,c?` ${f} ${c}`:""]}),a&&v.jsx(Ln,{text:a,maxLines:20}),l&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),v.jsx("div",{className:"mt-1",children:v.jsx(Ln,{text:l,maxLines:15})})]}),h&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),v.jsx("div",{className:"mt-1",children:v.jsx(Ln,{text:h,maxLines:20})})]}),(d||p)&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),d&&v.jsx("div",{className:"mt-1",children:v.jsx(Al,{text:d})}),p&&v.jsx(dE,{children:p})]}),m&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),v.jsx("div",{className:"mt-1",children:v.jsx(Ln,{text:m,maxLines:15})})]})]})}const iS=200,rS={GET:"text-emerald-400/80",POST:"text-blue-400/80",PUT:"text-yellow-400/80",PATCH:"text-orange-400/80",DELETE:"text-red-400/80"};function zm(e){return e<300?"text-emerald-400/80":e<400?"text-yellow-400/80":e<500?"text-orange-400/80":"text-red-400/80"}function Pi(e,n=80){return e.length>n?e.slice(0,n-3)+"...":e}function Hp(e,n=150){return Pi(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),n)}function $p(e,n){const i=e.split(` -`),a=i.slice(0,n).map(l=>Pi(l,iS-5)).join(` -`);return i.length>n?a+` -...`:a}function P8({args:e,result:n}){const i=e.httpql_filter??"",a=n,l=a?a.requests:null,s=Array.isArray(l)?l:[];return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),i&&v.jsx("span",{className:"text-[#888] text-[13px]",children:Pi(i,150)})]}),s.length>0&&v.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[s.slice(0,20).map((c,f)=>{const h=(c.method??"GET").toUpperCase(),d=c.host??"",p=c.path??"",m=c.response,y=(m==null?void 0:m.statusCode)??null;return v.jsxs("div",{className:"flex gap-2",children:[v.jsx("span",{className:`w-10 shrink-0 font-bold ${rS[h]??"text-[#888]"}`,children:h}),v.jsx("span",{className:"text-[#777] truncate",children:Pi(d+p,180)}),y!=null&&v.jsx("span",{className:`ml-auto shrink-0 ${zm(y)}`,children:y})]},f)}),s.length>20&&v.jsxs("div",{className:"text-[#555]",children:["... +",s.length-20," more"]})]})]})}function F8({args:e,result:n}){const i=e.request_id,a=e.part??"request",l=e.search_pattern??"",s=n,c=s?s.matches:null,f=Array.isArray(c)?c:[],h=s?s.content??null:null,d=s?!!s.has_more:!1;return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[l?"searching":"viewing"," ",a]}),i!=null&&v.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]}),l&&v.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Pi(l,100),"/"]})]}),f.length>0&&v.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[f.slice(0,5).map((p,m)=>{const y=(p.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),b=(p.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return v.jsxs("div",{children:[y&&v.jsxs("span",{className:"text-[#555]",children:["...",y]}),v.jsx("span",{className:"text-amber-400/80 font-bold",children:p.match}),b&&v.jsxs("span",{className:"text-[#555]",children:[b,"..."]})]},m)}),f.length>5&&v.jsxs("div",{className:"text-[#555]",children:["... +",f.length-5," more matches"]})]}),h&&!f.length&&(()=>{const p=h.split(` -`),m=p.slice(0,15).map(b=>Pi(b,iS)).join(` -`),y=d||p.length>15;return v.jsx(gr,{className:"text-[#666]",children:m+(y?` -... more content available`:"")})})()]})}function G8({args:e,result:n}){const i=(e.method??"GET").toUpperCase(),a=e.url??"",l=e.headers,s=e.body,c=typeof s=="string"?s:"",f=n,h=f?f.error??null:null,d=f?f.status_code??null:null,p=f?f.response_time_ms??null:null,m=f?f.body:null,y=typeof m=="string"?m:null;return v.jsxs("div",{children:[v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),v.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[v.jsxs("div",{children:[v.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),v.jsx("span",{className:`font-bold ${rS[i]??"text-[#888]"}`,children:i}),v.jsx("span",{className:"text-[#888] ml-1 break-all",children:Pi(a,180)})]}),l&&typeof l=="object"&&Object.entries(l).slice(0,5).map(([b,_])=>v.jsxs("div",{className:"text-[#555] pl-5",children:[b,": ",Hp(String(_),150)]},b))]}),c&&v.jsx(gr,{className:"text-[#888]",children:$p(c,4)}),h&&v.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:Hp(h,150)}),d!=null&&v.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[v.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),v.jsx("span",{className:`font-bold ${zm(d)}`,children:d}),p!=null&&v.jsxs("span",{className:"text-[#555] ml-2",children:[p,"ms"]})]}),y&&v.jsx(gr,{className:"text-[#666]",children:$p(y,6)})]})}function V8({args:e,result:n}){const i=e.request_id,a=e.modifications,l=n,s=l?l.status_code??null:null,c=l?l.response_time_ms??null:null,f=l?l.body:null,h=typeof f=="string"?f:null;return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),i!=null&&v.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&v.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([d,p])=>v.jsxs("div",{children:[v.jsxs("span",{className:"text-orange-400/60",children:[d,":"]})," ",v.jsx("span",{className:"text-[#777]",children:Hp(typeof p=="string"?p:JSON.stringify(p),150)})]},d))}),s!=null&&v.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[v.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),v.jsx("span",{className:`font-bold ${zm(s)}`,children:s}),c!=null&&v.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),h&&v.jsx(gr,{className:"text-[#666]",children:$p(h,5)})]})}const Y8={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function X8({args:e}){const n=e.action??"",i=e.scope_name??"",a=Y8[n]??(n||"managing");return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),i&&v.jsx("span",{className:"text-[#888] text-[13px]",children:Pi(i,50)})]})}function K8({args:e}){const n=e.parent_id;return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),n&&v.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Pi(String(n),20)]})]})}function Z8({args:e}){const n=e.entry_id;return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),n&&v.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Pi(String(n),20)]})]})}function Q8(e){switch(e.toolName){case"list_requests":return v.jsx(P8,{...e});case"view_request":return v.jsx(F8,{...e});case"send_request":return v.jsx(G8,{...e});case"repeat_request":return v.jsx(V8,{...e});case"scope_rules":return v.jsx(X8,{...e});case"list_sitemap":return v.jsx(K8,{...e});case"view_sitemap_entry":return v.jsx(Z8,{...e});default:return v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function W8({args:e}){const n=e.thought??e.content??"";return n?v.jsxs("div",{children:[v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),v.jsx("div",{className:"mt-1.5 italic text-[#888]",children:v.jsx(Ln,{text:n,maxLines:20})})]}):null}function J8({toolName:e,args:n}){if(e==="create_agent"){const i=n.name??n.agent_name??"",a=n.task??"";return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),i&&v.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:i})]}),a&&v.jsx("div",{className:"mt-1.5",children:v.jsx(Ln,{text:a,maxLines:15})})]})}if(e==="agent_finish"){const i=n.result_summary??"",a=n.success,l=n.findings,s=Array.isArray(l)?l:void 0;return v.jsxs("div",{children:[v.jsx("span",{className:`font-semibold text-sm ${a===!1?"text-red-400/80":"text-emerald-400/80"}`,children:a===!1?"Agent failed":"Agent completed"}),i&&v.jsx("div",{className:"mt-1.5",children:v.jsx(Ln,{text:i,maxLines:20})}),s&&s.length>0&&v.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((c,f)=>v.jsxs("div",{className:"text-[13px] text-[#888]",children:[v.jsx("span",{className:"text-red-400/50 mr-1",children:"•"}),typeof c=="string"?c:JSON.stringify(c)]},f))})]})}if(e==="send_message_to_agent"){const i=n.message??"",a=n.target_agent_id??n.agent_id??"";return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&v.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),i&&v.jsx("div",{className:"mt-1.5",children:v.jsx(Ln,{text:i,maxLines:20})})]})}if(e==="wait_for_message"){const i=n.reason??"";return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),i&&v.jsx("span",{className:"text-[#888] text-[13px] truncate",children:i})]})}if(e==="stop_agent"){const i=n.target_agent_id??"",a=n.cascade!==!1,l=n.reason??"";return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[v.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),i&&v.jsx("span",{className:"text-[#888] text-[13px]",children:i.slice(0,16)}),a&&v.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),l&&v.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:l})]})}return e==="view_agent_graph"?v.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):v.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function e9({args:e,result:n}){const i=e.query??e.search_query??"",a=n,l=a?a.content??null:null,s=a&&!a.success?a.message??null:null;return v.jsxs("div",{children:[v.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),i&&v.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:i}),s&&v.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:s}),l&&v.jsx("div",{className:"mt-2",children:v.jsx(Ln,{text:l,maxLines:15})})]})}const t9=50,M_=200,O_=25,R_=24,n9=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,i9=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function r9(e){return e.replace(n9,"")}function sp(e){const n=r9(e);return n.length>M_?n.slice(0,M_-3)+"...":n}function a9(e){return e.replace(i9,"").trim()}function l9(e){const n=e.split(` -`);if(n.length<=t9)return n.map(sp).join(` -`);const i=n.length-O_-R_;return[...n.slice(0,O_).map(sp),`... ${i} lines truncated ...`,...n.slice(-R_).map(sp)].join(` -`)}function o9({args:e,result:n}){const i=e.action??"",a=e.code??e.script??"",l=n;let s=null;l&&typeof l=="object"?s=typeof l.stdout=="string"?l.stdout:null:typeof l=="string"&&(s=l);const c=i==="new_session"?"new session":i==="close"?"close session":i==="list_sessions"?"list sessions":null,f=s?l9(a9(s)):null;return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&v.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&v.jsx(Dm,{code:a,language:"python",collapsible:!0}),f&&v.jsx(gr,{className:"text-[#666]",children:f})]})}function s9({args:e}){const n=e.targets,a=(Array.isArray(n)?n:[]).map(l=>typeof l=="object"&&l?l.original??null:null).filter(Boolean);return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&v.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&v.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((l,s)=>v.jsxs("div",{className:"text-[13px] text-[#888]",children:[v.jsx("span",{className:"text-[#555] mr-1",children:"•"}),l]},s))})]})}function c9({args:e}){const n=e.name??"Unknown Agent",i=e.task??"";return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),v.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:n})]}),i&&v.jsx("div",{className:"mt-1.5",children:v.jsx(Ln,{text:i,maxLines:15})})]})}function u9(e){return e.toolName==="subagent_start_info"?v.jsx(c9,{...e}):v.jsx(s9,{...e})}function f9({args:e}){const n=e.executive_summary??"",i=e.methodology??"",a=e.technical_analysis??"",l=e.recommendations??"";return v.jsxs("div",{className:"space-y-3",children:[v.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),n&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),v.jsx("div",{className:"mt-1",children:v.jsx(Ln,{text:n,maxLines:25})})]}),i&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),v.jsx("div",{className:"mt-1",children:v.jsx(Ln,{text:i,maxLines:25})})]}),a&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),v.jsx("div",{className:"mt-1",children:v.jsx(Ln,{text:a,maxLines:25})})]}),l&&v.jsxs("div",{children:[v.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),v.jsx("div",{className:"mt-1",children:v.jsx(Ln,{text:l,maxLines:25})})]}),!n&&!i&&!a&&!l&&v.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function d9({toolName:e,args:n,result:i}){if(e==="create_note"){const a=n.title??"",l=n.content??"",s=n.category??"general";return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),v.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",s,")"]})]}),a&&v.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),l&&v.jsx("div",{className:"mt-1",children:v.jsx(Al,{text:l})})]})}if(e==="delete_note")return v.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note removed"});if(e==="update_note"){const a=n.title??"",l=n.content??"";return v.jsxs("div",{children:[v.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&v.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),l&&v.jsx("div",{className:"mt-1",children:v.jsx(Al,{text:l})})]})}if(e==="get_note"){const a=i,l=a&&typeof a=="object"&&a.success?a.note:void 0;return v.jsxs("div",{children:[v.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),l&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[l.title??"(untitled)",v.jsxs("span",{className:"text-[#555] ml-1",children:["(",l.category??"general",")"]})]}),l.content&&v.jsx("div",{className:"mt-1",children:v.jsx(Al,{text:l.content})})]})]})}if(e==="list_notes"){const a=i;let l=[];if(a&&typeof a=="object"&&a.success){const s=a.notes;l=Array.isArray(s)?s:[]}return v.jsxs("div",{children:[v.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),l.length>0?v.jsx("div",{className:"mt-1.5 space-y-0.5",children:l.map((s,c)=>v.jsxs("div",{className:"text-[13px]",children:[v.jsx("span",{className:"text-[#555] mr-1",children:"-"}),v.jsx("span",{className:"text-[#999]",children:s.title??"(untitled)"}),v.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]}),s.content&&v.jsx("div",{className:"ml-3",children:v.jsx(Al,{text:s.content})})]},c))}):v.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return v.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const h9={create_todo:{label:"Task added",Icon:R2},list_todos:{label:"Plan",Icon:Fk},update_todo:{label:"Task updated",Icon:M2},mark_todo_done:{label:"Task completed",Icon:$_},mark_todo_pending:{label:"Task reopened",Icon:B2},delete_todo:{label:"Task removed",Icon:Z2}};function p9({status:e}){return e==="done"?v.jsx($_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?v.jsx(e2,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):v.jsx(n2,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function m9({todos:e,highlightId:n}){return v.jsx("div",{className:"space-y-0",children:e.map((i,a)=>{const l=i.status??"pending",s=n&&i.id===n;return v.jsxs("div",{className:`flex items-start gap-2.5 py-1.5 px-2 -mx-2 rounded-md transition-colors ${s?"bg-purple-500/[0.08]":""}`,children:[v.jsx("div",{className:"mt-[1px]",children:v.jsx(p9,{status:l})}),v.jsx("span",{className:`text-[13px] leading-snug ${l==="done"?"text-[#555] line-through":l==="in_progress"?"text-[#bbb]":"text-[#999]"}`,children:i.title??"(untitled)"})]},i.id??a)})})}function g9({toolName:e,args:n,result:i}){const a=h9[e]??{label:"Plan",Icon:L2},l=a.Icon,s=i;if(typeof s=="string"&&s.trim())return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(l,{className:"w-3.5 h-3.5 text-purple-400/60"}),v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),v.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s.trim()})]});let c=[],f=null,h;if(s&&typeof s=="object"){if(f=s.error??null,s.success){const p=s.todos;c=Array.isArray(p)?p:[]}h=s.id??n.todo_id??void 0}const d=e!=="list_todos"?h:void 0;return c.length===0&&!f?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(l,{className:"w-3.5 h-3.5 text-purple-400/60"}),v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx(l,{className:"w-3.5 h-3.5 text-purple-400/60"}),v.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),f&&v.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:f}),c.length>0&&v.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:v.jsx(m9,{todos:c,highlightId:d})})]})}function D_(e){if(e==null)return null;if(typeof e=="string")return e.trim()?e:null;if(typeof e=="object"){const n=e;if(typeof n.__raw=="string")return n.__raw;if(Object.keys(n).length===0)return null;try{return JSON.stringify(e,null,2)}catch{return String(e)}}return String(e)}function aS({toolName:e,args:n,result:i}){const a=D_(n),l=D_(i);return v.jsxs("div",{children:[v.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&v.jsx(gr,{className:"text-[#777]",children:a}),l&&v.jsx(gr,{className:"text-[#666]",children:l})]})}function b9({args:e}){const i=(e.skills??"").split(",").map(a=>a.trim()).filter(Boolean);return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),i.length>0&&v.jsx("span",{className:"text-[#888] text-[13px]",children:i.join(", ")})]})}const zu={terminal:{renderer:C8,icon:X2,color:"text-emerald-400"},python:{renderer:o9,icon:a2,color:"text-yellow-400"},browser:{renderer:O8,icon:F_,color:"text-blue-400"},filesystem:{renderer:R8,icon:d2,color:"text-sky-400"},proxy:{renderer:Q8,icon:zk,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:q8,icon:q2,color:"text-red-400"},thinking:{renderer:W8,icon:H_,color:"text-purple-400"},agents:{renderer:J8,icon:qp,color:"text-cyan-400",match:/agent/},search:{renderer:e9,icon:H2,color:"text-amber-400"},lifecycle:{renderer:u9,icon:P_,color:"text-emerald-400"},notes:{renderer:d9,icon:V2,color:"text-amber-400",match:/note/},skills:{renderer:b9,icon:ky,color:"text-emerald-400"},todos:{renderer:g9,icon:N2,color:"text-purple-400",match:/todo/},telemetry:{renderer:aS,icon:ky,color:"text-[#555]"}},y9={terminal:["exec_command","write_stdin","terminal_execute"],python:["python_action"],browser:["browser_action"],filesystem:["apply_patch","view_image","str_replace_editor","list_files","search_files"],proxy:["list_requests","view_request","repeat_request","list_sitemap","view_sitemap_entry","scope_rules","send_request"],reporting:["create_vulnerability_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_message","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan"],notes:["create_note","delete_note","update_note","list_notes","get_note"],skills:["load_skill"],todos:["create_todo","list_todos","update_todo","mark_todo_done","mark_todo_pending","delete_todo"],telemetry:["sandbox_error_details","llm_error_details"]},x9=Object.fromEntries(Object.entries(y9).flatMap(([e,n])=>n.map(i=>[i,e]))),v9={finish_scan:f9,apply_patch:U8,view_image:H8},_9={agent_finish:{icon:P_,color:"text-cyan-400"},send_message_to_agent:{icon:Ny,color:"text-cyan-400"},wait_for_message:{icon:Ny,color:"text-cyan-400"},view_agent_graph:{icon:u2,color:"text-cyan-400"},stop_agent:{icon:U_,color:"text-red-400"},scan_start_info:{icon:s2,color:"text-emerald-400"},subagent_start_info:{icon:qp,color:"text-purple-400"},view_image:{icon:w2,color:"text-sky-400"}},E9=zu.telemetry;function lS(e){var i;const n=x9[e];if(n)return n;for(const[a,l]of Object.entries(zu))if((i=l.match)!=null&&i.test(e))return a;return null}function w9(e){const n=v9[e];if(n)return n;const i=lS(e);return i?zu[i].renderer:aS}function S9(e){const n=_9[e];if(n)return n;const i=lS(e),a=i?zu[i]:E9;return{icon:a.icon,color:a.color}}const N9=30;function k9({role:e,content:n}){const i=e==="user"||e==="human";return v.jsxs("div",{children:[v.jsx("span",{className:`font-semibold text-sm ${i?"text-blue-400/80":"text-purple-400/80"}`,children:i?"User":"Thinking"}),v.jsx("div",{className:"mt-1.5 italic text-[#888]",children:v.jsx(Ln,{text:n,maxLines:N9})})]})}class T9 extends ae.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?v.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function A9(e){const n=w9(e.toolName);return v.jsx(T9,{toolName:e.toolName,children:v.jsx(n,{...e})})}function oS(e){if(e==null||typeof e!="string")return e;const n=e.trim();if(!n)return e;try{return JSON.parse(n)}catch{}try{const i=n.replace(/\bNone\b/g,"null").replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/'/g,'"');return JSON.parse(i)}catch{return{__raw:e}}}function sS(e){const n=oS(e);return n&&typeof n=="object"&&!Array.isArray(n)?n:n==null?{}:{__raw:typeof n=="string"?n:JSON.stringify(n)}}function L_(e){const n=/(\d+)$/.exec(e);return n?parseInt(n[1],10):0}function cS(e){var i;const n=(i=e.data)==null?void 0:i.role;return e.type==="chat"&&(n==="user"||n==="human")}const C9={completed:"text-emerald-400 border-emerald-500/30 bg-emerald-500/10",running:"text-blue-400 border-blue-500/30 bg-blue-500/10",waiting:"text-yellow-400 border-yellow-500/30 bg-yellow-500/10",stopped:"text-[#aaa] border-[#333] bg-[#1a1a1a]",crashed:"text-red-400 border-red-500/30 bg-red-500/10",failed:"text-red-400 border-red-500/30 bg-red-500/10"};function M9(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function O9(e,n){var f;const i=new Map;for(const h of e)if(h.parent_id){const d=i.get(h.parent_id)??[];d.push(h.id),i.set(h.parent_id,d)}const a=new Map,l=new Map,s=new Map;for(const h of n)if(h.type==="tool"){if(a.set(h.agent_id,(a.get(h.agent_id)??0)+1),((f=h.data)==null?void 0:f.tool_name)==="create_agent"){const d=sS(h.data.args),p=d.name??d.agent_name??"",m=d.task??"";p&&m&&s.set(p,m)}}else cS(h)||l.set(h.agent_id,(l.get(h.agent_id)??0)+1);const c=new Map;for(const h of e)c.set(h.id,{id:h.id,name:h.name,task:s.get(h.name)??"",status:M9(h.status),parentId:h.parent_id,children:i.get(h.id)??[],createdAt:h.created_at,toolCount:a.get(h.id)??0,messageCount:l.get(h.id)??0});return c}function R9({agent:e,events:n,showHeader:i=!0}){const a=ae.useMemo(()=>n.filter(c=>c.agent_id===e.id&&!cS(c)).sort((c,f)=>L_(c.id)-L_(f.id)),[n,e.id]),l=a.filter(c=>c.type==="tool").length,s=a.length-l;return v.jsxs("div",{children:[i&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[v.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),v.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${C9[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),v.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),v.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[s," message",s===1?"":"s"," · ",l," tool call",l===1?"":"s"]})]}),a.length===0?v.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):v.jsx("div",{className:"py-1",children:a.map((c,f)=>{var S,N,E,k,w,O;const h=f===a.length-1,d=c.type==="tool",p=d?String(((S=c.data)==null?void 0:S.tool_name)??"tool"):"",m=d?"":String(((N=c.data)==null?void 0:N.role)??"assistant");let y,b;if(d){const I=S9(p);y=I.icon,b=I.color}else{const I=m==="user"||m==="human";y=I?qp:H_,b=I?"text-blue-400":"text-purple-400"}const _=d?String(((E=c.data)==null?void 0:E.status)??"completed"):"completed";return v.jsxs("div",{className:"flex gap-3",children:[v.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[v.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${d&&_==="running"?"border-blue-500/40 animate-pulse":d&&_==="failed"?"border-red-500/30":"border-[#222]"}`,children:v.jsx(y,{className:`w-3.5 h-3.5 ${b}`})}),!h&&v.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),v.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:d?v.jsx(A9,{toolName:p,args:sS((k=c.data)==null?void 0:k.args),result:oS((w=c.data)==null?void 0:w.result)??null,status:_}):v.jsx(k9,{role:m,content:String(((O=c.data)==null?void 0:O.content)??"")})})]},c.id)})})]})}const uS="https://app.strix.ai/api/auth/signup";function Im(e){try{const n=JSON.stringify({event:"cta_clicked",cta:e});typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",n):fetch("/api/event",{method:"POST",body:n,keepalive:!0})}catch{}}const D9={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},L9=80;function z9({agent:e,events:n,onClose:i}){const a=ae.useRef(null),l=ae.useRef(!1),s=ae.useCallback(()=>{const c=a.current;c&&(l.current=c.scrollHeight-c.scrollTop-c.clientHeight{const c=a.current;!c||!l.current||requestAnimationFrame(()=>{c.scrollTo({top:c.scrollHeight,behavior:"smooth"})})},[n]),ae.useEffect(()=>{const c=h=>{h.key==="Escape"&&i()};document.addEventListener("keydown",c);const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",c),document.body.style.overflow=f}},[i]),v.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4 sm:p-8",onClick:i,role:"dialog","aria-modal":"true","aria-label":`Agent ${e.name}`,children:v.jsxs("div",{className:"relative flex h-[80vh] w-full max-w-5xl flex-col rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl",onClick:c=>c.stopPropagation(),children:[v.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[v.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[v.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${D9[e.status]??"bg-[#888]"}`}),v.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name}),v.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:e.id})]}),v.jsx("button",{type:"button",onClick:i,"aria-label":"Close",className:"flex-shrink-0 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white",children:v.jsx(tT,{className:"h-4 w-4"})})]}),v.jsx("div",{ref:a,onScroll:s,className:"flex-1 overflow-y-auto p-5",children:v.jsx(R9,{agent:e,events:n,showHeader:!1})}),v.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-[#222] px-5 py-3",children:[v.jsx("span",{className:"text-xs text-[#888]",children:"Steer agents live from your terminal."}),v.jsx("a",{href:uS,target:"_blank",rel:"noopener noreferrer",onClick:()=>Im("steer_agent"),className:"text-xs font-medium text-[#60a5fa] hover:underline",children:"Upgrade to Pro to steer agents from the web →"})]})]})})}class bu extends Error{constructor(n){super(n),this.name="RunParseError"}}const I9=["critical","high","medium","low"];function j9(e){const n=String(e??"").toLowerCase().trim();return I9.includes(n)?n:"low"}function B9(e){if(typeof e=="string"&&e.trim()){const n=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(n);if(!Number.isNaN(i.getTime()))return i.toISOString();const a=new Date(e);if(!Number.isNaN(a.getTime()))return a.toISOString()}return new Date().toISOString()}function Ot(e){return typeof e=="string"&&e.length>0?e:null}function U9(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function fS(e,n){try{return JSON.parse(e)}catch{throw new bu(`${n} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function H9(e){const n=fS(e,"run.json");if(!n||typeof n!="object"||Array.isArray(n))throw new bu("run.json is not an object.");const i=n,a=[],l=i.targets_info;if(Array.isArray(l)){for(const b of l)if(b&&typeof b=="object"){const _=b.original;typeof _=="string"&&_&&a.push(_)}}const s=Ot(i.start_time),c=Ot(i.end_time);let f=null;if(s&&c){const b=new Date(s).getTime(),_=new Date(c).getTime();!Number.isNaN(b)&&!Number.isNaN(_)&&_>=b&&(f=Math.round((_-b)/1e3))}let h=null,d=null,p=null,m=null;const y=i.scan_results;if(y&&typeof y=="object"){const b=y;h=Ot(b.executive_summary),d=Ot(b.technical_analysis),p=Ot(b.methodology),m=Ot(b.recommendations)}return{runId:Ot(i.run_id),runName:Ot(i.run_name),targets:a,scanMode:Ot(i.scan_mode),status:Ot(i.status),startTime:s,endTime:c,durationSeconds:f,executiveSummary:h,technicalAnalysis:d,methodology:p,recommendations:m}}function $9(){return{pr_review_id:null,cve:null,cvss:null,potential_risk_saving:null,risk_saving_description:null,impact:null,endpoint:null,method:null,target:null,technical_analysis:null,poc_description:null,poc_script_code:null,code_diff:null,code_file:null,code_before:null,code_after:null,cwe:null,code_locations:null,remediation_steps:null,fix_pr_body:null,evidence:null,assumptions:null,fix_effort:null,cvss_breakdown:null,status_changed_at:null,status_changed_by:null,status_note:null,snoozed_until:null,reopened_at:null,reopened_by:null,original_severity:null,severity_changed_at:null,severity_changed_by:null,severity_override_reason:null,retest_of_vulnerability_id:null}}function q9(e,n,i){const a=e.cwe,l=typeof a=="string"&&a.trim()?[a.trim()]:Array.isArray(a)?a.filter(c=>typeof c=="string"&&c):null;return{...$9(),id:Ot(e.id)??`vuln-${n+1}`,scan_id:i,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:j9(e.severity),status:"open",created_at:B9(e.timestamp),cve:Ot(e.cve),cvss:U9(e.cvss),impact:Ot(e.impact),endpoint:Ot(e.endpoint),method:Ot(e.method),target:Ot(e.target),technical_analysis:Ot(e.technical_analysis),poc_description:Ot(e.poc_description),poc_script_code:Ot(e.poc_script_code),cwe:l,code_locations:Array.isArray(e.code_locations)?e.code_locations:null,remediation_steps:Ot(e.remediation_steps),fix_pr_body:Ot(e.fix_pr_body),evidence:Ot(e.evidence),assumptions:Ot(e.assumptions),fix_effort:Ot(e.fix_effort)??null,cvss_breakdown:e.cvss_breakdown??null}}function P9(e,n=null){const i=fS(e,"vulnerabilities.json");if(!Array.isArray(i))throw new bu("vulnerabilities.json is not a JSON array.");return i.map((a,l)=>{if(!a||typeof a!="object")throw new bu(`vulnerabilities.json entry #${l+1} is not an object.`);return q9(a,l,n)})}function F9(e){const n={critical:0,high:0,medium:0,low:0};for(const i of e)n[i.severity]+=1;return n}async function Iu(e){const n=await fetch(e,{cache:"no-store"});if(!n.ok)throw new Error(`${e} responded ${n.status}`);return n.json()}async function dS(){const e=await Iu("/api/run"),n=H9(JSON.stringify(e)),i=e.finished===!0;return{summary:n,raw:e,finished:i}}async function hS(e){const n=await Iu("/api/vulnerabilities");return P9(JSON.stringify(n),e)}async function G9(){const e=await Iu("/api/report");return(e==null?void 0:e.markdown)??null}async function pS(){const e=await Iu("/api/transcript");return{agents:Array.isArray(e==null?void 0:e.agents)?e.agents:[],events:Array.isArray(e==null?void 0:e.events)?e.events:[]}}async function z_(){const{summary:e,raw:n,finished:i}=await dS(),[a,l,s]=await Promise.all([hS(e.runId).catch(()=>[]),G9().catch(()=>null),pS().catch(()=>({agents:[],events:[]}))]);return{summary:e,raw:n,finished:i,vulnerabilities:a,reportMarkdown:l,transcript:s}}const V9="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix.",I_=["critical","high","medium","low"],Y9=500;function X9(){const[e,n]=ae.useState(null),[i,a]=ae.useState(null),[l,s]=ae.useState(null),[c,f]=ae.useState("overview"),h=ae.useRef(!1);ae.useEffect(()=>{let y=!1,b;const _=()=>{b=setTimeout(S,Y9)},S=async()=>{if(!y)try{const{summary:N,raw:E,finished:k}=await dS();if(y)return;if(k&&!h.current){h.current=!0;const I=await z_();y||n(I);return}const[w,O]=await Promise.all([pS().catch(()=>({agents:[],events:[]})),hS(N.runId).catch(()=>[])]);if(y)return;n(I=>({summary:N,raw:E,finished:k,transcript:w,vulnerabilities:O,reportMarkdown:(I==null?void 0:I.reportMarkdown)??null})),_()}catch(N){if(y)return;a(N instanceof Error?N.message:"Could not load run data."),_()}};return(async()=>{try{const N=await z_();if(y)return;n(N),N.finished?h.current=!0:_()}catch(N){if(y)return;a(N instanceof Error?N.message:"Could not load run data."),_()}})(),()=>{y=!0,b&&clearTimeout(b)}},[]);const d=ae.useMemo(()=>e?F9(e.vulnerabilities):null,[e]),p=(e==null?void 0:e.vulnerabilities.find(y=>y.id===l))??null,m=(e==null?void 0:e.transcript.agents.length)??0;return v.jsxs("div",{className:"min-h-screen bg-black text-white",children:[v.jsx("div",{className:"border-b border-[#222]",children:v.jsxs("div",{className:"max-w-[88rem] mx-auto px-6 py-4 flex items-center gap-1.5",children:[v.jsxs("a",{href:"https://app.strix.ai",target:"_blank",rel:"noopener noreferrer",onClick:()=>Im("logo"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100",title:"Open Strix Cloud",children:[v.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),v.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),v.jsx("span",{className:"ml-3 text-xs text-[#666]",children:"Local results"}),e&&v.jsx(K9,{finished:e.finished})]})}),v.jsxs("div",{className:"max-w-[88rem] mx-auto px-6 py-8 space-y-6",children:[v.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[v.jsx(F2,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-emerald-400","aria-hidden":"true"}),v.jsx("p",{className:"text-sm text-[#aaa] leading-relaxed",children:V9})]}),i&&!e&&v.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[v.jsx(Kk,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),v.jsx("p",{className:"text-sm text-red-300",children:i})]}),!e&&!i&&v.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[v.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),v.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}),e&&d&&v.jsxs(v.Fragment,{children:[v.jsx(Q9,{summary:e.summary}),v.jsx(iU,{}),v.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a]",children:[v.jsx(up,{active:c==="overview",onClick:()=>f("overview"),children:"Overview"}),v.jsxs(up,{active:c==="issues",onClick:()=>f("issues"),children:["Issues",e.vulnerabilities.length>0?` (${e.vulnerabilities.length})`:""]}),m>0&&v.jsxs(up,{active:c==="agents",onClick:()=>f("agents"),children:["Agents (",m,")"]})]}),c==="overview"?v.jsx(tU,{summary:e.summary,counts:d,total:e.vulnerabilities.length,reportMarkdown:e.reportMarkdown}):c==="agents"&&m>0?v.jsx(rU,{run:e}):p?v.jsxs("div",{className:"space-y-4",children:[v.jsxs("button",{onClick:()=>s(null),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] hover:text-white transition-colors",children:[v.jsx(Dk,{className:"w-4 h-4"})," Back to all findings"]}),v.jsx(ML,{vulnerability:p})]}):v.jsx(W9,{vulnerabilities:e.vulnerabilities,finished:e.finished,onSelect:y=>s(y)})]})]})]})}function K9({finished:e}){return e?v.jsxs("span",{className:"ml-auto inline-flex items-center gap-1.5 text-xs text-[#888]",children:[v.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):v.jsxs("span",{className:"ml-auto inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[v.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[v.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),v.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function Z9(e){if(e==null)return null;if(e<60)return`${e}s`;const n=Math.floor(e/60);return n<60?`${n}m`:`${Math.floor(n/60)}h ${n%60}m`}function Q9({summary:e}){const n=Z9(e.durationSeconds);return v.jsxs("div",{children:[v.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.runName??e.runId??"Scan results"}),v.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-[#888]",children:[e.targets.length>0&&v.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&v.jsx(cp,{label:e.scanMode}),n&&v.jsx(cp,{label:n}),e.status&&v.jsx(cp,{label:e.status})]})]})}function cp({label:e}){return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-[#333]",children:"·"}),v.jsx("span",{className:"capitalize",children:e})]})}function W9({vulnerabilities:e,finished:n,onSelect:i}){const a=[...e].sort((l,s)=>I_.indexOf(l.severity)-I_.indexOf(s.severity));return a.length===0?v.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:n?"No findings in this run.":"No findings yet. The scan is still running…"}):v.jsx("div",{className:"space-y-2",children:a.map(l=>v.jsxs("button",{onClick:()=>i(l.id),className:"cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3",children:[v.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${Pp(l.severity)}`,"aria-hidden":"true"}),v.jsxs("span",{className:"flex-1 min-w-0",children:[v.jsx("span",{className:"block text-sm font-medium text-white truncate",children:l.title}),l.target&&v.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:l.target})]}),v.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${G_[l.severity]}`,children:l.severity})]},l.id))})}function J9(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function eU(e){const n=[];let i=null;for(const a of e.split(` -`)){const l=a.match(/^#{1,6}\s+(.*)$/);if(l){const s=l[1].trim().toLowerCase();if(s===i)continue;i=s}else a.trim()!==""&&(i=null);n.push(a)}return n.join(` -`)}function tU({summary:e,counts:n,total:i,reportMarkdown:a}){const l=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,s])=>!!s).map(([s,c])=>({title:s,content:J9(c)}));return v.jsxs("div",{className:"space-y-6",children:[i>0&&v.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:v.jsx(OL,{findings:{total:i,...n}})}),l.length>0?v.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:l.map(s=>v.jsx(ta,{title:s.title,content:s.content},s.title))}):a?v.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:v.jsx(ta,{content:eU(a)})}):i===0&&v.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."})]})}function up({active:e,onClick:n,children:i}){return v.jsxs("button",{onClick:n,className:`cursor-pointer relative pb-2.5 text-sm font-semibold transition-colors ${e?"text-white":"text-[#666] hover:text-white"}`,children:[i,e&&v.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}const nU=[{feature:"cloud pentests",title:"Re-run in Strix Cloud",desc:"Run this scan on managed infra with more depth.",icon:I2},{feature:"scheduled scans",title:"Schedule recurring scans",desc:"Continuously retest on a cadence you choose.",icon:qk},{feature:"PR reviews",title:"PR security reviews",desc:"Catch vulnerabilities in every pull request.",icon:m2}];function iU(){return v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:nU.map(e=>{const n=e.icon;return v.jsxs("a",{href:uS,target:"_blank",rel:"noopener noreferrer",onClick:()=>Im(e.feature),className:"cursor-pointer text-left rounded-xl border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] p-4 transition-colors group block",children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx(n,{className:"w-4 h-4 text-[#888] group-hover:text-white transition-colors"}),v.jsx(T2,{className:"w-3.5 h-3.5 text-[#555]","aria-hidden":"true"})]}),v.jsx("p",{className:"text-sm font-medium text-white",children:e.title}),v.jsx("p",{className:"text-xs text-[#666] mt-0.5",children:e.desc})]},e.title)})})}function rU({run:e}){const{agents:n,events:i}=e.transcript,a=ae.useMemo(()=>O9(n,i),[n,i]),[l,s]=ae.useState(null),c=l?n.find(f=>f.id===l)??null:null;return v.jsxs("div",{className:"space-y-5",children:[v.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(W2,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),v.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),v.jsxs("span",{className:"text-xs text-[#666]",children:[n.length," agent",n.length===1?"":"s"]})]}),v.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),v.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:v.jsx(v8,{agents:a,selectedAgentId:l,onSelectAgent:f=>s(f),eventsLoaded:!0,eventsEmpty:a.size===0,scanCompleted:e.finished})})]}),c&&v.jsx(z9,{agent:c,events:i,onClose:()=>s(null)})]})}kk.createRoot(document.getElementById("root")).render(v.jsx(ae.StrictMode,{children:v.jsx(X9,{})})); diff --git a/strix/viewer/viewer_dist/index.html b/strix/viewer/viewer_dist/index.html index b9bc0a6f..22587c35 100644 --- a/strix/viewer/viewer_dist/index.html +++ b/strix/viewer/viewer_dist/index.html @@ -6,8 +6,8 @@ Strix Results - - + +