mastra 0.10.0 → 0.10.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/playground/dist/assets/{index-CO5K8l6Q.js → index-D49iwuA1.js} +1 -1
- package/src/playground/dist/assets/{index-B7uB4AVM.js → index-DBFMozeU.js} +3 -3
- package/src/playground/dist/assets/{index-CqirvehQ.js → index-DqZVpQYe.js} +1 -1
- package/src/playground/dist/index.html +1 -1
|
@@ -520,7 +520,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
520
520
|
`),style:o,startingLineNumber:a}))}function r$e(e){return"".concat(e.toString().length,".25em")}function joe(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Loe(e,t,n){var r={display:"inline-block",minWidth:r$e(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,s=qh(qh({},r),i);return s}function TD(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,s=e.showInlineLineNumbers,o=e.lineProps,a=o===void 0?{}:o,l=e.className,u=l===void 0?[]:l,c=e.showLineNumbers,d=e.wrapLongLines,f=e.wrapLines,p=f===void 0?!1:f,b=p?qh({},typeof a=="function"?a(n):a):{};if(b.className=b.className?[].concat(vF(b.className.trim().split(/\s+/)),vF(u)):u,n&&s){var w=Loe(r,n,i);t.unshift(joe(n,w))}return d&c&&(b.style=qh({display:"flex"},b.style)),{type:"element",tagName:"span",properties:b,children:t}}function Boe(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(TD({children:[i],className:vF(new Set(t))}));else if(i.children){var s=t.concat(i.properties.className);Boe(i.children,s).forEach(function(o){return n.push(o)})}}return n}function i$e(e,t,n,r,i,s,o,a,l){var u,c=Boe(e.value),d=[],f=-1,p=0;function b(M,F){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return TD({children:M,lineNumber:F,lineNumberStyle:a,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}function w(M,F){if(r&&F&&i){var I=Loe(a,F,o);M.unshift(joe(F,I))}return M}function E(M,F){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?b(M,F,I):w(M,F)}for(var S=function(){var F=c[p],I=F.children[0].value,j=e$e(I);if(j){var B=I.split(`
|
|
521
521
|
`);B.forEach(function(L,z){var Y=r&&d.length+s,Q={type:"text",value:"".concat(L,`
|
|
522
522
|
`)};if(z===0){var $=c.slice(f+1,p).concat(TD({children:[Q],className:F.properties.className})),J=E($,Y);d.push(J)}else if(z===B.length-1){var H=c[p+1]&&c[p+1].children&&c[p+1].children[0],q={type:"text",value:"".concat(L)};if(H){var W=TD({children:[q],className:F.properties.className});c.splice(p+1,0,W)}else{var K=[q],V=E(K,Y,F.properties.className);d.push(V)}}else{var X=[Q],re=E(X,Y,F.properties.className);d.push(re)}}),f=p}p++};p<c.length;)S();if(f!==c.length-1){var k=c.slice(f+1,c.length);if(k&&k.length){var A=r&&d.length+s,P=E(k,A);d.push(P)}}return t?d:(u=[]).concat.apply(u,d)}function s$e(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,s){return Ioe({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(s)})})}function $oe(e){return e&&typeof e.highlightAuto<"u"}function o$e(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if($oe(t)){var s=ZBe(t,n);return n==="text"?{value:i,language:"text"}:s?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function a$e(e,t){return function(r){var i=r.language,s=r.children,o=r.style,a=o===void 0?t:o,l=r.customStyle,u=l===void 0?{}:l,c=r.codeTagProps,d=c===void 0?{className:i?"language-".concat(i):void 0,style:qh(qh({},a['code[class*="language-"]']),a['code[class*="language-'.concat(i,'"]')])}:c,f=r.useInlineStyles,p=f===void 0?!0:f,b=r.showLineNumbers,w=b===void 0?!1:b,E=r.showInlineLineNumbers,S=E===void 0?!0:E,k=r.startingLineNumber,A=k===void 0?1:k,P=r.lineNumberContainerStyle,M=r.lineNumberStyle,F=M===void 0?{}:M,I=r.wrapLines,j=r.wrapLongLines,B=j===void 0?!1:j,L=r.lineProps,z=L===void 0?{}:L,Y=r.renderer,Q=r.PreTag,$=Q===void 0?"pre":Q,J=r.CodeTag,H=J===void 0?"code":J,q=r.code,W=q===void 0?(Array.isArray(s)?s[0]:s)||"":q,K=r.astGenerator,V=zBe(r,JBe);K=K||e;var X=w?Ae.createElement(n$e,{containerStyle:P,codeStyle:d.style||{},numberStyle:F,startingLineNumber:A,codeString:W}):null,re=a.hljs||a['pre[class*="language-"]']||{backgroundColor:"#fff"},U=$oe(K)?"hljs":"prismjs",te=p?Object.assign({},V,{style:Object.assign({},re,u)}):Object.assign({},V,{className:V.className?"".concat(U," ").concat(V.className):U,style:Object.assign({},u)});if(B?d.style=qh({whiteSpace:"pre-wrap"},d.style):d.style=qh({whiteSpace:"pre"},d.style),!K)return Ae.createElement($,te,X,Ae.createElement(H,d,W));(I===void 0&&Y||B)&&(I=!0),Y=Y||s$e;var se=[{type:"text",value:W}],ue=o$e({astGenerator:K,language:i,code:W,defaultCodeValue:se});ue.language===null&&(ue.value=se);var ie=ue.value.length;ie===1&&ue.value[0].type==="text"&&(ie=ue.value[0].value.split(`
|
|
523
|
-
`).length);var pe=ie+A,De=i$e(ue,I,z,w,S,A,pe,F,B);return Ae.createElement($,te,Ae.createElement(H,d,!S&&X,Y({rows:De,stylesheet:a,useInlineStyles:p})))}}function QU(e,t,n,r,i,s,o){try{var a=e[s](o),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,i)}function l$e(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function o(l){QU(s,r,i,o,a,"next",l)}function a(l){QU(s,r,i,o,a,"throw",l)}o(void 0)})}}function u$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Roe(r.key),r)}}function c$e(e,t,n){return t&&eq(e.prototype,t),n&&eq(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h$e(e,t){if(t&&(Sf(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d$e(e)}function jk(e){return jk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jk(e)}function xF(e,t){return xF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xF(e,t)}function f$e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xF(e,t)}function wF(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wF=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(H,q,W){H[q]=W.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function u(H,q,W){return Object.defineProperty(H,q,{value:W,enumerable:!0,configurable:!0,writable:!0}),H[q]}try{u({},"")}catch{u=function(W,K,V){return W[K]=V}}function c(H,q,W,K){var V=q&&q.prototype instanceof S?q:S,X=Object.create(V.prototype),re=new $(K||[]);return i(X,"_invoke",{value:L(H,W,re)}),X}function d(H,q,W){try{return{type:"normal",arg:H.call(q,W)}}catch(K){return{type:"throw",arg:K}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",b="executing",w="completed",E={};function S(){}function k(){}function A(){}var P={};u(P,o,function(){return this});var M=Object.getPrototypeOf,F=M&&M(M(J([])));F&&F!==n&&r.call(F,o)&&(P=F);var I=A.prototype=S.prototype=Object.create(P);function j(H){["next","throw","return"].forEach(function(q){u(H,q,function(W){return this._invoke(q,W)})})}function B(H,q){function W(V,X,re,U){var te=d(H[V],H,X);if(te.type!=="throw"){var se=te.arg,ue=se.value;return ue&&Sf(ue)=="object"&&r.call(ue,"__await")?q.resolve(ue.__await).then(function(ie){W("next",ie,re,U)},function(ie){W("throw",ie,re,U)}):q.resolve(ue).then(function(ie){se.value=ie,re(se)},function(ie){return W("throw",ie,re,U)})}U(te.arg)}var K;i(this,"_invoke",{value:function(X,re){function U(){return new q(function(te,se){W(X,re,te,se)})}return K=K?K.then(U,U):U()}})}function L(H,q,W){var K=f;return function(V,X){if(K===b)throw Error("Generator is already running");if(K===w){if(V==="throw")throw X;return{value:e,done:!0}}for(W.method=V,W.arg=X;;){var re=W.delegate;if(re){var U=z(re,W);if(U){if(U===E)continue;return U}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(K===f)throw K=w,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);K=b;var te=d(H,q,W);if(te.type==="normal"){if(K=W.done?w:p,te.arg===E)continue;return{value:te.arg,done:W.done}}te.type==="throw"&&(K=w,W.method="throw",W.arg=te.arg)}}}function z(H,q){var W=q.method,K=H.iterator[W];if(K===e)return q.delegate=null,W==="throw"&&H.iterator.return&&(q.method="return",q.arg=e,z(H,q),q.method==="throw")||W!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+W+"' method")),E;var V=d(K,H.iterator,q.arg);if(V.type==="throw")return q.method="throw",q.arg=V.arg,q.delegate=null,E;var X=V.arg;return X?X.done?(q[H.resultName]=X.value,q.next=H.nextLoc,q.method!=="return"&&(q.method="next",q.arg=e),q.delegate=null,E):X:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,E)}function Y(H){var q={tryLoc:H[0]};1 in H&&(q.catchLoc=H[1]),2 in H&&(q.finallyLoc=H[2],q.afterLoc=H[3]),this.tryEntries.push(q)}function Q(H){var q=H.completion||{};q.type="normal",delete q.arg,H.completion=q}function $(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(Y,this),this.reset(!0)}function J(H){if(H||H===""){var q=H[o];if(q)return q.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var W=-1,K=function V(){for(;++W<H.length;)if(r.call(H,W))return V.value=H[W],V.done=!1,V;return V.value=e,V.done=!0,V};return K.next=K}}throw new TypeError(Sf(H)+" is not iterable")}return k.prototype=A,i(I,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:k,configurable:!0}),k.displayName=u(A,l,"GeneratorFunction"),t.isGeneratorFunction=function(H){var q=typeof H=="function"&&H.constructor;return!!q&&(q===k||(q.displayName||q.name)==="GeneratorFunction")},t.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,A):(H.__proto__=A,u(H,l,"GeneratorFunction")),H.prototype=Object.create(I),H},t.awrap=function(H){return{__await:H}},j(B.prototype),u(B.prototype,a,function(){return this}),t.AsyncIterator=B,t.async=function(H,q,W,K,V){V===void 0&&(V=Promise);var X=new B(c(H,q,W,K),V);return t.isGeneratorFunction(q)?X:X.next().then(function(re){return re.done?re.value:X.next()})},j(I),u(I,l,"Generator"),u(I,o,function(){return this}),u(I,"toString",function(){return"[object Generator]"}),t.keys=function(H){var q=Object(H),W=[];for(var K in q)W.push(K);return W.reverse(),function V(){for(;W.length;){var X=W.pop();if(X in q)return V.value=X,V.done=!1,V}return V.done=!0,V}},t.values=J,$.prototype={constructor:$,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Q),!q)for(var W in this)W.charAt(0)==="t"&&r.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=e)},stop:function(){this.done=!0;var q=this.tryEntries[0].completion;if(q.type==="throw")throw q.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var W=this;function K(se,ue){return re.type="throw",re.arg=q,W.next=se,ue&&(W.method="next",W.arg=e),!!ue}for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V],re=X.completion;if(X.tryLoc==="root")return K("end");if(X.tryLoc<=this.prev){var U=r.call(X,"catchLoc"),te=r.call(X,"finallyLoc");if(U&&te){if(this.prev<X.catchLoc)return K(X.catchLoc,!0);if(this.prev<X.finallyLoc)return K(X.finallyLoc)}else if(U){if(this.prev<X.catchLoc)return K(X.catchLoc,!0)}else{if(!te)throw Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return K(X.finallyLoc)}}}},abrupt:function(q,W){for(var K=this.tryEntries.length-1;K>=0;--K){var V=this.tryEntries[K];if(V.tryLoc<=this.prev&&r.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var X=V;break}}X&&(q==="break"||q==="continue")&&X.tryLoc<=W&&W<=X.finallyLoc&&(X=null);var re=X?X.completion:{};return re.type=q,re.arg=W,X?(this.method="next",this.next=X.finallyLoc,E):this.complete(re)},complete:function(q,W){if(q.type==="throw")throw q.arg;return q.type==="break"||q.type==="continue"?this.next=q.arg:q.type==="return"?(this.rval=this.arg=q.arg,this.method="return",this.next="end"):q.type==="normal"&&W&&(this.next=W),E},finish:function(q){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.finallyLoc===q)return this.complete(K.completion,K.afterLoc),Q(K),E}},catch:function(q){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.tryLoc===q){var V=K.completion;if(V.type==="throw"){var X=V.arg;Q(K)}return X}}throw Error("illegal catch attempt")},delegateYield:function(q,W,K){return this.delegate={iterator:J(q),resultName:W,nextLoc:K},this.method==="next"&&(this.arg=e),E}},t}function p$e(e,t,n){return t=jk(t),h$e(e,zoe()?Reflect.construct(t,n||[],jk(e).constructor):t.apply(e,n))}function zoe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zoe=function(){return!!e})()}const m$e=function(e){var t,n=e.loader,r=e.isLanguageRegistered,i=e.registerLanguage,s=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(l){function u(){return u$e(this,u),p$e(this,u,arguments)}return f$e(u,l),c$e(u,[{key:"componentDidUpdate",value:function(){!u.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var d=this;u.astGeneratorPromise||u.loadAstGenerator(),u.astGenerator||u.astGeneratorPromise.then(function(){d.forceUpdate()}),!u.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var d=this,f=this.props.language;f!=="text"&&u.loadLanguage(f).then(function(){return d.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(d){return u.isSupportedLanguage(d)?d:"text"}},{key:"render",value:function(){return Ae.createElement(u.highlightInstance,wm({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:u.astGenerator}))}}],[{key:"preload",value:function(){return u.loadAstGenerator()}},{key:"loadLanguage",value:function(){var c=l$e(wF().mark(function f(p){var b;return wF().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(b=s[p],typeof b!="function"){E.next=5;break}return E.abrupt("return",b(u.registerLanguage));case 5:throw new Error("Language ".concat(p," not supported"));case 6:case"end":return E.stop()}},f)}));function d(f){return c.apply(this,arguments)}return d}()},{key:"isSupportedLanguage",value:function(d){return u.isRegistered(d)||typeof s[d]=="function"}},{key:"loadAstGenerator",value:function(){return u.astGeneratorPromise=n().then(function(d){u.astGenerator=d,i&&u.languages.forEach(function(f,p){return i(d,p,f)})}),u.astGeneratorPromise}}])}(Ae.PureComponent);return t=a,Lc(a,"astGenerator",null),Lc(a,"highlightInstance",a$e(null,{})),Lc(a,"astGeneratorPromise",null),Lc(a,"languages",new Map),Lc(a,"supportedLanguages",e.supportedLanguages||Object.keys(s||{})),Lc(a,"isRegistered",function(l){if(o)return!0;if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");return t.astGenerator?r(t.astGenerator,l):t.languages.has(l)}),Lc(a,"registerLanguage",function(l,u){if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");if(t.astGenerator)return i(t.astGenerator,l,u);t.languages.set(l,u)}),a},g$e=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],y$e=m$e({loader:function(){return Vre(()=>import("./index-CO5K8l6Q.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:g$e});var b$e=e=>t=>{const n=({components:{Pre:r,Code:i},language:s,code:o})=>y.jsx(e,{PreTag:r,CodeTag:i,...t,language:s,children:o});return n.displayName="PrismSyntaxHighlighter",n},v$e=b$e(y$e),N4={},P4={exports:{}},tq;function x$e(){return tq||(tq=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(P4)),P4.exports}var F4={},nq;function w$e(){return nq||(nq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",maxHeight:"inherit",height:"inherit",padding:"0 1em",display:"block",overflow:"auto"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",margin:".5em 0",overflow:"visible",padding:"1px",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em"},'pre[class*="language-"] > code':{position:"relative",zIndex:"1",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em",position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal"},'pre[class*="language-"]:before':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"0.18em",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(-2deg)",MozTransform:"rotate(-2deg)",msTransform:"rotate(-2deg)",OTransform:"rotate(-2deg)",transform:"rotate(-2deg)"},'pre[class*="language-"]:after':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"auto",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(2deg)",MozTransform:"rotate(2deg)",msTransform:"rotate(2deg)",OTransform:"rotate(2deg)",transform:"rotate(2deg)",right:"0.75em"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"},'pre[class*="language-"].line-numbers.line-numbers':{paddingLeft:"0"},'pre[class*="language-"].line-numbers.line-numbers code':{paddingLeft:"3.8em"},'pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows':{left:"0"},'pre[class*="language-"][data-line]':{paddingTop:"0",paddingBottom:"0",paddingLeft:"0"},"pre[data-line] code":{position:"relative",paddingLeft:"4em"},"pre .line-highlight":{marginTop:"0"}}}(F4)),F4}var M4={},rq;function S$e(){return rq||(rq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(30, 20%, 25%)",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:".3em solid hsl(30, 20%, 40%)",borderRadius:".5em",boxShadow:"1px 1px .5em black inset"},':not(pre) > code[class*="language-"]':{background:"hsl(30, 20%, 25%)",padding:".15em .2em .05em",borderRadius:".3em",border:".13em solid hsl(30, 20%, 40%)",boxShadow:"1px 1px .3em -.1em black inset",whiteSpace:"normal"},comment:{color:"hsl(30, 20%, 50%)"},prolog:{color:"hsl(30, 20%, 50%)"},doctype:{color:"hsl(30, 20%, 50%)"},cdata:{color:"hsl(30, 20%, 50%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},property:{color:"hsl(350, 40%, 70%)"},tag:{color:"hsl(350, 40%, 70%)"},boolean:{color:"hsl(350, 40%, 70%)"},number:{color:"hsl(350, 40%, 70%)"},constant:{color:"hsl(350, 40%, 70%)"},symbol:{color:"hsl(350, 40%, 70%)"},selector:{color:"hsl(75, 70%, 60%)"},"attr-name":{color:"hsl(75, 70%, 60%)"},string:{color:"hsl(75, 70%, 60%)"},char:{color:"hsl(75, 70%, 60%)"},builtin:{color:"hsl(75, 70%, 60%)"},inserted:{color:"hsl(75, 70%, 60%)"},operator:{color:"hsl(40, 90%, 60%)"},entity:{color:"hsl(40, 90%, 60%)",cursor:"help"},url:{color:"hsl(40, 90%, 60%)"},".language-css .token.string":{color:"hsl(40, 90%, 60%)"},".style .token.string":{color:"hsl(40, 90%, 60%)"},variable:{color:"hsl(40, 90%, 60%)"},atrule:{color:"hsl(350, 40%, 70%)"},"attr-value":{color:"hsl(350, 40%, 70%)"},keyword:{color:"hsl(350, 40%, 70%)"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"}}}(M4)),M4}var O4={},iq;function C$e(){return iq||(iq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"black",color:"white",boxShadow:"-.3em 0 0 .3em black, .3em 0 0 .3em black"},'pre[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:".4em .8em",margin:".5em 0",overflow:"auto",background:`url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>')`,backgroundSize:"1em 1em"},':not(pre) > code[class*="language-"]':{padding:".2em",borderRadius:".3em",boxShadow:"none",whiteSpace:"normal"},comment:{color:"#aaa"},prolog:{color:"#aaa"},doctype:{color:"#aaa"},cdata:{color:"#aaa"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#0cf"},tag:{color:"#0cf"},boolean:{color:"#0cf"},number:{color:"#0cf"},constant:{color:"#0cf"},symbol:{color:"#0cf"},selector:{color:"yellow"},"attr-name":{color:"yellow"},string:{color:"yellow"},char:{color:"yellow"},builtin:{color:"yellow"},operator:{color:"yellowgreen"},entity:{color:"yellowgreen",cursor:"help"},url:{color:"yellowgreen"},".language-css .token.string":{color:"yellowgreen"},variable:{color:"yellowgreen"},inserted:{color:"yellowgreen"},atrule:{color:"deeppink"},"attr-value":{color:"deeppink"},keyword:{color:"deeppink"},regex:{color:"orange"},important:{color:"orange",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"},"pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"}}}(O4)),O4}var R4={},sq;function E$e(){return sq||(sq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(R4)),R4}var I4={},oq;function D$e(){return oq||(oq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",backgroundColor:"#fdf6e3"},'pre[class*="language-"]::-moz-selection':{background:"#073642"},'pre[class*="language-"] ::-moz-selection':{background:"#073642"},'code[class*="language-"]::-moz-selection':{background:"#073642"},'code[class*="language-"] ::-moz-selection':{background:"#073642"},'pre[class*="language-"]::selection':{background:"#073642"},'pre[class*="language-"] ::selection':{background:"#073642"},'code[class*="language-"]::selection':{background:"#073642"},'code[class*="language-"] ::selection':{background:"#073642"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdf6e3",padding:".1em",borderRadius:".3em"},comment:{color:"#93a1a1"},prolog:{color:"#93a1a1"},doctype:{color:"#93a1a1"},cdata:{color:"#93a1a1"},punctuation:{color:"#586e75"},namespace:{Opacity:".7"},property:{color:"#268bd2"},tag:{color:"#268bd2"},boolean:{color:"#268bd2"},number:{color:"#268bd2"},constant:{color:"#268bd2"},symbol:{color:"#268bd2"},deleted:{color:"#268bd2"},selector:{color:"#2aa198"},"attr-name":{color:"#2aa198"},string:{color:"#2aa198"},char:{color:"#2aa198"},builtin:{color:"#2aa198"},url:{color:"#2aa198"},inserted:{color:"#2aa198"},entity:{color:"#657b83",background:"#eee8d5",cursor:"help"},atrule:{color:"#859900"},"attr-value":{color:"#859900"},keyword:{color:"#859900"},function:{color:"#b58900"},"class-name":{color:"#b58900"},regex:{color:"#cb4b16"},important:{color:"#cb4b16",fontWeight:"bold"},variable:{color:"#cb4b16"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(I4)),I4}var j4={},aq;function k$e(){return aq||(aq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ccc",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ccc",background:"#2d2d2d",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},':not(pre) > code[class*="language-"]':{background:"#2d2d2d",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#999"},"block-comment":{color:"#999"},prolog:{color:"#999"},doctype:{color:"#999"},cdata:{color:"#999"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},deleted:{color:"#e2777a"},"function-name":{color:"#6196cc"},boolean:{color:"#f08d49"},number:{color:"#f08d49"},function:{color:"#f08d49"},property:{color:"#f8c555"},"class-name":{color:"#f8c555"},constant:{color:"#f8c555"},symbol:{color:"#f8c555"},selector:{color:"#cc99cd"},important:{color:"#cc99cd",fontWeight:"bold"},atrule:{color:"#cc99cd"},keyword:{color:"#cc99cd"},builtin:{color:"#cc99cd"},string:{color:"#7ec699"},char:{color:"#7ec699"},"attr-value":{color:"#7ec699"},regex:{color:"#7ec699"},variable:{color:"#7ec699"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(j4)),j4}var L4={},lq;function A$e(){return lq||(lq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(0, 0%, 8%)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",borderRadius:".5em",border:".3em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .5em black inset",margin:".5em 0",overflow:"auto",padding:"1em"},':not(pre) > code[class*="language-"]':{background:"hsl(0, 0%, 8%)",borderRadius:".3em",border:".13em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .3em -.1em black inset",padding:".15em .2em .05em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"]::selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},comment:{color:"hsl(0, 0%, 47%)"},prolog:{color:"hsl(0, 0%, 47%)"},doctype:{color:"hsl(0, 0%, 47%)"},cdata:{color:"hsl(0, 0%, 47%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},tag:{color:"hsl(14, 58%, 55%)"},boolean:{color:"hsl(14, 58%, 55%)"},number:{color:"hsl(14, 58%, 55%)"},deleted:{color:"hsl(14, 58%, 55%)"},keyword:{color:"hsl(53, 89%, 79%)"},property:{color:"hsl(53, 89%, 79%)"},selector:{color:"hsl(53, 89%, 79%)"},constant:{color:"hsl(53, 89%, 79%)"},symbol:{color:"hsl(53, 89%, 79%)"},builtin:{color:"hsl(53, 89%, 79%)"},"attr-name":{color:"hsl(76, 21%, 52%)"},"attr-value":{color:"hsl(76, 21%, 52%)"},string:{color:"hsl(76, 21%, 52%)"},char:{color:"hsl(76, 21%, 52%)"},operator:{color:"hsl(76, 21%, 52%)"},entity:{color:"hsl(76, 21%, 52%)",cursor:"help"},url:{color:"hsl(76, 21%, 52%)"},".language-css .token.string":{color:"hsl(76, 21%, 52%)"},".style .token.string":{color:"hsl(76, 21%, 52%)"},variable:{color:"hsl(76, 21%, 52%)"},inserted:{color:"hsl(76, 21%, 52%)"},atrule:{color:"hsl(218, 22%, 55%)"},regex:{color:"hsl(42, 75%, 65%)"},important:{color:"hsl(42, 75%, 65%)",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},".language-markup .token.tag":{color:"hsl(33, 33%, 52%)"},".language-markup .token.attr-name":{color:"hsl(33, 33%, 52%)"},".language-markup .token.punctuation":{color:"hsl(33, 33%, 52%)"},"":{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0))",borderBottom:"1px dashed hsl(0, 0%, 33%)",borderTop:"1px dashed hsl(0, 0%, 33%)",marginTop:"0.75em",zIndex:"0"},".line-highlight.line-highlight:before":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"}}}(L4)),L4}var B4={},uq;function _$e(){return uq||(uq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(B4)),B4}var $4={},cq;function T$e(){return cq||(cq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2b2b2b",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#d4d0ab"},prolog:{color:"#d4d0ab"},doctype:{color:"#d4d0ab"},cdata:{color:"#d4d0ab"},punctuation:{color:"#fefefe"},property:{color:"#ffa07a"},tag:{color:"#ffa07a"},constant:{color:"#ffa07a"},symbol:{color:"#ffa07a"},deleted:{color:"#ffa07a"},boolean:{color:"#00e0e0"},number:{color:"#00e0e0"},selector:{color:"#abe338"},"attr-name":{color:"#abe338"},string:{color:"#abe338"},char:{color:"#abe338"},builtin:{color:"#abe338"},inserted:{color:"#abe338"},operator:{color:"#00e0e0"},entity:{color:"#00e0e0",cursor:"help"},url:{color:"#00e0e0"},".language-css .token.string":{color:"#00e0e0"},".style .token.string":{color:"#00e0e0"},variable:{color:"#00e0e0"},atrule:{color:"#ffd700"},"attr-value":{color:"#ffd700"},function:{color:"#ffd700"},keyword:{color:"#00e0e0"},regex:{color:"#ffd700"},important:{color:"#ffd700",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}($4)),$4}var z4={},dq;function N$e(){return dq||(dq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#1d1f21"},':not(pre) > code[class*="language-"]':{background:"#1d1f21",padding:".1em",borderRadius:".3em"},comment:{color:"#7C7C7C"},prolog:{color:"#7C7C7C"},doctype:{color:"#7C7C7C"},cdata:{color:"#7C7C7C"},punctuation:{color:"#c5c8c6"},".namespace":{Opacity:".7"},property:{color:"#96CBFE"},keyword:{color:"#96CBFE"},tag:{color:"#96CBFE"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#99CC99"},constant:{color:"#99CC99"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},number:{color:"#FF73FD"},selector:{color:"#A8FF60"},"attr-name":{color:"#A8FF60"},string:{color:"#A8FF60"},char:{color:"#A8FF60"},builtin:{color:"#A8FF60"},inserted:{color:"#A8FF60"},variable:{color:"#C6C5FE"},operator:{color:"#EDEDED"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"},function:{color:"#DAD085"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(z4)),z4}var H4={},hq;function P$e(){return hq||(hq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#898ea4"},prolog:{color:"#898ea4"},doctype:{color:"#898ea4"},cdata:{color:"#898ea4"},punctuation:{color:"#5e6687"},namespace:{Opacity:".7"},operator:{color:"#c76b29"},boolean:{color:"#c76b29"},number:{color:"#c76b29"},property:{color:"#c08b30"},tag:{color:"#3d8fd1"},string:{color:"#22a2c9"},selector:{color:"#6679cc"},"attr-name":{color:"#c76b29"},entity:{color:"#22a2c9",cursor:"help"},url:{color:"#22a2c9"},".language-css .token.string":{color:"#22a2c9"},".style .token.string":{color:"#22a2c9"},"attr-value":{color:"#ac9739"},keyword:{color:"#ac9739"},control:{color:"#ac9739"},directive:{color:"#ac9739"},unit:{color:"#ac9739"},statement:{color:"#22a2c9"},regex:{color:"#22a2c9"},atrule:{color:"#22a2c9"},placeholder:{color:"#3d8fd1"},variable:{color:"#3d8fd1"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #202746",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c94922"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:"0.4em solid #c94922",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#dfe2f1"},".line-numbers .line-numbers-rows > span:before":{color:"#979db4"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0))"}}}(H4)),H4}var V4={},fq;function F$e(){return fq||(fq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"none",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"#222",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"15px",margin:"1em 0",overflow:"auto",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},'pre[class*="language-"] code':{float:"left",padding:"0 15px 0 0"},':not(pre) > code[class*="language-"]':{background:"#222",padding:"5px 10px",lineHeight:"1",MozBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px"},comment:{color:"#797979"},prolog:{color:"#797979"},doctype:{color:"#797979"},cdata:{color:"#797979"},selector:{color:"#fff"},operator:{color:"#fff"},punctuation:{color:"#fff"},namespace:{Opacity:".7"},tag:{color:"#ffd893"},boolean:{color:"#ffd893"},atrule:{color:"#B0C975"},"attr-value":{color:"#B0C975"},hex:{color:"#B0C975"},string:{color:"#B0C975"},property:{color:"#c27628"},entity:{color:"#c27628",cursor:"help"},url:{color:"#c27628"},"attr-name":{color:"#c27628"},keyword:{color:"#c27628"},regex:{color:"#9B71C6"},function:{color:"#e5a638"},constant:{color:"#e5a638"},variable:{color:"#fdfba8"},number:{color:"#8799B0"},important:{color:"#E45734"},deliminator:{color:"#E45734"},".line-highlight.line-highlight":{background:"rgba(255, 255, 255, .2)"},".line-highlight.line-highlight:before":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-highlight.line-highlight[data-end]:after":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-numbers .line-numbers-rows > span":{borderRight:"3px #d9d336 solid"}}}(V4)),V4}var U4={},pq;function M$e(){return pq||(pq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#111b27",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#111b27",background:"#e3eaf2",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'code[class*="language-"]::-moz-selection':{background:"#8da1b9"},'code[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"]::selection':{background:"#8da1b9"},'pre[class*="language-"] ::selection':{background:"#8da1b9"},'code[class*="language-"]::selection':{background:"#8da1b9"},'code[class*="language-"] ::selection':{background:"#8da1b9"},':not(pre) > code[class*="language-"]':{background:"#e3eaf2",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#3c526d"},prolog:{color:"#3c526d"},doctype:{color:"#3c526d"},cdata:{color:"#3c526d"},punctuation:{color:"#111b27"},"delimiter.important":{color:"#006d6d",fontWeight:"inherit"},"selector.parent":{color:"#006d6d"},tag:{color:"#006d6d"},"tag.punctuation":{color:"#006d6d"},"attr-name":{color:"#755f00"},boolean:{color:"#755f00"},"boolean.important":{color:"#755f00"},number:{color:"#755f00"},constant:{color:"#755f00"},"selector.attribute":{color:"#755f00"},"class-name":{color:"#005a8e"},key:{color:"#005a8e"},parameter:{color:"#005a8e"},property:{color:"#005a8e"},"property-access":{color:"#005a8e"},variable:{color:"#005a8e"},"attr-value":{color:"#116b00"},inserted:{color:"#116b00"},color:{color:"#116b00"},"selector.value":{color:"#116b00"},string:{color:"#116b00"},"string.url-link":{color:"#116b00"},builtin:{color:"#af00af"},"keyword-array":{color:"#af00af"},package:{color:"#af00af"},regex:{color:"#af00af"},function:{color:"#7c00aa"},"selector.class":{color:"#7c00aa"},"selector.id":{color:"#7c00aa"},"atrule.rule":{color:"#a04900"},combinator:{color:"#a04900"},keyword:{color:"#a04900"},operator:{color:"#a04900"},"pseudo-class":{color:"#a04900"},"pseudo-element":{color:"#a04900"},selector:{color:"#a04900"},unit:{color:"#a04900"},deleted:{color:"#c22f2e"},important:{color:"#c22f2e",fontWeight:"bold"},"keyword-this":{color:"#005a8e",fontWeight:"bold"},this:{color:"#005a8e",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#af00af"},".language-markdown .token.code":{color:"#006d6d"},".language-markdown .token.hr.punctuation":{color:"#005a8e"},".language-markdown .token.url > .token.content":{color:"#116b00"},".language-markdown .token.url-link":{color:"#755f00"},".language-markdown .token.list.punctuation":{color:"#af00af"},".language-markdown .token.table-header":{color:"#111b27"},".language-json .token.operator":{color:"#111b27"},".language-scss .token.variable":{color:"#006d6d"},"token.tab:not(:empty):before":{color:"#3c526d"},"token.cr:before":{color:"#3c526d"},"token.lf:before":{color:"#3c526d"},"token.space:before":{color:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#e3eaf2",background:"#3c526d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #8da1b92f 70%, #8da1b925)"},".line-highlight.line-highlight:before":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#3c526d1f"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #8da1b97a",background:"#d0dae77a"},".line-numbers .line-numbers-rows > span:before":{color:"#3c526dda"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#7c00aa"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},".command-line .command-line-prompt":{borderRight:"1px solid #8da1b97a"},".command-line .command-line-prompt > span:before":{color:"#3c526dda"}}}(U4)),U4}var q4={},mq;function O$e(){return mq||(mq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#e3eaf2",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#e3eaf2",background:"#111b27",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#3c526d"},'pre[class*="language-"] ::-moz-selection':{background:"#3c526d"},'code[class*="language-"]::-moz-selection':{background:"#3c526d"},'code[class*="language-"] ::-moz-selection':{background:"#3c526d"},'pre[class*="language-"]::selection':{background:"#3c526d"},'pre[class*="language-"] ::selection':{background:"#3c526d"},'code[class*="language-"]::selection':{background:"#3c526d"},'code[class*="language-"] ::selection':{background:"#3c526d"},':not(pre) > code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}}(q4)),q4}var W4={},gq;function R$e(){return gq||(gq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0 0 0 #358ccb, 0 0 0 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local",margin:".5em 0",padding:"0 1em"},'pre[class*="language-"] > code':{display:"block"},':not(pre) > code[class*="language-"]':{position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"}}}(W4)),W4}var G4={},yq;function I$e(){return yq||(yq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#2b2b2b"},'pre[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:".1em",borderRadius:".3em"},comment:{color:"#808080"},prolog:{color:"#808080"},cdata:{color:"#808080"},delimiter:{color:"#cc7832"},boolean:{color:"#cc7832"},keyword:{color:"#cc7832"},selector:{color:"#cc7832"},important:{color:"#cc7832"},atrule:{color:"#cc7832"},operator:{color:"#a9b7c6"},punctuation:{color:"#a9b7c6"},"attr-name":{color:"#a9b7c6"},tag:{color:"#e8bf6a"},"tag.punctuation":{color:"#e8bf6a"},doctype:{color:"#e8bf6a"},builtin:{color:"#e8bf6a"},entity:{color:"#6897bb"},number:{color:"#6897bb"},symbol:{color:"#6897bb"},property:{color:"#9876aa"},constant:{color:"#9876aa"},variable:{color:"#9876aa"},string:{color:"#6a8759"},char:{color:"#6a8759"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline"},function:{color:"#ffc66d"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#294436"},deleted:{background:"#484a4a"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"}}}(G4)),G4}var Y4={},bq;function j$e(){return bq||(bq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#282a36",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#282a36",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#6272a4"},prolog:{color:"#6272a4"},doctype:{color:"#6272a4"},cdata:{color:"#6272a4"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#ff79c6"},tag:{color:"#ff79c6"},constant:{color:"#ff79c6"},symbol:{color:"#ff79c6"},deleted:{color:"#ff79c6"},boolean:{color:"#bd93f9"},number:{color:"#bd93f9"},selector:{color:"#50fa7b"},"attr-name":{color:"#50fa7b"},string:{color:"#50fa7b"},char:{color:"#50fa7b"},builtin:{color:"#50fa7b"},inserted:{color:"#50fa7b"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#f1fa8c"},"attr-value":{color:"#f1fa8c"},function:{color:"#f1fa8c"},"class-name":{color:"#f1fa8c"},keyword:{color:"#8be9fd"},regex:{color:"#ffb86c"},important:{color:"#ffb86c",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(Y4)),Y4}var K4={},vq;function L$e(){return vq||(vq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6c6783"},prolog:{color:"#6c6783"},doctype:{color:"#6c6783"},cdata:{color:"#6c6783"},punctuation:{color:"#6c6783"},namespace:{Opacity:".7"},tag:{color:"#e09142"},operator:{color:"#e09142"},number:{color:"#e09142"},property:{color:"#9a86fd"},function:{color:"#9a86fd"},"tag-id":{color:"#eeebff"},selector:{color:"#eeebff"},"atrule-id":{color:"#eeebff"},"code.language-javascript":{color:"#c4b9fe"},"attr-name":{color:"#c4b9fe"},"code.language-css":{color:"#ffcc99"},"code.language-scss":{color:"#ffcc99"},boolean:{color:"#ffcc99"},string:{color:"#ffcc99"},entity:{color:"#ffcc99",cursor:"help"},url:{color:"#ffcc99"},".language-css .token.string":{color:"#ffcc99"},".language-scss .token.string":{color:"#ffcc99"},".style .token.string":{color:"#ffcc99"},"attr-value":{color:"#ffcc99"},keyword:{color:"#ffcc99"},control:{color:"#ffcc99"},directive:{color:"#ffcc99"},unit:{color:"#ffcc99"},statement:{color:"#ffcc99"},regex:{color:"#ffcc99"},atrule:{color:"#ffcc99"},placeholder:{color:"#ffcc99"},variable:{color:"#ffcc99"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #eeebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c4b9fe"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #8a75f5",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c2937"},".line-numbers .line-numbers-rows > span:before":{color:"#3c3949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(224, 145, 66, 0.2) 70%, rgba(224, 145, 66, 0))"}}}(K4)),K4}var X4={},xq;function B$e(){return xq||(xq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6a5f58"},prolog:{color:"#6a5f58"},doctype:{color:"#6a5f58"},cdata:{color:"#6a5f58"},punctuation:{color:"#6a5f58"},namespace:{Opacity:".7"},tag:{color:"#bfa05a"},operator:{color:"#bfa05a"},number:{color:"#bfa05a"},property:{color:"#88786d"},function:{color:"#88786d"},"tag-id":{color:"#fff3eb"},selector:{color:"#fff3eb"},"atrule-id":{color:"#fff3eb"},"code.language-javascript":{color:"#a48774"},"attr-name":{color:"#a48774"},"code.language-css":{color:"#fcc440"},"code.language-scss":{color:"#fcc440"},boolean:{color:"#fcc440"},string:{color:"#fcc440"},entity:{color:"#fcc440",cursor:"help"},url:{color:"#fcc440"},".language-css .token.string":{color:"#fcc440"},".language-scss .token.string":{color:"#fcc440"},".style .token.string":{color:"#fcc440"},"attr-value":{color:"#fcc440"},keyword:{color:"#fcc440"},control:{color:"#fcc440"},directive:{color:"#fcc440"},unit:{color:"#fcc440"},statement:{color:"#fcc440"},regex:{color:"#fcc440"},atrule:{color:"#fcc440"},placeholder:{color:"#fcc440"},variable:{color:"#fcc440"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #fff3eb",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#a48774"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #816d5f",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#35302b"},".line-numbers .line-numbers-rows > span:before":{color:"#46403d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(191, 160, 90, 0.2) 70%, rgba(191, 160, 90, 0))"}}}(X4)),X4}var Z4={},wq;function $$e(){return wq||(wq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#535f53"},prolog:{color:"#535f53"},doctype:{color:"#535f53"},cdata:{color:"#535f53"},punctuation:{color:"#535f53"},namespace:{Opacity:".7"},tag:{color:"#a2b34d"},operator:{color:"#a2b34d"},number:{color:"#a2b34d"},property:{color:"#687d68"},function:{color:"#687d68"},"tag-id":{color:"#f0fff0"},selector:{color:"#f0fff0"},"atrule-id":{color:"#f0fff0"},"code.language-javascript":{color:"#b3d6b3"},"attr-name":{color:"#b3d6b3"},"code.language-css":{color:"#e5fb79"},"code.language-scss":{color:"#e5fb79"},boolean:{color:"#e5fb79"},string:{color:"#e5fb79"},entity:{color:"#e5fb79",cursor:"help"},url:{color:"#e5fb79"},".language-css .token.string":{color:"#e5fb79"},".language-scss .token.string":{color:"#e5fb79"},".style .token.string":{color:"#e5fb79"},"attr-value":{color:"#e5fb79"},keyword:{color:"#e5fb79"},control:{color:"#e5fb79"},directive:{color:"#e5fb79"},unit:{color:"#e5fb79"},statement:{color:"#e5fb79"},regex:{color:"#e5fb79"},atrule:{color:"#e5fb79"},placeholder:{color:"#e5fb79"},variable:{color:"#e5fb79"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #f0fff0",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#b3d6b3"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #5c705c",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c302c"},".line-numbers .line-numbers-rows > span:before":{color:"#3b423b"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(162, 179, 77, 0.2) 70%, rgba(162, 179, 77, 0))"}}}(Z4)),Z4}var J4={},Sq;function z$e(){return Sq||(Sq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}}}(J4)),J4}var Q4={},Cq;function H$e(){return Cq||(Cq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#4a5f78"},prolog:{color:"#4a5f78"},doctype:{color:"#4a5f78"},cdata:{color:"#4a5f78"},punctuation:{color:"#4a5f78"},namespace:{Opacity:".7"},tag:{color:"#0aa370"},operator:{color:"#0aa370"},number:{color:"#0aa370"},property:{color:"#57718e"},function:{color:"#57718e"},"tag-id":{color:"#ebf4ff"},selector:{color:"#ebf4ff"},"atrule-id":{color:"#ebf4ff"},"code.language-javascript":{color:"#7eb6f6"},"attr-name":{color:"#7eb6f6"},"code.language-css":{color:"#47ebb4"},"code.language-scss":{color:"#47ebb4"},boolean:{color:"#47ebb4"},string:{color:"#47ebb4"},entity:{color:"#47ebb4",cursor:"help"},url:{color:"#47ebb4"},".language-css .token.string":{color:"#47ebb4"},".language-scss .token.string":{color:"#47ebb4"},".style .token.string":{color:"#47ebb4"},"attr-value":{color:"#47ebb4"},keyword:{color:"#47ebb4"},control:{color:"#47ebb4"},directive:{color:"#47ebb4"},unit:{color:"#47ebb4"},statement:{color:"#47ebb4"},regex:{color:"#47ebb4"},atrule:{color:"#47ebb4"},placeholder:{color:"#47ebb4"},variable:{color:"#47ebb4"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebf4ff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#7eb6f6"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #34659d",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#1f2932"},".line-numbers .line-numbers-rows > span:before":{color:"#2c3847"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(10, 163, 112, 0.2) 70%, rgba(10, 163, 112, 0))"}}}(Q4)),Q4}var eP={},Eq;function V$e(){return Eq||(Eq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#5b5b76"},prolog:{color:"#5b5b76"},doctype:{color:"#5b5b76"},cdata:{color:"#5b5b76"},punctuation:{color:"#5b5b76"},namespace:{Opacity:".7"},tag:{color:"#dd672c"},operator:{color:"#dd672c"},number:{color:"#dd672c"},property:{color:"#767693"},function:{color:"#767693"},"tag-id":{color:"#ebebff"},selector:{color:"#ebebff"},"atrule-id":{color:"#ebebff"},"code.language-javascript":{color:"#aaaaca"},"attr-name":{color:"#aaaaca"},"code.language-css":{color:"#fe8c52"},"code.language-scss":{color:"#fe8c52"},boolean:{color:"#fe8c52"},string:{color:"#fe8c52"},entity:{color:"#fe8c52",cursor:"help"},url:{color:"#fe8c52"},".language-css .token.string":{color:"#fe8c52"},".language-scss .token.string":{color:"#fe8c52"},".style .token.string":{color:"#fe8c52"},"attr-value":{color:"#fe8c52"},keyword:{color:"#fe8c52"},control:{color:"#fe8c52"},directive:{color:"#fe8c52"},unit:{color:"#fe8c52"},statement:{color:"#fe8c52"},regex:{color:"#fe8c52"},atrule:{color:"#fe8c52"},placeholder:{color:"#fe8c52"},variable:{color:"#fe8c52"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#aaaaca"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #7676f4",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#262631"},".line-numbers .line-numbers-rows > span:before":{color:"#393949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(221, 103, 44, 0.2) 70%, rgba(221, 103, 44, 0))"}}}(eP)),eP}var tP={},Dq;function U$e(){return Dq||(Dq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"]::selection':{background:"#b3d4fc"},'pre[class*="language-"] ::selection':{background:"#b3d4fc"},'code[class*="language-"]::selection':{background:"#b3d4fc"},'code[class*="language-"] ::selection':{background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#999988",fontStyle:"italic"},prolog:{color:"#999988",fontStyle:"italic"},doctype:{color:"#999988",fontStyle:"italic"},cdata:{color:"#999988",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#e3116c"},"attr-value":{color:"#e3116c"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},entity:{color:"#36acaa"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},property:{color:"#36acaa"},regex:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#00a4db"},keyword:{color:"#00a4db"},"attr-name":{color:"#00a4db"},".language-autohotkey .token.selector":{color:"#00a4db"},function:{color:"#9a050f",fontWeight:"bold"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},tag:{color:"#00009f"},selector:{color:"#00009f"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(tP)),tP}var nP={},kq;function q$e(){return kq||(kq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#1d2021"},'pre[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},':not(pre) > code[class*="language-"]':{background:"#1d2021",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#a89984"},prolog:{color:"#a89984"},cdata:{color:"#a89984"},delimiter:{color:"#fb4934"},boolean:{color:"#fb4934"},keyword:{color:"#fb4934"},selector:{color:"#fb4934"},important:{color:"#fb4934"},atrule:{color:"#fb4934"},operator:{color:"#a89984"},punctuation:{color:"#a89984"},"attr-name":{color:"#a89984"},tag:{color:"#fabd2f"},"tag.punctuation":{color:"#fabd2f"},doctype:{color:"#fabd2f"},builtin:{color:"#fabd2f"},entity:{color:"#d3869b"},number:{color:"#d3869b"},symbol:{color:"#d3869b"},property:{color:"#fb4934"},constant:{color:"#fb4934"},variable:{color:"#fb4934"},string:{color:"#b8bb26"},char:{color:"#b8bb26"},"attr-value":{color:"#a89984"},"attr-value.punctuation":{color:"#a89984"},url:{color:"#b8bb26",textDecoration:"underline"},function:{color:"#fabd2f"},regex:{background:"#b8bb26"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#a89984"},deleted:{background:"#fb4934"}}}(nP)),nP}var rP={},Aq;function W$e(){return Aq||(Aq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#f9f5d7"},'pre[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},':not(pre) > code[class*="language-"]':{background:"#f9f5d7",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#7c6f64"},prolog:{color:"#7c6f64"},cdata:{color:"#7c6f64"},delimiter:{color:"#9d0006"},boolean:{color:"#9d0006"},keyword:{color:"#9d0006"},selector:{color:"#9d0006"},important:{color:"#9d0006"},atrule:{color:"#9d0006"},operator:{color:"#7c6f64"},punctuation:{color:"#7c6f64"},"attr-name":{color:"#7c6f64"},tag:{color:"#b57614"},"tag.punctuation":{color:"#b57614"},doctype:{color:"#b57614"},builtin:{color:"#b57614"},entity:{color:"#8f3f71"},number:{color:"#8f3f71"},symbol:{color:"#8f3f71"},property:{color:"#9d0006"},constant:{color:"#9d0006"},variable:{color:"#9d0006"},string:{color:"#797403"},char:{color:"#797403"},"attr-value":{color:"#7c6f64"},"attr-value.punctuation":{color:"#7c6f64"},url:{color:"#797403",textDecoration:"underline"},function:{color:"#b57614"},regex:{background:"#797403"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#7c6f64"},deleted:{background:"#9d0006"}}}(rP)),rP}var iP={},_q;function G$e(){return _q||(_q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},"pre[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",border:"1px solid #2a4555",borderRadius:"5px",padding:"1.5em 1em",margin:"1em 0",overflow:"auto"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},":not(pre) > code[class*='language-']":{color:"#f0f6f6",background:"#2a4555",padding:"0.2em 0.3em",borderRadius:"0.2em",boxDecorationBreak:"clone"},comment:{color:"#446e69"},prolog:{color:"#446e69"},doctype:{color:"#446e69"},cdata:{color:"#446e69"},punctuation:{color:"#d6b007"},property:{color:"#d6e7ff"},tag:{color:"#d6e7ff"},boolean:{color:"#d6e7ff"},number:{color:"#d6e7ff"},constant:{color:"#d6e7ff"},symbol:{color:"#d6e7ff"},deleted:{color:"#d6e7ff"},selector:{color:"#e60067"},"attr-name":{color:"#e60067"},builtin:{color:"#e60067"},inserted:{color:"#e60067"},string:{color:"#49c6ec"},char:{color:"#49c6ec"},operator:{color:"#ec8e01",background:"transparent"},entity:{color:"#ec8e01",background:"transparent"},url:{color:"#ec8e01",background:"transparent"},".language-css .token.string":{color:"#ec8e01",background:"transparent"},".style .token.string":{color:"#ec8e01",background:"transparent"},atrule:{color:"#0fe468"},"attr-value":{color:"#0fe468"},keyword:{color:"#0fe468"},function:{color:"#78f3e9"},"class-name":{color:"#78f3e9"},regex:{color:"#d6e7ff"},important:{color:"#d6e7ff"},variable:{color:"#d6e7ff"}}}(iP)),iP}var sP={},Tq;function Y$e(){return Tq||(Tq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8"},'pre[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#797379"},prolog:{color:"#797379"},doctype:{color:"#797379"},cdata:{color:"#797379"},punctuation:{color:"#b9b5b8"},".namespace":{Opacity:".7"},null:{color:"#fd8b19"},operator:{color:"#fd8b19"},boolean:{color:"#fd8b19"},number:{color:"#fd8b19"},property:{color:"#fdcc59"},tag:{color:"#1290bf"},string:{color:"#149b93"},selector:{color:"#c85e7c"},"attr-name":{color:"#fd8b19"},entity:{color:"#149b93",cursor:"help"},url:{color:"#149b93"},".language-css .token.string":{color:"#149b93"},".style .token.string":{color:"#149b93"},"attr-value":{color:"#8fc13e"},keyword:{color:"#8fc13e"},control:{color:"#8fc13e"},directive:{color:"#8fc13e"},unit:{color:"#8fc13e"},statement:{color:"#149b93"},regex:{color:"#149b93"},atrule:{color:"#149b93"},placeholder:{color:"#1290bf"},variable:{color:"#1290bf"},important:{color:"#dd464c",fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid red",OutlineOffset:".4em"}}}(sP)),sP}var oP={},Nq;function K$e(){return Nq||(Nq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#263E52",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#263E52",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#5c98cd"},prolog:{color:"#5c98cd"},doctype:{color:"#5c98cd"},cdata:{color:"#5c98cd"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#F05E5D"},tag:{color:"#F05E5D"},constant:{color:"#F05E5D"},symbol:{color:"#F05E5D"},deleted:{color:"#F05E5D"},boolean:{color:"#BC94F9"},number:{color:"#BC94F9"},selector:{color:"#FCFCD6"},"attr-name":{color:"#FCFCD6"},string:{color:"#FCFCD6"},char:{color:"#FCFCD6"},builtin:{color:"#FCFCD6"},inserted:{color:"#FCFCD6"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#66D8EF"},"attr-value":{color:"#66D8EF"},function:{color:"#66D8EF"},"class-name":{color:"#66D8EF"},keyword:{color:"#6EB26E"},regex:{color:"#F05E5D"},important:{color:"#F05E5D",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(oP)),oP}var aP={},Pq;function X$e(){return Pq||(Pq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#a5e844"},attribute:{color:"#a5e844"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},comment:{color:"#616161"},constant:{color:"#c792ea"},deleted:{color:"#ff6666"},doctype:{color:"#616161"},entity:{color:"#ff6666"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#616161"},property:{color:"#80cbc4"},"pseudo-class":{color:"#a5e844"},"pseudo-element":{color:"#a5e844"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#ff6666"},string:{color:"#a5e844"},symbol:{color:"#c792ea"},tag:{color:"#ff6666"},unit:{color:"#fd9170"},url:{color:"#ff6666"},variable:{color:"#ff6666"}}}(aP)),aP}var lP={},Fq;function Z$e(){return Fq||(Fq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}}(lP)),lP}var uP={},Mq;function J$e(){return Mq||(Mq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#c3e88d"},attribute:{color:"#c3e88d"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},color:{color:"#f2ff00"},comment:{color:"#546e7a"},constant:{color:"#c792ea"},deleted:{color:"#f07178"},doctype:{color:"#546e7a"},entity:{color:"#f07178"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea",fontStyle:"italic"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#546e7a"},property:{color:"#80cbc4"},"pseudo-class":{color:"#c3e88d"},"pseudo-element":{color:"#c3e88d"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#f07178"},string:{color:"#c3e88d"},symbol:{color:"#c792ea"},tag:{color:"#f07178"},unit:{color:"#f07178"},url:{color:"#fd9170"},variable:{color:"#f07178"}}}(uP)),uP}var cP={},Oq;function Q$e(){return Oq||(Oq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#d6deeb",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#011627"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},':not(pre) > code[class*="language-"]':{color:"white",background:"#011627",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(130, 170, 255)"},function:{color:"rgb(130, 170, 255)"},builtin:{color:"rgb(130, 170, 255)"},char:{color:"rgb(130, 170, 255)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(cP)),cP}var dP={},Rq;function eze(){return Rq||(Rq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(dP)),dP}var hP={},Iq;function tze(){return Iq||(Iq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}}(hP)),hP}var fP={},jq;function nze(){return jq||(jq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}}(fP)),fP}var pP={},Lq;function rze(){return Lq||(Lq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#dccf8f",textShadow:"0"},'pre[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#DCCF8F",textShadow:"0",borderRadius:"5px",border:"1px solid #000",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"12px",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{borderRadius:"5px",border:"1px solid #000",color:"#DCCF8F",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"2px 6px"},namespace:{Opacity:".7"},comment:{color:"#586e75",fontStyle:"italic"},prolog:{color:"#586e75",fontStyle:"italic"},doctype:{color:"#586e75",fontStyle:"italic"},cdata:{color:"#586e75",fontStyle:"italic"},number:{color:"#b89859"},string:{color:"#468966"},char:{color:"#468966"},builtin:{color:"#468966"},inserted:{color:"#468966"},"attr-name":{color:"#b89859"},operator:{color:"#dccf8f"},entity:{color:"#dccf8f",cursor:"help"},url:{color:"#dccf8f"},".language-css .token.string":{color:"#dccf8f"},".style .token.string":{color:"#dccf8f"},selector:{color:"#859900"},regex:{color:"#859900"},atrule:{color:"#cb4b16"},keyword:{color:"#cb4b16"},"attr-value":{color:"#468966"},function:{color:"#b58900"},variable:{color:"#b58900"},placeholder:{color:"#b58900"},property:{color:"#b89859"},tag:{color:"#ffb03b"},boolean:{color:"#b89859"},constant:{color:"#b89859"},symbol:{color:"#b89859"},important:{color:"#dc322f"},statement:{color:"#dc322f"},deleted:{color:"#dc322f"},punctuation:{color:"#dccf8f"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(pP)),pP}var mP={},Bq;function ize(){return Bq||(Bq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245"},"pre[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245",padding:"2em",margin:"0.5em 0",overflow:"auto",background:"#1e1e3f"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},":not(pre) > code[class*='language-']":{background:"#1e1e3f",padding:"0.1em",borderRadius:"0.3em"},"":{fontWeight:"400"},comment:{color:"#b362ff"},prolog:{color:"#b362ff"},cdata:{color:"#b362ff"},delimiter:{color:"#ff9d00"},keyword:{color:"#ff9d00"},selector:{color:"#ff9d00"},important:{color:"#ff9d00"},atrule:{color:"#ff9d00"},operator:{color:"rgb(255, 180, 84)",background:"none"},"attr-name":{color:"rgb(255, 180, 84)"},punctuation:{color:"#ffffff"},boolean:{color:"rgb(255, 98, 140)"},tag:{color:"rgb(255, 157, 0)"},"tag.punctuation":{color:"rgb(255, 157, 0)"},doctype:{color:"rgb(255, 157, 0)"},builtin:{color:"rgb(255, 157, 0)"},entity:{color:"#6897bb",background:"none"},symbol:{color:"#6897bb"},number:{color:"#ff628c"},property:{color:"#ff628c"},constant:{color:"#ff628c"},variable:{color:"#ff628c"},string:{color:"#a5ff90"},char:{color:"#a5ff90"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline",background:"none"},function:{color:"rgb(250, 208, 0)"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#00ff00"},deleted:{background:"#ff000d"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"},"class-name":{color:"#fb94ff"},".language-css .token.string":{background:"none"},".style .token.string":{background:"none"},".line-highlight.line-highlight":{marginTop:"36px",background:"linear-gradient(to right, rgba(179, 98, 255, 0.17), transparent)"},".line-highlight.line-highlight:before":{content:"''"},".line-highlight.line-highlight[data-end]:after":{content:"''"}}}(mP)),mP}var gP={},$q;function sze(){return $q||($q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#002b36"},':not(pre) > code[class*="language-"]':{background:"#002b36",padding:".1em",borderRadius:".3em"},comment:{color:"#586e75"},prolog:{color:"#586e75"},doctype:{color:"#586e75"},cdata:{color:"#586e75"},punctuation:{color:"#93a1a1"},".namespace":{Opacity:".7"},property:{color:"#268bd2"},keyword:{color:"#268bd2"},tag:{color:"#268bd2"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#b58900"},constant:{color:"#b58900"},symbol:{color:"#dc322f"},deleted:{color:"#dc322f"},number:{color:"#859900"},selector:{color:"#859900"},"attr-name":{color:"#859900"},string:{color:"#859900"},char:{color:"#859900"},builtin:{color:"#859900"},inserted:{color:"#859900"},variable:{color:"#268bd2"},operator:{color:"#EDEDED"},function:{color:"#268bd2"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"}}}(gP)),gP}var yP={},zq;function oze(){return zq||(zq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)"},':not(pre) > code[class*="language-"]':{backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8e8e8e"},"block-comment":{color:"#8e8e8e"},prolog:{color:"#8e8e8e"},doctype:{color:"#8e8e8e"},cdata:{color:"#8e8e8e"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},number:{color:"#e2777a"},unit:{color:"#e2777a"},hexcode:{color:"#e2777a"},deleted:{color:"#e2777a"},property:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},selector:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},"function-name":{color:"#6196cc"},boolean:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"selector.id":{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},function:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"class-name":{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"},constant:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},symbol:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},important:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575",fontWeight:"bold"},atrule:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},keyword:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},"selector.class":{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},builtin:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},string:{color:"#f87c32"},char:{color:"#f87c32"},"attr-value":{color:"#f87c32"},regex:{color:"#f87c32"},variable:{color:"#f87c32"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(yP)),yP}var bP={},Hq;function aze(){return Hq||(Hq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"]::selection':{background:"#C1DEF1"},'pre[class*="language-"] ::selection':{background:"#C1DEF1"},'code[class*="language-"]::selection':{background:"#C1DEF1"},'code[class*="language-"] ::selection':{background:"#C1DEF1"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#008000",fontStyle:"italic"},prolog:{color:"#008000",fontStyle:"italic"},doctype:{color:"#008000",fontStyle:"italic"},cdata:{color:"#008000",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#A31515"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#0000ff"},keyword:{color:"#0000ff"},"attr-value":{color:"#0000ff"},".language-autohotkey .token.selector":{color:"#0000ff"},".language-json .token.boolean":{color:"#0000ff"},".language-json .token.number":{color:"#0000ff"},'code[class*="language-css"]':{color:"#0000ff"},function:{color:"#393A34"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},selector:{color:"#800000"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#2B91AF"},".language-json .token.property":{color:"#2B91AF"},tag:{color:"#800000"},"attr-name":{color:"#ff0000"},property:{color:"#ff0000"},regex:{color:"#ff0000"},entity:{color:"#ff0000"},"directive.tag.tag":{background:"#ffff00",color:"#393A34"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#a5a5a5"},".line-numbers .line-numbers-rows > span:before":{color:"#2B91AF"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))"}}}(bP)),bP}var vP={},Vq;function lze(){return Vq||(Vq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}}(vP)),vP}var xP={},Uq;function uze(){return Uq||(Uq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none"},'pre[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none",background:"#2a2a2a",padding:"15px",borderRadius:"4px",border:"1px solid #e1e1e8",overflow:"auto",position:"relative"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{background:"#2a2a2a",padding:"0.15em 0.2em 0.05em",borderRadius:".3em",border:"0.13em solid #7a6652",boxShadow:"1px 1px 0.3em -0.1em #000 inset"},'pre[class*="language-"] code':{whiteSpace:"pre",display:"block"},namespace:{Opacity:".7"},comment:{color:"#6f705e"},prolog:{color:"#6f705e"},doctype:{color:"#6f705e"},cdata:{color:"#6f705e"},operator:{color:"#a77afe"},boolean:{color:"#a77afe"},number:{color:"#a77afe"},"attr-name":{color:"#e6d06c"},string:{color:"#e6d06c"},entity:{color:"#e6d06c",cursor:"help"},url:{color:"#e6d06c"},".language-css .token.string":{color:"#e6d06c"},".style .token.string":{color:"#e6d06c"},selector:{color:"#a6e22d"},inserted:{color:"#a6e22d"},atrule:{color:"#ef3b7d"},"attr-value":{color:"#ef3b7d"},keyword:{color:"#ef3b7d"},important:{color:"#ef3b7d",fontWeight:"bold"},deleted:{color:"#ef3b7d"},regex:{color:"#76d9e6"},statement:{color:"#76d9e6",fontWeight:"bold"},placeholder:{color:"#fff"},variable:{color:"#fff"},bold:{fontWeight:"bold"},punctuation:{color:"#bebec5"},italic:{fontStyle:"italic"},"code.language-markup":{color:"#f9f9f9"},"code.language-markup .token.tag":{color:"#ef3b7d"},"code.language-markup .token.attr-name":{color:"#a6e22d"},"code.language-markup .token.attr-value":{color:"#e6d06c"},"code.language-markup .token.style":{color:"#76d9e6"},"code.language-markup .token.script":{color:"#76d9e6"},"code.language-markup .token.script .token.keyword":{color:"#76d9e6"},".line-highlight.line-highlight":{padding:"0",background:"rgba(255, 255, 255, 0.08)"},".line-highlight.line-highlight:before":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"},".line-highlight.line-highlight[data-end]:after":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"}}}(xP)),xP}var wP={},qq;function cze(){return qq||(qq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#22da17",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"5px 0"},'pre[class*="language-"]':{color:"white",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"0.5em 0",background:"#0a143c",padding:"1em",overflow:"auto"},'pre[class*="language-"] *':{fontFamily:"monospace"},':not(pre) > code[class*="language-"]':{color:"white",background:"#0a143c",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(34 183 199)"},function:{color:"rgb(34 183 199)"},builtin:{color:"rgb(34 183 199)"},char:{color:"rgb(34 183 199)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(wP)),wP}var Wq;function dze(){return Wq||(Wq=1,function(e){var t=x$e();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"a11yDark",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"atomDark",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"base16AteliersulphurpoolLight",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"cb",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"coldarkCold",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"coldarkDark",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"coy",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"coyWithoutShadows",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"darcula",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"dark",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"dracula",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"duotoneDark",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"duotoneEarth",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"duotoneForest",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"duotoneLight",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"duotoneSea",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"duotoneSpace",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"funky",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"ghcolors",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"gruvboxDark",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gruvboxLight",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"holiTheme",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"hopscotch",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"lucario",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"materialDark",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"materialLight",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"materialOceanic",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"nightOwl",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"nord",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"okaidia",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"oneDark",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"oneLight",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"pojoaque",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"prism",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"shadesOfPurple",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"solarizedDarkAtom",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"solarizedlight",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"synthwave84",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"tomorrow",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"twilight",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"vs",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"vscDarkPlus",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"xonokai",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"zTouch",{enumerable:!0,get:function(){return De.default}});var n=t(w$e()),r=t(S$e()),i=t(C$e()),s=t(E$e()),o=t(D$e()),a=t(k$e()),l=t(A$e()),u=t(_$e()),c=t(T$e()),d=t(N$e()),f=t(P$e()),p=t(F$e()),b=t(M$e()),w=t(O$e()),E=t(R$e()),S=t(I$e()),k=t(j$e()),A=t(L$e()),P=t(B$e()),M=t($$e()),F=t(z$e()),I=t(H$e()),j=t(V$e()),B=t(U$e()),L=t(q$e()),z=t(W$e()),Y=t(G$e()),Q=t(Y$e()),$=t(K$e()),J=t(X$e()),H=t(Z$e()),q=t(J$e()),W=t(Q$e()),K=t(eze()),V=t(tze()),X=t(nze()),re=t(rze()),U=t(ize()),te=t(sze()),se=t(oze()),ue=t(aze()),ie=t(lze()),pe=t(uze()),De=t(cze())}(N4)),N4}var hze=dze();const Hoe=1024;let fze=0,SP=class{constructor(t,n){this.from=t,this.to=n}};class un{constructor(t={}){this.id=fze++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Mo.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}un.closedBy=new un({deserialize:e=>e.split(" ")});un.openedBy=new un({deserialize:e=>e.split(" ")});un.group=new un({deserialize:e=>e.split(" ")});un.isolate=new un({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});un.contextHash=new un({perNode:!0});un.lookAhead=new un({perNode:!0});un.mounted=new un({perNode:!0});class Lk{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[un.mounted.id]}}const pze=Object.create(null);class Mo{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):pze,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Mo(t.name||"",n,t.id,r);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(un.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(un.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}}Mo.none=new Mo("",Object.create(null),0,8);class RI{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let s of t){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new Mo(r.name,i,r.id,r.flags):r)}return new RI(n)}}const dE=new WeakMap,Gq=new WeakMap;var zi;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(zi||(zi={}));class bi{constructor(t,n,r,i,s){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=Lk.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new CF(this.topNode,t)}cursorAt(t,n=0,r=0){let i=dE.get(this)||this.topNode,s=new CF(i);return s.moveTo(t,n),dE.set(this,s._tree),s}get topNode(){return new Ma(this,0,0,null)}resolve(t,n=0){let r=P1(dE.get(this)||this.topNode,t,n,!1);return dE.set(this,r),r}resolveInner(t,n=0){let r=P1(Gq.get(this)||this.topNode,t,n,!0);return Gq.set(this,r),r}resolveStack(t,n=0){return yze(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&zi.IncludeAnonymous)>0;for(let l=this.cursor(o|zi.IncludeAnonymous);;){let u=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:LI(Mo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new bi(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new bi(Mo.none,n,r,i)))}static build(t){return bze(t)}}bi.empty=new bi(Mo.none,[],[],0);class II{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new II(this.buffer,this.index)}}class Cf{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Mo.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,r==t)return s;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(Voe(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let i=this.buffer,s=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let u=s[l++]=i[a++]-r;s[l++]=i[a++]-t,o=Math.max(o,u)}return new Cf(s,o,this.set)}}function Voe(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function P1(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof Ma&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=r?0:zi.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Ma&&o.index<0&&((i=a.enter(t,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,s);if(!o)return e;e=o}}class Uoe{cursor(t=0){return new CF(this,t)}getChild(t,n=null,r=null){let i=Yq(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return Yq(this,t,n,r)}resolve(t,n=0){return P1(this,t,n,!1)}resolveInner(t,n=0){return P1(this,t,n,!0)}matchContext(t){return SF(this.parent,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class Ma extends Uoe{constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,u=n>0?a.length:-1;t!=u;t+=n){let c=a[t],d=l[t]+o.from;if(Voe(i,r,d,d+c.length)){if(c instanceof Cf){if(s&zi.ExcludeBuffers)continue;let f=c.findChild(0,c.buffer.length,n,r-d,i);if(f>-1)return new Wh(new mze(o,c,t,d),null,f)}else if(s&zi.IncludeAnonymous||!c.type.isAnonymous||jI(c)){let f;if(!(s&zi.IgnoreMounts)&&(f=Lk.get(c))&&!f.overlay)return new Ma(f.tree,d,t,o);let p=new Ma(c,d,t,o);return s&zi.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(s&zi.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&zi.IgnoreOverlays)&&(i=Lk.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new Ma(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Yq(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function SF(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class mze{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Wh extends Uoe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return s<0?null:new Wh(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&zi.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return s<0?null:new Wh(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Wh(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Wh(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];t.push(r.slice(i,s,o)),n.push(0)}return new bi(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function qoe(e){if(!e.length)return null;let t=0,n=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>n.from||o.to<n.to)&&(n=o,t=s)}let r=n instanceof Ma&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new gze(i,n)}class gze{constructor(t,n){this.heads=t,this.node=n}get next(){return qoe(this.heads)}}function yze(e,t,n){let r=e.resolveInner(t,n),i=null;for(let s=r instanceof Ma?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(t,n)),s=o}else{let o=Lk.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Ma(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(P1(a,t,n,!1))}}return i?qoe(i):r}class CF{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Ma)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof Ma?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&zi.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&zi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&zi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+t,o=t<0?-1:r._tree.children.length;s!=o;s+=t){let a=r._tree.children[s];if(this.mode&zi.IncludeAnonymous||a instanceof Cf||!a.type.isAnonymous||jI(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)n=new Wh(this.buffer,n,this.stack[i]);return this.bufferNode=new Wh(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return SF(this.node.parent,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return SF(this._tree,t,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function jI(e){return e.children.some(t=>t instanceof Cf||!t.type.isAnonymous||jI(t))}function bze(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Hoe,reused:s=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new II(n,n.length):n,l=r.types,u=0,c=0;function d(M,F,I,j,B,L){let{id:z,start:Y,end:Q,size:$}=a,J=c,H=u;for(;$<0;)if(a.next(),$==-1){let X=s[z];I.push(X),j.push(Y-M);return}else if($==-3){u=z;return}else if($==-4){c=z;return}else throw new RangeError(`Unrecognized record size: ${$}`);let q=l[z],W,K,V=Y-M;if(Q-Y<=i&&(K=E(a.pos-F,B))){let X=new Uint16Array(K.size-K.skip),re=a.pos-K.size,U=X.length;for(;a.pos>re;)U=S(K.start,X,U);W=new Cf(X,Q-K.start,r),V=K.start-M}else{let X=a.pos-$;a.next();let re=[],U=[],te=z>=o?z:-1,se=0,ue=Q;for(;a.pos>X;)te>=0&&a.id==te&&a.size>=0?(a.end<=ue-i&&(b(re,U,Y,se,a.end,ue,te,J,H),se=re.length,ue=a.end),a.next()):L>2500?f(Y,X,re,U):d(Y,X,re,U,te,L+1);if(te>=0&&se>0&&se<re.length&&b(re,U,Y,se,Y,ue,te,J,H),re.reverse(),U.reverse(),te>-1&&se>0){let ie=p(q,H);W=LI(q,re,U,0,re.length,0,Q-Y,ie,ie)}else W=w(q,re,U,Q-Y,J-Q,H)}I.push(W),j.push(V)}function f(M,F,I,j){let B=[],L=0,z=-1;for(;a.pos>F;){let{id:Y,start:Q,end:$,size:J}=a;if(J>4)a.next();else{if(z>-1&&Q<z)break;z<0&&(z=$-i),B.push(Y,Q,$),L++,a.next()}}if(L){let Y=new Uint16Array(L*4),Q=B[B.length-2];for(let $=B.length-3,J=0;$>=0;$-=3)Y[J++]=B[$],Y[J++]=B[$+1]-Q,Y[J++]=B[$+2]-Q,Y[J++]=J;I.push(new Cf(Y,B[2]-Q,r)),j.push(Q-M)}}function p(M,F){return(I,j,B)=>{let L=0,z=I.length-1,Y,Q;if(z>=0&&(Y=I[z])instanceof bi){if(!z&&Y.type==M&&Y.length==B)return Y;(Q=Y.prop(un.lookAhead))&&(L=j[z]+Y.length+Q)}return w(M,I,j,B,L,F)}}function b(M,F,I,j,B,L,z,Y,Q){let $=[],J=[];for(;M.length>j;)$.push(M.pop()),J.push(F.pop()+I-B);M.push(w(r.types[z],$,J,L-B,Y-L,Q)),F.push(B-I)}function w(M,F,I,j,B,L,z){if(L){let Y=[un.contextHash,L];z=z?[Y].concat(z):[Y]}if(B>25){let Y=[un.lookAhead,B];z=z?[Y].concat(z):[Y]}return new bi(M,F,I,j,z)}function E(M,F){let I=a.fork(),j=0,B=0,L=0,z=I.end-i,Y={size:0,start:0,skip:0};e:for(let Q=I.pos-M;I.pos>Q;){let $=I.size;if(I.id==F&&$>=0){Y.size=j,Y.start=B,Y.skip=L,L+=4,j+=4,I.next();continue}let J=I.pos-$;if($<0||J<Q||I.start<z)break;let H=I.id>=o?4:0,q=I.start;for(I.next();I.pos>J;){if(I.size<0)if(I.size==-3)H+=4;else break e;else I.id>=o&&(H+=4);I.next()}B=q,j+=$,L+=H}return(F<0||j==M)&&(Y.size=j,Y.start=B,Y.skip=L),Y.size>4?Y:void 0}function S(M,F,I){let{id:j,start:B,end:L,size:z}=a;if(a.next(),z>=0&&j<o){let Y=I;if(z>4){let Q=a.pos-(z-4);for(;a.pos>Q;)I=S(M,F,I)}F[--I]=Y,F[--I]=L-M,F[--I]=B-M,F[--I]=j}else z==-3?u=j:z==-4&&(c=j);return I}let k=[],A=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,k,A,-1,0);let P=(t=e.length)!==null&&t!==void 0?t:k.length?A[0]+k[0].length:0;return new bi(l[e.topID],k.reverse(),A.reverse(),P)}const Kq=new WeakMap;function ND(e,t){if(!e.isAnonymous||t instanceof Cf||t.type!=e)return 1;let n=Kq.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof bi)){n=1;break}n+=ND(e,r)}Kq.set(t,n)}return n}function LI(e,t,n,r,i,s,o,a,l){let u=0;for(let b=r;b<i;b++)u+=ND(e,t[b]);let c=Math.ceil(u*1.5/8),d=[],f=[];function p(b,w,E,S,k){for(let A=E;A<S;){let P=A,M=w[A],F=ND(e,b[A]);for(A++;A<S;A++){let I=ND(e,b[A]);if(F+I>=c)break;F+=I}if(A==P+1){if(F>c){let I=b[P];p(I.children,I.positions,0,I.children.length,w[P]+k);continue}d.push(b[P])}else{let I=w[A-1]+b[A-1].length-M;d.push(LI(e,b,w,P,A,M,I,null,l))}f.push(M+k-s)}}return p(t,n,r,i,0),(a||l)(d,f,o)}class sm{constructor(t,n,r,i,s=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new sm(0,t.length,t,0,!1,r)];for(let s of n)s.to>t.length&&i.push(s);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,u=0;;a++){let c=a<n.length?n[a]:null,d=c?c.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||u){let p=Math.max(f.from,l)-u,b=Math.min(f.to,d)-u;f=p>=b?null:new sm(p,b,f.tree,f.offset+u,a>0,!!c)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return i}}class Woe{startParse(t,n,r){return typeof t=="string"&&(t=new vze(t)),r=r?r.length?r.map(i=>new SP(i.from,i.to)):[new SP(0,0)]:[new SP(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let s=i.advance();if(s)return s}}}class vze{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new un({perNode:!0});var xze={},Xq={};class Bk{constructor(t,n,r,i,s,o,a,l,u,c=0,d){this.p=t,this.stack=n,this.state=r,this.reducePos=i,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=d}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new Bk(t,[],n,r,r,0,[],0,i?new Zq(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(r-1)*3-(t&262144?6:0),u=l?this.stack[l-2]:this.p.ranges[0].from,c=this.reducePos-u;c>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=u,this.p.lastBigReductionSize=c));let d=l?this.stack[l-1]:0,f=this.bufferBase+this.buffer.length-d;if(i<s.minRepeatTerm||t&131072){let p=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,u,p,f+4,!0)}if(t&262144)this.state=this.stack[l];else{let p=this.stack[l-3];this.state=s.getGoto(p,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,u)}storeNode(t,n,r,i=4,s=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(n==r)return;if(o.buffer[a-2]>=n){o.buffer[a-2]=r;return}}}if(!s||this.pos==r)this.buffer.push(t,n,r,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=t,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let s=t,{parser:o}=this.p;(i>this.pos||n<=o.maxNode)&&(this.pos=i,o.stateFlag(s,1)||(this.reducePos=i)),this.pushState(s,r),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,i,4)}else this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4)}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new Bk(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new wze(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let s=0,o;s<n.length;s+=2)(o=n[s+1])!=this.state&&this.p.parser.hasAction(o,t)&&i.push(n[s],o);if(this.stack.length<120)for(let s=0;i.length<8&&s<n.length;s+=2){let o=n[s+1];i.some((a,l)=>l&1&&a==o)||i.push(n[s],o)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let s=n[i+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[i],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,i=n&65535,s=this.stack.length-r*3;if(s<0||t.getGoto(this.stack[s],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,s)=>{if(!n.includes(i))return n.push(i),t.allActions(i,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,u=this.stack.length-a*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return a<<19|65536|l}}else{let a=r(o,s+1);if(a!=null)return a}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new Zq(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Zq{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class wze{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class $k{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new $k(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new $k(this.stack,this.pos,this.index)}}function hE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r<e.length;){let s=0;for(;;){let o=e.charCodeAt(r++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}n?n[i++]=s:n=new t(s)}return n}class PD{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Jq=new PD;class Sze{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Jq,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,s=this.pos+t;for(;s<r.from;){if(!i)return null;let o=this.ranges[--i];s-=r.from-o.to,r=o}for(;n<0?s>r.to:s>=r.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];s+=o.from-r.to,r=o}return s}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+t,i=this.chunk.charCodeAt(n);else{let s=this.resolveOffset(t,1);if(s==null)return-1;if(r=s,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}acceptTokenTo(t,n){this.token.value=t,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=Jq,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class zy{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;Cze(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}zy.prototype.contextual=zy.prototype.fallback=zy.prototype.extend=!1;zy.prototype.fallback=zy.prototype.extend=!1;function Cze(e,t,n,r,i,s){let o=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;(a&e[o])!=0;){let u=e[o+1];for(let p=o+3;p<u;p+=2)if((e[p+1]&a)>0){let b=e[p];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||Eze(b,t.token.value,i,s))){t.acceptToken(b);break}}let c=t.next,d=0,f=e[o+2];if(t.next<0&&f>d&&e[u+f*3-3]==65535){o=e[u+f*3-1];continue e}for(;d<f;){let p=d+f>>1,b=u+p+(p<<1),w=e[b],E=e[b+1]||65536;if(c<w)f=p;else if(c>=E)d=p+1;else{o=e[b+2],t.advance();continue e}}break}}function Qq(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function Eze(e,t,n,r){let i=Qq(n,r,t);return i<0||Qq(n,r,e)<i}const qo=typeof xze<"u"&&Xq&&/\bparse\b/.test(Xq.LOG);let CP=null;function eW(e,t,n){let r=e.cursor(zi.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class Dze{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?eW(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?eW(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=r.children[i],o=this.start[n]+r.positions[i];if(o>t)return this.nextStart=o,null;if(s instanceof bi){if(o==t){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(un.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[n]++,o+s.length>=Math.max(this.safeFrom,t)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+s.length}}}class kze{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new PD)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:s}=i,o=i.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let u=0;u<s.length;u++){if((1<<u&o)==0)continue;let c=s[u],d=this.tokens[u];if(!(r&&!c.fallback)&&((c.contextual||d.start!=t.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,c,t),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let f=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>f))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new PD,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new PD,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:s}=r.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==t.value){let a=s.specializers[o](this.stream.read(t.start,t.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let s=0;s<i;s+=3)if(this.actions[s]==t)return i;return this.actions[i++]=t,this.actions[i++]=n,this.actions[i++]=r,i}addActions(t,n,r,i){let{state:s}=t,{parser:o}=t.p,{data:a}=o;for(let l=0;l<2;l++)for(let u=o.stateSlot(s,l?2:1);;u+=3){if(a[u]==65535)if(a[u+1]==1)u=qc(a,u+2);else{i==0&&a[u+1]==2&&(i=this.putAction(qc(a,u+2),n,r,i));break}a[u]==n&&(i=this.putAction(qc(a,u+1),n,r,i))}return i}}class Aze{constructor(t,n,r,i){this.parser=t,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Sze(n,i),this.tokens=new kze(t,this.stream),this.topTerm=t.top[1];let{from:s}=i[0];this.stacks=[Bk.start(this,t.top[0],s)],this.fragments=r.length&&this.stream.end-s>t.bufferLength*4?new Dze(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,s;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<t.length;o++){let a=t[o];for(;;){if(this.tokens.mainToken=null,a.pos>n)r.push(a);else{if(this.advanceStack(a,r,t))continue;{i||(i=[],s=[]),i.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!r.length){let o=i&&Tze(i);if(o)return qo&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw qo&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,r);if(o)return qo&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((a,l)=>l.score-a.score);r.length>o;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let a=r[o];for(let l=o+1;l<r.length;l++){let u=r[l];if(a.sameState(u)||a.buffer.length>500&&u.buffer.length>500)if((a.score-u.score||a.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let i=t.pos,{parser:s}=this,o=qo?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?s.getGoto(t.state,d.type.id):-1;if(f>-1&&d.length&&(!u||(d.prop(un.contextHash)||0)==c))return t.useNode(d,f),qo&&console.log(o+this.stackID(t)+` (via reuse of ${s.getName(d.type.id)})`),!0;if(!(d instanceof bi)||d.children.length==0||d.positions[0]>0)break;let p=d.children[0];if(p instanceof bi&&d.positions[0]==0)d=p;else break}}let a=s.stateSlot(t.state,4);if(a>0)return t.reduce(a),qo&&console.log(o+this.stackID(t)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;u<l.length;){let c=l[u++],d=l[u++],f=l[u++],p=u==l.length||!r,b=p?t:t.split(),w=this.tokens.mainToken;if(b.apply(c,d,w?w.start:b.pos,f),qo&&console.log(o+this.stackID(b)+` (via ${(c&65536)==0?"shift":`reduce of ${s.getName(c&65535)}`} for ${s.getName(d)} @ ${i}${b==t?"":", split"})`),p)return!0;b.pos>i?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return tW(t,n),!0}}runRecovery(t,n,r){let i=null,s=!1;for(let o=0;o<t.length;o++){let a=t[o],l=n[o<<1],u=n[(o<<1)+1],c=qo?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),qo&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let d=a.split(),f=c;for(let p=0;d.forceReduce()&&p<10&&(qo&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));p++)qo&&(f=this.stackID(d)+" -> ");for(let p of a.recoverByInsert(l))qo&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,r);this.stream.end>a.pos?(u==a.pos&&(u++,l=0),a.recoverByDelete(l,u),qo&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),tW(a,r)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(t){return t.close(),bi.build({buffer:$k.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(CP||(CP=new WeakMap)).get(t);return n||CP.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function tW(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class _ze{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}class zk extends Woe{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<t.repeatNodeCount;a++)n.push("");let r=Object.keys(t.topRules).map(a=>t.topRules[a][1]),i=[];for(let a=0;a<n.length;a++)i.push([]);function s(a,l,u){i[a].push([l,l.deserialize(String(u))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=un[l]);for(let u=1;u<a.length;){let c=a[u++];if(c>=0)s(c,l,a[u++]);else{let d=a[u+-c];for(let f=-c;f>0;f--)s(a[u++],l,d);u++}}}this.nodeSet=new RI(n.map((a,l)=>Mo.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Hoe;let o=hE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(nW),this.states=hE(t.states,Uint32Array),this.data=hE(t.stateData),this.goto=hE(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new zy(o,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new Aze(this,t,n,r);for(let s of this.wrappers)i=s(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let s=i[n+1];;){let o=i[s++],a=o&1,l=i[s++];if(a&&r)return l;for(let u=s+(o>>1);s<u;s++)if(i[s]==t)return l;if(a)return-1}}hasAction(t,n){let r=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(t,i?2:1),o;;s+=3){if((o=r[s])==65535)if(r[s+1]==1)o=r[s=qc(r,s+2)];else{if(r[s+1]==2)return qc(r,s+2);break}if(o==n||o==0)return qc(r,s+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let s=this.stateSlot(t,1);i==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=qc(this.data,s+2);else break;i=n(qc(this.data,s+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=qc(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];n.some((s,o)=>o&1&&s==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(zk.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(s=>s.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let s=t.specializers.find(a=>a.from==r.external);if(!s)return r;let o=Object.assign(Object.assign({},r),{external:s.to});return n.specializers[i]=nW(o),o})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let s of t.split(" ")){let o=n.indexOf(s);o>=0&&(r[o]=!0)}let i=null;for(let s=0;s<n.length;s++)if(!r[s])for(let o=this.dialects[n[s]],a;(a=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new _ze(t,r,i)}static deserialize(t){return new zk(t)}}function qc(e,t){return e[t]|e[t+1]<<16}function Tze(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function nW(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}let Nze=0;class _a{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=Nze++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof _a&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new _a(r,[],null,[]);if(i.set.push(i),n)for(let s of n.set)i.set.push(s);return i}static defineModifier(t){let n=new Hk(t);return r=>r.modified.indexOf(n)>-1?r:Hk.get(r.base||r,r.modified.concat(n).sort((i,s)=>i.id-s.id))}}let Pze=0;class Hk{constructor(t){this.name=t,this.instances=[],this.id=Pze++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Fze(n,a.modified));if(r)return r;let i=[],s=new _a(t.name,i,t,n);for(let a of n)a.instances.push(s);let o=Mze(n);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(Hk.get(a,l));return s}}function Fze(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function Mze(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function Goe(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let p=i[d++];if(d==i.length&&p=="!"){o=0;break}if(p!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,u=s[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new Vk(r,o,l>0?s.slice(0,l):null);t[u]=c.sort(t[u])}}return Yoe.add(t)}const Yoe=new un;class Vk{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Vk.empty=new Vk([],2,null);function Koe(e,t){let n=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let u=n[l.id];if(u){o=o?o+" "+u:u;break}}return o},scope:r}}function Oze(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Rze(e,t,n,r=0,i=e.length){let s=new Ize(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}class Ize{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,s){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(p=>!p.scope||p.scope(o)));let u=i,c=jze(t)||Vk.empty,d=Oze(s,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,a),u),c.opaque)return;let f=t.tree&&t.tree.prop(un.mounted);if(f&&f.overlay){let p=t.node.enter(f.overlay[0].from+a,1),b=this.highlighters.filter(E=>!E.scope||E.scope(f.tree.type)),w=t.firstChild();for(let E=0,S=a;;E++){let k=E<f.overlay.length?f.overlay[E]:null,A=k?k.from+a:l,P=Math.max(n,S),M=Math.min(r,A);if(P<M&&w)for(;t.from<M&&(this.highlightRange(t,P,M,i,s),this.startSpan(Math.min(M,t.to),u),!(t.to>=A||!t.nextSibling())););if(!k||A>r)break;S=k.to+a,S>n&&(this.highlightRange(p.cursor(),Math.max(n,k.from+a),Math.min(r,S),"",b),this.startSpan(Math.min(r,S),u))}w&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,s),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function jze(e){let t=e.type.prop(Yoe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const rt=_a.define,fE=rt(),Nh=rt(),rW=rt(Nh),iW=rt(Nh),Ph=rt(),pE=rt(Ph),EP=rt(Ph),gu=rt(),xp=rt(gu),cu=rt(),du=rt(),EF=rt(),ex=rt(EF),mE=rt(),Se={comment:fE,lineComment:rt(fE),blockComment:rt(fE),docComment:rt(fE),name:Nh,variableName:rt(Nh),typeName:rW,tagName:rt(rW),propertyName:iW,attributeName:rt(iW),className:rt(Nh),labelName:rt(Nh),namespace:rt(Nh),macroName:rt(Nh),literal:Ph,string:pE,docString:rt(pE),character:rt(pE),attributeValue:rt(pE),number:EP,integer:rt(EP),float:rt(EP),bool:rt(Ph),regexp:rt(Ph),escape:rt(Ph),color:rt(Ph),url:rt(Ph),keyword:cu,self:rt(cu),null:rt(cu),atom:rt(cu),unit:rt(cu),modifier:rt(cu),operatorKeyword:rt(cu),controlKeyword:rt(cu),definitionKeyword:rt(cu),moduleKeyword:rt(cu),operator:du,derefOperator:rt(du),arithmeticOperator:rt(du),logicOperator:rt(du),bitwiseOperator:rt(du),compareOperator:rt(du),updateOperator:rt(du),definitionOperator:rt(du),typeOperator:rt(du),controlOperator:rt(du),punctuation:EF,separator:rt(EF),bracket:ex,angleBracket:rt(ex),squareBracket:rt(ex),paren:rt(ex),brace:rt(ex),content:gu,heading:xp,heading1:rt(xp),heading2:rt(xp),heading3:rt(xp),heading4:rt(xp),heading5:rt(xp),heading6:rt(xp),contentSeparator:rt(gu),list:rt(gu),quote:rt(gu),emphasis:rt(gu),strong:rt(gu),link:rt(gu),monospace:rt(gu),strikethrough:rt(gu),inserted:rt(),deleted:rt(),changed:rt(),invalid:rt(),meta:mE,documentMeta:rt(mE),annotation:rt(mE),processingInstruction:rt(mE),definition:_a.defineModifier("definition"),constant:_a.defineModifier("constant"),function:_a.defineModifier("function"),standard:_a.defineModifier("standard"),local:_a.defineModifier("local"),special:_a.defineModifier("special")};for(let e in Se){let t=Se[e];t instanceof _a&&(t.name=e)}Koe([{tag:Se.link,class:"tok-link"},{tag:Se.heading,class:"tok-heading"},{tag:Se.emphasis,class:"tok-emphasis"},{tag:Se.strong,class:"tok-strong"},{tag:Se.keyword,class:"tok-keyword"},{tag:Se.atom,class:"tok-atom"},{tag:Se.bool,class:"tok-bool"},{tag:Se.url,class:"tok-url"},{tag:Se.labelName,class:"tok-labelName"},{tag:Se.inserted,class:"tok-inserted"},{tag:Se.deleted,class:"tok-deleted"},{tag:Se.literal,class:"tok-literal"},{tag:Se.string,class:"tok-string"},{tag:Se.number,class:"tok-number"},{tag:[Se.regexp,Se.escape,Se.special(Se.string)],class:"tok-string2"},{tag:Se.variableName,class:"tok-variableName"},{tag:Se.local(Se.variableName),class:"tok-variableName tok-local"},{tag:Se.definition(Se.variableName),class:"tok-variableName tok-definition"},{tag:Se.special(Se.variableName),class:"tok-variableName2"},{tag:Se.definition(Se.propertyName),class:"tok-propertyName tok-definition"},{tag:Se.typeName,class:"tok-typeName"},{tag:Se.namespace,class:"tok-namespace"},{tag:Se.className,class:"tok-className"},{tag:Se.macroName,class:"tok-macroName"},{tag:Se.propertyName,class:"tok-propertyName"},{tag:Se.operator,class:"tok-operator"},{tag:Se.comment,class:"tok-comment"},{tag:Se.meta,class:"tok-meta"},{tag:Se.invalid,class:"tok-invalid"},{tag:Se.punctuation,class:"tok-punctuation"}]);const Lze=Goe({String:Se.string,Number:Se.number,"True False":Se.bool,PropertyName:Se.propertyName,Null:Se.null,", :":Se.separator,"[ ]":Se.squareBracket,"{ }":Se.brace}),Bze=zk.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Lze],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let DF=[],Xoe=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?Xoe:DF).push(n=n+e[t])})();function $ze(e){if(e<768)return!1;for(let t=0,n=DF.length;;){let r=t+n>>1;if(e<DF[r])n=r;else if(e>=Xoe[r])t=r+1;else return!0;if(t==n)return!1}}function sW(e){return e>=127462&&e<=127487}const oW=8205;function zze(e,t,n=!0,r=!0){return(n?Zoe:Hze)(e,t,r)}function Zoe(e,t,n){if(t==e.length)return t;t&&Joe(e.charCodeAt(t))&&Qoe(e.charCodeAt(t-1))&&t--;let r=DP(e,t);for(t+=aW(r);t<e.length;){let i=DP(e,t);if(r==oW||i==oW||n&&$ze(i))t+=aW(i),r=i;else if(sW(i)){let s=0,o=t-2;for(;o>=0&&sW(DP(e,o));)s++,o-=2;if(s%2==0)break;t+=2}else break}return t}function Hze(e,t,n){for(;t>0;){let r=Zoe(e,t-2,n);if(r<t)return r;t--}return 0}function DP(e,t){let n=e.charCodeAt(t);if(!Qoe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Joe(r)?(n-55296<<10)+(r-56320)+65536:n}function Joe(e){return e>=56320&&e<57344}function Qoe(e){return e>=55296&&e<56320}function aW(e){return e<65536?1:2}let In=class eae{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=A0(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),ku.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=A0(this,t,n);let r=[];return this.decompose(t,n,r,0),ku.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new qx(this),s=new qx(t);for(let o=n,a=n;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(t=1){return new qx(this,t)}iterRange(t,n=this.length){return new tae(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new nae(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?eae.empty:t.length<=32?new ei(t):ku.from(ei.split(t,[]))}};class ei extends In{constructor(t,n=Vze(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((n?r:a)>=t)return new Uze(i,a,r,o);i=a+1,r++}}decompose(t,n,r,i){let s=t<=0&&n>=this.length?this:new ei(lW(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let o=r.pop(),a=FD(s.text,o.text.slice(),0,s.length);if(a.length<=32)r.push(new ei(a,o.length+s.length));else{let l=a.length>>1;r.push(new ei(a.slice(0,l)),new ei(a.slice(l)))}}else r.push(s)}replace(t,n,r){if(!(r instanceof ei))return super.replace(t,n,r);[t,n]=A0(this,t,n);let i=FD(this.text,FD(r.text,lW(this.text,0,t)),n),s=this.length+r.length-(n-t);return i.length<=32?new ei(i,s):ku.from(ei.split(i,[]),s)}sliceString(t,n=this.length,r=`
|
|
523
|
+
`).length);var pe=ie+A,De=i$e(ue,I,z,w,S,A,pe,F,B);return Ae.createElement($,te,Ae.createElement(H,d,!S&&X,Y({rows:De,stylesheet:a,useInlineStyles:p})))}}function QU(e,t,n,r,i,s,o){try{var a=e[s](o),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,i)}function l$e(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function o(l){QU(s,r,i,o,a,"next",l)}function a(l){QU(s,r,i,o,a,"throw",l)}o(void 0)})}}function u$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Roe(r.key),r)}}function c$e(e,t,n){return t&&eq(e.prototype,t),n&&eq(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h$e(e,t){if(t&&(Sf(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d$e(e)}function jk(e){return jk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jk(e)}function xF(e,t){return xF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xF(e,t)}function f$e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xF(e,t)}function wF(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wF=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(H,q,W){H[q]=W.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function u(H,q,W){return Object.defineProperty(H,q,{value:W,enumerable:!0,configurable:!0,writable:!0}),H[q]}try{u({},"")}catch{u=function(W,K,V){return W[K]=V}}function c(H,q,W,K){var V=q&&q.prototype instanceof S?q:S,X=Object.create(V.prototype),re=new $(K||[]);return i(X,"_invoke",{value:L(H,W,re)}),X}function d(H,q,W){try{return{type:"normal",arg:H.call(q,W)}}catch(K){return{type:"throw",arg:K}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",b="executing",w="completed",E={};function S(){}function k(){}function A(){}var P={};u(P,o,function(){return this});var M=Object.getPrototypeOf,F=M&&M(M(J([])));F&&F!==n&&r.call(F,o)&&(P=F);var I=A.prototype=S.prototype=Object.create(P);function j(H){["next","throw","return"].forEach(function(q){u(H,q,function(W){return this._invoke(q,W)})})}function B(H,q){function W(V,X,re,U){var te=d(H[V],H,X);if(te.type!=="throw"){var se=te.arg,ue=se.value;return ue&&Sf(ue)=="object"&&r.call(ue,"__await")?q.resolve(ue.__await).then(function(ie){W("next",ie,re,U)},function(ie){W("throw",ie,re,U)}):q.resolve(ue).then(function(ie){se.value=ie,re(se)},function(ie){return W("throw",ie,re,U)})}U(te.arg)}var K;i(this,"_invoke",{value:function(X,re){function U(){return new q(function(te,se){W(X,re,te,se)})}return K=K?K.then(U,U):U()}})}function L(H,q,W){var K=f;return function(V,X){if(K===b)throw Error("Generator is already running");if(K===w){if(V==="throw")throw X;return{value:e,done:!0}}for(W.method=V,W.arg=X;;){var re=W.delegate;if(re){var U=z(re,W);if(U){if(U===E)continue;return U}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(K===f)throw K=w,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);K=b;var te=d(H,q,W);if(te.type==="normal"){if(K=W.done?w:p,te.arg===E)continue;return{value:te.arg,done:W.done}}te.type==="throw"&&(K=w,W.method="throw",W.arg=te.arg)}}}function z(H,q){var W=q.method,K=H.iterator[W];if(K===e)return q.delegate=null,W==="throw"&&H.iterator.return&&(q.method="return",q.arg=e,z(H,q),q.method==="throw")||W!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+W+"' method")),E;var V=d(K,H.iterator,q.arg);if(V.type==="throw")return q.method="throw",q.arg=V.arg,q.delegate=null,E;var X=V.arg;return X?X.done?(q[H.resultName]=X.value,q.next=H.nextLoc,q.method!=="return"&&(q.method="next",q.arg=e),q.delegate=null,E):X:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,E)}function Y(H){var q={tryLoc:H[0]};1 in H&&(q.catchLoc=H[1]),2 in H&&(q.finallyLoc=H[2],q.afterLoc=H[3]),this.tryEntries.push(q)}function Q(H){var q=H.completion||{};q.type="normal",delete q.arg,H.completion=q}function $(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(Y,this),this.reset(!0)}function J(H){if(H||H===""){var q=H[o];if(q)return q.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var W=-1,K=function V(){for(;++W<H.length;)if(r.call(H,W))return V.value=H[W],V.done=!1,V;return V.value=e,V.done=!0,V};return K.next=K}}throw new TypeError(Sf(H)+" is not iterable")}return k.prototype=A,i(I,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:k,configurable:!0}),k.displayName=u(A,l,"GeneratorFunction"),t.isGeneratorFunction=function(H){var q=typeof H=="function"&&H.constructor;return!!q&&(q===k||(q.displayName||q.name)==="GeneratorFunction")},t.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,A):(H.__proto__=A,u(H,l,"GeneratorFunction")),H.prototype=Object.create(I),H},t.awrap=function(H){return{__await:H}},j(B.prototype),u(B.prototype,a,function(){return this}),t.AsyncIterator=B,t.async=function(H,q,W,K,V){V===void 0&&(V=Promise);var X=new B(c(H,q,W,K),V);return t.isGeneratorFunction(q)?X:X.next().then(function(re){return re.done?re.value:X.next()})},j(I),u(I,l,"Generator"),u(I,o,function(){return this}),u(I,"toString",function(){return"[object Generator]"}),t.keys=function(H){var q=Object(H),W=[];for(var K in q)W.push(K);return W.reverse(),function V(){for(;W.length;){var X=W.pop();if(X in q)return V.value=X,V.done=!1,V}return V.done=!0,V}},t.values=J,$.prototype={constructor:$,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Q),!q)for(var W in this)W.charAt(0)==="t"&&r.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=e)},stop:function(){this.done=!0;var q=this.tryEntries[0].completion;if(q.type==="throw")throw q.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var W=this;function K(se,ue){return re.type="throw",re.arg=q,W.next=se,ue&&(W.method="next",W.arg=e),!!ue}for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V],re=X.completion;if(X.tryLoc==="root")return K("end");if(X.tryLoc<=this.prev){var U=r.call(X,"catchLoc"),te=r.call(X,"finallyLoc");if(U&&te){if(this.prev<X.catchLoc)return K(X.catchLoc,!0);if(this.prev<X.finallyLoc)return K(X.finallyLoc)}else if(U){if(this.prev<X.catchLoc)return K(X.catchLoc,!0)}else{if(!te)throw Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return K(X.finallyLoc)}}}},abrupt:function(q,W){for(var K=this.tryEntries.length-1;K>=0;--K){var V=this.tryEntries[K];if(V.tryLoc<=this.prev&&r.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var X=V;break}}X&&(q==="break"||q==="continue")&&X.tryLoc<=W&&W<=X.finallyLoc&&(X=null);var re=X?X.completion:{};return re.type=q,re.arg=W,X?(this.method="next",this.next=X.finallyLoc,E):this.complete(re)},complete:function(q,W){if(q.type==="throw")throw q.arg;return q.type==="break"||q.type==="continue"?this.next=q.arg:q.type==="return"?(this.rval=this.arg=q.arg,this.method="return",this.next="end"):q.type==="normal"&&W&&(this.next=W),E},finish:function(q){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.finallyLoc===q)return this.complete(K.completion,K.afterLoc),Q(K),E}},catch:function(q){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.tryLoc===q){var V=K.completion;if(V.type==="throw"){var X=V.arg;Q(K)}return X}}throw Error("illegal catch attempt")},delegateYield:function(q,W,K){return this.delegate={iterator:J(q),resultName:W,nextLoc:K},this.method==="next"&&(this.arg=e),E}},t}function p$e(e,t,n){return t=jk(t),h$e(e,zoe()?Reflect.construct(t,n||[],jk(e).constructor):t.apply(e,n))}function zoe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zoe=function(){return!!e})()}const m$e=function(e){var t,n=e.loader,r=e.isLanguageRegistered,i=e.registerLanguage,s=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(l){function u(){return u$e(this,u),p$e(this,u,arguments)}return f$e(u,l),c$e(u,[{key:"componentDidUpdate",value:function(){!u.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var d=this;u.astGeneratorPromise||u.loadAstGenerator(),u.astGenerator||u.astGeneratorPromise.then(function(){d.forceUpdate()}),!u.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var d=this,f=this.props.language;f!=="text"&&u.loadLanguage(f).then(function(){return d.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(d){return u.isSupportedLanguage(d)?d:"text"}},{key:"render",value:function(){return Ae.createElement(u.highlightInstance,wm({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:u.astGenerator}))}}],[{key:"preload",value:function(){return u.loadAstGenerator()}},{key:"loadLanguage",value:function(){var c=l$e(wF().mark(function f(p){var b;return wF().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(b=s[p],typeof b!="function"){E.next=5;break}return E.abrupt("return",b(u.registerLanguage));case 5:throw new Error("Language ".concat(p," not supported"));case 6:case"end":return E.stop()}},f)}));function d(f){return c.apply(this,arguments)}return d}()},{key:"isSupportedLanguage",value:function(d){return u.isRegistered(d)||typeof s[d]=="function"}},{key:"loadAstGenerator",value:function(){return u.astGeneratorPromise=n().then(function(d){u.astGenerator=d,i&&u.languages.forEach(function(f,p){return i(d,p,f)})}),u.astGeneratorPromise}}])}(Ae.PureComponent);return t=a,Lc(a,"astGenerator",null),Lc(a,"highlightInstance",a$e(null,{})),Lc(a,"astGeneratorPromise",null),Lc(a,"languages",new Map),Lc(a,"supportedLanguages",e.supportedLanguages||Object.keys(s||{})),Lc(a,"isRegistered",function(l){if(o)return!0;if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");return t.astGenerator?r(t.astGenerator,l):t.languages.has(l)}),Lc(a,"registerLanguage",function(l,u){if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");if(t.astGenerator)return i(t.astGenerator,l,u);t.languages.set(l,u)}),a},g$e=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],y$e=m$e({loader:function(){return Vre(()=>import("./index-D49iwuA1.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:g$e});var b$e=e=>t=>{const n=({components:{Pre:r,Code:i},language:s,code:o})=>y.jsx(e,{PreTag:r,CodeTag:i,...t,language:s,children:o});return n.displayName="PrismSyntaxHighlighter",n},v$e=b$e(y$e),N4={},P4={exports:{}},tq;function x$e(){return tq||(tq=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(P4)),P4.exports}var F4={},nq;function w$e(){return nq||(nq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",maxHeight:"inherit",height:"inherit",padding:"0 1em",display:"block",overflow:"auto"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",margin:".5em 0",overflow:"visible",padding:"1px",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em"},'pre[class*="language-"] > code':{position:"relative",zIndex:"1",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em",position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal"},'pre[class*="language-"]:before':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"0.18em",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(-2deg)",MozTransform:"rotate(-2deg)",msTransform:"rotate(-2deg)",OTransform:"rotate(-2deg)",transform:"rotate(-2deg)"},'pre[class*="language-"]:after':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"auto",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(2deg)",MozTransform:"rotate(2deg)",msTransform:"rotate(2deg)",OTransform:"rotate(2deg)",transform:"rotate(2deg)",right:"0.75em"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"},'pre[class*="language-"].line-numbers.line-numbers':{paddingLeft:"0"},'pre[class*="language-"].line-numbers.line-numbers code':{paddingLeft:"3.8em"},'pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows':{left:"0"},'pre[class*="language-"][data-line]':{paddingTop:"0",paddingBottom:"0",paddingLeft:"0"},"pre[data-line] code":{position:"relative",paddingLeft:"4em"},"pre .line-highlight":{marginTop:"0"}}}(F4)),F4}var M4={},rq;function S$e(){return rq||(rq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(30, 20%, 25%)",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:".3em solid hsl(30, 20%, 40%)",borderRadius:".5em",boxShadow:"1px 1px .5em black inset"},':not(pre) > code[class*="language-"]':{background:"hsl(30, 20%, 25%)",padding:".15em .2em .05em",borderRadius:".3em",border:".13em solid hsl(30, 20%, 40%)",boxShadow:"1px 1px .3em -.1em black inset",whiteSpace:"normal"},comment:{color:"hsl(30, 20%, 50%)"},prolog:{color:"hsl(30, 20%, 50%)"},doctype:{color:"hsl(30, 20%, 50%)"},cdata:{color:"hsl(30, 20%, 50%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},property:{color:"hsl(350, 40%, 70%)"},tag:{color:"hsl(350, 40%, 70%)"},boolean:{color:"hsl(350, 40%, 70%)"},number:{color:"hsl(350, 40%, 70%)"},constant:{color:"hsl(350, 40%, 70%)"},symbol:{color:"hsl(350, 40%, 70%)"},selector:{color:"hsl(75, 70%, 60%)"},"attr-name":{color:"hsl(75, 70%, 60%)"},string:{color:"hsl(75, 70%, 60%)"},char:{color:"hsl(75, 70%, 60%)"},builtin:{color:"hsl(75, 70%, 60%)"},inserted:{color:"hsl(75, 70%, 60%)"},operator:{color:"hsl(40, 90%, 60%)"},entity:{color:"hsl(40, 90%, 60%)",cursor:"help"},url:{color:"hsl(40, 90%, 60%)"},".language-css .token.string":{color:"hsl(40, 90%, 60%)"},".style .token.string":{color:"hsl(40, 90%, 60%)"},variable:{color:"hsl(40, 90%, 60%)"},atrule:{color:"hsl(350, 40%, 70%)"},"attr-value":{color:"hsl(350, 40%, 70%)"},keyword:{color:"hsl(350, 40%, 70%)"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"}}}(M4)),M4}var O4={},iq;function C$e(){return iq||(iq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"black",color:"white",boxShadow:"-.3em 0 0 .3em black, .3em 0 0 .3em black"},'pre[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:".4em .8em",margin:".5em 0",overflow:"auto",background:`url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>')`,backgroundSize:"1em 1em"},':not(pre) > code[class*="language-"]':{padding:".2em",borderRadius:".3em",boxShadow:"none",whiteSpace:"normal"},comment:{color:"#aaa"},prolog:{color:"#aaa"},doctype:{color:"#aaa"},cdata:{color:"#aaa"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#0cf"},tag:{color:"#0cf"},boolean:{color:"#0cf"},number:{color:"#0cf"},constant:{color:"#0cf"},symbol:{color:"#0cf"},selector:{color:"yellow"},"attr-name":{color:"yellow"},string:{color:"yellow"},char:{color:"yellow"},builtin:{color:"yellow"},operator:{color:"yellowgreen"},entity:{color:"yellowgreen",cursor:"help"},url:{color:"yellowgreen"},".language-css .token.string":{color:"yellowgreen"},variable:{color:"yellowgreen"},inserted:{color:"yellowgreen"},atrule:{color:"deeppink"},"attr-value":{color:"deeppink"},keyword:{color:"deeppink"},regex:{color:"orange"},important:{color:"orange",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"},"pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"}}}(O4)),O4}var R4={},sq;function E$e(){return sq||(sq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(R4)),R4}var I4={},oq;function D$e(){return oq||(oq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",backgroundColor:"#fdf6e3"},'pre[class*="language-"]::-moz-selection':{background:"#073642"},'pre[class*="language-"] ::-moz-selection':{background:"#073642"},'code[class*="language-"]::-moz-selection':{background:"#073642"},'code[class*="language-"] ::-moz-selection':{background:"#073642"},'pre[class*="language-"]::selection':{background:"#073642"},'pre[class*="language-"] ::selection':{background:"#073642"},'code[class*="language-"]::selection':{background:"#073642"},'code[class*="language-"] ::selection':{background:"#073642"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdf6e3",padding:".1em",borderRadius:".3em"},comment:{color:"#93a1a1"},prolog:{color:"#93a1a1"},doctype:{color:"#93a1a1"},cdata:{color:"#93a1a1"},punctuation:{color:"#586e75"},namespace:{Opacity:".7"},property:{color:"#268bd2"},tag:{color:"#268bd2"},boolean:{color:"#268bd2"},number:{color:"#268bd2"},constant:{color:"#268bd2"},symbol:{color:"#268bd2"},deleted:{color:"#268bd2"},selector:{color:"#2aa198"},"attr-name":{color:"#2aa198"},string:{color:"#2aa198"},char:{color:"#2aa198"},builtin:{color:"#2aa198"},url:{color:"#2aa198"},inserted:{color:"#2aa198"},entity:{color:"#657b83",background:"#eee8d5",cursor:"help"},atrule:{color:"#859900"},"attr-value":{color:"#859900"},keyword:{color:"#859900"},function:{color:"#b58900"},"class-name":{color:"#b58900"},regex:{color:"#cb4b16"},important:{color:"#cb4b16",fontWeight:"bold"},variable:{color:"#cb4b16"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(I4)),I4}var j4={},aq;function k$e(){return aq||(aq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ccc",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ccc",background:"#2d2d2d",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},':not(pre) > code[class*="language-"]':{background:"#2d2d2d",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#999"},"block-comment":{color:"#999"},prolog:{color:"#999"},doctype:{color:"#999"},cdata:{color:"#999"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},deleted:{color:"#e2777a"},"function-name":{color:"#6196cc"},boolean:{color:"#f08d49"},number:{color:"#f08d49"},function:{color:"#f08d49"},property:{color:"#f8c555"},"class-name":{color:"#f8c555"},constant:{color:"#f8c555"},symbol:{color:"#f8c555"},selector:{color:"#cc99cd"},important:{color:"#cc99cd",fontWeight:"bold"},atrule:{color:"#cc99cd"},keyword:{color:"#cc99cd"},builtin:{color:"#cc99cd"},string:{color:"#7ec699"},char:{color:"#7ec699"},"attr-value":{color:"#7ec699"},regex:{color:"#7ec699"},variable:{color:"#7ec699"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(j4)),j4}var L4={},lq;function A$e(){return lq||(lq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(0, 0%, 8%)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",borderRadius:".5em",border:".3em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .5em black inset",margin:".5em 0",overflow:"auto",padding:"1em"},':not(pre) > code[class*="language-"]':{background:"hsl(0, 0%, 8%)",borderRadius:".3em",border:".13em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .3em -.1em black inset",padding:".15em .2em .05em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"]::selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},comment:{color:"hsl(0, 0%, 47%)"},prolog:{color:"hsl(0, 0%, 47%)"},doctype:{color:"hsl(0, 0%, 47%)"},cdata:{color:"hsl(0, 0%, 47%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},tag:{color:"hsl(14, 58%, 55%)"},boolean:{color:"hsl(14, 58%, 55%)"},number:{color:"hsl(14, 58%, 55%)"},deleted:{color:"hsl(14, 58%, 55%)"},keyword:{color:"hsl(53, 89%, 79%)"},property:{color:"hsl(53, 89%, 79%)"},selector:{color:"hsl(53, 89%, 79%)"},constant:{color:"hsl(53, 89%, 79%)"},symbol:{color:"hsl(53, 89%, 79%)"},builtin:{color:"hsl(53, 89%, 79%)"},"attr-name":{color:"hsl(76, 21%, 52%)"},"attr-value":{color:"hsl(76, 21%, 52%)"},string:{color:"hsl(76, 21%, 52%)"},char:{color:"hsl(76, 21%, 52%)"},operator:{color:"hsl(76, 21%, 52%)"},entity:{color:"hsl(76, 21%, 52%)",cursor:"help"},url:{color:"hsl(76, 21%, 52%)"},".language-css .token.string":{color:"hsl(76, 21%, 52%)"},".style .token.string":{color:"hsl(76, 21%, 52%)"},variable:{color:"hsl(76, 21%, 52%)"},inserted:{color:"hsl(76, 21%, 52%)"},atrule:{color:"hsl(218, 22%, 55%)"},regex:{color:"hsl(42, 75%, 65%)"},important:{color:"hsl(42, 75%, 65%)",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},".language-markup .token.tag":{color:"hsl(33, 33%, 52%)"},".language-markup .token.attr-name":{color:"hsl(33, 33%, 52%)"},".language-markup .token.punctuation":{color:"hsl(33, 33%, 52%)"},"":{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0))",borderBottom:"1px dashed hsl(0, 0%, 33%)",borderTop:"1px dashed hsl(0, 0%, 33%)",marginTop:"0.75em",zIndex:"0"},".line-highlight.line-highlight:before":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"}}}(L4)),L4}var B4={},uq;function _$e(){return uq||(uq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(B4)),B4}var $4={},cq;function T$e(){return cq||(cq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2b2b2b",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#d4d0ab"},prolog:{color:"#d4d0ab"},doctype:{color:"#d4d0ab"},cdata:{color:"#d4d0ab"},punctuation:{color:"#fefefe"},property:{color:"#ffa07a"},tag:{color:"#ffa07a"},constant:{color:"#ffa07a"},symbol:{color:"#ffa07a"},deleted:{color:"#ffa07a"},boolean:{color:"#00e0e0"},number:{color:"#00e0e0"},selector:{color:"#abe338"},"attr-name":{color:"#abe338"},string:{color:"#abe338"},char:{color:"#abe338"},builtin:{color:"#abe338"},inserted:{color:"#abe338"},operator:{color:"#00e0e0"},entity:{color:"#00e0e0",cursor:"help"},url:{color:"#00e0e0"},".language-css .token.string":{color:"#00e0e0"},".style .token.string":{color:"#00e0e0"},variable:{color:"#00e0e0"},atrule:{color:"#ffd700"},"attr-value":{color:"#ffd700"},function:{color:"#ffd700"},keyword:{color:"#00e0e0"},regex:{color:"#ffd700"},important:{color:"#ffd700",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}($4)),$4}var z4={},dq;function N$e(){return dq||(dq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#1d1f21"},':not(pre) > code[class*="language-"]':{background:"#1d1f21",padding:".1em",borderRadius:".3em"},comment:{color:"#7C7C7C"},prolog:{color:"#7C7C7C"},doctype:{color:"#7C7C7C"},cdata:{color:"#7C7C7C"},punctuation:{color:"#c5c8c6"},".namespace":{Opacity:".7"},property:{color:"#96CBFE"},keyword:{color:"#96CBFE"},tag:{color:"#96CBFE"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#99CC99"},constant:{color:"#99CC99"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},number:{color:"#FF73FD"},selector:{color:"#A8FF60"},"attr-name":{color:"#A8FF60"},string:{color:"#A8FF60"},char:{color:"#A8FF60"},builtin:{color:"#A8FF60"},inserted:{color:"#A8FF60"},variable:{color:"#C6C5FE"},operator:{color:"#EDEDED"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"},function:{color:"#DAD085"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(z4)),z4}var H4={},hq;function P$e(){return hq||(hq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#898ea4"},prolog:{color:"#898ea4"},doctype:{color:"#898ea4"},cdata:{color:"#898ea4"},punctuation:{color:"#5e6687"},namespace:{Opacity:".7"},operator:{color:"#c76b29"},boolean:{color:"#c76b29"},number:{color:"#c76b29"},property:{color:"#c08b30"},tag:{color:"#3d8fd1"},string:{color:"#22a2c9"},selector:{color:"#6679cc"},"attr-name":{color:"#c76b29"},entity:{color:"#22a2c9",cursor:"help"},url:{color:"#22a2c9"},".language-css .token.string":{color:"#22a2c9"},".style .token.string":{color:"#22a2c9"},"attr-value":{color:"#ac9739"},keyword:{color:"#ac9739"},control:{color:"#ac9739"},directive:{color:"#ac9739"},unit:{color:"#ac9739"},statement:{color:"#22a2c9"},regex:{color:"#22a2c9"},atrule:{color:"#22a2c9"},placeholder:{color:"#3d8fd1"},variable:{color:"#3d8fd1"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #202746",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c94922"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:"0.4em solid #c94922",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#dfe2f1"},".line-numbers .line-numbers-rows > span:before":{color:"#979db4"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0))"}}}(H4)),H4}var V4={},fq;function F$e(){return fq||(fq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"none",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"#222",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"15px",margin:"1em 0",overflow:"auto",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},'pre[class*="language-"] code':{float:"left",padding:"0 15px 0 0"},':not(pre) > code[class*="language-"]':{background:"#222",padding:"5px 10px",lineHeight:"1",MozBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px"},comment:{color:"#797979"},prolog:{color:"#797979"},doctype:{color:"#797979"},cdata:{color:"#797979"},selector:{color:"#fff"},operator:{color:"#fff"},punctuation:{color:"#fff"},namespace:{Opacity:".7"},tag:{color:"#ffd893"},boolean:{color:"#ffd893"},atrule:{color:"#B0C975"},"attr-value":{color:"#B0C975"},hex:{color:"#B0C975"},string:{color:"#B0C975"},property:{color:"#c27628"},entity:{color:"#c27628",cursor:"help"},url:{color:"#c27628"},"attr-name":{color:"#c27628"},keyword:{color:"#c27628"},regex:{color:"#9B71C6"},function:{color:"#e5a638"},constant:{color:"#e5a638"},variable:{color:"#fdfba8"},number:{color:"#8799B0"},important:{color:"#E45734"},deliminator:{color:"#E45734"},".line-highlight.line-highlight":{background:"rgba(255, 255, 255, .2)"},".line-highlight.line-highlight:before":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-highlight.line-highlight[data-end]:after":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-numbers .line-numbers-rows > span":{borderRight:"3px #d9d336 solid"}}}(V4)),V4}var U4={},pq;function M$e(){return pq||(pq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#111b27",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#111b27",background:"#e3eaf2",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'code[class*="language-"]::-moz-selection':{background:"#8da1b9"},'code[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"]::selection':{background:"#8da1b9"},'pre[class*="language-"] ::selection':{background:"#8da1b9"},'code[class*="language-"]::selection':{background:"#8da1b9"},'code[class*="language-"] ::selection':{background:"#8da1b9"},':not(pre) > code[class*="language-"]':{background:"#e3eaf2",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#3c526d"},prolog:{color:"#3c526d"},doctype:{color:"#3c526d"},cdata:{color:"#3c526d"},punctuation:{color:"#111b27"},"delimiter.important":{color:"#006d6d",fontWeight:"inherit"},"selector.parent":{color:"#006d6d"},tag:{color:"#006d6d"},"tag.punctuation":{color:"#006d6d"},"attr-name":{color:"#755f00"},boolean:{color:"#755f00"},"boolean.important":{color:"#755f00"},number:{color:"#755f00"},constant:{color:"#755f00"},"selector.attribute":{color:"#755f00"},"class-name":{color:"#005a8e"},key:{color:"#005a8e"},parameter:{color:"#005a8e"},property:{color:"#005a8e"},"property-access":{color:"#005a8e"},variable:{color:"#005a8e"},"attr-value":{color:"#116b00"},inserted:{color:"#116b00"},color:{color:"#116b00"},"selector.value":{color:"#116b00"},string:{color:"#116b00"},"string.url-link":{color:"#116b00"},builtin:{color:"#af00af"},"keyword-array":{color:"#af00af"},package:{color:"#af00af"},regex:{color:"#af00af"},function:{color:"#7c00aa"},"selector.class":{color:"#7c00aa"},"selector.id":{color:"#7c00aa"},"atrule.rule":{color:"#a04900"},combinator:{color:"#a04900"},keyword:{color:"#a04900"},operator:{color:"#a04900"},"pseudo-class":{color:"#a04900"},"pseudo-element":{color:"#a04900"},selector:{color:"#a04900"},unit:{color:"#a04900"},deleted:{color:"#c22f2e"},important:{color:"#c22f2e",fontWeight:"bold"},"keyword-this":{color:"#005a8e",fontWeight:"bold"},this:{color:"#005a8e",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#af00af"},".language-markdown .token.code":{color:"#006d6d"},".language-markdown .token.hr.punctuation":{color:"#005a8e"},".language-markdown .token.url > .token.content":{color:"#116b00"},".language-markdown .token.url-link":{color:"#755f00"},".language-markdown .token.list.punctuation":{color:"#af00af"},".language-markdown .token.table-header":{color:"#111b27"},".language-json .token.operator":{color:"#111b27"},".language-scss .token.variable":{color:"#006d6d"},"token.tab:not(:empty):before":{color:"#3c526d"},"token.cr:before":{color:"#3c526d"},"token.lf:before":{color:"#3c526d"},"token.space:before":{color:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#e3eaf2",background:"#3c526d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #8da1b92f 70%, #8da1b925)"},".line-highlight.line-highlight:before":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#3c526d1f"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #8da1b97a",background:"#d0dae77a"},".line-numbers .line-numbers-rows > span:before":{color:"#3c526dda"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#7c00aa"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},".command-line .command-line-prompt":{borderRight:"1px solid #8da1b97a"},".command-line .command-line-prompt > span:before":{color:"#3c526dda"}}}(U4)),U4}var q4={},mq;function O$e(){return mq||(mq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#e3eaf2",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#e3eaf2",background:"#111b27",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#3c526d"},'pre[class*="language-"] ::-moz-selection':{background:"#3c526d"},'code[class*="language-"]::-moz-selection':{background:"#3c526d"},'code[class*="language-"] ::-moz-selection':{background:"#3c526d"},'pre[class*="language-"]::selection':{background:"#3c526d"},'pre[class*="language-"] ::selection':{background:"#3c526d"},'code[class*="language-"]::selection':{background:"#3c526d"},'code[class*="language-"] ::selection':{background:"#3c526d"},':not(pre) > code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}}(q4)),q4}var W4={},gq;function R$e(){return gq||(gq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0 0 0 #358ccb, 0 0 0 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local",margin:".5em 0",padding:"0 1em"},'pre[class*="language-"] > code':{display:"block"},':not(pre) > code[class*="language-"]':{position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"}}}(W4)),W4}var G4={},yq;function I$e(){return yq||(yq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#2b2b2b"},'pre[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:".1em",borderRadius:".3em"},comment:{color:"#808080"},prolog:{color:"#808080"},cdata:{color:"#808080"},delimiter:{color:"#cc7832"},boolean:{color:"#cc7832"},keyword:{color:"#cc7832"},selector:{color:"#cc7832"},important:{color:"#cc7832"},atrule:{color:"#cc7832"},operator:{color:"#a9b7c6"},punctuation:{color:"#a9b7c6"},"attr-name":{color:"#a9b7c6"},tag:{color:"#e8bf6a"},"tag.punctuation":{color:"#e8bf6a"},doctype:{color:"#e8bf6a"},builtin:{color:"#e8bf6a"},entity:{color:"#6897bb"},number:{color:"#6897bb"},symbol:{color:"#6897bb"},property:{color:"#9876aa"},constant:{color:"#9876aa"},variable:{color:"#9876aa"},string:{color:"#6a8759"},char:{color:"#6a8759"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline"},function:{color:"#ffc66d"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#294436"},deleted:{background:"#484a4a"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"}}}(G4)),G4}var Y4={},bq;function j$e(){return bq||(bq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#282a36",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#282a36",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#6272a4"},prolog:{color:"#6272a4"},doctype:{color:"#6272a4"},cdata:{color:"#6272a4"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#ff79c6"},tag:{color:"#ff79c6"},constant:{color:"#ff79c6"},symbol:{color:"#ff79c6"},deleted:{color:"#ff79c6"},boolean:{color:"#bd93f9"},number:{color:"#bd93f9"},selector:{color:"#50fa7b"},"attr-name":{color:"#50fa7b"},string:{color:"#50fa7b"},char:{color:"#50fa7b"},builtin:{color:"#50fa7b"},inserted:{color:"#50fa7b"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#f1fa8c"},"attr-value":{color:"#f1fa8c"},function:{color:"#f1fa8c"},"class-name":{color:"#f1fa8c"},keyword:{color:"#8be9fd"},regex:{color:"#ffb86c"},important:{color:"#ffb86c",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(Y4)),Y4}var K4={},vq;function L$e(){return vq||(vq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6c6783"},prolog:{color:"#6c6783"},doctype:{color:"#6c6783"},cdata:{color:"#6c6783"},punctuation:{color:"#6c6783"},namespace:{Opacity:".7"},tag:{color:"#e09142"},operator:{color:"#e09142"},number:{color:"#e09142"},property:{color:"#9a86fd"},function:{color:"#9a86fd"},"tag-id":{color:"#eeebff"},selector:{color:"#eeebff"},"atrule-id":{color:"#eeebff"},"code.language-javascript":{color:"#c4b9fe"},"attr-name":{color:"#c4b9fe"},"code.language-css":{color:"#ffcc99"},"code.language-scss":{color:"#ffcc99"},boolean:{color:"#ffcc99"},string:{color:"#ffcc99"},entity:{color:"#ffcc99",cursor:"help"},url:{color:"#ffcc99"},".language-css .token.string":{color:"#ffcc99"},".language-scss .token.string":{color:"#ffcc99"},".style .token.string":{color:"#ffcc99"},"attr-value":{color:"#ffcc99"},keyword:{color:"#ffcc99"},control:{color:"#ffcc99"},directive:{color:"#ffcc99"},unit:{color:"#ffcc99"},statement:{color:"#ffcc99"},regex:{color:"#ffcc99"},atrule:{color:"#ffcc99"},placeholder:{color:"#ffcc99"},variable:{color:"#ffcc99"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #eeebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c4b9fe"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #8a75f5",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c2937"},".line-numbers .line-numbers-rows > span:before":{color:"#3c3949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(224, 145, 66, 0.2) 70%, rgba(224, 145, 66, 0))"}}}(K4)),K4}var X4={},xq;function B$e(){return xq||(xq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6a5f58"},prolog:{color:"#6a5f58"},doctype:{color:"#6a5f58"},cdata:{color:"#6a5f58"},punctuation:{color:"#6a5f58"},namespace:{Opacity:".7"},tag:{color:"#bfa05a"},operator:{color:"#bfa05a"},number:{color:"#bfa05a"},property:{color:"#88786d"},function:{color:"#88786d"},"tag-id":{color:"#fff3eb"},selector:{color:"#fff3eb"},"atrule-id":{color:"#fff3eb"},"code.language-javascript":{color:"#a48774"},"attr-name":{color:"#a48774"},"code.language-css":{color:"#fcc440"},"code.language-scss":{color:"#fcc440"},boolean:{color:"#fcc440"},string:{color:"#fcc440"},entity:{color:"#fcc440",cursor:"help"},url:{color:"#fcc440"},".language-css .token.string":{color:"#fcc440"},".language-scss .token.string":{color:"#fcc440"},".style .token.string":{color:"#fcc440"},"attr-value":{color:"#fcc440"},keyword:{color:"#fcc440"},control:{color:"#fcc440"},directive:{color:"#fcc440"},unit:{color:"#fcc440"},statement:{color:"#fcc440"},regex:{color:"#fcc440"},atrule:{color:"#fcc440"},placeholder:{color:"#fcc440"},variable:{color:"#fcc440"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #fff3eb",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#a48774"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #816d5f",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#35302b"},".line-numbers .line-numbers-rows > span:before":{color:"#46403d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(191, 160, 90, 0.2) 70%, rgba(191, 160, 90, 0))"}}}(X4)),X4}var Z4={},wq;function $$e(){return wq||(wq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#535f53"},prolog:{color:"#535f53"},doctype:{color:"#535f53"},cdata:{color:"#535f53"},punctuation:{color:"#535f53"},namespace:{Opacity:".7"},tag:{color:"#a2b34d"},operator:{color:"#a2b34d"},number:{color:"#a2b34d"},property:{color:"#687d68"},function:{color:"#687d68"},"tag-id":{color:"#f0fff0"},selector:{color:"#f0fff0"},"atrule-id":{color:"#f0fff0"},"code.language-javascript":{color:"#b3d6b3"},"attr-name":{color:"#b3d6b3"},"code.language-css":{color:"#e5fb79"},"code.language-scss":{color:"#e5fb79"},boolean:{color:"#e5fb79"},string:{color:"#e5fb79"},entity:{color:"#e5fb79",cursor:"help"},url:{color:"#e5fb79"},".language-css .token.string":{color:"#e5fb79"},".language-scss .token.string":{color:"#e5fb79"},".style .token.string":{color:"#e5fb79"},"attr-value":{color:"#e5fb79"},keyword:{color:"#e5fb79"},control:{color:"#e5fb79"},directive:{color:"#e5fb79"},unit:{color:"#e5fb79"},statement:{color:"#e5fb79"},regex:{color:"#e5fb79"},atrule:{color:"#e5fb79"},placeholder:{color:"#e5fb79"},variable:{color:"#e5fb79"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #f0fff0",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#b3d6b3"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #5c705c",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c302c"},".line-numbers .line-numbers-rows > span:before":{color:"#3b423b"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(162, 179, 77, 0.2) 70%, rgba(162, 179, 77, 0))"}}}(Z4)),Z4}var J4={},Sq;function z$e(){return Sq||(Sq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}}}(J4)),J4}var Q4={},Cq;function H$e(){return Cq||(Cq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#4a5f78"},prolog:{color:"#4a5f78"},doctype:{color:"#4a5f78"},cdata:{color:"#4a5f78"},punctuation:{color:"#4a5f78"},namespace:{Opacity:".7"},tag:{color:"#0aa370"},operator:{color:"#0aa370"},number:{color:"#0aa370"},property:{color:"#57718e"},function:{color:"#57718e"},"tag-id":{color:"#ebf4ff"},selector:{color:"#ebf4ff"},"atrule-id":{color:"#ebf4ff"},"code.language-javascript":{color:"#7eb6f6"},"attr-name":{color:"#7eb6f6"},"code.language-css":{color:"#47ebb4"},"code.language-scss":{color:"#47ebb4"},boolean:{color:"#47ebb4"},string:{color:"#47ebb4"},entity:{color:"#47ebb4",cursor:"help"},url:{color:"#47ebb4"},".language-css .token.string":{color:"#47ebb4"},".language-scss .token.string":{color:"#47ebb4"},".style .token.string":{color:"#47ebb4"},"attr-value":{color:"#47ebb4"},keyword:{color:"#47ebb4"},control:{color:"#47ebb4"},directive:{color:"#47ebb4"},unit:{color:"#47ebb4"},statement:{color:"#47ebb4"},regex:{color:"#47ebb4"},atrule:{color:"#47ebb4"},placeholder:{color:"#47ebb4"},variable:{color:"#47ebb4"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebf4ff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#7eb6f6"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #34659d",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#1f2932"},".line-numbers .line-numbers-rows > span:before":{color:"#2c3847"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(10, 163, 112, 0.2) 70%, rgba(10, 163, 112, 0))"}}}(Q4)),Q4}var eP={},Eq;function V$e(){return Eq||(Eq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#5b5b76"},prolog:{color:"#5b5b76"},doctype:{color:"#5b5b76"},cdata:{color:"#5b5b76"},punctuation:{color:"#5b5b76"},namespace:{Opacity:".7"},tag:{color:"#dd672c"},operator:{color:"#dd672c"},number:{color:"#dd672c"},property:{color:"#767693"},function:{color:"#767693"},"tag-id":{color:"#ebebff"},selector:{color:"#ebebff"},"atrule-id":{color:"#ebebff"},"code.language-javascript":{color:"#aaaaca"},"attr-name":{color:"#aaaaca"},"code.language-css":{color:"#fe8c52"},"code.language-scss":{color:"#fe8c52"},boolean:{color:"#fe8c52"},string:{color:"#fe8c52"},entity:{color:"#fe8c52",cursor:"help"},url:{color:"#fe8c52"},".language-css .token.string":{color:"#fe8c52"},".language-scss .token.string":{color:"#fe8c52"},".style .token.string":{color:"#fe8c52"},"attr-value":{color:"#fe8c52"},keyword:{color:"#fe8c52"},control:{color:"#fe8c52"},directive:{color:"#fe8c52"},unit:{color:"#fe8c52"},statement:{color:"#fe8c52"},regex:{color:"#fe8c52"},atrule:{color:"#fe8c52"},placeholder:{color:"#fe8c52"},variable:{color:"#fe8c52"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#aaaaca"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #7676f4",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#262631"},".line-numbers .line-numbers-rows > span:before":{color:"#393949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(221, 103, 44, 0.2) 70%, rgba(221, 103, 44, 0))"}}}(eP)),eP}var tP={},Dq;function U$e(){return Dq||(Dq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"]::selection':{background:"#b3d4fc"},'pre[class*="language-"] ::selection':{background:"#b3d4fc"},'code[class*="language-"]::selection':{background:"#b3d4fc"},'code[class*="language-"] ::selection':{background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#999988",fontStyle:"italic"},prolog:{color:"#999988",fontStyle:"italic"},doctype:{color:"#999988",fontStyle:"italic"},cdata:{color:"#999988",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#e3116c"},"attr-value":{color:"#e3116c"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},entity:{color:"#36acaa"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},property:{color:"#36acaa"},regex:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#00a4db"},keyword:{color:"#00a4db"},"attr-name":{color:"#00a4db"},".language-autohotkey .token.selector":{color:"#00a4db"},function:{color:"#9a050f",fontWeight:"bold"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},tag:{color:"#00009f"},selector:{color:"#00009f"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(tP)),tP}var nP={},kq;function q$e(){return kq||(kq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#1d2021"},'pre[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},':not(pre) > code[class*="language-"]':{background:"#1d2021",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#a89984"},prolog:{color:"#a89984"},cdata:{color:"#a89984"},delimiter:{color:"#fb4934"},boolean:{color:"#fb4934"},keyword:{color:"#fb4934"},selector:{color:"#fb4934"},important:{color:"#fb4934"},atrule:{color:"#fb4934"},operator:{color:"#a89984"},punctuation:{color:"#a89984"},"attr-name":{color:"#a89984"},tag:{color:"#fabd2f"},"tag.punctuation":{color:"#fabd2f"},doctype:{color:"#fabd2f"},builtin:{color:"#fabd2f"},entity:{color:"#d3869b"},number:{color:"#d3869b"},symbol:{color:"#d3869b"},property:{color:"#fb4934"},constant:{color:"#fb4934"},variable:{color:"#fb4934"},string:{color:"#b8bb26"},char:{color:"#b8bb26"},"attr-value":{color:"#a89984"},"attr-value.punctuation":{color:"#a89984"},url:{color:"#b8bb26",textDecoration:"underline"},function:{color:"#fabd2f"},regex:{background:"#b8bb26"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#a89984"},deleted:{background:"#fb4934"}}}(nP)),nP}var rP={},Aq;function W$e(){return Aq||(Aq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#f9f5d7"},'pre[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},':not(pre) > code[class*="language-"]':{background:"#f9f5d7",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#7c6f64"},prolog:{color:"#7c6f64"},cdata:{color:"#7c6f64"},delimiter:{color:"#9d0006"},boolean:{color:"#9d0006"},keyword:{color:"#9d0006"},selector:{color:"#9d0006"},important:{color:"#9d0006"},atrule:{color:"#9d0006"},operator:{color:"#7c6f64"},punctuation:{color:"#7c6f64"},"attr-name":{color:"#7c6f64"},tag:{color:"#b57614"},"tag.punctuation":{color:"#b57614"},doctype:{color:"#b57614"},builtin:{color:"#b57614"},entity:{color:"#8f3f71"},number:{color:"#8f3f71"},symbol:{color:"#8f3f71"},property:{color:"#9d0006"},constant:{color:"#9d0006"},variable:{color:"#9d0006"},string:{color:"#797403"},char:{color:"#797403"},"attr-value":{color:"#7c6f64"},"attr-value.punctuation":{color:"#7c6f64"},url:{color:"#797403",textDecoration:"underline"},function:{color:"#b57614"},regex:{background:"#797403"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#7c6f64"},deleted:{background:"#9d0006"}}}(rP)),rP}var iP={},_q;function G$e(){return _q||(_q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},"pre[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",border:"1px solid #2a4555",borderRadius:"5px",padding:"1.5em 1em",margin:"1em 0",overflow:"auto"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},":not(pre) > code[class*='language-']":{color:"#f0f6f6",background:"#2a4555",padding:"0.2em 0.3em",borderRadius:"0.2em",boxDecorationBreak:"clone"},comment:{color:"#446e69"},prolog:{color:"#446e69"},doctype:{color:"#446e69"},cdata:{color:"#446e69"},punctuation:{color:"#d6b007"},property:{color:"#d6e7ff"},tag:{color:"#d6e7ff"},boolean:{color:"#d6e7ff"},number:{color:"#d6e7ff"},constant:{color:"#d6e7ff"},symbol:{color:"#d6e7ff"},deleted:{color:"#d6e7ff"},selector:{color:"#e60067"},"attr-name":{color:"#e60067"},builtin:{color:"#e60067"},inserted:{color:"#e60067"},string:{color:"#49c6ec"},char:{color:"#49c6ec"},operator:{color:"#ec8e01",background:"transparent"},entity:{color:"#ec8e01",background:"transparent"},url:{color:"#ec8e01",background:"transparent"},".language-css .token.string":{color:"#ec8e01",background:"transparent"},".style .token.string":{color:"#ec8e01",background:"transparent"},atrule:{color:"#0fe468"},"attr-value":{color:"#0fe468"},keyword:{color:"#0fe468"},function:{color:"#78f3e9"},"class-name":{color:"#78f3e9"},regex:{color:"#d6e7ff"},important:{color:"#d6e7ff"},variable:{color:"#d6e7ff"}}}(iP)),iP}var sP={},Tq;function Y$e(){return Tq||(Tq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8"},'pre[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#797379"},prolog:{color:"#797379"},doctype:{color:"#797379"},cdata:{color:"#797379"},punctuation:{color:"#b9b5b8"},".namespace":{Opacity:".7"},null:{color:"#fd8b19"},operator:{color:"#fd8b19"},boolean:{color:"#fd8b19"},number:{color:"#fd8b19"},property:{color:"#fdcc59"},tag:{color:"#1290bf"},string:{color:"#149b93"},selector:{color:"#c85e7c"},"attr-name":{color:"#fd8b19"},entity:{color:"#149b93",cursor:"help"},url:{color:"#149b93"},".language-css .token.string":{color:"#149b93"},".style .token.string":{color:"#149b93"},"attr-value":{color:"#8fc13e"},keyword:{color:"#8fc13e"},control:{color:"#8fc13e"},directive:{color:"#8fc13e"},unit:{color:"#8fc13e"},statement:{color:"#149b93"},regex:{color:"#149b93"},atrule:{color:"#149b93"},placeholder:{color:"#1290bf"},variable:{color:"#1290bf"},important:{color:"#dd464c",fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid red",OutlineOffset:".4em"}}}(sP)),sP}var oP={},Nq;function K$e(){return Nq||(Nq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#263E52",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#263E52",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#5c98cd"},prolog:{color:"#5c98cd"},doctype:{color:"#5c98cd"},cdata:{color:"#5c98cd"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#F05E5D"},tag:{color:"#F05E5D"},constant:{color:"#F05E5D"},symbol:{color:"#F05E5D"},deleted:{color:"#F05E5D"},boolean:{color:"#BC94F9"},number:{color:"#BC94F9"},selector:{color:"#FCFCD6"},"attr-name":{color:"#FCFCD6"},string:{color:"#FCFCD6"},char:{color:"#FCFCD6"},builtin:{color:"#FCFCD6"},inserted:{color:"#FCFCD6"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#66D8EF"},"attr-value":{color:"#66D8EF"},function:{color:"#66D8EF"},"class-name":{color:"#66D8EF"},keyword:{color:"#6EB26E"},regex:{color:"#F05E5D"},important:{color:"#F05E5D",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(oP)),oP}var aP={},Pq;function X$e(){return Pq||(Pq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#a5e844"},attribute:{color:"#a5e844"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},comment:{color:"#616161"},constant:{color:"#c792ea"},deleted:{color:"#ff6666"},doctype:{color:"#616161"},entity:{color:"#ff6666"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#616161"},property:{color:"#80cbc4"},"pseudo-class":{color:"#a5e844"},"pseudo-element":{color:"#a5e844"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#ff6666"},string:{color:"#a5e844"},symbol:{color:"#c792ea"},tag:{color:"#ff6666"},unit:{color:"#fd9170"},url:{color:"#ff6666"},variable:{color:"#ff6666"}}}(aP)),aP}var lP={},Fq;function Z$e(){return Fq||(Fq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}}(lP)),lP}var uP={},Mq;function J$e(){return Mq||(Mq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#c3e88d"},attribute:{color:"#c3e88d"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},color:{color:"#f2ff00"},comment:{color:"#546e7a"},constant:{color:"#c792ea"},deleted:{color:"#f07178"},doctype:{color:"#546e7a"},entity:{color:"#f07178"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea",fontStyle:"italic"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#546e7a"},property:{color:"#80cbc4"},"pseudo-class":{color:"#c3e88d"},"pseudo-element":{color:"#c3e88d"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#f07178"},string:{color:"#c3e88d"},symbol:{color:"#c792ea"},tag:{color:"#f07178"},unit:{color:"#f07178"},url:{color:"#fd9170"},variable:{color:"#f07178"}}}(uP)),uP}var cP={},Oq;function Q$e(){return Oq||(Oq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#d6deeb",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#011627"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},':not(pre) > code[class*="language-"]':{color:"white",background:"#011627",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(130, 170, 255)"},function:{color:"rgb(130, 170, 255)"},builtin:{color:"rgb(130, 170, 255)"},char:{color:"rgb(130, 170, 255)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(cP)),cP}var dP={},Rq;function eze(){return Rq||(Rq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(dP)),dP}var hP={},Iq;function tze(){return Iq||(Iq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}}(hP)),hP}var fP={},jq;function nze(){return jq||(jq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}}(fP)),fP}var pP={},Lq;function rze(){return Lq||(Lq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#dccf8f",textShadow:"0"},'pre[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#DCCF8F",textShadow:"0",borderRadius:"5px",border:"1px solid #000",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"12px",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{borderRadius:"5px",border:"1px solid #000",color:"#DCCF8F",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"2px 6px"},namespace:{Opacity:".7"},comment:{color:"#586e75",fontStyle:"italic"},prolog:{color:"#586e75",fontStyle:"italic"},doctype:{color:"#586e75",fontStyle:"italic"},cdata:{color:"#586e75",fontStyle:"italic"},number:{color:"#b89859"},string:{color:"#468966"},char:{color:"#468966"},builtin:{color:"#468966"},inserted:{color:"#468966"},"attr-name":{color:"#b89859"},operator:{color:"#dccf8f"},entity:{color:"#dccf8f",cursor:"help"},url:{color:"#dccf8f"},".language-css .token.string":{color:"#dccf8f"},".style .token.string":{color:"#dccf8f"},selector:{color:"#859900"},regex:{color:"#859900"},atrule:{color:"#cb4b16"},keyword:{color:"#cb4b16"},"attr-value":{color:"#468966"},function:{color:"#b58900"},variable:{color:"#b58900"},placeholder:{color:"#b58900"},property:{color:"#b89859"},tag:{color:"#ffb03b"},boolean:{color:"#b89859"},constant:{color:"#b89859"},symbol:{color:"#b89859"},important:{color:"#dc322f"},statement:{color:"#dc322f"},deleted:{color:"#dc322f"},punctuation:{color:"#dccf8f"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(pP)),pP}var mP={},Bq;function ize(){return Bq||(Bq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245"},"pre[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245",padding:"2em",margin:"0.5em 0",overflow:"auto",background:"#1e1e3f"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},":not(pre) > code[class*='language-']":{background:"#1e1e3f",padding:"0.1em",borderRadius:"0.3em"},"":{fontWeight:"400"},comment:{color:"#b362ff"},prolog:{color:"#b362ff"},cdata:{color:"#b362ff"},delimiter:{color:"#ff9d00"},keyword:{color:"#ff9d00"},selector:{color:"#ff9d00"},important:{color:"#ff9d00"},atrule:{color:"#ff9d00"},operator:{color:"rgb(255, 180, 84)",background:"none"},"attr-name":{color:"rgb(255, 180, 84)"},punctuation:{color:"#ffffff"},boolean:{color:"rgb(255, 98, 140)"},tag:{color:"rgb(255, 157, 0)"},"tag.punctuation":{color:"rgb(255, 157, 0)"},doctype:{color:"rgb(255, 157, 0)"},builtin:{color:"rgb(255, 157, 0)"},entity:{color:"#6897bb",background:"none"},symbol:{color:"#6897bb"},number:{color:"#ff628c"},property:{color:"#ff628c"},constant:{color:"#ff628c"},variable:{color:"#ff628c"},string:{color:"#a5ff90"},char:{color:"#a5ff90"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline",background:"none"},function:{color:"rgb(250, 208, 0)"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#00ff00"},deleted:{background:"#ff000d"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"},"class-name":{color:"#fb94ff"},".language-css .token.string":{background:"none"},".style .token.string":{background:"none"},".line-highlight.line-highlight":{marginTop:"36px",background:"linear-gradient(to right, rgba(179, 98, 255, 0.17), transparent)"},".line-highlight.line-highlight:before":{content:"''"},".line-highlight.line-highlight[data-end]:after":{content:"''"}}}(mP)),mP}var gP={},$q;function sze(){return $q||($q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#002b36"},':not(pre) > code[class*="language-"]':{background:"#002b36",padding:".1em",borderRadius:".3em"},comment:{color:"#586e75"},prolog:{color:"#586e75"},doctype:{color:"#586e75"},cdata:{color:"#586e75"},punctuation:{color:"#93a1a1"},".namespace":{Opacity:".7"},property:{color:"#268bd2"},keyword:{color:"#268bd2"},tag:{color:"#268bd2"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#b58900"},constant:{color:"#b58900"},symbol:{color:"#dc322f"},deleted:{color:"#dc322f"},number:{color:"#859900"},selector:{color:"#859900"},"attr-name":{color:"#859900"},string:{color:"#859900"},char:{color:"#859900"},builtin:{color:"#859900"},inserted:{color:"#859900"},variable:{color:"#268bd2"},operator:{color:"#EDEDED"},function:{color:"#268bd2"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"}}}(gP)),gP}var yP={},zq;function oze(){return zq||(zq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)"},':not(pre) > code[class*="language-"]':{backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8e8e8e"},"block-comment":{color:"#8e8e8e"},prolog:{color:"#8e8e8e"},doctype:{color:"#8e8e8e"},cdata:{color:"#8e8e8e"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},number:{color:"#e2777a"},unit:{color:"#e2777a"},hexcode:{color:"#e2777a"},deleted:{color:"#e2777a"},property:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},selector:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},"function-name":{color:"#6196cc"},boolean:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"selector.id":{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},function:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"class-name":{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"},constant:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},symbol:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},important:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575",fontWeight:"bold"},atrule:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},keyword:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},"selector.class":{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},builtin:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},string:{color:"#f87c32"},char:{color:"#f87c32"},"attr-value":{color:"#f87c32"},regex:{color:"#f87c32"},variable:{color:"#f87c32"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(yP)),yP}var bP={},Hq;function aze(){return Hq||(Hq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"]::selection':{background:"#C1DEF1"},'pre[class*="language-"] ::selection':{background:"#C1DEF1"},'code[class*="language-"]::selection':{background:"#C1DEF1"},'code[class*="language-"] ::selection':{background:"#C1DEF1"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#008000",fontStyle:"italic"},prolog:{color:"#008000",fontStyle:"italic"},doctype:{color:"#008000",fontStyle:"italic"},cdata:{color:"#008000",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#A31515"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#0000ff"},keyword:{color:"#0000ff"},"attr-value":{color:"#0000ff"},".language-autohotkey .token.selector":{color:"#0000ff"},".language-json .token.boolean":{color:"#0000ff"},".language-json .token.number":{color:"#0000ff"},'code[class*="language-css"]':{color:"#0000ff"},function:{color:"#393A34"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},selector:{color:"#800000"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#2B91AF"},".language-json .token.property":{color:"#2B91AF"},tag:{color:"#800000"},"attr-name":{color:"#ff0000"},property:{color:"#ff0000"},regex:{color:"#ff0000"},entity:{color:"#ff0000"},"directive.tag.tag":{background:"#ffff00",color:"#393A34"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#a5a5a5"},".line-numbers .line-numbers-rows > span:before":{color:"#2B91AF"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))"}}}(bP)),bP}var vP={},Vq;function lze(){return Vq||(Vq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}}(vP)),vP}var xP={},Uq;function uze(){return Uq||(Uq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none"},'pre[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none",background:"#2a2a2a",padding:"15px",borderRadius:"4px",border:"1px solid #e1e1e8",overflow:"auto",position:"relative"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{background:"#2a2a2a",padding:"0.15em 0.2em 0.05em",borderRadius:".3em",border:"0.13em solid #7a6652",boxShadow:"1px 1px 0.3em -0.1em #000 inset"},'pre[class*="language-"] code':{whiteSpace:"pre",display:"block"},namespace:{Opacity:".7"},comment:{color:"#6f705e"},prolog:{color:"#6f705e"},doctype:{color:"#6f705e"},cdata:{color:"#6f705e"},operator:{color:"#a77afe"},boolean:{color:"#a77afe"},number:{color:"#a77afe"},"attr-name":{color:"#e6d06c"},string:{color:"#e6d06c"},entity:{color:"#e6d06c",cursor:"help"},url:{color:"#e6d06c"},".language-css .token.string":{color:"#e6d06c"},".style .token.string":{color:"#e6d06c"},selector:{color:"#a6e22d"},inserted:{color:"#a6e22d"},atrule:{color:"#ef3b7d"},"attr-value":{color:"#ef3b7d"},keyword:{color:"#ef3b7d"},important:{color:"#ef3b7d",fontWeight:"bold"},deleted:{color:"#ef3b7d"},regex:{color:"#76d9e6"},statement:{color:"#76d9e6",fontWeight:"bold"},placeholder:{color:"#fff"},variable:{color:"#fff"},bold:{fontWeight:"bold"},punctuation:{color:"#bebec5"},italic:{fontStyle:"italic"},"code.language-markup":{color:"#f9f9f9"},"code.language-markup .token.tag":{color:"#ef3b7d"},"code.language-markup .token.attr-name":{color:"#a6e22d"},"code.language-markup .token.attr-value":{color:"#e6d06c"},"code.language-markup .token.style":{color:"#76d9e6"},"code.language-markup .token.script":{color:"#76d9e6"},"code.language-markup .token.script .token.keyword":{color:"#76d9e6"},".line-highlight.line-highlight":{padding:"0",background:"rgba(255, 255, 255, 0.08)"},".line-highlight.line-highlight:before":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"},".line-highlight.line-highlight[data-end]:after":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"}}}(xP)),xP}var wP={},qq;function cze(){return qq||(qq=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#22da17",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"5px 0"},'pre[class*="language-"]':{color:"white",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"0.5em 0",background:"#0a143c",padding:"1em",overflow:"auto"},'pre[class*="language-"] *':{fontFamily:"monospace"},':not(pre) > code[class*="language-"]':{color:"white",background:"#0a143c",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(34 183 199)"},function:{color:"rgb(34 183 199)"},builtin:{color:"rgb(34 183 199)"},char:{color:"rgb(34 183 199)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(wP)),wP}var Wq;function dze(){return Wq||(Wq=1,function(e){var t=x$e();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"a11yDark",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"atomDark",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"base16AteliersulphurpoolLight",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"cb",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"coldarkCold",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"coldarkDark",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"coy",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"coyWithoutShadows",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"darcula",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"dark",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"dracula",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"duotoneDark",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"duotoneEarth",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"duotoneForest",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"duotoneLight",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"duotoneSea",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"duotoneSpace",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"funky",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"ghcolors",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"gruvboxDark",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gruvboxLight",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"holiTheme",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"hopscotch",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"lucario",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"materialDark",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"materialLight",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"materialOceanic",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"nightOwl",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"nord",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"okaidia",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"oneDark",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"oneLight",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"pojoaque",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"prism",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"shadesOfPurple",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"solarizedDarkAtom",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"solarizedlight",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"synthwave84",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"tomorrow",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"twilight",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"vs",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"vscDarkPlus",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"xonokai",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"zTouch",{enumerable:!0,get:function(){return De.default}});var n=t(w$e()),r=t(S$e()),i=t(C$e()),s=t(E$e()),o=t(D$e()),a=t(k$e()),l=t(A$e()),u=t(_$e()),c=t(T$e()),d=t(N$e()),f=t(P$e()),p=t(F$e()),b=t(M$e()),w=t(O$e()),E=t(R$e()),S=t(I$e()),k=t(j$e()),A=t(L$e()),P=t(B$e()),M=t($$e()),F=t(z$e()),I=t(H$e()),j=t(V$e()),B=t(U$e()),L=t(q$e()),z=t(W$e()),Y=t(G$e()),Q=t(Y$e()),$=t(K$e()),J=t(X$e()),H=t(Z$e()),q=t(J$e()),W=t(Q$e()),K=t(eze()),V=t(tze()),X=t(nze()),re=t(rze()),U=t(ize()),te=t(sze()),se=t(oze()),ue=t(aze()),ie=t(lze()),pe=t(uze()),De=t(cze())}(N4)),N4}var hze=dze();const Hoe=1024;let fze=0,SP=class{constructor(t,n){this.from=t,this.to=n}};class un{constructor(t={}){this.id=fze++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Mo.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}un.closedBy=new un({deserialize:e=>e.split(" ")});un.openedBy=new un({deserialize:e=>e.split(" ")});un.group=new un({deserialize:e=>e.split(" ")});un.isolate=new un({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});un.contextHash=new un({perNode:!0});un.lookAhead=new un({perNode:!0});un.mounted=new un({perNode:!0});class Lk{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[un.mounted.id]}}const pze=Object.create(null);class Mo{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):pze,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Mo(t.name||"",n,t.id,r);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(un.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(un.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}}Mo.none=new Mo("",Object.create(null),0,8);class RI{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let s of t){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new Mo(r.name,i,r.id,r.flags):r)}return new RI(n)}}const dE=new WeakMap,Gq=new WeakMap;var zi;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(zi||(zi={}));class bi{constructor(t,n,r,i,s){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=Lk.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new CF(this.topNode,t)}cursorAt(t,n=0,r=0){let i=dE.get(this)||this.topNode,s=new CF(i);return s.moveTo(t,n),dE.set(this,s._tree),s}get topNode(){return new Ma(this,0,0,null)}resolve(t,n=0){let r=P1(dE.get(this)||this.topNode,t,n,!1);return dE.set(this,r),r}resolveInner(t,n=0){let r=P1(Gq.get(this)||this.topNode,t,n,!0);return Gq.set(this,r),r}resolveStack(t,n=0){return yze(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&zi.IncludeAnonymous)>0;for(let l=this.cursor(o|zi.IncludeAnonymous);;){let u=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:LI(Mo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new bi(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new bi(Mo.none,n,r,i)))}static build(t){return bze(t)}}bi.empty=new bi(Mo.none,[],[],0);class II{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new II(this.buffer,this.index)}}class Cf{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Mo.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,r==t)return s;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(Voe(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let i=this.buffer,s=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let u=s[l++]=i[a++]-r;s[l++]=i[a++]-t,o=Math.max(o,u)}return new Cf(s,o,this.set)}}function Voe(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function P1(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof Ma&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=r?0:zi.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Ma&&o.index<0&&((i=a.enter(t,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,s);if(!o)return e;e=o}}class Uoe{cursor(t=0){return new CF(this,t)}getChild(t,n=null,r=null){let i=Yq(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return Yq(this,t,n,r)}resolve(t,n=0){return P1(this,t,n,!1)}resolveInner(t,n=0){return P1(this,t,n,!0)}matchContext(t){return SF(this.parent,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class Ma extends Uoe{constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,u=n>0?a.length:-1;t!=u;t+=n){let c=a[t],d=l[t]+o.from;if(Voe(i,r,d,d+c.length)){if(c instanceof Cf){if(s&zi.ExcludeBuffers)continue;let f=c.findChild(0,c.buffer.length,n,r-d,i);if(f>-1)return new Wh(new mze(o,c,t,d),null,f)}else if(s&zi.IncludeAnonymous||!c.type.isAnonymous||jI(c)){let f;if(!(s&zi.IgnoreMounts)&&(f=Lk.get(c))&&!f.overlay)return new Ma(f.tree,d,t,o);let p=new Ma(c,d,t,o);return s&zi.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(s&zi.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&zi.IgnoreOverlays)&&(i=Lk.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new Ma(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Yq(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function SF(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class mze{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Wh extends Uoe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return s<0?null:new Wh(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&zi.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return s<0?null:new Wh(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Wh(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Wh(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];t.push(r.slice(i,s,o)),n.push(0)}return new bi(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function qoe(e){if(!e.length)return null;let t=0,n=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>n.from||o.to<n.to)&&(n=o,t=s)}let r=n instanceof Ma&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new gze(i,n)}class gze{constructor(t,n){this.heads=t,this.node=n}get next(){return qoe(this.heads)}}function yze(e,t,n){let r=e.resolveInner(t,n),i=null;for(let s=r instanceof Ma?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(t,n)),s=o}else{let o=Lk.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Ma(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(P1(a,t,n,!1))}}return i?qoe(i):r}class CF{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Ma)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof Ma?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&zi.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&zi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&zi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+t,o=t<0?-1:r._tree.children.length;s!=o;s+=t){let a=r._tree.children[s];if(this.mode&zi.IncludeAnonymous||a instanceof Cf||!a.type.isAnonymous||jI(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)n=new Wh(this.buffer,n,this.stack[i]);return this.bufferNode=new Wh(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return SF(this.node.parent,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return SF(this._tree,t,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function jI(e){return e.children.some(t=>t instanceof Cf||!t.type.isAnonymous||jI(t))}function bze(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Hoe,reused:s=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new II(n,n.length):n,l=r.types,u=0,c=0;function d(M,F,I,j,B,L){let{id:z,start:Y,end:Q,size:$}=a,J=c,H=u;for(;$<0;)if(a.next(),$==-1){let X=s[z];I.push(X),j.push(Y-M);return}else if($==-3){u=z;return}else if($==-4){c=z;return}else throw new RangeError(`Unrecognized record size: ${$}`);let q=l[z],W,K,V=Y-M;if(Q-Y<=i&&(K=E(a.pos-F,B))){let X=new Uint16Array(K.size-K.skip),re=a.pos-K.size,U=X.length;for(;a.pos>re;)U=S(K.start,X,U);W=new Cf(X,Q-K.start,r),V=K.start-M}else{let X=a.pos-$;a.next();let re=[],U=[],te=z>=o?z:-1,se=0,ue=Q;for(;a.pos>X;)te>=0&&a.id==te&&a.size>=0?(a.end<=ue-i&&(b(re,U,Y,se,a.end,ue,te,J,H),se=re.length,ue=a.end),a.next()):L>2500?f(Y,X,re,U):d(Y,X,re,U,te,L+1);if(te>=0&&se>0&&se<re.length&&b(re,U,Y,se,Y,ue,te,J,H),re.reverse(),U.reverse(),te>-1&&se>0){let ie=p(q,H);W=LI(q,re,U,0,re.length,0,Q-Y,ie,ie)}else W=w(q,re,U,Q-Y,J-Q,H)}I.push(W),j.push(V)}function f(M,F,I,j){let B=[],L=0,z=-1;for(;a.pos>F;){let{id:Y,start:Q,end:$,size:J}=a;if(J>4)a.next();else{if(z>-1&&Q<z)break;z<0&&(z=$-i),B.push(Y,Q,$),L++,a.next()}}if(L){let Y=new Uint16Array(L*4),Q=B[B.length-2];for(let $=B.length-3,J=0;$>=0;$-=3)Y[J++]=B[$],Y[J++]=B[$+1]-Q,Y[J++]=B[$+2]-Q,Y[J++]=J;I.push(new Cf(Y,B[2]-Q,r)),j.push(Q-M)}}function p(M,F){return(I,j,B)=>{let L=0,z=I.length-1,Y,Q;if(z>=0&&(Y=I[z])instanceof bi){if(!z&&Y.type==M&&Y.length==B)return Y;(Q=Y.prop(un.lookAhead))&&(L=j[z]+Y.length+Q)}return w(M,I,j,B,L,F)}}function b(M,F,I,j,B,L,z,Y,Q){let $=[],J=[];for(;M.length>j;)$.push(M.pop()),J.push(F.pop()+I-B);M.push(w(r.types[z],$,J,L-B,Y-L,Q)),F.push(B-I)}function w(M,F,I,j,B,L,z){if(L){let Y=[un.contextHash,L];z=z?[Y].concat(z):[Y]}if(B>25){let Y=[un.lookAhead,B];z=z?[Y].concat(z):[Y]}return new bi(M,F,I,j,z)}function E(M,F){let I=a.fork(),j=0,B=0,L=0,z=I.end-i,Y={size:0,start:0,skip:0};e:for(let Q=I.pos-M;I.pos>Q;){let $=I.size;if(I.id==F&&$>=0){Y.size=j,Y.start=B,Y.skip=L,L+=4,j+=4,I.next();continue}let J=I.pos-$;if($<0||J<Q||I.start<z)break;let H=I.id>=o?4:0,q=I.start;for(I.next();I.pos>J;){if(I.size<0)if(I.size==-3)H+=4;else break e;else I.id>=o&&(H+=4);I.next()}B=q,j+=$,L+=H}return(F<0||j==M)&&(Y.size=j,Y.start=B,Y.skip=L),Y.size>4?Y:void 0}function S(M,F,I){let{id:j,start:B,end:L,size:z}=a;if(a.next(),z>=0&&j<o){let Y=I;if(z>4){let Q=a.pos-(z-4);for(;a.pos>Q;)I=S(M,F,I)}F[--I]=Y,F[--I]=L-M,F[--I]=B-M,F[--I]=j}else z==-3?u=j:z==-4&&(c=j);return I}let k=[],A=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,k,A,-1,0);let P=(t=e.length)!==null&&t!==void 0?t:k.length?A[0]+k[0].length:0;return new bi(l[e.topID],k.reverse(),A.reverse(),P)}const Kq=new WeakMap;function ND(e,t){if(!e.isAnonymous||t instanceof Cf||t.type!=e)return 1;let n=Kq.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof bi)){n=1;break}n+=ND(e,r)}Kq.set(t,n)}return n}function LI(e,t,n,r,i,s,o,a,l){let u=0;for(let b=r;b<i;b++)u+=ND(e,t[b]);let c=Math.ceil(u*1.5/8),d=[],f=[];function p(b,w,E,S,k){for(let A=E;A<S;){let P=A,M=w[A],F=ND(e,b[A]);for(A++;A<S;A++){let I=ND(e,b[A]);if(F+I>=c)break;F+=I}if(A==P+1){if(F>c){let I=b[P];p(I.children,I.positions,0,I.children.length,w[P]+k);continue}d.push(b[P])}else{let I=w[A-1]+b[A-1].length-M;d.push(LI(e,b,w,P,A,M,I,null,l))}f.push(M+k-s)}}return p(t,n,r,i,0),(a||l)(d,f,o)}class sm{constructor(t,n,r,i,s=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new sm(0,t.length,t,0,!1,r)];for(let s of n)s.to>t.length&&i.push(s);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,u=0;;a++){let c=a<n.length?n[a]:null,d=c?c.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||u){let p=Math.max(f.from,l)-u,b=Math.min(f.to,d)-u;f=p>=b?null:new sm(p,b,f.tree,f.offset+u,a>0,!!c)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return i}}class Woe{startParse(t,n,r){return typeof t=="string"&&(t=new vze(t)),r=r?r.length?r.map(i=>new SP(i.from,i.to)):[new SP(0,0)]:[new SP(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let s=i.advance();if(s)return s}}}class vze{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new un({perNode:!0});var xze={},Xq={};class Bk{constructor(t,n,r,i,s,o,a,l,u,c=0,d){this.p=t,this.stack=n,this.state=r,this.reducePos=i,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=d}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new Bk(t,[],n,r,r,0,[],0,i?new Zq(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(r-1)*3-(t&262144?6:0),u=l?this.stack[l-2]:this.p.ranges[0].from,c=this.reducePos-u;c>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=u,this.p.lastBigReductionSize=c));let d=l?this.stack[l-1]:0,f=this.bufferBase+this.buffer.length-d;if(i<s.minRepeatTerm||t&131072){let p=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,u,p,f+4,!0)}if(t&262144)this.state=this.stack[l];else{let p=this.stack[l-3];this.state=s.getGoto(p,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,u)}storeNode(t,n,r,i=4,s=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(n==r)return;if(o.buffer[a-2]>=n){o.buffer[a-2]=r;return}}}if(!s||this.pos==r)this.buffer.push(t,n,r,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=t,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let s=t,{parser:o}=this.p;(i>this.pos||n<=o.maxNode)&&(this.pos=i,o.stateFlag(s,1)||(this.reducePos=i)),this.pushState(s,r),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,i,4)}else this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4)}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new Bk(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new wze(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let s=0,o;s<n.length;s+=2)(o=n[s+1])!=this.state&&this.p.parser.hasAction(o,t)&&i.push(n[s],o);if(this.stack.length<120)for(let s=0;i.length<8&&s<n.length;s+=2){let o=n[s+1];i.some((a,l)=>l&1&&a==o)||i.push(n[s],o)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let s=n[i+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[i],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,i=n&65535,s=this.stack.length-r*3;if(s<0||t.getGoto(this.stack[s],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,s)=>{if(!n.includes(i))return n.push(i),t.allActions(i,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,u=this.stack.length-a*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return a<<19|65536|l}}else{let a=r(o,s+1);if(a!=null)return a}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new Zq(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Zq{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class wze{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class $k{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new $k(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new $k(this.stack,this.pos,this.index)}}function hE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r<e.length;){let s=0;for(;;){let o=e.charCodeAt(r++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}n?n[i++]=s:n=new t(s)}return n}class PD{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Jq=new PD;class Sze{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Jq,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,s=this.pos+t;for(;s<r.from;){if(!i)return null;let o=this.ranges[--i];s-=r.from-o.to,r=o}for(;n<0?s>r.to:s>=r.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];s+=o.from-r.to,r=o}return s}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+t,i=this.chunk.charCodeAt(n);else{let s=this.resolveOffset(t,1);if(s==null)return-1;if(r=s,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}acceptTokenTo(t,n){this.token.value=t,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=Jq,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class zy{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;Cze(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}zy.prototype.contextual=zy.prototype.fallback=zy.prototype.extend=!1;zy.prototype.fallback=zy.prototype.extend=!1;function Cze(e,t,n,r,i,s){let o=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;(a&e[o])!=0;){let u=e[o+1];for(let p=o+3;p<u;p+=2)if((e[p+1]&a)>0){let b=e[p];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||Eze(b,t.token.value,i,s))){t.acceptToken(b);break}}let c=t.next,d=0,f=e[o+2];if(t.next<0&&f>d&&e[u+f*3-3]==65535){o=e[u+f*3-1];continue e}for(;d<f;){let p=d+f>>1,b=u+p+(p<<1),w=e[b],E=e[b+1]||65536;if(c<w)f=p;else if(c>=E)d=p+1;else{o=e[b+2],t.advance();continue e}}break}}function Qq(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function Eze(e,t,n,r){let i=Qq(n,r,t);return i<0||Qq(n,r,e)<i}const qo=typeof xze<"u"&&Xq&&/\bparse\b/.test(Xq.LOG);let CP=null;function eW(e,t,n){let r=e.cursor(zi.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class Dze{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?eW(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?eW(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=r.children[i],o=this.start[n]+r.positions[i];if(o>t)return this.nextStart=o,null;if(s instanceof bi){if(o==t){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(un.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[n]++,o+s.length>=Math.max(this.safeFrom,t)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+s.length}}}class kze{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new PD)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:s}=i,o=i.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let u=0;u<s.length;u++){if((1<<u&o)==0)continue;let c=s[u],d=this.tokens[u];if(!(r&&!c.fallback)&&((c.contextual||d.start!=t.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,c,t),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let f=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>f))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new PD,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new PD,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:s}=r.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==t.value){let a=s.specializers[o](this.stream.read(t.start,t.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let s=0;s<i;s+=3)if(this.actions[s]==t)return i;return this.actions[i++]=t,this.actions[i++]=n,this.actions[i++]=r,i}addActions(t,n,r,i){let{state:s}=t,{parser:o}=t.p,{data:a}=o;for(let l=0;l<2;l++)for(let u=o.stateSlot(s,l?2:1);;u+=3){if(a[u]==65535)if(a[u+1]==1)u=qc(a,u+2);else{i==0&&a[u+1]==2&&(i=this.putAction(qc(a,u+2),n,r,i));break}a[u]==n&&(i=this.putAction(qc(a,u+1),n,r,i))}return i}}class Aze{constructor(t,n,r,i){this.parser=t,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Sze(n,i),this.tokens=new kze(t,this.stream),this.topTerm=t.top[1];let{from:s}=i[0];this.stacks=[Bk.start(this,t.top[0],s)],this.fragments=r.length&&this.stream.end-s>t.bufferLength*4?new Dze(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,s;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<t.length;o++){let a=t[o];for(;;){if(this.tokens.mainToken=null,a.pos>n)r.push(a);else{if(this.advanceStack(a,r,t))continue;{i||(i=[],s=[]),i.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!r.length){let o=i&&Tze(i);if(o)return qo&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw qo&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,r);if(o)return qo&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((a,l)=>l.score-a.score);r.length>o;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let a=r[o];for(let l=o+1;l<r.length;l++){let u=r[l];if(a.sameState(u)||a.buffer.length>500&&u.buffer.length>500)if((a.score-u.score||a.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let i=t.pos,{parser:s}=this,o=qo?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?s.getGoto(t.state,d.type.id):-1;if(f>-1&&d.length&&(!u||(d.prop(un.contextHash)||0)==c))return t.useNode(d,f),qo&&console.log(o+this.stackID(t)+` (via reuse of ${s.getName(d.type.id)})`),!0;if(!(d instanceof bi)||d.children.length==0||d.positions[0]>0)break;let p=d.children[0];if(p instanceof bi&&d.positions[0]==0)d=p;else break}}let a=s.stateSlot(t.state,4);if(a>0)return t.reduce(a),qo&&console.log(o+this.stackID(t)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;u<l.length;){let c=l[u++],d=l[u++],f=l[u++],p=u==l.length||!r,b=p?t:t.split(),w=this.tokens.mainToken;if(b.apply(c,d,w?w.start:b.pos,f),qo&&console.log(o+this.stackID(b)+` (via ${(c&65536)==0?"shift":`reduce of ${s.getName(c&65535)}`} for ${s.getName(d)} @ ${i}${b==t?"":", split"})`),p)return!0;b.pos>i?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return tW(t,n),!0}}runRecovery(t,n,r){let i=null,s=!1;for(let o=0;o<t.length;o++){let a=t[o],l=n[o<<1],u=n[(o<<1)+1],c=qo?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),qo&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let d=a.split(),f=c;for(let p=0;d.forceReduce()&&p<10&&(qo&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));p++)qo&&(f=this.stackID(d)+" -> ");for(let p of a.recoverByInsert(l))qo&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,r);this.stream.end>a.pos?(u==a.pos&&(u++,l=0),a.recoverByDelete(l,u),qo&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),tW(a,r)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(t){return t.close(),bi.build({buffer:$k.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(CP||(CP=new WeakMap)).get(t);return n||CP.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function tW(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class _ze{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}class zk extends Woe{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<t.repeatNodeCount;a++)n.push("");let r=Object.keys(t.topRules).map(a=>t.topRules[a][1]),i=[];for(let a=0;a<n.length;a++)i.push([]);function s(a,l,u){i[a].push([l,l.deserialize(String(u))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=un[l]);for(let u=1;u<a.length;){let c=a[u++];if(c>=0)s(c,l,a[u++]);else{let d=a[u+-c];for(let f=-c;f>0;f--)s(a[u++],l,d);u++}}}this.nodeSet=new RI(n.map((a,l)=>Mo.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Hoe;let o=hE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(nW),this.states=hE(t.states,Uint32Array),this.data=hE(t.stateData),this.goto=hE(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new zy(o,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new Aze(this,t,n,r);for(let s of this.wrappers)i=s(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let s=i[n+1];;){let o=i[s++],a=o&1,l=i[s++];if(a&&r)return l;for(let u=s+(o>>1);s<u;s++)if(i[s]==t)return l;if(a)return-1}}hasAction(t,n){let r=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(t,i?2:1),o;;s+=3){if((o=r[s])==65535)if(r[s+1]==1)o=r[s=qc(r,s+2)];else{if(r[s+1]==2)return qc(r,s+2);break}if(o==n||o==0)return qc(r,s+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let s=this.stateSlot(t,1);i==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=qc(this.data,s+2);else break;i=n(qc(this.data,s+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=qc(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];n.some((s,o)=>o&1&&s==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(zk.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(s=>s.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let s=t.specializers.find(a=>a.from==r.external);if(!s)return r;let o=Object.assign(Object.assign({},r),{external:s.to});return n.specializers[i]=nW(o),o})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let s of t.split(" ")){let o=n.indexOf(s);o>=0&&(r[o]=!0)}let i=null;for(let s=0;s<n.length;s++)if(!r[s])for(let o=this.dialects[n[s]],a;(a=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new _ze(t,r,i)}static deserialize(t){return new zk(t)}}function qc(e,t){return e[t]|e[t+1]<<16}function Tze(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function nW(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}let Nze=0;class _a{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=Nze++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof _a&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new _a(r,[],null,[]);if(i.set.push(i),n)for(let s of n.set)i.set.push(s);return i}static defineModifier(t){let n=new Hk(t);return r=>r.modified.indexOf(n)>-1?r:Hk.get(r.base||r,r.modified.concat(n).sort((i,s)=>i.id-s.id))}}let Pze=0;class Hk{constructor(t){this.name=t,this.instances=[],this.id=Pze++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Fze(n,a.modified));if(r)return r;let i=[],s=new _a(t.name,i,t,n);for(let a of n)a.instances.push(s);let o=Mze(n);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(Hk.get(a,l));return s}}function Fze(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function Mze(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function Goe(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let p=i[d++];if(d==i.length&&p=="!"){o=0;break}if(p!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,u=s[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new Vk(r,o,l>0?s.slice(0,l):null);t[u]=c.sort(t[u])}}return Yoe.add(t)}const Yoe=new un;class Vk{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Vk.empty=new Vk([],2,null);function Koe(e,t){let n=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let u=n[l.id];if(u){o=o?o+" "+u:u;break}}return o},scope:r}}function Oze(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Rze(e,t,n,r=0,i=e.length){let s=new Ize(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}class Ize{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,s){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(p=>!p.scope||p.scope(o)));let u=i,c=jze(t)||Vk.empty,d=Oze(s,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,a),u),c.opaque)return;let f=t.tree&&t.tree.prop(un.mounted);if(f&&f.overlay){let p=t.node.enter(f.overlay[0].from+a,1),b=this.highlighters.filter(E=>!E.scope||E.scope(f.tree.type)),w=t.firstChild();for(let E=0,S=a;;E++){let k=E<f.overlay.length?f.overlay[E]:null,A=k?k.from+a:l,P=Math.max(n,S),M=Math.min(r,A);if(P<M&&w)for(;t.from<M&&(this.highlightRange(t,P,M,i,s),this.startSpan(Math.min(M,t.to),u),!(t.to>=A||!t.nextSibling())););if(!k||A>r)break;S=k.to+a,S>n&&(this.highlightRange(p.cursor(),Math.max(n,k.from+a),Math.min(r,S),"",b),this.startSpan(Math.min(r,S),u))}w&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,s),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function jze(e){let t=e.type.prop(Yoe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const rt=_a.define,fE=rt(),Nh=rt(),rW=rt(Nh),iW=rt(Nh),Ph=rt(),pE=rt(Ph),EP=rt(Ph),gu=rt(),xp=rt(gu),cu=rt(),du=rt(),EF=rt(),ex=rt(EF),mE=rt(),Se={comment:fE,lineComment:rt(fE),blockComment:rt(fE),docComment:rt(fE),name:Nh,variableName:rt(Nh),typeName:rW,tagName:rt(rW),propertyName:iW,attributeName:rt(iW),className:rt(Nh),labelName:rt(Nh),namespace:rt(Nh),macroName:rt(Nh),literal:Ph,string:pE,docString:rt(pE),character:rt(pE),attributeValue:rt(pE),number:EP,integer:rt(EP),float:rt(EP),bool:rt(Ph),regexp:rt(Ph),escape:rt(Ph),color:rt(Ph),url:rt(Ph),keyword:cu,self:rt(cu),null:rt(cu),atom:rt(cu),unit:rt(cu),modifier:rt(cu),operatorKeyword:rt(cu),controlKeyword:rt(cu),definitionKeyword:rt(cu),moduleKeyword:rt(cu),operator:du,derefOperator:rt(du),arithmeticOperator:rt(du),logicOperator:rt(du),bitwiseOperator:rt(du),compareOperator:rt(du),updateOperator:rt(du),definitionOperator:rt(du),typeOperator:rt(du),controlOperator:rt(du),punctuation:EF,separator:rt(EF),bracket:ex,angleBracket:rt(ex),squareBracket:rt(ex),paren:rt(ex),brace:rt(ex),content:gu,heading:xp,heading1:rt(xp),heading2:rt(xp),heading3:rt(xp),heading4:rt(xp),heading5:rt(xp),heading6:rt(xp),contentSeparator:rt(gu),list:rt(gu),quote:rt(gu),emphasis:rt(gu),strong:rt(gu),link:rt(gu),monospace:rt(gu),strikethrough:rt(gu),inserted:rt(),deleted:rt(),changed:rt(),invalid:rt(),meta:mE,documentMeta:rt(mE),annotation:rt(mE),processingInstruction:rt(mE),definition:_a.defineModifier("definition"),constant:_a.defineModifier("constant"),function:_a.defineModifier("function"),standard:_a.defineModifier("standard"),local:_a.defineModifier("local"),special:_a.defineModifier("special")};for(let e in Se){let t=Se[e];t instanceof _a&&(t.name=e)}Koe([{tag:Se.link,class:"tok-link"},{tag:Se.heading,class:"tok-heading"},{tag:Se.emphasis,class:"tok-emphasis"},{tag:Se.strong,class:"tok-strong"},{tag:Se.keyword,class:"tok-keyword"},{tag:Se.atom,class:"tok-atom"},{tag:Se.bool,class:"tok-bool"},{tag:Se.url,class:"tok-url"},{tag:Se.labelName,class:"tok-labelName"},{tag:Se.inserted,class:"tok-inserted"},{tag:Se.deleted,class:"tok-deleted"},{tag:Se.literal,class:"tok-literal"},{tag:Se.string,class:"tok-string"},{tag:Se.number,class:"tok-number"},{tag:[Se.regexp,Se.escape,Se.special(Se.string)],class:"tok-string2"},{tag:Se.variableName,class:"tok-variableName"},{tag:Se.local(Se.variableName),class:"tok-variableName tok-local"},{tag:Se.definition(Se.variableName),class:"tok-variableName tok-definition"},{tag:Se.special(Se.variableName),class:"tok-variableName2"},{tag:Se.definition(Se.propertyName),class:"tok-propertyName tok-definition"},{tag:Se.typeName,class:"tok-typeName"},{tag:Se.namespace,class:"tok-namespace"},{tag:Se.className,class:"tok-className"},{tag:Se.macroName,class:"tok-macroName"},{tag:Se.propertyName,class:"tok-propertyName"},{tag:Se.operator,class:"tok-operator"},{tag:Se.comment,class:"tok-comment"},{tag:Se.meta,class:"tok-meta"},{tag:Se.invalid,class:"tok-invalid"},{tag:Se.punctuation,class:"tok-punctuation"}]);const Lze=Goe({String:Se.string,Number:Se.number,"True False":Se.bool,PropertyName:Se.propertyName,Null:Se.null,", :":Se.separator,"[ ]":Se.squareBracket,"{ }":Se.brace}),Bze=zk.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Lze],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let DF=[],Xoe=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?Xoe:DF).push(n=n+e[t])})();function $ze(e){if(e<768)return!1;for(let t=0,n=DF.length;;){let r=t+n>>1;if(e<DF[r])n=r;else if(e>=Xoe[r])t=r+1;else return!0;if(t==n)return!1}}function sW(e){return e>=127462&&e<=127487}const oW=8205;function zze(e,t,n=!0,r=!0){return(n?Zoe:Hze)(e,t,r)}function Zoe(e,t,n){if(t==e.length)return t;t&&Joe(e.charCodeAt(t))&&Qoe(e.charCodeAt(t-1))&&t--;let r=DP(e,t);for(t+=aW(r);t<e.length;){let i=DP(e,t);if(r==oW||i==oW||n&&$ze(i))t+=aW(i),r=i;else if(sW(i)){let s=0,o=t-2;for(;o>=0&&sW(DP(e,o));)s++,o-=2;if(s%2==0)break;t+=2}else break}return t}function Hze(e,t,n){for(;t>0;){let r=Zoe(e,t-2,n);if(r<t)return r;t--}return 0}function DP(e,t){let n=e.charCodeAt(t);if(!Qoe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Joe(r)?(n-55296<<10)+(r-56320)+65536:n}function Joe(e){return e>=56320&&e<57344}function Qoe(e){return e>=55296&&e<56320}function aW(e){return e<65536?1:2}let In=class eae{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=A0(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),ku.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=A0(this,t,n);let r=[];return this.decompose(t,n,r,0),ku.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new qx(this),s=new qx(t);for(let o=n,a=n;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(t=1){return new qx(this,t)}iterRange(t,n=this.length){return new tae(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new nae(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?eae.empty:t.length<=32?new ei(t):ku.from(ei.split(t,[]))}};class ei extends In{constructor(t,n=Vze(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((n?r:a)>=t)return new Uze(i,a,r,o);i=a+1,r++}}decompose(t,n,r,i){let s=t<=0&&n>=this.length?this:new ei(lW(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let o=r.pop(),a=FD(s.text,o.text.slice(),0,s.length);if(a.length<=32)r.push(new ei(a,o.length+s.length));else{let l=a.length>>1;r.push(new ei(a.slice(0,l)),new ei(a.slice(l)))}}else r.push(s)}replace(t,n,r){if(!(r instanceof ei))return super.replace(t,n,r);[t,n]=A0(this,t,n);let i=FD(this.text,FD(r.text,lW(this.text,0,t)),n),s=this.length+r.length-(n-t);return i.length<=32?new ei(i,s):ku.from(ei.split(i,[]),s)}sliceString(t,n=this.length,r=`
|
|
524
524
|
`){[t,n]=A0(this,t,n);let i="";for(let s=0,o=0;s<=n&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>t&&o&&(i+=r),t<l&&n>s&&(i+=a.slice(Math.max(0,t-s),n-s)),s=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let s of t)r.push(s),i+=s.length+1,r.length==32&&(n.push(new ei(r,i)),r=[],i=-1);return i>-1&&n.push(new ei(r,i)),n}}class ku extends In{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=r+o.lines-1;if((n?l:a)>=t)return o.lineInner(t,n,r,i);i=a+1,r=l+1}}decompose(t,n,r,i){for(let s=0,o=0;o<=n&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(t<=l&&n>=o){let u=i&((o<=t?1:0)|(l>=n?2:0));o>=t&&l<=n&&!u?r.push(a):a.decompose(t-o,n-o,r,u)}o=l+1}}replace(t,n,r){if([t,n]=A0(this,t,n),r.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(t>=s&&n<=a){let l=o.replace(t-s,n-s,r),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new ku(c,this.length-(n-t)+r.length)}return super.replace(s,a,l)}s=a+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
|
|
525
525
|
`){[t,n]=A0(this,t,n);let i="";for(let s=0,o=0;s<this.children.length&&o<=n;s++){let a=this.children[s],l=o+a.length;o>t&&s&&(i+=r),t<l&&n>o&&(i+=a.sliceString(t-o,n-o,r)),o=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof ku))return 0;let r=0,[i,s,o,a]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,s+=n){if(i==o||s==a)return r;let l=this.children[i],u=t.children[s];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let p of t)r+=p.lines;if(r<32){let p=[];for(let b of t)b.flatten(p);return new ei(p,n)}let i=Math.max(32,r>>5),s=i<<1,o=i>>1,a=[],l=0,u=-1,c=[];function d(p){let b;if(p.lines>s&&p instanceof ku)for(let w of p.children)d(w);else p.lines>o&&(l>o||!l)?(f(),a.push(p)):p instanceof ei&&l&&(b=c[c.length-1])instanceof ei&&p.lines+b.lines<=32?(l+=p.lines,u+=p.length+1,c[c.length-1]=new ei(b.text.concat(p.text),b.length+1+p.length)):(l+p.lines>i&&f(),l+=p.lines,u+=p.length+1,c.push(p))}function f(){l!=0&&(a.push(c.length==1?c[0]:ku.from(c,u)),u=-1,l=c.length=0)}for(let p of t)d(p);return f(),a.length==1?a[0]:new ku(a,n)}}In.empty=new ei([""],0);function Vze(e){let t=-1;for(let n of e)t+=n.length+1;return t}function FD(e,t,n=0,r=1e9){for(let i=0,s=0,o=!0;s<e.length&&i<=r;s++){let a=e[s],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),o?(t[t.length-1]+=a,o=!1):t.push(a)),i=l+1}return t}function lW(e,t,n){return FD(e,[""],t,n)}class qx{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof ei?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],s=this.offsets[r],o=s>>1,a=i instanceof ei?i.text.length:i.children.length;if(o==(n>0?a:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
|
|
526
526
|
`,this;t--}else if(i instanceof ei){let l=i.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[o+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof ei?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class tae{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new qx(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class nae{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(In.prototype[Symbol.iterator]=function(){return this.iter()},qx.prototype[Symbol.iterator]=tae.prototype[Symbol.iterator]=nae.prototype[Symbol.iterator]=function(){return this});class Uze{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function A0(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function rs(e,t,n=!0,r=!0){return zze(e,t,n,r)}function qze(e){return e>=56320&&e<57344}function Wze(e){return e>=55296&&e<56320}function go(e,t){let n=e.charCodeAt(t);if(!Wze(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return qze(r)?(n-55296<<10)+(r-56320)+65536:n}function BI(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Au(e){return e<65536?1:2}const kF=/\r\n?|\n/;var Gs=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Gs||(Gs={}));class $u{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}get newLength(){let t=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let n=0,r=0,i=0;n<this.sections.length;){let s=this.sections[n++],o=this.sections[n++];o<0?(t(r,i,s),i+=s):i+=o,r+=s}}iterChangedRanges(t,n=!1){AF(this,t,n)}get invertedDesc(){let t=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?t.push(r,i):t.push(i,r)}return new $u(t)}composeDesc(t){return this.empty?t:t.empty?this:rae(this,t)}mapDesc(t,n=!1){return t.empty?this:_F(this,t,n)}mapPos(t,n=-1,r=Gs.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],u=i+a;if(l<0){if(u>t)return s+(t-i);s+=a}else{if(r!=Gs.Simple&&u>=t&&(r==Gs.TrackDel&&i<t&&u>t||r==Gs.TrackBefore&&i<t||r==Gs.TrackAfter&&u>t))return null;if(u>t||u==t&&n<0&&!a)return t==i||n<0?s:s+l;s+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return s}touchesRange(t,n=t){for(let r=0,i=0;r<this.sections.length&&i<=n;){let s=this.sections[r++],o=this.sections[r++],a=i+s;if(o>=0&&i<=n&&a>=t)return i<t&&a>n?"cover":!0;i=a}return!1}toString(){let t="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];t+=(t?" ":"")+r+(i>=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new $u(t)}static create(t){return new $u(t)}}class Ai extends $u{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return AF(this,(n,r,i,s,o)=>t=t.replace(i,i+(r-n),o),!1),t}mapDesc(t,n=!1){return _F(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,s=0;i<n.length;i+=2){let o=n[i],a=n[i+1];if(a>=0){n[i]=a,n[i+1]=o;let l=i>>1;for(;r.length<l;)r.push(In.empty);r.push(o?t.slice(s,s+o):In.empty)}s+=o}return new Ai(n,r)}compose(t){return this.empty?t:t.empty?this:rae(this,t,!0)}map(t,n=!1){return t.empty?this:_F(this,t,n,!0)}iterChanges(t,n=!1){AF(this,t,n)}get desc(){return $u.create(this.sections)}filter(t){let n=[],r=[],i=[],s=new F1(this);e:for(let o=0,a=0;;){let l=o==t.length?1e9:t[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let c=Math.min(s.len,l-a);bs(i,c,-1);let d=s.ins==-1?-1:s.off==0?s.ins:0;bs(n,c,d),d>0&&Gh(r,n,s.text),s.forward(c),a+=c}let u=t[o++];for(;a<u;){if(s.done)break e;let c=Math.min(s.len,u-a);bs(n,c,-1),bs(i,c,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(c),a+=c}}return{changes:new Ai(n,r),filtered:$u.create(i)}}toJSON(){let t=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?t.push(r):i==0?t.push([r]):t.push([r].concat(this.inserted[n>>1].toJSON()))}return t}static of(t,n,r){let i=[],s=[],o=0,a=null;function l(c=!1){if(!c&&!i.length)return;o<n&&bs(i,n-o,-1);let d=new Ai(i,s);a=a?a.compose(d.map(a)):d,i=[],s=[],o=0}function u(c){if(Array.isArray(c))for(let d of c)u(d);else if(c instanceof Ai){if(c.length!=n)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);l(),a=a?a.compose(c.map(a)):c}else{let{from:d,to:f=d,insert:p}=c;if(d>f||d<0||f>n)throw new RangeError(`Invalid change range ${d} to ${f} (in doc of length ${n})`);let b=p?typeof p=="string"?In.of(p.split(r||kF)):p:In.empty,w=b.length;if(d==f&&w==0)return;d<o&&l(),d>o&&bs(i,d-o,-1),bs(i,f-d,w),Gh(s,i,b),o=f}}return u(t),l(!a),a}static empty(t){return new Ai(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<t.length;i++){let s=t[i];if(typeof s=="number")n.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)n.push(s[0],0);else{for(;r.length<i;)r.push(In.empty);r[i]=In.of(s.slice(1)),n.push(s[0],r[i].length)}}}return new Ai(n,r)}static createSet(t,n){return new Ai(t,n)}}function bs(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Gh(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(In.empty);e.push(n)}}function AF(e,t,n){let r=e.inserted;for(let i=0,s=0,o=0;o<e.sections.length;){let a=e.sections[o++],l=e.sections[o++];if(l<0)i+=a,s+=a;else{let u=i,c=s,d=In.empty;for(;u+=a,c+=l,l&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(i,u,s,c,d),i=u,s=c}}}function _F(e,t,n,r=!1){let i=[],s=r?[]:null,o=new F1(e),a=new F1(t);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let u=Math.min(o.len,a.len);bs(i,u,-1),o.forward(u),a.forward(u)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!n))){let u=a.len;for(bs(i,a.ins,-1);u;){let c=Math.min(o.len,u);o.ins>=0&&l<o.i&&o.len<=c&&(bs(i,0,o.ins),s&&Gh(s,i,o.text),l=o.i),o.forward(c),u-=c}a.next()}else if(o.ins>=0){let u=0,c=o.len;for(;c;)if(a.ins==-1){let d=Math.min(c,a.len);u+=d,c-=d,a.forward(d)}else if(a.ins==0&&a.len<c)c-=a.len,a.next();else break;bs(i,u,l<o.i?o.ins:0),s&&l<o.i&&Gh(s,i,o.text),l=o.i,o.forward(o.len-c)}else{if(o.done&&a.done)return s?Ai.createSet(i,s):$u.create(i);throw new Error("Mismatched change set lengths")}}}function rae(e,t,n=!1){let r=[],i=n?[]:null,s=new F1(e),o=new F1(t);for(let a=!1;;){if(s.done&&o.done)return i?Ai.createSet(r,i):$u.create(r);if(s.ins==0)bs(r,s.len,0,a),s.next();else if(o.len==0&&!o.done)bs(r,0,o.ins,a),i&&Gh(i,r,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),u=r.length;if(s.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;bs(r,l,c,a),i&&c&&Gh(i,r,o.text)}else o.ins==-1?(bs(r,s.off?0:s.len,l,a),i&&Gh(i,r,s.textBit(l))):(bs(r,s.off?0:s.len,o.off?0:o.ins,a),i&&!o.off&&Gh(i,r,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||r.length>u),s.forward2(l),o.forward(l)}}}}class F1{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length?In.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?In.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Up{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Up(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return Le.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Le.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Le.range(t.anchor,t.head)}static create(t,n,r){return new Up(t,n,r)}}class Le{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:Le.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(t.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Le([this.main],0)}addRange(t,n=!0){return Le.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,Le.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Le(t.ranges.map(n=>Up.fromJSON(n)),t.main)}static single(t,n=t){return new Le([Le.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<t.length;i++){let s=t[i];if(s.empty?s.from<=r:s.from<r)return Le.normalized(t.slice(),n);r=s.to}return new Le(t,n)}static cursor(t,n=0,r,i){return Up.create(t,t,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(t,n,r,i){let s=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<t?Up.create(n,t,48|s):Up.create(t,n,(n>t?8:0)|s)}static normalized(t,n=0){let r=t[n];t.sort((i,s)=>i.from-s.from),n=t.indexOf(r);for(let i=1;i<t.length;i++){let s=t[i],o=t[i-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);i<=n&&n--,t.splice(--i,2,s.anchor>s.head?Le.range(l,a):Le.range(a,l))}}return new Le(t,n)}}function iae(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let $I=0;class mt{constructor(t,n,r,i,s){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=$I++,this.default=t([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(t={}){return new mt(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:zI),!!t.static,t.enables)}of(t){return new MD([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new MD(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new MD(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function zI(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class MD{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=$I++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,s=this.id,o=t[s]>>1,a=this.type==2,l=!1,u=!1,c=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?u=!0:(((n=t[d.id])!==null&&n!==void 0?n:1)&1)==0&&c.push(t[d.id]);return{create(d){return d.values[o]=r(d),1},update(d,f){if(l&&f.docChanged||u&&(f.docChanged||f.selection)||TF(d,c)){let p=r(d);if(a?!uW(p,d.values[o],i):!i(p,d.values[o]))return d.values[o]=p,1}return 0},reconfigure:(d,f)=>{let p,b=f.config.address[s];if(b!=null){let w=qk(f,b);if(this.dependencies.every(E=>E instanceof mt?f.facet(E)===d.facet(E):E instanceof us?f.field(E,!1)==d.field(E,!1):!0)||(a?uW(p=r(d),w,i):i(p=r(d),w)))return d.values[o]=w,0}else p=r(d);return d.values[o]=p,1}}}}function uW(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function TF(e,t){let n=!1;for(let r of t)Wx(e,r)&1&&(n=!0);return n}function Gze(e,t,n){let r=n.map(l=>e[l.id]),i=n.map(l=>l.type),s=r.filter(l=>!(l&1)),o=e[t.id]>>1;function a(l){let u=[];for(let c=0;c<r.length;c++){let d=qk(l,r[c]);if(i[c]==2)for(let f of d)u.push(f);else u.push(d)}return t.combine(u)}return{create(l){for(let u of r)Wx(l,u);return l.values[o]=a(l),1},update(l,u){if(!TF(l,s))return 0;let c=a(l);return t.compare(c,l.values[o])?0:(l.values[o]=c,1)},reconfigure(l,u){let c=TF(l,r),d=u.config.facets[t.id],f=u.facet(t);if(d&&!c&&zI(n,d))return l.values[o]=f,0;let p=a(l);return t.compare(p,f)?(l.values[o]=f,0):(l.values[o]=p,1)}}}const gE=mt.define({static:!0});class us{constructor(t,n,r,i,s){this.id=t,this.createF=n,this.updateF=r,this.compareF=i,this.spec=s,this.provides=void 0}static define(t){let n=new us($I++,t.create,t.update,t.compare||((r,i)=>r===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(gE).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let s=r.values[n],o=this.updateF(s,i);return this.compareF(s,o)?0:(r.values[n]=o,1)},reconfigure:(r,i)=>{let s=r.facet(gE),o=i.facet(gE),a;return(a=s.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(r.values[n]=a.create(r),1):i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}}init(t){return[this,gE.of({field:this,create:t})]}get extension(){return this}}const jp={lowest:4,low:3,default:2,high:1,highest:0};function tx(e){return t=>new sae(t,e)}const sg={highest:tx(jp.highest),high:tx(jp.high),default:tx(jp.default),low:tx(jp.low),lowest:tx(jp.lowest)};class sae{constructor(t,n){this.inner=t,this.prec=n}}class G_{of(t){return new NF(this,t)}reconfigure(t){return G_.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class NF{constructor(t,n){this.compartment=t,this.inner=n}}class Uk{constructor(t,n,r,i,s,o){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(t){let n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}static resolve(t,n,r){let i=[],s=Object.create(null),o=new Map;for(let f of Yze(t,n,o))f instanceof us?i.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let a=Object.create(null),l=[],u=[];for(let f of i)a[f.id]=u.length<<1,u.push(p=>f.slot(p));let c=r==null?void 0:r.config.facets;for(let f in s){let p=s[f],b=p[0].facet,w=c&&c[f]||[];if(p.every(E=>E.type==0))if(a[b.id]=l.length<<1|1,zI(w,p))l.push(r.facet(b));else{let E=b.combine(p.map(S=>S.value));l.push(r&&b.compare(E,r.facet(b))?r.facet(b):E)}else{for(let E of p)E.type==0?(a[E.id]=l.length<<1|1,l.push(E.value)):(a[E.id]=u.length<<1,u.push(S=>E.dynamicSlot(S)));a[b.id]=u.length<<1,u.push(E=>Gze(E,b,p))}}let d=u.map(f=>f(a));return new Uk(t,o,d,a,l,s)}}function Yze(e,t,n){let r=[[],[],[],[],[]],i=new Map;function s(o,a){let l=i.get(o);if(l!=null){if(l<=a)return;let u=r[l].indexOf(o);u>-1&&r[l].splice(u,1),o instanceof NF&&n.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let u of o)s(u,a);else if(o instanceof NF){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(o.compartment)||o.inner;n.set(o.compartment,u),s(u,a)}else if(o instanceof sae)s(o.inner,o.prec);else if(o instanceof us)r[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof MD)r[a].push(o),o.facet.extensions&&s(o.facet.extensions,jp.default);else{let u=o.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(u,a)}}return s(e,jp.default),r.reduce((o,a)=>o.concat(a))}function Wx(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function qk(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const oae=mt.define(),PF=mt.define({combine:e=>e.some(t=>t),static:!0}),aae=mt.define({combine:e=>e.length?e[0]:void 0,static:!0}),lae=mt.define(),uae=mt.define(),cae=mt.define(),dae=mt.define({combine:e=>e.length?e[0]:!1});class ic{constructor(t,n){this.type=t,this.value=n}static define(){return new Kze}}class Kze{of(t){return new ic(this,t)}}class Xze{constructor(t){this.map=t}of(t){return new nn(this,t)}}class nn{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new nn(this.type,n)}is(t){return this.type==t}static define(t={}){return new Xze(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let s=i.map(n);s&&r.push(s)}return r}}nn.reconfigure=nn.define();nn.appendConfig=nn.define();class Ti{constructor(t,n,r,i,s,o){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,r&&iae(r,n.newLength),s.some(a=>a.type==Ti.time)||(this.annotations=s.concat(Ti.time.of(Date.now())))}static create(t,n,r,i,s,o){return new Ti(t,n,r,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(Ti.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Ti.time=ic.define();Ti.userEvent=ic.define();Ti.addToHistory=ic.define();Ti.remote=ic.define();function Zze(e,t){let n=[];for(let r=0,i=0;;){let s,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))s=e[r++],o=e[r++];else if(i<t.length)s=t[i++],o=t[i++];else return n;!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function hae(e,t,n){var r;let i,s,o;return n?(i=t.changes,s=Ai.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(s):(r=e.selection)===null||r===void 0?void 0:r.map(i),effects:nn.mapEffects(e.effects,i).concat(nn.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function FF(e,t,n){let r=t.selection,i=Hy(t.annotations);return t.userEvent&&(i=i.concat(Ti.userEvent.of(t.userEvent))),{changes:t.changes instanceof Ai?t.changes:Ai.of(t.changes||[],n,e.facet(aae)),selection:r&&(r instanceof Le?r:Le.single(r.anchor,r.head)),effects:Hy(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function fae(e,t,n){let r=FF(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let s=1;s<t.length;s++){t[s].filter===!1&&(n=!1);let o=!!t[s].sequential;r=hae(r,FF(e,t[s],o?r.changes.newLength:e.doc.length),o)}let i=Ti.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Qze(n?Jze(i):i)}function Jze(e){let t=e.startState,n=!0;for(let i of t.facet(lae)){let s=i(e);if(s===!1){n=!1;break}Array.isArray(s)&&(n=n===!0?s:Zze(n,s))}if(n!==!0){let i,s;if(n===!1)s=e.changes.invertedDesc,i=Ai.empty(t.doc.length);else{let o=e.changes.filter(n);i=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}e=Ti.create(t,i,e.selection&&e.selection.map(s),nn.mapEffects(e.effects,s),e.annotations,e.scrollIntoView)}let r=t.facet(uae);for(let i=r.length-1;i>=0;i--){let s=r[i](e);s instanceof Ti?e=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Ti?e=s[0]:e=fae(t,Hy(s),!1)}return e}function Qze(e){let t=e.startState,n=t.facet(cae),r=e;for(let i=n.length-1;i>=0;i--){let s=n[i](e);s&&Object.keys(s).length&&(r=hae(r,FF(t,s,e.changes.newLength),!0))}return r==e?e:Ti.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const eHe=[];function Hy(e){return e==null?eHe:Array.isArray(e)?e:[e]}var _r=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(_r||(_r={}));const tHe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let MF;try{MF=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function nHe(e){if(MF)return MF.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||tHe.test(n)))return!0}return!1}function rHe(e){return t=>{if(!/\S/.test(t))return _r.Space;if(nHe(t))return _r.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return _r.Word;return _r.Other}}class yn{constructor(t,n,r,i,s,o){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)Wx(this,a<<1);this.computeSlot=null}field(t,n=!0){let r=this.config.address[t.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return Wx(this,r),qk(this,r)}update(...t){return fae(this,t,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let a of t.effects)a.is(G_.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,u)=>i.set(u,l)),n=null),i.set(a.value.compartment,a.value.extension)):a.is(nn.reconfigure)?(n=null,r=a.value):a.is(nn.appendConfig)&&(n=null,r=Hy(r).concat(a.value));let s;n?s=t.startState.values.slice():(n=Uk.resolve(r,i,this),s=new yn(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let o=t.startState.facet(PF)?t.newSelection:t.newSelection.asSingle();new yn(n,t.newDoc,o,s,(a,l)=>l.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:Le.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),s=[r.range],o=Hy(r.effects);for(let a=1;a<n.ranges.length;a++){let l=t(n.ranges[a]),u=this.changes(l.changes),c=u.map(i);for(let f=0;f<a;f++)s[f]=s[f].map(c);let d=i.mapDesc(u,!0);s.push(l.range.map(d)),i=i.compose(c),o=nn.mapEffects(o,c).concat(nn.mapEffects(Hy(l.effects),d))}return{changes:i,selection:Le.create(s,n.mainIndex),effects:o}}changes(t=[]){return t instanceof Ai?t:Ai.of(t,this.doc.length,this.facet(yn.lineSeparator))}toText(t){return In.of(t.split(this.facet(yn.lineSeparator)||kF))}sliceDoc(t=0,n=this.doc.length){return this.doc.sliceString(t,n,this.lineBreak)}facet(t){let n=this.config.address[t.id];return n==null?t.default:(Wx(this,n),qk(this,n))}toJSON(t){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let r in t){let i=t[r];i instanceof us&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(t[r]),this))}return n}static fromJSON(t,n={},r){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let s in r)if(Object.prototype.hasOwnProperty.call(t,s)){let o=r[s],a=t[s];i.push(o.init(l=>o.spec.fromJSON(a,l)))}}return yn.create({doc:t.doc,selection:Le.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=Uk.resolve(t.extensions||[],new Map),r=t.doc instanceof In?t.doc:In.of((t.doc||"").split(n.staticFacet(yn.lineSeparator)||kF)),i=t.selection?t.selection instanceof Le?t.selection:Le.single(t.selection.anchor,t.selection.head):Le.single(0);return iae(i,r.length),n.staticFacet(PF)||(i=i.asSingle()),new yn(n,r,i,n.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(yn.tabSize)}get lineBreak(){return this.facet(yn.lineSeparator)||`
|
|
@@ -684,11 +684,11 @@ attempted value: ${o}
|
|
|
684
684
|
* LICENSE.md file in the root directory of this source tree.
|
|
685
685
|
*
|
|
686
686
|
* @license MIT
|
|
687
|
-
*/function $X(e,t){return e?Kht(e)?_.createElement(e,t):e:null}function Kht(e){return Xht(e)||typeof e=="function"||Zht(e)}function Xht(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Zht(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Jht(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=_.useState(()=>({current:Ght(t)})),[r,i]=_.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}function jpe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=jpe(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=jpe(e))&&(r&&(r+=" "),r+=t);return r}const zX=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,HX=lr,Tb=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return HX(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const f=zX(c)||zX(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(b=>{let[w,E]=b;return Array.isArray(E)?E.includes({...s,...a}[w]):{...s,...a}[w]===E})?[...u,d,f]:u},[]);return HX(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},E7="-",Qht=e=>{const t=tft(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(E7);return a[0]===""&&a.length!==1&&a.shift(),Lpe(a,t)||eft(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Lpe=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Lpe(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(E7);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},VX=/^\[(.+)\]$/,eft=e=>{if(VX.test(e)){const t=VX.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tft=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)m9(n[i],r,i,t);return r},m9=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:UX(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(nft(i)){m9(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{m9(o,UX(t,s),n,r)})})},UX=(e,t)=>{let n=e;return t.split(E7).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},nft=e=>e.isThemeGetter,rft=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},g9="!",y9=":",ift=y9.length,sft=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,u;for(let b=0;b<i.length;b++){let w=i[b];if(o===0&&a===0){if(w===y9){s.push(i.slice(l,b)),l=b+ift;continue}if(w==="/"){u=b;continue}}w==="["?o++:w==="]"?o--:w==="("?a++:w===")"&&a--}const c=s.length===0?i:i.substring(l),d=oft(c),f=d!==c,p=u&&u>l?u-l:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const i=t+y9,s=r;r=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},oft=e=>e.endsWith(g9)?e.substring(0,e.length-1):e.startsWith(g9)?e.substring(1):e,aft=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},lft=e=>({cache:rft(e.cacheSize),parseClassName:sft(e),sortModifiers:aft(e),...Qht(e)}),uft=/\s+/,cft=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(uft);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:w}=n(c);if(d){l=c+(l.length>0?" "+l:l);continue}let E=!!w,S=r(E?b.substring(0,w):b);if(!S){if(!E){l=c+(l.length>0?" "+l:l);continue}if(S=r(b),!S){l=c+(l.length>0?" "+l:l);continue}E=!1}const k=s(f).join(":"),A=p?k+g9:k,P=A+S;if(o.includes(P))continue;o.push(P);const M=i(S,E);for(let F=0;F<M.length;++F){const I=M[F];o.push(A+I)}l=c+(l.length>0?" "+l:l)}return l};function dft(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Bpe(t))&&(r&&(r+=" "),r+=n);return r}const Bpe=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bpe(e[r]))&&(n&&(n+=" "),n+=t);return n};function hft(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=lft(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=cft(l,n);return i(l,c),c}return function(){return s(dft.apply(null,arguments))}}const Li=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},$pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zpe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fft=/^\d+\/\d+$/,pft=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mft=/\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$/,gft=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yft=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bft=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ry=e=>fft.test(e),gn=e=>!!e&&!Number.isNaN(Number(e)),wp=e=>!!e&&Number.isInteger(Number(e)),qX=e=>e.endsWith("%")&&gn(e.slice(0,-1)),Eh=e=>pft.test(e),vft=()=>!0,xft=e=>mft.test(e)&&!gft.test(e),D7=()=>!1,wft=e=>yft.test(e),Sft=e=>bft.test(e),Cft=e=>!At(e)&&!_t(e),Eft=e=>Nb(e,Upe,D7),At=e=>$pe.test(e),Sp=e=>Nb(e,qpe,xft),P6=e=>Nb(e,Rft,gn),Dft=e=>Nb(e,Hpe,D7),kft=e=>Nb(e,Vpe,Sft),Aft=e=>Nb(e,D7,wft),_t=e=>zpe.test(e),eD=e=>Pb(e,qpe),_ft=e=>Pb(e,Ift),Tft=e=>Pb(e,Hpe),Nft=e=>Pb(e,Upe),Pft=e=>Pb(e,Vpe),Fft=e=>Pb(e,jft,!0),Nb=(e,t,n)=>{const r=$pe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Pb=(e,t,n=!1)=>{const r=zpe.exec(e);return r?r[1]?t(r[1]):n:!1},Hpe=e=>e==="position",Mft=new Set(["image","url"]),Vpe=e=>Mft.has(e),Oft=new Set(["length","size","percentage"]),Upe=e=>Oft.has(e),qpe=e=>e==="length",Rft=e=>e==="number",Ift=e=>e==="family-name",jft=e=>e==="shadow",Lft=()=>{const e=Li("color"),t=Li("font"),n=Li("text"),r=Li("font-weight"),i=Li("tracking"),s=Li("leading"),o=Li("breakpoint"),a=Li("container"),l=Li("spacing"),u=Li("radius"),c=Li("shadow"),d=Li("inset-shadow"),f=Li("drop-shadow"),p=Li("blur"),b=Li("perspective"),w=Li("aspect"),E=Li("ease"),S=Li("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],F=()=>[_t,At,l],I=()=>[ry,"full","auto",...F()],j=()=>[wp,"none","subgrid",_t,At],B=()=>["auto",{span:["full",wp,_t,At]},_t,At],L=()=>[wp,"auto",_t,At],z=()=>["auto","min","max","fr",_t,At],Y=()=>["start","end","center","between","around","evenly","stretch","baseline"],Q=()=>["start","end","center","stretch"],$=()=>["auto",...F()],J=()=>[ry,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],H=()=>[e,_t,At],q=()=>[qX,Sp],W=()=>["","none","full",u,_t,At],K=()=>["",gn,eD,Sp],V=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["","none",p,_t,At],U=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_t,At],te=()=>["none",gn,_t,At],se=()=>["none",gn,_t,At],ue=()=>[gn,_t,At],ie=()=>[ry,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Eh],breakpoint:[Eh],color:[vft],container:[Eh],"drop-shadow":[Eh],ease:["in","out","in-out"],font:[Cft],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Eh],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Eh],shadow:[Eh],spacing:["px",gn],text:[Eh],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ry,At,_t,w]}],container:["container"],columns:[{columns:[gn,At,_t,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:[...A(),At,_t]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[wp,"auto",_t,At]}],basis:[{basis:[ry,"full","auto",a,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[gn,ry,"auto","initial","none",At]}],grow:[{grow:["",gn,_t,At]}],shrink:[{shrink:["",gn,_t,At]}],order:[{order:[wp,"first","last","none",_t,At]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...Q(),"baseline"]}],"align-self":[{self:["auto",...Q(),"baseline"]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[a,"screen",...J()]}],"min-w":[{"min-w":[a,"screen","none",...J()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,eD,Sp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_t,P6]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qX,At]}],"font-family":[{font:[_ft,At,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,_t,At]}],"line-clamp":[{"line-clamp":[gn,"none",_t,P6]}],leading:[{leading:[s,...F()]}],"list-image":[{"list-image":["none",_t,At]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_t,At]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[gn,"from-font","auto",_t,Sp]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[gn,"auto",_t,At]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_t,At]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_t,At]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),Tft,Dft]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Nft,Eft]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wp,_t,At],radial:["",_t,At],conic:[wp,_t,At]},Pft,kft]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[gn,_t,At]}],"outline-w":[{outline:["",gn,eD,Sp]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",c,Fft,Aft]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",_t,At,d]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[gn,Sp]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":H()}],opacity:[{opacity:[gn,_t,At]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none",_t,At]}],blur:[{blur:re()}],brightness:[{brightness:[gn,_t,At]}],contrast:[{contrast:[gn,_t,At]}],"drop-shadow":[{"drop-shadow":["","none",f,_t,At]}],grayscale:[{grayscale:["",gn,_t,At]}],"hue-rotate":[{"hue-rotate":[gn,_t,At]}],invert:[{invert:["",gn,_t,At]}],saturate:[{saturate:[gn,_t,At]}],sepia:[{sepia:["",gn,_t,At]}],"backdrop-filter":[{"backdrop-filter":["","none",_t,At]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[gn,_t,At]}],"backdrop-contrast":[{"backdrop-contrast":[gn,_t,At]}],"backdrop-grayscale":[{"backdrop-grayscale":["",gn,_t,At]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[gn,_t,At]}],"backdrop-invert":[{"backdrop-invert":["",gn,_t,At]}],"backdrop-opacity":[{"backdrop-opacity":[gn,_t,At]}],"backdrop-saturate":[{"backdrop-saturate":[gn,_t,At]}],"backdrop-sepia":[{"backdrop-sepia":["",gn,_t,At]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_t,At]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[gn,"initial",_t,At]}],ease:[{ease:["linear","initial",E,_t,At]}],delay:[{delay:[gn,_t,At]}],animate:[{animate:["none",S,_t,At]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,_t,At]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[_t,At,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"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",_t,At]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",_t,At]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[gn,eD,Sp,P6]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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-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-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"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Bft=hft(Lft);function Ke(...e){return Bft(lr(e))}const ZD=Tb("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Oo=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?Zs:"button";return y.jsx(o,{className:Ke(ZD({variant:t,size:n,className:e})),ref:s,...i})});Oo.displayName="Button";const k7=WR,XT=GR,ZT=YR,xS=_.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Rre,{children:y.jsx($w,{ref:r,sideOffset:t,className:Ke("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));xS.displayName=$w.displayName;const fw=_.forwardRef(({children:e,tooltip:t,side:n="bottom",className:r,...i},s)=>y.jsx(k7,{children:y.jsxs(XT,{children:[y.jsx(ZT,{asChild:!0,children:y.jsxs(Oo,{variant:"ghost",size:"icon",...i,className:Ke("size-6 p-1",r),ref:s,children:[e,y.jsx("span",{className:"sr-only",children:t})]})}),y.jsx(xS,{side:n,children:t})]})}));fw.displayName="TooltipIconButton";const Wpe=_.forwardRef(({className:e,...t},n)=>y.jsx(vse,{ref:n,className:Ke("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Wpe.displayName=vse.displayName;const $ft=_.forwardRef(({className:e,...t},n)=>y.jsx(xse,{ref:n,className:Ke("aspect-square h-full w-full",e),...t}));$ft.displayName=xse.displayName;const Gpe=_.forwardRef(({className:e,...t},n)=>y.jsx(wse,{ref:n,className:Ke("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Gpe.displayName=wse.displayName;const zft=({alt:e,src:t,...n})=>{const[r,i]=_.useState(!1);return _.useEffect(()=>{i(!1)},[t]),r||!t?y.jsxs("div",{children:[y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",width:"150",height:"150",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),y.jsx("p",{className:"text-xs italic text-muted-foreground -mt-[0.625rem] mb-[0.625rem]",children:"Image link is broken"})]}):y.jsx("img",{src:t,alt:e,...n,onError:()=>{i(!0)}})},Hft=v$e({style:hze.coldarkDark,customStyle:{margin:0,backgroundColor:"black"}}),Vft=()=>y.jsx(F7e,{remarkPlugins:[Ooe],className:"aui-md",components:Gft}),Uft=_.memo(Vft),qft=({language:e,code:t})=>{const{isCopied:n,copyToClipboard:r}=Wft(),i=()=>{!t||n||r(t)};return y.jsxs("div",{style:{background:"hsl(0 0% 100% / 0.06)",borderTopRightRadius:"0.5rem",borderTopLeftRadius:"0.5rem",marginTop:"0.5rem",border:"1px solid hsl(0 0% 20.4%)",borderBottom:"none"},className:"flex items-center justify-between gap-4 px-4 py-2 text-sm font-semibold text-white",children:[y.jsx("span",{className:"lowercase [&>span]:text-xs",children:e}),y.jsx(fw,{tooltip:"Copy",onClick:i,children:y.jsxs("span",{className:"grid",children:[y.jsx("span",{style:{gridArea:"1/1"},className:Ke("transition-transform",n?"scale-100":"scale-0"),children:y.jsx(rg,{size:14})},"checkmark"),y.jsx("span",{style:{gridArea:"1/1"},className:Ke("transition-transform",n?"scale-0":"scale-100"),children:y.jsx(Gw,{size:14})},"copy")]})})]})},Wft=({copiedDuration:e=1500}={})=>{const[t,n]=_.useState(!1);return{isCopied:t,copyToClipboard:i=>{i&&navigator.clipboard.writeText(i).then(()=>{n(!0),setTimeout(()=>n(!1),e)})}}},Gft=w7e({h1:({className:e,...t})=>y.jsx("h1",{className:Ke("mb-8 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0",e),...t,style:{marginBottom:"2rem"}}),h2:({className:e,...t})=>y.jsx("h2",{className:Ke("mb-4 mt-8 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"2rem"}}),h3:({className:e,...t})=>y.jsx("h3",{className:Ke("scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h4:({className:e,...t})=>y.jsx("h4",{className:Ke("scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h5:({className:e,...t})=>y.jsx("h5",{className:Ke("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),h6:({className:e,...t})=>y.jsx("h6",{className:Ke("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),p:({className:e,...t})=>y.jsx("p",{className:Ke("leading-7 first:mt-0 last:mb-0",e),...t}),a:({className:e,...t})=>y.jsx("a",{className:Ke("text-primary font-medium underline underline-offset-4",e),...t}),blockquote:({className:e,...t})=>y.jsx("blockquote",{className:Ke("border-l-2 pl-6 italic",e),...t}),ul:({className:e,...t})=>y.jsx("ul",{className:Ke("my-5 ml-6 list-disc [&>li]:mt-2",e),...t}),ol:({className:e,...t})=>y.jsx("ol",{className:Ke("my-5 ml-6 list-decimal [&>li]:mt-2",e),...t}),hr:({className:e,...t})=>y.jsx("hr",{className:Ke("my-5 border-b",e),...t}),table:({className:e,...t})=>y.jsx("table",{className:Ke("my-5 w-full border-separate border-spacing-0 overflow-y-auto",e),...t}),th:({className:e,...t})=>y.jsx("th",{className:Ke("bg-muted px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),td:({className:e,...t})=>y.jsx("td",{className:Ke("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),tr:({className:e,...t})=>y.jsx("tr",{className:Ke("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",e),...t}),sup:({className:e,...t})=>y.jsx("sup",{className:Ke("[&>a]:text-xs [&>a]:no-underline",e),...t}),pre:({className:e,...t})=>y.jsx("pre",{...t,style:{borderBottomRightRadius:"0.5rem",borderBottomLeftRadius:"0.5rem",background:"transparent",fontSize:"0.875rem",marginBottom:"0.5rem",border:"1px solid hsl(0 0% 20.4%)"},className:Ke("overflow-x-auto p-4 text-white",e)}),code:function({className:t,...n}){const r=uoe();return y.jsxs("pre",{style:{fontSize:"0.875rem",display:"inline"},children:[y.jsx("code",{className:Ke(!r&&"bg-muted rounded border font-semibold",t),...n,style:{fontWeight:"400",paddingBlock:r?0:"0.1em",paddingInline:r?0:"0.3em"}})," "]})},CodeHeader:qft,SyntaxHighlighter:Hft,img:zft}),Yft={sm:"[&>svg]:h-icon-sm [&>svg]:w-icon-sm",default:"[&>svg]:h-icon-default [&>svg]:w-icon-default",lg:"[&>svg]:h-icon-lg [&>svg]:w-icon-lg"},Ht=({children:e,className:t,size:n="default",...r})=>y.jsx("span",{className:lr("block",Yft[n],t),...r,children:e}),WX={default:"text-icon3",success:"text-accent1",error:"text-accent2",info:"text-accent3"},Tr=({icon:e,variant:t="default",className:n,children:r,...i})=>y.jsxs("div",{className:lr("bg-surface4 text-ui-sm gap-md h-badge-default inline-flex items-center rounded-md",e?"pl-md pr-1.5":"px-1.5",e||t==="default"?"text-icon5":WX[t],n),...i,children:[e&&y.jsx("span",{className:WX[t],children:y.jsx(Ht,{children:e})}),r]}),Fb=e=>y.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 15C10.3565 15 12.137 14.2625 13.4497 12.9497C14.7625 11.637 15.5 9.85652 15.5 8C15.5 6.14348 14.7625 4.36301 13.4497 3.05025C12.137 1.7375 10.3565 1 8.5 1C6.64348 1 4.86301 1.7375 3.55025 3.05025C2.2375 4.36301 1.5 6.14348 1.5 8C1.5 9.85652 2.2375 11.637 3.55025 12.9497C4.86301 14.2625 6.64348 15 8.5 15ZM5.621 10.879L4.611 11.889C3.84179 11.1198 3.31794 10.1398 3.1057 9.07291C2.89346 8.00601 3.00236 6.90013 3.41864 5.89512C3.83491 4.89012 4.53986 4.03112 5.44434 3.42676C6.34881 2.8224 7.41219 2.49983 8.5 2.49983C9.58781 2.49983 10.6512 2.8224 11.5557 3.42676C12.4601 4.03112 13.1651 4.89012 13.5814 5.89512C13.9976 6.90013 14.1065 8.00601 13.8943 9.07291C13.6821 10.1398 13.1582 11.1198 12.389 11.889L11.379 10.879C11.1004 10.6003 10.7696 10.3792 10.4055 10.2284C10.0414 10.0776 9.6511 9.99995 9.257 10H7.743C7.3489 9.99995 6.95865 10.0776 6.59455 10.2284C6.23045 10.3792 5.89963 10.6003 5.621 10.879Z",fill:"currentColor"}),y.jsx("path",{d:"M8.5 4C7.96957 4 7.46086 4.21071 7.08579 4.58579C6.71071 4.96086 6.5 5.46957 6.5 6V6.5C6.5 7.03043 6.71071 7.53914 7.08579 7.91421C7.46086 8.28929 7.96957 8.5 8.5 8.5C9.03043 8.5 9.53914 8.28929 9.91421 7.91421C10.2893 7.53914 10.5 7.03043 10.5 6.5V6C10.5 5.46957 10.2893 4.96086 9.91421 4.58579C9.53914 4.21071 9.03043 4 8.5 4Z",fill:"currentColor"})]}),Ype=e=>y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.97865 4.57004C8.22604 4.75795 8.27426 5.11082 8.08635 5.35821L6.05486 8.03279C5.94873 8.17251 5.78348 8.25471 5.60803 8.25505C5.43257 8.2554 5.267 8.17385 5.16032 8.03454L3.80937 6.27034C3.6205 6.02369 3.66733 5.67063 3.91398 5.48176C4.16063 5.29288 4.51369 5.33972 4.70257 5.58637L5.6051 6.76498L7.19048 4.67774C7.37839 4.43036 7.73126 4.38213 7.97865 4.57004Z",fill:"currentColor"})]}),Kft=e=>y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M4.60059 6.30005L8.00098 9.70005L11.3996 6.30142",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})}),Kpe=e=>y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.89741 4.10293C8.11707 4.32261 8.11706 4.67877 7.89738 4.89843L6.79517 6.00058L7.8962 7.10155C8.11588 7.32122 8.11589 7.67737 7.89623 7.89705C7.67656 8.11673 7.32041 8.11674 7.10073 7.89707L5.99965 6.79605L4.89856 7.89707C4.67889 8.11673 4.32273 8.11672 4.10307 7.89704C3.88341 7.67737 3.88342 7.32121 4.10309 7.10155L5.20413 6.00058L4.10191 4.89843C3.88224 4.67877 3.88223 4.32262 4.10189 4.10294C4.32155 3.88326 4.67771 3.88325 4.89738 4.10292L5.99965 5.20511L7.10191 4.10291C7.32159 3.88325 7.67774 3.88326 7.89741 4.10293Z",fill:"currentColor"})]}),Xft=e=>y.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.941406 2.831V3.75745C0.941406 4.27885 1.35491 4.76002 2.05273 5.14711C2.10389 5.17549 2.15658 5.20337 2.21074 5.23071C3.23028 5.74546 4.77322 6.07356 6.50007 6.07356C8.31866 6.07356 9.93328 5.70967 10.9474 5.14711C11.6453 4.76002 12.0587 4.27886 12.0587 3.75745V2.831C12.0587 1.55185 9.57003 0.514893 6.50007 0.514893C3.4301 0.514893 0.941406 1.55185 0.941406 2.831ZM1.02052 6.14518C0.968505 6.27247 0.941406 6.40331 0.941406 6.53678V7.46322C0.941406 7.98463 1.35491 8.46579 2.05273 8.85289C3.06686 9.41542 4.68148 9.77933 6.50007 9.77933C8.22692 9.77933 9.76986 9.45128 10.7894 8.93645C10.8436 8.90912 10.8962 8.88124 10.9474 8.85289C11.6453 8.46579 12.0587 7.98462 12.0587 7.46322V6.53678C12.0587 6.40331 12.0316 6.27248 11.9796 6.14519C11.664 6.35469 11.3187 6.53063 10.9652 6.67795C9.75207 7.18337 8.17267 7.46322 6.50007 7.46322C4.82747 7.46322 3.24803 7.18337 2.03502 6.67795C1.68142 6.53063 1.3362 6.35469 1.02052 6.14518ZM1.02052 9.85095C0.968505 9.97824 0.941406 10.1091 0.941406 10.2426V11.169C0.941406 12.4481 3.4301 13.4851 6.50007 13.4851C9.57003 13.4851 12.0587 12.4481 12.0587 11.169V10.2426C12.0587 10.1091 12.0316 9.97824 11.9796 9.85095C11.664 10.0605 11.3187 10.2364 10.9652 10.3837C9.75207 10.8891 8.17267 11.169 6.50007 11.169C4.82747 11.169 3.24803 10.8891 2.03502 10.3837C1.68142 10.2364 1.3362 10.0605 1.02052 9.85095Z",fill:"currentColor"})}),Zft=e=>y.jsxs("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M6.83531 7.0062C6.64515 7.35069 6.15 7.35069 5.95984 7.0062L2.99029 1.62664C2.7855 1.25565 3.10614 0.814077 3.5223 0.893977L6.30195 1.42765C6.36421 1.43961 6.42818 1.43961 6.49044 1.42766L9.27301 0.893806C9.68915 0.813965 10.0097 1.25552 9.80495 1.62648L6.83531 7.0062Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77553 6.93249C4.70399 6.80288 4.52254 6.79459 4.4558 6.92674C4.30167 7.23196 4.21484 7.57697 4.21484 7.94226C4.21484 9.18814 5.22483 10.1981 6.4707 10.1981C7.71658 10.1981 8.72656 9.18814 8.72656 7.94226C8.72656 7.51818 8.60954 7.12143 8.40603 6.78254C8.33262 6.66031 8.15949 6.67411 8.09059 6.79894L7.70941 7.48947C7.13892 8.52294 5.65347 8.52293 5.08299 7.48947L4.77553 6.93249ZM5.56313 5.8764C5.46196 5.92091 5.42707 6.04354 5.48048 6.1403L5.95846 7.0062C6.14862 7.35069 6.64377 7.35069 6.83393 7.0062L7.33905 6.09115C7.39467 5.99039 7.35417 5.86275 7.2461 5.8232C7.00431 5.7347 6.74315 5.6864 6.4707 5.6864C6.14785 5.6864 5.84083 5.75423 5.56313 5.8764Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.01974 3.49407C4.17993 3.78426 4.54405 3.88541 4.85312 3.76562C5.35484 3.57118 5.90031 3.46453 6.4707 3.46453C7.0005 3.46453 7.50881 3.55654 7.98052 3.72545C8.28711 3.83523 8.64168 3.73133 8.79906 3.44623C8.96234 3.15043 8.85109 2.77497 8.5364 2.652C7.89621 2.40184 7.19949 2.26453 6.4707 2.26453C5.69013 2.26453 4.94634 2.42205 4.2694 2.70703C3.96395 2.83562 3.85958 3.20392 4.01974 3.49407ZM9.9461 4.47216C9.81565 4.70848 9.85645 4.99948 10.0211 5.21339C10.6026 5.96887 10.9484 6.91518 10.9484 7.94226C10.9484 10.4152 8.94369 12.42 6.4707 12.42C3.99772 12.42 1.99297 10.4152 1.99297 7.94226C1.99297 6.96004 2.30923 6.05168 2.84547 5.31345C3.0006 5.09989 3.03605 4.81591 2.90848 4.58482C2.70986 4.22501 2.22216 4.15342 1.97124 4.47893C1.2324 5.43738 0.792968 6.6385 0.792968 7.94226C0.792969 11.078 3.33498 13.62 6.4707 13.62C9.60643 13.62 12.1484 11.078 12.1484 7.94226C12.1484 6.58193 11.67 5.33333 10.8723 4.35553C10.6173 4.04298 10.141 4.11901 9.9461 4.47216Z",fill:"currentColor"})]}),Jft=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M8.5 3V13",stroke:"currentColor",strokeWidth:"0.5"})}),Qft=e=>y.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("g",{clipPath:"url(#clip0_21999_22095)",children:y.jsx("path",{d:"M7.5 0.75C3.6325 0.75 0.5 3.8825 0.5 7.75C0.5 10.8475 2.50375 13.4637 5.28625 14.3912C5.63625 14.4525 5.7675 14.2425 5.7675 14.0587C5.7675 13.8925 5.75875 13.3412 5.75875 12.755C4 13.0787 3.545 12.3262 3.405 11.9325C3.32625 11.7312 2.985 11.11 2.6875 10.9437C2.4425 10.8125 2.0925 10.4887 2.67875 10.48C3.23 10.4712 3.62375 10.9875 3.755 11.1975C4.385 12.2562 5.39125 11.9587 5.79375 11.775C5.855 11.32 6.03875 11.0137 6.24 10.8387C4.6825 10.6637 3.055 10.06 3.055 7.3825C3.055 6.62125 3.32625 5.99125 3.7725 5.50125C3.7025 5.32625 3.4575 4.60875 3.8425 3.64625C3.8425 3.64625 4.42875 3.4625 5.7675 4.36375C6.3275 4.20625 6.9225 4.1275 7.5175 4.1275C8.1125 4.1275 8.7075 4.20625 9.2675 4.36375C10.6062 3.45375 11.1925 3.64625 11.1925 3.64625C11.5775 4.60875 11.3325 5.32625 11.2625 5.50125C11.7087 5.99125 11.98 6.6125 11.98 7.3825C11.98 10.0687 10.3438 10.6637 8.78625 10.8387C9.04 11.0575 9.25875 11.4775 9.25875 12.1337C9.25875 13.07 9.25 13.8225 9.25 14.0587C9.25 14.2425 9.38125 14.4612 9.73125 14.3912C11.1209 13.9221 12.3284 13.029 13.1839 11.8377C14.0393 10.6463 14.4996 9.21668 14.5 7.75C14.5 3.8825 11.3675 0.75 7.5 0.75Z",fill:"currentColor"})}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_21999_22095",children:y.jsx("rect",{width:"14",height:"14",fill:"currentColor",transform:"translate(0.5 0.75)"})})})]}),ept=e=>y.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M7.07303 7.39921C6.65882 7.39921 6.32303 7.735 6.32303 8.14921C6.32303 8.56343 6.65882 8.89921 7.07303 8.89921H7.75V10.6187C7.75 11.0329 8.08579 11.3687 8.5 11.3687C8.91421 11.3687 9.25 11.0329 9.25 10.6187V8.14921C9.25 7.735 8.91421 7.39921 8.5 7.39921H7.07303Z",fill:"currentColor"}),y.jsx("path",{d:"M8.50309 4.72995C7.9971 4.72995 7.58691 5.14014 7.58691 5.64613C7.58691 6.15212 7.9971 6.56231 8.50309 6.56231C9.00908 6.56231 9.41927 6.15212 9.41927 5.64613C9.41927 5.14014 9.00908 4.72995 8.50309 4.72995Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.75293C5.04984 1.75293 2.25293 4.54984 2.25293 8C2.25293 11.4502 5.04984 14.2471 8.5 14.2471C11.9502 14.2471 14.7471 11.4502 14.7471 8C14.7471 4.54984 11.9502 1.75293 8.5 1.75293ZM3.75293 8C3.75293 5.37827 5.87827 3.25293 8.5 3.25293C11.1218 3.25293 13.2471 5.37826 13.2471 8C13.2471 10.6218 11.1218 12.7471 8.5 12.7471C5.87826 12.7471 3.75293 10.6218 3.75293 8Z",fill:"currentColor"})]}),Xpe=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M3.8674 9.19968L4.14554 10.8649C4.23965 11.4283 4.75254 11.8237 5.32137 11.7713L5.58252 11.7472C6.56555 11.6567 7.43309 12.3868 7.51181 13.3708L7.59308 14.3867C7.60422 14.5259 7.71868 14.6342 7.85825 14.6376L9.91053 14.6876C10.1066 14.6924 10.2434 14.4948 10.17 14.3129L8.90452 11.1782C8.80956 10.9429 8.65085 10.7389 8.44626 10.5889L7.90134 10.1895C7.70604 10.0464 7.55223 9.85411 7.45759 9.63124C7.15011 8.90712 6.6579 7.71234 6.37054 6.88944C6.19204 6.3783 5.79931 6.29158 5.45492 6.21553C4.98179 6.11106 4.5999 6.02673 4.99001 4.88985C5.66408 2.92541 8.06015 2.07904 10.6601 3.33088C12.6488 4.2884 13.1187 6.35416 13.0328 7.58237C13.0297 7.62768 13.0214 7.67186 13.0094 7.71566C12.8829 8.17534 12.368 8.40491 11.9415 8.19169L10.3022 7.37201C10.2069 7.32439 10.0927 7.33657 10.0096 7.40322L8.64809 8.49559C8.55405 8.57104 8.52072 8.69931 8.56615 8.811L10.8995 14.5478C10.9404 14.6483 11.0369 14.715 11.1454 14.7177L12.0572 14.7399C12.2581 14.7448 12.3951 14.5382 12.3124 14.3551L11.8681 13.3706C11.4211 12.3803 11.6047 11.2192 12.3354 10.4151L13.4616 9.17575C13.7473 8.86125 13.9224 8.46187 13.9599 8.03858L13.9763 7.85359C14.2866 4.35298 11.377 1.41272 7.87336 1.68639C6.03919 1.82965 4.45399 3.02228 3.80807 4.74492L3.70275 5.02579C3.5828 5.34571 3.62741 5.70411 3.82213 5.98485L3.88946 6.08192C4.12183 6.41695 4.0958 6.86726 3.82637 7.17328L3.06705 8.03572C2.96261 8.15435 2.98058 8.33664 3.10617 8.43259L3.66059 8.85617C3.77064 8.94026 3.84458 9.06307 3.8674 9.19968Z",fill:"currentColor"})}),tpt=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12V11C3 10.6022 3.15804 10.2206 3.43934 9.93934C3.72064 9.65804 4.10218 9.5 4.5 9.5C4.89782 9.5 5.27936 9.65804 5.56066 9.93934C5.84196 10.2206 6 10.6022 6 11V12C6 12.3978 5.84196 12.7794 5.56066 13.0607C5.27936 13.342 4.89782 13.5 4.5 13.5C4.10218 13.5 3.72064 13.342 3.43934 13.0607C3.15804 12.7794 3 12.3978 3 12ZM7 12V8.5C7 8.10218 7.15804 7.72064 7.43934 7.43934C7.72064 7.15804 8.10218 7 8.5 7C8.89782 7 9.27936 7.15804 9.56066 7.43934C9.84196 7.72064 10 8.10218 10 8.5V12C10 12.3978 9.84196 12.7794 9.56066 13.0607C9.27936 13.342 8.89782 13.5 8.5 13.5C8.10218 13.5 7.72064 13.342 7.43934 13.0607C7.15804 12.7794 7 12.3978 7 12ZM11 12V4C11 3.60218 11.158 3.22064 11.4393 2.93934C11.7206 2.65804 12.1022 2.5 12.5 2.5C12.8978 2.5 13.2794 2.65804 13.5607 2.93934C13.842 3.22064 14 3.60218 14 4V12C14 12.3978 13.842 12.7794 13.5607 13.0607C13.2794 13.342 12.8978 13.5 12.5 13.5C12.1022 13.5 11.7206 13.342 11.4393 13.0607C11.158 12.7794 11 12.3978 11 12Z",fill:"currentColor"})}),npt=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M5.25684 12.6387L10.4003 3.36133H11.7432L6.5997 12.6387H5.25684Z",fill:"currentColor"})}),Vf=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5605 1.42351C8.0791 0.904904 8.92215 0.906157 9.4395 1.42351L10.6922 2.67617C11.2108 3.19477 11.2095 4.03782 10.6922 4.55517L9.4395 5.80783C8.9209 6.32643 8.07785 6.32518 7.5605 5.80783L6.30784 4.55517C5.78923 4.03656 5.79049 3.19352 6.30784 2.67617L7.5605 1.42351ZM3.17618 5.80783C3.69478 5.28923 4.53782 5.29048 5.05517 5.80783L6.30784 7.0605C6.82644 7.5791 6.82519 8.42214 6.30784 8.93949L5.05517 10.1922C4.53657 10.7108 3.69353 10.7095 3.17618 10.1922L1.92351 8.93949C1.40491 8.42089 1.40616 7.57785 1.92351 7.0605L3.17618 5.80783ZM11.9448 5.80783C12.4634 5.28923 13.3065 5.29048 13.8238 5.80783L15.0765 7.0605C15.5951 7.5791 15.5938 8.42214 15.0765 8.93949L13.8238 10.1922C13.3052 10.7108 12.4622 10.7095 11.9448 10.1922L10.6922 8.93949C10.1736 8.42089 10.1748 7.57785 10.6922 7.0605L11.9448 5.80783ZM7.5605 10.1922C8.0791 9.67355 8.92215 9.67481 9.4395 10.1922L10.6922 11.4448C11.2108 11.9634 11.2095 12.8065 10.6922 13.3238L9.4395 14.5765C8.9209 15.0951 8.07785 15.0938 7.5605 14.5765L6.30784 13.3238C5.78923 12.8052 5.79049 11.9622 6.30784 11.4448L7.5605 10.1922Z",fill:"currentColor"})}),b9=e=>y.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M3.0498 3.17139V7.95137M6.91346 12.8737L4.04984 12.8738C3.49754 12.8738 3.0498 12.4261 3.0498 11.8738V7.95137M3.0498 7.95137L6.85968 7.95125",stroke:"currentColor",strokeLinecap:"round"}),y.jsx("path",{d:"M6.59668 3.12631L13.9507 3.12631",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),y.jsx("path",{d:"M10.293 7.95099L13.8072 7.95099",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),y.jsx("path",{d:"M10.293 12.8025L13.8072 12.8025",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),wS=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24388 2.4018C6.24388 2.0394 6.53767 1.74561 6.90008 1.74561H10.0991C10.4614 1.74561 10.7553 2.0394 10.7553 2.4018V4.57546C10.7553 4.93787 10.4614 5.23166 10.0991 5.23166H9.31982V7.35469L10.0033 9.22664C9.90442 9.20146 9.80035 9.1761 9.6915 9.14986L9.62652 9.13422C9.30473 9.05687 8.92256 8.96501 8.61993 8.84491C8.5819 8.82981 8.54147 8.81292 8.49957 8.79391C8.45767 8.81292 8.41724 8.82981 8.3792 8.84491C8.07657 8.96501 7.6944 9.05687 7.37261 9.13422L7.30763 9.14986C7.19879 9.1761 7.09471 9.20146 6.99577 9.22664L7.67932 7.35469V5.23166H6.90008C6.53767 5.23166 6.24388 4.93787 6.24388 4.57546V2.4018ZM6.99577 9.22664C6.99577 9.22664 6.99578 9.22664 6.99577 9.22664L6.43283 10.7683H6.81806C7.18047 10.7683 7.47426 11.0622 7.47426 11.4245V13.5982C7.47426 13.9606 7.18047 14.2544 6.81806 14.2544H3.61909C3.25668 14.2544 2.96289 13.9606 2.96289 13.5982V11.4245C2.96289 11.0622 3.25668 10.7683 3.61909 10.7683H4.26617C4.2921 10.4663 4.32783 10.1494 4.37744 9.85171C4.43762 9.49063 4.52982 9.08135 4.68998 8.76102C4.93975 8.2615 5.44743 8.01751 5.7771 7.88788C6.14684 7.74249 6.57537 7.63889 6.92317 7.55505C7.24707 7.47696 7.49576 7.41679 7.67932 7.35469L6.99577 9.22664ZM6.43283 10.7683L6.99577 9.22664C6.75846 9.28705 6.55067 9.34646 6.37745 9.41458C6.22784 9.47341 6.1623 9.51712 6.14023 9.53254C6.09752 9.63631 6.04409 9.83055 5.99562 10.1214C5.96201 10.3231 5.93498 10.5439 5.91341 10.7683H6.43283ZM10.0033 9.22664L9.31982 7.35469C9.50338 7.41679 9.75206 7.47696 10.076 7.55505C10.4238 7.63889 10.8523 7.74249 11.2221 7.88788C11.5517 8.01751 12.0594 8.2615 12.3091 8.76102C12.4693 9.08135 12.5615 9.49063 12.6217 9.85171C12.6713 10.1494 12.707 10.4663 12.733 10.7683H13.38C13.7424 10.7683 14.0362 11.0622 14.0362 11.4245V13.5982C14.0362 13.9606 13.7424 14.2544 13.38 14.2544H10.1811C9.81867 14.2544 9.52488 13.9606 9.52488 13.5982V11.4245C9.52488 11.0622 9.81867 10.7683 10.1811 10.7683H10.5663L10.0033 9.22664ZM10.0033 9.22664L10.5663 10.7683H11.0857C11.0642 10.5439 11.0372 10.3231 11.0035 10.1214C10.9551 9.83055 10.9016 9.63631 10.8589 9.53254C10.8369 9.51712 10.7713 9.47341 10.6217 9.41458C10.4485 9.34646 10.2407 9.28705 10.0033 9.22664Z",fill:"currentColor"})}),rpt=e=>y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M2.0625 5.99976C2.0625 3.82513 3.82538 2.06226 6 2.06226C6.58712 2.06226 7.14423 2.19076 7.64473 2.42117V1.21042C7.12905 1.03337 6.57575 0.937256 6 0.937256C3.20406 0.937256 0.9375 3.20381 0.9375 5.99976C0.9375 8.7957 3.20406 11.0623 6 11.0623C8.79594 11.0623 11.0625 8.7957 11.0625 5.99976H9.9375C9.9375 8.17438 8.17462 9.93726 6 9.93726C3.82538 9.93726 2.0625 8.17438 2.0625 5.99976Z",fill:"currentColor"}),y.jsx("path",{d:"M9.28577 4.3986C9.08709 4.3986 8.92603 4.23753 8.92603 4.03885V0.978563C8.92603 0.681899 9.16652 0.441406 9.46318 0.441406C9.75985 0.441406 10.0003 0.6819 10.0003 0.978564V3.25858C10.0003 3.33638 10.0634 3.39944 10.1412 3.39944H11.2091C11.485 3.39944 11.7087 3.62311 11.7087 3.89902C11.7087 4.17493 11.485 4.3986 11.2091 4.3986H9.28577Z",fill:"currentColor"}),y.jsx("path",{d:"M6.57568 3.69244C6.57568 3.38178 6.32384 3.12994 6.01318 3.12994C5.70252 3.12994 5.45068 3.38178 5.45068 3.69244V6.22272L6.7242 7.88675C6.91301 8.13346 7.26606 8.18039 7.51276 7.99159C7.75946 7.80278 7.8064 7.44973 7.61759 7.20303L6.57568 5.84162V3.69244Z",fill:"currentColor"})]}),A7=e=>y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M6.53918 9.32122C6.34324 9.51508 6.02724 9.51338 5.83338 9.31744C5.63952 9.1215 5.6412 8.80551 5.83713 8.61164L10.1958 4.29931C10.7996 3.70186 10.8017 2.72852 10.2041 2.12839L10.1899 2.11428C9.58767 1.52481 8.62251 1.53208 8.0292 2.13052L2.29396 7.91536C2.0999 8.1111 1.78388 8.11246 1.58813 7.9184C1.39239 7.72433 1.39103 7.40831 1.58509 7.21257L7.32036 1.42774C8.30005 0.439581 9.89369 0.427613 10.8881 1.40094L10.9116 1.42425C11.4942 2.00929 11.7316 2.80913 11.6232 3.56922C12.389 3.44866 13.1999 3.67918 13.7961 4.26273C14.804 5.24929 14.8147 6.86824 13.82 7.86808L8.5531 13.1619C8.50045 13.2148 8.50024 13.3002 8.55263 13.3534L9.65448 14.4717C9.84794 14.668 9.8456 14.984 9.64925 15.1775C9.45291 15.3709 9.13691 15.3686 8.94345 15.1723L7.84163 14.054C7.40505 13.6109 7.40677 12.8988 7.8455 12.4579L13.1124 7.16405C13.7161 6.55727 13.7095 5.57478 13.0979 4.97606C12.4925 4.38347 11.4942 4.40725 10.8978 5.00886L6.53918 9.32122Z",fill:"currentColor"}),y.jsx("path",{d:"M8.84622 2.75411C9.04697 2.56188 9.36555 2.56381 9.56395 2.76076C9.76234 2.95771 9.76658 3.27625 9.57582 3.4784L9.56661 3.48794L5.25912 7.82701C4.67023 8.42022 4.672 9.37798 5.26305 9.96904C5.85624 10.5622 6.81818 10.5615 7.41052 9.9675L11.6299 5.73599L11.6395 5.72671C11.8406 5.53493 12.1592 5.53756 12.3572 5.73496C12.5583 5.93548 12.5587 6.26104 12.3582 6.46214L8.13877 10.6937C7.14498 11.6903 5.53105 11.6915 4.53584 10.6963C3.5442 9.70461 3.54127 8.09774 4.52928 7.10248L8.83677 2.76342L8.84622 2.75411Z",fill:"currentColor"})]}),ipt=e=>y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M1.5 8.5V8C1.5 7.60218 1.65804 7.22064 1.93934 6.93934C2.22064 6.65804 2.60218 6.5 3 6.5H13C13.3978 6.5 13.7794 6.65804 14.0607 6.93934C14.342 7.22064 14.5 7.60218 14.5 8V8.5M8.70667 4.20667L7.29333 2.79333C7.20048 2.70037 7.09022 2.62661 6.96886 2.57628C6.84749 2.52595 6.71739 2.50003 6.586 2.5H3C2.60218 2.5 2.22064 2.65804 1.93934 2.93934C1.65804 3.22064 1.5 3.60218 1.5 4V12C1.5 12.3978 1.65804 12.7794 1.93934 13.0607C2.22064 13.342 2.60218 13.5 3 13.5H13C13.3978 13.5 13.7794 13.342 14.0607 13.0607C14.342 12.7794 14.5 12.3978 14.5 12V6C14.5 5.60218 14.342 5.22064 14.0607 4.93934C13.7794 4.65804 13.3978 4.5 13 4.5H9.414C9.14887 4.49977 8.89402 4.39426 8.70667 4.20667Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),spt=()=>_.useMemo(()=>tT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",background:"transparent",gutterForeground:"#939393"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),GX=({data:e})=>{const t=JSON.stringify(e,null,2),n=spt();return y.jsx("div",{className:"rounded-md bg-[#1a1a1a] p-1 font-mono",children:y.jsx(Eb,{value:t,theme:n,extensions:[nS]})})};async function opt(e,t){const{codeToTokens:n,bundledLanguages:r}=await Vre(async()=>{const{codeToTokens:s,bundledLanguages:o}=await import("./index-CqirvehQ.js");return{codeToTokens:s,bundledLanguages:o}},[]);if(!(t in r))return null;const{tokens:i}=await n(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}const apt=({toolName:e,argsText:t,result:n})=>{const[r,i]=_.useState(!0);let s;try{const o=JSON.parse(t);s=y.jsx(GX,{data:o})}catch{s=y.jsx("pre",{className:"whitespace-pre-wrap",children:t})}return y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>i(o=>!o),className:"flex items-center gap-2",children:[y.jsx(Ht,{children:y.jsx($_,{className:Ke("transition-all",r?"rotate-90":"rotate-180")})}),y.jsx(Tr,{icon:y.jsx(Vf,{className:"text-[#ECB047]"}),children:e})]}),!r&&y.jsx("div",{className:"pt-2",children:y.jsxs("div",{className:"border-sm border-border1 rounded-lg bg-surface4",children:[y.jsxs("div",{className:"px-4 border-b-sm border-border1 py-2",children:[y.jsx("p",{className:"font-medium pb-2",children:"Tool arguments"}),s]}),n!==void 0&&y.jsxs("div",{className:"px-4 py-2",children:[y.jsx("p",{className:"font-medium pb-2",children:"Tool result"}),typeof n=="string"?y.jsx("pre",{className:"whitespace-pre-wrap",children:n}):y.jsx(GX,{data:n})]})]})})]})},lpt=({ToolFallback:e})=>{const t=gb(),n=t.content.length===1&&t.content[0].type==="tool-call";return y.jsxs(aI,{className:"max-w-full",children:[y.jsx("div",{className:"text-icon6 text-ui-lg leading-ui-lg",children:y.jsx(lI,{components:{Text:Uft,tools:{Fallback:e||apt}}})}),y.jsx("div",{className:"h-6 pt-1",children:!n&&y.jsx(upt,{})})]})},upt=()=>y.jsx(Bie,{hideWhenRunning:!0,autohide:"always",autohideFloat:"single-branch",className:"flex gap-1 items-center transition-all",children:y.jsx($ie,{asChild:!0,children:y.jsxs(fw,{tooltip:"Copy",className:"bg-transparent text-icon3 hover:text-icon6",children:[y.jsx(aF,{copied:!0,children:y.jsx(rg,{})}),y.jsx(aF,{copied:!1,children:y.jsx(Gw,{})})]})})}),cpt=()=>y.jsx(aI,{className:"w-full flex justify-end pb-4",children:y.jsx("div",{className:"max-w-[366px] px-5 py-3 text-icon6 text-ui-lg leading-ui-lg rounded-lg bg-surface3",children:y.jsx(lI,{})})}),Zpe=(e,{enabled:t=!0})=>{const n=_.useRef(t);Ae.useEffect(()=>{if(!t||!(e!=null&&e.current))return;const r=e.current,i=new MutationObserver(()=>{n.current&&r.scrollTo({top:r.scrollHeight,behavior:"smooth"})});i.observe(r,{childList:!0,subtree:!0,characterData:!0});const s=o=>{const a=o.target,l=a.scrollTop+a.clientHeight,u=a.scrollHeight;l>=u-1?n.current=!0:n.current=!1};return r.addEventListener("scroll",s),()=>{r.removeEventListener("scroll",s),i.disconnect()}},[t,e])},dpt={"header-md":"text-header-md leading-header-md","ui-lg":"text-ui-lg leading-ui-lg","ui-md":"text-ui-md leading-ui-md","ui-sm":"text-ui-sm leading-ui-sm","ui-xs":"text-ui-xs leading-ui-xs"},hpt={mono:"font-mono"},xt=({as:e="p",className:t,variant:n="ui-md",font:r,...i})=>y.jsx(e,{className:lr(dpt[n],r&&hpt[r],t),...i}),Jpe=({ToolFallback:e,agentName:t,hasMemory:n})=>{const r=_.useRef(null);Zpe(r,{enabled:!0});const i=s=>y.jsx(lpt,{...s,ToolFallback:e});return y.jsxs(lse,{className:"max-w-[568px] w-full mx-auto h-[calc(100%-110px)] px-4",children:[y.jsxs(cse,{className:"py-10 overflow-y-auto scroll-smooth h-full",ref:r,autoScroll:!1,children:[y.jsxs("div",{children:[y.jsx(fpt,{agentName:t}),y.jsx(y9e,{components:{UserMessage:cpt,EditComposer:gpt,AssistantMessage:i}})]}),y.jsx(Pk,{empty:!1,children:y.jsx("div",{})})]}),y.jsx(ppt,{hasMemory:n})]})},fpt=({agentName:e})=>{const t=e??"",n=t.split(" ")??[];let r="A";return n.length===2?r=`${n[0][0]}${n[1][0]}`:t.length>0?r=`${t[0]}`:r="A",y.jsx(use,{children:y.jsxs("div",{className:"flex w-full flex-grow flex-col items-center justify-center",children:[y.jsx(Wpe,{children:y.jsx(Gpe,{children:r})}),y.jsx("p",{className:"mt-4 font-medium",children:"How can I help you today?"})]})})},ppt=({hasMemory:e})=>y.jsxs("div",{children:[y.jsxs(uI,{className:"w-full bg-surface3 rounded-lg border-sm border-border1 px-3 py-4 mt-auto h-[100px]",children:[y.jsx(hI,{asChild:!0,className:"w-full",children:y.jsx("textarea",{className:"text-ui-lg leading-ui-lg placeholder:text-icon3 text-icon6 bg-transparent focus:outline-none resize-none",autoFocus:!0,placeholder:"Enter your message...",name:"",id:""})}),y.jsx("div",{className:"flex justify-end",children:y.jsx(mpt,{})})]}),!e&&y.jsxs(xt,{variant:"ui-sm",className:"text-icon3 flex items-center gap-2 pt-0.5",children:[y.jsx(Ht,{children:y.jsx(ept,{})}),"Memory is not enabled. The conversation will not be persisted."]})]}),mpt=()=>y.jsxs(y.Fragment,{children:[y.jsx(Pk,{running:!1,children:y.jsx(sse,{asChild:!0,children:y.jsx(fw,{tooltip:"Send",variant:"default",className:"rounded-full border-sm border-[#363636] bg-[#292929]",children:y.jsx(T9e,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})})}),y.jsx(Pk,{running:!0,children:y.jsx(ase,{asChild:!0,children:y.jsx(fw,{tooltip:"Cancel",variant:"default",children:y.jsx(ypt,{})})})})]}),gpt=()=>y.jsxs(uI,{children:[y.jsx(hI,{}),y.jsxs("div",{children:[y.jsx(ase,{asChild:!0,children:y.jsx(Oo,{variant:"ghost",children:"Cancel"})}),y.jsx(sse,{asChild:!0,children:y.jsx(Oo,{children:"Send"})})]})]}),ypt=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:y.jsx("rect",{width:"10",height:"10",x:"3",y:"3",rx:"2"})}),Vl=e=>new cce({baseUrl:e||"",headers:e?{}:{"x-mastra-dev-playground":"true"}}),bpt=e=>e;function vpt({children:e,agentId:t,initialMessages:n,agentName:r,memory:i,threadId:s,baseUrl:o,refreshThreadList:a,modelSettings:l={},chatWithGenerate:u,runtimeContext:c}){const[d,f]=_.useState(!1),[p,b]=_.useState([]),[w,E]=_.useState(s),{frequencyPenalty:S,presencePenalty:k,maxRetries:A,maxSteps:P,maxTokens:M,temperature:F,topK:I,topP:j,instructions:B}=l,L=new _m;Object.entries(c??{}).forEach(([J,H])=>{L.set(J,H)}),_.useEffect(()=>{const J=n&&(n==null?void 0:n.length)>(p==null?void 0:p.length);if((p.length===0||w!==s||J&&w===s)&&n&&s&&i){const H=n==null?void 0:n.map(q=>{var W;return((W=q==null?void 0:q.toolInvocations)==null?void 0:W.length)>0?{...q,content:[...typeof q.content=="string"?[{type:"text",text:q.content}]:[],...q.toolInvocations.map(K=>({type:"tool-call",toolCallId:K==null?void 0:K.toolCallId,toolName:K==null?void 0:K.toolName,args:K==null?void 0:K.args,result:K==null?void 0:K.result}))]}:q}).filter(Boolean);b(H),E(s)}},[n,s,i]);const Y=Vl(o).getAgent(t),$=Oie({isRunning:d,messages:p,convertMessage:bpt,onNew:async J=>{var q;if(((q=J.content[0])==null?void 0:q.type)!=="text")throw new Error("Only text messages are supported");const H=J.content[0].text;b(W=>[...W,{role:"user",content:H}]),f(!0);try{if(u){const W=await Y.generate({messages:[{role:"user",content:H}],runId:t,frequencyPenalty:S,presencePenalty:k,maxRetries:A,maxSteps:P,maxTokens:M,temperature:F,topK:I,topP:j,instructions:B,runtimeContext:L,...i?{threadId:s,resourceId:t}:{}});if(W.response){const K=W.response.messages.reduce((V,X)=>{const re=Array.isArray(V.content)?V.content:[];if(typeof X.content=="string")return{...V,content:[...re,{type:"text",text:X.content}]};if(X.role==="assistant"){const U=Array.isArray(X.content)?X.content.find(se=>se.type==="tool-call"):void 0;if(U){const se=re.map(ie=>ie.type==="tool-call"&&ie.toolCallId===(U==null?void 0:U.toolCallId)?{...ie,...U}:ie),ue=se.some(ie=>ie.type==="tool-call");return{...V,content:ue?se:[...re,U]}}const te=Array.isArray(X.content)?X.content.find(se=>se.type==="text"&&se.text):void 0;if(te)return{...V,content:[...re,te]}}if(X.role==="tool"){const U=Array.isArray(X.content)?X.content.find(te=>te.type==="tool-result"):void 0;if(U){const te=re.map(ue=>ue.type==="tool-call"&&ue.toolCallId===(U==null?void 0:U.toolCallId)?{...ue,result:U.result}:ue),se=te.some(ue=>ue.type==="tool-call");return{...V,content:se?te:[...re,{type:"tool-result",toolCallId:U.toolCallId,result:U.result}]}}return{...V,content:[...re,U]}}return V},{role:"assistant",content:[]});b(V=>[...V,K])}}else{let W=function(){b(te=>{const se={role:"assistant",content:[{type:"text",text:V}]};return X?re?(re=!1,[...te,se]):[...te.slice(0,-1),se]:(X=!0,re&&(re=!1),[...te,se])})};const K=await Y.stream({messages:[{role:"user",content:H}],runId:t,frequencyPenalty:S,presencePenalty:k,maxRetries:A,maxSteps:P,maxTokens:M,temperature:F,topK:I,topP:j,instructions:B,runtimeContext:L,...i?{threadId:s,resourceId:t}:{}});if(!K.body)throw new Error("No response body");let V="",X=!1,re=!1,U=!1;await K.processDataStream({onTextPart(te){U?(U=!1,V=te):V+=te,W()},async onToolCallPart(te){b(se=>{const ue=se[se.length-1];if(ue&&ue.role==="assistant"){const pe={...ue,content:Array.isArray(ue.content)?[...ue.content,{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]:[...typeof ue.content=="string"?[{type:"text",text:ue.content}]:[],{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return re=!0,U=!0,[...se.slice(0,-1),pe]}const ie={role:"assistant",content:[{type:"text",text:V},{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return re=!0,U=!0,[...se,ie]})},async onToolResultPart(te){b(se=>{const ue=se[se.length-1];if(ue&&ue.role==="assistant"&&Array.isArray(ue.content)){const ie=ue.content.map(De=>typeof De=="object"&&De.type==="tool-call"&&De.toolCallId===te.toolCallId?{...De,result:te.result}:De),pe={...ue,content:ie};return[...se.slice(0,-1),pe]}return se})},onErrorPart(te){throw new Error(te)}})}f(!1),setTimeout(()=>{a==null||a()},500)}catch(W){console.error("Error occurred in MastraRuntimeProvider",W),f(!1),b(K=>[...K,{role:"assistant",content:[{type:"text",text:`Error: ${W}`}]}])}}});return y.jsxs(hie,{runtime:$,children:[" ",e," "]})}const xpt=fa()(dce(e=>({modelSettings:{},setModelSettings:t=>e(n=>({modelSettings:{...n.modelSettings,...t}})),chatWithGenerate:{},setChatWithGenerate:t=>e(n=>({chatWithGenerate:{...n.chatWithGenerate,...t}}))}),{name:"mastra-agent-store"})),YX={maxRetries:2,maxSteps:5,temperature:.5,topP:1},JT=_.createContext({});function wpt({agentId:e,children:t}){const{modelSettings:n,setModelSettings:r,chatWithGenerate:i,setChatWithGenerate:s}=xpt(),o=n[e]||YX,a=d=>{r({[e]:d})},l=()=>{a(YX)},u=i[e]||!1,c=d=>{s({[e]:d})};return y.jsx(JT.Provider,{value:{modelSettings:o,setModelSettings:a,resetModelSettings:l,chatWithGenerate:u,setChatWithGenerate:c},children:t})}const Mb=fa()(dce(e=>({runtimeContext:{},setRuntimeContext:t=>e({runtimeContext:t})}),{name:"mastra-playground-store"})),Spt=({agentId:e,agentName:t,threadId:n,initialMessages:r,memory:i,baseUrl:s,refreshThreadList:o})=>{const{modelSettings:a,chatWithGenerate:l}=_.useContext(JT),{runtimeContext:u}=Mb();return y.jsx(vpt,{agentId:e,agentName:t,threadId:n,initialMessages:r,memory:i,baseUrl:s,refreshThreadList:o,modelSettings:a,chatWithGenerate:l,runtimeContext:u,children:y.jsx("div",{className:"h-full pb-4 bg-surface1",children:y.jsx(Jpe,{agentName:t??"",hasMemory:i})})})},Cpt=Tb("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function JD({className:e,variant:t,...n}){return y.jsx("div",{className:Ke(Cpt({variant:t}),e),...n})}function tD({content:e,label:t,multiline:n=!1}){const r=()=>{navigator.clipboard.writeText(e)};return y.jsxs("div",{className:"group relative flex items-start gap-2",children:[y.jsx("span",{className:Ke("text-sm text-mastra-el-4",n?"whitespace-pre-wrap":"truncate"),children:e}),y.jsx(Oo,{variant:"ghost",size:"sm",className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0 -mt-1",onClick:i=>{i.stopPropagation(),r()},"aria-label":`Copy ${t}`,children:y.jsx(Gw,{className:"h-3 w-3"})})]})}function Ept({date:e}){const t={relativeTime:wJe(new Date(e),{addSuffix:!0}),fullDate:_o(new Date(e),"PPpp")};return y.jsx(k7,{children:y.jsxs(XT,{children:[y.jsx(ZT,{className:"text-left text-sm text-mastra-el-4",children:t.relativeTime}),y.jsx(xS,{className:"bg-mastra-bg-1 text-mastra-el-1",children:y.jsx("p",{className:"text-sm",children:t.fullDate})})]})})}const Dpt=Tb("flex w-full text-icon6 rounded-lg border bg-transparent shadow-sm focus-visible:ring-ring transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-sm border-border1 placeholder:text-icon3",filled:"border-sm bg-inputFill border-border1 placeholder:text-icon3",unstyled:"border-0 bg-transparent placeholder:text-icon3 focus-visible:ring-transparent focus-visible:outline-none"},customSize:{default:"px-[13px] text-[calc(13_/_16_*_1rem)] h-8",sm:"h-[30px] px-[13px] text-xs",lg:"h-10 px-[17px] text-[calc(13_/_16_*_1rem)]"}},defaultVariants:{variant:"default",customSize:"default"}}),Rm=_.forwardRef(({className:e,customSize:t,testId:n,variant:r,type:i,...s},o)=>y.jsx("input",{type:i,className:Ke(e,Dpt({variant:r,customSize:t,className:e})),"data-testid":n,ref:o,...s}));Rm.displayName="Input";function KX({score:e}){return y.jsx(JD,{variant:"secondary",children:e.toFixed(2)})}function Qo({className:e,...t}){return y.jsx("div",{className:Ke("animate-pulse rounded-md bg-muted/50",e),...t})}const v9=_.forwardRef(({className:e,...t},n)=>y.jsx("table",{ref:n,className:Ke("w-full caption-bottom text-sm border-spacing-0",e),...t}));v9.displayName="Table";const x9=_.forwardRef(({className:e,...t},n)=>y.jsx("thead",{ref:n,className:Ke("[&_tr]:border-b-[0.5px]",e),...t}));x9.displayName="TableHeader";const w9=_.forwardRef(({className:e,...t},n)=>y.jsx("tbody",{ref:n,className:Ke("[&_tr:last-child]:border-0",e),...t}));w9.displayName="TableBody";const kpt=_.forwardRef(({className:e,...t},n)=>y.jsx("tfoot",{ref:n,className:Ke("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));kpt.displayName="TableFooter";const _h=_.forwardRef(({className:e,...t},n)=>y.jsx("tr",{ref:n,className:Ke("border-b-[0.5px] border-mastra-border-1 transition-colors hover:bg-muted/50 data-[state=selected]:bg-mastra-bg-4/70",e),...t}));_h.displayName="TableRow";const Ko=_.forwardRef(({className:e,...t},n)=>y.jsx("th",{ref:n,className:Ke("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ko.displayName="TableHead";const Qr=_.forwardRef(({className:e,...t},n)=>y.jsx("td",{ref:n,className:Ke("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Qr.displayName="TableCell";const Apt=_.forwardRef(({className:e,...t},n)=>y.jsx("caption",{ref:n,className:Ke("mt-4 text-sm text-muted-foreground",e),...t}));Apt.displayName="TableCaption";const _pt=jce,Qpe=_.forwardRef(({className:e,...t},n)=>y.jsx(hT,{ref:n,className:Ke(e),...t}));Qpe.displayName=hT.displayName;const S9=_.forwardRef(({className:e,...t},n)=>y.jsx(fT,{ref:n,className:Ke(e),...t}));S9.displayName=fT.displayName;const C9=_.forwardRef(({className:e,...t},n)=>y.jsx(pT,{ref:n,className:Ke("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));C9.displayName=pT.displayName;const XX=(e,t,n)=>{const[r,i]=_.useState([]),[s,o]=_.useState(!0),a=Vl(n),l=async u=>{o(!0);const c=u??e;try{const d=t==="live"?await a.getAgent(c).liveEvals():await a.getAgent(c).evals();i(d.evals)}catch(d){i([]),console.error("Error fetching evals",d),xd.error("Error fetching evals")}finally{o(!1)}};return _.useEffect(()=>{l(e)},[e]),{evals:r,isLoading:s,refetchEvals:l}},eme=_.createContext({handleRefresh:()=>{},isLoading:!0}),nD=Ke("relative overflow-y-auto overflow-x-hidden invisible hover:visible focus:visible","[&::-webkit-scrollbar]:w-1","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:rounded-full","[&::-webkit-scrollbar-thumb]:bg-mastra-border/20","[&>*]:visible"),ZX=Ke("px-4 py-2 text-sm transition-all border-b-2 border-transparent","data-[state=active]:border-white data-[state=active]:text-white font-medium","data-[state=inactive]:text-mastra-el-4 hover:data-[state=inactive]:text-mastra-el-2","focus-visible:outline-none"),JX=Ke("data-[state=inactive]:mt-0 min-h-0 h-full grid grid-rows-[1fr]");function Tpt({agentId:e,baseUrl:t}){const[n,r]=_.useState("live"),{evals:i,isLoading:s,refetchEvals:o}=XX(e,"live",t),{evals:a,isLoading:l,refetchEvals:u}=XX(e,"ci",t),c={handleRefresh:d,isLoading:n==="live"?s:l};function d(){n==="live"?o():u()}return y.jsx(eme.Provider,{value:c,children:y.jsxs(_pt,{value:n,onValueChange:f=>r(f),className:"grid grid-rows-[auto_1fr] h-full min-h-0 pb-2",children:[y.jsx("div",{className:"border-b border-mastra-border/10",children:y.jsxs(Qpe,{className:"bg-transparent border-0 h-auto mx-4",children:[y.jsx(S9,{value:"live",className:ZX,children:"Live"}),y.jsx(S9,{value:"ci",className:ZX,children:"CI"})]})}),y.jsx(C9,{value:"live",className:JX,children:y.jsx(QX,{evals:i,isCIMode:!1})}),y.jsx(C9,{value:"ci",className:JX,children:y.jsx(QX,{evals:a,isCIMode:!0})})]})})}function QX({evals:e,isCIMode:t=!1}){const{handleRefresh:n,isLoading:r}=_.useContext(eme),[i,s]=_.useState(new Set),[o,a]=_.useState(""),[l,u]=_.useState({field:"metricName",direction:"asc"});return y.jsxs("div",{className:"min-h-0 grid grid-rows-[auto_1fr]",children:[y.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg",children:[y.jsxs("div",{className:"relative flex-1",children:[y.jsx(nU,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-mastra-el-3"}),y.jsx(Rm,{id:"search-input",placeholder:"Search metrics, inputs, or outputs...",value:o,onChange:w=>a(w.target.value),className:"pl-10"})]}),y.jsxs(JD,{variant:"secondary",className:"text-xs",children:[e.length," Total Evaluations"]}),y.jsx(Oo,{variant:"ghost",size:"icon",onClick:n,disabled:r,className:"h-9 w-9",children:r?y.jsx(tU,{className:"h-4 w-4 animate-spin"}):y.jsx(tU,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"overflow-auto",children:y.jsxs(v9,{className:"w-full",children:[y.jsx(x9,{className:"bg-mastra-bg-2 h-[var(--table-header-height)] sticky top-0 z-10",children:y.jsxs(_h,{className:"border-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(Ko,{className:"w-12 h-12"}),y.jsx(Ko,{className:"min-w-[200px] max-w-[30%] text-mastra-el-3 cursor-pointer",onClick:()=>f("metricName"),children:y.jsxs("div",{className:"flex items-center",children:["Metric ",p("metricName")]})}),y.jsx(Ko,{className:"flex-1 text-mastra-el-3"}),y.jsx(Ko,{className:"w-48 text-mastra-el-3 cursor-pointer",onClick:()=>f("averageScore"),children:y.jsxs("div",{className:"flex items-center",children:["Average Score ",p("averageScore")]})}),y.jsx(Ko,{className:"w-48 text-mastra-el-3",children:"Evaluations"})]})}),y.jsx(w9,{className:"border-b border-gray-6 relative",children:y.jsx(nQe,{mode:"wait",presenceAffectsLayout:!1,children:r?Array.from({length:3}).map((w,E)=>y.jsxs(_h,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(Qr,{className:"w-12 h-12",children:y.jsx(Qo,{className:"h-8 w-8 rounded-full"})}),y.jsx(Qr,{className:"min-w-[200px] max-w-[30%]",children:y.jsx(Qo,{className:"h-4 w-3/4"})}),y.jsx(Qr,{className:"flex-1",children:y.jsx(Qo,{className:"h-4 w-full"})}),y.jsx(Qr,{className:"w-48",children:y.jsx(Qo,{className:"h-4 w-20"})}),y.jsx(Qr,{className:"w-48",children:y.jsx(Qo,{className:"h-4 w-20"})})]},E)):b(e).length===0?y.jsxs(_h,{children:[y.jsx(Qr,{className:"h-12 w-16"}),y.jsx(Qr,{colSpan:4,className:"h-32 px-4 text-center text-mastra-el-3",children:y.jsxs("div",{className:"flex flex-col items-center gap-2",children:[y.jsx(nU,{className:"size-5"}),y.jsx("p",{children:"No evaluations found"}),o&&y.jsx("p",{className:"text-sm",children:"Try adjusting your search terms"})]})})]}):b(e).map(w=>y.jsxs(Ae.Fragment,{children:[y.jsxs(_h,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem] cursor-pointer hover:bg-mastra-bg-3",onClick:()=>d(w.metricName),children:[y.jsx(Qr,{className:"w-12",children:y.jsx("div",{className:"h-8 w-full flex items-center justify-center",children:y.jsx("div",{className:Ke("transform transition-transform duration-200",i.has(w.metricName)?"rotate-90":""),children:y.jsx(B9e,{className:"h-4 w-4 text-mastra-el-5"})})})}),y.jsx(Qr,{className:"min-w-[200px] max-w-[30%] font-medium text-mastra-el-5",children:w.metricName}),y.jsx(Qr,{className:"flex-1 text-mastra-el-5"}),y.jsx(Qr,{className:"w-48 text-mastra-el-5",children:y.jsx(KX,{score:w.averageScore})}),y.jsx(Qr,{className:"w-48 text-mastra-el-5",children:y.jsx(JD,{variant:"secondary",children:w.evals.length})})]}),i.has(w.metricName)&&y.jsx(_h,{children:y.jsx(Qr,{colSpan:5+(c(w.evals)?1:0)+(t?1:0),className:"p-0",children:y.jsx("div",{className:"bg-mastra-bg-3 rounded-lg m-2",children:y.jsx("div",{className:"w-full",children:y.jsxs(v9,{className:"w-full",children:[y.jsx(x9,{children:y.jsxs(_h,{className:"text-[0.7rem] text-mastra-el-3 hover:bg-transparent",children:[y.jsx(Ko,{className:"pl-12 w-[120px]",children:"Timestamp"}),y.jsx(Ko,{className:"w-[300px]",children:"Instructions"}),y.jsx(Ko,{className:"w-[300px]",children:"Input"}),y.jsx(Ko,{className:"w-[300px]",children:"Output"}),y.jsx(Ko,{className:"w-[80px]",children:"Score"}),c(w.evals)&&y.jsx(Ko,{className:"w-[250px]",children:"Reason"}),t&&y.jsx(Ko,{className:"w-[120px]",children:"Test Name"})]})}),y.jsx(w9,{children:w.evals.map((E,S)=>{var k,A;return y.jsxs(_h,{className:"text-[0.8125rem] hover:bg-mastra-bg-2/50",children:[y.jsx(Qr,{className:"pl-12 text-mastra-el-4 align-top py-4",children:y.jsx(Ept,{date:E.createdAt})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:E.instructions,label:"instructions",multiline:!0})})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:E.input,label:"input",multiline:!0})})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:E.output,label:"output",multiline:!0})})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx(KX,{score:E.result.score})}),c(w.evals)&&y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:((k=E.result.info)==null?void 0:k.reason)||"",label:"reason",multiline:!0})})}),t&&y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:((A=E.testInfo)==null?void 0:A.testName)&&y.jsx(JD,{variant:"secondary",className:"text-xs",children:E.testInfo.testName})})]},`${w.metricName}-${S}`)})})]})})})})})]},w.metricName))})})]})})]});function c(w){return w.some(E=>{var S;return(S=E.result.info)==null?void 0:S.reason})}function d(w){const E=new Set(i);E.has(w)?E.delete(w):E.add(w),s(E)}function f(w){u(E=>({field:w,direction:E.field===w&&E.direction==="asc"?"desc":"asc"}))}function p(w){return l.field!==w?null:l.direction==="asc"?y.jsx(A9e,{className:"h-4 w-4 ml-1"}):y.jsx(D9e,{className:"h-4 w-4 ml-1"})}function b(w){let E=w.reduce((S,k)=>{const A=S.find(P=>P.metricName===k.metricName);return A?(A.evals.push(k),A.averageScore=A.evals.reduce((P,M)=>P+M.result.score,0)/A.evals.length):S.push({metricName:k.metricName,averageScore:k.result.score,evals:[k]}),S},[]);return o&&(E=E.filter(S=>S.metricName.toLowerCase().includes(o.toLowerCase())||S.evals.some(k=>{var A,P,M;return((A=k.input)==null?void 0:A.toLowerCase().includes(o.toLowerCase()))||((P=k.output)==null?void 0:P.toLowerCase().includes(o.toLowerCase()))||((M=k.instructions)==null?void 0:M.toLowerCase().includes(o.toLowerCase()))}))),E.sort((S,k)=>{const A=l.direction==="asc"?1:-1;switch(l.field){case"metricName":return A*S.metricName.localeCompare(k.metricName);case"averageScore":return A*(S.averageScore-k.averageScore);default:return 0}}),E}}const uc=_.createContext({});function _7({children:e,initialTraces:t}){const[n,r]=_.useState(!1),[i,s]=_.useState(null),[o,a]=_.useState(t||[]),[l,u]=_.useState(0),[c,d]=_.useState(null),f=()=>{if(l<o.length-1){const w=l+1;u(w);const E=o[w].trace;s(E);const S=E.find(k=>k.parentSpanId===null)||E[0];d(S)}},p=()=>{if(l>0){const w=l-1;u(w);const E=o[w].trace;s(E);const S=E.find(k=>k.parentSpanId===null)||E[0];d(S)}},b=()=>{r(!1),s(null),d(null)};return y.jsx(uc.Provider,{value:{isOpen:n,setIsOpen:r,trace:i,setTrace:s,traces:o,setTraces:a,currentTraceIndex:l,setCurrentTraceIndex:u,nextTrace:f,prevTrace:p,span:c,setSpan:d,clearData:b},children:e})}const Npt={default:"[&>tbody>tr]:h-table-row",small:"[&>tbody>tr]:h-table-row-small"},tme=({className:e,children:t,size:n="default"})=>y.jsx("table",{className:lr("w-full",Npt[n],e),children:t}),nme=({className:e,children:t})=>y.jsx("thead",{children:y.jsx("tr",{className:lr("h-table-header border-b-sm border-border1",e),children:t})}),hy=({className:e,children:t,...n})=>y.jsx("th",{className:lr("text-icon3 text-ui-sm h-full text-left font-normal uppercase first:pl-5 last:pr-5 whitespace-nowrap",e),...n,children:t}),SS=({className:e,children:t})=>y.jsx("tbody",{className:lr("",e),children:t}),dm=({className:e,children:t,selected:n=!1,onClick:r})=>y.jsx("tr",{className:lr("border-b-sm border-border1 hover:bg-surface3",n&&"bg-surface4",r&&"cursor-pointer",e),onClick:r,children:t}),Ppt=e=>{const t=new Intl.DateTimeFormat("en-US",{month:"short"}).format(e).toUpperCase(),n=e.getDate(),r=`${t} ${n}`,i=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e);return{day:r,time:i}},Qs=({className:e,children:t,...n})=>y.jsx("td",{className:lr("text-icon5 first:pl-5 last:pr-5",e),...n,children:y.jsx("div",{className:lr("flex h-full w-full shrink-0 items-center"),children:t})}),Fpt=({className:e,children:t})=>y.jsx(Qs,{className:e,children:y.jsx(xt,{as:"span",variant:"ui-md",className:"w-full truncate",children:t})}),Mpt=({className:e,children:t,unit:n})=>y.jsx(Qs,{className:e,children:y.jsxs("div",{className:"flex min-w-0 items-center",children:[y.jsx(xt,{as:"span",variant:"ui-md",className:"shrink-0",children:t}),y.jsx(xt,{as:"span",variant:"ui-sm",className:"text-icon3 w-full truncate",children:n})]})}),Opt=({dateTime:e,...t})=>{const{day:n,time:r}=Ppt(e);return y.jsx(Qs,{...t,children:y.jsxs("div",{className:"shrink-0",children:[y.jsx(xt,{as:"span",variant:"ui-sm",className:"text-icon3",children:n})," ",y.jsx(xt,{as:"span",variant:"ui-md",children:r})]})})},T7=({name:e,description:t,icon:n,meta:r,...i})=>y.jsx(Qs,{...i,children:y.jsxs("div",{className:"flex items-center gap-[14px]",children:[y.jsx(Ht,{size:"lg",className:"text-icon5",children:n}),y.jsxs("div",{className:"flex flex-col gap-0",children:[y.jsx(xt,{as:"span",variant:"ui-md",className:"text-icon6 font-medium !leading-tight",children:e}),t&&y.jsx(xt,{as:"span",variant:"ui-xs",className:"text-icon3 w-full max-w-[300px] truncate !leading-tight",children:t})]}),r]})}),Rpt=()=>{const{setTrace:e,isOpen:t,setIsOpen:n,trace:r,setSpan:i,setCurrentTraceIndex:s}=_.useContext(uc);return{openTrace:(a,l)=>{var c;e(a);const u=a.find(d=>d.parentSpanId===null)||a[0];i(u),s(l),!(t&&((c=r==null?void 0:r[0])==null?void 0:c.id)!==a[0].id)&&n(d=>!d)}}},LA=(e,t)=>Number(e.toPrecision(t)),Ipt=({colsCount:e})=>y.jsx(SS,{children:y.jsx(dm,{children:Array.from({length:e}).map((t,n)=>y.jsx(Qs,{children:y.jsx(Qo,{className:"w-1/2"})},n))})}),jpt=({colsCount:e})=>y.jsx(SS,{children:y.jsx(dm,{children:y.jsx(Qs,{colSpan:e,className:"text-center py-4",children:y.jsx(xt,{children:"No traces found"})})})}),Lpt=({error:e,colsCount:t})=>y.jsx(SS,{children:y.jsx(dm,{children:y.jsx(Qs,{colSpan:t,className:"text-center py-4",children:y.jsx(xt,{children:e.message})})})}),Bpt=({trace:e,index:t,isActive:n})=>{const{openTrace:r}=Rpt(),i=e.trace.some(s=>s.status.code!==0);return y.jsxs(dm,{className:n?"bg-surface4":"",onClick:()=>r(e.trace,t),children:[y.jsx(Opt,{dateTime:new Date(e.started/1e3)}),y.jsxs(Fpt,{title:e.traceId,children:[e.traceId.substring(0,7),"..."]}),y.jsx(Mpt,{unit:"ms",children:LA(e.duration/1e3,3)}),y.jsx(Qs,{children:y.jsx("button",{onClick:()=>r(e.trace,t),children:y.jsx(Tr,{icon:y.jsx(b9,{}),children:e.trace.length})})}),y.jsx(Qs,{children:i?y.jsx(Tr,{variant:"error",icon:y.jsx(D0,{}),children:"Failed"}):y.jsx(Tr,{icon:y.jsx(rg,{}),variant:"success",children:"Success"})})]})},rme=({traces:e,isLoading:t,error:n})=>{const r=!e||e.length===0,{currentTraceIndex:i}=_.useContext(uc),s=4;return y.jsxs(tme,{size:"small",children:[y.jsxs(nme,{children:[y.jsx(hy,{width:120,children:"Time"}),y.jsx(hy,{width:"auto",children:"Trace Id"}),y.jsx(hy,{width:120,children:"Duration"}),y.jsx(hy,{width:120,children:"Spans"}),y.jsx(hy,{width:120,children:"Status"})]}),t?y.jsx(Ipt,{colsCount:s}):n?y.jsx(Lpt,{error:n,colsCount:s}):r?y.jsx(jpt,{colsCount:s}):y.jsx(y.Fragment,{children:y.jsx(SS,{children:e.map((o,a)=>y.jsx(Bpt,{trace:o,index:a,isActive:a===i},o.traceId))})})]})},$pt=({defaultWidth:e,minimumWidth:t,maximumWidth:n,setCurrentWidth:r})=>{const[i,s]=_.useState(!1),[o,a]=_.useState(e),l=_.useRef(null),u=_.useRef(0),c=_.useRef(0),d=f=>{f.preventDefault(),s(!0),u.current=f.clientX,c.current=o};return _.useEffect(()=>{a(e),r==null||r(e)},[e]),_.useEffect(()=>{const f=b=>{if(!i||!l.current)return;const w=l.current.offsetWidth,S=(u.current-b.clientX)/w*100,k=Math.min(Math.max(c.current+S,t),n);a(k),r==null||r(k)},p=()=>{s(!1)};return i&&(window.addEventListener("mousemove",f),window.addEventListener("mouseup",p)),()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p)}},[i]),{sidebarWidth:o,isDragging:i,handleMouseDown:d,containerRef:l}},QT=({children:e,defaultWidth:t,minimumWidth:n,maximumWidth:r,className:i,disabled:s=!1,setCurrentWidth:o,dividerPosition:a="left"})=>{const{sidebarWidth:l,isDragging:u,handleMouseDown:c,containerRef:d}=$pt({defaultWidth:s?100:t,minimumWidth:n,maximumWidth:r,setCurrentWidth:o});return y.jsxs("div",{className:Ke("w-full h-full relative",i),ref:d,style:{width:`${l}%`},children:[!s&&a==="left"?y.jsx("div",{className:`w-px bg-border1 h-full cursor-col-resize hover:w-1.5 hover:bg-mastra-border-2 hover:bg-[#424242] active:bg-mastra-border-3 active:bg-[#3e3e3e] transition-colors absolute inset-y-0 z-10
|
|
687
|
+
*/function $X(e,t){return e?Kht(e)?_.createElement(e,t):e:null}function Kht(e){return Xht(e)||typeof e=="function"||Zht(e)}function Xht(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Zht(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Jht(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=_.useState(()=>({current:Ght(t)})),[r,i]=_.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}function jpe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=jpe(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=jpe(e))&&(r&&(r+=" "),r+=t);return r}const zX=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,HX=lr,Tb=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return HX(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const f=zX(c)||zX(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(b=>{let[w,E]=b;return Array.isArray(E)?E.includes({...s,...a}[w]):{...s,...a}[w]===E})?[...u,d,f]:u},[]);return HX(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},E7="-",Qht=e=>{const t=tft(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(E7);return a[0]===""&&a.length!==1&&a.shift(),Lpe(a,t)||eft(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Lpe=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Lpe(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(E7);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},VX=/^\[(.+)\]$/,eft=e=>{if(VX.test(e)){const t=VX.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tft=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)m9(n[i],r,i,t);return r},m9=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:UX(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(nft(i)){m9(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{m9(o,UX(t,s),n,r)})})},UX=(e,t)=>{let n=e;return t.split(E7).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},nft=e=>e.isThemeGetter,rft=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},g9="!",y9=":",ift=y9.length,sft=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,u;for(let b=0;b<i.length;b++){let w=i[b];if(o===0&&a===0){if(w===y9){s.push(i.slice(l,b)),l=b+ift;continue}if(w==="/"){u=b;continue}}w==="["?o++:w==="]"?o--:w==="("?a++:w===")"&&a--}const c=s.length===0?i:i.substring(l),d=oft(c),f=d!==c,p=u&&u>l?u-l:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const i=t+y9,s=r;r=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},oft=e=>e.endsWith(g9)?e.substring(0,e.length-1):e.startsWith(g9)?e.substring(1):e,aft=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},lft=e=>({cache:rft(e.cacheSize),parseClassName:sft(e),sortModifiers:aft(e),...Qht(e)}),uft=/\s+/,cft=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(uft);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:w}=n(c);if(d){l=c+(l.length>0?" "+l:l);continue}let E=!!w,S=r(E?b.substring(0,w):b);if(!S){if(!E){l=c+(l.length>0?" "+l:l);continue}if(S=r(b),!S){l=c+(l.length>0?" "+l:l);continue}E=!1}const k=s(f).join(":"),A=p?k+g9:k,P=A+S;if(o.includes(P))continue;o.push(P);const M=i(S,E);for(let F=0;F<M.length;++F){const I=M[F];o.push(A+I)}l=c+(l.length>0?" "+l:l)}return l};function dft(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Bpe(t))&&(r&&(r+=" "),r+=n);return r}const Bpe=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bpe(e[r]))&&(n&&(n+=" "),n+=t);return n};function hft(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=lft(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=cft(l,n);return i(l,c),c}return function(){return s(dft.apply(null,arguments))}}const Li=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},$pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zpe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fft=/^\d+\/\d+$/,pft=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mft=/\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$/,gft=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yft=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bft=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ry=e=>fft.test(e),gn=e=>!!e&&!Number.isNaN(Number(e)),wp=e=>!!e&&Number.isInteger(Number(e)),qX=e=>e.endsWith("%")&&gn(e.slice(0,-1)),Eh=e=>pft.test(e),vft=()=>!0,xft=e=>mft.test(e)&&!gft.test(e),D7=()=>!1,wft=e=>yft.test(e),Sft=e=>bft.test(e),Cft=e=>!At(e)&&!_t(e),Eft=e=>Nb(e,Upe,D7),At=e=>$pe.test(e),Sp=e=>Nb(e,qpe,xft),P6=e=>Nb(e,Rft,gn),Dft=e=>Nb(e,Hpe,D7),kft=e=>Nb(e,Vpe,Sft),Aft=e=>Nb(e,D7,wft),_t=e=>zpe.test(e),eD=e=>Pb(e,qpe),_ft=e=>Pb(e,Ift),Tft=e=>Pb(e,Hpe),Nft=e=>Pb(e,Upe),Pft=e=>Pb(e,Vpe),Fft=e=>Pb(e,jft,!0),Nb=(e,t,n)=>{const r=$pe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Pb=(e,t,n=!1)=>{const r=zpe.exec(e);return r?r[1]?t(r[1]):n:!1},Hpe=e=>e==="position",Mft=new Set(["image","url"]),Vpe=e=>Mft.has(e),Oft=new Set(["length","size","percentage"]),Upe=e=>Oft.has(e),qpe=e=>e==="length",Rft=e=>e==="number",Ift=e=>e==="family-name",jft=e=>e==="shadow",Lft=()=>{const e=Li("color"),t=Li("font"),n=Li("text"),r=Li("font-weight"),i=Li("tracking"),s=Li("leading"),o=Li("breakpoint"),a=Li("container"),l=Li("spacing"),u=Li("radius"),c=Li("shadow"),d=Li("inset-shadow"),f=Li("drop-shadow"),p=Li("blur"),b=Li("perspective"),w=Li("aspect"),E=Li("ease"),S=Li("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],F=()=>[_t,At,l],I=()=>[ry,"full","auto",...F()],j=()=>[wp,"none","subgrid",_t,At],B=()=>["auto",{span:["full",wp,_t,At]},_t,At],L=()=>[wp,"auto",_t,At],z=()=>["auto","min","max","fr",_t,At],Y=()=>["start","end","center","between","around","evenly","stretch","baseline"],Q=()=>["start","end","center","stretch"],$=()=>["auto",...F()],J=()=>[ry,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],H=()=>[e,_t,At],q=()=>[qX,Sp],W=()=>["","none","full",u,_t,At],K=()=>["",gn,eD,Sp],V=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["","none",p,_t,At],U=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_t,At],te=()=>["none",gn,_t,At],se=()=>["none",gn,_t,At],ue=()=>[gn,_t,At],ie=()=>[ry,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Eh],breakpoint:[Eh],color:[vft],container:[Eh],"drop-shadow":[Eh],ease:["in","out","in-out"],font:[Cft],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Eh],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Eh],shadow:[Eh],spacing:["px",gn],text:[Eh],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ry,At,_t,w]}],container:["container"],columns:[{columns:[gn,At,_t,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:[...A(),At,_t]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[wp,"auto",_t,At]}],basis:[{basis:[ry,"full","auto",a,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[gn,ry,"auto","initial","none",At]}],grow:[{grow:["",gn,_t,At]}],shrink:[{shrink:["",gn,_t,At]}],order:[{order:[wp,"first","last","none",_t,At]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...Q(),"baseline"]}],"align-self":[{self:["auto",...Q(),"baseline"]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[a,"screen",...J()]}],"min-w":[{"min-w":[a,"screen","none",...J()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,eD,Sp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_t,P6]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qX,At]}],"font-family":[{font:[_ft,At,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,_t,At]}],"line-clamp":[{"line-clamp":[gn,"none",_t,P6]}],leading:[{leading:[s,...F()]}],"list-image":[{"list-image":["none",_t,At]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_t,At]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[gn,"from-font","auto",_t,Sp]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[gn,"auto",_t,At]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_t,At]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_t,At]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),Tft,Dft]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Nft,Eft]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wp,_t,At],radial:["",_t,At],conic:[wp,_t,At]},Pft,kft]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[gn,_t,At]}],"outline-w":[{outline:["",gn,eD,Sp]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",c,Fft,Aft]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",_t,At,d]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[gn,Sp]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":H()}],opacity:[{opacity:[gn,_t,At]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none",_t,At]}],blur:[{blur:re()}],brightness:[{brightness:[gn,_t,At]}],contrast:[{contrast:[gn,_t,At]}],"drop-shadow":[{"drop-shadow":["","none",f,_t,At]}],grayscale:[{grayscale:["",gn,_t,At]}],"hue-rotate":[{"hue-rotate":[gn,_t,At]}],invert:[{invert:["",gn,_t,At]}],saturate:[{saturate:[gn,_t,At]}],sepia:[{sepia:["",gn,_t,At]}],"backdrop-filter":[{"backdrop-filter":["","none",_t,At]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[gn,_t,At]}],"backdrop-contrast":[{"backdrop-contrast":[gn,_t,At]}],"backdrop-grayscale":[{"backdrop-grayscale":["",gn,_t,At]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[gn,_t,At]}],"backdrop-invert":[{"backdrop-invert":["",gn,_t,At]}],"backdrop-opacity":[{"backdrop-opacity":[gn,_t,At]}],"backdrop-saturate":[{"backdrop-saturate":[gn,_t,At]}],"backdrop-sepia":[{"backdrop-sepia":["",gn,_t,At]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_t,At]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[gn,"initial",_t,At]}],ease:[{ease:["linear","initial",E,_t,At]}],delay:[{delay:[gn,_t,At]}],animate:[{animate:["none",S,_t,At]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,_t,At]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[_t,At,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"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",_t,At]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",_t,At]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[gn,eD,Sp,P6]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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-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-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"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Bft=hft(Lft);function Ke(...e){return Bft(lr(e))}const ZD=Tb("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Oo=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?Zs:"button";return y.jsx(o,{className:Ke(ZD({variant:t,size:n,className:e})),ref:s,...i})});Oo.displayName="Button";const k7=WR,XT=GR,ZT=YR,xS=_.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Rre,{children:y.jsx($w,{ref:r,sideOffset:t,className:Ke("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));xS.displayName=$w.displayName;const fw=_.forwardRef(({children:e,tooltip:t,side:n="bottom",className:r,...i},s)=>y.jsx(k7,{children:y.jsxs(XT,{children:[y.jsx(ZT,{asChild:!0,children:y.jsxs(Oo,{variant:"ghost",size:"icon",...i,className:Ke("size-6 p-1",r),ref:s,children:[e,y.jsx("span",{className:"sr-only",children:t})]})}),y.jsx(xS,{side:n,children:t})]})}));fw.displayName="TooltipIconButton";const Wpe=_.forwardRef(({className:e,...t},n)=>y.jsx(vse,{ref:n,className:Ke("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Wpe.displayName=vse.displayName;const $ft=_.forwardRef(({className:e,...t},n)=>y.jsx(xse,{ref:n,className:Ke("aspect-square h-full w-full",e),...t}));$ft.displayName=xse.displayName;const Gpe=_.forwardRef(({className:e,...t},n)=>y.jsx(wse,{ref:n,className:Ke("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Gpe.displayName=wse.displayName;const zft=({alt:e,src:t,...n})=>{const[r,i]=_.useState(!1);return _.useEffect(()=>{i(!1)},[t]),r||!t?y.jsxs("div",{children:[y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",width:"150",height:"150",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),y.jsx("p",{className:"text-xs italic text-muted-foreground -mt-[0.625rem] mb-[0.625rem]",children:"Image link is broken"})]}):y.jsx("img",{src:t,alt:e,...n,onError:()=>{i(!0)}})},Hft=v$e({style:hze.coldarkDark,customStyle:{margin:0,backgroundColor:"black"}}),Vft=()=>y.jsx(F7e,{remarkPlugins:[Ooe],className:"aui-md",components:Gft}),Uft=_.memo(Vft),qft=({language:e,code:t})=>{const{isCopied:n,copyToClipboard:r}=Wft(),i=()=>{!t||n||r(t)};return y.jsxs("div",{style:{background:"hsl(0 0% 100% / 0.06)",borderTopRightRadius:"0.5rem",borderTopLeftRadius:"0.5rem",marginTop:"0.5rem",border:"1px solid hsl(0 0% 20.4%)",borderBottom:"none"},className:"flex items-center justify-between gap-4 px-4 py-2 text-sm font-semibold text-white",children:[y.jsx("span",{className:"lowercase [&>span]:text-xs",children:e}),y.jsx(fw,{tooltip:"Copy",onClick:i,children:y.jsxs("span",{className:"grid",children:[y.jsx("span",{style:{gridArea:"1/1"},className:Ke("transition-transform",n?"scale-100":"scale-0"),children:y.jsx(rg,{size:14})},"checkmark"),y.jsx("span",{style:{gridArea:"1/1"},className:Ke("transition-transform",n?"scale-0":"scale-100"),children:y.jsx(Gw,{size:14})},"copy")]})})]})},Wft=({copiedDuration:e=1500}={})=>{const[t,n]=_.useState(!1);return{isCopied:t,copyToClipboard:i=>{i&&navigator.clipboard.writeText(i).then(()=>{n(!0),setTimeout(()=>n(!1),e)})}}},Gft=w7e({h1:({className:e,...t})=>y.jsx("h1",{className:Ke("mb-8 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0",e),...t,style:{marginBottom:"2rem"}}),h2:({className:e,...t})=>y.jsx("h2",{className:Ke("mb-4 mt-8 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"2rem"}}),h3:({className:e,...t})=>y.jsx("h3",{className:Ke("scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h4:({className:e,...t})=>y.jsx("h4",{className:Ke("scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h5:({className:e,...t})=>y.jsx("h5",{className:Ke("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),h6:({className:e,...t})=>y.jsx("h6",{className:Ke("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),p:({className:e,...t})=>y.jsx("p",{className:Ke("leading-7 first:mt-0 last:mb-0",e),...t}),a:({className:e,...t})=>y.jsx("a",{className:Ke("text-primary font-medium underline underline-offset-4",e),...t}),blockquote:({className:e,...t})=>y.jsx("blockquote",{className:Ke("border-l-2 pl-6 italic",e),...t}),ul:({className:e,...t})=>y.jsx("ul",{className:Ke("my-5 ml-6 list-disc [&>li]:mt-2",e),...t}),ol:({className:e,...t})=>y.jsx("ol",{className:Ke("my-5 ml-6 list-decimal [&>li]:mt-2",e),...t}),hr:({className:e,...t})=>y.jsx("hr",{className:Ke("my-5 border-b",e),...t}),table:({className:e,...t})=>y.jsx("table",{className:Ke("my-5 w-full border-separate border-spacing-0 overflow-y-auto",e),...t}),th:({className:e,...t})=>y.jsx("th",{className:Ke("bg-muted px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),td:({className:e,...t})=>y.jsx("td",{className:Ke("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),tr:({className:e,...t})=>y.jsx("tr",{className:Ke("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",e),...t}),sup:({className:e,...t})=>y.jsx("sup",{className:Ke("[&>a]:text-xs [&>a]:no-underline",e),...t}),pre:({className:e,...t})=>y.jsx("pre",{...t,style:{borderBottomRightRadius:"0.5rem",borderBottomLeftRadius:"0.5rem",background:"transparent",fontSize:"0.875rem",marginBottom:"0.5rem",border:"1px solid hsl(0 0% 20.4%)"},className:Ke("overflow-x-auto p-4 text-white",e)}),code:function({className:t,...n}){const r=uoe();return y.jsxs("pre",{style:{fontSize:"0.875rem",display:"inline"},children:[y.jsx("code",{className:Ke(!r&&"bg-muted rounded border font-semibold",t),...n,style:{fontWeight:"400",paddingBlock:r?0:"0.1em",paddingInline:r?0:"0.3em"}})," "]})},CodeHeader:qft,SyntaxHighlighter:Hft,img:zft}),Yft={sm:"[&>svg]:h-icon-sm [&>svg]:w-icon-sm",default:"[&>svg]:h-icon-default [&>svg]:w-icon-default",lg:"[&>svg]:h-icon-lg [&>svg]:w-icon-lg"},Ht=({children:e,className:t,size:n="default",...r})=>y.jsx("span",{className:lr("block",Yft[n],t),...r,children:e}),WX={default:"text-icon3",success:"text-accent1",error:"text-accent2",info:"text-accent3"},Tr=({icon:e,variant:t="default",className:n,children:r,...i})=>y.jsxs("div",{className:lr("bg-surface4 text-ui-sm gap-md h-badge-default inline-flex items-center rounded-md",e?"pl-md pr-1.5":"px-1.5",e||t==="default"?"text-icon5":WX[t],n),...i,children:[e&&y.jsx("span",{className:WX[t],children:y.jsx(Ht,{children:e})}),r]}),Fb=e=>y.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 15C10.3565 15 12.137 14.2625 13.4497 12.9497C14.7625 11.637 15.5 9.85652 15.5 8C15.5 6.14348 14.7625 4.36301 13.4497 3.05025C12.137 1.7375 10.3565 1 8.5 1C6.64348 1 4.86301 1.7375 3.55025 3.05025C2.2375 4.36301 1.5 6.14348 1.5 8C1.5 9.85652 2.2375 11.637 3.55025 12.9497C4.86301 14.2625 6.64348 15 8.5 15ZM5.621 10.879L4.611 11.889C3.84179 11.1198 3.31794 10.1398 3.1057 9.07291C2.89346 8.00601 3.00236 6.90013 3.41864 5.89512C3.83491 4.89012 4.53986 4.03112 5.44434 3.42676C6.34881 2.8224 7.41219 2.49983 8.5 2.49983C9.58781 2.49983 10.6512 2.8224 11.5557 3.42676C12.4601 4.03112 13.1651 4.89012 13.5814 5.89512C13.9976 6.90013 14.1065 8.00601 13.8943 9.07291C13.6821 10.1398 13.1582 11.1198 12.389 11.889L11.379 10.879C11.1004 10.6003 10.7696 10.3792 10.4055 10.2284C10.0414 10.0776 9.6511 9.99995 9.257 10H7.743C7.3489 9.99995 6.95865 10.0776 6.59455 10.2284C6.23045 10.3792 5.89963 10.6003 5.621 10.879Z",fill:"currentColor"}),y.jsx("path",{d:"M8.5 4C7.96957 4 7.46086 4.21071 7.08579 4.58579C6.71071 4.96086 6.5 5.46957 6.5 6V6.5C6.5 7.03043 6.71071 7.53914 7.08579 7.91421C7.46086 8.28929 7.96957 8.5 8.5 8.5C9.03043 8.5 9.53914 8.28929 9.91421 7.91421C10.2893 7.53914 10.5 7.03043 10.5 6.5V6C10.5 5.46957 10.2893 4.96086 9.91421 4.58579C9.53914 4.21071 9.03043 4 8.5 4Z",fill:"currentColor"})]}),Ype=e=>y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.97865 4.57004C8.22604 4.75795 8.27426 5.11082 8.08635 5.35821L6.05486 8.03279C5.94873 8.17251 5.78348 8.25471 5.60803 8.25505C5.43257 8.2554 5.267 8.17385 5.16032 8.03454L3.80937 6.27034C3.6205 6.02369 3.66733 5.67063 3.91398 5.48176C4.16063 5.29288 4.51369 5.33972 4.70257 5.58637L5.6051 6.76498L7.19048 4.67774C7.37839 4.43036 7.73126 4.38213 7.97865 4.57004Z",fill:"currentColor"})]}),Kft=e=>y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M4.60059 6.30005L8.00098 9.70005L11.3996 6.30142",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})}),Kpe=e=>y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.89741 4.10293C8.11707 4.32261 8.11706 4.67877 7.89738 4.89843L6.79517 6.00058L7.8962 7.10155C8.11588 7.32122 8.11589 7.67737 7.89623 7.89705C7.67656 8.11673 7.32041 8.11674 7.10073 7.89707L5.99965 6.79605L4.89856 7.89707C4.67889 8.11673 4.32273 8.11672 4.10307 7.89704C3.88341 7.67737 3.88342 7.32121 4.10309 7.10155L5.20413 6.00058L4.10191 4.89843C3.88224 4.67877 3.88223 4.32262 4.10189 4.10294C4.32155 3.88326 4.67771 3.88325 4.89738 4.10292L5.99965 5.20511L7.10191 4.10291C7.32159 3.88325 7.67774 3.88326 7.89741 4.10293Z",fill:"currentColor"})]}),Xft=e=>y.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.941406 2.831V3.75745C0.941406 4.27885 1.35491 4.76002 2.05273 5.14711C2.10389 5.17549 2.15658 5.20337 2.21074 5.23071C3.23028 5.74546 4.77322 6.07356 6.50007 6.07356C8.31866 6.07356 9.93328 5.70967 10.9474 5.14711C11.6453 4.76002 12.0587 4.27886 12.0587 3.75745V2.831C12.0587 1.55185 9.57003 0.514893 6.50007 0.514893C3.4301 0.514893 0.941406 1.55185 0.941406 2.831ZM1.02052 6.14518C0.968505 6.27247 0.941406 6.40331 0.941406 6.53678V7.46322C0.941406 7.98463 1.35491 8.46579 2.05273 8.85289C3.06686 9.41542 4.68148 9.77933 6.50007 9.77933C8.22692 9.77933 9.76986 9.45128 10.7894 8.93645C10.8436 8.90912 10.8962 8.88124 10.9474 8.85289C11.6453 8.46579 12.0587 7.98462 12.0587 7.46322V6.53678C12.0587 6.40331 12.0316 6.27248 11.9796 6.14519C11.664 6.35469 11.3187 6.53063 10.9652 6.67795C9.75207 7.18337 8.17267 7.46322 6.50007 7.46322C4.82747 7.46322 3.24803 7.18337 2.03502 6.67795C1.68142 6.53063 1.3362 6.35469 1.02052 6.14518ZM1.02052 9.85095C0.968505 9.97824 0.941406 10.1091 0.941406 10.2426V11.169C0.941406 12.4481 3.4301 13.4851 6.50007 13.4851C9.57003 13.4851 12.0587 12.4481 12.0587 11.169V10.2426C12.0587 10.1091 12.0316 9.97824 11.9796 9.85095C11.664 10.0605 11.3187 10.2364 10.9652 10.3837C9.75207 10.8891 8.17267 11.169 6.50007 11.169C4.82747 11.169 3.24803 10.8891 2.03502 10.3837C1.68142 10.2364 1.3362 10.0605 1.02052 9.85095Z",fill:"currentColor"})}),Zft=e=>y.jsxs("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M6.83531 7.0062C6.64515 7.35069 6.15 7.35069 5.95984 7.0062L2.99029 1.62664C2.7855 1.25565 3.10614 0.814077 3.5223 0.893977L6.30195 1.42765C6.36421 1.43961 6.42818 1.43961 6.49044 1.42766L9.27301 0.893806C9.68915 0.813965 10.0097 1.25552 9.80495 1.62648L6.83531 7.0062Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77553 6.93249C4.70399 6.80288 4.52254 6.79459 4.4558 6.92674C4.30167 7.23196 4.21484 7.57697 4.21484 7.94226C4.21484 9.18814 5.22483 10.1981 6.4707 10.1981C7.71658 10.1981 8.72656 9.18814 8.72656 7.94226C8.72656 7.51818 8.60954 7.12143 8.40603 6.78254C8.33262 6.66031 8.15949 6.67411 8.09059 6.79894L7.70941 7.48947C7.13892 8.52294 5.65347 8.52293 5.08299 7.48947L4.77553 6.93249ZM5.56313 5.8764C5.46196 5.92091 5.42707 6.04354 5.48048 6.1403L5.95846 7.0062C6.14862 7.35069 6.64377 7.35069 6.83393 7.0062L7.33905 6.09115C7.39467 5.99039 7.35417 5.86275 7.2461 5.8232C7.00431 5.7347 6.74315 5.6864 6.4707 5.6864C6.14785 5.6864 5.84083 5.75423 5.56313 5.8764Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.01974 3.49407C4.17993 3.78426 4.54405 3.88541 4.85312 3.76562C5.35484 3.57118 5.90031 3.46453 6.4707 3.46453C7.0005 3.46453 7.50881 3.55654 7.98052 3.72545C8.28711 3.83523 8.64168 3.73133 8.79906 3.44623C8.96234 3.15043 8.85109 2.77497 8.5364 2.652C7.89621 2.40184 7.19949 2.26453 6.4707 2.26453C5.69013 2.26453 4.94634 2.42205 4.2694 2.70703C3.96395 2.83562 3.85958 3.20392 4.01974 3.49407ZM9.9461 4.47216C9.81565 4.70848 9.85645 4.99948 10.0211 5.21339C10.6026 5.96887 10.9484 6.91518 10.9484 7.94226C10.9484 10.4152 8.94369 12.42 6.4707 12.42C3.99772 12.42 1.99297 10.4152 1.99297 7.94226C1.99297 6.96004 2.30923 6.05168 2.84547 5.31345C3.0006 5.09989 3.03605 4.81591 2.90848 4.58482C2.70986 4.22501 2.22216 4.15342 1.97124 4.47893C1.2324 5.43738 0.792968 6.6385 0.792968 7.94226C0.792969 11.078 3.33498 13.62 6.4707 13.62C9.60643 13.62 12.1484 11.078 12.1484 7.94226C12.1484 6.58193 11.67 5.33333 10.8723 4.35553C10.6173 4.04298 10.141 4.11901 9.9461 4.47216Z",fill:"currentColor"})]}),Jft=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M8.5 3V13",stroke:"currentColor",strokeWidth:"0.5"})}),Qft=e=>y.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("g",{clipPath:"url(#clip0_21999_22095)",children:y.jsx("path",{d:"M7.5 0.75C3.6325 0.75 0.5 3.8825 0.5 7.75C0.5 10.8475 2.50375 13.4637 5.28625 14.3912C5.63625 14.4525 5.7675 14.2425 5.7675 14.0587C5.7675 13.8925 5.75875 13.3412 5.75875 12.755C4 13.0787 3.545 12.3262 3.405 11.9325C3.32625 11.7312 2.985 11.11 2.6875 10.9437C2.4425 10.8125 2.0925 10.4887 2.67875 10.48C3.23 10.4712 3.62375 10.9875 3.755 11.1975C4.385 12.2562 5.39125 11.9587 5.79375 11.775C5.855 11.32 6.03875 11.0137 6.24 10.8387C4.6825 10.6637 3.055 10.06 3.055 7.3825C3.055 6.62125 3.32625 5.99125 3.7725 5.50125C3.7025 5.32625 3.4575 4.60875 3.8425 3.64625C3.8425 3.64625 4.42875 3.4625 5.7675 4.36375C6.3275 4.20625 6.9225 4.1275 7.5175 4.1275C8.1125 4.1275 8.7075 4.20625 9.2675 4.36375C10.6062 3.45375 11.1925 3.64625 11.1925 3.64625C11.5775 4.60875 11.3325 5.32625 11.2625 5.50125C11.7087 5.99125 11.98 6.6125 11.98 7.3825C11.98 10.0687 10.3438 10.6637 8.78625 10.8387C9.04 11.0575 9.25875 11.4775 9.25875 12.1337C9.25875 13.07 9.25 13.8225 9.25 14.0587C9.25 14.2425 9.38125 14.4612 9.73125 14.3912C11.1209 13.9221 12.3284 13.029 13.1839 11.8377C14.0393 10.6463 14.4996 9.21668 14.5 7.75C14.5 3.8825 11.3675 0.75 7.5 0.75Z",fill:"currentColor"})}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_21999_22095",children:y.jsx("rect",{width:"14",height:"14",fill:"currentColor",transform:"translate(0.5 0.75)"})})})]}),ept=e=>y.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M7.07303 7.39921C6.65882 7.39921 6.32303 7.735 6.32303 8.14921C6.32303 8.56343 6.65882 8.89921 7.07303 8.89921H7.75V10.6187C7.75 11.0329 8.08579 11.3687 8.5 11.3687C8.91421 11.3687 9.25 11.0329 9.25 10.6187V8.14921C9.25 7.735 8.91421 7.39921 8.5 7.39921H7.07303Z",fill:"currentColor"}),y.jsx("path",{d:"M8.50309 4.72995C7.9971 4.72995 7.58691 5.14014 7.58691 5.64613C7.58691 6.15212 7.9971 6.56231 8.50309 6.56231C9.00908 6.56231 9.41927 6.15212 9.41927 5.64613C9.41927 5.14014 9.00908 4.72995 8.50309 4.72995Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.75293C5.04984 1.75293 2.25293 4.54984 2.25293 8C2.25293 11.4502 5.04984 14.2471 8.5 14.2471C11.9502 14.2471 14.7471 11.4502 14.7471 8C14.7471 4.54984 11.9502 1.75293 8.5 1.75293ZM3.75293 8C3.75293 5.37827 5.87827 3.25293 8.5 3.25293C11.1218 3.25293 13.2471 5.37826 13.2471 8C13.2471 10.6218 11.1218 12.7471 8.5 12.7471C5.87826 12.7471 3.75293 10.6218 3.75293 8Z",fill:"currentColor"})]}),Xpe=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M3.8674 9.19968L4.14554 10.8649C4.23965 11.4283 4.75254 11.8237 5.32137 11.7713L5.58252 11.7472C6.56555 11.6567 7.43309 12.3868 7.51181 13.3708L7.59308 14.3867C7.60422 14.5259 7.71868 14.6342 7.85825 14.6376L9.91053 14.6876C10.1066 14.6924 10.2434 14.4948 10.17 14.3129L8.90452 11.1782C8.80956 10.9429 8.65085 10.7389 8.44626 10.5889L7.90134 10.1895C7.70604 10.0464 7.55223 9.85411 7.45759 9.63124C7.15011 8.90712 6.6579 7.71234 6.37054 6.88944C6.19204 6.3783 5.79931 6.29158 5.45492 6.21553C4.98179 6.11106 4.5999 6.02673 4.99001 4.88985C5.66408 2.92541 8.06015 2.07904 10.6601 3.33088C12.6488 4.2884 13.1187 6.35416 13.0328 7.58237C13.0297 7.62768 13.0214 7.67186 13.0094 7.71566C12.8829 8.17534 12.368 8.40491 11.9415 8.19169L10.3022 7.37201C10.2069 7.32439 10.0927 7.33657 10.0096 7.40322L8.64809 8.49559C8.55405 8.57104 8.52072 8.69931 8.56615 8.811L10.8995 14.5478C10.9404 14.6483 11.0369 14.715 11.1454 14.7177L12.0572 14.7399C12.2581 14.7448 12.3951 14.5382 12.3124 14.3551L11.8681 13.3706C11.4211 12.3803 11.6047 11.2192 12.3354 10.4151L13.4616 9.17575C13.7473 8.86125 13.9224 8.46187 13.9599 8.03858L13.9763 7.85359C14.2866 4.35298 11.377 1.41272 7.87336 1.68639C6.03919 1.82965 4.45399 3.02228 3.80807 4.74492L3.70275 5.02579C3.5828 5.34571 3.62741 5.70411 3.82213 5.98485L3.88946 6.08192C4.12183 6.41695 4.0958 6.86726 3.82637 7.17328L3.06705 8.03572C2.96261 8.15435 2.98058 8.33664 3.10617 8.43259L3.66059 8.85617C3.77064 8.94026 3.84458 9.06307 3.8674 9.19968Z",fill:"currentColor"})}),tpt=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12V11C3 10.6022 3.15804 10.2206 3.43934 9.93934C3.72064 9.65804 4.10218 9.5 4.5 9.5C4.89782 9.5 5.27936 9.65804 5.56066 9.93934C5.84196 10.2206 6 10.6022 6 11V12C6 12.3978 5.84196 12.7794 5.56066 13.0607C5.27936 13.342 4.89782 13.5 4.5 13.5C4.10218 13.5 3.72064 13.342 3.43934 13.0607C3.15804 12.7794 3 12.3978 3 12ZM7 12V8.5C7 8.10218 7.15804 7.72064 7.43934 7.43934C7.72064 7.15804 8.10218 7 8.5 7C8.89782 7 9.27936 7.15804 9.56066 7.43934C9.84196 7.72064 10 8.10218 10 8.5V12C10 12.3978 9.84196 12.7794 9.56066 13.0607C9.27936 13.342 8.89782 13.5 8.5 13.5C8.10218 13.5 7.72064 13.342 7.43934 13.0607C7.15804 12.7794 7 12.3978 7 12ZM11 12V4C11 3.60218 11.158 3.22064 11.4393 2.93934C11.7206 2.65804 12.1022 2.5 12.5 2.5C12.8978 2.5 13.2794 2.65804 13.5607 2.93934C13.842 3.22064 14 3.60218 14 4V12C14 12.3978 13.842 12.7794 13.5607 13.0607C13.2794 13.342 12.8978 13.5 12.5 13.5C12.1022 13.5 11.7206 13.342 11.4393 13.0607C11.158 12.7794 11 12.3978 11 12Z",fill:"currentColor"})}),npt=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M5.25684 12.6387L10.4003 3.36133H11.7432L6.5997 12.6387H5.25684Z",fill:"currentColor"})}),Vf=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5605 1.42351C8.0791 0.904904 8.92215 0.906157 9.4395 1.42351L10.6922 2.67617C11.2108 3.19477 11.2095 4.03782 10.6922 4.55517L9.4395 5.80783C8.9209 6.32643 8.07785 6.32518 7.5605 5.80783L6.30784 4.55517C5.78923 4.03656 5.79049 3.19352 6.30784 2.67617L7.5605 1.42351ZM3.17618 5.80783C3.69478 5.28923 4.53782 5.29048 5.05517 5.80783L6.30784 7.0605C6.82644 7.5791 6.82519 8.42214 6.30784 8.93949L5.05517 10.1922C4.53657 10.7108 3.69353 10.7095 3.17618 10.1922L1.92351 8.93949C1.40491 8.42089 1.40616 7.57785 1.92351 7.0605L3.17618 5.80783ZM11.9448 5.80783C12.4634 5.28923 13.3065 5.29048 13.8238 5.80783L15.0765 7.0605C15.5951 7.5791 15.5938 8.42214 15.0765 8.93949L13.8238 10.1922C13.3052 10.7108 12.4622 10.7095 11.9448 10.1922L10.6922 8.93949C10.1736 8.42089 10.1748 7.57785 10.6922 7.0605L11.9448 5.80783ZM7.5605 10.1922C8.0791 9.67355 8.92215 9.67481 9.4395 10.1922L10.6922 11.4448C11.2108 11.9634 11.2095 12.8065 10.6922 13.3238L9.4395 14.5765C8.9209 15.0951 8.07785 15.0938 7.5605 14.5765L6.30784 13.3238C5.78923 12.8052 5.79049 11.9622 6.30784 11.4448L7.5605 10.1922Z",fill:"currentColor"})}),b9=e=>y.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M3.0498 3.17139V7.95137M6.91346 12.8737L4.04984 12.8738C3.49754 12.8738 3.0498 12.4261 3.0498 11.8738V7.95137M3.0498 7.95137L6.85968 7.95125",stroke:"currentColor",strokeLinecap:"round"}),y.jsx("path",{d:"M6.59668 3.12631L13.9507 3.12631",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),y.jsx("path",{d:"M10.293 7.95099L13.8072 7.95099",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),y.jsx("path",{d:"M10.293 12.8025L13.8072 12.8025",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),wS=e=>y.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24388 2.4018C6.24388 2.0394 6.53767 1.74561 6.90008 1.74561H10.0991C10.4614 1.74561 10.7553 2.0394 10.7553 2.4018V4.57546C10.7553 4.93787 10.4614 5.23166 10.0991 5.23166H9.31982V7.35469L10.0033 9.22664C9.90442 9.20146 9.80035 9.1761 9.6915 9.14986L9.62652 9.13422C9.30473 9.05687 8.92256 8.96501 8.61993 8.84491C8.5819 8.82981 8.54147 8.81292 8.49957 8.79391C8.45767 8.81292 8.41724 8.82981 8.3792 8.84491C8.07657 8.96501 7.6944 9.05687 7.37261 9.13422L7.30763 9.14986C7.19879 9.1761 7.09471 9.20146 6.99577 9.22664L7.67932 7.35469V5.23166H6.90008C6.53767 5.23166 6.24388 4.93787 6.24388 4.57546V2.4018ZM6.99577 9.22664C6.99577 9.22664 6.99578 9.22664 6.99577 9.22664L6.43283 10.7683H6.81806C7.18047 10.7683 7.47426 11.0622 7.47426 11.4245V13.5982C7.47426 13.9606 7.18047 14.2544 6.81806 14.2544H3.61909C3.25668 14.2544 2.96289 13.9606 2.96289 13.5982V11.4245C2.96289 11.0622 3.25668 10.7683 3.61909 10.7683H4.26617C4.2921 10.4663 4.32783 10.1494 4.37744 9.85171C4.43762 9.49063 4.52982 9.08135 4.68998 8.76102C4.93975 8.2615 5.44743 8.01751 5.7771 7.88788C6.14684 7.74249 6.57537 7.63889 6.92317 7.55505C7.24707 7.47696 7.49576 7.41679 7.67932 7.35469L6.99577 9.22664ZM6.43283 10.7683L6.99577 9.22664C6.75846 9.28705 6.55067 9.34646 6.37745 9.41458C6.22784 9.47341 6.1623 9.51712 6.14023 9.53254C6.09752 9.63631 6.04409 9.83055 5.99562 10.1214C5.96201 10.3231 5.93498 10.5439 5.91341 10.7683H6.43283ZM10.0033 9.22664L9.31982 7.35469C9.50338 7.41679 9.75206 7.47696 10.076 7.55505C10.4238 7.63889 10.8523 7.74249 11.2221 7.88788C11.5517 8.01751 12.0594 8.2615 12.3091 8.76102C12.4693 9.08135 12.5615 9.49063 12.6217 9.85171C12.6713 10.1494 12.707 10.4663 12.733 10.7683H13.38C13.7424 10.7683 14.0362 11.0622 14.0362 11.4245V13.5982C14.0362 13.9606 13.7424 14.2544 13.38 14.2544H10.1811C9.81867 14.2544 9.52488 13.9606 9.52488 13.5982V11.4245C9.52488 11.0622 9.81867 10.7683 10.1811 10.7683H10.5663L10.0033 9.22664ZM10.0033 9.22664L10.5663 10.7683H11.0857C11.0642 10.5439 11.0372 10.3231 11.0035 10.1214C10.9551 9.83055 10.9016 9.63631 10.8589 9.53254C10.8369 9.51712 10.7713 9.47341 10.6217 9.41458C10.4485 9.34646 10.2407 9.28705 10.0033 9.22664Z",fill:"currentColor"})}),rpt=e=>y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M2.0625 5.99976C2.0625 3.82513 3.82538 2.06226 6 2.06226C6.58712 2.06226 7.14423 2.19076 7.64473 2.42117V1.21042C7.12905 1.03337 6.57575 0.937256 6 0.937256C3.20406 0.937256 0.9375 3.20381 0.9375 5.99976C0.9375 8.7957 3.20406 11.0623 6 11.0623C8.79594 11.0623 11.0625 8.7957 11.0625 5.99976H9.9375C9.9375 8.17438 8.17462 9.93726 6 9.93726C3.82538 9.93726 2.0625 8.17438 2.0625 5.99976Z",fill:"currentColor"}),y.jsx("path",{d:"M9.28577 4.3986C9.08709 4.3986 8.92603 4.23753 8.92603 4.03885V0.978563C8.92603 0.681899 9.16652 0.441406 9.46318 0.441406C9.75985 0.441406 10.0003 0.6819 10.0003 0.978564V3.25858C10.0003 3.33638 10.0634 3.39944 10.1412 3.39944H11.2091C11.485 3.39944 11.7087 3.62311 11.7087 3.89902C11.7087 4.17493 11.485 4.3986 11.2091 4.3986H9.28577Z",fill:"currentColor"}),y.jsx("path",{d:"M6.57568 3.69244C6.57568 3.38178 6.32384 3.12994 6.01318 3.12994C5.70252 3.12994 5.45068 3.38178 5.45068 3.69244V6.22272L6.7242 7.88675C6.91301 8.13346 7.26606 8.18039 7.51276 7.99159C7.75946 7.80278 7.8064 7.44973 7.61759 7.20303L6.57568 5.84162V3.69244Z",fill:"currentColor"})]}),A7=e=>y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("path",{d:"M6.53918 9.32122C6.34324 9.51508 6.02724 9.51338 5.83338 9.31744C5.63952 9.1215 5.6412 8.80551 5.83713 8.61164L10.1958 4.29931C10.7996 3.70186 10.8017 2.72852 10.2041 2.12839L10.1899 2.11428C9.58767 1.52481 8.62251 1.53208 8.0292 2.13052L2.29396 7.91536C2.0999 8.1111 1.78388 8.11246 1.58813 7.9184C1.39239 7.72433 1.39103 7.40831 1.58509 7.21257L7.32036 1.42774C8.30005 0.439581 9.89369 0.427613 10.8881 1.40094L10.9116 1.42425C11.4942 2.00929 11.7316 2.80913 11.6232 3.56922C12.389 3.44866 13.1999 3.67918 13.7961 4.26273C14.804 5.24929 14.8147 6.86824 13.82 7.86808L8.5531 13.1619C8.50045 13.2148 8.50024 13.3002 8.55263 13.3534L9.65448 14.4717C9.84794 14.668 9.8456 14.984 9.64925 15.1775C9.45291 15.3709 9.13691 15.3686 8.94345 15.1723L7.84163 14.054C7.40505 13.6109 7.40677 12.8988 7.8455 12.4579L13.1124 7.16405C13.7161 6.55727 13.7095 5.57478 13.0979 4.97606C12.4925 4.38347 11.4942 4.40725 10.8978 5.00886L6.53918 9.32122Z",fill:"currentColor"}),y.jsx("path",{d:"M8.84622 2.75411C9.04697 2.56188 9.36555 2.56381 9.56395 2.76076C9.76234 2.95771 9.76658 3.27625 9.57582 3.4784L9.56661 3.48794L5.25912 7.82701C4.67023 8.42022 4.672 9.37798 5.26305 9.96904C5.85624 10.5622 6.81818 10.5615 7.41052 9.9675L11.6299 5.73599L11.6395 5.72671C11.8406 5.53493 12.1592 5.53756 12.3572 5.73496C12.5583 5.93548 12.5587 6.26104 12.3582 6.46214L8.13877 10.6937C7.14498 11.6903 5.53105 11.6915 4.53584 10.6963C3.5442 9.70461 3.54127 8.09774 4.52928 7.10248L8.83677 2.76342L8.84622 2.75411Z",fill:"currentColor"})]}),ipt=e=>y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:y.jsx("path",{d:"M1.5 8.5V8C1.5 7.60218 1.65804 7.22064 1.93934 6.93934C2.22064 6.65804 2.60218 6.5 3 6.5H13C13.3978 6.5 13.7794 6.65804 14.0607 6.93934C14.342 7.22064 14.5 7.60218 14.5 8V8.5M8.70667 4.20667L7.29333 2.79333C7.20048 2.70037 7.09022 2.62661 6.96886 2.57628C6.84749 2.52595 6.71739 2.50003 6.586 2.5H3C2.60218 2.5 2.22064 2.65804 1.93934 2.93934C1.65804 3.22064 1.5 3.60218 1.5 4V12C1.5 12.3978 1.65804 12.7794 1.93934 13.0607C2.22064 13.342 2.60218 13.5 3 13.5H13C13.3978 13.5 13.7794 13.342 14.0607 13.0607C14.342 12.7794 14.5 12.3978 14.5 12V6C14.5 5.60218 14.342 5.22064 14.0607 4.93934C13.7794 4.65804 13.3978 4.5 13 4.5H9.414C9.14887 4.49977 8.89402 4.39426 8.70667 4.20667Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),spt=()=>_.useMemo(()=>tT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",background:"transparent",gutterForeground:"#939393"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),GX=({data:e})=>{const t=JSON.stringify(e,null,2),n=spt();return y.jsx("div",{className:"rounded-md bg-[#1a1a1a] p-1 font-mono",children:y.jsx(Eb,{value:t,theme:n,extensions:[nS]})})};async function opt(e,t){const{codeToTokens:n,bundledLanguages:r}=await Vre(async()=>{const{codeToTokens:s,bundledLanguages:o}=await import("./index-DqZVpQYe.js");return{codeToTokens:s,bundledLanguages:o}},[]);if(!(t in r))return null;const{tokens:i}=await n(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}const apt=({toolName:e,argsText:t,result:n})=>{const[r,i]=_.useState(!0);let s;try{const o=JSON.parse(t);s=y.jsx(GX,{data:o})}catch{s=y.jsx("pre",{className:"whitespace-pre-wrap",children:t})}return y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>i(o=>!o),className:"flex items-center gap-2",children:[y.jsx(Ht,{children:y.jsx($_,{className:Ke("transition-all",r?"rotate-90":"rotate-180")})}),y.jsx(Tr,{icon:y.jsx(Vf,{className:"text-[#ECB047]"}),children:e})]}),!r&&y.jsx("div",{className:"pt-2",children:y.jsxs("div",{className:"border-sm border-border1 rounded-lg bg-surface4",children:[y.jsxs("div",{className:"px-4 border-b-sm border-border1 py-2",children:[y.jsx("p",{className:"font-medium pb-2",children:"Tool arguments"}),s]}),n!==void 0&&y.jsxs("div",{className:"px-4 py-2",children:[y.jsx("p",{className:"font-medium pb-2",children:"Tool result"}),typeof n=="string"?y.jsx("pre",{className:"whitespace-pre-wrap",children:n}):y.jsx(GX,{data:n})]})]})})]})},lpt=({ToolFallback:e})=>{const t=gb(),n=t.content.length===1&&t.content[0].type==="tool-call";return y.jsxs(aI,{className:"max-w-full",children:[y.jsx("div",{className:"text-icon6 text-ui-lg leading-ui-lg",children:y.jsx(lI,{components:{Text:Uft,tools:{Fallback:e||apt}}})}),y.jsx("div",{className:"h-6 pt-1",children:!n&&y.jsx(upt,{})})]})},upt=()=>y.jsx(Bie,{hideWhenRunning:!0,autohide:"always",autohideFloat:"single-branch",className:"flex gap-1 items-center transition-all",children:y.jsx($ie,{asChild:!0,children:y.jsxs(fw,{tooltip:"Copy",className:"bg-transparent text-icon3 hover:text-icon6",children:[y.jsx(aF,{copied:!0,children:y.jsx(rg,{})}),y.jsx(aF,{copied:!1,children:y.jsx(Gw,{})})]})})}),cpt=()=>y.jsx(aI,{className:"w-full flex justify-end pb-4",children:y.jsx("div",{className:"max-w-[366px] px-5 py-3 text-icon6 text-ui-lg leading-ui-lg rounded-lg bg-surface3",children:y.jsx(lI,{})})}),Zpe=(e,{enabled:t=!0})=>{const n=_.useRef(t);Ae.useEffect(()=>{if(!t||!(e!=null&&e.current))return;const r=e.current,i=new MutationObserver(()=>{n.current&&r.scrollTo({top:r.scrollHeight,behavior:"smooth"})});i.observe(r,{childList:!0,subtree:!0,characterData:!0});const s=o=>{const a=o.target,l=a.scrollTop+a.clientHeight,u=a.scrollHeight;l>=u-1?n.current=!0:n.current=!1};return r.addEventListener("scroll",s),()=>{r.removeEventListener("scroll",s),i.disconnect()}},[t,e])},dpt={"header-md":"text-header-md leading-header-md","ui-lg":"text-ui-lg leading-ui-lg","ui-md":"text-ui-md leading-ui-md","ui-sm":"text-ui-sm leading-ui-sm","ui-xs":"text-ui-xs leading-ui-xs"},hpt={mono:"font-mono"},xt=({as:e="p",className:t,variant:n="ui-md",font:r,...i})=>y.jsx(e,{className:lr(dpt[n],r&&hpt[r],t),...i}),Jpe=({ToolFallback:e,agentName:t,hasMemory:n})=>{const r=_.useRef(null);Zpe(r,{enabled:!0});const i=s=>y.jsx(lpt,{...s,ToolFallback:e});return y.jsxs(lse,{className:"max-w-[568px] w-full mx-auto h-[calc(100%-110px)] px-4",children:[y.jsxs(cse,{className:"py-10 overflow-y-auto scroll-smooth h-full",ref:r,autoScroll:!1,children:[y.jsxs("div",{children:[y.jsx(fpt,{agentName:t}),y.jsx(y9e,{components:{UserMessage:cpt,EditComposer:gpt,AssistantMessage:i}})]}),y.jsx(Pk,{empty:!1,children:y.jsx("div",{})})]}),y.jsx(ppt,{hasMemory:n})]})},fpt=({agentName:e})=>{const t=e??"",n=t.split(" ")??[];let r="A";return n.length===2?r=`${n[0][0]}${n[1][0]}`:t.length>0?r=`${t[0]}`:r="A",y.jsx(use,{children:y.jsxs("div",{className:"flex w-full flex-grow flex-col items-center justify-center",children:[y.jsx(Wpe,{children:y.jsx(Gpe,{children:r})}),y.jsx("p",{className:"mt-4 font-medium",children:"How can I help you today?"})]})})},ppt=({hasMemory:e})=>y.jsxs("div",{children:[y.jsxs(uI,{className:"w-full bg-surface3 rounded-lg border-sm border-border1 px-3 py-4 mt-auto h-[100px]",children:[y.jsx(hI,{asChild:!0,className:"w-full",children:y.jsx("textarea",{className:"text-ui-lg leading-ui-lg placeholder:text-icon3 text-icon6 bg-transparent focus:outline-none resize-none",autoFocus:!0,placeholder:"Enter your message...",name:"",id:""})}),y.jsx("div",{className:"flex justify-end",children:y.jsx(mpt,{})})]}),!e&&y.jsxs(xt,{variant:"ui-sm",className:"text-icon3 flex items-center gap-2 pt-0.5",children:[y.jsx(Ht,{children:y.jsx(ept,{})}),"Memory is not enabled. The conversation will not be persisted."]})]}),mpt=()=>y.jsxs(y.Fragment,{children:[y.jsx(Pk,{running:!1,children:y.jsx(sse,{asChild:!0,children:y.jsx(fw,{tooltip:"Send",variant:"default",className:"rounded-full border-sm border-[#363636] bg-[#292929]",children:y.jsx(T9e,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})})}),y.jsx(Pk,{running:!0,children:y.jsx(ase,{asChild:!0,children:y.jsx(fw,{tooltip:"Cancel",variant:"default",children:y.jsx(ypt,{})})})})]}),gpt=()=>y.jsxs(uI,{children:[y.jsx(hI,{}),y.jsxs("div",{children:[y.jsx(ase,{asChild:!0,children:y.jsx(Oo,{variant:"ghost",children:"Cancel"})}),y.jsx(sse,{asChild:!0,children:y.jsx(Oo,{children:"Send"})})]})]}),ypt=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:y.jsx("rect",{width:"10",height:"10",x:"3",y:"3",rx:"2"})}),Vl=e=>new cce({baseUrl:e||"",headers:e?{}:{"x-mastra-dev-playground":"true"}}),bpt=e=>e;function vpt({children:e,agentId:t,initialMessages:n,agentName:r,memory:i,threadId:s,baseUrl:o,refreshThreadList:a,modelSettings:l={},chatWithGenerate:u,runtimeContext:c}){const[d,f]=_.useState(!1),[p,b]=_.useState([]),[w,E]=_.useState(s),{frequencyPenalty:S,presencePenalty:k,maxRetries:A,maxSteps:P,maxTokens:M,temperature:F,topK:I,topP:j,instructions:B}=l,L=new _m;Object.entries(c??{}).forEach(([J,H])=>{L.set(J,H)}),_.useEffect(()=>{const J=n&&(n==null?void 0:n.length)>(p==null?void 0:p.length);if((p.length===0||w!==s||J&&w===s)&&n&&s&&i){const H=n==null?void 0:n.map(q=>{var W;return((W=q==null?void 0:q.toolInvocations)==null?void 0:W.length)>0?{...q,content:[...typeof q.content=="string"?[{type:"text",text:q.content}]:[],...q.toolInvocations.map(K=>({type:"tool-call",toolCallId:K==null?void 0:K.toolCallId,toolName:K==null?void 0:K.toolName,args:K==null?void 0:K.args,result:K==null?void 0:K.result}))]}:q}).filter(Boolean);b(H),E(s)}},[n,s,i]);const Y=Vl(o).getAgent(t),$=Oie({isRunning:d,messages:p,convertMessage:bpt,onNew:async J=>{var q;if(((q=J.content[0])==null?void 0:q.type)!=="text")throw new Error("Only text messages are supported");const H=J.content[0].text;b(W=>[...W,{role:"user",content:H}]),f(!0);try{if(u){const W=await Y.generate({messages:[{role:"user",content:H}],runId:t,frequencyPenalty:S,presencePenalty:k,maxRetries:A,maxSteps:P,maxTokens:M,temperature:F,topK:I,topP:j,instructions:B,runtimeContext:L,...i?{threadId:s,resourceId:t}:{}});if(W.response){const K=W.response.messages.reduce((V,X)=>{const re=Array.isArray(V.content)?V.content:[];if(typeof X.content=="string")return{...V,content:[...re,{type:"text",text:X.content}]};if(X.role==="assistant"){const U=Array.isArray(X.content)?X.content.find(se=>se.type==="tool-call"):void 0;if(U){const se=re.map(ie=>ie.type==="tool-call"&&ie.toolCallId===(U==null?void 0:U.toolCallId)?{...ie,...U}:ie),ue=se.some(ie=>ie.type==="tool-call");return{...V,content:ue?se:[...re,U]}}const te=Array.isArray(X.content)?X.content.find(se=>se.type==="text"&&se.text):void 0;if(te)return{...V,content:[...re,te]}}if(X.role==="tool"){const U=Array.isArray(X.content)?X.content.find(te=>te.type==="tool-result"):void 0;if(U){const te=re.map(ue=>ue.type==="tool-call"&&ue.toolCallId===(U==null?void 0:U.toolCallId)?{...ue,result:U.result}:ue),se=te.some(ue=>ue.type==="tool-call");return{...V,content:se?te:[...re,{type:"tool-result",toolCallId:U.toolCallId,result:U.result}]}}return{...V,content:[...re,U]}}return V},{role:"assistant",content:[]});b(V=>[...V,K])}}else{let W=function(){b(te=>{const se={role:"assistant",content:[{type:"text",text:V}]};return X?re?(re=!1,[...te,se]):[...te.slice(0,-1),se]:(X=!0,re&&(re=!1),[...te,se])})};const K=await Y.stream({messages:[{role:"user",content:H}],runId:t,frequencyPenalty:S,presencePenalty:k,maxRetries:A,maxSteps:P,maxTokens:M,temperature:F,topK:I,topP:j,instructions:B,runtimeContext:L,...i?{threadId:s,resourceId:t}:{}});if(!K.body)throw new Error("No response body");let V="",X=!1,re=!1,U=!1;await K.processDataStream({onTextPart(te){U?(U=!1,V=te):V+=te,W()},async onToolCallPart(te){b(se=>{const ue=se[se.length-1];if(ue&&ue.role==="assistant"){const pe={...ue,content:Array.isArray(ue.content)?[...ue.content,{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]:[...typeof ue.content=="string"?[{type:"text",text:ue.content}]:[],{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return re=!0,U=!0,[...se.slice(0,-1),pe]}const ie={role:"assistant",content:[{type:"text",text:V},{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return re=!0,U=!0,[...se,ie]})},async onToolResultPart(te){b(se=>{const ue=se[se.length-1];if(ue&&ue.role==="assistant"&&Array.isArray(ue.content)){const ie=ue.content.map(De=>typeof De=="object"&&De.type==="tool-call"&&De.toolCallId===te.toolCallId?{...De,result:te.result}:De),pe={...ue,content:ie};return[...se.slice(0,-1),pe]}return se})},onErrorPart(te){throw new Error(te)}})}f(!1),setTimeout(()=>{a==null||a()},500)}catch(W){console.error("Error occurred in MastraRuntimeProvider",W),f(!1),b(K=>[...K,{role:"assistant",content:[{type:"text",text:`Error: ${W}`}]}])}}});return y.jsxs(hie,{runtime:$,children:[" ",e," "]})}const xpt=fa()(dce(e=>({modelSettings:{},setModelSettings:t=>e(n=>({modelSettings:{...n.modelSettings,...t}})),chatWithGenerate:{},setChatWithGenerate:t=>e(n=>({chatWithGenerate:{...n.chatWithGenerate,...t}}))}),{name:"mastra-agent-store"})),YX={maxRetries:2,maxSteps:5,temperature:.5,topP:1},JT=_.createContext({});function wpt({agentId:e,children:t}){const{modelSettings:n,setModelSettings:r,chatWithGenerate:i,setChatWithGenerate:s}=xpt(),o=n[e]||YX,a=d=>{r({[e]:d})},l=()=>{a(YX)},u=i[e]||!1,c=d=>{s({[e]:d})};return y.jsx(JT.Provider,{value:{modelSettings:o,setModelSettings:a,resetModelSettings:l,chatWithGenerate:u,setChatWithGenerate:c},children:t})}const Mb=fa()(dce(e=>({runtimeContext:{},setRuntimeContext:t=>e({runtimeContext:t})}),{name:"mastra-playground-store"})),Spt=({agentId:e,agentName:t,threadId:n,initialMessages:r,memory:i,baseUrl:s,refreshThreadList:o})=>{const{modelSettings:a,chatWithGenerate:l}=_.useContext(JT),{runtimeContext:u}=Mb();return y.jsx(vpt,{agentId:e,agentName:t,threadId:n,initialMessages:r,memory:i,baseUrl:s,refreshThreadList:o,modelSettings:a,chatWithGenerate:l,runtimeContext:u,children:y.jsx("div",{className:"h-full pb-4 bg-surface1",children:y.jsx(Jpe,{agentName:t??"",hasMemory:i})})})},Cpt=Tb("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function JD({className:e,variant:t,...n}){return y.jsx("div",{className:Ke(Cpt({variant:t}),e),...n})}function tD({content:e,label:t,multiline:n=!1}){const r=()=>{navigator.clipboard.writeText(e)};return y.jsxs("div",{className:"group relative flex items-start gap-2",children:[y.jsx("span",{className:Ke("text-sm text-mastra-el-4",n?"whitespace-pre-wrap":"truncate"),children:e}),y.jsx(Oo,{variant:"ghost",size:"sm",className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0 -mt-1",onClick:i=>{i.stopPropagation(),r()},"aria-label":`Copy ${t}`,children:y.jsx(Gw,{className:"h-3 w-3"})})]})}function Ept({date:e}){const t={relativeTime:wJe(new Date(e),{addSuffix:!0}),fullDate:_o(new Date(e),"PPpp")};return y.jsx(k7,{children:y.jsxs(XT,{children:[y.jsx(ZT,{className:"text-left text-sm text-mastra-el-4",children:t.relativeTime}),y.jsx(xS,{className:"bg-mastra-bg-1 text-mastra-el-1",children:y.jsx("p",{className:"text-sm",children:t.fullDate})})]})})}const Dpt=Tb("flex w-full text-icon6 rounded-lg border bg-transparent shadow-sm focus-visible:ring-ring transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-sm border-border1 placeholder:text-icon3",filled:"border-sm bg-inputFill border-border1 placeholder:text-icon3",unstyled:"border-0 bg-transparent placeholder:text-icon3 focus-visible:ring-transparent focus-visible:outline-none"},customSize:{default:"px-[13px] text-[calc(13_/_16_*_1rem)] h-8",sm:"h-[30px] px-[13px] text-xs",lg:"h-10 px-[17px] text-[calc(13_/_16_*_1rem)]"}},defaultVariants:{variant:"default",customSize:"default"}}),Rm=_.forwardRef(({className:e,customSize:t,testId:n,variant:r,type:i,...s},o)=>y.jsx("input",{type:i,className:Ke(e,Dpt({variant:r,customSize:t,className:e})),"data-testid":n,ref:o,...s}));Rm.displayName="Input";function KX({score:e}){return y.jsx(JD,{variant:"secondary",children:e.toFixed(2)})}function Qo({className:e,...t}){return y.jsx("div",{className:Ke("animate-pulse rounded-md bg-muted/50",e),...t})}const v9=_.forwardRef(({className:e,...t},n)=>y.jsx("table",{ref:n,className:Ke("w-full caption-bottom text-sm border-spacing-0",e),...t}));v9.displayName="Table";const x9=_.forwardRef(({className:e,...t},n)=>y.jsx("thead",{ref:n,className:Ke("[&_tr]:border-b-[0.5px]",e),...t}));x9.displayName="TableHeader";const w9=_.forwardRef(({className:e,...t},n)=>y.jsx("tbody",{ref:n,className:Ke("[&_tr:last-child]:border-0",e),...t}));w9.displayName="TableBody";const kpt=_.forwardRef(({className:e,...t},n)=>y.jsx("tfoot",{ref:n,className:Ke("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));kpt.displayName="TableFooter";const _h=_.forwardRef(({className:e,...t},n)=>y.jsx("tr",{ref:n,className:Ke("border-b-[0.5px] border-mastra-border-1 transition-colors hover:bg-muted/50 data-[state=selected]:bg-mastra-bg-4/70",e),...t}));_h.displayName="TableRow";const Ko=_.forwardRef(({className:e,...t},n)=>y.jsx("th",{ref:n,className:Ke("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ko.displayName="TableHead";const Qr=_.forwardRef(({className:e,...t},n)=>y.jsx("td",{ref:n,className:Ke("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Qr.displayName="TableCell";const Apt=_.forwardRef(({className:e,...t},n)=>y.jsx("caption",{ref:n,className:Ke("mt-4 text-sm text-muted-foreground",e),...t}));Apt.displayName="TableCaption";const _pt=jce,Qpe=_.forwardRef(({className:e,...t},n)=>y.jsx(hT,{ref:n,className:Ke(e),...t}));Qpe.displayName=hT.displayName;const S9=_.forwardRef(({className:e,...t},n)=>y.jsx(fT,{ref:n,className:Ke(e),...t}));S9.displayName=fT.displayName;const C9=_.forwardRef(({className:e,...t},n)=>y.jsx(pT,{ref:n,className:Ke("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));C9.displayName=pT.displayName;const XX=(e,t,n)=>{const[r,i]=_.useState([]),[s,o]=_.useState(!0),a=Vl(n),l=async u=>{o(!0);const c=u??e;try{const d=t==="live"?await a.getAgent(c).liveEvals():await a.getAgent(c).evals();i(d.evals)}catch(d){i([]),console.error("Error fetching evals",d),xd.error("Error fetching evals")}finally{o(!1)}};return _.useEffect(()=>{l(e)},[e]),{evals:r,isLoading:s,refetchEvals:l}},eme=_.createContext({handleRefresh:()=>{},isLoading:!0}),nD=Ke("relative overflow-y-auto overflow-x-hidden invisible hover:visible focus:visible","[&::-webkit-scrollbar]:w-1","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:rounded-full","[&::-webkit-scrollbar-thumb]:bg-mastra-border/20","[&>*]:visible"),ZX=Ke("px-4 py-2 text-sm transition-all border-b-2 border-transparent","data-[state=active]:border-white data-[state=active]:text-white font-medium","data-[state=inactive]:text-mastra-el-4 hover:data-[state=inactive]:text-mastra-el-2","focus-visible:outline-none"),JX=Ke("data-[state=inactive]:mt-0 min-h-0 h-full grid grid-rows-[1fr]");function Tpt({agentId:e,baseUrl:t}){const[n,r]=_.useState("live"),{evals:i,isLoading:s,refetchEvals:o}=XX(e,"live",t),{evals:a,isLoading:l,refetchEvals:u}=XX(e,"ci",t),c={handleRefresh:d,isLoading:n==="live"?s:l};function d(){n==="live"?o():u()}return y.jsx(eme.Provider,{value:c,children:y.jsxs(_pt,{value:n,onValueChange:f=>r(f),className:"grid grid-rows-[auto_1fr] h-full min-h-0 pb-2",children:[y.jsx("div",{className:"border-b border-mastra-border/10",children:y.jsxs(Qpe,{className:"bg-transparent border-0 h-auto mx-4",children:[y.jsx(S9,{value:"live",className:ZX,children:"Live"}),y.jsx(S9,{value:"ci",className:ZX,children:"CI"})]})}),y.jsx(C9,{value:"live",className:JX,children:y.jsx(QX,{evals:i,isCIMode:!1})}),y.jsx(C9,{value:"ci",className:JX,children:y.jsx(QX,{evals:a,isCIMode:!0})})]})})}function QX({evals:e,isCIMode:t=!1}){const{handleRefresh:n,isLoading:r}=_.useContext(eme),[i,s]=_.useState(new Set),[o,a]=_.useState(""),[l,u]=_.useState({field:"metricName",direction:"asc"});return y.jsxs("div",{className:"min-h-0 grid grid-rows-[auto_1fr]",children:[y.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg",children:[y.jsxs("div",{className:"relative flex-1",children:[y.jsx(nU,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-mastra-el-3"}),y.jsx(Rm,{id:"search-input",placeholder:"Search metrics, inputs, or outputs...",value:o,onChange:w=>a(w.target.value),className:"pl-10"})]}),y.jsxs(JD,{variant:"secondary",className:"text-xs",children:[e.length," Total Evaluations"]}),y.jsx(Oo,{variant:"ghost",size:"icon",onClick:n,disabled:r,className:"h-9 w-9",children:r?y.jsx(tU,{className:"h-4 w-4 animate-spin"}):y.jsx(tU,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"overflow-auto",children:y.jsxs(v9,{className:"w-full",children:[y.jsx(x9,{className:"bg-mastra-bg-2 h-[var(--table-header-height)] sticky top-0 z-10",children:y.jsxs(_h,{className:"border-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(Ko,{className:"w-12 h-12"}),y.jsx(Ko,{className:"min-w-[200px] max-w-[30%] text-mastra-el-3 cursor-pointer",onClick:()=>f("metricName"),children:y.jsxs("div",{className:"flex items-center",children:["Metric ",p("metricName")]})}),y.jsx(Ko,{className:"flex-1 text-mastra-el-3"}),y.jsx(Ko,{className:"w-48 text-mastra-el-3 cursor-pointer",onClick:()=>f("averageScore"),children:y.jsxs("div",{className:"flex items-center",children:["Average Score ",p("averageScore")]})}),y.jsx(Ko,{className:"w-48 text-mastra-el-3",children:"Evaluations"})]})}),y.jsx(w9,{className:"border-b border-gray-6 relative",children:y.jsx(nQe,{mode:"wait",presenceAffectsLayout:!1,children:r?Array.from({length:3}).map((w,E)=>y.jsxs(_h,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(Qr,{className:"w-12 h-12",children:y.jsx(Qo,{className:"h-8 w-8 rounded-full"})}),y.jsx(Qr,{className:"min-w-[200px] max-w-[30%]",children:y.jsx(Qo,{className:"h-4 w-3/4"})}),y.jsx(Qr,{className:"flex-1",children:y.jsx(Qo,{className:"h-4 w-full"})}),y.jsx(Qr,{className:"w-48",children:y.jsx(Qo,{className:"h-4 w-20"})}),y.jsx(Qr,{className:"w-48",children:y.jsx(Qo,{className:"h-4 w-20"})})]},E)):b(e).length===0?y.jsxs(_h,{children:[y.jsx(Qr,{className:"h-12 w-16"}),y.jsx(Qr,{colSpan:4,className:"h-32 px-4 text-center text-mastra-el-3",children:y.jsxs("div",{className:"flex flex-col items-center gap-2",children:[y.jsx(nU,{className:"size-5"}),y.jsx("p",{children:"No evaluations found"}),o&&y.jsx("p",{className:"text-sm",children:"Try adjusting your search terms"})]})})]}):b(e).map(w=>y.jsxs(Ae.Fragment,{children:[y.jsxs(_h,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem] cursor-pointer hover:bg-mastra-bg-3",onClick:()=>d(w.metricName),children:[y.jsx(Qr,{className:"w-12",children:y.jsx("div",{className:"h-8 w-full flex items-center justify-center",children:y.jsx("div",{className:Ke("transform transition-transform duration-200",i.has(w.metricName)?"rotate-90":""),children:y.jsx(B9e,{className:"h-4 w-4 text-mastra-el-5"})})})}),y.jsx(Qr,{className:"min-w-[200px] max-w-[30%] font-medium text-mastra-el-5",children:w.metricName}),y.jsx(Qr,{className:"flex-1 text-mastra-el-5"}),y.jsx(Qr,{className:"w-48 text-mastra-el-5",children:y.jsx(KX,{score:w.averageScore})}),y.jsx(Qr,{className:"w-48 text-mastra-el-5",children:y.jsx(JD,{variant:"secondary",children:w.evals.length})})]}),i.has(w.metricName)&&y.jsx(_h,{children:y.jsx(Qr,{colSpan:5+(c(w.evals)?1:0)+(t?1:0),className:"p-0",children:y.jsx("div",{className:"bg-mastra-bg-3 rounded-lg m-2",children:y.jsx("div",{className:"w-full",children:y.jsxs(v9,{className:"w-full",children:[y.jsx(x9,{children:y.jsxs(_h,{className:"text-[0.7rem] text-mastra-el-3 hover:bg-transparent",children:[y.jsx(Ko,{className:"pl-12 w-[120px]",children:"Timestamp"}),y.jsx(Ko,{className:"w-[300px]",children:"Instructions"}),y.jsx(Ko,{className:"w-[300px]",children:"Input"}),y.jsx(Ko,{className:"w-[300px]",children:"Output"}),y.jsx(Ko,{className:"w-[80px]",children:"Score"}),c(w.evals)&&y.jsx(Ko,{className:"w-[250px]",children:"Reason"}),t&&y.jsx(Ko,{className:"w-[120px]",children:"Test Name"})]})}),y.jsx(w9,{children:w.evals.map((E,S)=>{var k,A;return y.jsxs(_h,{className:"text-[0.8125rem] hover:bg-mastra-bg-2/50",children:[y.jsx(Qr,{className:"pl-12 text-mastra-el-4 align-top py-4",children:y.jsx(Ept,{date:E.createdAt})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:E.instructions,label:"instructions",multiline:!0})})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:E.input,label:"input",multiline:!0})})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:E.output,label:"output",multiline:!0})})}),y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx(KX,{score:E.result.score})}),c(w.evals)&&y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:y.jsx("div",{className:Ke("max-w-[300px] max-h-[200px]",nD),children:y.jsx(tD,{content:((k=E.result.info)==null?void 0:k.reason)||"",label:"reason",multiline:!0})})}),t&&y.jsx(Qr,{className:"text-mastra-el-4 align-top py-4",children:((A=E.testInfo)==null?void 0:A.testName)&&y.jsx(JD,{variant:"secondary",className:"text-xs",children:E.testInfo.testName})})]},`${w.metricName}-${S}`)})})]})})})})})]},w.metricName))})})]})})]});function c(w){return w.some(E=>{var S;return(S=E.result.info)==null?void 0:S.reason})}function d(w){const E=new Set(i);E.has(w)?E.delete(w):E.add(w),s(E)}function f(w){u(E=>({field:w,direction:E.field===w&&E.direction==="asc"?"desc":"asc"}))}function p(w){return l.field!==w?null:l.direction==="asc"?y.jsx(A9e,{className:"h-4 w-4 ml-1"}):y.jsx(D9e,{className:"h-4 w-4 ml-1"})}function b(w){let E=w.reduce((S,k)=>{const A=S.find(P=>P.metricName===k.metricName);return A?(A.evals.push(k),A.averageScore=A.evals.reduce((P,M)=>P+M.result.score,0)/A.evals.length):S.push({metricName:k.metricName,averageScore:k.result.score,evals:[k]}),S},[]);return o&&(E=E.filter(S=>S.metricName.toLowerCase().includes(o.toLowerCase())||S.evals.some(k=>{var A,P,M;return((A=k.input)==null?void 0:A.toLowerCase().includes(o.toLowerCase()))||((P=k.output)==null?void 0:P.toLowerCase().includes(o.toLowerCase()))||((M=k.instructions)==null?void 0:M.toLowerCase().includes(o.toLowerCase()))}))),E.sort((S,k)=>{const A=l.direction==="asc"?1:-1;switch(l.field){case"metricName":return A*S.metricName.localeCompare(k.metricName);case"averageScore":return A*(S.averageScore-k.averageScore);default:return 0}}),E}}const uc=_.createContext({});function _7({children:e,initialTraces:t}){const[n,r]=_.useState(!1),[i,s]=_.useState(null),[o,a]=_.useState(t||[]),[l,u]=_.useState(0),[c,d]=_.useState(null),f=()=>{if(l<o.length-1){const w=l+1;u(w);const E=o[w].trace;s(E);const S=E.find(k=>k.parentSpanId===null)||E[0];d(S)}},p=()=>{if(l>0){const w=l-1;u(w);const E=o[w].trace;s(E);const S=E.find(k=>k.parentSpanId===null)||E[0];d(S)}},b=()=>{r(!1),s(null),d(null)};return y.jsx(uc.Provider,{value:{isOpen:n,setIsOpen:r,trace:i,setTrace:s,traces:o,setTraces:a,currentTraceIndex:l,setCurrentTraceIndex:u,nextTrace:f,prevTrace:p,span:c,setSpan:d,clearData:b},children:e})}const Npt={default:"[&>tbody>tr]:h-table-row",small:"[&>tbody>tr]:h-table-row-small"},tme=({className:e,children:t,size:n="default"})=>y.jsx("table",{className:lr("w-full",Npt[n],e),children:t}),nme=({className:e,children:t})=>y.jsx("thead",{children:y.jsx("tr",{className:lr("h-table-header border-b-sm border-border1",e),children:t})}),hy=({className:e,children:t,...n})=>y.jsx("th",{className:lr("text-icon3 text-ui-sm h-full text-left font-normal uppercase first:pl-5 last:pr-5 whitespace-nowrap",e),...n,children:t}),SS=({className:e,children:t})=>y.jsx("tbody",{className:lr("",e),children:t}),dm=({className:e,children:t,selected:n=!1,onClick:r})=>y.jsx("tr",{className:lr("border-b-sm border-border1 hover:bg-surface3",n&&"bg-surface4",r&&"cursor-pointer",e),onClick:r,children:t}),Ppt=e=>{const t=new Intl.DateTimeFormat("en-US",{month:"short"}).format(e).toUpperCase(),n=e.getDate(),r=`${t} ${n}`,i=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e);return{day:r,time:i}},Qs=({className:e,children:t,...n})=>y.jsx("td",{className:lr("text-icon5 first:pl-5 last:pr-5",e),...n,children:y.jsx("div",{className:lr("flex h-full w-full shrink-0 items-center"),children:t})}),Fpt=({className:e,children:t})=>y.jsx(Qs,{className:e,children:y.jsx(xt,{as:"span",variant:"ui-md",className:"w-full truncate",children:t})}),Mpt=({className:e,children:t,unit:n})=>y.jsx(Qs,{className:e,children:y.jsxs("div",{className:"flex min-w-0 items-center",children:[y.jsx(xt,{as:"span",variant:"ui-md",className:"shrink-0",children:t}),y.jsx(xt,{as:"span",variant:"ui-sm",className:"text-icon3 w-full truncate",children:n})]})}),Opt=({dateTime:e,...t})=>{const{day:n,time:r}=Ppt(e);return y.jsx(Qs,{...t,children:y.jsxs("div",{className:"shrink-0",children:[y.jsx(xt,{as:"span",variant:"ui-sm",className:"text-icon3",children:n})," ",y.jsx(xt,{as:"span",variant:"ui-md",children:r})]})})},T7=({name:e,description:t,icon:n,meta:r,...i})=>y.jsx(Qs,{...i,children:y.jsxs("div",{className:"flex items-center gap-[14px]",children:[y.jsx(Ht,{size:"lg",className:"text-icon5",children:n}),y.jsxs("div",{className:"flex flex-col gap-0",children:[y.jsx(xt,{as:"span",variant:"ui-md",className:"text-icon6 font-medium !leading-tight",children:e}),t&&y.jsx(xt,{as:"span",variant:"ui-xs",className:"text-icon3 w-full max-w-[300px] truncate !leading-tight",children:t})]}),r]})}),Rpt=()=>{const{setTrace:e,isOpen:t,setIsOpen:n,trace:r,setSpan:i,setCurrentTraceIndex:s}=_.useContext(uc);return{openTrace:(a,l)=>{var c;e(a);const u=a.find(d=>d.parentSpanId===null)||a[0];i(u),s(l),!(t&&((c=r==null?void 0:r[0])==null?void 0:c.id)!==a[0].id)&&n(d=>!d)}}},LA=(e,t)=>Number(e.toPrecision(t)),Ipt=({colsCount:e})=>y.jsx(SS,{children:y.jsx(dm,{children:Array.from({length:e}).map((t,n)=>y.jsx(Qs,{children:y.jsx(Qo,{className:"w-1/2"})},n))})}),jpt=({colsCount:e})=>y.jsx(SS,{children:y.jsx(dm,{children:y.jsx(Qs,{colSpan:e,className:"text-center py-4",children:y.jsx(xt,{children:"No traces found"})})})}),Lpt=({error:e,colsCount:t})=>y.jsx(SS,{children:y.jsx(dm,{children:y.jsx(Qs,{colSpan:t,className:"text-center py-4",children:y.jsx(xt,{children:e.message})})})}),Bpt=({trace:e,index:t,isActive:n})=>{const{openTrace:r}=Rpt(),i=e.trace.some(s=>s.status.code!==0);return y.jsxs(dm,{className:n?"bg-surface4":"",onClick:()=>r(e.trace,t),children:[y.jsx(Opt,{dateTime:new Date(e.started/1e3)}),y.jsxs(Fpt,{title:e.traceId,children:[e.traceId.substring(0,7),"..."]}),y.jsx(Mpt,{unit:"ms",children:LA(e.duration/1e3,3)}),y.jsx(Qs,{children:y.jsx("button",{onClick:()=>r(e.trace,t),children:y.jsx(Tr,{icon:y.jsx(b9,{}),children:e.trace.length})})}),y.jsx(Qs,{children:i?y.jsx(Tr,{variant:"error",icon:y.jsx(D0,{}),children:"Failed"}):y.jsx(Tr,{icon:y.jsx(rg,{}),variant:"success",children:"Success"})})]})},rme=({traces:e,isLoading:t,error:n})=>{const r=!e||e.length===0,{currentTraceIndex:i}=_.useContext(uc),s=4;return y.jsxs(tme,{size:"small",children:[y.jsxs(nme,{children:[y.jsx(hy,{width:120,children:"Time"}),y.jsx(hy,{width:"auto",children:"Trace Id"}),y.jsx(hy,{width:120,children:"Duration"}),y.jsx(hy,{width:120,children:"Spans"}),y.jsx(hy,{width:120,children:"Status"})]}),t?y.jsx(Ipt,{colsCount:s}):n?y.jsx(Lpt,{error:n,colsCount:s}):r?y.jsx(jpt,{colsCount:s}):y.jsx(y.Fragment,{children:y.jsx(SS,{children:e.map((o,a)=>y.jsx(Bpt,{trace:o,index:a,isActive:a===i},o.traceId))})})]})},$pt=({defaultWidth:e,minimumWidth:t,maximumWidth:n,setCurrentWidth:r})=>{const[i,s]=_.useState(!1),[o,a]=_.useState(e),l=_.useRef(null),u=_.useRef(0),c=_.useRef(0),d=f=>{f.preventDefault(),s(!0),u.current=f.clientX,c.current=o};return _.useEffect(()=>{a(e),r==null||r(e)},[e]),_.useEffect(()=>{const f=b=>{if(!i||!l.current)return;const w=l.current.offsetWidth,S=(u.current-b.clientX)/w*100,k=Math.min(Math.max(c.current+S,t),n);a(k),r==null||r(k)},p=()=>{s(!1)};return i&&(window.addEventListener("mousemove",f),window.addEventListener("mouseup",p)),()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p)}},[i]),{sidebarWidth:o,isDragging:i,handleMouseDown:d,containerRef:l}},QT=({children:e,defaultWidth:t,minimumWidth:n,maximumWidth:r,className:i,disabled:s=!1,setCurrentWidth:o,dividerPosition:a="left"})=>{const{sidebarWidth:l,isDragging:u,handleMouseDown:c,containerRef:d}=$pt({defaultWidth:s?100:t,minimumWidth:n,maximumWidth:r,setCurrentWidth:o});return y.jsxs("div",{className:Ke("w-full h-full relative",i),ref:d,style:{width:`${l}%`},children:[!s&&a==="left"?y.jsx("div",{className:`w-px bg-border1 h-full cursor-col-resize hover:w-1.5 hover:bg-mastra-border-2 hover:bg-[#424242] active:bg-mastra-border-3 active:bg-[#3e3e3e] transition-colors absolute inset-y-0 z-10
|
|
688
688
|
${u?"bg-border2 w-1.5 cursor- col-resize":""}`,onMouseDown:c}):null,e,!s&&a==="right"?y.jsx("div",{className:`w-px bg-border1 h-full cursor-col-resize hover:w-1.5 hover:bg-border2 active:bg-border3 transition-colors absolute inset-y-0 z-10
|
|
689
689
|
${u?"bg-border2 w-1.5 cursor- col-resize":""}`,onMouseDown:c}):null]})},zpt={md:"h-button-md gap-md",lg:"h-button-lg gap-lg"},Hpt={default:"bg-surface2 hover:bg-surface4 text-icon3 hover:text-icon6",light:"bg-surface3 hover:bg-surface5 text-icon6"},Ni=({className:e,as:t,size:n="md",variant:r="default",...i})=>{const s=t||"button";return y.jsx(s,{className:lr("bg-surface2 border-sm border-border1 px-lg text-ui-md inline-flex items-center justify-center rounded-md border",Hpt[r],zpt[n],e),...i})},Vpt=({children:e})=>y.jsx("ol",{children:e}),Upt={agent:"bg-accent1"},qpt=({durationMs:e,tokenCount:t,variant:n,progressPercent:r,offsetPercent:i})=>{const s=n?Upt[n]:"bg-accent3",o=Math.min(100,r);return y.jsxs("div",{className:"w-[80px] xl:w-[166px] shrink-0",children:[y.jsx("div",{className:"bg-surface4 relative h-[6px] w-full rounded-full p-px overflow-hidden",children:y.jsx("div",{className:lr("absolute h-1 rounded-full",s),style:{width:`${o}%`,left:`${i}%`}})}),y.jsxs("div",{className:"flex items-center gap-4 pt-0.5",children:[y.jsxs(xt,{variant:"ui-sm",className:"text-icon2 font-medium",children:[LA(e,3),"ms"]}),t&&y.jsxs(xt,{variant:"ui-sm",className:"text-icon2 font-medium",children:[t,"t"]})]})]})},ime={tool:Vf,agent:Fb,workflow:wS,memory:Xpe,rag:b9,storage:Xft,eval:tpt,other:b9},sme={tool:"text-[#ECB047]",agent:"text-accent1",workflow:"text-accent3",memory:"text-accent2",rag:"text-accent2",storage:"text-accent2",eval:"text-accent4",other:"text-icon6"},ome=({children:e,durationMs:t,variant:n,tokenCount:r,spans:i,isRoot:s,onClick:o,isActive:a,offsetMs:l,totalDurationMs:u})=>{const[c,d]=_.useState(!0),f=ime[n],p=sme[n],b=t/u*100,w=l/u*100,E=o?"button":"div";return y.jsxs("li",{children:[y.jsxs("div",{className:lr("flex justify-between items-center gap-2 rounded-md pl-2",a&&"bg-surface4"),children:[y.jsxs("div",{className:"flex h-8 items-center gap-1 min-w-0",children:[i?y.jsx("button",{type:"button","aria-label":c?"Collapse span":"Expand span","aria-expanded":c,className:"text-icon3 flex h-4 w-4",onClick:()=>d(!c),children:y.jsx(Ht,{children:y.jsx(Kft,{className:lr("transition-transform -rotate-90",{"rotate-0":c})})})}):y.jsx("div",{"aria-hidden":!0,className:"h-full w-4",children:!s&&y.jsx("div",{className:"ml-[7px] h-full w-px rounded-full"})}),y.jsxs(E,{className:"flex items-center gap-2 min-w-0",onClick:o,children:[y.jsx("div",{className:lr("bg-surface4 flex items-center justify-center rounded-md p-[3px]",p),children:y.jsx(Ht,{children:y.jsx(f,{})})}),y.jsx(xt,{variant:"ui-md",className:"text-icon6 truncate",children:e})]})]}),y.jsx(qpt,{durationMs:t,tokenCount:r,variant:n==="agent"?"agent":void 0,progressPercent:b,offsetPercent:w})]}),c&&i&&y.jsx("div",{className:"ml-4",children:i})]})},ame=({children:e})=>y.jsx("ol",{children:e}),Wpt=({name:e,spans:t,durationMs:n,tokenCount:r,onClick:i,variant:s,isActive:o,totalDurationMs:a})=>y.jsx(ome,{isRoot:!0,durationMs:n,variant:s,spans:y.jsx(ame,{children:t}),onClick:i,isActive:o,offsetMs:0,totalDurationMs:a,children:e}),BA=e=>{const t=Object.keys(e.attributes||{}).map(a=>a.toLowerCase()),n=e.name.toLowerCase();return n.startsWith("ai.")?n.includes("tool")?"tool":"other":t.some(a=>a.includes("memory")||a.includes("storage"))?"memory":t.some(a=>a.includes("tool"))?"tool":t.some(a=>a.includes("agent."))?"agent":n.includes(".insert")&&t.find(l=>{var u,c;return(c=String((u=e.attributes)==null?void 0:u[l]))==null?void 0:c.includes("mastra_evals")})?"eval":"other"};function lme(e,t,n,r=null){return e.filter(i=>i.parentSpanId===r).map(i=>({...i,children:lme(e,t,n,i.id),offset:(i.startTime-t)/1e3,duration:i.duration/1e3,totalDurationMs:n}))}const Gpt=e=>{if(e.length===0)return[];let t,n;const r=[],i=e.length;for(let o=i-1;o>=0;o--){const a=e[o];(!t||a.startTime<t)&&(t=a.startTime),(!n||a.endTime>n)&&(n=a.endTime),a.name!==".insert"&&a.name!=="mastra.getStorage"&&r.push(a)}if(!t||!n)return[];const s=(n-t)/1e3;return lme(r,t,s)},ume=({spanNodes:e})=>{const{span:t,setSpan:n}=_.useContext(uc);return y.jsx(ame,{children:e.map(r=>{const i=r.id===(t==null?void 0:t.id);return y.jsx(ome,{spans:r.children.length>0&&y.jsx(ume,{spanNodes:r.children}),durationMs:r.duration,offsetMs:r.offset,variant:BA(r),isActive:i,onClick:()=>n(r),totalDurationMs:r.totalDurationMs,children:r.name},r.id)})})};function Ypt({trace:e}){const{span:t,setSpan:n}=_.useContext(uc),r=Gpt(e);return y.jsx(Vpt,{children:r.map(i=>y.jsx(Wpt,{name:i.name,durationMs:i.duration,totalDurationMs:i.totalDurationMs,spans:y.jsx(ume,{spanNodes:i.children}),variant:BA(i),isActive:i.id===(t==null?void 0:t.id),onClick:()=>n(i)}))})}const ii=({children:e,border:t=!0})=>y.jsx("header",{className:lr("h-header-default z-50 flex w-full items-center gap-[18px] bg-transparent px-5",{"border-b-sm border-border1":t}),children:e}),cc=({children:e})=>y.jsx(xt,{as:"h1",variant:"ui-lg",className:"font-medium text-white",children:e}),N7=({children:e})=>y.jsx("div",{className:"gap-lg flex items-center",children:e});function Kpt(){const{trace:e,currentTraceIndex:t,prevTrace:n,nextTrace:r,traces:i}=_.useContext(uc),s=i[t];if(!s||!e)return null;const o=e.some(a=>a.status.code!==0);return y.jsxs("aside",{children:[y.jsxs(ii,{children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(Ni,{className:"bg-transparent border-none",onClick:n,disabled:t===0,children:y.jsx(Ht,{children:y.jsx($_,{})})}),y.jsx(Ni,{className:"bg-transparent border-none",onClick:r,disabled:t===i.length-1,children:y.jsx(Ht,{children:y.jsx(yb,{})})})]}),y.jsxs("div",{className:"flex items-center gap-1 justify-between w-full",children:[y.jsxs(xt,{variant:"ui-lg",className:"font-medium text-icon5 shrink-0",children:["Trace ",y.jsx("span",{className:"ml-2 text-icon3",children:s.traceId.substring(0,7)})]}),o&&y.jsx(Tr,{variant:"error",icon:y.jsx(D0,{}),children:"Failed"})]})]}),y.jsx("div",{className:"p-5",children:y.jsx(Ypt,{trace:e})})]})}const Xpt=()=>_.useMemo(()=>tT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",gutterForeground:"#939393",background:"transparent"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),eZ=({data:e})=>{const t=JSON.stringify(e,null,2),n=Xpt();return y.jsx("div",{className:"rounded-md bg-[#1a1a1a] p-1 font-mono",children:y.jsx(Eb,{value:t,theme:n,extensions:[nS]})})};function Zpt(e){const t=new Date(e/1e3);return new Intl.DateTimeFormat("en-US",{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0}).format(t)}function Jpt(e){const t=new Date(e/1e6);return new Intl.DateTimeFormat("en-US",{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0}).format(t)}function cme(e){if(e.includes(".argument."))return"Input";if(e.includes(".result"))return"Output";const t=e.split(".").join(" ").split("_").join(" ").replaceAll("ai","AI");return t.substring(0,1).toUpperCase()+t.substring(1)}const Qpt=(e,t=!1)=>{const n=new Set,r=o=>{var a,l,u,c;return o!=null&&o.startsWith("workflow.")&&t?(l=(a=o==null?void 0:o.split("."))==null?void 0:a.slice(2))==null?void 0:l.join("."):o!=null&&o.startsWith("agent.")&&!t?(c=(u=o==null?void 0:o.split("."))==null?void 0:u.slice(1))==null?void 0:c.join("."):o},i=e==null?void 0:e.reduce((o,a)=>{const l={...a,name:r(a.name),duration:a.endTime-a.startTime};return n.add(a.id),{...o,[a.traceId]:[...o[a.traceId]||[],l]}},{});return Object.entries(i).map(([o,a])=>{var d;const l=a.find(f=>!f.parentSpanId||!n.has(f.parentSpanId)),u=a.map(f=>({...f,parentSpanId:(l==null?void 0:l.id)===f.id?null:f==null?void 0:f.parentSpanId})),c=(d=a.find(f=>f.status.code!==0))==null?void 0:d.status;return{traceId:o,serviceName:(l==null?void 0:l.name)||o,duration:(l==null?void 0:l.duration)||a.reduce((f,p)=>f+p.duration,0),status:c||(l==null?void 0:l.status)||a[0].status,started:a[0].startTime,trace:u}})};function emt(){var l;const{span:e,setSpan:t,trace:n,setIsOpen:r}=_.useContext(uc);if(!e||!n)return null;const i=()=>{const u=n.findIndex(c=>c.id===e.id);u!==-1&&u<n.length-1&&t(n[u+1])},s=()=>{const u=n.findIndex(c=>c.id===e.id);u!==-1&&u>0&&t(n[u-1])},o=ime[BA(e)],a=sme[BA(e)];return y.jsxs("aside",{children:[y.jsxs(ii,{children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(Ni,{className:"bg-transparent border-none",onClick:i,children:y.jsx(Ht,{children:y.jsx($_,{})})}),y.jsx(Ni,{className:"bg-transparent border-none",onClick:s,children:y.jsx(Ht,{children:y.jsx(yb,{})})})]}),y.jsx("div",{children:y.jsxs(xt,{variant:"ui-lg",className:"font-medium text-icon5",as:"h2",children:["Span ",y.jsx("span",{className:"ml-2 text-icon3",children:e.id.substring(0,7)})]})}),y.jsx("div",{className:"ml-auto flex items-center gap-2",children:y.jsx(Ni,{className:"bg-transparent border-none",onClick:()=>r(!1),children:y.jsx(Ht,{children:y.jsx(D0,{})})})})]}),y.jsxs("div",{className:"p-5",children:[y.jsxs(xt,{variant:"header-md",as:"h3",className:"text-icon-6 flex items-center gap-4 pb-3",children:[y.jsx(Ht,{size:"lg",className:"bg-surface4 p-1 rounded-md",children:y.jsx(o,{className:a})}),e.name]}),y.jsx("div",{className:"flex flex-row gap-2 items-center",children:e.status.code===0?y.jsxs(Tr,{icon:y.jsx(rpt,{}),variant:"success",children:[LA(e.duration/1e3,3),"ms"]}):y.jsxs(Tr,{variant:"error",icon:y.jsx(D0,{}),children:["Failed in ",LA(e.duration/1e3,3),"ms"]})}),y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsxs("dl",{className:"grid grid-cols-2 justify-between gap-2",children:[y.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"ID"}),y.jsx("dd",{className:"text-ui-md text-icon6",children:e.id}),y.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"Created at"}),y.jsx("dd",{className:"text-ui-md text-icon6",children:e.startTime?Zpt(e.startTime):""})]}),e.attributes&&y.jsx(tmt,{attributes:e.attributes}),((l=e.events)==null?void 0:l.length)>0&&y.jsx(nmt,{span:e})]})]})}function tmt({attributes:e}){if(!e)return null;const t=Object.entries(e);if(t.length===0)return null;const n=["http.request_id","componentName"];return y.jsx("div",{children:t.filter(([r])=>!n.includes(r)).map(([r,i])=>y.jsxs("div",{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx(xt,{as:"h4",variant:"ui-md",className:"text-icon3 pb-2",children:cme(r)}),y.jsx(dme,{value:i})]},r))})}const dme=({value:e})=>{if(!e)return y.jsx(xt,{as:"p",variant:"ui-md",className:"text-icon6",children:"N/A"});if(typeof e=="number"||typeof e=="boolean")return y.jsx(xt,{as:"p",variant:"ui-md",className:"text-icon6",children:String(e)});if(typeof e=="object")return y.jsx(eZ,{data:e});try{return y.jsx(eZ,{data:JSON.parse(e)})}catch{return y.jsx(xt,{as:"p",variant:"ui-md",className:"text-icon6",children:String(e)})}};function nmt({span:e}){return e.events?y.jsxs("div",{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx(xt,{as:"p",variant:"ui-md",className:"text-icon6 pb-2",children:"Events"}),e.events.map(t=>{var r;const n=t===e.events[e.events.length-1];return y.jsxs(Ae.Fragment,{children:[y.jsxs("div",{children:[y.jsxs("dl",{className:"grid grid-cols-2 justify-between gap-2 pb-2",children:[y.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"Name"}),y.jsx("dd",{className:"text-ui-md text-icon6",children:t.name}),y.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"Time"}),y.jsx("dd",{className:"text-ui-md text-icon6",children:t.timeUnixNano?Jpt(Number(t.timeUnixNano)):"N/A"})]}),((r=t.attributes)==null?void 0:r.length)>0?y.jsx("ul",{className:"space-y-2",children:t.attributes.filter(i=>i!==null).map(i=>y.jsxs("li",{children:[y.jsx(xt,{as:"h4",variant:"ui-md",className:"text-icon3 pb-2",children:cme(i.key)}),y.jsx(dme,{value:i.value})]},i.key))}):null]},t.name),!n&&y.jsx("hr",{className:"border-border1 border-sm my-5"})]},t.name)})]}):null}const hme=({onResize:e})=>y.jsx(QT,{className:"h-full absolute right-0 inset-y-0 bg-surface2",defaultWidth:80,minimumWidth:50,maximumWidth:80,setCurrentWidth:e,children:y.jsxs("div",{className:"h-full grid grid-cols-2",children:[y.jsx("div",{className:"overflow-x-scroll w-full h-[calc(100%-40px)]",children:y.jsx(Kpt,{})}),y.jsx("div",{className:"h-[calc(100%-40px)] overflow-x-scroll w-full border-l border-border1",children:y.jsx(emt,{})})]})});function rmt({className:e,traces:t,isLoading:n,error:r}){return y.jsx(imt,{className:e,traces:t,isLoading:n,error:r})}function imt({className:e,traces:t,isLoading:n,error:r}){const[i,s]=_.useState(100),{isOpen:o}=_.useContext(uc);return y.jsxs("div",{className:lr("h-full relative overflow-hidden flex",e),children:[y.jsx("div",{className:"h-full overflow-y-scroll w-full",children:y.jsx(rme,{traces:t,isLoading:n,error:r})}),o&&y.jsx(hme,{width:i,onResize:s})]})}const smt=e=>e;function omt({children:e,agentId:t,initialMessages:n,memory:r,threadId:i,baseUrl:s,refreshThreadList:o,modelSettings:a={}}){const[l,u]=_.useState(!1),[c,d]=_.useState(n||[]),[f,p]=_.useState(i),{frequencyPenalty:b,presencePenalty:w,maxRetries:E,maxSteps:S,maxTokens:k,temperature:A,topK:P,topP:M,instructions:F}=a;_.useEffect(()=>{(c.length===0||f!==i)&&n&&i&&r&&(d(n),p(i))},[n,i,r,c]);const j=Vl(s).getNetwork(t),L=Oie({isRunning:l,messages:c,convertMessage:smt,onNew:async z=>{var Q;if(((Q=z.content[0])==null?void 0:Q.type)!=="text")throw new Error("Only text messages are supported");const Y=z.content[0].text;d($=>[...$,{role:"user",content:Y}]),u(!0);try{let $=function(){d(V=>{const X={role:"assistant",content:[{type:"text",text:q}]};return K?[...V.slice(0,-1),X]:(K=!0,[...V,X])})};const J=await j.stream({messages:[{role:"user",content:Y}],runId:t,frequencyPenalty:b,presencePenalty:w,maxRetries:E,maxSteps:S,maxTokens:k,temperature:A,topK:P,topP:M,instructions:F,...r?{threadId:i,resourceId:t}:{}});if(!J.body)throw new Error("No response body");const H=[];let q="",W=null,K=!1;await wj({stream:J.body,onTextPart(V){W==null?(W={type:"text",text:V},H.push(W)):W.text+=V,q+=V,$()},async onToolCallPart(V){console.log("Tool call received:",V),d(X=>{const re=X[X.length-1];if(re&&re.role==="assistant"){const te={...re,content:Array.isArray(re.content)?[...re.content,{type:"tool-call",toolCallId:V.toolCallId,toolName:V.toolName,args:V.args}]:[...typeof re.content=="string"?[{type:"text",text:re.content}]:[],{type:"tool-call",toolCallId:V.toolCallId,toolName:V.toolName,args:V.args}]};return[...X.slice(0,-1),te]}const U={role:"assistant",content:[{type:"text",text:q},{type:"tool-call",toolCallId:V.toolCallId,toolName:V.toolName,args:V.args}]};return[...X,U]})},async onToolResultPart(V){console.log("Tool call result received:",V),d(X=>{const re=X[X.length-1];if(re&&re.role==="assistant"&&Array.isArray(re.content)){const U=re.content.map(se=>typeof se=="object"&&se.type==="tool-call"&&se.toolCallId===V.toolCallId?{...se,result:V.result}:se),te={...re,content:U};return[...X.slice(0,-1),te]}return X})},onErrorPart(V){throw new Error(V)}}),console.log(c),u(!1)}catch($){console.error("Error occured in MastraRuntimeProvider",$),u(!1)}}});return y.jsxs(hie,{runtime:L,children:[" ",e," "]})}function fme({text:e,copyMessage:t="Copied to clipboard!"}){const[n,r]=_.useState(!1),i=_.useRef(null),s=_.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{xd.success(t),r(!0),i.current&&(clearTimeout(i.current),i.current=null),i.current=setTimeout(()=>{r(!1)},2e3)}).catch(()=>{xd.error("Failed to copy to clipboard.")})},[e,t]);return{isCopied:n,handleCopy:s}}function amt({content:e,copyMessage:t,classname:n}){const{isCopied:r,handleCopy:i}=fme({text:e,copyMessage:t});return y.jsxs(Oo,{variant:"ghost",size:"icon",className:Ke("relative h-6 w-6",n),"aria-label":"Copy to clipboard",onClick:i,children:[y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsx(rg,{className:Ke("h-4 w-4 transition-transform ease-in-out",r?"scale-100":"scale-0")})}),y.jsx(Gw,{className:Ke("h-4 w-4 transition-transform ease-in-out",r?"scale-0":"scale-100")})]})}function lmt({children:e}){const t=e.replace(/\\n/g,`
|
|
690
690
|
`);return y.jsx(loe,{remarkPlugins:[Ooe],components:cmt,className:"space-y-3",children:t})}const pme=Ae.memo(({children:e,language:t,...n})=>{const[r,i]=_.useState([]);return _.useEffect(()=>{opt(e,t).then(s=>{s&&i(s)})},[e,t]),r.length?y.jsx("pre",{...n,children:y.jsx("code",{children:r.map((s,o)=>y.jsxs(y.Fragment,{children:[y.jsx("span",{children:s.map((a,l)=>{const u=typeof a.htmlStyle=="string"?void 0:a.htmlStyle;return y.jsx("span",{className:"text-shiki-light bg-shiki-light-bg dark:text-shiki-dark dark:bg-shiki-dark-bg",style:u,children:a.content},l)})},o),o!==r.length-1&&`
|
|
691
|
-
`]}))})}):y.jsx("pre",{...n,children:e})});pme.displayName="HighlightedCode";const umt=({children:e,className:t,language:n,...r})=>{const i=typeof e=="string"?e:E9(e),s=Ke("overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",t);return y.jsxs("div",{className:"group/code relative mb-4",children:[y.jsx(_.Suspense,{fallback:y.jsx("pre",{className:s,...r,children:e}),children:y.jsx(pme,{language:n,className:s,children:i})}),y.jsx("div",{className:"invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100",children:y.jsx(amt,{content:i,copyMessage:"Copied code to clipboard"})})]})};function E9(e){var t;if(typeof e=="string")return e;if((t=e==null?void 0:e.props)!=null&&t.children){let n=e.props.children;return Array.isArray(n)?n.map(r=>E9(r)).join(""):E9(n)}return""}const cmt={h1:({children:e,...t})=>y.jsx("h1",{className:"text-2xl font-semibold",...t,children:e}),h2:({children:e,...t})=>y.jsx("h2",{className:"font-semibold text-xl",...t,children:e}),h3:({children:e,...t})=>y.jsx("h3",{className:"font-semibold text-lg",...t,children:e}),h4:({children:e,...t})=>y.jsx("h4",{className:"font-semibold text-base",...t,children:e}),h5:({children:e,...t})=>y.jsx("h5",{className:"font-medium",...t,children:e}),strong:({children:e,...t})=>y.jsx("strong",{className:"font-semibold",...t,children:e}),a:({children:e,...t})=>y.jsx("a",{className:"underline underline-offset-2",...t,children:e}),blockquote:({children:e,...t})=>y.jsx("blockquote",{className:"border-l-2 border-primary pl-4",...t,children:e}),code:({children:e,className:t,...n})=>{const r=/language-(\w+)/.exec(t||"");return r?y.jsx(umt,{className:t,language:r[1],...n,children:e}):y.jsx("code",{className:Ke("font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"),...n,children:e})},pre:({children:e})=>e,ol:({children:e,...t})=>y.jsx("ol",{className:"list-decimal space-y-2 pl-6",...t,children:e}),ul:({children:e,...t})=>y.jsx("ul",{className:"list-disc space-y-2 pl-6",...t,children:e}),li:({children:e,...t})=>y.jsx("li",{className:"my-1.5",...t,children:e}),table:({children:e,...t})=>y.jsx("table",{className:"w-full border-collapse overflow-y-auto rounded-md border border-foreground/20",...t,children:e}),th:({children:e,...t})=>y.jsx("th",{className:"border border-foreground/20 px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right",...t,children:e}),td:({children:e,...t})=>y.jsx("td",{className:"border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",...t,children:e}),tr:({children:e,...t})=>y.jsx("tr",{className:"m-0 border-t p-0 even:bg-muted",...t,children:e}),p:({children:e,...t})=>y.jsx("p",{className:"whitespace-pre-wrap leading-relaxed",...t,children:e}),hr:({...e})=>y.jsx("hr",{className:"border-foreground/20",...e})},Cp={bg:"bg-[rgba(124,80,175,0.25)]",text:"text-[rgb(180,140,230)]",hover:"hover:text-[rgb(200,160,250)]"},dmt=e=>{const{toolCallId:t,toolName:n,args:r,argsText:i,result:s,status:o}=e,[a,l]=_.useState({}),u=(r==null?void 0:r.actions)||[];if(u.length===0)return null;const c=f=>{l(p=>({...p,[f]:!p[f]}))},d=f=>{if(typeof f!="string")return[];const p=/(https?:\/\/[^\s]+)/g;return f.match(p)||[]};return y.jsx("div",{className:"mb-4 w-full rounded-lg border border-gray-700 overflow-hidden shadow-md",children:u.map((f,p)=>{var S;const b=`${t||"tool"}-${f.agent}-${p}`,w=a[b]||!1,E=s?d(s):[];return y.jsxs("div",{className:`border-b border-gray-700 ${p===u.length-1?"border-b-0":""}`,children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-900 hover:bg-gray-800 cursor-pointer",onClick:()=>c(b),children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:Ke("flex h-6 w-6 items-center justify-center rounded-full",Cp.bg),children:(o==null?void 0:o.type)==="running"?y.jsx(wf,{className:Ke("h-4 w-4 animate-spin",Cp.text)}):y.jsx(rg,{className:Ke("h-4 w-4",Cp.text)})}),y.jsx("div",{children:y.jsx("p",{className:"font-medium text-sm text-gray-100",children:(S=f.agent)==null?void 0:S.replaceAll("_"," ")})})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:Ke("text-xs px-2 py-1 rounded-full",Cp.bg,Cp.text),children:(o==null?void 0:o.type)==="running"?"Processing...":"Complete"}),w?y.jsx($_,{className:"h-4 w-4 text-gray-300"}):y.jsx(yb,{className:"h-4 w-4 text-gray-300"})]})]}),w&&y.jsxs("div",{className:"px-4 py-3 bg-[#111]",children:[y.jsxs("div",{className:"mb-3",children:[y.jsx("p",{className:"text-xs font-semibold text-gray-300 mb-1",children:"Query:"}),y.jsx("div",{className:"p-2 bg-gray-900 rounded border border-gray-700",children:y.jsx("p",{className:"text-sm text-gray-200 whitespace-pre-wrap",children:f.input})})]}),s&&y.jsxs("div",{children:[y.jsx("p",{className:"text-xs font-semibold text-gray-300 mb-1",children:"Result:"}),y.jsx("div",{className:"p-2 bg-gray-900 rounded border border-gray-700 max-h-60 overflow-auto",children:typeof s=="string"?y.jsx("div",{className:"text-sm text-gray-200",children:y.jsx(lmt,{children:s})}):y.jsx("p",{className:"text-sm text-gray-200 whitespace-pre-wrap",children:JSON.stringify(s,null,2)})}),E.length>0&&y.jsxs("div",{className:"mt-2",children:[y.jsx("p",{className:"text-xs font-semibold text-gray-300 mb-1",children:"Sources:"}),y.jsxs("div",{className:"flex flex-wrap gap-2",children:[E.slice(0,3).map((k,A)=>y.jsxs("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:Ke("inline-flex items-center gap-1 text-xs hover:underline",Cp.text,Cp.hover),children:[y.jsxs("span",{children:["Source ",A+1]}),y.jsx(X9e,{className:"h-3 w-3"})]},A)),E.length>3&&y.jsxs("span",{className:"text-xs text-gray-400",children:["+",E.length-3," more"]})]})]})]})]})]},b)})})},tZ={maxRetries:2,maxSteps:5,temperature:.5,topP:1},P7=_.createContext({});function hmt({children:e}){const[t,n]=_.useState(tZ),r=()=>{n(tZ)};return y.jsx(P7.Provider,{value:{modelSettings:t,setModelSettings:n,resetModelSettings:r},children:e})}const fmt=({agentId:e,memory:t})=>{const{modelSettings:n}=_.useContext(P7);return y.jsx(omt,{agentId:e,memory:t,modelSettings:n,children:y.jsx("div",{className:"h-full pb-4",children:y.jsx(Jpe,{ToolFallback:dmt})})})};function mme({traces:e,isLoading:t,error:n}){return y.jsx(pmt,{traces:e,isLoading:t,error:n})}function pmt({traces:e,isLoading:t,error:n}){const[r,i]=_.useState(100),{isOpen:s}=_.useContext(uc);return y.jsxs("main",{className:"h-full relative overflow-hidden flex",children:[y.jsx("div",{className:"h-full overflow-y-scroll w-full",children:y.jsx(rme,{traces:e,isLoading:t,error:n})}),s&&y.jsx(hme,{width:r,onResize:i})]})}const mmt=e=>{const t=Object.entries(e.payload.workflowState.steps||{}).reduce((r,[i,s])=>{let o=s.status==="success"?s.output:void 0;return o&&(o=Object.entries(o).reduce((a,[l,u])=>{var d;const c=u;return a[l]=((d=c.type)==null?void 0:d.toLowerCase())==="buffer"?{type:"Buffer",data:"[...buffered data]"}:c,a},{})),r[i]={...s,output:o},r},{});return{...e,sanitizedOutput:e?JSON.stringify({...e,payload:{...e.payload,workflowState:{...e.payload.workflowState,steps:t}}},null,2).slice(0,5e4):null}},gme=(e,t)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0),o=Vl(t);return _.useEffect(()=>{(async()=>{var l;s(!0);try{if(!e){r(null),s(!1);return}const u=await o.getLegacyWorkflow(e).details();if(!u){r(null),console.error("Error fetching legacy workflow"),xd.error("Error fetching legacy workflow");return}const c=u.steps,f=(await Promise.all((l=Object.values(c))==null?void 0:l.map(async p=>{if(!p.workflowId)return p;const b=await o.getLegacyWorkflow(p.workflowId).details();return b?{...p,stepGraph:b.stepGraph,stepSubscriberGraph:b.stepSubscriberGraph}:p}))).reduce((p,b)=>({...p,[b.id]:b}),{});r({...u,steps:f})}catch(u){r(null),console.error("Error fetching legacy workflow",u),xd.error("Error fetching legacy workflow")}finally{s(!1)}})()},[e]),{legacyWorkflow:n,isLoading:i}},yme=(e,t)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0),o=Vl(t);return _.useEffect(()=>{(async()=>{s(!0);try{if(!e){r(null),s(!1);return}const l=await o.getWorkflow(e).details();r(l)}catch(l){r(null),console.error("Error fetching workflow",l),xd.error("Error fetching workflow")}finally{s(!1)}})()},[e]),{workflow:n,isLoading:i}},bme=e=>{const t=Vl(e);return{startWorkflowRun:async({workflowId:a,runId:l,input:u,runtimeContext:c})=>{try{const d=new _m;Object.entries(c).forEach(([p,b])=>{d.set(p,b)}),await t.getWorkflow(a).start({runId:l,inputData:u||{},runtimeContext:d})}catch(d){throw console.error("Error starting workflow run:",d),d}},createWorkflowRun:async({workflowId:a,prevRunId:l})=>{try{const u=t.getWorkflow(a),{runId:c}=await u.createRun({runId:l});return{runId:c}}catch(u){throw console.error("Error creating workflow run:",u),u}},startLegacyWorkflowRun:async({workflowId:a,runId:l,input:u})=>{try{await t.getLegacyWorkflow(a).start({runId:l,triggerData:u||{}})}catch(c){throw console.error("Error starting workflow run:",c),c}},createLegacyWorkflowRun:async({workflowId:a,prevRunId:l})=>{try{const u=t.getLegacyWorkflow(a),{runId:c}=await u.createRun({runId:l});return{runId:c}}catch(u){throw console.error("Error creating workflow run:",u),u}},startAsyncWorkflowRun:async({workflowId:a,runId:l,input:u,runtimeContext:c})=>{try{const d=new _m;return Object.entries(c).forEach(([b,w])=>{d.set(b,w)}),await t.getWorkflow(a).startAsync({runId:l,inputData:u||{},runtimeContext:d})}catch(d){throw console.error("Error starting workflow run:",d),d}}}},vme=e=>{const[t,n]=_.useState(!1),[r,i]=_.useState(!1),[s,o]=_.useState(null),[a,l]=_.useState(null),u=TM(p=>{const b=Object.entries(p.results||{}).reduce((E,[S,k])=>{let A=k.status==="success"?k.output:void 0;return A&&(A=Object.entries(A).reduce((P,[M,F])=>{var j;const I=F;return P[M]=((j=I.type)==null?void 0:j.toLowerCase())==="buffer"?{type:"Buffer",data:"[...buffered data]"}:I,P},{})),E[S]={...k,output:A},E},{}),w={...p,sanitizedOutput:p?JSON.stringify({...p,results:b},null,2).slice(0,5e4):null};o(w)},100),c=async({workflowId:p,runId:b})=>{try{n(!0),await Vl(e).getLegacyWorkflow(p).watch({runId:b},S=>{try{u(S)}catch(k){console.error("Error processing workflow record:",k),o({...S})}})}catch(w){throw console.error("Error watching workflow:",w),w}finally{n(!1)}},d=TM(p=>{const b=mmt(p);l(b)},100);return{watchLegacyWorkflow:c,isWatchingLegacyWorkflow:t,legacyWatchResult:s,watchWorkflow:async({workflowId:p,runId:b})=>{try{i(!0),await Vl(e).getWorkflow(p).watch({runId:b},S=>{try{d(S)}catch(k){console.error("Error processing workflow record:",k),l({...S})}})}catch(w){throw console.error("Error watching workflow:",w),w}finally{i(!1)}},isWatchingWorkflow:r,watchResult:a}},xme=e=>{const[t,n]=_.useState(!1),[r,i]=_.useState(!1);return{resumeLegacyWorkflow:async({workflowId:a,stepId:l,runId:u,context:c})=>{try{return n(!0),await Vl(e).getLegacyWorkflow(a).resume({stepId:l,runId:u,context:c})}catch(d){throw console.error("Error resuming workflow:",d),d}finally{n(!1)}},isResumingLegacyWorkflow:t,resumeWorkflow:async({workflowId:a,step:l,runId:u,resumeData:c,runtimeContext:d})=>{try{i(!0);const f=Vl(e),p=new _m;return Object.entries(d).forEach(([w,E])=>{p.set(w,E)}),await f.getWorkflow(a).resume({step:l,runId:u,resumeData:c,runtimeContext:p})}catch(f){throw console.error("Error resuming workflow:",f),f}finally{i(!1)}},isResumingWorkflow:r}};function nZ(e,t){let n=[];if(!e)return n;function r(i,s){if(typeof i=="string")n.push({type:t,fnString:i});else{const o=Object.entries(i).find(([a])=>a.includes("."));if(o){const[a,l]=o,[u,...c]=a.split("."),d={step:{id:u},path:c.join(".")};n.push({type:t,ref:d,query:{[l===!0||l===!1?"is":"eq"]:String(l)},conj:s})}if("ref"in i){const{ref:a,query:l}=i;n.push({type:t,ref:a,query:l,conj:s})}if("and"in i)for(const a of i.and)r({...a},"and");if("or"in i)for(const a of i.or)r({...a},"or");"not"in i&&r({...i.not},"not")}}return r(e),n.reverse()}const D9=(e,t)=>{var s,o;const n=new dX.graphlib.Graph().setDefaultEdgeLabel(()=>({}));n.setGraph({rankdir:"TB"}),t.forEach(a=>n.setEdge(a.source,a.target)),e.forEach(a=>{var l,u,c;return n.setNode(a.id,{...a,width:((l=a.measured)==null?void 0:l.width)??274,height:((u=a.measured)==null?void 0:u.height)??((c=a==null?void 0:a.data)!=null&&c.isLarge?260:100)})}),dX.layout(n);const r=(s=n.graph())!=null&&s.width?n.graph().width/2:0,i=(o=n.graph())!=null&&o.height?n.graph().height/2:0;return{nodes:e.map(a=>{var p,b,w;const l=n.node(a.id),u=l.x-(((p=a.measured)==null?void 0:p.width)??274)/2,c=l.y-(((b=a.measured)==null?void 0:b.height)??((w=a==null?void 0:a.data)!=null&&w.isLarge?260:100))/2;return{...a,position:{x:u,y:c}}}),edges:t,fullWidth:r,fullHeight:i}},Hs={animated:!0,markerEnd:{type:sw.ArrowClosed,width:20,height:20,color:"#8e8e8e"}},wme=({stepGraph:e,stepSubscriberGraph:t,steps:n={}})=>{var c;if(!e)return{nodes:[],edges:[]};const{initial:r,...i}=e;if(!r.length)return{nodes:[],edges:[]};let s=[],o=[],a=[];for(const[d,f]of r.entries()){const b=f.step.id,w=[f,...(i==null?void 0:i[b])||[]].reduce((A,P,M)=>{var Y,Q,$,J;const{stepGraph:F,stepSubscriberGraph:I}=n[P.step.id]||{},j=!!F,B=s.some(H=>H.id===P.step.id)?`${P.step.id}-${M}`:P.step.id;let L={...P.step,label:P.step.id,originalId:P.step.id,type:j?"nested-node":"default-node",id:B,stepGraph:F,stepSubscriberGraph:I},z="when";if((Y=P.config)!=null&&Y.serializedWhen){z=(Q=P.step.id)!=null&&Q.endsWith("_if")?"if":($=P.step.id)!=null&&$.endsWith("_else")?"else":"when";const H=nZ(P.config.serializedWhen,z),q={id:crypto.randomUUID(),conditions:H,type:"condition-node",isLarge:((H==null?void 0:H.length)>1||H.some(({fnString:W})=>!!W))&&z!=="else"};A.push(q)}return(z==="if"||z==="else")&&(L={...L,label:z==="if"?"start if":"start else"}),L={...L,label:((J=P.config)==null?void 0:J.loopLabel)||L.label},A.push(L),A},[]);a=[...a,...w];const E=[...w].map((A,P)=>{const M=t==null?void 0:t[A.id];return{id:A.id,position:{x:d*300,y:P*100},type:A.type,data:{conditions:A.conditions,label:A.label,description:A.description,withoutTopHandle:M!=null&&M[A.id]?!1:P===0,withoutBottomHandle:M?!1:P===w.length-1,isLarge:A.isLarge,stepGraph:A.stepGraph,stepSubscriberGraph:A.stepSubscriberGraph}}});s=[...s,...E];const k=[...w].slice(0,-1).map((A,P)=>({id:`e${A.id}-${w[P+1].id}`,source:A.id,target:w[P+1].id,...Hs}));o=[...o,...k]}if(!t||!Object.keys(t).length){const{nodes:d,edges:f}=D9(s,o);return{nodes:d,edges:f}}for(const[d,f]of Object.entries(t)){const{initial:p,...b}=f;let w;const E=[];let S,k;if(p.length){for(const[A,P]of p.entries()){const F=P.step.id,I=[P,...(b==null?void 0:b[F])||[]].reduce((K,V,X)=>{var De,me,$e,Te,Be,Qe,kt,Nt;const{stepGraph:re,stepSubscriberGraph:U}=n[V.step.id]||{},te=!!re,se=s.some($t=>$t.id===V.step.id)?`${V.step.id}-${X}`:V.step.id;let ue={...V.step,originalId:V.step.id,label:V.step.id,type:te?"nested-node":"default-node",id:se,stepGraph:re,stepSubscriberGraph:U},ie="when";const pe=(me=(De=V.config)==null?void 0:De.loopLabel)==null?void 0:me.endsWith("loop finished");if(($e=V.config)!=null&&$e.serializedWhen&&!pe){ie=(Te=V.step.id)!=null&&Te.endsWith("_if")?"if":(Be=V.step.id)!=null&&Be.endsWith("_else")?"else":((Qe=V.config)==null?void 0:Qe.loopType)??"when";const $t=nZ(V.config.serializedWhen,ie),de={id:crypto.randomUUID(),conditions:$t,type:"condition-node",isLarge:(($t==null?void 0:$t.length)>1||$t.some(({fnString:ge})=>!!ge))&&ie!=="else"};(ie==="until"||ie==="while")&&(w=de.id),K.push(de)}if(pe){const $t={id:crypto.randomUUID(),type:"loop-result-node",loopType:"finished",loopResult:V.config.loopType==="until"};E.push($t),K.push($t)}if(!pe&&((kt=V.config)!=null&&kt.loopType)){const $t={id:crypto.randomUUID(),type:"loop-result-node",loopType:V.config.loopType,loopResult:V.config.loopType!=="until"};E.push($t),K.push($t)}return(ie==="if"||ie==="else")&&(ue={...ue,label:ie==="if"?"start if":"start else"}),V.config.loopType&&(pe?S=ue:k=ue),ue={...ue,loopType:pe?"finished":V.config.loopType,label:((Nt=V.config)==null?void 0:Nt.loopLabel)||ue.label},K.push(ue),K},[]);let j=[],B=d!=null&&d.includes("&&")?d.split("&&"):[];d!=null&&d.includes("&&")&&(j=[{id:d,label:d,type:"after-node",steps:B}]);const L=[...I,...j].map((K,V)=>{const X=t==null?void 0:t[K.id],re=K.originalId===d||X;return{id:K.id,position:{x:A*300+300,y:V*100+100},type:K.type,data:{conditions:K.conditions,label:K.label,description:K.description,result:K.loopResult,loopType:K.loopType,steps:K.steps,withoutBottomHandle:re?!1:V===I.length-1,isLarge:K.isLarge,stepGraph:K.stepGraph,stepSubscriberGraph:K.stepSubscriberGraph}}});s=[...s,...L].map(K=>({...K,data:{...K.data,withoutBottomHandle:B.includes(K.id)?!1:K.data.withoutBottomHandle}}));const z=[...I].slice(0,-1),Y=I[0],Q=I[I.length-1],$=B==null?void 0:B.map(K=>({id:`e${K}-${d}`,source:K,target:d,...Hs})),J=E==null?void 0:E.find(K=>K.loopType==="finished"),H=(c=z.map((K,V)=>({id:`e${K.id}-${I[V+1].id}`,source:K.id,target:I[V+1].id,remove:(J==null?void 0:J.id)===I[V+1].id,...Hs})))==null?void 0:c.filter(K=>!K.remove),q=d===Y.id?[]:[{id:`e${d}-${Y.id}`,source:d,target:Y.id,remove:(J==null?void 0:J.id)===Y.id,...Hs}].filter(K=>!K.remove),W=Q.originalId===d?[{id:`e${Q.id}-${d}`,source:Q.id,target:d,...Hs}]:[];o=[...o,...$,...q,...H,...W],a=[...a,...I]}if(w&&E.length&&S&&k){const A=E.map(j=>({id:`e${w}-${j.id}`,source:w,target:j.id,...Hs})),P=E==null?void 0:E.find(j=>j.loopType==="finished"),M=E==null?void 0:E.find(j=>j.loopType!=="finished"),F={id:`e${M==null?void 0:M.id}-${k==null?void 0:k.id}`,source:M==null?void 0:M.id,target:k.id,...Hs},I={id:`e${P==null?void 0:P.id}-${S==null?void 0:S.id}`,source:P==null?void 0:P.id,target:S.id,...Hs};o=[...o,...A,F,I]}}}const{nodes:l,edges:u}=D9(s,o);return{nodes:l,edges:u}},k9=({stepFlow:e,xIndex:t,yIndex:n,prevNodeIds:r,nextStepFlow:i,condition:s,allPrevNodeIds:o})=>{let a=[];if(((i==null?void 0:i.type)==="step"||(i==null?void 0:i.type)==="foreach"||(i==null?void 0:i.type)==="loop")&&(a=[o!=null&&o.includes(i.step.id)?`${i.step.id}-${n+1}`:i.step.id]),(i==null?void 0:i.type)==="parallel"&&(a=(i==null?void 0:i.steps.map(l=>{const u=l.step.id;return o!=null&&o.includes(u)?`${u}-${n+1}`:u}))||[]),(i==null?void 0:i.type)==="conditional"&&(a=(i==null?void 0:i.serializedConditions.map(l=>l.id))||[]),e.type==="step"||e.type==="foreach"){const l=e.step.component==="WORKFLOW",u=o!=null&&o.includes(e.step.id)?`${e.step.id}-${n}`:e.step.id,c=[...s?[{id:s.id,position:{x:t*300,y:n*100},type:"condition-node",data:{label:s.id,withoutTopHandle:!1,withoutBottomHandle:!a.length,isLarge:!0,conditions:[{type:"when",fnString:s.fn}]}}]:[],{id:u,position:{x:t*300,y:(n+(s?1:0))*100},type:l?"nested-node":"default-node",data:{label:e.step.id,description:e.step.description,withoutTopHandle:s?!1:!r.length,withoutBottomHandle:!a.length,stepGraph:l?e.step.serializedStepFlow:void 0}}],d=[...r.length?s?[...r.map(f=>({id:`e${f}-${s.id}`,source:f,target:s.id,...Hs})),{id:`e${s.id}-${u}`,source:s.id,target:u,...Hs}]:r.map(f=>({id:`e${f}-${u}`,source:f,target:u,...Hs})):[],...a.length?a.map(f=>({id:`e${u}-${f}`,source:u,target:f,...Hs})):[]];return{nodes:c,edges:d,nextPrevNodeIds:[u]}}if(e.type==="loop"){const{step:l,serializedCondition:u,loopType:c}=e,d=l.component==="WORKFLOW",f=[{id:l.id,position:{x:t*300,y:n*100},type:d?"nested-node":"default-node",data:{label:l.id,description:l.description,withoutTopHandle:!r.length,withoutBottomHandle:!1,stepGraph:d?l.serializedStepFlow:void 0}},{id:u.id,position:{x:t*300,y:(n+1)*100},type:"condition-node",data:{label:u.id,withoutTopHandle:!1,withoutBottomHandle:!a.length,isLarge:!0,conditions:[{type:c,fnString:u.fn}]}}],p=[...r.length?r.map(b=>({id:`e${b}-${l.id}`,source:b,target:l.id,...Hs})):[],{id:`e${l.id}-${u.id}`,source:l.id,target:u.id,...Hs},...a.length?a.map(b=>({id:`e${u.id}-${b}`,source:u.id,target:b,...Hs})):[]];return{nodes:f,edges:p,nextPrevNodeIds:[u.id]}}if(e.type==="parallel"){let l=[],u=[];return e.steps.forEach((c,d)=>{const{nodes:f,edges:p}=k9({stepFlow:c,xIndex:d,yIndex:n,prevNodeIds:r,nextStepFlow:i,allPrevNodeIds:o});l.push(...f),u.push(...p)}),{nodes:l,edges:u,nextPrevNodeIds:l.map(c=>c.id)}}if(e.type==="conditional"){let l=[],u=[];return e.steps.forEach((c,d)=>{const{nodes:f,edges:p}=k9({stepFlow:c,xIndex:d,yIndex:n,prevNodeIds:r,nextStepFlow:i,condition:e.serializedConditions[d],allPrevNodeIds:o});l.push(...f),u.push(...p)}),{nodes:l,edges:u,nextPrevNodeIds:l.filter(({type:c})=>c!=="condition-node").map(c=>c.id)}}return{nodes:[],edges:[],nextPrevNodeIds:[]}},Sme=({stepGraph:e})=>{if(!e)return{nodes:[],edges:[]};if(e.length===0)return{nodes:[],edges:[]};let t=[],n=[],r=[],i=[];for(let a=0;a<e.length;a++){const{nodes:l,edges:u,nextPrevNodeIds:c}=k9({stepFlow:e[a],xIndex:a,yIndex:a,prevNodeIds:r,nextStepFlow:a===e.length-1?void 0:e[a+1],allPrevNodeIds:i});t.push(...l),n.push(...u),r=c,i.push(...r)}const{nodes:s,edges:o}=D9(t,n);return{nodes:s,edges:o}},gmt=Tb("block",{variants:{variant:{primary:"text-text",secondary:"text-text-dim"},size:{default:"text-base",xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"primary",size:"default",weight:"normal"}}),To=({className:e,weight:t,variant:n,as:r="span",size:i,...s})=>y.jsx(r,{className:Ke(gmt({size:i,variant:n,weight:t,className:e})),...s}),Cme=Lhe,Eme=Kj,Dme=Zj,F7=D_,M7=k_,kme=_.forwardRef(({className:e,...t},n)=>y.jsx(Zm,{ref:n,className:Ke("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));kme.displayName=Zm.displayName;const e2=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(M7,{children:[y.jsx(kme,{}),y.jsxs(Jm,{ref:r,className:Ke("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,y.jsxs(jw,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(D0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));e2.displayName=Jm.displayName;const t2=_.forwardRef(({className:e,...t},n)=>y.jsx(Qm,{ref:n,className:Ke("text-lg font-semibold leading-none tracking-tight",e),...t}));t2.displayName=Qm.displayName;const ymt=_.forwardRef(({className:e,...t},n)=>y.jsx(eg,{ref:n,className:Ke("text-sm text-muted-foreground",e),...t}));ymt.displayName=eg.displayName;const n2=_.forwardRef(({className:e,children:t,viewPortClassName:n,maxHeight:r,autoScroll:i=!1,...s},o)=>{const a=_.useRef(null);return Zpe(a,{enabled:i}),y.jsxs(BT,{ref:o,className:Ke("relative overflow-hidden",e),...s,children:[y.jsx(Xhe,{ref:a,className:Ke("h-full w-full rounded-[inherit] [&>div]:!block",n),style:r?{maxHeight:r}:void 0,children:t}),y.jsx(Ame,{}),y.jsx(Zhe,{})]})});n2.displayName=BT.displayName;const Ame=_.forwardRef(({className:e,orientation:t="vertical",...n},r)=>y.jsx(hS,{ref:r,orientation:t,className:Ke("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:y.jsx(t7,{className:"relative flex-1 rounded-full bg-border"})}));Ame.displayName=hS.displayName;function r2({data:e}){var l;const{conditions:t}=e,[n,r]=_.useState(!0),[i,s]=_.useState(!1),o=(l=t[0])==null?void 0:l.type,a=(t.some(u=>u.fnString)||(t==null?void 0:t.length)>1)&&o!=="else";return y.jsxs(Cme,{open:a?n:!0,onOpenChange:u=>{a&&r(u)},className:Ke("bg-mastra-bg-3 rounded-md w-[274px] flex flex-col p-2 gap-2"),children:[y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsxs(Eme,{className:"flex items-center justify-between w-full",children:[y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-3 bg-mastra-bg-11 my-auto block rounded-[0.125rem] px-2 py-1 text-[10px] w-fit",children:o==null?void 0:o.toUpperCase()}),a&&y.jsx(yb,{className:Ke("w-4 h-4 transition-transform",{"transform rotate-180":n})})]}),o==="else"?null:y.jsx(Dme,{className:"flex flex-col gap-2",children:t.map((u,c)=>{var d,f,p;return u.fnString?y.jsxs(_.Fragment,{children:[y.jsx(GM,{theme:DA.oneDark,code:String(u.fnString).trim(),language:"javascript",children:({className:b,style:w,tokens:E,getLineProps:S,getTokenProps:k})=>y.jsx("pre",{className:`${b} relative font-mono text-sm overflow-x-auto p-3 w-full cursor-pointer rounded-lg mt-2`,style:{...w,backgroundColor:"transparent",border:"1px solid #343434",maxHeight:"9.62rem"},onClick:()=>s(!0),children:E.map((A,P)=>y.jsxs("div",{...S({line:A}),children:[y.jsx("span",{className:"inline-block mr-2 text-muted-foreground",children:P+1}),A.map((M,F)=>y.jsx("span",{...k({token:M})},F))]},P))})}),y.jsx(F7,{open:i,onOpenChange:s,children:y.jsxs(e2,{className:"max-w-[30rem] bg-[#121212] p-[0.5rem]",children:[y.jsx(t2,{className:"sr-only",children:"Condition Function"}),y.jsx(n2,{className:"w-full p-2",maxHeight:"400px",children:y.jsx(GM,{theme:DA.oneDark,code:String(u.fnString).trim(),language:"javascript",children:({className:b,style:w,tokens:E,getLineProps:S,getTokenProps:k})=>y.jsx("pre",{className:`${b} relative font-mono text-sm overflow-x-auto p-3 w-full rounded-lg mt-2 dark:bg-zinc-800`,style:{...w,backgroundColor:"#121212",padding:"0 0.75rem 0 0"},children:E.map((A,P)=>y.jsxs("div",{...S({line:A}),children:[y.jsx("span",{className:"inline-block mr-2 text-muted-foreground",children:P+1}),A.map((M,F)=>y.jsx("span",{...k({token:M})},F))]},P))})})})]})})]},`${u.fnString}-${c}`):y.jsx(_.Fragment,{children:(d=u.ref)!=null&&d.step?y.jsxs("div",{className:"flex items-center gap-1",children:[c===0?null:y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-3 bg-mastra-bg-11 my-auto block rounded-[0.125rem] px-2 py-1 text-[10px]",children:((f=u.conj)==null?void 0:f.toLocaleUpperCase())||"WHEN"}),y.jsxs(To,{size:"xs",className:" text-mastra-el-3 flex-1",children:[u.ref.step.id||u.ref.step,"'s ",u.ref.path," ",Object.entries(u.query).map(([b,w])=>`${b} ${String(w)}`)]})]}):null},`${(p=u.ref)==null?void 0:p.path}-${c}`)})}),y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function i2({data:e}){const{label:t,description:n,withoutTopHandle:r,withoutBottomHandle:i}=e;return y.jsxs("div",{className:Ke("bg-mastra-bg-8 rounded-md w-[274px]"),children:[!r&&y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2",children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-[6px] rounded-sm p-2",children:[y.jsx(Cse,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:t})]})}),n&&y.jsx("div",{className:"bg-mastra-bg-4 rounded-b-md p-2 text-[10px] text-left text-mastra-el-4",children:n}),!i&&y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function s2({data:e}){const{steps:t}=e,[n,r]=_.useState(!0);return y.jsxs(Cme,{open:n,onOpenChange:r,className:Ke("bg-mastra-bg-3 rounded-md w-[274px] flex flex-col p-2 gap-2"),children:[y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsxs(Eme,{className:"flex items-center justify-between w-full",children:[y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-3 bg-mastra-bg-11 my-auto block rounded-[0.125rem] px-2 py-1 text-[10px] w-fit",children:"AFTER"}),y.jsx(yb,{className:Ke("w-4 h-4 transition-transform",{"transform rotate-180":n})})]}),y.jsx(Dme,{className:"flex flex-col gap-2",children:t.map(i=>y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-[6px] rounded-sm p-2",children:[y.jsx(Cse,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:i})]},i))}),y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function o2({data:e}){const{result:t}=e;return y.jsxs("div",{className:Ke("bg-mastra-bg-8 rounded-md w-[274px]"),children:[y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2",children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-[6px] rounded-sm p-2",children:[t?y.jsx(V9e,{className:"text-current w-4 h-4"}):y.jsx(G9e,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:String(t)})]})}),y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function O7({color:e="#fff",className:t}){return y.jsx("svg",{className:Ke("animate-spin duration-700",t),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",children:y.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56",stroke:e})})}function bmt({stepGraph:e,stepSubscriberGraph:t,open:n}){const{nodes:r,edges:i}=wme({stepGraph:e,stepSubscriberGraph:t}),[s,o]=_.useState(!1),[a,l,u]=NT(r),[c]=PT(i),d={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2};return _.useEffect(()=>{n&&setTimeout(()=>{o(!0)},500)},[n]),y.jsx("div",{className:"w-full h-full relative",children:s?y.jsxs(TT,{nodes:a,edges:c,fitView:!0,fitViewOptions:{maxZoom:.85},nodeTypes:d,onNodesChange:u,children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Lines,gap:12,size:.5})]}):y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx(O7,{})})})}const _me=_.createContext({});function vmt({children:e}){const[t,n]=_.useState(null),[r,i]=_.useState(null),[s,o]=_.useState(!1),[a,l]=_.useState(""),u=()=>{o(!1),n(null),i(null),l("")},c=({label:d,stepGraph:f,stepSubscriberGraph:p})=>{l(d),n(f),i(p),o(!0)};return y.jsxs(_me.Provider,{value:{showNestedGraph:c,closeNestedGraph:u},children:[e,y.jsx(F7,{open:s,onOpenChange:u,children:y.jsx(M7,{children:y.jsxs(e2,{className:"w-[40rem] h-[40rem] bg-[#121212] p-[0.5rem]",children:[y.jsxs(t2,{className:"flex items-center gap-1.5 absolute top-2.5 left-2.5",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsxs(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:[a," workflow"]})]}),y.jsx(dS,{children:y.jsx(bmt,{stepGraph:t,open:s,stepSubscriberGraph:r})})]})})})]})}function xmt({data:e}){const{label:t,withoutTopHandle:n,withoutBottomHandle:r,stepGraph:i,stepSubscriberGraph:s}=e,{showNestedGraph:o}=_.useContext(_me);return y.jsxs("div",{className:Ke("bg-[rgba(29,29,29,0.5)] rounded-md h-full overflow-scroll w-[274px]"),children:[!n&&y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2 cursor-pointer",onClick:()=>o({label:t,stepGraph:i,stepSubscriberGraph:s}),children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-1.5 rounded-sm p-2 cursor-pointer",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:t})]})}),!r&&y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function wmt({workflow:e}){const{nodes:t,edges:n}=wme({stepGraph:e.serializedStepGraph||e.stepGraph,stepSubscriberGraph:e.serializedStepSubscriberGraph||e.stepSubscriberGraph,steps:e.steps}),[r,i,s]=NT(t),[o]=PT(n),a={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2,"nested-node":xmt};return y.jsx("div",{className:"w-full h-full",children:y.jsxs(TT,{nodes:r,edges:o,nodeTypes:a,onNodesChange:s,fitView:!0,fitViewOptions:{maxZoom:.85},children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Dots,gap:12,size:.5})]})})}const Tme=e=>e.replace(/[-_\s]+(.)?/g,(n,r)=>r?r.toUpperCase():"").replace(/^(.)/,n=>n.toLowerCase()).replace(/([A-Z])/g," $1").replace(/^./,n=>n.toUpperCase()).trim();function Smt({workflowId:e,baseUrl:t}){const{legacyWorkflow:n,isLoading:r}=gme(e,t);return r?y.jsx("div",{className:"p-4",children:y.jsx(Qo,{className:"h-[600px]"})}):n?y.jsx(vmt,{children:y.jsx(dS,{children:y.jsx(wmt,{workflow:n})})}):y.jsx("div",{className:"grid h-full place-items-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-2",children:[y.jsx(pI,{}),y.jsxs("div",{children:["We couldn't find ",Tme(e)," workflow."]})]})})}const Cmt=Ae.forwardRef(({children:e,...t},n)=>y.jsx("form",{ref:n,className:"space-y-4",...t,children:e})),Emt=["boolean","object","array"],Dmt=({label:e,children:t,id:n,field:r,error:i})=>{var o;const s=Emt.includes(r.type);return y.jsxs("div",{className:"pb-4 last:pb-0",children:[!s&&y.jsxs(xt,{as:"label",variant:"ui-sm",className:"text-icon3 pb-1 block",htmlFor:n,children:[e,r.required&&y.jsx("span",{className:"text-accent2",children:" *"})]}),t,((o=r.fieldConfig)==null?void 0:o.description)&&y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-icon6",children:r.fieldConfig.description}),i&&y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-accent2",children:i})]})},kmt=Tb("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Nme=_.forwardRef(({className:e,variant:t,...n},r)=>y.jsx("div",{ref:r,role:"alert",className:Ke(kmt({variant:t}),e),...n}));Nme.displayName="Alert";const Pme=_.forwardRef(({className:e,...t},n)=>y.jsx("h5",{ref:n,className:Ke("mb-1 font-medium leading-none tracking-tight",e),...t}));Pme.displayName="AlertTitle";const Amt=_.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:Ke("text-sm [&_p]:leading-relaxed",e),...t}));Amt.displayName="AlertDescription";const _mt=({error:e})=>y.jsxs(Nme,{variant:"destructive",children:[y.jsx(pI,{className:"h-4 w-4"}),y.jsx(Pme,{children:e})]}),Tmt=({children:e})=>y.jsx(Oo,{type:"submit",children:e}),Nmt=({inputProps:e,error:t,field:n,id:r})=>{const{key:i,...s}=e;return y.jsx(Rm,{id:r,className:t?"border-destructive":"",...s,defaultValue:n.default})},Pmt=({inputProps:e,error:t,field:n,id:r})=>{const{key:i,...s}=e;return _.useEffect(()=>{n.default!==void 0&&s.onChange({target:{value:Number(n.default),name:e.name}})},[n.default]),y.jsx(Rm,{id:r,type:"number",className:t?"border-destructive":"",...s,defaultValue:n.default!==void 0?Number(n.default):void 0,onChange:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:a,name:e.name}})},onBlur:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:Number(a),name:e.name}})}})},Fme=_.forwardRef(({className:e,...t},n)=>y.jsx(Bfe,{ref:n,className:Ke("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:y.jsx(qut,{className:Ke("flex items-center justify-center text-current"),children:y.jsx(rg,{className:"h-4 w-4"})})}));Fme.displayName=Bfe.displayName;const Fmt=({field:e,label:t,id:n,inputProps:r,value:i})=>y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx(Fme,{id:n,onCheckedChange:s=>{const o={target:{name:r.name,value:s}};r.onChange(o)},defaultChecked:e.default}),y.jsxs(xt,{as:"label",variant:"ui-sm",className:"text-icon3",htmlFor:n,children:[t,e.required&&y.jsx("span",{className:"text-accent2",children:" *"})]})]});function Mme({className:e,classNames:t,showOutsideDays:n=!0,...r}){return y.jsx(Cdt,{showOutsideDays:n,className:Ke("p-3",e),classNames:{months:"flex flex-col space-y-4 sm:space-y-0",month:"space-y-4",caption_label:"text-sm text-text font-medium",nav:"space-x-1 flex items-center",nav_button_previous:Ke(ZD({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute left-4 top-[56px] z-10"),nav_button_next:Ke(ZD({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute right-4 top-[56px] z-10"),dropdown_month:"w-full border-collapse space-y-1",weeknumber:"flex",day:Ke(ZD({variant:"ghost"}),"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md","h-8 w-8 p-0 hover:bg-lightGray-7/50 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"!bg-primary !text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-lightGray-7/50 text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{},...r})}Mme.displayName="Calendar";const Mmt=EMe,Omt=DMe,Ome=_.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>y.jsx(kMe,{children:y.jsx(Jie,{ref:i,align:t,sideOffset:n,className:Ke("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Ome.displayName=Jie.displayName;const Rmt=({value:e,setValue:t,children:n,className:r,placeholder:i,...s})=>{const[o,a]=_.useState(!1);return y.jsxs(Mmt,{open:o,onOpenChange:a,children:[y.jsx(Omt,{asChild:!0,children:n||y.jsx(Rme,{value:e,placeholder:i,className:r,"data-testid":"datepicker-button"})}),y.jsx(Ome,{className:"backdrop-blur-4xl w-auto p-0 bg-[#171717]",align:"start","data-testid":"datepicker-calendar",children:y.jsx(Imt,{value:e,setValue:l=>t(l?new Date(`${l}z`):null),clearable:s.clearable,setOpenPopover:a,...s})})]})},Imt=({value:e,setValue:t,setOpenPopover:n,clearable:r,placeholder:i,className:s,...o})=>{const[a,l]=_.useState(e?_o(e,"PP"):""),[u,c]=_.useState(e?new Date(e):void 0),d=TM(w=>{Ej(w)&&(c(w),t==null||t(w),n==null||n(!1))},2e3),f=w=>{l(w.currentTarget.value);const E=new Date(w.target.value);d(E)},p=w=>{c(w),t==null||t(w),n==null||n(!1),l(w?_o(w,"PP"):"")},b=w=>{c(w),l(w?_o(w,"PP"):"")};return y.jsxs("div",{"aria-label":"Choose date",className:"relative mt-2 flex flex-col gap-2",onKeyDown:w=>{w.stopPropagation(),w.key==="Escape"&&(n==null||n(!1))},children:[y.jsx("div",{className:"w-full px-3",children:y.jsx(Rm,{type:"text",value:a,onChange:f,placeholder:i,className:s})}),y.jsx(Mme,{mode:"single",month:u,selected:u,onMonthChange:b,onSelect:p,...o}),y.jsx("div",{className:"px-3 pb-2",children:r&&y.jsx(Oo,{variant:"outline",tabIndex:0,className:"w-full !opacity-50 duration-200 hover:!opacity-100",onClick:()=>{t(null),c(void 0),l(""),n==null||n(!1)},children:"Clear"})})]})},Rme=_.forwardRef(({value:e,placeholder:t,className:n,...r},i)=>y.jsxs(Oo,{ref:i,variant:"outline",className:Ke("bg-neutral-825 border-neutral-775 w-full justify-start whitespace-nowrap rounded-md border px-2 py-0 text-left flex items-center gap-1",n),...r,children:[y.jsx(R9e,{className:"h-4 w-4"}),e?y.jsx("span",{className:"text-white",children:_o(e,"PPP")}):y.jsx("span",{className:"text-gray",children:t??"Pick a date"})]}));Rme.displayName="DefaultButton";const jmt=({inputProps:e,field:t,error:n,id:r})=>{const{key:i,...s}=e,[o,a]=_.useState(null);return _.useEffect(()=>{if(t.default){const l=new Date(t.default);Ej(l)&&a(l)}},[t]),y.jsx(Rmt,{id:r,className:n?"border-destructive":"",value:o,setValue:l=>{const u=l&&new Date(l).toISOString();u&&(s.onChange({target:{value:u==null?void 0:u.toString(),name:e.name}}),a(new Date(u)))},clearable:!0})},Lmt=Gdt,Bmt=Ydt,Ime=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(xpe,{ref:r,className:Ke("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,y.jsx(Kdt,{asChild:!0,children:y.jsx(yb,{className:"h-4 w-4 opacity-50"})})]}));Ime.displayName=xpe.displayName;const jme=_.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>y.jsx(Xdt,{children:y.jsx(wpe,{ref:i,className:Ke("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:y.jsx(Zdt,{className:Ke("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));jme.displayName=wpe.displayName;const Lme=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Spe,{ref:r,className:Ke("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-mastra-el-5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Qdt,{children:y.jsx(rg,{className:"h-4 w-4"})})}),y.jsx(Jdt,{children:t})]}));Lme.displayName=Spe.displayName;const $mt=({field:e,inputProps:t,error:n,id:r,value:i})=>{const{key:s,...o}=t;return y.jsxs(Lmt,{...o,onValueChange:a=>{const l={target:{value:a,name:t.name}};o.onChange(l)},defaultValue:e.default,children:[y.jsx(Ime,{id:r,className:n?"border-destructive":"",children:y.jsx(Bmt,{placeholder:"Select an option"})}),y.jsx(jme,{children:(e.options||[]).map(([a,l])=>y.jsx(Lme,{value:a,children:l},a))})]})},zmt=({label:e,children:t})=>{const n=e!==""&&e!=="";return y.jsxs("div",{className:"",children:[n&&y.jsxs(xt,{as:"h3",variant:"ui-sm",className:"text-icon3 flex items-center gap-1 pb-2",children:[y.jsx(Ht,{size:"sm",children:y.jsx(P9e,{})}),e]}),y.jsx("div",{className:n?"flex flex-col gap-1 [&>*]:border-dashed [&>*]:border-l [&>*]:border-l-border1 [&>*]:pl-4":"",children:t})]})},Hmt=({label:e,children:t,onAddItem:n})=>y.jsxs("div",{children:[y.jsxs("div",{className:"flex gap-2 justify-between",children:[y.jsxs(xt,{as:"h3",variant:"ui-sm",className:"text-icon3 pb-2 flex items-center gap-1",children:[y.jsx(Ht,{size:"sm",children:y.jsx(M9e,{})}),e]}),y.jsx(k7,{children:y.jsxs(XT,{delayDuration:0,children:[y.jsx(ZT,{asChild:!0,children:y.jsx("button",{onClick:n,type:"button",className:"text-icon3 bg-surface3 rounded-md p-1 hover:bg-surface4 hover:text-icon6 h-icon-sm w-icon-sm",children:y.jsx(Ht,{size:"sm",children:y.jsx(Ese,{})})})}),y.jsx(xS,{children:"Add item"})]})})]}),y.jsx("div",{className:"flex flex-col gap-1",children:t})]}),Vmt=({children:e,onRemove:t})=>y.jsxs("div",{className:"pl-4 border-l border-border1",children:[e,y.jsxs(Ni,{onClick:t,type:"button",children:[y.jsx(Ht,{size:"sm",children:y.jsx(Dse,{})}),"Delete"]})]}),Umt=({inputProps:e,field:t,error:n,id:r})=>{const{key:i,onChange:s,...o}=e,[a,l]=_.useState(()=>Object.entries(t.default||{}).map(([b,w])=>({id:b||Xp(),key:b,value:w})));_.useEffect(()=>{a.length===0&&l([{id:Xp(),key:"",value:""}])},[a]);const u=_.useCallback(b=>{const w=b.reduce((E,S)=>(S.key&&(E[S.key]=S.value),E),{});s==null||s({target:{value:w,name:e.name}})},[s,e.name]),c=(b,w,E)=>{l(S=>S.map(k=>k.id===b?{...k,[w]:E}:k))},d=()=>{u(a)},f=()=>{const b=[...a,{id:Xp(),key:"",value:""}];l(b),u(b)},p=b=>{const w=a.filter(E=>E.id!==b);w.length===0&&w.push({id:Xp(),key:"",value:""}),l(w),u(w)};return y.jsxs("div",{className:"space-y-3",children:[a.map(b=>y.jsxs("div",{className:"relative space-y-2 rounded-lg border p-4",children:[y.jsx(Oo,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-2",onClick:()=>p(b.id),children:y.jsx(Dse,{className:"h-4 w-4"})}),y.jsxs("div",{className:"space-y-2 pt-6",children:[y.jsx(Rm,{placeholder:"Key",value:b.key,onChange:w=>c(b.id,"key",w.target.value),onBlur:d}),y.jsx(Rm,{placeholder:"Value",value:b.value,onChange:w=>c(b.id,"value",w.target.value),onBlur:d})]})]},b.id)),y.jsxs(Oo,{type:"button",variant:"outline",size:"sm",className:"w-full",onClick:f,children:[y.jsx(Ese,{className:"mr-2 h-4 w-4"}),"Add Key-Value Pair"]})]})},qmt={Form:Cmt,FieldWrapper:Dmt,ErrorMessage:_mt,SubmitButton:Tmt,ObjectWrapper:zmt,ArrayWrapper:Hmt,ArrayElementWrapper:Vmt},Wmt={string:Nmt,number:Pmt,boolean:Fmt,date:jmt,select:$mt,record:Umt};function Gmt({uiComponents:e,formComponents:t,...n}){return y.jsx($ut,{...n,uiComponents:{...qmt,...e},formComponents:{...Wmt,...t}})}function Ymt(e,t){return t!=null&&t.fieldType?t.fieldType:e instanceof le.ZodObject?"object":e instanceof le.ZodNumber?"number":e instanceof le.ZodBoolean?"boolean":e instanceof le.ZodDate||e!=null&&e.isDatetime||e!=null&&e.isDate?"date":e instanceof le.ZodString?"string":e instanceof le.ZodEnum||e instanceof le.ZodNativeEnum?"select":e instanceof le.ZodArray?"array":e instanceof le.ZodRecord?"record":"string"}function A9(e,t){var u;const n=_9(t),r=MA(t),i=Ymt(n,r),s=zT(t),o=(u=n._def)==null?void 0:u.values;let a=[];o&&(Array.isArray(o)?a=o.map(c=>[c,c]):a=Object.entries(o));let l=[];return n instanceof le.ZodObject&&(l=Object.entries(n.shape).map(([c,d])=>A9(c,d))),n instanceof le.ZodArray&&(l=[A9("0",n._def.type)]),{key:e,type:i,required:!t.isOptional(),default:s,description:n.description,fieldConfig:r,options:a,schema:l}}function _9(e){return"innerType"in e._def?_9(e._def.innerType):"schema"in e._def?_9(e._def.schema):e}function Kmt(e){const n=(e instanceof le.ZodEffects?e.innerType():e).shape;return{fields:Object.entries(n).map(([i,s])=>A9(i,s))}}class Xmt extends put{constructor(n){super(n);Ve(this,"_schema");this._schema=n}parseSchema(){return Kmt(this._schema)}}const Zmt=Tb("text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bme=_.forwardRef(({className:e,...t},n)=>y.jsx(GT,{ref:n,className:Ke(Zmt(),e),...t}));Bme.displayName=GT.displayName;function Jmt(e){return e instanceof Er?Object.keys(e.shape).length===0:!1}function pw({schema:e,onSubmit:t,defaultValues:n,isSubmitLoading:r,submitButtonLabel:i}){if(!e)return console.error("no form schema found"),null;const s=l=>Jmt(l)?le.object({}):le.object({"":l}),a={schema:new Xmt(s(e)),onSubmit:async l=>{await t((l==null?void 0:l[""])||{})},defaultValues:n?{"":n}:void 0,formProps:{className:""},uiComponents:{SubmitButton:({children:l})=>y.jsx(Ni,{variant:"light",className:"w-full",size:"lg",disabled:r,children:r?y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin"})}):i||l})},formComponents:{Label:({value:l})=>y.jsx(Bme,{className:"text-sm font-normal",children:l})},withSubmit:!0};return y.jsx("div",{className:"h-full w-full",children:y.jsx(Gmt,{...a})})}function $A(e){return Function("z",`"use strict";return (${e});`)(le)}function R7({code:e="",language:t="ts",filename:n,className:r}){return y.jsxs(Zc,{code:e,language:t,theme:DA.oneDark,children:[n?y.jsx("div",{className:"absolute w-full px-6 py-2 pl-4 text-sm rounded bg-mastra-bg-2 text-mastra-el-6/50",children:n}):null,y.jsx(Zc.Code,{className:Ke("bg-transparent h-full p-6 rounded-xl whitespace-pre-wrap",n?"pt-10":"",r),children:y.jsx("div",{className:"table-row",children:y.jsxs("div",{className:"flex items-center",children:[y.jsx(Zc.LineNumber,{className:"table-cell pr-4 text-sm text-right select-none text-gray-500/50"}),y.jsx(Zc.LineContent,{className:"flex",children:y.jsx(Zc.Token,{className:"font-mono text-sm mastra-token"})})]})})})]})}const I7=_.createContext({});function $me({children:e}){const[t,n]=_.useState(null),[r,i]=_.useState(null),[s,o]=_.useState(null),a=()=>{n(null),i(null),o(null)};return y.jsx(I7.Provider,{value:{legacyResult:t,setLegacyResult:n,result:r,setResult:i,payload:s,setPayload:o,clearData:a},children:e})}const j7=({header:e,children:t,footer:n})=>y.jsxs("div",{className:"rounded-lg border-sm border-border1 bg-surface4",children:[y.jsx("div",{className:"py-1 px-2 flex items-center gap-3",children:e}),t&&y.jsx("div",{className:"border-t-sm border-border1",children:t}),n&&y.jsx("div",{className:"py-1 px-2 border-t-sm border-border1",children:n})]}),Qmt=({stepId:e,pathStatus:t,path:n})=>{const r=t==="completed"?"Completed":e===n?t.charAt(0).toUpperCase()+t.slice(1):t==="executing"?"Executing":"Completed";return y.jsx(j7,{header:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs(Ht,{children:[r==="Completed"&&y.jsx(Ype,{className:"text-accent1"}),r==="Failed"&&y.jsx(Kpe,{className:"text-accent2"}),r==="Executing"&&y.jsx(wf,{className:"text-icon3 animate-spin"})]}),y.jsx(xt,{as:"span",variant:"ui-lg",className:"text-icon6 font-medium",children:n})]})})},zme=({jsonResult:e,sanitizedJsonResult:t})=>{const{handleCopy:n}=fme({text:e}),[r,i]=_.useState(!1);return y.jsx(j7,{header:y.jsxs("div",{className:"flex items-center gap-2 justify-between w-full",children:[y.jsxs(xt,{variant:"ui-lg",className:"text-icon6 flex items-center gap-3 font-medium",children:[y.jsx(Ht,{children:y.jsx(Zft,{})}),"Results"]}),y.jsxs(XT,{children:[y.jsx(ZT,{asChild:!0,children:y.jsx("button",{className:"p-2 rounded-lg hover:bg-surface5 transition-colors duration-150 ease-in-out text-icon3 hover:text-icon6",onClick:()=>n(),children:y.jsx(Ht,{size:"sm",children:y.jsx(Gw,{})})})}),y.jsx(xS,{children:"Copy result"})]})]}),footer:y.jsx("button",{className:"w-full h-full text-center text-icon2 hover:text-icon6 text-ui-md",onClick:()=>i(s=>!s),children:r?"collapse":"expand"}),children:r?y.jsx(R7,{className:"w-full overflow-x-auto",code:t||e,language:"json"}):null})};function egt({workflowId:e,baseUrl:t,setRunId:n}){var $;const{legacyResult:r,setLegacyResult:i,payload:s,setPayload:o}=_.useContext(I7),{isLoading:a,legacyWorkflow:l}=gme(e,t),{createLegacyWorkflowRun:u,startLegacyWorkflowRun:c}=bme(t),{watchLegacyWorkflow:d,legacyWatchResult:f,isWatchingLegacyWorkflow:p}=vme(t),{resumeLegacyWorkflow:b,isResumingLegacyWorkflow:w}=xme(t),[E,S]=_.useState([]),[k,A]=_.useState(!1),P=l==null?void 0:l.triggerSchema,M=async J=>{try{if(!l)return;A(!0),i(null);const{runId:H}=await u({workflowId:e});n==null||n(H),d({workflowId:e,runId:H}),c({workflowId:e,runId:H,input:J})}catch{A(!1),xd.error("Error executing workflow")}},F=async J=>{if(!l)return;const{stepId:H,runId:q,context:W}=J,{runId:K}=await u({workflowId:e,prevRunId:q});d({workflowId:e,runId:K}),await b({stepId:H,runId:K,context:W,workflowId:e})},I=r??f,j=(I==null?void 0:I.activePaths)??{};if(_.useEffect(()=>{A(p)},[p]),_.useEffect(()=>{if(!(I!=null&&I.activePaths)||!(r!=null&&r.runId))return;const J=Object.entries(I.activePaths).filter(([H,{status:q}])=>q==="suspended").map(([H,{suspendPayload:q}])=>({stepId:H,runId:r.runId,suspendPayload:q}));S(J)},[I,r]),_.useEffect(()=>{f&&i(f)},[f]),a)return y.jsx(n2,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsx(Qo,{className:"h-10"}),y.jsx(Qo,{className:"h-10"})]})});if(!l)return null;const B=E.length>0,L=P?$A(Fm(G0(P))):null,{sanitizedOutput:z,...Y}=r??{},Q=Object.values(j).length>0;return y.jsx("div",{className:"h-full px-5 pt-3 pb-12",children:y.jsxs("div",{className:"space-y-4",children:[w&&y.jsxs("div",{className:"py-2 px-5 flex items-center gap-2 bg-surface5 -mx-5 -mt-5 border-b-sm border-border1",children:[y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin text-icon6"})}),y.jsx(xt,{children:"Resuming workflow"})]}),!B&&y.jsx(y.Fragment,{children:L?y.jsx(pw,{schema:L,defaultValues:s,isSubmitLoading:p,submitButtonLabel:"Run",onSubmit:J=>{o(J),M(J)}}):y.jsx(Ni,{className:"w-full",variant:"light",disabled:k,onClick:()=>M(null),children:k?y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin"})}):"Trigger"})}),B&&(E==null?void 0:E.map(J=>{const H=l.steps[J.stepId],q=H!=null&&H.inputSchema?$A(Fm(G0(H.inputSchema))):le.record(le.string(),le.any());return y.jsxs("div",{className:"flex flex-col px-4",children:[y.jsx(To,{variant:"secondary",className:"text-mastra-el-3",size:"xs",children:J.stepId}),J.suspendPayload&&y.jsx("div",{children:y.jsx(R7,{className:"w-full overflow-x-auto p-2",code:JSON.stringify(J.suspendPayload,null,2),language:"json"})}),y.jsx(pw,{schema:q,isSubmitLoading:w,submitButtonLabel:"Resume",onSubmit:W=>{F({stepId:J.stepId,runId:J.runId,suspendPayload:J.suspendPayload,context:W})}})]})})),Q&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx("div",{className:"flex flex-col gap-4",children:($=Object.entries(j))==null?void 0:$.map(([J,{status:H,stepPath:q}])=>y.jsx("div",{className:"flex flex-col gap-1",children:q==null?void 0:q.map((W,K)=>y.jsx(Qmt,{stepId:J,pathStatus:H,path:W},K))},J))})]}),r&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx(zme,{sanitizedJsonResult:z,jsonResult:JSON.stringify(Y,null,2)})]})]})})}function tgt({stepGraph:e,open:t}){const{nodes:n,edges:r}=Sme({stepGraph:e}),[i,s]=_.useState(!1),[o,a,l]=NT(n),[u]=PT(r),c={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2,"nested-node":Vme};return _.useEffect(()=>{t&&setTimeout(()=>{s(!0)},500)},[t]),y.jsx("div",{className:"w-full h-full relative",children:i?y.jsxs(TT,{nodes:o,edges:u,fitView:!0,fitViewOptions:{maxZoom:.85},nodeTypes:c,onNodesChange:l,children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Lines,gap:12,size:.5})]}):y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx(O7,{})})})}const Hme=_.createContext({});function ngt({children:e}){const[t,n]=_.useState(null),[r,i]=_.useState([]),[s,o]=_.useState(!1),[a,l]=_.useState(""),[u,c]=_.useState(!1),d=()=>{if(r.length){c(!0);const p=r[r.length-1];n(p.stepGraph),l(p.label),i(r.slice(0,-1)),setTimeout(()=>{c(!1)},500)}else o(!1),n(null),l("")},f=({label:p,stepGraph:b})=>{t&&(c(!0),i([...r,{stepGraph:t,label:a}])),l(p),n(b),o(!0),setTimeout(()=>{c(!1)},500)};return y.jsxs(Hme.Provider,{value:{showNestedGraph:f,closeNestedGraph:d},children:[e,y.jsx(F7,{open:s,onOpenChange:d,children:y.jsx(M7,{children:y.jsxs(e2,{className:"w-[40rem] h-[40rem] bg-[#121212] p-[0.5rem]",children:[y.jsxs(t2,{className:"flex items-center gap-1.5 absolute top-2.5 left-2.5",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsxs(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:[a," workflow"]})]}),u?y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx(O7,{})}):y.jsx(dS,{children:y.jsx(tgt,{stepGraph:t,open:s})})]})})})]})}function Vme({data:e}){const{label:t,withoutTopHandle:n,withoutBottomHandle:r,stepGraph:i}=e,{showNestedGraph:s}=_.useContext(Hme);return y.jsxs("div",{className:Ke("bg-[rgba(29,29,29,0.5)] rounded-md h-full overflow-scroll w-[274px]"),children:[!n&&y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2 cursor-pointer",onClick:()=>s({label:t,stepGraph:i}),children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-1.5 rounded-sm p-2 cursor-pointer",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:t})]})}),!r&&y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function rgt({workflow:e}){const{nodes:t,edges:n}=Sme(e),[r,i,s]=NT(t),[o]=PT(n),a={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2,"nested-node":Vme};return y.jsx("div",{className:"w-full h-full",children:y.jsxs(TT,{nodes:r,edges:o,nodeTypes:a,onNodesChange:s,fitView:!0,fitViewOptions:{maxZoom:.85},children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Dots,gap:12,size:.5})]})})}function igt({workflowId:e,baseUrl:t}){const{workflow:n,isLoading:r}=yme(e,t);return r?y.jsx("div",{className:"p-4",children:y.jsx(Qo,{className:"h-[600px]"})}):n?y.jsx(ngt,{children:y.jsx(dS,{children:y.jsx(rgt,{workflow:n})})}):y.jsx("div",{className:"grid h-full place-items-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-2",children:[y.jsx(pI,{}),y.jsxs("div",{children:["We couldn't find ",Tme(e)," workflow."]})]})})}const sgt=({stepId:e,status:t})=>y.jsx(j7,{header:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs(Ht,{children:[t==="success"&&y.jsx(Ype,{className:"text-accent1"}),t==="failed"&&y.jsx(Kpe,{className:"text-accent2"}),t==="suspended"&&y.jsx(q9e,{className:"text-icon3"}),t==="running"&&y.jsx(wf,{className:"text-icon3 animate-spin"})]}),y.jsx(xt,{as:"span",variant:"ui-lg",className:"text-icon6 font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)})]})});function ogt({workflowId:e,baseUrl:t,setRunId:n}){var J,H,q,W;const{runtimeContext:r}=Mb(),{result:i,setResult:s,payload:o,setPayload:a}=_.useContext(I7),{isLoading:l,workflow:u}=yme(e,t),{createWorkflowRun:c,startWorkflowRun:d}=bme(t),{watchWorkflow:f,watchResult:p,isWatchingWorkflow:b}=vme(t),{resumeWorkflow:w,isResumingWorkflow:E}=xme(t),[S,k]=_.useState([]),[A,P]=_.useState(!1),M=u==null?void 0:u.inputSchema,F=async K=>{try{if(!u)return;P(!0),s(null);const{runId:V}=await c({workflowId:e});n==null||n(V),f({workflowId:e,runId:V}),d({workflowId:e,runId:V,input:K,runtimeContext:r})}catch{P(!1),xd.error("Error executing workflow")}},I=async K=>{if(!u)return;const{stepId:V,runId:X,resumeData:re}=K,{runId:U}=await c({workflowId:e,prevRunId:X});f({workflowId:e,runId:U}),await w({step:V,runId:U,resumeData:re,workflowId:e,runtimeContext:r})},j=i??p,B=((H=(J=j==null?void 0:j.payload)==null?void 0:J.workflowState)==null?void 0:H.steps)??{};if(_.useEffect(()=>{P(b)},[b]),_.useEffect(()=>{var V,X;if(!((X=(V=j==null?void 0:j.payload)==null?void 0:V.workflowState)!=null&&X.steps)||!(i!=null&&i.runId))return;const K=Object.entries(j.payload.workflowState.steps).filter(([re,{status:U}])=>U==="suspended").map(([re,{payload:U}])=>({stepId:re,runId:i.runId,suspendPayload:U}));k(K)},[j,i]),_.useEffect(()=>{p&&s(p)},[p]),l)return y.jsx(n2,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsx(Qo,{className:"h-10"}),y.jsx(Qo,{className:"h-10"})]})});if(!u)return null;const L=S.length>0,z=M?$A(Fm(G0(M))):null,{sanitizedOutput:Y,...Q}=i??{},$=Object.values(B).length>0;return y.jsx("div",{className:"h-full px-5 pt-3 pb-12",children:y.jsxs("div",{className:"space-y-4",children:[E&&y.jsxs("div",{className:"py-2 px-5 flex items-center gap-2 bg-surface5 -mx-5 -mt-5 border-b-sm border-border1",children:[y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin text-icon6"})}),y.jsx(xt,{children:"Resuming workflow"})]}),!L&&y.jsx(y.Fragment,{children:z?y.jsx(pw,{schema:z,defaultValues:o,isSubmitLoading:b,submitButtonLabel:"Run",onSubmit:K=>{a(K),F(K)}}):y.jsx(Ni,{className:"w-full",variant:"light",disabled:A,onClick:()=>F(null),children:A?y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin"})}):"Trigger"})}),!b&&L&&(S==null?void 0:S.map(K=>{const V=u.steps[K.stepId],X=V!=null&&V.resumeSchema?$A(Fm(G0(V.resumeSchema))):le.record(le.string(),le.any());return y.jsxs("div",{className:"flex flex-col px-4",children:[y.jsx(To,{variant:"secondary",className:"text-mastra-el-3",size:"xs",children:K.stepId}),K.suspendPayload&&y.jsx("div",{children:y.jsx(R7,{className:"w-full overflow-x-auto p-2",code:JSON.stringify(K.suspendPayload,null,2),language:"json"})}),y.jsx(pw,{schema:X,isSubmitLoading:E,submitButtonLabel:"Resume",onSubmit:re=>{I({stepId:K.stepId,runId:K.runId,suspendPayload:K.suspendPayload,resumeData:re})}})]})})),$&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(To,{variant:"secondary",className:"px-4 text-mastra-el-3",size:"xs",children:"Status"}),y.jsx("div",{className:"px-4 flex flex-col gap-4",children:(W=(q=Object.entries(B))==null?void 0:q.filter(([K,V])=>K!=="input"&&!K.endsWith(".input")))==null?void 0:W.map(([K,{status:V}])=>y.jsx(sgt,{stepId:K,status:V}))})]})]}),i&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx(zme,{sanitizedJsonResult:Y,jsonResult:JSON.stringify(Q,null,2)})]})]})})}const L7=({columns:e,data:t,pagination:n,gotoNextPage:r,gotoPreviousPage:i,getRowId:s,selectedRowId:o,isLoading:a,emptyText:l,onClick:u})=>{const[c,d]=_.useState([]),[{pageIndex:f,pageSize:p},b]=_.useState({pageIndex:n?Math.floor(n.offset/n.limit):0,pageSize:(n==null?void 0:n.limit)??10}),[w,E]=_.useState({}),S=Jht({data:t,columns:e,getCoreRowModel:Yht(),manualPagination:!0,pageCount:n?Math.ceil(n.total/n.limit):-1,state:{sorting:c,pagination:{pageIndex:f,pageSize:p},rowSelection:w},getRowId:s,onPaginationChange:b,onSortingChange:d,enableRowSelection:!0,enableMultiRowSelection:!1,onRowSelectionChange:E}),k=y.jsx(dm,{children:y.jsx(Qs,{colSpan:e.length,children:y.jsxs("div",{className:"py-12 text-center w-full",children:["No ",l||"results"]})})}),A=S.getHeaderGroups()[0],P=S.getRowModel().rows;return y.jsxs("div",{children:[y.jsxs(tme,{children:[y.jsx(nme,{className:"sticky top-0",children:A.headers.map(M=>{const F=M.column.getSize(),I=M.column.columnDef.meta;return y.jsx(hy,{style:{width:(I==null?void 0:I.width)||F||"auto"},children:M.isPlaceholder?null:$X(M.column.columnDef.header,M.getContext())},M.id)})}),y.jsx(SS,{children:a?y.jsx(y.Fragment,{children:Array.from({length:3}).map((M,F)=>y.jsx(dm,{onClick:()=>{},children:Array.from({length:e.length}).map((I,j)=>y.jsx(Qs,{children:y.jsx(Qo,{className:"h-4 w-1/2"})},`row-${F}-cell-${j}`))},F))}):(P==null?void 0:P.length)>0?P.map(M=>y.jsx(dm,{"data-state":(M.getIsSelected()||M.id===o)&&"selected",onClick:()=>u==null?void 0:u(M.original),children:M.getVisibleCells().map(F=>$X(F.column.columnDef.cell,F.getContext()))},M.id)):k})]}),n&&y.jsxs("div",{className:"mt-4 flex items-center justify-between px-2",children:[y.jsxs("div",{className:"text-muted-foreground text-sm",children:["Showing ",n.offset+1," to ",Math.min(n.offset+t.length,n.total)," of"," ",n.total," results"]}),y.jsx("div",{className:"flex items-center space-x-6 lg:space-x-8",children:y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx(Oo,{variant:"outline",size:"sm",onClick:i,disabled:!n.offset,children:"Previous"}),y.jsx(Oo,{variant:"outline",size:"sm",onClick:r,disabled:!n.hasMore,children:"Next"})]})})]})]})},agt=({children:e})=>y.jsx("nav",{className:"bg-surface2 border-r-sm border-border1 min-h-full overflow-hidden",children:e}),rZ=({children:e,as:t="a",href:n,className:r,prefetch:i,to:s})=>y.jsx(t,{href:n,prefetch:i,to:s,className:lr("text-ui-sm flex h-full w-full flex-col justify-center font-medium",r),children:e}),lgt=({children:e})=>y.jsx("ol",{children:e}),iZ=({children:e,isActive:t})=>y.jsx("li",{className:lr("border-b-sm border-border1 hover:bg-surface3 group flex h-[54px] items-center justify-between gap-2 px-5 py-2",t&&"bg-surface4"),children:e}),ugt=({onClick:e})=>y.jsx(Ni,{className:"shrink-0 border-none bg-transparent opacity-0 transition-all group-focus-within:opacity-100 group-hover:opacity-100",onClick:e,children:y.jsx(Ht,{children:y.jsx(D0,{"aria-label":"delete thread",className:"text-icon3"})})}),rd=({children:e,label:t})=>y.jsx("nav",{"aria-label":t,children:y.jsx("ol",{className:"gap-sm flex items-center",children:e})}),Vr=({className:e,as:t,isCurrent:n,...r})=>{const i=t||"span";return y.jsxs(y.Fragment,{children:[y.jsx("li",{className:"flex h-full items-center",children:y.jsx(i,{"aria-current":n?"page":void 0,className:lr("text-ui-lg leading-ui-lg font-medium",n?"text-white":"text-icon3",e),...r})}),!n&&y.jsx("li",{role:"separator",className:"flex h-full items-center",children:y.jsx(Ht,{className:"text-icon3",children:y.jsx(npt,{})})})]})},a2=({children:e,className:t,onClick:n})=>y.jsx("div",{tabIndex:n?0:void 0,onKeyDown:r=>{n&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),n==null||n())},className:lr("flex gap-3 group/entity bg-surface3 rounded-lg border-sm border-border1 py-3 px-4",n&&"cursor-pointer hover:bg-surface4 transition-all",t),onClick:n,children:e}),l2=({children:e,className:t})=>y.jsx(Ht,{size:"lg",className:lr("text-icon3 mt-1",t),children:e}),u2=({children:e,className:t})=>y.jsx(xt,{as:"p",variant:"ui-lg",className:lr("text-icon6 font-medium",t),children:e}),c2=({children:e,className:t})=>y.jsx(xt,{as:"p",variant:"ui-sm",className:lr("text-icon3",t),children:e}),d2=({children:e,className:t})=>y.jsx("div",{className:t,children:e});function cgt({fetchFn:e,interval:t=3e3,enabled:n=!1,onSuccess:r,onError:i,shouldContinue:s=()=>!0,restartPolling:o=!1}){const[a,l]=_.useState(n),[u,c]=_.useState(null),[d,f]=_.useState(null),[p,b]=_.useState(!1),[w,E]=_.useState(!1),S=_.useRef(null),k=_.useRef(!0),[A,P]=_.useState(o),M=_.useCallback(()=>{console.log("cleanup"),S.current&&(clearTimeout(S.current),S.current=null)},[]),F=_.useCallback(()=>{console.log("stopPolling"),l(!1),M()},[M]),I=_.useCallback(()=>{console.log("startPolling"),l(!0),c(null)},[]),j=_.useCallback(async(L=!0)=>{if(k.current){b(!0);try{const z=await e();f(z),c(null),r==null||r(z),s(z)&&L?S.current=setTimeout(j,t):F()}catch(z){if(!k.current)return;c(z),i==null||i(z),F()}finally{k.current&&(E(!1),b(!1))}}},[e,t,r,i,s,F]),B=_.useCallback((L=!1)=>{console.log("refetch",{withPolling:L}),L?l(!0):j(!1),c(null)},[j]);return _.useEffect(()=>(k.current=!0,n&&a&&j(!0),()=>{console.log("cleanup poll"),k.current=!1,M()}),[n,a,j,M]),_.useEffect(()=>{P(o)},[o]),_.useEffect(()=>{A&&!a&&(l(!0),j(),P(!1))},[A]),{isPolling:a,isLoading:p,error:u,data:d,startPolling:I,stopPolling:F,firstCallLoading:w,refetch:B}}const B7=(e,t,n=!1)=>{const[r,i]=_.useState([]),{setTraces:s}=_.useContext(uc),o=_.useMemo(()=>Vl(t),[t]),a=_.useCallback(async()=>{try{const p=await o.getTelemetry({attribute:{componentName:e}});if(!p.traces)throw new Error("Error fetching traces");return Qpt((p==null?void 0:p.traces)||[],n)}catch(p){throw p}},[o,e,n]),l=_.useCallback(p=>{p.length>0&&(i(()=>p),s(()=>p))},[s]),u=_.useCallback(p=>{console.log("error, onError",p),xd.error(p.message)},[]),c=_.useCallback(()=>!0,[]),{firstCallLoading:d,error:f}=cgt({fetchFn:a,interval:3e3,onSuccess:l,onError:u,shouldContinue:c,enabled:!0});return{traces:r,firstCallLoading:d,error:f}},sZ=e=>y.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",children:[y.jsx("rect",{x:"0.605469",y:"0.5",width:"20",height:"20",rx:"2.18625",fill:"black"}),y.jsx("circle",{cx:"10.6059",cy:"10.5004",r:"6.0121",stroke:"url(#paint0_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("ellipse",{cx:"10.6069",cy:"10.501",rx:"6.0121",ry:"4.0324",transform:"rotate(45 10.6069 10.501)",stroke:"url(#paint1_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{d:"M8.15234 10.5234H13.0931",stroke:"url(#paint2_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{d:"M9.36523 11.7773L11.8755 9.26708",stroke:"url(#paint3_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{d:"M11.877 11.7773L9.36669 9.26708",stroke:"url(#paint4_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.49185 7.85663C5.44831 8.55655 4.84055 9.49673 4.84055 10.5025C4.84055 11.5082 5.44831 12.4484 6.49185 13.1483C7.5338 13.8472 8.98737 14.2875 10.6052 14.2875C12.2231 14.2875 13.6767 13.8472 14.7186 13.1483C15.7621 12.4484 16.3699 11.5082 16.3699 10.5025C16.3699 9.49673 15.7621 8.55655 14.7186 7.85663C13.6767 7.15778 12.2231 6.7175 10.6052 6.7175C8.98737 6.7175 7.5338 7.15778 6.49185 7.85663ZM6.21621 7.44566C7.35021 6.68507 8.9027 6.22266 10.6052 6.22266C12.3078 6.22266 13.8602 6.68507 14.9942 7.44566C16.1267 8.20518 16.8648 9.2812 16.8648 10.5025C16.8648 11.7238 16.1267 12.7998 14.9942 13.5593C13.8602 14.3199 12.3078 14.7823 10.6052 14.7823C8.9027 14.7823 7.35021 14.3199 6.21621 13.5593C5.0838 12.7998 4.3457 11.7238 4.3457 10.5025C4.3457 9.2812 5.0838 8.20518 6.21621 7.44566Z",fill:"url(#paint5_linear_18520_30330)"}),y.jsxs("defs",{children:[y.jsxs("linearGradient",{id:"paint0_linear_18520_30330",x1:"10.6059",y1:"4.48828",x2:"10.6059",y2:"16.5125",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint1_linear_18520_30330",x1:"10.6069",y1:"6.46857",x2:"10.6069",y2:"14.5334",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint2_linear_18520_30330",x1:"10.6227",y1:"10.5234",x2:"10.6227",y2:"11.5234",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint3_linear_18520_30330",x1:"10.6204",y1:"10.5222",x2:"11.3275",y2:"11.2293",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint4_linear_18520_30330",x1:"10.6218",y1:"10.5222",x2:"11.3289",y2:"9.81511",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint5_linear_18520_30330",x1:"10.6052",y1:"6.22266",x2:"10.6052",y2:"14.7823",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]})]})]}),dgt=[{name:"Agents",url:"/agents",icon:Fb},{name:"Networks",url:"/networks",icon:r1e},{name:"Tools",url:"/tools",icon:Vf},{name:"MCP Servers",url:"/mcps",icon:A7},{name:"Workflows",url:"/workflows",icon:wS},{name:"Runtime Context",url:"/runtime-context",icon:t1e}];function hgt(){const{state:e,toggleSidebar:t}=zw(),r=Ju().pathname;return y.jsxs(Lre,{collapsible:"icon",children:[y.jsxs($re,{className:"w-full pl-1 pt-3 pb-0",children:[y.jsxs("div",{className:"flex justify-between gap-2 items-center w-full",children:[y.jsx("span",{className:"flex shrink-0",children:e==="collapsed"?y.jsx(sZ,{className:"h-10 w-10 shrink-0"}):y.jsxs("span",{className:"flex items-center gap-0.5",children:[y.jsx(sZ,{className:"h-10 w-10 shrink-0"}),y.jsx("span",{className:"font-serif text-sm",children:"Mastra"})]})}),e==="expanded"&&y.jsxs(ea,{children:[y.jsx(ta,{asChild:!0,children:y.jsx(ay,{onClick:()=>t(),className:"w-8 text-icon3",children:y.jsx(Hz,{})})}),y.jsx(xo,{className:"bg-border1 font-sans text-icon6",children:"Collapse sidebar"})]})]}),e==="collapsed"&&y.jsx(ay,{onClick:()=>t(),tooltip:"Expand sidebar",className:"w-8 text-icon3 ml-1 absolute mt-[52px]",children:y.jsx(Hz,{className:"rotate-180"})})]}),y.jsx(Hre,{className:Nl("transition-transform",e==="collapsed"&&"translate-y-10"),children:y.jsx(J8,{children:y.jsx(Q8,{children:y.jsx(eF,{children:dgt.map((i,s)=>{const[o,a]=r.split("/"),l=i.name.toLowerCase(),u=i.url===r||i.name===r||a===l;return y.jsx(kD,{children:y.jsx(ay,{tooltip:i.name,asChild:!0,children:y.jsxs(Qt,{className:`group/icon ${u?"text-primary bg-muted/50":"text-[#939393]"}`,to:i.url,children:[y.jsx(Ht,{children:y.jsx(i.icon,{})}),y.jsx("span",{className:"text-[0.8rem] font-normal",children:i.name})]})})},`${i.name}-${s}`)})})})})}),y.jsx(zre,{className:"pl-0",children:y.jsx(J8,{children:y.jsx(Q8,{children:y.jsxs(eF,{children:[y.jsx(kD,{children:y.jsx(ay,{tooltip:"Documentation",asChild:!0,children:y.jsxs("a",{className:"group/icon text-[#939393]",href:"https://mastra.ai/docs",target:"_blank",rel:"noopener",children:[y.jsx(Ht,{children:y.jsx(Yxe,{})}),y.jsx("span",{className:"text-[0.8rem] font-normal",children:"Documentation"})]})})}),y.jsx(kD,{children:y.jsx(ay,{tooltip:"Github",asChild:!0,children:y.jsxs("a",{className:"group/icon text-[#939393]",href:"https://github.com/mastra-ai/mastra",target:"_blank",rel:"noopener",children:[y.jsx(Ht,{children:y.jsx(Qft,{})}),y.jsx("span",{className:"text-[0.8rem] font-normal",children:"Github"})]})})})]})})})}),y.jsx(Bre,{})]})}var fgt=(e,t,n,r,i,s,o,a)=>{let l=document.documentElement,u=["light","dark"];function c(p){(Array.isArray(e)?e:[e]).forEach(b=>{let w=b==="class",E=w&&s?i.map(S=>s[S]||S):i;w?(l.classList.remove(...E),l.classList.add(s&&s[p]?s[p]:p)):l.setAttribute(b,p)}),d(p)}function d(p){a&&u.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)c(r);else try{let p=localStorage.getItem(t)||n,b=o&&p==="system"?f():p;c(b)}catch{}},pgt=_.createContext(void 0),mgt={setTheme:e=>{},themes:[]},ggt=()=>{var e;return(e=_.useContext(pgt))!=null?e:mgt};_.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,themes:a,nonce:l,scriptProps:u})=>{let c=JSON.stringify([n,t,s,e,a,o,r,i]).slice(1,-1);return _.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${fgt.toString()})(${c})`}})});const ygt=({...e})=>{const{theme:t="system"}=ggt();return y.jsx(rEe,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-surface3 group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},bgt=_.createContext({theme:"system",setTheme:()=>null});function vgt({children:e,defaultTheme:t="system"}){const[n,r]=_.useState(t);return _.useEffect(()=>{const i=window.document.documentElement;if(i.classList.remove("light","dark"),n==="system"){const s=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(s);return}i.classList.add(n)},[n]),y.jsx(bgt.Provider,{value:{theme:n,setTheme:r},children:e})}const oZ=({children:e})=>y.jsx("div",{className:"bg-surface1 overflow-hidden font-sans",children:y.jsx(vgt,{defaultTheme:"dark",attribute:"class",children:y.jsxs(jre,{children:[y.jsx(hgt,{}),y.jsx("main",{className:"py-3 pr-3 w-full h-full",children:y.jsx("div",{className:"w-full h-full overflow-hidden rounded-lg border-sm border-border1 bg-surface2",children:e})}),y.jsx(ygt,{position:"bottom-right"})]})})}),ls=new cce({baseUrl:"",headers:{"x-mastra-dev-playground":"true"}}),Ume=()=>{const[e,t]=_.useState({}),[n,r]=_.useState(!0);return _.useEffect(()=>{(async()=>{r(!0);try{const s=await ls.getAgents();t(s)}catch(s){t({}),console.error("Error fetching agents",s),qn.error("Error fetching agents")}finally{r(!1)}})()},[]),{agents:e,isLoading:n}},Ob=e=>{const[t,n]=_.useState(null),[r,i]=_.useState(!0);return _.useEffect(()=>{(async()=>{i(!0);try{if(!e){n(null),i(!1);return}const o=await ls.getAgent(e).details();n(o)}catch(o){n(null),console.error("Error fetching agent",o),qn.error("Error fetching agent")}finally{i(!1)}})()},[e]),{agent:t,isLoading:r}};function xgt({agentName:e,agentId:t}){return y.jsxs(ii,{children:[y.jsxs(rd,{children:[y.jsx(Vr,{as:Qt,to:"/agents",children:"Agents"}),y.jsx(Vr,{as:Qt,to:`/agents/${t}`,isCurrent:!0,children:e})]}),y.jsxs(N7,{children:[y.jsx(Ni,{as:Qt,to:`/agents/${t}/chat`,children:"Chat"}),y.jsx(Jft,{}),y.jsx(Ni,{as:Qt,to:`/agents/${t}/traces`,children:"Traces"}),y.jsx(Ni,{as:Qt,to:`/agents/${t}/evals`,children:"Evals"})]})]})}const wgt=({children:e})=>{const{agentId:t}=Ds(),{agent:n,isLoading:r}=Ob(t);return y.jsxs("div",{className:"h-full overflow-hidden",children:[r?y.jsx(ii,{children:y.jsx(cc,{children:y.jsx(fr,{className:"h-6 w-[200px]"})})}):y.jsx(xgt,{agentName:n==null?void 0:n.name,agentId:t}),e]})},Sgt=()=>{const[e,t]=_.useState({}),[n,r]=_.useState({}),[i,s]=_.useState(!0);return _.useEffect(()=>{(async()=>{s(!0);try{const[a,l]=await Promise.all([ls.getLegacyWorkflows(),ls.getWorkflows()]);t(a),r(l)}catch(a){console.error("Error fetching workflows",a),qn.error("Error fetching workflows")}finally{s(!1)}})()},[]),{legacyWorkflows:e,workflows:n,isLoading:i}},$7=(e,t=!0)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0);return _.useEffect(()=>{t&&(async()=>{s(!0);try{if(!e){r(null),s(!1);return}const a=await ls.getLegacyWorkflow(e).details();r(a)}catch(a){r(null),console.error("Error fetching legacy workflow",a),qn.error("Error fetching legacy workflow")}finally{s(!1)}})()},[e,t]),{legacyWorkflow:n,isLoading:i}},z7=(e,t=!0)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0);return _.useEffect(()=>{t&&(async()=>{s(!0);try{if(!e){r(null),s(!1);return}const a=await ls.getWorkflow(e).details();r(a)}catch(a){r(null),console.error("Error fetching workflow",a),qn.error("Error fetching workflow")}finally{s(!1)}})()},[e,t]),{workflow:n,isLoading:i}};function qme({workflowName:e,workflowId:t,isLegacy:n}){return y.jsxs(ii,{children:[y.jsxs(rd,{children:[y.jsx(Vr,{as:Qt,to:"/workflows",children:"Workflows"}),y.jsx(Vr,{as:Qt,to:`/workflows${n?"/legacy":""}/${t}`,isCurrent:!0,children:e})]}),y.jsxs(N7,{children:[y.jsx(Ni,{as:"a",href:`/workflows${n?"/legacy":""}/${t}/graph`,children:"Graph"}),y.jsx(Ni,{as:"a",href:`/workflows${n?"/legacy":""}/${t}/traces`,children:"Traces"})]})]})}const Cgt=({children:e})=>{const{workflowId:t}=Ds(),{legacyWorkflow:n,isLoading:r}=$7(t);return y.jsx($me,{children:y.jsxs("div",{className:"h-full overflow-hidden",children:[r?y.jsx(ii,{children:y.jsx(cc,{children:y.jsx(fr,{className:"h-6 w-[200px]"})})}):y.jsx(qme,{workflowName:(n==null?void 0:n.name)||"",workflowId:t,isLegacy:!0}),e]})})},Egt=()=>{const[e,t]=_.useState({}),[n,r]=_.useState(!0);return _.useEffect(()=>{(async()=>{r(!0);try{const s=await fetch("/api/tools");if(!s.ok){const a=await s.json();t({}),console.error("Error fetching tools",a),qn.error((a==null?void 0:a.error)||"Error fetching tools");return}const o=await s.json();t(o)}catch(s){t({}),console.error("Error fetching tools",s),qn.error("Error fetching tools")}finally{r(!1)}})()},[]),{tools:e,isLoading:n}},Dgt=e=>{const[t,n]=_.useState(null),[r,i]=_.useState(!0);return _.useEffect(()=>{(async()=>{i(!0);try{if(!e){n(null),i(!1);return}const o=await fetch(`/api/tools/${e}`);if(!o.ok){const l=await o.json();n(null),console.error("Error fetching tool",l),qn.error((l==null?void 0:l.error)||"Error fetching tool");return}const a=await o.json();n(a)}catch(o){n(null),console.error("Error fetching tool",o),qn.error("Error fetching tool")}finally{i(!1)}})()},[e]),{tool:t,isLoading:r}},kgt=(e,t)=>{const n=new Map,r=Object.keys(t);for(const s of r){const o=t[s],a=o.tools,l=Object.keys(a);for(const u of l){const c=a[u];n.has(c.id)||n.set(c.id,{...c,agents:[]}),n.get(c.id).agents.push({id:s,name:o.name})}}return Object.entries(e).map(([s,o])=>{var a;return{...o,agents:((a=n.get(o.id))==null?void 0:a.agents)||[]}})},Agt=()=>{const{agents:e,isLoading:t}=Ume(),{tools:n,isLoading:r}=Egt(),i=_.useMemo(()=>kgt(n,e),[e,n]);return t||r?null:y.jsx(_gt,{toolsWithAgents:i})},_gt=({toolsWithAgents:e})=>{const[t,n]=_.useState(e),[r,i]=_.useState(""),s=o=>{const a=o.target.value;i(a),_.startTransition(()=>{n(e.filter(l=>l.id.toLowerCase().includes(a.toLowerCase())||l.description.toLowerCase().includes(a.toLowerCase())||l.agents.some(u=>u.name.toLowerCase().includes(a.toLowerCase())||u.id.toLowerCase().includes(a.toLowerCase()))))})};return y.jsxs(y.Fragment,{children:[y.jsx(ii,{children:y.jsx(cc,{children:"Tools"})}),y.jsxs("div",{className:"pt-12 overflow-y-scroll h-[calc(100%-32px)]",children:[y.jsxs("div",{className:"max-w-2xl mx-auto px-4",children:[y.jsxs("div",{className:"px-4 flex items-center gap-2 rounded-lg bg-surface5 focus-within:ring-2 focus-within:ring-accent3",children:[y.jsx(Ht,{children:y.jsx(a1e,{})}),y.jsx("input",{type:"text",placeholder:"Search for a tool",className:"w-full py-2 bg-transparent text-icon3 focus:text-icon6 placeholder:text-icon3 outline-none",value:r,onChange:s})]}),t.length===0&&y.jsx(xt,{as:"p",className:"text-icon3 py-2",children:"No tools found matching your search."})]}),y.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-4 max-w-5xl mx-auto px-4 py-8",children:t.map(o=>y.jsx(Tgt,{tool:o},o.id))})]})]})},Tgt=({tool:e})=>{const t=_.useRef(null);return y.jsxs(a2,{onClick:()=>{var n;return(n=t.current)==null?void 0:n.click()},children:[y.jsx(l2,{children:y.jsx(Vf,{className:"group-hover/entity:text-[#ECB047]"})}),y.jsxs(d2,{children:[y.jsx(u2,{children:y.jsx(Qt,{ref:t,to:`/tools/all/${e.id}`,children:e.id})}),y.jsx(c2,{children:e.description}),y.jsx("div",{className:"inline-flex flex-wrap gap-2 pt-4",children:e.agents.map(n=>y.jsx(Qt,{to:`/agents/${n.id}/chat`,onClick:r=>r.stopPropagation(),className:"group/link",children:y.jsx(Tr,{icon:y.jsx(Fb,{className:"group-hover/link:text-accent3"}),className:"bg-surface5 ",children:n.name})},n.id))})]})]})},Ns=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(BT,{ref:r,className:Mt("relative overflow-hidden",e),...n,children:[y.jsx(Xhe,{className:"h-full w-full rounded-[inherit]",children:t}),y.jsx(Wme,{}),y.jsx(Zhe,{})]}));Ns.displayName=BT.displayName;const Wme=_.forwardRef(({className:e,orientation:t="vertical",...n},r)=>y.jsx(hS,{ref:r,orientation:t,className:Mt("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:y.jsx(t7,{className:"relative flex-1 rounded-full bg-border"})}));Wme.displayName=hS.displayName;const Gme={"openai.chat":y.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 320 320",xmlns:"http://www.w3.org/2000/svg",fill:"white",children:y.jsx("path",{d:"m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"})}),"anthropic.chat":y.jsx("svg",{className:"h-3 w-3",fill:"white",height:"78",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"78",style:{color:"currentcolor"},children:y.jsx("g",{transform:"translate(0,2)",children:y.jsx("path",{d:"M11.375 0h-2.411L13.352 11.13h2.411L11.375 0ZM4.4 0 0 11.13h2.46l0.9-2.336h4.604l0.9 2.336h2.46L6.924 0H4.4Zm-0.244 6.723 1.506-3.909 1.506 3.909H4.156Z",fill:"currentColor"})})}),"anthropic.messages":y.jsx("svg",{className:"h-3 w-3",fill:"white",height:"78",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"78",style:{color:"currentcolor"},children:y.jsx("g",{transform:"translate(0,2)",children:y.jsx("path",{d:"M11.375 0h-2.411L13.352 11.13h2.411L11.375 0ZM4.4 0 0 11.13h2.46l0.9-2.336h4.604l0.9 2.336h2.46L6.924 0H4.4Zm-0.244 6.723 1.506-3.909 1.506 3.909H4.156Z",fill:"currentColor"})})})},Ngt=({row:e})=>y.jsx(T7,{icon:y.jsx(Fb,{}),name:y.jsx(Qt,{className:"w-full space-y-0",to:`/agents/${e.original.id}/chat`,children:e.original.name}),description:e.original.instructions}),Pgt=[{id:"name",header:"Name",cell:Ngt,meta:{width:"auto"}},{id:"model",header:"Model",size:160,cell:({row:e})=>y.jsx(Qs,{children:y.jsx(Tr,{variant:"default",icon:Gme[e.original.provider]??null,children:e.original.modelId})})}];function Fgt(){const e=nb(),{agents:t,isLoading:n}=Ume(),r=Object.entries(t).map(([i,s])=>({id:i,name:s.name,description:s.instructions,provider:s==null?void 0:s.provider,modelId:s==null?void 0:s.modelId}));return y.jsxs("section",{className:"overflow-hidden",children:[y.jsx(ii,{children:y.jsx(cc,{children:"Agents"})}),y.jsx(Ns,{className:"h-full",children:y.jsx(L7,{isLoading:n,columns:Pgt,data:r,onClick:i=>e(`/agents/${i.id}/chat`)})})]})}const h2=jce,CS=_.forwardRef(({className:e,...t},n)=>y.jsx(hT,{ref:n,className:Nl(e),...t}));CS.displayName=hT.displayName;const sa=_.forwardRef(({className:e,...t},n)=>y.jsx(fT,{ref:n,className:Nl(e),...t}));sa.displayName=fT.displayName;const oa=_.forwardRef(({className:e,...t},n)=>y.jsx(pT,{ref:n,className:Mt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));oa.displayName=pT.displayName;var Yme=["PageUp","PageDown"],Kme=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xme={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Rb="Slider",[T9,Mgt,Ogt]=_j(Rb),[Zme,P1t]=ks(Rb,[Ogt]),[Rgt,f2]=Zme(Rb),Jme=_.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:s=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:b,...w}=e,E=_.useRef(new Set),S=_.useRef(0),A=o==="horizontal"?Igt:jgt,[P=[],M]=Ml({prop:c,defaultProp:u,onChange:z=>{var Q;(Q=[...E.current][S.current])==null||Q.focus(),d(z)}}),F=_.useRef(P);function I(z){const Y=Hgt(P,z);L(z,Y)}function j(z){L(z,S.current)}function B(){const z=F.current[S.current];P[S.current]!==z&&f(P)}function L(z,Y,{commit:Q}={commit:!1}){const $=Wgt(s),J=Ggt(Math.round((z-r)/s)*s+r,$),H=uw(J,[r,i]);M((q=[])=>{const W=$gt(q,H,Y);if(qgt(W,l*s)){S.current=W.indexOf(H);const K=String(W)!==String(q);return K&&Q&&f(W),K?W:q}else return q})}return y.jsx(Rgt,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:i,valueIndexToChangeRef:S,thumbs:E.current,values:P,orientation:o,form:b,children:y.jsx(T9.Provider,{scope:e.__scopeSlider,children:y.jsx(T9.Slot,{scope:e.__scopeSlider,children:y.jsx(A,{"aria-disabled":a,"data-disabled":a?"":void 0,...w,ref:t,onPointerDown:ht(w.onPointerDown,()=>{a||(F.current=P)}),min:r,max:i,inverted:p,onSlideStart:a?void 0:I,onSlideMove:a?void 0:j,onSlideEnd:a?void 0:B,onHomeKeyDown:()=>!a&&L(r,0,{commit:!0}),onEndKeyDown:()=>!a&&L(i,P.length-1,{commit:!0}),onStepKeyDown:({event:z,direction:Y})=>{if(!a){const J=Yme.includes(z.key)||z.shiftKey&&Kme.includes(z.key)?10:1,H=S.current,q=P[H],W=s*J*Y;L(q+W,H,{commit:!0})}}})})})})});Jme.displayName=Rb;var[Qme,ege]=Zme(Rb,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Igt=_.forwardRef((e,t)=>{const{min:n,max:r,dir:i,inverted:s,onSlideStart:o,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...c}=e,[d,f]=_.useState(null),p=Kt(t,A=>f(A)),b=_.useRef(void 0),w=Ab(i),E=w==="ltr",S=E&&!s||!E&&s;function k(A){const P=b.current||d.getBoundingClientRect(),M=[0,P.width],I=H7(M,S?[n,r]:[r,n]);return b.current=P,I(A-P.left)}return y.jsx(Qme,{scope:e.__scopeSlider,startEdge:S?"left":"right",endEdge:S?"right":"left",direction:S?1:-1,size:"width",children:y.jsx(tge,{dir:w,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:A=>{const P=k(A.clientX);o==null||o(P)},onSlideMove:A=>{const P=k(A.clientX);a==null||a(P)},onSlideEnd:()=>{b.current=void 0,l==null||l()},onStepKeyDown:A=>{const M=Xme[S?"from-left":"from-right"].includes(A.key);u==null||u({event:A,direction:M?-1:1})}})})}),jgt=_.forwardRef((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:s,onSlideMove:o,onSlideEnd:a,onStepKeyDown:l,...u}=e,c=_.useRef(null),d=Kt(t,c),f=_.useRef(void 0),p=!i;function b(w){const E=f.current||c.current.getBoundingClientRect(),S=[0,E.height],A=H7(S,p?[r,n]:[n,r]);return f.current=E,A(w-E.top)}return y.jsx(Qme,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:y.jsx(tge,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const E=b(w.clientY);s==null||s(E)},onSlideMove:w=>{const E=b(w.clientY);o==null||o(E)},onSlideEnd:()=>{f.current=void 0,a==null||a()},onStepKeyDown:w=>{const S=Xme[p?"from-bottom":"from-top"].includes(w.key);l==null||l({event:w,direction:S?-1:1})}})})}),tge=_.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:l,...u}=e,c=f2(Rb,n);return y.jsx(Et.span,{...u,ref:t,onKeyDown:ht(e.onKeyDown,d=>{d.key==="Home"?(o(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Yme.concat(Kme).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:ht(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),c.thumbs.has(f)?f.focus():r(d)}),onPointerMove:ht(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:ht(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),s(d))})})}),nge="SliderTrack",rge=_.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=f2(nge,n);return y.jsx(Et.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});rge.displayName=nge;var N9="SliderRange",ige=_.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=f2(N9,n),s=ege(N9,n),o=_.useRef(null),a=Kt(t,o),l=i.values.length,u=i.values.map(f=>oge(f,i.min,i.max)),c=l>1?Math.min(...u):0,d=100-Math.max(...u);return y.jsx(Et.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:c+"%",[s.endEdge]:d+"%"}})});ige.displayName=N9;var P9="SliderThumb",sge=_.forwardRef((e,t)=>{const n=Mgt(e.__scopeSlider),[r,i]=_.useState(null),s=Kt(t,a=>i(a)),o=_.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return y.jsx(Lgt,{...e,ref:s,index:o})}),Lgt=_.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:i,...s}=e,o=f2(P9,n),a=ege(P9,n),[l,u]=_.useState(null),c=Kt(t,k=>u(k)),d=l?o.form||!!l.closest("form"):!0,f=N_(l),p=o.values[r],b=p===void 0?0:oge(p,o.min,o.max),w=zgt(r,o.values.length),E=f==null?void 0:f[a.size],S=E?Vgt(E,b,a.direction):0;return _.useEffect(()=>{if(l)return o.thumbs.add(l),()=>{o.thumbs.delete(l)}},[l,o.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${b}% + ${S}px)`},children:[y.jsx(T9.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(Et.span,{role:"slider","aria-label":e["aria-label"]||w,"aria-valuemin":o.min,"aria-valuenow":p,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...s,ref:c,style:p===void 0?{display:"none"}:e.style,onFocus:ht(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),d&&y.jsx(Bgt,{name:i??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:p},r)]})});sge.displayName=P9;var Bgt=e=>{const{value:t,...n}=e,r=_.useRef(null),i=HT(t);return _.useEffect(()=>{const s=r.current,o=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(o,"value").set;if(i!==t&&l){const u=new Event("input",{bubbles:!0});l.call(s,t),s.dispatchEvent(u)}},[i,t]),y.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function $gt(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,s)=>i-s)}function oge(e,t,n){const s=100/(n-t)*(e-t);return uw(s,[0,100])}function zgt(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Hgt(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function Vgt(e,t,n){const r=e/2,s=H7([0,50],[0,r]);return(r-s(t)*n)*n}function Ugt(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function qgt(e,t){if(t>0){const n=Ugt(e);return Math.min(...n)>=t}return!0}function H7(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Wgt(e){return(String(e).split(".")[1]||"").length}function Ggt(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var age=Jme,Ygt=rge,Kgt=ige,Xgt=sge;const mw=_.forwardRef(({className:e,...t},n)=>y.jsxs(age,{ref:n,className:Mt("relative flex w-full touch-none select-none items-center",e),...t,children:[y.jsx(Ygt,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:y.jsx(Kgt,{className:"absolute h-full bg-primary/50"})}),y.jsx(Xgt,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-white shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));mw.displayName=age.displayName;const Zgt=Ff("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),dl=_.forwardRef(({className:e,...t},n)=>y.jsx(GT,{ref:n,className:Mt(Zgt(),e),...t}));dl.displayName=GT.displayName;var V7="Radio",[Jgt,lge]=ks(V7),[Qgt,eyt]=Jgt(V7),uge=_.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,form:u,...c}=e,[d,f]=_.useState(null),p=Kt(t,E=>f(E)),b=_.useRef(!1),w=d?u||!!d.closest("form"):!0;return y.jsxs(Qgt,{scope:n,checked:i,disabled:o,children:[y.jsx(Et.button,{type:"button",role:"radio","aria-checked":i,"data-state":hge(i),"data-disabled":o?"":void 0,disabled:o,value:a,...c,ref:p,onClick:ht(e.onClick,E=>{i||l==null||l(),w&&(b.current=E.isPropagationStopped(),b.current||E.stopPropagation())})}),w&&y.jsx(tyt,{control:d,bubbles:!b.current,name:r,value:a,checked:i,required:s,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});uge.displayName=V7;var cge="RadioIndicator",dge=_.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=eyt(cge,n);return y.jsx(As,{present:r||s.checked,children:y.jsx(Et.span,{"data-state":hge(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t})})});dge.displayName=cge;var tyt=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=_.useRef(null),o=HT(n),a=N_(t);return _.useEffect(()=>{const l=s.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});d.call(l,n),l.dispatchEvent(f)}},[o,n,r]),y.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function hge(e){return e?"checked":"unchecked"}var nyt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],U7="RadioGroup",[ryt,F1t]=ks(U7,[dT,lge]),fge=dT(),pge=lge(),[iyt,syt]=ryt(U7),mge=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,p=fge(n),b=Ab(u),[w,E]=Ml({prop:s,defaultProp:i,onChange:d});return y.jsx(iyt,{scope:n,name:r,required:o,disabled:a,value:w,onValueChange:E,children:y.jsx(Dce,{asChild:!0,...p,orientation:l,dir:b,loop:c,children:y.jsx(Et.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:b,...f,ref:t})})})});mge.displayName=U7;var gge="RadioGroupItem",yge=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=syt(gge,n),o=s.disabled||r,a=fge(n),l=pge(n),u=_.useRef(null),c=Kt(t,u),d=s.value===i.value,f=_.useRef(!1);return _.useEffect(()=>{const p=w=>{nyt.includes(w.key)&&(f.current=!0)},b=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",b)}},[]),y.jsx(kce,{asChild:!0,...a,focusable:!o,active:d,children:y.jsx(uge,{disabled:o,required:s.required,checked:d,...l,...i,name:s.name,ref:c,onCheck:()=>s.onValueChange(i.value),onKeyDown:ht(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:ht(i.onFocus,()=>{var p;f.current&&((p=u.current)==null||p.click())})})})});yge.displayName=gge;var oyt="RadioGroupIndicator",bge=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=pge(n);return y.jsx(dge,{...i,...r,ref:t})});bge.displayName=oyt;var vge=mge,xge=yge,ayt=bge;const wge=_.forwardRef(({className:e,...t},n)=>y.jsx(vge,{className:Mt("grid gap-2",e),...t,ref:n}));wge.displayName=vge.displayName;const F9=_.forwardRef(({className:e,...t},n)=>y.jsx(xge,{ref:n,className:Mt("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:y.jsx(ayt,{className:"flex items-center justify-center",children:y.jsx(Zxe,{className:"h-2.5 w-2.5 fill-current text-current"})})}));F9.displayName=xge.displayName;const F6=({label:e,children:t})=>y.jsxs("div",{className:"space-y-2",children:[y.jsx(xt,{as:"p",variant:"ui-md",className:"text-icon3",children:e}),t]}),Sge=Lhe,Cge=Kj,Ege=Zj,lyt=()=>{const{modelSettings:e,setModelSettings:t}=_.useContext(JT),[n,r]=_.useState(!1);return y.jsxs(Sge,{className:"rounded-lg border-sm border-border1 bg-surface3 overflow-clip",open:n,onOpenChange:r,children:[y.jsxs(Cge,{className:"text-icon3 text-ui-lg font-medium flex items-center gap-2 w-full p-[10px] justify-between",children:["Advanced Settings",y.jsx(Ht,{className:Mt("transition-transform",n?"rotate-0":"-rotate-90"),children:y.jsx(oQ,{})})]}),y.jsxs(Ege,{className:"bg-surface2 p-[10px] grid grid-cols-2 gap-[10px]",children:[y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Top K"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.topK,onChange:a=>t({...e,topK:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Frequency Penalty"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.frequencyPenalty,onChange:a=>t({...e,frequencyPenalty:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Presence Penalty"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.presencePenalty,onChange:a=>t({...e,presencePenalty:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Max Tokens"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.maxTokens,onChange:a=>t({...e,maxTokens:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Max Steps"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.maxSteps,onChange:a=>t({...e,maxSteps:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Max Retries"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.maxRetries,onChange:a=>t({...e,maxRetries:a.target.value?Number(a.target.value):void 0})})]})]})]})};function uyt({agent:e}){const{modelSettings:t,setModelSettings:n,chatWithGenerate:r,setChatWithGenerate:i}=_.useContext(JT),s=Object.entries((e==null?void 0:e.workflows)??{});return y.jsx(Ns,{className:"h-[calc(100vh-126px)] px-5 pb-4 text-xs py-2",children:y.jsxs("div",{children:[y.jsxs("section",{className:"space-y-7",children:[y.jsx(F6,{label:"Chat Method",children:y.jsxs(wge,{orientation:"horizontal",value:r?"generate":"stream",onValueChange:o=>i(o==="generate"),className:"flex flex-row gap-4",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(F9,{value:"generate",id:"generate",className:"text-icon6"}),y.jsx(dl,{className:"text-icon6 text-ui-md",htmlFor:"generate",children:"Generate"})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(F9,{value:"stream",id:"stream",className:"text-icon6"}),y.jsx(dl,{className:"text-icon6 text-ui-md",htmlFor:"stream",children:"Stream"})]})]})}),y.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[y.jsx(F6,{label:"Temperature",children:y.jsxs("div",{className:"flex flex-row justify-between items-center gap-2",children:[y.jsx(mw,{value:[(t==null?void 0:t.temperature)??.5],max:1,step:.1,onValueChange:o=>n({...t,temperature:o[0]})}),y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-icon3",children:t==null?void 0:t.temperature})]})}),y.jsx(F6,{label:"Top P",children:y.jsxs("div",{className:"flex flex-row justify-between items-center gap-2",children:[y.jsx(mw,{onValueChange:o=>n({...t,topP:o[0]}),value:[(t==null?void 0:t.topP)??1],max:1,step:.1}),y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-icon3",children:t==null?void 0:t.topP})]})})]})]}),y.jsx("section",{className:"py-7",children:y.jsx(lyt,{})}),y.jsxs(Ni,{onClick:()=>n({frequencyPenalty:void 0,presencePenalty:void 0,maxRetries:2,maxSteps:5,maxTokens:void 0,temperature:.5,topP:1,topK:void 0}),children:[y.jsx(Ht,{children:y.jsx(aQ,{})}),"Reset"]}),s!=null&&s.length?y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Workflows"}),y.jsx("div",{className:"flex flex-col gap-2 text-mastra-el-5",children:s.map(([o,a])=>y.jsx("span",{onClick:()=>{},className:"no-underline",children:a.name},o))})]}):null]})})}function cyt({agentId:e}){return y.jsx(Ns,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs w-full",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsx("p",{className:"text-mastra-el-5",children:"/api/agents"})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/evals/ci"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/evals/live"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/instructions"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/generate"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/text-object"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream-object"]})]})]})})}const Dge=e=>{const[t,n]=_.useState([]),[r,i]=_.useState(!0),{transports:s,isLoading:o}=dyt(),a=s[0],l=async u=>{const c=u??e;if(!c){i(!1);return}i(!0);try{const d=await ls.getLogForRun({transportId:a,runId:c});n(d.map(f=>({level:f.level,time:f.time,pid:f.pid,hostname:f.hostname,name:f.name,runId:f.runId,msg:f.msg})))}catch(d){n([]),console.error("Error fetching logs",d),qn.error("Error fetching logs")}finally{i(!1)}};return _.useEffect(()=>{o||!a||l(e)},[e,a]),{logs:t,isLoading:r,refetchLogs:l}},dyt=()=>{const[e,t]=_.useState([]),[n,r]=_.useState(!0),i=async()=>{try{const s=await ls.getLogTransports();t(s.transports)}catch(s){console.error("Error fetching logs",s),qn.error("Error fetching logs")}finally{r(!1)}};return _.useEffect(()=>{i()},[]),{transports:e,isLoading:n}};function hyt({agentId:e}){const{logs:t,isLoading:n,refetchLogs:r}=Dge(e);return y.jsxs(Ns,{className:"h-[calc(100vh-126px)] px-4 pb-4 text-xs w-full",children:[y.jsx("div",{className:"flex justify-end sticky top-0 py-2",children:y.jsx(mm,{variant:"outline",onClick:()=>r(),children:n?y.jsx(ak,{className:"w-4 h-4 animate-spin"}):y.jsx(ak,{className:"w-4 h-4"})})}),y.jsx("div",{className:"space-y-4",children:t.length===0?y.jsxs("p",{className:"text-gray-300/60",children:["No log drains. By default, logs are sent to the console. To configure log drains see"," ",y.jsx("a",{href:"https://mastra.ai/reference/observability/create-logger#upstash-logger-remote-log-drain",target:"_blank",rel:"noopener",className:" hover:text-gray-100 underline",children:"docs."})]}):t.map((i,s)=>y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex gap-2 items-center",children:[y.jsxs("p",{className:"text-mastra-el-5",children:["[",_o(new Date(i.time),"yyyy-MM-dd HH:mm:ss"),"]"]}),y.jsxs("p",{className:"text-mastra-el-4",children:["[",i.level,"]"]})]}),y.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:y.jsx("code",{children:i.msg})})]},s))})]})}function Ib({text:e,copyMessage:t="Copied to clipboard!"}){const[n,r]=_.useState(!1),i=_.useRef(null),s=_.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{qn.success(t),r(!0),i.current&&(clearTimeout(i.current),i.current=null),i.current=setTimeout(()=>{r(!1)},2e3)}).catch(()=>{qn.error("Failed to copy to clipboard.")})},[e,t]);return{isCopied:n,handleCopy:s}}var kge="AlertDialog",[fyt,M1t]=ks(kge,[Vne]),Id=Vne(),Age=e=>{const{__scopeAlertDialog:t,...n}=e,r=Id(t);return y.jsx(D_,{...r,...n,modal:!0})};Age.displayName=kge;var pyt="AlertDialogTrigger",_ge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(I4e,{...i,...r,ref:t})});_ge.displayName=pyt;var myt="AlertDialogPortal",Tge=e=>{const{__scopeAlertDialog:t,...n}=e,r=Id(t);return y.jsx(k_,{...r,...n})};Tge.displayName=myt;var gyt="AlertDialogOverlay",Nge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(Zm,{...i,...r,ref:t})});Nge.displayName=gyt;var Xy="AlertDialogContent",[yyt,byt]=fyt(Xy),Pge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,s=Id(n),o=_.useRef(null),a=Kt(t,o),l=_.useRef(null);return y.jsx(F4e,{contentName:Xy,titleName:Fge,docsSlug:"alert-dialog",children:y.jsx(yyt,{scope:n,cancelRef:l,children:y.jsxs(Jm,{role:"alertdialog",...s,...i,ref:a,onOpenAutoFocus:ht(i.onOpenAutoFocus,u=>{var c;u.preventDefault(),(c=l.current)==null||c.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[y.jsx(NO,{children:r}),y.jsx(xyt,{contentRef:o})]})})})});Pge.displayName=Xy;var Fge="AlertDialogTitle",Mge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(Qm,{...i,...r,ref:t})});Mge.displayName=Fge;var Oge="AlertDialogDescription",Rge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(eg,{...i,...r,ref:t})});Rge.displayName=Oge;var vyt="AlertDialogAction",Ige=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(jw,{...i,...r,ref:t})});Ige.displayName=vyt;var jge="AlertDialogCancel",Lge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=byt(jge,n),s=Id(n),o=Kt(t,i);return y.jsx(jw,{...s,...r,ref:o})});Lge.displayName=jge;var xyt=({contentRef:e})=>{const t=`\`${Xy}\` requires a description for the component to be accessible for screen reader users.
|
|
691
|
+
`]}))})}):y.jsx("pre",{...n,children:e})});pme.displayName="HighlightedCode";const umt=({children:e,className:t,language:n,...r})=>{const i=typeof e=="string"?e:E9(e),s=Ke("overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",t);return y.jsxs("div",{className:"group/code relative mb-4",children:[y.jsx(_.Suspense,{fallback:y.jsx("pre",{className:s,...r,children:e}),children:y.jsx(pme,{language:n,className:s,children:i})}),y.jsx("div",{className:"invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100",children:y.jsx(amt,{content:i,copyMessage:"Copied code to clipboard"})})]})};function E9(e){var t;if(typeof e=="string")return e;if((t=e==null?void 0:e.props)!=null&&t.children){let n=e.props.children;return Array.isArray(n)?n.map(r=>E9(r)).join(""):E9(n)}return""}const cmt={h1:({children:e,...t})=>y.jsx("h1",{className:"text-2xl font-semibold",...t,children:e}),h2:({children:e,...t})=>y.jsx("h2",{className:"font-semibold text-xl",...t,children:e}),h3:({children:e,...t})=>y.jsx("h3",{className:"font-semibold text-lg",...t,children:e}),h4:({children:e,...t})=>y.jsx("h4",{className:"font-semibold text-base",...t,children:e}),h5:({children:e,...t})=>y.jsx("h5",{className:"font-medium",...t,children:e}),strong:({children:e,...t})=>y.jsx("strong",{className:"font-semibold",...t,children:e}),a:({children:e,...t})=>y.jsx("a",{className:"underline underline-offset-2",...t,children:e}),blockquote:({children:e,...t})=>y.jsx("blockquote",{className:"border-l-2 border-primary pl-4",...t,children:e}),code:({children:e,className:t,...n})=>{const r=/language-(\w+)/.exec(t||"");return r?y.jsx(umt,{className:t,language:r[1],...n,children:e}):y.jsx("code",{className:Ke("font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"),...n,children:e})},pre:({children:e})=>e,ol:({children:e,...t})=>y.jsx("ol",{className:"list-decimal space-y-2 pl-6",...t,children:e}),ul:({children:e,...t})=>y.jsx("ul",{className:"list-disc space-y-2 pl-6",...t,children:e}),li:({children:e,...t})=>y.jsx("li",{className:"my-1.5",...t,children:e}),table:({children:e,...t})=>y.jsx("table",{className:"w-full border-collapse overflow-y-auto rounded-md border border-foreground/20",...t,children:e}),th:({children:e,...t})=>y.jsx("th",{className:"border border-foreground/20 px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right",...t,children:e}),td:({children:e,...t})=>y.jsx("td",{className:"border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",...t,children:e}),tr:({children:e,...t})=>y.jsx("tr",{className:"m-0 border-t p-0 even:bg-muted",...t,children:e}),p:({children:e,...t})=>y.jsx("p",{className:"whitespace-pre-wrap leading-relaxed",...t,children:e}),hr:({...e})=>y.jsx("hr",{className:"border-foreground/20",...e})},Cp={bg:"bg-[rgba(124,80,175,0.25)]",text:"text-[rgb(180,140,230)]",hover:"hover:text-[rgb(200,160,250)]"},dmt=e=>{const{toolCallId:t,toolName:n,args:r,argsText:i,result:s,status:o}=e,[a,l]=_.useState({}),u=(r==null?void 0:r.actions)||[];if(u.length===0)return null;const c=f=>{l(p=>({...p,[f]:!p[f]}))},d=f=>{if(typeof f!="string")return[];const p=/(https?:\/\/[^\s]+)/g;return f.match(p)||[]};return y.jsx("div",{className:"mb-4 w-full rounded-lg border border-gray-700 overflow-hidden shadow-md",children:u.map((f,p)=>{var S;const b=`${t||"tool"}-${f.agent}-${p}`,w=a[b]||!1,E=s?d(s):[];return y.jsxs("div",{className:`border-b border-gray-700 ${p===u.length-1?"border-b-0":""}`,children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-900 hover:bg-gray-800 cursor-pointer",onClick:()=>c(b),children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:Ke("flex h-6 w-6 items-center justify-center rounded-full",Cp.bg),children:(o==null?void 0:o.type)==="running"?y.jsx(wf,{className:Ke("h-4 w-4 animate-spin",Cp.text)}):y.jsx(rg,{className:Ke("h-4 w-4",Cp.text)})}),y.jsx("div",{children:y.jsx("p",{className:"font-medium text-sm text-gray-100",children:(S=f.agent)==null?void 0:S.replaceAll("_"," ")})})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:Ke("text-xs px-2 py-1 rounded-full",Cp.bg,Cp.text),children:(o==null?void 0:o.type)==="running"?"Processing...":"Complete"}),w?y.jsx($_,{className:"h-4 w-4 text-gray-300"}):y.jsx(yb,{className:"h-4 w-4 text-gray-300"})]})]}),w&&y.jsxs("div",{className:"px-4 py-3 bg-[#111]",children:[y.jsxs("div",{className:"mb-3",children:[y.jsx("p",{className:"text-xs font-semibold text-gray-300 mb-1",children:"Query:"}),y.jsx("div",{className:"p-2 bg-gray-900 rounded border border-gray-700",children:y.jsx("p",{className:"text-sm text-gray-200 whitespace-pre-wrap",children:f.input})})]}),s&&y.jsxs("div",{children:[y.jsx("p",{className:"text-xs font-semibold text-gray-300 mb-1",children:"Result:"}),y.jsx("div",{className:"p-2 bg-gray-900 rounded border border-gray-700 max-h-60 overflow-auto",children:typeof s=="string"?y.jsx("div",{className:"text-sm text-gray-200",children:y.jsx(lmt,{children:s})}):y.jsx("p",{className:"text-sm text-gray-200 whitespace-pre-wrap",children:JSON.stringify(s,null,2)})}),E.length>0&&y.jsxs("div",{className:"mt-2",children:[y.jsx("p",{className:"text-xs font-semibold text-gray-300 mb-1",children:"Sources:"}),y.jsxs("div",{className:"flex flex-wrap gap-2",children:[E.slice(0,3).map((k,A)=>y.jsxs("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:Ke("inline-flex items-center gap-1 text-xs hover:underline",Cp.text,Cp.hover),children:[y.jsxs("span",{children:["Source ",A+1]}),y.jsx(X9e,{className:"h-3 w-3"})]},A)),E.length>3&&y.jsxs("span",{className:"text-xs text-gray-400",children:["+",E.length-3," more"]})]})]})]})]})]},b)})})},tZ={maxRetries:2,maxSteps:5,temperature:.5,topP:1},P7=_.createContext({});function hmt({children:e}){const[t,n]=_.useState(tZ),r=()=>{n(tZ)};return y.jsx(P7.Provider,{value:{modelSettings:t,setModelSettings:n,resetModelSettings:r},children:e})}const fmt=({agentId:e,memory:t})=>{const{modelSettings:n}=_.useContext(P7);return y.jsx(omt,{agentId:e,memory:t,modelSettings:n,children:y.jsx("div",{className:"h-full pb-4",children:y.jsx(Jpe,{ToolFallback:dmt})})})};function mme({traces:e,isLoading:t,error:n}){return y.jsx(pmt,{traces:e,isLoading:t,error:n})}function pmt({traces:e,isLoading:t,error:n}){const[r,i]=_.useState(100),{isOpen:s}=_.useContext(uc);return y.jsxs("main",{className:"h-full relative overflow-hidden flex",children:[y.jsx("div",{className:"h-full overflow-y-scroll w-full",children:y.jsx(rme,{traces:e,isLoading:t,error:n})}),s&&y.jsx(hme,{width:r,onResize:i})]})}const mmt=e=>{const t=Object.entries(e.payload.workflowState.steps||{}).reduce((r,[i,s])=>{let o=s.status==="success"?s.output:void 0;return o&&(o=Object.entries(o).reduce((a,[l,u])=>{var d;const c=u;return a[l]=((d=c.type)==null?void 0:d.toLowerCase())==="buffer"?{type:"Buffer",data:"[...buffered data]"}:c,a},{})),r[i]={...s,output:o},r},{});return{...e,sanitizedOutput:e?JSON.stringify({...e,payload:{...e.payload,workflowState:{...e.payload.workflowState,steps:t}}},null,2).slice(0,5e4):null}},gme=(e,t)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0),o=Vl(t);return _.useEffect(()=>{(async()=>{var l;s(!0);try{if(!e){r(null),s(!1);return}const u=await o.getLegacyWorkflow(e).details();if(!u){r(null),console.error("Error fetching legacy workflow"),xd.error("Error fetching legacy workflow");return}const c=u.steps,f=(await Promise.all((l=Object.values(c))==null?void 0:l.map(async p=>{if(!p.workflowId)return p;const b=await o.getLegacyWorkflow(p.workflowId).details();return b?{...p,stepGraph:b.stepGraph,stepSubscriberGraph:b.stepSubscriberGraph}:p}))).reduce((p,b)=>({...p,[b.id]:b}),{});r({...u,steps:f})}catch(u){r(null),console.error("Error fetching legacy workflow",u),xd.error("Error fetching legacy workflow")}finally{s(!1)}})()},[e]),{legacyWorkflow:n,isLoading:i}},yme=(e,t)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0),o=Vl(t);return _.useEffect(()=>{(async()=>{s(!0);try{if(!e){r(null),s(!1);return}const l=await o.getWorkflow(e).details();r(l)}catch(l){r(null),console.error("Error fetching workflow",l),xd.error("Error fetching workflow")}finally{s(!1)}})()},[e]),{workflow:n,isLoading:i}},bme=e=>{const t=Vl(e);return{startWorkflowRun:async({workflowId:a,runId:l,input:u,runtimeContext:c})=>{try{const d=new _m;Object.entries(c).forEach(([p,b])=>{d.set(p,b)}),await t.getWorkflow(a).start({runId:l,inputData:u||{},runtimeContext:d})}catch(d){throw console.error("Error starting workflow run:",d),d}},createWorkflowRun:async({workflowId:a,prevRunId:l})=>{try{const u=t.getWorkflow(a),{runId:c}=await u.createRun({runId:l});return{runId:c}}catch(u){throw console.error("Error creating workflow run:",u),u}},startLegacyWorkflowRun:async({workflowId:a,runId:l,input:u})=>{try{await t.getLegacyWorkflow(a).start({runId:l,triggerData:u||{}})}catch(c){throw console.error("Error starting workflow run:",c),c}},createLegacyWorkflowRun:async({workflowId:a,prevRunId:l})=>{try{const u=t.getLegacyWorkflow(a),{runId:c}=await u.createRun({runId:l});return{runId:c}}catch(u){throw console.error("Error creating workflow run:",u),u}},startAsyncWorkflowRun:async({workflowId:a,runId:l,input:u,runtimeContext:c})=>{try{const d=new _m;return Object.entries(c).forEach(([b,w])=>{d.set(b,w)}),await t.getWorkflow(a).startAsync({runId:l,inputData:u||{},runtimeContext:d})}catch(d){throw console.error("Error starting workflow run:",d),d}}}},vme=e=>{const[t,n]=_.useState(!1),[r,i]=_.useState(!1),[s,o]=_.useState(null),[a,l]=_.useState(null),u=TM(p=>{const b=Object.entries(p.results||{}).reduce((E,[S,k])=>{let A=k.status==="success"?k.output:void 0;return A&&(A=Object.entries(A).reduce((P,[M,F])=>{var j;const I=F;return P[M]=((j=I.type)==null?void 0:j.toLowerCase())==="buffer"?{type:"Buffer",data:"[...buffered data]"}:I,P},{})),E[S]={...k,output:A},E},{}),w={...p,sanitizedOutput:p?JSON.stringify({...p,results:b},null,2).slice(0,5e4):null};o(w)},100),c=async({workflowId:p,runId:b})=>{try{n(!0),await Vl(e).getLegacyWorkflow(p).watch({runId:b},S=>{try{u(S)}catch(k){console.error("Error processing workflow record:",k),o({...S})}})}catch(w){throw console.error("Error watching workflow:",w),w}finally{n(!1)}},d=TM(p=>{const b=mmt(p);l(b)},100);return{watchLegacyWorkflow:c,isWatchingLegacyWorkflow:t,legacyWatchResult:s,watchWorkflow:async({workflowId:p,runId:b})=>{try{i(!0),await Vl(e).getWorkflow(p).watch({runId:b},S=>{try{d(S)}catch(k){console.error("Error processing workflow record:",k),l({...S})}})}catch(w){throw console.error("Error watching workflow:",w),w}finally{i(!1)}},isWatchingWorkflow:r,watchResult:a}},xme=e=>{const[t,n]=_.useState(!1),[r,i]=_.useState(!1);return{resumeLegacyWorkflow:async({workflowId:a,stepId:l,runId:u,context:c})=>{try{return n(!0),await Vl(e).getLegacyWorkflow(a).resume({stepId:l,runId:u,context:c})}catch(d){throw console.error("Error resuming workflow:",d),d}finally{n(!1)}},isResumingLegacyWorkflow:t,resumeWorkflow:async({workflowId:a,step:l,runId:u,resumeData:c,runtimeContext:d})=>{try{i(!0);const f=Vl(e),p=new _m;return Object.entries(d).forEach(([w,E])=>{p.set(w,E)}),await f.getWorkflow(a).resume({step:l,runId:u,resumeData:c,runtimeContext:p})}catch(f){throw console.error("Error resuming workflow:",f),f}finally{i(!1)}},isResumingWorkflow:r}};function nZ(e,t){let n=[];if(!e)return n;function r(i,s){if(typeof i=="string")n.push({type:t,fnString:i});else{const o=Object.entries(i).find(([a])=>a.includes("."));if(o){const[a,l]=o,[u,...c]=a.split("."),d={step:{id:u},path:c.join(".")};n.push({type:t,ref:d,query:{[l===!0||l===!1?"is":"eq"]:String(l)},conj:s})}if("ref"in i){const{ref:a,query:l}=i;n.push({type:t,ref:a,query:l,conj:s})}if("and"in i)for(const a of i.and)r({...a},"and");if("or"in i)for(const a of i.or)r({...a},"or");"not"in i&&r({...i.not},"not")}}return r(e),n.reverse()}const D9=(e,t)=>{var s,o;const n=new dX.graphlib.Graph().setDefaultEdgeLabel(()=>({}));n.setGraph({rankdir:"TB"}),t.forEach(a=>n.setEdge(a.source,a.target)),e.forEach(a=>{var l,u,c;return n.setNode(a.id,{...a,width:((l=a.measured)==null?void 0:l.width)??274,height:((u=a.measured)==null?void 0:u.height)??((c=a==null?void 0:a.data)!=null&&c.isLarge?260:100)})}),dX.layout(n);const r=(s=n.graph())!=null&&s.width?n.graph().width/2:0,i=(o=n.graph())!=null&&o.height?n.graph().height/2:0;return{nodes:e.map(a=>{var p,b,w;const l=n.node(a.id),u=l.x-(((p=a.measured)==null?void 0:p.width)??274)/2,c=l.y-(((b=a.measured)==null?void 0:b.height)??((w=a==null?void 0:a.data)!=null&&w.isLarge?260:100))/2;return{...a,position:{x:u,y:c}}}),edges:t,fullWidth:r,fullHeight:i}},Hs={animated:!0,markerEnd:{type:sw.ArrowClosed,width:20,height:20,color:"#8e8e8e"}},wme=({stepGraph:e,stepSubscriberGraph:t,steps:n={}})=>{var c;if(!e)return{nodes:[],edges:[]};const{initial:r,...i}=e;if(!r.length)return{nodes:[],edges:[]};let s=[],o=[],a=[];for(const[d,f]of r.entries()){const b=f.step.id,w=[f,...(i==null?void 0:i[b])||[]].reduce((A,P,M)=>{var Y,Q,$,J;const{stepGraph:F,stepSubscriberGraph:I}=n[P.step.id]||{},j=!!F,B=s.some(H=>H.id===P.step.id)?`${P.step.id}-${M}`:P.step.id;let L={...P.step,label:P.step.id,originalId:P.step.id,type:j?"nested-node":"default-node",id:B,stepGraph:F,stepSubscriberGraph:I},z="when";if((Y=P.config)!=null&&Y.serializedWhen){z=(Q=P.step.id)!=null&&Q.endsWith("_if")?"if":($=P.step.id)!=null&&$.endsWith("_else")?"else":"when";const H=nZ(P.config.serializedWhen,z),q={id:crypto.randomUUID(),conditions:H,type:"condition-node",isLarge:((H==null?void 0:H.length)>1||H.some(({fnString:W})=>!!W))&&z!=="else"};A.push(q)}return(z==="if"||z==="else")&&(L={...L,label:z==="if"?"start if":"start else"}),L={...L,label:((J=P.config)==null?void 0:J.loopLabel)||L.label},A.push(L),A},[]);a=[...a,...w];const E=[...w].map((A,P)=>{const M=t==null?void 0:t[A.id];return{id:A.id,position:{x:d*300,y:P*100},type:A.type,data:{conditions:A.conditions,label:A.label,description:A.description,withoutTopHandle:M!=null&&M[A.id]?!1:P===0,withoutBottomHandle:M?!1:P===w.length-1,isLarge:A.isLarge,stepGraph:A.stepGraph,stepSubscriberGraph:A.stepSubscriberGraph}}});s=[...s,...E];const k=[...w].slice(0,-1).map((A,P)=>({id:`e${A.id}-${w[P+1].id}`,source:A.id,target:w[P+1].id,...Hs}));o=[...o,...k]}if(!t||!Object.keys(t).length){const{nodes:d,edges:f}=D9(s,o);return{nodes:d,edges:f}}for(const[d,f]of Object.entries(t)){const{initial:p,...b}=f;let w;const E=[];let S,k;if(p.length){for(const[A,P]of p.entries()){const F=P.step.id,I=[P,...(b==null?void 0:b[F])||[]].reduce((K,V,X)=>{var De,me,$e,Te,Be,Qe,kt,Nt;const{stepGraph:re,stepSubscriberGraph:U}=n[V.step.id]||{},te=!!re,se=s.some($t=>$t.id===V.step.id)?`${V.step.id}-${X}`:V.step.id;let ue={...V.step,originalId:V.step.id,label:V.step.id,type:te?"nested-node":"default-node",id:se,stepGraph:re,stepSubscriberGraph:U},ie="when";const pe=(me=(De=V.config)==null?void 0:De.loopLabel)==null?void 0:me.endsWith("loop finished");if(($e=V.config)!=null&&$e.serializedWhen&&!pe){ie=(Te=V.step.id)!=null&&Te.endsWith("_if")?"if":(Be=V.step.id)!=null&&Be.endsWith("_else")?"else":((Qe=V.config)==null?void 0:Qe.loopType)??"when";const $t=nZ(V.config.serializedWhen,ie),de={id:crypto.randomUUID(),conditions:$t,type:"condition-node",isLarge:(($t==null?void 0:$t.length)>1||$t.some(({fnString:ge})=>!!ge))&&ie!=="else"};(ie==="until"||ie==="while")&&(w=de.id),K.push(de)}if(pe){const $t={id:crypto.randomUUID(),type:"loop-result-node",loopType:"finished",loopResult:V.config.loopType==="until"};E.push($t),K.push($t)}if(!pe&&((kt=V.config)!=null&&kt.loopType)){const $t={id:crypto.randomUUID(),type:"loop-result-node",loopType:V.config.loopType,loopResult:V.config.loopType!=="until"};E.push($t),K.push($t)}return(ie==="if"||ie==="else")&&(ue={...ue,label:ie==="if"?"start if":"start else"}),V.config.loopType&&(pe?S=ue:k=ue),ue={...ue,loopType:pe?"finished":V.config.loopType,label:((Nt=V.config)==null?void 0:Nt.loopLabel)||ue.label},K.push(ue),K},[]);let j=[],B=d!=null&&d.includes("&&")?d.split("&&"):[];d!=null&&d.includes("&&")&&(j=[{id:d,label:d,type:"after-node",steps:B}]);const L=[...I,...j].map((K,V)=>{const X=t==null?void 0:t[K.id],re=K.originalId===d||X;return{id:K.id,position:{x:A*300+300,y:V*100+100},type:K.type,data:{conditions:K.conditions,label:K.label,description:K.description,result:K.loopResult,loopType:K.loopType,steps:K.steps,withoutBottomHandle:re?!1:V===I.length-1,isLarge:K.isLarge,stepGraph:K.stepGraph,stepSubscriberGraph:K.stepSubscriberGraph}}});s=[...s,...L].map(K=>({...K,data:{...K.data,withoutBottomHandle:B.includes(K.id)?!1:K.data.withoutBottomHandle}}));const z=[...I].slice(0,-1),Y=I[0],Q=I[I.length-1],$=B==null?void 0:B.map(K=>({id:`e${K}-${d}`,source:K,target:d,...Hs})),J=E==null?void 0:E.find(K=>K.loopType==="finished"),H=(c=z.map((K,V)=>({id:`e${K.id}-${I[V+1].id}`,source:K.id,target:I[V+1].id,remove:(J==null?void 0:J.id)===I[V+1].id,...Hs})))==null?void 0:c.filter(K=>!K.remove),q=d===Y.id?[]:[{id:`e${d}-${Y.id}`,source:d,target:Y.id,remove:(J==null?void 0:J.id)===Y.id,...Hs}].filter(K=>!K.remove),W=Q.originalId===d?[{id:`e${Q.id}-${d}`,source:Q.id,target:d,...Hs}]:[];o=[...o,...$,...q,...H,...W],a=[...a,...I]}if(w&&E.length&&S&&k){const A=E.map(j=>({id:`e${w}-${j.id}`,source:w,target:j.id,...Hs})),P=E==null?void 0:E.find(j=>j.loopType==="finished"),M=E==null?void 0:E.find(j=>j.loopType!=="finished"),F={id:`e${M==null?void 0:M.id}-${k==null?void 0:k.id}`,source:M==null?void 0:M.id,target:k.id,...Hs},I={id:`e${P==null?void 0:P.id}-${S==null?void 0:S.id}`,source:P==null?void 0:P.id,target:S.id,...Hs};o=[...o,...A,F,I]}}}const{nodes:l,edges:u}=D9(s,o);return{nodes:l,edges:u}},k9=({stepFlow:e,xIndex:t,yIndex:n,prevNodeIds:r,nextStepFlow:i,condition:s,allPrevNodeIds:o})=>{let a=[];if(((i==null?void 0:i.type)==="step"||(i==null?void 0:i.type)==="foreach"||(i==null?void 0:i.type)==="loop")&&(a=[o!=null&&o.includes(i.step.id)?`${i.step.id}-${n+1}`:i.step.id]),(i==null?void 0:i.type)==="parallel"&&(a=(i==null?void 0:i.steps.map(l=>{const u=l.step.id;return o!=null&&o.includes(u)?`${u}-${n+1}`:u}))||[]),(i==null?void 0:i.type)==="conditional"&&(a=(i==null?void 0:i.serializedConditions.map(l=>l.id))||[]),e.type==="step"||e.type==="foreach"){const l=e.step.component==="WORKFLOW",u=o!=null&&o.includes(e.step.id)?`${e.step.id}-${n}`:e.step.id,c=[...s?[{id:s.id,position:{x:t*300,y:n*100},type:"condition-node",data:{label:s.id,withoutTopHandle:!1,withoutBottomHandle:!a.length,isLarge:!0,conditions:[{type:"when",fnString:s.fn}]}}]:[],{id:u,position:{x:t*300,y:(n+(s?1:0))*100},type:l?"nested-node":"default-node",data:{label:e.step.id,description:e.step.description,withoutTopHandle:s?!1:!r.length,withoutBottomHandle:!a.length,stepGraph:l?e.step.serializedStepFlow:void 0}}],d=[...r.length?s?[...r.map(f=>({id:`e${f}-${s.id}`,source:f,target:s.id,...Hs})),{id:`e${s.id}-${u}`,source:s.id,target:u,...Hs}]:r.map(f=>({id:`e${f}-${u}`,source:f,target:u,...Hs})):[],...a.length?a.map(f=>({id:`e${u}-${f}`,source:u,target:f,...Hs})):[]];return{nodes:c,edges:d,nextPrevNodeIds:[u]}}if(e.type==="loop"){const{step:l,serializedCondition:u,loopType:c}=e,d=l.component==="WORKFLOW",f=[{id:l.id,position:{x:t*300,y:n*100},type:d?"nested-node":"default-node",data:{label:l.id,description:l.description,withoutTopHandle:!r.length,withoutBottomHandle:!1,stepGraph:d?l.serializedStepFlow:void 0}},{id:u.id,position:{x:t*300,y:(n+1)*100},type:"condition-node",data:{label:u.id,withoutTopHandle:!1,withoutBottomHandle:!a.length,isLarge:!0,conditions:[{type:c,fnString:u.fn}]}}],p=[...r.length?r.map(b=>({id:`e${b}-${l.id}`,source:b,target:l.id,...Hs})):[],{id:`e${l.id}-${u.id}`,source:l.id,target:u.id,...Hs},...a.length?a.map(b=>({id:`e${u.id}-${b}`,source:u.id,target:b,...Hs})):[]];return{nodes:f,edges:p,nextPrevNodeIds:[u.id]}}if(e.type==="parallel"){let l=[],u=[];return e.steps.forEach((c,d)=>{const{nodes:f,edges:p}=k9({stepFlow:c,xIndex:d,yIndex:n,prevNodeIds:r,nextStepFlow:i,allPrevNodeIds:o});l.push(...f),u.push(...p)}),{nodes:l,edges:u,nextPrevNodeIds:l.map(c=>c.id)}}if(e.type==="conditional"){let l=[],u=[];return e.steps.forEach((c,d)=>{const{nodes:f,edges:p}=k9({stepFlow:c,xIndex:d,yIndex:n,prevNodeIds:r,nextStepFlow:i,condition:e.serializedConditions[d],allPrevNodeIds:o});l.push(...f),u.push(...p)}),{nodes:l,edges:u,nextPrevNodeIds:l.filter(({type:c})=>c!=="condition-node").map(c=>c.id)}}return{nodes:[],edges:[],nextPrevNodeIds:[]}},Sme=({stepGraph:e})=>{if(!e)return{nodes:[],edges:[]};if(e.length===0)return{nodes:[],edges:[]};let t=[],n=[],r=[],i=[];for(let a=0;a<e.length;a++){const{nodes:l,edges:u,nextPrevNodeIds:c}=k9({stepFlow:e[a],xIndex:a,yIndex:a,prevNodeIds:r,nextStepFlow:a===e.length-1?void 0:e[a+1],allPrevNodeIds:i});t.push(...l),n.push(...u),r=c,i.push(...r)}const{nodes:s,edges:o}=D9(t,n);return{nodes:s,edges:o}},gmt=Tb("block",{variants:{variant:{primary:"text-text",secondary:"text-text-dim"},size:{default:"text-base",xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"primary",size:"default",weight:"normal"}}),To=({className:e,weight:t,variant:n,as:r="span",size:i,...s})=>y.jsx(r,{className:Ke(gmt({size:i,variant:n,weight:t,className:e})),...s}),Cme=Lhe,Eme=Kj,Dme=Zj,F7=D_,M7=k_,kme=_.forwardRef(({className:e,...t},n)=>y.jsx(Zm,{ref:n,className:Ke("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));kme.displayName=Zm.displayName;const e2=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(M7,{children:[y.jsx(kme,{}),y.jsxs(Jm,{ref:r,className:Ke("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,y.jsxs(jw,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(D0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));e2.displayName=Jm.displayName;const t2=_.forwardRef(({className:e,...t},n)=>y.jsx(Qm,{ref:n,className:Ke("text-lg font-semibold leading-none tracking-tight",e),...t}));t2.displayName=Qm.displayName;const ymt=_.forwardRef(({className:e,...t},n)=>y.jsx(eg,{ref:n,className:Ke("text-sm text-muted-foreground",e),...t}));ymt.displayName=eg.displayName;const n2=_.forwardRef(({className:e,children:t,viewPortClassName:n,maxHeight:r,autoScroll:i=!1,...s},o)=>{const a=_.useRef(null);return Zpe(a,{enabled:i}),y.jsxs(BT,{ref:o,className:Ke("relative overflow-hidden",e),...s,children:[y.jsx(Xhe,{ref:a,className:Ke("h-full w-full rounded-[inherit] [&>div]:!block",n),style:r?{maxHeight:r}:void 0,children:t}),y.jsx(Ame,{}),y.jsx(Zhe,{})]})});n2.displayName=BT.displayName;const Ame=_.forwardRef(({className:e,orientation:t="vertical",...n},r)=>y.jsx(hS,{ref:r,orientation:t,className:Ke("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:y.jsx(t7,{className:"relative flex-1 rounded-full bg-border"})}));Ame.displayName=hS.displayName;function r2({data:e}){var l;const{conditions:t}=e,[n,r]=_.useState(!0),[i,s]=_.useState(!1),o=(l=t[0])==null?void 0:l.type,a=(t.some(u=>u.fnString)||(t==null?void 0:t.length)>1)&&o!=="else";return y.jsxs(Cme,{open:a?n:!0,onOpenChange:u=>{a&&r(u)},className:Ke("bg-mastra-bg-3 rounded-md w-[274px] flex flex-col p-2 gap-2"),children:[y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsxs(Eme,{className:"flex items-center justify-between w-full",children:[y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-3 bg-mastra-bg-11 my-auto block rounded-[0.125rem] px-2 py-1 text-[10px] w-fit",children:o==null?void 0:o.toUpperCase()}),a&&y.jsx(yb,{className:Ke("w-4 h-4 transition-transform",{"transform rotate-180":n})})]}),o==="else"?null:y.jsx(Dme,{className:"flex flex-col gap-2",children:t.map((u,c)=>{var d,f,p;return u.fnString?y.jsxs(_.Fragment,{children:[y.jsx(GM,{theme:DA.oneDark,code:String(u.fnString).trim(),language:"javascript",children:({className:b,style:w,tokens:E,getLineProps:S,getTokenProps:k})=>y.jsx("pre",{className:`${b} relative font-mono text-sm overflow-x-auto p-3 w-full cursor-pointer rounded-lg mt-2`,style:{...w,backgroundColor:"transparent",border:"1px solid #343434",maxHeight:"9.62rem"},onClick:()=>s(!0),children:E.map((A,P)=>y.jsxs("div",{...S({line:A}),children:[y.jsx("span",{className:"inline-block mr-2 text-muted-foreground",children:P+1}),A.map((M,F)=>y.jsx("span",{...k({token:M})},F))]},P))})}),y.jsx(F7,{open:i,onOpenChange:s,children:y.jsxs(e2,{className:"max-w-[30rem] bg-[#121212] p-[0.5rem]",children:[y.jsx(t2,{className:"sr-only",children:"Condition Function"}),y.jsx(n2,{className:"w-full p-2",maxHeight:"400px",children:y.jsx(GM,{theme:DA.oneDark,code:String(u.fnString).trim(),language:"javascript",children:({className:b,style:w,tokens:E,getLineProps:S,getTokenProps:k})=>y.jsx("pre",{className:`${b} relative font-mono text-sm overflow-x-auto p-3 w-full rounded-lg mt-2 dark:bg-zinc-800`,style:{...w,backgroundColor:"#121212",padding:"0 0.75rem 0 0"},children:E.map((A,P)=>y.jsxs("div",{...S({line:A}),children:[y.jsx("span",{className:"inline-block mr-2 text-muted-foreground",children:P+1}),A.map((M,F)=>y.jsx("span",{...k({token:M})},F))]},P))})})})]})})]},`${u.fnString}-${c}`):y.jsx(_.Fragment,{children:(d=u.ref)!=null&&d.step?y.jsxs("div",{className:"flex items-center gap-1",children:[c===0?null:y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-3 bg-mastra-bg-11 my-auto block rounded-[0.125rem] px-2 py-1 text-[10px]",children:((f=u.conj)==null?void 0:f.toLocaleUpperCase())||"WHEN"}),y.jsxs(To,{size:"xs",className:" text-mastra-el-3 flex-1",children:[u.ref.step.id||u.ref.step,"'s ",u.ref.path," ",Object.entries(u.query).map(([b,w])=>`${b} ${String(w)}`)]})]}):null},`${(p=u.ref)==null?void 0:p.path}-${c}`)})}),y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function i2({data:e}){const{label:t,description:n,withoutTopHandle:r,withoutBottomHandle:i}=e;return y.jsxs("div",{className:Ke("bg-mastra-bg-8 rounded-md w-[274px]"),children:[!r&&y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2",children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-[6px] rounded-sm p-2",children:[y.jsx(Cse,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:t})]})}),n&&y.jsx("div",{className:"bg-mastra-bg-4 rounded-b-md p-2 text-[10px] text-left text-mastra-el-4",children:n}),!i&&y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function s2({data:e}){const{steps:t}=e,[n,r]=_.useState(!0);return y.jsxs(Cme,{open:n,onOpenChange:r,className:Ke("bg-mastra-bg-3 rounded-md w-[274px] flex flex-col p-2 gap-2"),children:[y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsxs(Eme,{className:"flex items-center justify-between w-full",children:[y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-3 bg-mastra-bg-11 my-auto block rounded-[0.125rem] px-2 py-1 text-[10px] w-fit",children:"AFTER"}),y.jsx(yb,{className:Ke("w-4 h-4 transition-transform",{"transform rotate-180":n})})]}),y.jsx(Dme,{className:"flex flex-col gap-2",children:t.map(i=>y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-[6px] rounded-sm p-2",children:[y.jsx(Cse,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:i})]},i))}),y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function o2({data:e}){const{result:t}=e;return y.jsxs("div",{className:Ke("bg-mastra-bg-8 rounded-md w-[274px]"),children:[y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2",children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-[6px] rounded-sm p-2",children:[t?y.jsx(V9e,{className:"text-current w-4 h-4"}):y.jsx(G9e,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:String(t)})]})}),y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function O7({color:e="#fff",className:t}){return y.jsx("svg",{className:Ke("animate-spin duration-700",t),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",children:y.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56",stroke:e})})}function bmt({stepGraph:e,stepSubscriberGraph:t,open:n}){const{nodes:r,edges:i}=wme({stepGraph:e,stepSubscriberGraph:t}),[s,o]=_.useState(!1),[a,l,u]=NT(r),[c]=PT(i),d={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2};return _.useEffect(()=>{n&&setTimeout(()=>{o(!0)},500)},[n]),y.jsx("div",{className:"w-full h-full relative",children:s?y.jsxs(TT,{nodes:a,edges:c,fitView:!0,fitViewOptions:{maxZoom:.85},nodeTypes:d,onNodesChange:u,children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Lines,gap:12,size:.5})]}):y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx(O7,{})})})}const _me=_.createContext({});function vmt({children:e}){const[t,n]=_.useState(null),[r,i]=_.useState(null),[s,o]=_.useState(!1),[a,l]=_.useState(""),u=()=>{o(!1),n(null),i(null),l("")},c=({label:d,stepGraph:f,stepSubscriberGraph:p})=>{l(d),n(f),i(p),o(!0)};return y.jsxs(_me.Provider,{value:{showNestedGraph:c,closeNestedGraph:u},children:[e,y.jsx(F7,{open:s,onOpenChange:u,children:y.jsx(M7,{children:y.jsxs(e2,{className:"w-[40rem] h-[40rem] bg-[#121212] p-[0.5rem]",children:[y.jsxs(t2,{className:"flex items-center gap-1.5 absolute top-2.5 left-2.5",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsxs(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:[a," workflow"]})]}),y.jsx(dS,{children:y.jsx(bmt,{stepGraph:t,open:s,stepSubscriberGraph:r})})]})})})]})}function xmt({data:e}){const{label:t,withoutTopHandle:n,withoutBottomHandle:r,stepGraph:i,stepSubscriberGraph:s}=e,{showNestedGraph:o}=_.useContext(_me);return y.jsxs("div",{className:Ke("bg-[rgba(29,29,29,0.5)] rounded-md h-full overflow-scroll w-[274px]"),children:[!n&&y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2 cursor-pointer",onClick:()=>o({label:t,stepGraph:i,stepSubscriberGraph:s}),children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-1.5 rounded-sm p-2 cursor-pointer",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:t})]})}),!r&&y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function wmt({workflow:e}){const{nodes:t,edges:n}=wme({stepGraph:e.serializedStepGraph||e.stepGraph,stepSubscriberGraph:e.serializedStepSubscriberGraph||e.stepSubscriberGraph,steps:e.steps}),[r,i,s]=NT(t),[o]=PT(n),a={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2,"nested-node":xmt};return y.jsx("div",{className:"w-full h-full",children:y.jsxs(TT,{nodes:r,edges:o,nodeTypes:a,onNodesChange:s,fitView:!0,fitViewOptions:{maxZoom:.85},children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Dots,gap:12,size:.5})]})})}const Tme=e=>e.replace(/[-_\s]+(.)?/g,(n,r)=>r?r.toUpperCase():"").replace(/^(.)/,n=>n.toLowerCase()).replace(/([A-Z])/g," $1").replace(/^./,n=>n.toUpperCase()).trim();function Smt({workflowId:e,baseUrl:t}){const{legacyWorkflow:n,isLoading:r}=gme(e,t);return r?y.jsx("div",{className:"p-4",children:y.jsx(Qo,{className:"h-[600px]"})}):n?y.jsx(vmt,{children:y.jsx(dS,{children:y.jsx(wmt,{workflow:n})})}):y.jsx("div",{className:"grid h-full place-items-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-2",children:[y.jsx(pI,{}),y.jsxs("div",{children:["We couldn't find ",Tme(e)," workflow."]})]})})}const Cmt=Ae.forwardRef(({children:e,...t},n)=>y.jsx("form",{ref:n,className:"space-y-4",...t,children:e})),Emt=["boolean","object","array"],Dmt=({label:e,children:t,id:n,field:r,error:i})=>{var o;const s=Emt.includes(r.type);return y.jsxs("div",{className:"pb-4 last:pb-0",children:[!s&&y.jsxs(xt,{as:"label",variant:"ui-sm",className:"text-icon3 pb-1 block",htmlFor:n,children:[e,r.required&&y.jsx("span",{className:"text-accent2",children:" *"})]}),t,((o=r.fieldConfig)==null?void 0:o.description)&&y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-icon6",children:r.fieldConfig.description}),i&&y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-accent2",children:i})]})},kmt=Tb("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Nme=_.forwardRef(({className:e,variant:t,...n},r)=>y.jsx("div",{ref:r,role:"alert",className:Ke(kmt({variant:t}),e),...n}));Nme.displayName="Alert";const Pme=_.forwardRef(({className:e,...t},n)=>y.jsx("h5",{ref:n,className:Ke("mb-1 font-medium leading-none tracking-tight",e),...t}));Pme.displayName="AlertTitle";const Amt=_.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:Ke("text-sm [&_p]:leading-relaxed",e),...t}));Amt.displayName="AlertDescription";const _mt=({error:e})=>y.jsxs(Nme,{variant:"destructive",children:[y.jsx(pI,{className:"h-4 w-4"}),y.jsx(Pme,{children:e})]}),Tmt=({children:e})=>y.jsx(Oo,{type:"submit",children:e}),Nmt=({inputProps:e,error:t,field:n,id:r})=>{const{key:i,...s}=e;return y.jsx(Rm,{id:r,className:t?"border-destructive":"",...s,defaultValue:n.default})},Pmt=({inputProps:e,error:t,field:n,id:r})=>{const{key:i,...s}=e;return _.useEffect(()=>{n.default!==void 0&&s.onChange({target:{value:Number(n.default),name:e.name}})},[n.default]),y.jsx(Rm,{id:r,type:"number",className:t?"border-destructive":"",...s,defaultValue:n.default!==void 0?Number(n.default):void 0,onChange:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:a,name:e.name}})},onBlur:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:Number(a),name:e.name}})}})},Fme=_.forwardRef(({className:e,...t},n)=>y.jsx(Bfe,{ref:n,className:Ke("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:y.jsx(qut,{className:Ke("flex items-center justify-center text-current"),children:y.jsx(rg,{className:"h-4 w-4"})})}));Fme.displayName=Bfe.displayName;const Fmt=({field:e,label:t,id:n,inputProps:r,value:i})=>y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx(Fme,{id:n,onCheckedChange:s=>{const o={target:{name:r.name,value:s}};r.onChange(o)},defaultChecked:e.default}),y.jsxs(xt,{as:"label",variant:"ui-sm",className:"text-icon3",htmlFor:n,children:[t,e.required&&y.jsx("span",{className:"text-accent2",children:" *"})]})]});function Mme({className:e,classNames:t,showOutsideDays:n=!0,...r}){return y.jsx(Cdt,{showOutsideDays:n,className:Ke("p-3",e),classNames:{months:"flex flex-col space-y-4 sm:space-y-0",month:"space-y-4",caption_label:"text-sm text-text font-medium",nav:"space-x-1 flex items-center",nav_button_previous:Ke(ZD({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute left-4 top-[56px] z-10"),nav_button_next:Ke(ZD({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute right-4 top-[56px] z-10"),dropdown_month:"w-full border-collapse space-y-1",weeknumber:"flex",day:Ke(ZD({variant:"ghost"}),"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md","h-8 w-8 p-0 hover:bg-lightGray-7/50 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"!bg-primary !text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-lightGray-7/50 text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{},...r})}Mme.displayName="Calendar";const Mmt=EMe,Omt=DMe,Ome=_.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>y.jsx(kMe,{children:y.jsx(Jie,{ref:i,align:t,sideOffset:n,className:Ke("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Ome.displayName=Jie.displayName;const Rmt=({value:e,setValue:t,children:n,className:r,placeholder:i,...s})=>{const[o,a]=_.useState(!1);return y.jsxs(Mmt,{open:o,onOpenChange:a,children:[y.jsx(Omt,{asChild:!0,children:n||y.jsx(Rme,{value:e,placeholder:i,className:r,"data-testid":"datepicker-button"})}),y.jsx(Ome,{className:"backdrop-blur-4xl w-auto p-0 bg-[#171717]",align:"start","data-testid":"datepicker-calendar",children:y.jsx(Imt,{value:e,setValue:l=>t(l?new Date(`${l}z`):null),clearable:s.clearable,setOpenPopover:a,...s})})]})},Imt=({value:e,setValue:t,setOpenPopover:n,clearable:r,placeholder:i,className:s,...o})=>{const[a,l]=_.useState(e?_o(e,"PP"):""),[u,c]=_.useState(e?new Date(e):void 0),d=TM(w=>{Ej(w)&&(c(w),t==null||t(w),n==null||n(!1))},2e3),f=w=>{l(w.currentTarget.value);const E=new Date(w.target.value);d(E)},p=w=>{c(w),t==null||t(w),n==null||n(!1),l(w?_o(w,"PP"):"")},b=w=>{c(w),l(w?_o(w,"PP"):"")};return y.jsxs("div",{"aria-label":"Choose date",className:"relative mt-2 flex flex-col gap-2",onKeyDown:w=>{w.stopPropagation(),w.key==="Escape"&&(n==null||n(!1))},children:[y.jsx("div",{className:"w-full px-3",children:y.jsx(Rm,{type:"text",value:a,onChange:f,placeholder:i,className:s})}),y.jsx(Mme,{mode:"single",month:u,selected:u,onMonthChange:b,onSelect:p,...o}),y.jsx("div",{className:"px-3 pb-2",children:r&&y.jsx(Oo,{variant:"outline",tabIndex:0,className:"w-full !opacity-50 duration-200 hover:!opacity-100",onClick:()=>{t(null),c(void 0),l(""),n==null||n(!1)},children:"Clear"})})]})},Rme=_.forwardRef(({value:e,placeholder:t,className:n,...r},i)=>y.jsxs(Oo,{ref:i,variant:"outline",className:Ke("bg-neutral-825 border-neutral-775 w-full justify-start whitespace-nowrap rounded-md border px-2 py-0 text-left flex items-center gap-1",n),...r,children:[y.jsx(R9e,{className:"h-4 w-4"}),e?y.jsx("span",{className:"text-white",children:_o(e,"PPP")}):y.jsx("span",{className:"text-gray",children:t??"Pick a date"})]}));Rme.displayName="DefaultButton";const jmt=({inputProps:e,field:t,error:n,id:r})=>{const{key:i,...s}=e,[o,a]=_.useState(null);return _.useEffect(()=>{if(t.default){const l=new Date(t.default);Ej(l)&&a(l)}},[t]),y.jsx(Rmt,{id:r,className:n?"border-destructive":"",value:o,setValue:l=>{const u=l&&new Date(l).toISOString();u&&(s.onChange({target:{value:u==null?void 0:u.toString(),name:e.name}}),a(new Date(u)))},clearable:!0})},Lmt=Gdt,Bmt=Ydt,Ime=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(xpe,{ref:r,className:Ke("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,y.jsx(Kdt,{asChild:!0,children:y.jsx(yb,{className:"h-4 w-4 opacity-50"})})]}));Ime.displayName=xpe.displayName;const jme=_.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>y.jsx(Xdt,{children:y.jsx(wpe,{ref:i,className:Ke("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:y.jsx(Zdt,{className:Ke("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));jme.displayName=wpe.displayName;const Lme=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Spe,{ref:r,className:Ke("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-mastra-el-5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Qdt,{children:y.jsx(rg,{className:"h-4 w-4"})})}),y.jsx(Jdt,{children:t})]}));Lme.displayName=Spe.displayName;const $mt=({field:e,inputProps:t,error:n,id:r,value:i})=>{const{key:s,...o}=t;return y.jsxs(Lmt,{...o,onValueChange:a=>{const l={target:{value:a,name:t.name}};o.onChange(l)},defaultValue:e.default,children:[y.jsx(Ime,{id:r,className:n?"border-destructive":"",children:y.jsx(Bmt,{placeholder:"Select an option"})}),y.jsx(jme,{children:(e.options||[]).map(([a,l])=>y.jsx(Lme,{value:a,children:l},a))})]})},zmt=({label:e,children:t})=>{const n=e!==""&&e!=="";return y.jsxs("div",{className:"",children:[n&&y.jsxs(xt,{as:"h3",variant:"ui-sm",className:"text-icon3 flex items-center gap-1 pb-2",children:[y.jsx(Ht,{size:"sm",children:y.jsx(P9e,{})}),e]}),y.jsx("div",{className:n?"flex flex-col gap-1 [&>*]:border-dashed [&>*]:border-l [&>*]:border-l-border1 [&>*]:pl-4":"",children:t})]})},Hmt=({label:e,children:t,onAddItem:n})=>y.jsxs("div",{children:[y.jsxs("div",{className:"flex gap-2 justify-between",children:[y.jsxs(xt,{as:"h3",variant:"ui-sm",className:"text-icon3 pb-2 flex items-center gap-1",children:[y.jsx(Ht,{size:"sm",children:y.jsx(M9e,{})}),e]}),y.jsx(k7,{children:y.jsxs(XT,{delayDuration:0,children:[y.jsx(ZT,{asChild:!0,children:y.jsx("button",{onClick:n,type:"button",className:"text-icon3 bg-surface3 rounded-md p-1 hover:bg-surface4 hover:text-icon6 h-icon-sm w-icon-sm",children:y.jsx(Ht,{size:"sm",children:y.jsx(Ese,{})})})}),y.jsx(xS,{children:"Add item"})]})})]}),y.jsx("div",{className:"flex flex-col gap-1",children:t})]}),Vmt=({children:e,onRemove:t})=>y.jsxs("div",{className:"pl-4 border-l border-border1",children:[e,y.jsxs(Ni,{onClick:t,type:"button",children:[y.jsx(Ht,{size:"sm",children:y.jsx(Dse,{})}),"Delete"]})]}),Umt=({inputProps:e,field:t,error:n,id:r})=>{const{key:i,onChange:s,...o}=e,[a,l]=_.useState(()=>Object.entries(t.default||{}).map(([b,w])=>({id:b||Xp(),key:b,value:w})));_.useEffect(()=>{a.length===0&&l([{id:Xp(),key:"",value:""}])},[a]);const u=_.useCallback(b=>{const w=b.reduce((E,S)=>(S.key&&(E[S.key]=S.value),E),{});s==null||s({target:{value:w,name:e.name}})},[s,e.name]),c=(b,w,E)=>{l(S=>S.map(k=>k.id===b?{...k,[w]:E}:k))},d=()=>{u(a)},f=()=>{const b=[...a,{id:Xp(),key:"",value:""}];l(b),u(b)},p=b=>{const w=a.filter(E=>E.id!==b);w.length===0&&w.push({id:Xp(),key:"",value:""}),l(w),u(w)};return y.jsxs("div",{className:"space-y-3",children:[a.map(b=>y.jsxs("div",{className:"relative space-y-2 rounded-lg border p-4",children:[y.jsx(Oo,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-2",onClick:()=>p(b.id),children:y.jsx(Dse,{className:"h-4 w-4"})}),y.jsxs("div",{className:"space-y-2 pt-6",children:[y.jsx(Rm,{placeholder:"Key",value:b.key,onChange:w=>c(b.id,"key",w.target.value),onBlur:d}),y.jsx(Rm,{placeholder:"Value",value:b.value,onChange:w=>c(b.id,"value",w.target.value),onBlur:d})]})]},b.id)),y.jsxs(Oo,{type:"button",variant:"outline",size:"sm",className:"w-full",onClick:f,children:[y.jsx(Ese,{className:"mr-2 h-4 w-4"}),"Add Key-Value Pair"]})]})},qmt={Form:Cmt,FieldWrapper:Dmt,ErrorMessage:_mt,SubmitButton:Tmt,ObjectWrapper:zmt,ArrayWrapper:Hmt,ArrayElementWrapper:Vmt},Wmt={string:Nmt,number:Pmt,boolean:Fmt,date:jmt,select:$mt,record:Umt};function Gmt({uiComponents:e,formComponents:t,...n}){return y.jsx($ut,{...n,uiComponents:{...qmt,...e},formComponents:{...Wmt,...t}})}function Ymt(e,t){return t!=null&&t.fieldType?t.fieldType:e instanceof le.ZodObject?"object":e instanceof le.ZodNumber?"number":e instanceof le.ZodBoolean?"boolean":e instanceof le.ZodDate||e!=null&&e.isDatetime||e!=null&&e.isDate?"date":e instanceof le.ZodString?"string":e instanceof le.ZodEnum||e instanceof le.ZodNativeEnum?"select":e instanceof le.ZodArray?"array":e instanceof le.ZodRecord?"record":"string"}function A9(e,t){var u;const n=_9(t),r=MA(t),i=Ymt(n,r),s=zT(t),o=(u=n._def)==null?void 0:u.values;let a=[];o&&(Array.isArray(o)?a=o.map(c=>[c,c]):a=Object.entries(o));let l=[];return n instanceof le.ZodObject&&(l=Object.entries(n.shape).map(([c,d])=>A9(c,d))),n instanceof le.ZodArray&&(l=[A9("0",n._def.type)]),{key:e,type:i,required:!t.isOptional(),default:s,description:n.description,fieldConfig:r,options:a,schema:l}}function _9(e){return"innerType"in e._def?_9(e._def.innerType):"schema"in e._def?_9(e._def.schema):e}function Kmt(e){const n=(e instanceof le.ZodEffects?e.innerType():e).shape;return{fields:Object.entries(n).map(([i,s])=>A9(i,s))}}class Xmt extends put{constructor(n){super(n);Ve(this,"_schema");this._schema=n}parseSchema(){return Kmt(this._schema)}}const Zmt=Tb("text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bme=_.forwardRef(({className:e,...t},n)=>y.jsx(GT,{ref:n,className:Ke(Zmt(),e),...t}));Bme.displayName=GT.displayName;function Jmt(e){return e instanceof Er?Object.keys(e.shape).length===0:!1}function pw({schema:e,onSubmit:t,defaultValues:n,isSubmitLoading:r,submitButtonLabel:i}){if(!e)return console.error("no form schema found"),null;const s=l=>Jmt(l)?le.object({}):le.object({"":l}),a={schema:new Xmt(s(e)),onSubmit:async l=>{await t((l==null?void 0:l[""])||{})},defaultValues:n?{"":n}:void 0,formProps:{className:""},uiComponents:{SubmitButton:({children:l})=>y.jsx(Ni,{variant:"light",className:"w-full",size:"lg",disabled:r,children:r?y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin"})}):i||l})},formComponents:{Label:({value:l})=>y.jsx(Bme,{className:"text-sm font-normal",children:l})},withSubmit:!0};return y.jsx("div",{className:"h-full w-full",children:y.jsx(Gmt,{...a})})}function $A(e){return Function("z",`"use strict";return (${e});`)(le)}function R7({code:e="",language:t="ts",filename:n,className:r}){return y.jsxs(Zc,{code:e,language:t,theme:DA.oneDark,children:[n?y.jsx("div",{className:"absolute w-full px-6 py-2 pl-4 text-sm rounded bg-mastra-bg-2 text-mastra-el-6/50",children:n}):null,y.jsx(Zc.Code,{className:Ke("bg-transparent h-full p-6 rounded-xl whitespace-pre-wrap",n?"pt-10":"",r),children:y.jsx("div",{className:"table-row",children:y.jsxs("div",{className:"flex items-center",children:[y.jsx(Zc.LineNumber,{className:"table-cell pr-4 text-sm text-right select-none text-gray-500/50"}),y.jsx(Zc.LineContent,{className:"flex",children:y.jsx(Zc.Token,{className:"font-mono text-sm mastra-token"})})]})})})]})}const I7=_.createContext({});function $me({children:e}){const[t,n]=_.useState(null),[r,i]=_.useState(null),[s,o]=_.useState(null),a=()=>{n(null),i(null),o(null)};return y.jsx(I7.Provider,{value:{legacyResult:t,setLegacyResult:n,result:r,setResult:i,payload:s,setPayload:o,clearData:a},children:e})}const j7=({header:e,children:t,footer:n})=>y.jsxs("div",{className:"rounded-lg border-sm border-border1 bg-surface4",children:[y.jsx("div",{className:"py-1 px-2 flex items-center gap-3",children:e}),t&&y.jsx("div",{className:"border-t-sm border-border1",children:t}),n&&y.jsx("div",{className:"py-1 px-2 border-t-sm border-border1",children:n})]}),Qmt=({stepId:e,pathStatus:t,path:n})=>{const r=t==="completed"?"Completed":e===n?t.charAt(0).toUpperCase()+t.slice(1):t==="executing"?"Executing":"Completed";return y.jsx(j7,{header:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs(Ht,{children:[r==="Completed"&&y.jsx(Ype,{className:"text-accent1"}),r==="Failed"&&y.jsx(Kpe,{className:"text-accent2"}),r==="Executing"&&y.jsx(wf,{className:"text-icon3 animate-spin"})]}),y.jsx(xt,{as:"span",variant:"ui-lg",className:"text-icon6 font-medium",children:n})]})})},zme=({jsonResult:e,sanitizedJsonResult:t})=>{const{handleCopy:n}=fme({text:e}),[r,i]=_.useState(!1);return y.jsx(j7,{header:y.jsxs("div",{className:"flex items-center gap-2 justify-between w-full",children:[y.jsxs(xt,{variant:"ui-lg",className:"text-icon6 flex items-center gap-3 font-medium",children:[y.jsx(Ht,{children:y.jsx(Zft,{})}),"Results"]}),y.jsxs(XT,{children:[y.jsx(ZT,{asChild:!0,children:y.jsx("button",{className:"p-2 rounded-lg hover:bg-surface5 transition-colors duration-150 ease-in-out text-icon3 hover:text-icon6",onClick:()=>n(),children:y.jsx(Ht,{size:"sm",children:y.jsx(Gw,{})})})}),y.jsx(xS,{children:"Copy result"})]})]}),footer:y.jsx("button",{className:"w-full h-full text-center text-icon2 hover:text-icon6 text-ui-md",onClick:()=>i(s=>!s),children:r?"collapse":"expand"}),children:r?y.jsx(R7,{className:"w-full overflow-x-auto",code:t||e,language:"json"}):null})};function egt({workflowId:e,baseUrl:t,setRunId:n}){var $;const{legacyResult:r,setLegacyResult:i,payload:s,setPayload:o}=_.useContext(I7),{isLoading:a,legacyWorkflow:l}=gme(e,t),{createLegacyWorkflowRun:u,startLegacyWorkflowRun:c}=bme(t),{watchLegacyWorkflow:d,legacyWatchResult:f,isWatchingLegacyWorkflow:p}=vme(t),{resumeLegacyWorkflow:b,isResumingLegacyWorkflow:w}=xme(t),[E,S]=_.useState([]),[k,A]=_.useState(!1),P=l==null?void 0:l.triggerSchema,M=async J=>{try{if(!l)return;A(!0),i(null);const{runId:H}=await u({workflowId:e});n==null||n(H),d({workflowId:e,runId:H}),c({workflowId:e,runId:H,input:J})}catch{A(!1),xd.error("Error executing workflow")}},F=async J=>{if(!l)return;const{stepId:H,runId:q,context:W}=J,{runId:K}=await u({workflowId:e,prevRunId:q});d({workflowId:e,runId:K}),await b({stepId:H,runId:K,context:W,workflowId:e})},I=r??f,j=(I==null?void 0:I.activePaths)??{};if(_.useEffect(()=>{A(p)},[p]),_.useEffect(()=>{if(!(I!=null&&I.activePaths)||!(r!=null&&r.runId))return;const J=Object.entries(I.activePaths).filter(([H,{status:q}])=>q==="suspended").map(([H,{suspendPayload:q}])=>({stepId:H,runId:r.runId,suspendPayload:q}));S(J)},[I,r]),_.useEffect(()=>{f&&i(f)},[f]),a)return y.jsx(n2,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsx(Qo,{className:"h-10"}),y.jsx(Qo,{className:"h-10"})]})});if(!l)return null;const B=E.length>0,L=P?$A(Fm(G0(P))):null,{sanitizedOutput:z,...Y}=r??{},Q=Object.values(j).length>0;return y.jsx("div",{className:"h-full px-5 pt-3 pb-12",children:y.jsxs("div",{className:"space-y-4",children:[w&&y.jsxs("div",{className:"py-2 px-5 flex items-center gap-2 bg-surface5 -mx-5 -mt-5 border-b-sm border-border1",children:[y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin text-icon6"})}),y.jsx(xt,{children:"Resuming workflow"})]}),!B&&y.jsx(y.Fragment,{children:L?y.jsx(pw,{schema:L,defaultValues:s,isSubmitLoading:p,submitButtonLabel:"Run",onSubmit:J=>{o(J),M(J)}}):y.jsx(Ni,{className:"w-full",variant:"light",disabled:k,onClick:()=>M(null),children:k?y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin"})}):"Trigger"})}),B&&(E==null?void 0:E.map(J=>{const H=l.steps[J.stepId],q=H!=null&&H.inputSchema?$A(Fm(G0(H.inputSchema))):le.record(le.string(),le.any());return y.jsxs("div",{className:"flex flex-col px-4",children:[y.jsx(To,{variant:"secondary",className:"text-mastra-el-3",size:"xs",children:J.stepId}),J.suspendPayload&&y.jsx("div",{children:y.jsx(R7,{className:"w-full overflow-x-auto p-2",code:JSON.stringify(J.suspendPayload,null,2),language:"json"})}),y.jsx(pw,{schema:q,isSubmitLoading:w,submitButtonLabel:"Resume",onSubmit:W=>{F({stepId:J.stepId,runId:J.runId,suspendPayload:J.suspendPayload,context:W})}})]})})),Q&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx("div",{className:"flex flex-col gap-4",children:($=Object.entries(j))==null?void 0:$.map(([J,{status:H,stepPath:q}])=>y.jsx("div",{className:"flex flex-col gap-1",children:q==null?void 0:q.map((W,K)=>y.jsx(Qmt,{stepId:J,pathStatus:H,path:W},K))},J))})]}),r&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx(zme,{sanitizedJsonResult:z,jsonResult:JSON.stringify(Y,null,2)})]})]})})}function tgt({stepGraph:e,open:t}){const{nodes:n,edges:r}=Sme({stepGraph:e}),[i,s]=_.useState(!1),[o,a,l]=NT(n),[u]=PT(r),c={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2,"nested-node":Vme};return _.useEffect(()=>{t&&setTimeout(()=>{s(!0)},500)},[t]),y.jsx("div",{className:"w-full h-full relative",children:i?y.jsxs(TT,{nodes:o,edges:u,fitView:!0,fitViewOptions:{maxZoom:.85},nodeTypes:c,onNodesChange:l,children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Lines,gap:12,size:.5})]}):y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx(O7,{})})})}const Hme=_.createContext({});function ngt({children:e}){const[t,n]=_.useState(null),[r,i]=_.useState([]),[s,o]=_.useState(!1),[a,l]=_.useState(""),[u,c]=_.useState(!1),d=()=>{if(r.length){c(!0);const p=r[r.length-1];n(p.stepGraph),l(p.label),i(r.slice(0,-1)),setTimeout(()=>{c(!1)},500)}else o(!1),n(null),l("")},f=({label:p,stepGraph:b})=>{t&&(c(!0),i([...r,{stepGraph:t,label:a}])),l(p),n(b),o(!0),setTimeout(()=>{c(!1)},500)};return y.jsxs(Hme.Provider,{value:{showNestedGraph:f,closeNestedGraph:d},children:[e,y.jsx(F7,{open:s,onOpenChange:d,children:y.jsx(M7,{children:y.jsxs(e2,{className:"w-[40rem] h-[40rem] bg-[#121212] p-[0.5rem]",children:[y.jsxs(t2,{className:"flex items-center gap-1.5 absolute top-2.5 left-2.5",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsxs(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:[a," workflow"]})]}),u?y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx(O7,{})}):y.jsx(dS,{children:y.jsx(tgt,{stepGraph:t,open:s})})]})})})]})}function Vme({data:e}){const{label:t,withoutTopHandle:n,withoutBottomHandle:r,stepGraph:i}=e,{showNestedGraph:s}=_.useContext(Hme);return y.jsxs("div",{className:Ke("bg-[rgba(29,29,29,0.5)] rounded-md h-full overflow-scroll w-[274px]"),children:[!n&&y.jsx(Es,{type:"target",position:Ct.Top,style:{visibility:"hidden"}}),y.jsx("div",{className:"p-2 cursor-pointer",onClick:()=>s({label:t,stepGraph:i}),children:y.jsxs("div",{className:"text-sm bg-mastra-bg-9 flex items-center gap-1.5 rounded-sm p-2 cursor-pointer",children:[y.jsx(z_,{className:"text-current w-4 h-4"}),y.jsx(To,{size:"xs",weight:"medium",className:"text-mastra-el-6 capitalize",children:t})]})}),!r&&y.jsx(Es,{type:"source",position:Ct.Bottom,style:{visibility:"hidden"}})]})}function rgt({workflow:e}){const{nodes:t,edges:n}=Sme(e),[r,i,s]=NT(t),[o]=PT(n),a={"default-node":i2,"condition-node":r2,"after-node":s2,"loop-result-node":o2,"nested-node":Vme};return y.jsx("div",{className:"w-full h-full",children:y.jsxs(TT,{nodes:r,edges:o,nodeTypes:a,onNodesChange:s,fitView:!0,fitViewOptions:{maxZoom:.85},children:[y.jsx(MT,{}),y.jsx(OT,{pannable:!0,zoomable:!0,maskColor:"#121212",bgColor:"#171717",nodeColor:"#2c2c2c"}),y.jsx(FT,{variant:Ra.Dots,gap:12,size:.5})]})})}function igt({workflowId:e,baseUrl:t}){const{workflow:n,isLoading:r}=yme(e,t);return r?y.jsx("div",{className:"p-4",children:y.jsx(Qo,{className:"h-[600px]"})}):n?y.jsx(ngt,{children:y.jsx(dS,{children:y.jsx(rgt,{workflow:n})})}):y.jsx("div",{className:"grid h-full place-items-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-2",children:[y.jsx(pI,{}),y.jsxs("div",{children:["We couldn't find ",Tme(e)," workflow."]})]})})}const sgt=({stepId:e,status:t})=>y.jsx(j7,{header:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs(Ht,{children:[t==="success"&&y.jsx(Ype,{className:"text-accent1"}),t==="failed"&&y.jsx(Kpe,{className:"text-accent2"}),t==="suspended"&&y.jsx(q9e,{className:"text-icon3"}),t==="running"&&y.jsx(wf,{className:"text-icon3 animate-spin"})]}),y.jsx(xt,{as:"span",variant:"ui-lg",className:"text-icon6 font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)})]})});function ogt({workflowId:e,baseUrl:t,setRunId:n}){var J,H,q,W;const{runtimeContext:r}=Mb(),{result:i,setResult:s,payload:o,setPayload:a}=_.useContext(I7),{isLoading:l,workflow:u}=yme(e,t),{createWorkflowRun:c,startWorkflowRun:d}=bme(t),{watchWorkflow:f,watchResult:p,isWatchingWorkflow:b}=vme(t),{resumeWorkflow:w,isResumingWorkflow:E}=xme(t),[S,k]=_.useState([]),[A,P]=_.useState(!1),M=u==null?void 0:u.inputSchema,F=async K=>{try{if(!u)return;P(!0),s(null);const{runId:V}=await c({workflowId:e});n==null||n(V),f({workflowId:e,runId:V}),d({workflowId:e,runId:V,input:K,runtimeContext:r})}catch{P(!1),xd.error("Error executing workflow")}},I=async K=>{if(!u)return;const{stepId:V,runId:X,resumeData:re}=K,{runId:U}=await c({workflowId:e,prevRunId:X});f({workflowId:e,runId:U}),await w({step:V,runId:U,resumeData:re,workflowId:e,runtimeContext:r})},j=i??p,B=((H=(J=j==null?void 0:j.payload)==null?void 0:J.workflowState)==null?void 0:H.steps)??{};if(_.useEffect(()=>{P(b)},[b]),_.useEffect(()=>{var V,X;if(!((X=(V=j==null?void 0:j.payload)==null?void 0:V.workflowState)!=null&&X.steps)||!(i!=null&&i.runId))return;const K=Object.entries(j.payload.workflowState.steps).filter(([re,{status:U}])=>U==="suspended").map(([re,{payload:U}])=>({stepId:re,runId:i.runId,suspendPayload:U}));k(K)},[j,i]),_.useEffect(()=>{p&&s(p)},[p]),l)return y.jsx(n2,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsx(Qo,{className:"h-10"}),y.jsx(Qo,{className:"h-10"})]})});if(!u)return null;const L=S.length>0,z=M?$A(Fm(G0(M))):null,{sanitizedOutput:Y,...Q}=i??{},$=Object.values(B).length>0;return y.jsx("div",{className:"h-full px-5 pt-3 pb-12",children:y.jsxs("div",{className:"space-y-4",children:[E&&y.jsxs("div",{className:"py-2 px-5 flex items-center gap-2 bg-surface5 -mx-5 -mt-5 border-b-sm border-border1",children:[y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin text-icon6"})}),y.jsx(xt,{children:"Resuming workflow"})]}),!L&&y.jsx(y.Fragment,{children:z?y.jsx(pw,{schema:z,defaultValues:o,isSubmitLoading:b,submitButtonLabel:"Run",onSubmit:K=>{a(K),F(K)}}):y.jsx(Ni,{className:"w-full",variant:"light",disabled:A,onClick:()=>F(null),children:A?y.jsx(Ht,{children:y.jsx(wf,{className:"animate-spin"})}):"Trigger"})}),!b&&L&&(S==null?void 0:S.map(K=>{const V=u.steps[K.stepId],X=V!=null&&V.resumeSchema?$A(Fm(G0(V.resumeSchema))):le.record(le.string(),le.any());return y.jsxs("div",{className:"flex flex-col px-4",children:[y.jsx(To,{variant:"secondary",className:"text-mastra-el-3",size:"xs",children:K.stepId}),K.suspendPayload&&y.jsx("div",{children:y.jsx(R7,{className:"w-full overflow-x-auto p-2",code:JSON.stringify(K.suspendPayload,null,2),language:"json"})}),y.jsx(pw,{schema:X,isSubmitLoading:E,submitButtonLabel:"Resume",onSubmit:re=>{I({stepId:K.stepId,runId:K.runId,suspendPayload:K.suspendPayload,resumeData:re})}})]})})),$&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(To,{variant:"secondary",className:"px-4 text-mastra-el-3",size:"xs",children:"Status"}),y.jsx("div",{className:"px-4 flex flex-col gap-4",children:(W=(q=Object.entries(B))==null?void 0:q.filter(([K,V])=>K!=="input"&&!K.endsWith(".input")))==null?void 0:W.map(([K,{status:V}])=>y.jsx(sgt,{stepId:K,status:V}))})]})]}),i&&y.jsxs(y.Fragment,{children:[y.jsx("hr",{className:"border-border1 border-sm my-5"}),y.jsx(zme,{sanitizedJsonResult:Y,jsonResult:JSON.stringify(Q,null,2)})]})]})})}const L7=({columns:e,data:t,pagination:n,gotoNextPage:r,gotoPreviousPage:i,getRowId:s,selectedRowId:o,isLoading:a,emptyText:l,onClick:u})=>{const[c,d]=_.useState([]),[{pageIndex:f,pageSize:p},b]=_.useState({pageIndex:n?Math.floor(n.offset/n.limit):0,pageSize:(n==null?void 0:n.limit)??10}),[w,E]=_.useState({}),S=Jht({data:t,columns:e,getCoreRowModel:Yht(),manualPagination:!0,pageCount:n?Math.ceil(n.total/n.limit):-1,state:{sorting:c,pagination:{pageIndex:f,pageSize:p},rowSelection:w},getRowId:s,onPaginationChange:b,onSortingChange:d,enableRowSelection:!0,enableMultiRowSelection:!1,onRowSelectionChange:E}),k=y.jsx(dm,{children:y.jsx(Qs,{colSpan:e.length,children:y.jsxs("div",{className:"py-12 text-center w-full",children:["No ",l||"results"]})})}),A=S.getHeaderGroups()[0],P=S.getRowModel().rows;return y.jsxs("div",{children:[y.jsxs(tme,{children:[y.jsx(nme,{className:"sticky top-0",children:A.headers.map(M=>{const F=M.column.getSize(),I=M.column.columnDef.meta;return y.jsx(hy,{style:{width:(I==null?void 0:I.width)||F||"auto"},children:M.isPlaceholder?null:$X(M.column.columnDef.header,M.getContext())},M.id)})}),y.jsx(SS,{children:a?y.jsx(y.Fragment,{children:Array.from({length:3}).map((M,F)=>y.jsx(dm,{onClick:()=>{},children:Array.from({length:e.length}).map((I,j)=>y.jsx(Qs,{children:y.jsx(Qo,{className:"h-4 w-1/2"})},`row-${F}-cell-${j}`))},F))}):(P==null?void 0:P.length)>0?P.map(M=>y.jsx(dm,{"data-state":(M.getIsSelected()||M.id===o)&&"selected",onClick:()=>u==null?void 0:u(M.original),children:M.getVisibleCells().map(F=>$X(F.column.columnDef.cell,F.getContext()))},M.id)):k})]}),n&&y.jsxs("div",{className:"mt-4 flex items-center justify-between px-2",children:[y.jsxs("div",{className:"text-muted-foreground text-sm",children:["Showing ",n.offset+1," to ",Math.min(n.offset+t.length,n.total)," of"," ",n.total," results"]}),y.jsx("div",{className:"flex items-center space-x-6 lg:space-x-8",children:y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx(Oo,{variant:"outline",size:"sm",onClick:i,disabled:!n.offset,children:"Previous"}),y.jsx(Oo,{variant:"outline",size:"sm",onClick:r,disabled:!n.hasMore,children:"Next"})]})})]})]})},agt=({children:e})=>y.jsx("nav",{className:"bg-surface2 border-r-sm border-border1 min-h-full overflow-hidden",children:e}),rZ=({children:e,as:t="a",href:n,className:r,prefetch:i,to:s})=>y.jsx(t,{href:n,prefetch:i,to:s,className:lr("text-ui-sm flex h-full w-full flex-col justify-center font-medium",r),children:e}),lgt=({children:e})=>y.jsx("ol",{children:e}),iZ=({children:e,isActive:t})=>y.jsx("li",{className:lr("border-b-sm border-border1 hover:bg-surface3 group flex h-[54px] items-center justify-between gap-2 px-5 py-2",t&&"bg-surface4"),children:e}),ugt=({onClick:e})=>y.jsx(Ni,{className:"shrink-0 border-none bg-transparent opacity-0 transition-all group-focus-within:opacity-100 group-hover:opacity-100",onClick:e,children:y.jsx(Ht,{children:y.jsx(D0,{"aria-label":"delete thread",className:"text-icon3"})})}),rd=({children:e,label:t})=>y.jsx("nav",{"aria-label":t,children:y.jsx("ol",{className:"gap-sm flex items-center",children:e})}),Vr=({className:e,as:t,isCurrent:n,...r})=>{const i=t||"span";return y.jsxs(y.Fragment,{children:[y.jsx("li",{className:"flex h-full items-center",children:y.jsx(i,{"aria-current":n?"page":void 0,className:lr("text-ui-lg leading-ui-lg font-medium",n?"text-white":"text-icon3",e),...r})}),!n&&y.jsx("li",{role:"separator",className:"flex h-full items-center",children:y.jsx(Ht,{className:"text-icon3",children:y.jsx(npt,{})})})]})},a2=({children:e,className:t,onClick:n})=>y.jsx("div",{tabIndex:n?0:void 0,onKeyDown:r=>{n&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),n==null||n())},className:lr("flex gap-3 group/entity bg-surface3 rounded-lg border-sm border-border1 py-3 px-4",n&&"cursor-pointer hover:bg-surface4 transition-all",t),onClick:n,children:e}),l2=({children:e,className:t})=>y.jsx(Ht,{size:"lg",className:lr("text-icon3 mt-1",t),children:e}),u2=({children:e,className:t})=>y.jsx(xt,{as:"p",variant:"ui-lg",className:lr("text-icon6 font-medium",t),children:e}),c2=({children:e,className:t})=>y.jsx(xt,{as:"p",variant:"ui-sm",className:lr("text-icon3",t),children:e}),d2=({children:e,className:t})=>y.jsx("div",{className:t,children:e});function cgt({fetchFn:e,interval:t=3e3,enabled:n=!1,onSuccess:r,onError:i,shouldContinue:s=()=>!0,restartPolling:o=!1}){const[a,l]=_.useState(n),[u,c]=_.useState(null),[d,f]=_.useState(null),[p,b]=_.useState(!1),[w,E]=_.useState(!1),S=_.useRef(null),k=_.useRef(!0),[A,P]=_.useState(o),M=_.useCallback(()=>{console.log("cleanup"),S.current&&(clearTimeout(S.current),S.current=null)},[]),F=_.useCallback(()=>{console.log("stopPolling"),l(!1),M()},[M]),I=_.useCallback(()=>{console.log("startPolling"),l(!0),c(null)},[]),j=_.useCallback(async(L=!0)=>{if(k.current){b(!0);try{const z=await e();f(z),c(null),r==null||r(z),s(z)&&L?S.current=setTimeout(j,t):F()}catch(z){if(!k.current)return;c(z),i==null||i(z),F()}finally{k.current&&(E(!1),b(!1))}}},[e,t,r,i,s,F]),B=_.useCallback((L=!1)=>{console.log("refetch",{withPolling:L}),L?l(!0):j(!1),c(null)},[j]);return _.useEffect(()=>(k.current=!0,n&&a&&j(!0),()=>{console.log("cleanup poll"),k.current=!1,M()}),[n,a,j,M]),_.useEffect(()=>{P(o)},[o]),_.useEffect(()=>{A&&!a&&(l(!0),j(),P(!1))},[A]),{isPolling:a,isLoading:p,error:u,data:d,startPolling:I,stopPolling:F,firstCallLoading:w,refetch:B}}const B7=(e,t,n=!1)=>{const[r,i]=_.useState([]),{setTraces:s}=_.useContext(uc),o=_.useMemo(()=>Vl(t),[t]),a=_.useCallback(async()=>{try{const p=await o.getTelemetry({attribute:{componentName:e}});if(!p.traces)throw new Error("Error fetching traces");return Qpt((p==null?void 0:p.traces)||[],n)}catch(p){throw p}},[o,e,n]),l=_.useCallback(p=>{p.length>0&&(i(()=>p),s(()=>p))},[s]),u=_.useCallback(p=>{console.log("error, onError",p),xd.error(p.message)},[]),c=_.useCallback(()=>!0,[]),{firstCallLoading:d,error:f}=cgt({fetchFn:a,interval:3e3,onSuccess:l,onError:u,shouldContinue:c,enabled:!0});return{traces:r,firstCallLoading:d,error:f}},sZ=e=>y.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",children:[y.jsx("rect",{x:"0.605469",y:"0.5",width:"20",height:"20",rx:"2.18625",fill:"black"}),y.jsx("circle",{cx:"10.6059",cy:"10.5004",r:"6.0121",stroke:"url(#paint0_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("ellipse",{cx:"10.6069",cy:"10.501",rx:"6.0121",ry:"4.0324",transform:"rotate(45 10.6069 10.501)",stroke:"url(#paint1_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{d:"M8.15234 10.5234H13.0931",stroke:"url(#paint2_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{d:"M9.36523 11.7773L11.8755 9.26708",stroke:"url(#paint3_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{d:"M11.877 11.7773L9.36669 9.26708",stroke:"url(#paint4_linear_18520_30330)",strokeWidth:"0.766389"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.49185 7.85663C5.44831 8.55655 4.84055 9.49673 4.84055 10.5025C4.84055 11.5082 5.44831 12.4484 6.49185 13.1483C7.5338 13.8472 8.98737 14.2875 10.6052 14.2875C12.2231 14.2875 13.6767 13.8472 14.7186 13.1483C15.7621 12.4484 16.3699 11.5082 16.3699 10.5025C16.3699 9.49673 15.7621 8.55655 14.7186 7.85663C13.6767 7.15778 12.2231 6.7175 10.6052 6.7175C8.98737 6.7175 7.5338 7.15778 6.49185 7.85663ZM6.21621 7.44566C7.35021 6.68507 8.9027 6.22266 10.6052 6.22266C12.3078 6.22266 13.8602 6.68507 14.9942 7.44566C16.1267 8.20518 16.8648 9.2812 16.8648 10.5025C16.8648 11.7238 16.1267 12.7998 14.9942 13.5593C13.8602 14.3199 12.3078 14.7823 10.6052 14.7823C8.9027 14.7823 7.35021 14.3199 6.21621 13.5593C5.0838 12.7998 4.3457 11.7238 4.3457 10.5025C4.3457 9.2812 5.0838 8.20518 6.21621 7.44566Z",fill:"url(#paint5_linear_18520_30330)"}),y.jsxs("defs",{children:[y.jsxs("linearGradient",{id:"paint0_linear_18520_30330",x1:"10.6059",y1:"4.48828",x2:"10.6059",y2:"16.5125",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint1_linear_18520_30330",x1:"10.6069",y1:"6.46857",x2:"10.6069",y2:"14.5334",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint2_linear_18520_30330",x1:"10.6227",y1:"10.5234",x2:"10.6227",y2:"11.5234",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint3_linear_18520_30330",x1:"10.6204",y1:"10.5222",x2:"11.3275",y2:"11.2293",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint4_linear_18520_30330",x1:"10.6218",y1:"10.5222",x2:"11.3289",y2:"9.81511",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]}),y.jsxs("linearGradient",{id:"paint5_linear_18520_30330",x1:"10.6052",y1:"6.22266",x2:"10.6052",y2:"14.7823",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#CACACA"}),y.jsx("stop",{offset:"1",stopColor:"#5C5C5C"})]})]})]}),dgt=[{name:"Agents",url:"/agents",icon:Fb},{name:"Networks",url:"/networks",icon:r1e},{name:"Tools",url:"/tools",icon:Vf},{name:"MCP Servers",url:"/mcps",icon:A7},{name:"Workflows",url:"/workflows",icon:wS},{name:"Runtime Context",url:"/runtime-context",icon:t1e}];function hgt(){const{state:e,toggleSidebar:t}=zw(),r=Ju().pathname;return y.jsxs(Lre,{collapsible:"icon",children:[y.jsxs($re,{className:"w-full pl-1 pt-3 pb-0",children:[y.jsxs("div",{className:"flex justify-between gap-2 items-center w-full",children:[y.jsx("span",{className:"flex shrink-0",children:e==="collapsed"?y.jsx(sZ,{className:"h-10 w-10 shrink-0"}):y.jsxs("span",{className:"flex items-center gap-0.5",children:[y.jsx(sZ,{className:"h-10 w-10 shrink-0"}),y.jsx("span",{className:"font-serif text-sm",children:"Mastra"})]})}),e==="expanded"&&y.jsxs(ea,{children:[y.jsx(ta,{asChild:!0,children:y.jsx(ay,{onClick:()=>t(),className:"w-8 text-icon3",children:y.jsx(Hz,{})})}),y.jsx(xo,{className:"bg-border1 font-sans text-icon6",children:"Collapse sidebar"})]})]}),e==="collapsed"&&y.jsx(ay,{onClick:()=>t(),tooltip:"Expand sidebar",className:"w-8 text-icon3 ml-1 absolute mt-[52px]",children:y.jsx(Hz,{className:"rotate-180"})})]}),y.jsx(Hre,{className:Nl("transition-transform",e==="collapsed"&&"translate-y-10"),children:y.jsx(J8,{children:y.jsx(Q8,{children:y.jsx(eF,{children:dgt.map((i,s)=>{const[o,a]=r.split("/"),l=i.name.toLowerCase(),u=i.url===r||i.name===r||a===l;return y.jsx(kD,{children:y.jsx(ay,{tooltip:i.name,asChild:!0,children:y.jsxs(Qt,{className:`group/icon ${u?"text-primary bg-muted/50":"text-[#939393]"}`,to:i.url,children:[y.jsx(Ht,{children:y.jsx(i.icon,{})}),y.jsx("span",{className:"text-[0.8rem] font-normal",children:i.name})]})})},`${i.name}-${s}`)})})})})}),y.jsx(zre,{className:"pl-0",children:y.jsx(J8,{children:y.jsx(Q8,{children:y.jsxs(eF,{children:[y.jsx(kD,{children:y.jsx(ay,{tooltip:"Documentation",asChild:!0,children:y.jsxs("a",{className:"group/icon text-[#939393]",href:"https://mastra.ai/docs",target:"_blank",rel:"noopener",children:[y.jsx(Ht,{children:y.jsx(Yxe,{})}),y.jsx("span",{className:"text-[0.8rem] font-normal",children:"Documentation"})]})})}),y.jsx(kD,{children:y.jsx(ay,{tooltip:"Github",asChild:!0,children:y.jsxs("a",{className:"group/icon text-[#939393]",href:"https://github.com/mastra-ai/mastra",target:"_blank",rel:"noopener",children:[y.jsx(Ht,{children:y.jsx(Qft,{})}),y.jsx("span",{className:"text-[0.8rem] font-normal",children:"Github"})]})})})]})})})}),y.jsx(Bre,{})]})}var fgt=(e,t,n,r,i,s,o,a)=>{let l=document.documentElement,u=["light","dark"];function c(p){(Array.isArray(e)?e:[e]).forEach(b=>{let w=b==="class",E=w&&s?i.map(S=>s[S]||S):i;w?(l.classList.remove(...E),l.classList.add(s&&s[p]?s[p]:p)):l.setAttribute(b,p)}),d(p)}function d(p){a&&u.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)c(r);else try{let p=localStorage.getItem(t)||n,b=o&&p==="system"?f():p;c(b)}catch{}},pgt=_.createContext(void 0),mgt={setTheme:e=>{},themes:[]},ggt=()=>{var e;return(e=_.useContext(pgt))!=null?e:mgt};_.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,themes:a,nonce:l,scriptProps:u})=>{let c=JSON.stringify([n,t,s,e,a,o,r,i]).slice(1,-1);return _.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${fgt.toString()})(${c})`}})});const ygt=({...e})=>{const{theme:t="system"}=ggt();return y.jsx(rEe,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-surface3 group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},bgt=_.createContext({theme:"system",setTheme:()=>null});function vgt({children:e,defaultTheme:t="system"}){const[n,r]=_.useState(t);return _.useEffect(()=>{const i=window.document.documentElement;if(i.classList.remove("light","dark"),n==="system"){const s=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(s);return}i.classList.add(n)},[n]),y.jsx(bgt.Provider,{value:{theme:n,setTheme:r},children:e})}const oZ=({children:e})=>y.jsx("div",{className:"bg-surface1 overflow-hidden font-sans",children:y.jsx(vgt,{defaultTheme:"dark",attribute:"class",children:y.jsxs(jre,{children:[y.jsx(hgt,{}),y.jsx("main",{className:"py-3 pr-3 w-full h-full",children:y.jsx("div",{className:"w-full h-full overflow-hidden rounded-lg border-sm border-border1 bg-surface2",children:e})}),y.jsx(ygt,{position:"bottom-right"})]})})}),ls=new cce({baseUrl:"",headers:{"x-mastra-dev-playground":"true"}}),Ume=()=>{const[e,t]=_.useState({}),[n,r]=_.useState(!0);return _.useEffect(()=>{(async()=>{r(!0);try{const s=await ls.getAgents();t(s)}catch(s){t({}),console.error("Error fetching agents",s),qn.error("Error fetching agents")}finally{r(!1)}})()},[]),{agents:e,isLoading:n}},Ob=e=>{const[t,n]=_.useState(null),[r,i]=_.useState(!0);return _.useEffect(()=>{(async()=>{i(!0);try{if(!e){n(null),i(!1);return}const o=await ls.getAgent(e).details();n(o)}catch(o){n(null),console.error("Error fetching agent",o),qn.error("Error fetching agent")}finally{i(!1)}})()},[e]),{agent:t,isLoading:r}};function xgt({agentName:e,agentId:t}){return y.jsxs(ii,{children:[y.jsxs(rd,{children:[y.jsx(Vr,{as:Qt,to:"/agents",children:"Agents"}),y.jsx(Vr,{as:Qt,to:`/agents/${t}`,isCurrent:!0,children:e})]}),y.jsxs(N7,{children:[y.jsx(Ni,{as:Qt,to:`/agents/${t}/chat`,children:"Chat"}),y.jsx(Jft,{}),y.jsx(Ni,{as:Qt,to:`/agents/${t}/traces`,children:"Traces"}),y.jsx(Ni,{as:Qt,to:`/agents/${t}/evals`,children:"Evals"})]})]})}const wgt=({children:e})=>{const{agentId:t}=Ds(),{agent:n,isLoading:r}=Ob(t);return y.jsxs("div",{className:"h-full overflow-hidden",children:[r?y.jsx(ii,{children:y.jsx(cc,{children:y.jsx(fr,{className:"h-6 w-[200px]"})})}):y.jsx(xgt,{agentName:n==null?void 0:n.name,agentId:t}),e]})},Sgt=()=>{const[e,t]=_.useState({}),[n,r]=_.useState({}),[i,s]=_.useState(!0);return _.useEffect(()=>{(async()=>{s(!0);try{const[a,l]=await Promise.all([ls.getLegacyWorkflows(),ls.getWorkflows()]);t(a),r(l)}catch(a){console.error("Error fetching workflows",a),qn.error("Error fetching workflows")}finally{s(!1)}})()},[]),{legacyWorkflows:e,workflows:n,isLoading:i}},$7=(e,t=!0)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0);return _.useEffect(()=>{t&&(async()=>{s(!0);try{if(!e){r(null),s(!1);return}const a=await ls.getLegacyWorkflow(e).details();r(a)}catch(a){r(null),console.error("Error fetching legacy workflow",a),qn.error("Error fetching legacy workflow")}finally{s(!1)}})()},[e,t]),{legacyWorkflow:n,isLoading:i}},z7=(e,t=!0)=>{const[n,r]=_.useState(null),[i,s]=_.useState(!0);return _.useEffect(()=>{t&&(async()=>{s(!0);try{if(!e){r(null),s(!1);return}const a=await ls.getWorkflow(e).details();r(a)}catch(a){r(null),console.error("Error fetching workflow",a),qn.error("Error fetching workflow")}finally{s(!1)}})()},[e,t]),{workflow:n,isLoading:i}};function qme({workflowName:e,workflowId:t,isLegacy:n}){return y.jsxs(ii,{children:[y.jsxs(rd,{children:[y.jsx(Vr,{as:Qt,to:"/workflows",children:"Workflows"}),y.jsx(Vr,{as:Qt,to:`/workflows${n?"/legacy":""}/${t}`,isCurrent:!0,children:e})]}),y.jsxs(N7,{children:[y.jsx(Ni,{as:"a",href:`/workflows${n?"/legacy":""}/${t}/graph`,children:"Graph"}),y.jsx(Ni,{as:"a",href:`/workflows${n?"/legacy":""}/${t}/traces`,children:"Traces"})]})]})}const Cgt=({children:e})=>{const{workflowId:t}=Ds(),{legacyWorkflow:n,isLoading:r}=$7(t);return y.jsx($me,{children:y.jsxs("div",{className:"h-full overflow-hidden",children:[r?y.jsx(ii,{children:y.jsx(cc,{children:y.jsx(fr,{className:"h-6 w-[200px]"})})}):y.jsx(qme,{workflowName:(n==null?void 0:n.name)||"",workflowId:t,isLegacy:!0}),e]})})},Egt=()=>{const[e,t]=_.useState({}),[n,r]=_.useState(!0);return _.useEffect(()=>{(async()=>{r(!0);try{const s=await fetch("/api/tools");if(!s.ok){const a=await s.json();t({}),console.error("Error fetching tools",a),qn.error((a==null?void 0:a.error)||"Error fetching tools");return}const o=await s.json();t(o)}catch(s){t({}),console.error("Error fetching tools",s),qn.error("Error fetching tools")}finally{r(!1)}})()},[]),{tools:e,isLoading:n}},Dgt=e=>{const[t,n]=_.useState(null),[r,i]=_.useState(!0);return _.useEffect(()=>{(async()=>{i(!0);try{if(!e){n(null),i(!1);return}const o=await fetch(`/api/tools/${e}`);if(!o.ok){const l=await o.json();n(null),console.error("Error fetching tool",l),qn.error((l==null?void 0:l.error)||"Error fetching tool");return}const a=await o.json();n(a)}catch(o){n(null),console.error("Error fetching tool",o),qn.error("Error fetching tool")}finally{i(!1)}})()},[e]),{tool:t,isLoading:r}},kgt=(e,t)=>{const n=new Map,r=Object.keys(t);for(const s of r){const o=t[s],a=o.tools,l=Object.keys(a);for(const u of l){const c=a[u];n.has(c.id)||n.set(c.id,{...c,agents:[]}),n.get(c.id).agents.push({id:s,name:o.name})}}return Object.entries(e).map(([s,o])=>{var a;return{...o,agents:((a=n.get(o.id))==null?void 0:a.agents)||[]}})},Agt=()=>{const{agents:e,isLoading:t}=Ume(),{tools:n,isLoading:r}=Egt(),i=_.useMemo(()=>kgt(n,e),[e,n]);return t||r?null:y.jsx(_gt,{toolsWithAgents:i})},_gt=({toolsWithAgents:e})=>{const[t,n]=_.useState(e),[r,i]=_.useState(""),s=o=>{const a=o.target.value;i(a),_.startTransition(()=>{n(e.filter(l=>l.id.toLowerCase().includes(a.toLowerCase())||l.description.toLowerCase().includes(a.toLowerCase())||l.agents.some(u=>u.name.toLowerCase().includes(a.toLowerCase())||u.id.toLowerCase().includes(a.toLowerCase()))))})};return y.jsxs(y.Fragment,{children:[y.jsx(ii,{children:y.jsx(cc,{children:"Tools"})}),y.jsxs("div",{className:"pt-12 overflow-y-scroll h-[calc(100%-32px)]",children:[y.jsxs("div",{className:"max-w-2xl mx-auto px-4",children:[y.jsxs("div",{className:"px-4 flex items-center gap-2 rounded-lg bg-surface5 focus-within:ring-2 focus-within:ring-accent3",children:[y.jsx(Ht,{children:y.jsx(a1e,{})}),y.jsx("input",{type:"text",placeholder:"Search for a tool",className:"w-full py-2 bg-transparent text-icon3 focus:text-icon6 placeholder:text-icon3 outline-none",value:r,onChange:s})]}),t.length===0&&y.jsx(xt,{as:"p",className:"text-icon3 py-2",children:"No tools found matching your search."})]}),y.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-4 max-w-5xl mx-auto px-4 py-8",children:t.map(o=>y.jsx(Tgt,{tool:o},o.id))})]})]})},Tgt=({tool:e})=>{const t=_.useRef(null);return y.jsxs(a2,{onClick:()=>{var n;return(n=t.current)==null?void 0:n.click()},children:[y.jsx(l2,{children:y.jsx(Vf,{className:"group-hover/entity:text-[#ECB047]"})}),y.jsxs(d2,{children:[y.jsx(u2,{children:y.jsx(Qt,{ref:t,to:`/tools/all/${e.id}`,children:e.id})}),y.jsx(c2,{children:e.description}),y.jsx("div",{className:"inline-flex flex-wrap gap-2 pt-4",children:e.agents.map(n=>y.jsx(Qt,{to:`/agents/${n.id}/chat`,onClick:r=>r.stopPropagation(),className:"group/link",children:y.jsx(Tr,{icon:y.jsx(Fb,{className:"group-hover/link:text-accent3"}),className:"bg-surface5 ",children:n.name})},n.id))})]})]})},Ns=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(BT,{ref:r,className:Mt("relative overflow-hidden",e),...n,children:[y.jsx(Xhe,{className:"h-full w-full rounded-[inherit]",children:t}),y.jsx(Wme,{}),y.jsx(Zhe,{})]}));Ns.displayName=BT.displayName;const Wme=_.forwardRef(({className:e,orientation:t="vertical",...n},r)=>y.jsx(hS,{ref:r,orientation:t,className:Mt("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:y.jsx(t7,{className:"relative flex-1 rounded-full bg-border"})}));Wme.displayName=hS.displayName;const Gme={"openai.chat":y.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 320 320",xmlns:"http://www.w3.org/2000/svg",fill:"white",children:y.jsx("path",{d:"m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"})}),"anthropic.chat":y.jsx("svg",{className:"h-3 w-3",fill:"white",height:"78",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"78",style:{color:"currentcolor"},children:y.jsx("g",{transform:"translate(0,2)",children:y.jsx("path",{d:"M11.375 0h-2.411L13.352 11.13h2.411L11.375 0ZM4.4 0 0 11.13h2.46l0.9-2.336h4.604l0.9 2.336h2.46L6.924 0H4.4Zm-0.244 6.723 1.506-3.909 1.506 3.909H4.156Z",fill:"currentColor"})})}),"anthropic.messages":y.jsx("svg",{className:"h-3 w-3",fill:"white",height:"78",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"78",style:{color:"currentcolor"},children:y.jsx("g",{transform:"translate(0,2)",children:y.jsx("path",{d:"M11.375 0h-2.411L13.352 11.13h2.411L11.375 0ZM4.4 0 0 11.13h2.46l0.9-2.336h4.604l0.9 2.336h2.46L6.924 0H4.4Zm-0.244 6.723 1.506-3.909 1.506 3.909H4.156Z",fill:"currentColor"})})})},Ngt=({row:e})=>y.jsx(T7,{icon:y.jsx(Fb,{}),name:y.jsx(Qt,{className:"w-full space-y-0",to:`/agents/${e.original.id}/chat`,children:e.original.name}),description:e.original.instructions}),Pgt=[{id:"name",header:"Name",cell:Ngt,meta:{width:"auto"}},{id:"model",header:"Model",size:160,cell:({row:e})=>y.jsx(Qs,{children:y.jsx(Tr,{variant:"default",icon:Gme[e.original.provider]??null,children:e.original.modelId})})}];function Fgt(){const e=nb(),{agents:t,isLoading:n}=Ume(),r=Object.entries(t).map(([i,s])=>({id:i,name:s.name,description:s.instructions,provider:s==null?void 0:s.provider,modelId:s==null?void 0:s.modelId}));return y.jsxs("section",{className:"overflow-hidden",children:[y.jsx(ii,{children:y.jsx(cc,{children:"Agents"})}),y.jsx(Ns,{className:"h-full",children:y.jsx(L7,{isLoading:n,columns:Pgt,data:r,onClick:i=>e(`/agents/${i.id}/chat`)})})]})}const h2=jce,CS=_.forwardRef(({className:e,...t},n)=>y.jsx(hT,{ref:n,className:Nl(e),...t}));CS.displayName=hT.displayName;const sa=_.forwardRef(({className:e,...t},n)=>y.jsx(fT,{ref:n,className:Nl(e),...t}));sa.displayName=fT.displayName;const oa=_.forwardRef(({className:e,...t},n)=>y.jsx(pT,{ref:n,className:Mt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));oa.displayName=pT.displayName;var Yme=["PageUp","PageDown"],Kme=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xme={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Rb="Slider",[T9,Mgt,Ogt]=_j(Rb),[Zme,P1t]=ks(Rb,[Ogt]),[Rgt,f2]=Zme(Rb),Jme=_.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:s=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:b,...w}=e,E=_.useRef(new Set),S=_.useRef(0),A=o==="horizontal"?Igt:jgt,[P=[],M]=Ml({prop:c,defaultProp:u,onChange:z=>{var Q;(Q=[...E.current][S.current])==null||Q.focus(),d(z)}}),F=_.useRef(P);function I(z){const Y=Hgt(P,z);L(z,Y)}function j(z){L(z,S.current)}function B(){const z=F.current[S.current];P[S.current]!==z&&f(P)}function L(z,Y,{commit:Q}={commit:!1}){const $=Wgt(s),J=Ggt(Math.round((z-r)/s)*s+r,$),H=uw(J,[r,i]);M((q=[])=>{const W=$gt(q,H,Y);if(qgt(W,l*s)){S.current=W.indexOf(H);const K=String(W)!==String(q);return K&&Q&&f(W),K?W:q}else return q})}return y.jsx(Rgt,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:i,valueIndexToChangeRef:S,thumbs:E.current,values:P,orientation:o,form:b,children:y.jsx(T9.Provider,{scope:e.__scopeSlider,children:y.jsx(T9.Slot,{scope:e.__scopeSlider,children:y.jsx(A,{"aria-disabled":a,"data-disabled":a?"":void 0,...w,ref:t,onPointerDown:ht(w.onPointerDown,()=>{a||(F.current=P)}),min:r,max:i,inverted:p,onSlideStart:a?void 0:I,onSlideMove:a?void 0:j,onSlideEnd:a?void 0:B,onHomeKeyDown:()=>!a&&L(r,0,{commit:!0}),onEndKeyDown:()=>!a&&L(i,P.length-1,{commit:!0}),onStepKeyDown:({event:z,direction:Y})=>{if(!a){const J=Yme.includes(z.key)||z.shiftKey&&Kme.includes(z.key)?10:1,H=S.current,q=P[H],W=s*J*Y;L(q+W,H,{commit:!0})}}})})})})});Jme.displayName=Rb;var[Qme,ege]=Zme(Rb,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Igt=_.forwardRef((e,t)=>{const{min:n,max:r,dir:i,inverted:s,onSlideStart:o,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...c}=e,[d,f]=_.useState(null),p=Kt(t,A=>f(A)),b=_.useRef(void 0),w=Ab(i),E=w==="ltr",S=E&&!s||!E&&s;function k(A){const P=b.current||d.getBoundingClientRect(),M=[0,P.width],I=H7(M,S?[n,r]:[r,n]);return b.current=P,I(A-P.left)}return y.jsx(Qme,{scope:e.__scopeSlider,startEdge:S?"left":"right",endEdge:S?"right":"left",direction:S?1:-1,size:"width",children:y.jsx(tge,{dir:w,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:A=>{const P=k(A.clientX);o==null||o(P)},onSlideMove:A=>{const P=k(A.clientX);a==null||a(P)},onSlideEnd:()=>{b.current=void 0,l==null||l()},onStepKeyDown:A=>{const M=Xme[S?"from-left":"from-right"].includes(A.key);u==null||u({event:A,direction:M?-1:1})}})})}),jgt=_.forwardRef((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:s,onSlideMove:o,onSlideEnd:a,onStepKeyDown:l,...u}=e,c=_.useRef(null),d=Kt(t,c),f=_.useRef(void 0),p=!i;function b(w){const E=f.current||c.current.getBoundingClientRect(),S=[0,E.height],A=H7(S,p?[r,n]:[n,r]);return f.current=E,A(w-E.top)}return y.jsx(Qme,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:y.jsx(tge,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const E=b(w.clientY);s==null||s(E)},onSlideMove:w=>{const E=b(w.clientY);o==null||o(E)},onSlideEnd:()=>{f.current=void 0,a==null||a()},onStepKeyDown:w=>{const S=Xme[p?"from-bottom":"from-top"].includes(w.key);l==null||l({event:w,direction:S?-1:1})}})})}),tge=_.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:l,...u}=e,c=f2(Rb,n);return y.jsx(Et.span,{...u,ref:t,onKeyDown:ht(e.onKeyDown,d=>{d.key==="Home"?(o(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Yme.concat(Kme).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:ht(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),c.thumbs.has(f)?f.focus():r(d)}),onPointerMove:ht(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:ht(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),s(d))})})}),nge="SliderTrack",rge=_.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=f2(nge,n);return y.jsx(Et.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});rge.displayName=nge;var N9="SliderRange",ige=_.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=f2(N9,n),s=ege(N9,n),o=_.useRef(null),a=Kt(t,o),l=i.values.length,u=i.values.map(f=>oge(f,i.min,i.max)),c=l>1?Math.min(...u):0,d=100-Math.max(...u);return y.jsx(Et.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:c+"%",[s.endEdge]:d+"%"}})});ige.displayName=N9;var P9="SliderThumb",sge=_.forwardRef((e,t)=>{const n=Mgt(e.__scopeSlider),[r,i]=_.useState(null),s=Kt(t,a=>i(a)),o=_.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return y.jsx(Lgt,{...e,ref:s,index:o})}),Lgt=_.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:i,...s}=e,o=f2(P9,n),a=ege(P9,n),[l,u]=_.useState(null),c=Kt(t,k=>u(k)),d=l?o.form||!!l.closest("form"):!0,f=N_(l),p=o.values[r],b=p===void 0?0:oge(p,o.min,o.max),w=zgt(r,o.values.length),E=f==null?void 0:f[a.size],S=E?Vgt(E,b,a.direction):0;return _.useEffect(()=>{if(l)return o.thumbs.add(l),()=>{o.thumbs.delete(l)}},[l,o.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${b}% + ${S}px)`},children:[y.jsx(T9.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(Et.span,{role:"slider","aria-label":e["aria-label"]||w,"aria-valuemin":o.min,"aria-valuenow":p,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...s,ref:c,style:p===void 0?{display:"none"}:e.style,onFocus:ht(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),d&&y.jsx(Bgt,{name:i??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:p},r)]})});sge.displayName=P9;var Bgt=e=>{const{value:t,...n}=e,r=_.useRef(null),i=HT(t);return _.useEffect(()=>{const s=r.current,o=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(o,"value").set;if(i!==t&&l){const u=new Event("input",{bubbles:!0});l.call(s,t),s.dispatchEvent(u)}},[i,t]),y.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function $gt(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,s)=>i-s)}function oge(e,t,n){const s=100/(n-t)*(e-t);return uw(s,[0,100])}function zgt(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Hgt(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function Vgt(e,t,n){const r=e/2,s=H7([0,50],[0,r]);return(r-s(t)*n)*n}function Ugt(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function qgt(e,t){if(t>0){const n=Ugt(e);return Math.min(...n)>=t}return!0}function H7(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Wgt(e){return(String(e).split(".")[1]||"").length}function Ggt(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var age=Jme,Ygt=rge,Kgt=ige,Xgt=sge;const mw=_.forwardRef(({className:e,...t},n)=>y.jsxs(age,{ref:n,className:Mt("relative flex w-full touch-none select-none items-center",e),...t,children:[y.jsx(Ygt,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:y.jsx(Kgt,{className:"absolute h-full bg-primary/50"})}),y.jsx(Xgt,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-white shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));mw.displayName=age.displayName;const Zgt=Ff("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),dl=_.forwardRef(({className:e,...t},n)=>y.jsx(GT,{ref:n,className:Mt(Zgt(),e),...t}));dl.displayName=GT.displayName;var V7="Radio",[Jgt,lge]=ks(V7),[Qgt,eyt]=Jgt(V7),uge=_.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,form:u,...c}=e,[d,f]=_.useState(null),p=Kt(t,E=>f(E)),b=_.useRef(!1),w=d?u||!!d.closest("form"):!0;return y.jsxs(Qgt,{scope:n,checked:i,disabled:o,children:[y.jsx(Et.button,{type:"button",role:"radio","aria-checked":i,"data-state":hge(i),"data-disabled":o?"":void 0,disabled:o,value:a,...c,ref:p,onClick:ht(e.onClick,E=>{i||l==null||l(),w&&(b.current=E.isPropagationStopped(),b.current||E.stopPropagation())})}),w&&y.jsx(tyt,{control:d,bubbles:!b.current,name:r,value:a,checked:i,required:s,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});uge.displayName=V7;var cge="RadioIndicator",dge=_.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=eyt(cge,n);return y.jsx(As,{present:r||s.checked,children:y.jsx(Et.span,{"data-state":hge(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t})})});dge.displayName=cge;var tyt=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=_.useRef(null),o=HT(n),a=N_(t);return _.useEffect(()=>{const l=s.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});d.call(l,n),l.dispatchEvent(f)}},[o,n,r]),y.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function hge(e){return e?"checked":"unchecked"}var nyt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],U7="RadioGroup",[ryt,F1t]=ks(U7,[dT,lge]),fge=dT(),pge=lge(),[iyt,syt]=ryt(U7),mge=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,p=fge(n),b=Ab(u),[w,E]=Ml({prop:s,defaultProp:i,onChange:d});return y.jsx(iyt,{scope:n,name:r,required:o,disabled:a,value:w,onValueChange:E,children:y.jsx(Dce,{asChild:!0,...p,orientation:l,dir:b,loop:c,children:y.jsx(Et.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:b,...f,ref:t})})})});mge.displayName=U7;var gge="RadioGroupItem",yge=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=syt(gge,n),o=s.disabled||r,a=fge(n),l=pge(n),u=_.useRef(null),c=Kt(t,u),d=s.value===i.value,f=_.useRef(!1);return _.useEffect(()=>{const p=w=>{nyt.includes(w.key)&&(f.current=!0)},b=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",b)}},[]),y.jsx(kce,{asChild:!0,...a,focusable:!o,active:d,children:y.jsx(uge,{disabled:o,required:s.required,checked:d,...l,...i,name:s.name,ref:c,onCheck:()=>s.onValueChange(i.value),onKeyDown:ht(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:ht(i.onFocus,()=>{var p;f.current&&((p=u.current)==null||p.click())})})})});yge.displayName=gge;var oyt="RadioGroupIndicator",bge=_.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=pge(n);return y.jsx(dge,{...i,...r,ref:t})});bge.displayName=oyt;var vge=mge,xge=yge,ayt=bge;const wge=_.forwardRef(({className:e,...t},n)=>y.jsx(vge,{className:Mt("grid gap-2",e),...t,ref:n}));wge.displayName=vge.displayName;const F9=_.forwardRef(({className:e,...t},n)=>y.jsx(xge,{ref:n,className:Mt("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:y.jsx(ayt,{className:"flex items-center justify-center",children:y.jsx(Zxe,{className:"h-2.5 w-2.5 fill-current text-current"})})}));F9.displayName=xge.displayName;const F6=({label:e,children:t})=>y.jsxs("div",{className:"space-y-2",children:[y.jsx(xt,{as:"p",variant:"ui-md",className:"text-icon3",children:e}),t]}),Sge=Lhe,Cge=Kj,Ege=Zj,lyt=()=>{const{modelSettings:e,setModelSettings:t}=_.useContext(JT),[n,r]=_.useState(!1);return y.jsxs(Sge,{className:"rounded-lg border-sm border-border1 bg-surface3 overflow-clip",open:n,onOpenChange:r,children:[y.jsxs(Cge,{className:"text-icon3 text-ui-lg font-medium flex items-center gap-2 w-full p-[10px] justify-between",children:["Advanced Settings",y.jsx(Ht,{className:Mt("transition-transform",n?"rotate-0":"-rotate-90"),children:y.jsx(oQ,{})})]}),y.jsxs(Ege,{className:"bg-surface2 p-[10px] grid grid-cols-2 gap-[10px]",children:[y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Top K"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.topK,onChange:a=>t({...e,topK:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Frequency Penalty"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.frequencyPenalty,onChange:a=>t({...e,frequencyPenalty:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Presence Penalty"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.presencePenalty,onChange:a=>t({...e,presencePenalty:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Max Tokens"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.maxTokens,onChange:a=>t({...e,maxTokens:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Max Steps"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.maxSteps,onChange:a=>t({...e,maxSteps:a.target.value?Number(a.target.value):void 0})})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx(xt,{as:"label",className:"text-icon3",variant:"ui-sm",children:"Max Retries"}),y.jsx(mo,{type:"number",value:e==null?void 0:e.maxRetries,onChange:a=>t({...e,maxRetries:a.target.value?Number(a.target.value):void 0})})]})]})]})};function uyt({agent:e}){const{modelSettings:t,setModelSettings:n,chatWithGenerate:r,setChatWithGenerate:i}=_.useContext(JT),s=Object.entries((e==null?void 0:e.workflows)??{});return y.jsx(Ns,{className:"h-[calc(100vh-126px)] px-5 pb-4 text-xs py-2",children:y.jsxs("div",{children:[y.jsxs("section",{className:"space-y-7",children:[y.jsx(F6,{label:"Chat Method",children:y.jsxs(wge,{orientation:"horizontal",value:r?"generate":"stream",onValueChange:o=>i(o==="generate"),className:"flex flex-row gap-4",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(F9,{value:"generate",id:"generate",className:"text-icon6"}),y.jsx(dl,{className:"text-icon6 text-ui-md",htmlFor:"generate",children:"Generate"})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(F9,{value:"stream",id:"stream",className:"text-icon6"}),y.jsx(dl,{className:"text-icon6 text-ui-md",htmlFor:"stream",children:"Stream"})]})]})}),y.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[y.jsx(F6,{label:"Temperature",children:y.jsxs("div",{className:"flex flex-row justify-between items-center gap-2",children:[y.jsx(mw,{value:[(t==null?void 0:t.temperature)??-.1],max:1,min:-.1,step:.1,onValueChange:o=>n({...t,temperature:o[0]<0?void 0:o[0]})}),y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-icon3",children:(t==null?void 0:t.temperature)??"n/a"})]})}),y.jsx(F6,{label:"Top P",children:y.jsxs("div",{className:"flex flex-row justify-between items-center gap-2",children:[y.jsx(mw,{onValueChange:o=>n({...t,topP:o[0]<0?void 0:o[0]}),value:[(t==null?void 0:t.topP)??-.1],max:1,min:-.1,step:.1}),y.jsx(xt,{as:"p",variant:"ui-sm",className:"text-icon3",children:(t==null?void 0:t.topP)??"n/a"})]})})]})]}),y.jsx("section",{className:"py-7",children:y.jsx(lyt,{})}),y.jsxs(Ni,{onClick:()=>n({frequencyPenalty:void 0,presencePenalty:void 0,maxRetries:2,maxSteps:5,maxTokens:void 0,temperature:.5,topP:1,topK:void 0}),children:[y.jsx(Ht,{children:y.jsx(aQ,{})}),"Reset"]}),s!=null&&s.length?y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Workflows"}),y.jsx("div",{className:"flex flex-col gap-2 text-mastra-el-5",children:s.map(([o,a])=>y.jsx("span",{onClick:()=>{},className:"no-underline",children:a.name},o))})]}):null]})})}function cyt({agentId:e}){return y.jsx(Ns,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs w-full",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsx("p",{className:"text-mastra-el-5",children:"/api/agents"})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/evals/ci"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/evals/live"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/instructions"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/generate"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/text-object"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream-object"]})]})]})})}const Dge=e=>{const[t,n]=_.useState([]),[r,i]=_.useState(!0),{transports:s,isLoading:o}=dyt(),a=s[0],l=async u=>{const c=u??e;if(!c){i(!1);return}i(!0);try{const d=await ls.getLogForRun({transportId:a,runId:c});n(d.map(f=>({level:f.level,time:f.time,pid:f.pid,hostname:f.hostname,name:f.name,runId:f.runId,msg:f.msg})))}catch(d){n([]),console.error("Error fetching logs",d),qn.error("Error fetching logs")}finally{i(!1)}};return _.useEffect(()=>{o||!a||l(e)},[e,a]),{logs:t,isLoading:r,refetchLogs:l}},dyt=()=>{const[e,t]=_.useState([]),[n,r]=_.useState(!0),i=async()=>{try{const s=await ls.getLogTransports();t(s.transports)}catch(s){console.error("Error fetching logs",s),qn.error("Error fetching logs")}finally{r(!1)}};return _.useEffect(()=>{i()},[]),{transports:e,isLoading:n}};function hyt({agentId:e}){const{logs:t,isLoading:n,refetchLogs:r}=Dge(e);return y.jsxs(Ns,{className:"h-[calc(100vh-126px)] px-4 pb-4 text-xs w-full",children:[y.jsx("div",{className:"flex justify-end sticky top-0 py-2",children:y.jsx(mm,{variant:"outline",onClick:()=>r(),children:n?y.jsx(ak,{className:"w-4 h-4 animate-spin"}):y.jsx(ak,{className:"w-4 h-4"})})}),y.jsx("div",{className:"space-y-4",children:t.length===0?y.jsxs("p",{className:"text-gray-300/60",children:["No log drains. By default, logs are sent to the console. To configure log drains see"," ",y.jsx("a",{href:"https://mastra.ai/reference/observability/create-logger#upstash-logger-remote-log-drain",target:"_blank",rel:"noopener",className:" hover:text-gray-100 underline",children:"docs."})]}):t.map((i,s)=>y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex gap-2 items-center",children:[y.jsxs("p",{className:"text-mastra-el-5",children:["[",_o(new Date(i.time),"yyyy-MM-dd HH:mm:ss"),"]"]}),y.jsxs("p",{className:"text-mastra-el-4",children:["[",i.level,"]"]})]}),y.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:y.jsx("code",{children:i.msg})})]},s))})]})}function Ib({text:e,copyMessage:t="Copied to clipboard!"}){const[n,r]=_.useState(!1),i=_.useRef(null),s=_.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{qn.success(t),r(!0),i.current&&(clearTimeout(i.current),i.current=null),i.current=setTimeout(()=>{r(!1)},2e3)}).catch(()=>{qn.error("Failed to copy to clipboard.")})},[e,t]);return{isCopied:n,handleCopy:s}}var kge="AlertDialog",[fyt,M1t]=ks(kge,[Vne]),Id=Vne(),Age=e=>{const{__scopeAlertDialog:t,...n}=e,r=Id(t);return y.jsx(D_,{...r,...n,modal:!0})};Age.displayName=kge;var pyt="AlertDialogTrigger",_ge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(I4e,{...i,...r,ref:t})});_ge.displayName=pyt;var myt="AlertDialogPortal",Tge=e=>{const{__scopeAlertDialog:t,...n}=e,r=Id(t);return y.jsx(k_,{...r,...n})};Tge.displayName=myt;var gyt="AlertDialogOverlay",Nge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(Zm,{...i,...r,ref:t})});Nge.displayName=gyt;var Xy="AlertDialogContent",[yyt,byt]=fyt(Xy),Pge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,s=Id(n),o=_.useRef(null),a=Kt(t,o),l=_.useRef(null);return y.jsx(F4e,{contentName:Xy,titleName:Fge,docsSlug:"alert-dialog",children:y.jsx(yyt,{scope:n,cancelRef:l,children:y.jsxs(Jm,{role:"alertdialog",...s,...i,ref:a,onOpenAutoFocus:ht(i.onOpenAutoFocus,u=>{var c;u.preventDefault(),(c=l.current)==null||c.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[y.jsx(NO,{children:r}),y.jsx(xyt,{contentRef:o})]})})})});Pge.displayName=Xy;var Fge="AlertDialogTitle",Mge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(Qm,{...i,...r,ref:t})});Mge.displayName=Fge;var Oge="AlertDialogDescription",Rge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(eg,{...i,...r,ref:t})});Rge.displayName=Oge;var vyt="AlertDialogAction",Ige=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Id(n);return y.jsx(jw,{...i,...r,ref:t})});Ige.displayName=vyt;var jge="AlertDialogCancel",Lge=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=byt(jge,n),s=Id(n),o=Kt(t,i);return y.jsx(jw,{...s,...r,ref:o})});Lge.displayName=jge;var xyt=({contentRef:e})=>{const t=`\`${Xy}\` requires a description for the component to be accessible for screen reader users.
|
|
692
692
|
|
|
693
693
|
You can add a description to the \`${Xy}\` by passing a \`${Oge}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
694
694
|
|