@hep-code-runner/react 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +1 -535
  2. package/dist/index.mjs +3321 -569
  3. package/package.json +5 -3
package/dist/index.js CHANGED
@@ -1,535 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("react"),W=require("prismjs"),z=require("@hep-code-runner/core");Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,i=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+i+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+i+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+i+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+i+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+i+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,i=0;i<2;i++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(Prism);Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:i,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=r.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],p=a.variable[1].inside,u=0;u<s.length;u++)p[s[u]]=r.languages.bash[s[u]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;const Se=`
2
- /* 默认代码颜色 */
3
- .hep-cr-editor .hep-cr-highlight code,
4
- .hep-cr-editor .hep-cr-highlight pre {
5
- color: #f8f8f2 !important;
6
- }
7
-
8
- .hep-cr-editor .token.comment,
9
- .hep-cr-editor .token.prolog,
10
- .hep-cr-editor .token.doctype,
11
- .hep-cr-editor .token.cdata {
12
- color: #8292a2 !important;
13
- }
14
-
15
- .hep-cr-editor .token.punctuation {
16
- color: #f8f8f2 !important;
17
- }
18
-
19
- .hep-cr-editor .token.property,
20
- .hep-cr-editor .token.tag,
21
- .hep-cr-editor .token.constant,
22
- .hep-cr-editor .token.symbol,
23
- .hep-cr-editor .token.deleted {
24
- color: #f92672 !important;
25
- }
26
-
27
- /* console 单独处理 - 必须是白色 */
28
- .hep-cr-editor .token.property.console,
29
- .hep-cr-editor .token.console {
30
- color: #f8f8f2 !important;
31
- }
32
-
33
- .hep-cr-editor .token.boolean,
34
- .hep-cr-editor .token.number {
35
- color: #ae81ff !important;
36
- }
37
-
38
- .hep-cr-editor .token.selector,
39
- .hep-cr-editor .token.attr-name,
40
- .hep-cr-editor .token.string,
41
- .hep-cr-editor .token.char,
42
- .hep-cr-editor .token.builtin,
43
- .hep-cr-editor .token.inserted {
44
- color: #a6e22e !important;
45
- }
46
-
47
- .hep-cr-editor .token.operator,
48
- .hep-cr-editor .token.entity,
49
- .hep-cr-editor .token.url,
50
- .hep-cr-editor .language-css .hep-cr-editor .token.string,
51
- .hep-cr-editor .style .hep-cr-editor .token.string,
52
- .hep-cr-editor .token.variable {
53
- color: #f8f8f2 !important;
54
- }
55
-
56
- .hep-cr-editor .token.atrule,
57
- .hep-cr-editor .token.attr-value,
58
- .hep-cr-editor .token.function,
59
- .hep-cr-editor .token.class-name {
60
- color: #e6db74 !important;
61
- }
62
-
63
- .hep-cr-editor .token.keyword,
64
- .hep-cr-editor .token.keyword-control {
65
- color: #66d9ef !important;
66
- }
67
-
68
- .hep-cr-editor .token.regex,
69
- .hep-cr-editor .token.important {
70
- color: #fd971f !important;
71
- }
72
-
73
- /* 覆盖用户项目的 text-shadow 样式,避免白边 */
74
- .hep-cr-editor code[class*="language-"],
75
- .hep-cr-editor pre[class*="language-"],
76
- .hep-cr-editor .hep-cr-highlight code,
77
- .hep-cr-editor .hep-cr-highlight pre {
78
- text-shadow: none !important;
79
- }
80
-
81
- /* 覆盖 console 等内置对象 */
82
- .hep-cr-editor .token.console {
83
- color: #f8f8f2 !important;
84
- }
85
- `,ye=`
86
- /* 默认代码颜色 */
87
- .hep-cr-editor .hep-cr-highlight code,
88
- .hep-cr-editor .hep-cr-highlight pre {
89
- color: #333 !important;
90
- }
91
-
92
- .hep-cr-editor .token.comment,
93
- .hep-cr-editor .token.prolog,
94
- .hep-cr-editor .token.doctype,
95
- .hep-cr-editor .token.cdata {
96
- color: #708090;
97
- }
98
-
99
- .hep-cr-editor .token.punctuation {
100
- color: #333;
101
- }
102
-
103
- .hep-cr-editor .token.property,
104
- .hep-cr-editor .token.tag,
105
- .hep-cr-editor .token.constant,
106
- .hep-cr-editor .token.symbol,
107
- .hep-cr-editor .token.deleted {
108
- color: #d73a49;
109
- }
110
-
111
- .hep-cr-editor .token.boolean,
112
- .hep-cr-editor .token.number {
113
- color: #005cc5;
114
- }
115
-
116
- .hep-cr-editor .token.selector,
117
- .hep-cr-editor .token.attr-name,
118
- .hep-cr-editor .token.string,
119
- .hep-cr-editor .token.char,
120
- .hep-cr-editor .token.builtin,
121
- .hep-cr-editor .token.inserted {
122
- color: #22863a;
123
- }
124
-
125
- .hep-cr-editor .token.operator,
126
- .hep-cr-editor .token.entity,
127
- .hep-cr-editor .token.url,
128
- .hep-cr-editor .language-css .hep-cr-editor .token.string,
129
- .hep-cr-editor .style .hep-cr-editor .token.string,
130
- .hep-cr-editor .token.variable {
131
- color: #333;
132
- }
133
-
134
- .hep-cr-editor .token.atrule,
135
- .hep-cr-editor .token.attr-value,
136
- .hep-cr-editor .token.function,
137
- .hep-cr-editor .token.class-name {
138
- color: #6f42c1;
139
- }
140
-
141
- .hep-cr-editor .token.keyword {
142
- color: #d73a49;
143
- }
144
-
145
- .hep-cr-editor .token.regex,
146
- .hep-cr-editor .token.important {
147
- color: #e36209;
148
- }
149
-
150
- /* 覆盖用户项目的 text-shadow 样式,避免白边 */
151
- .hep-cr-editor code[class*="language-"],
152
- .hep-cr-editor pre[class*="language-"],
153
- .hep-cr-editor .hep-cr-highlight code,
154
- .hep-cr-editor .hep-cr-highlight pre {
155
- text-shadow: none !important;
156
- }
157
-
158
- /* 覆盖 console 等内置对象 */
159
- .hep-cr-editor .token.console {
160
- color: #333 !important;
161
- }
162
- `;window.Prism=W;function Te(r){if(typeof document>"u")return;const n="hep-cr-prism-styles",i=document.getElementById(n),a=r==="dark"?Se:ye;i&&i.remove();const s=document.createElement("style");s.id=n,s.textContent=a,document.head.appendChild(s)}const Ae={javascript:"javascript",js:"javascript",typescript:"typescript",ts:"typescript",python:"python",py:"python",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",go:"go",golang:"go",rust:"rust",ruby:"ruby",rb:"ruby",php:"php",swift:"swift",kotlin:"kotlin",kt:"kotlin",sql:"sql",bash:"bash",sh:"bash",shell:"bash",json:"json",yaml:"yaml",yml:"yaml",markdown:"markdown",md:"markdown"};function Ne(r){const n=document.createElement("div");return n.textContent=r,n.innerHTML}const Ie=({value:r,language:n,theme:i="dark",disabled:a=!1,onChange:s,onCodeChange:p})=>{const u=t.useRef(null),b=t.useRef(null),E=t.useRef(null),g=t.useMemo(()=>Ae[n.toLowerCase()]||"javascript",[n]),m=i==="dark"?"#1e1e1e":"#fafafa",h=t.useMemo(()=>{try{const l=W.languages[g];if(l)return W.highlight(r||"",l,g)}catch{}return Ne(r||"")},[r,g]),x=t.useCallback(l=>{E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{p==null||p(l)},500)},[p]),S=l=>{const d=l.target.value;s==null||s(d),x(d)},I=()=>{u.current&&b.current&&(b.current.scrollTop=u.current.scrollTop,b.current.scrollLeft=u.current.scrollLeft)},f=l=>{if(l.key==="Tab"){l.preventDefault();const d=l.target,L=d.selectionStart,T=d.selectionEnd,C=r.substring(0,L)+" "+r.substring(T);s==null||s(C),x(C),requestAnimationFrame(()=>{d.selectionStart=d.selectionEnd=L+2})}};return t.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]),t.useEffect(()=>{Te(i)},[i]),e.jsxs("div",{className:`hep-cr-editor theme-${i}`,style:{background:m},children:[e.jsx("pre",{ref:b,className:`hep-cr-highlight language-${g}`,"aria-hidden":"true",children:e.jsx("code",{dangerouslySetInnerHTML:{__html:h}})}),e.jsx("textarea",{ref:u,className:"hep-cr-input",value:r,disabled:a,onChange:S,onScroll:I,onKeyDown:f,spellCheck:!1,placeholder:"Write your code here..."})]})},we=`
163
- .hep-cr-editor {
164
- position: relative;
165
- flex: 1;
166
- overflow: hidden;
167
- }
168
-
169
- .hep-cr-highlight,
170
- .hep-cr-input {
171
- position: absolute;
172
- top: 0;
173
- left: 0;
174
- width: 100%;
175
- height: 100%;
176
- padding: 12px 16px;
177
- margin: 0;
178
- border: none;
179
- font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
180
- font-size: 14px;
181
- line-height: 1.6;
182
- white-space: pre;
183
- overflow: auto;
184
- }
185
-
186
- .hep-cr-highlight {
187
- pointer-events: none;
188
- z-index: 1;
189
- }
190
-
191
- .hep-cr-highlight.hep-cr-highlight {
192
- background: transparent !important;
193
- }
194
-
195
- .hep-cr-highlight code {
196
- display: block;
197
- font-family: inherit;
198
- background: transparent !important;
199
- }
200
-
201
- .hep-cr-input {
202
- position: relative;
203
- z-index: 2;
204
- background: transparent;
205
- color: transparent;
206
- caret-color: #d4d4d4;
207
- resize: none;
208
- outline: none;
209
- }
210
-
211
- .hep-cr-input:disabled {
212
- opacity: 0.7;
213
- }
214
-
215
- /* Light theme caret */
216
- .theme-light .hep-cr-input {
217
- caret-color: #333333;
218
- }
219
- `;if(typeof document<"u"){const r="hep-cr-editor-styles";if(!document.getElementById(r)){const n=document.createElement("style");n.id=r,n.textContent=we,document.head.appendChild(n)}}const V=({pistonUrl:r="/api/piston",language:n="javascript",theme:i="light",themeColor:a="",showLanguageSelector:s=!0,showEditor:p=!0,editable:u=!0,defaultCode:b="",executorLabel:E="运行",onExecuteStart:g,onExecuteEnd:m,onLanguageChange:h,onChange:x})=>{const S="hep-cr-default-language",I=()=>typeof window>"u"?n:localStorage.getItem(S)||n,[f,l]=t.useState([]),[d,L]=t.useState(I()),[T,C]=t.useState(i),[k,F]=t.useState(b),[G,Z]=t.useState(""),[D,q]=t.useState(""),[y,Q]=t.useState(!1),[J,ee]=t.useState(null),[w,P]=t.useState("stdout"),[te,M]=t.useState(null),[j,re]=t.useState(!0),[ne,de]=t.useState(60),[U,oe]=t.useState(!1),[B,ae]=t.useState(!1),ie=t.useRef(!1),$=t.useMemo(()=>new z.PistonClient({pistonUrl:r}),[r]),pe=t.useMemo(()=>f.map(o=>({value:`${o.language}:${o.version}`,label:`${o.language.charAt(0).toUpperCase()+o.language.slice(1)} ${o.version}`})),[f]),ue=t.useMemo(()=>{if(!a)return{};const o=i==="dark",c=(X,v)=>{const O=parseInt(X.replace("#",""),16),_=Math.round(2.55*v),K=Math.min(255,Math.max(0,(O>>16)+_)),ce=Math.min(255,Math.max(0,(O>>8&255)+_)),ke=Math.min(255,Math.max(0,(O&255)+_));return"#"+(16777216+K*65536+ce*256+ke).toString(16).slice(1)},xe=(X=>{const v=parseInt(X.replace("#",""),16),O=v>>16&255,_=v>>8&255,K=v&255;return(.299*O+.587*_+.114*K)/255>.5})(a)?"#000":"#fff";return{"--hep-cr-theme-color":a,"--hep-cr-theme-color-hover":o?c(a,20):c(a,-20),"--hep-cr-tab-active-color":xe}},[a,i]),A=t.useMemo(()=>d.includes(":")?d.split(":")[0]:d,[d]);t.useEffect(()=>{async function o(){re(!0),M(null);try{const c=await $.getRuntimes();l(c)}catch(c){M(c instanceof Error?c.message:"Failed to load runtimes")}finally{re(!1)}}o()},[$]),t.useEffect(()=>{!k&&f.length>0&&F(b||z.getSnippet(A))},[f,k,b,A]),t.useEffect(()=>{x==null||x(k)},[]),t.useEffect(()=>{!j&&f.length>0&&h&&!ie.current&&(ie.current=!0,h(A,k))},[j,f.length]);const he=t.useCallback(o=>{const c=o.target.value,N=c.includes(":")?c.split(":")[0]:c;L(c);const R=z.getSnippet(N);F(R),h==null||h(N,R),typeof window<"u"&&localStorage.setItem(S,c)},[h]),ge=t.useCallback(async()=>{if(!y){Q(!0),Z(""),q(""),ee(null),M(null),P("stdout"),g==null||g();try{const o=await $.execute(A,k);Z(o.output),q(o.stderr),ee(o.executionTime||null),P(o.stderr?"stderr":"stdout"),m==null||m(o)}catch(o){const c=o instanceof Error?o.message:"Execution failed";M(c),m==null||m({success:!1,output:"",stderr:c,code:-1})}finally{Q(!1)}}},[y,d,k,$,g,m]),me=t.useCallback(async()=>{await navigator.clipboard.writeText(k),oe(!0),setTimeout(()=>{oe(!1)},2e3)},[k]),be=t.useCallback(async()=>{const o=w==="stdout"?G:D;await navigator.clipboard.writeText(o),ae(!0),setTimeout(()=>{ae(!1)},2e3)},[w,G,D]),fe=t.useCallback(()=>{F(z.getSnippet(A))},[d]),H=t.useRef(!1),Ee=t.useCallback(o=>{H.current=!0,document.addEventListener("mousemove",Y),document.addEventListener("mouseup",se),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),Y=t.useCallback(o=>{if(!H.current)return;const c=document.querySelector(".hep-cr-main");if(!c)return;const N=c.getBoundingClientRect(),R=(o.clientX-N.left)/N.width*100;de(Math.max(20,Math.min(80,R)))},[]),se=t.useCallback(()=>{H.current=!1,document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",se),document.body.style.cursor="",document.body.style.userSelect=""},[Y]);return e.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${T}`,style:ue,children:[e.jsxs("div",{className:"hep-cr-header",children:[e.jsx("div",{className:"hep-cr-controls",children:s&&e.jsx(e.Fragment,{children:e.jsxs("select",{value:d,onChange:he,className:"hep-cr-language-select",disabled:y,children:[j&&e.jsx("option",{value:"",children:"加载中..."}),pe.map(o=>e.jsx("option",{value:o.value,children:o.label},o.value))]})})}),e.jsxs("div",{className:"hep-cr-actions",children:[e.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:y||j,onClick:ge,children:[y?e.jsx("span",{className:"hep-cr-spinner"}):e.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),y?"运行中...":E]}),p&&u&&e.jsx("button",{className:"hep-cr-btn hep-cr-btn-reset",onClick:fe,children:"重置"}),e.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>C(T==="light"?"dark":"light"),title:T==="light"?"Switch to dark mode":"Switch to light mode",children:T==="light"?e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"5"}),e.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),e.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),e.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),e.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),e.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),e.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),e.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),e.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),te&&e.jsx("div",{className:"hep-cr-error-message",children:te}),e.jsxs("div",{className:"hep-cr-main",children:[p&&e.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${ne}%`},children:[e.jsxs("div",{className:"hep-cr-panel-header",children:[e.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),e.jsxs("div",{className:"hep-cr-output-actions",children:[e.jsx("span",{className:"hep-cr-language-badge",children:A}),e.jsx("button",{className:`hep-cr-btn-icon ${U?"hep-cr-btn-copied":""}`,disabled:U,onClick:me,title:U?"已复制":"复制",children:U?e.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),e.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),e.jsx(Ie,{value:k,language:A,theme:T,disabled:!u||y,onChange:F,onCodeChange:x})]}),p&&e.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:Ee,children:e.jsx("div",{className:"hep-cr-resize-line"})}),e.jsxs("div",{className:"hep-cr-output-panel",style:{width:p?`${100-ne}%`:"100%"},children:[e.jsxs("div",{className:"hep-cr-panel-header",children:[e.jsxs("div",{className:"hep-cr-output-tabs",children:[e.jsx("button",{className:`hep-cr-tab ${w==="stdout"?"active":""}`,onClick:()=>P("stdout"),children:"输出"}),D&&e.jsx("button",{className:`hep-cr-tab hep-cr-tab-error ${w==="stderr"?"active":""}`,onClick:()=>P("stderr"),children:"错误"})]}),e.jsxs("div",{className:"hep-cr-output-actions",children:[J!==null&&e.jsxs("span",{className:"hep-cr-execution-time",children:[J,"ms"]}),e.jsx("button",{className:`hep-cr-btn-icon ${B?"hep-cr-btn-copied":""}`,disabled:B,onClick:be,title:B?"已复制":"复制",children:B?e.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),e.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),e.jsx("div",{className:"hep-cr-output-content",children:e.jsx("pre",{children:w==="stdout"?y?"代码执行中...":G||'点击"运行"执行代码':D})})]})]}),e.jsx("style",{children:`
220
- .hep-cr-runner {
221
- display: flex;
222
- flex-direction: column;
223
- border: 1px solid #e0e0e0;
224
- border-radius: 12px;
225
- overflow: hidden;
226
- font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
227
- }
228
- .hep-cr-runner-dark { background: #1e1e1e; border-color: #333; }
229
- .hep-cr-runner-light { background: #ffffff; }
230
- .hep-cr-header {
231
- display: flex;
232
- justify-content: space-between;
233
- align-items: center;
234
- padding: 12px 16px;
235
- background: #252526;
236
- border-bottom: 1px solid #333;
237
- }
238
- .hep-cr-runner-light .hep-cr-header { background: #f3f3f3; border-color: #e0e0e0; }
239
- .hep-cr-controls { display: flex; gap: 8px; }
240
- .hep-cr-language-select {
241
- padding: 6px 12px;
242
- border: 1px solid #444;
243
- border-radius: 6px;
244
- background: #2d2d2d;
245
- color: #d4d4d4;
246
- font-size: 13px;
247
- cursor: pointer;
248
- outline: none;
249
- }
250
- .hep-cr-runner-light .hep-cr-language-select { background: white; color: #333; border-color: #ccc; }
251
- .hep-cr-language-select:focus { border-color: #4fc3f7; }
252
- .hep-cr-actions { display: flex; gap: 8px; }
253
- .hep-cr-btn {
254
- padding: 6px 16px;
255
- border: none;
256
- border-radius: 6px;
257
- font-size: 13px;
258
- font-weight: 500;
259
- cursor: pointer;
260
- display: flex;
261
- align-items: center;
262
- gap: 6px;
263
- transition: all 0.2s;
264
- }
265
- .hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
266
- .hep-cr-btn-run {
267
- background: var(--hep-cr-theme-color, #4caf50);
268
- color: var(--hep-cr-tab-active-color, #fff);
269
- font-weight: 600;
270
- }
271
- .hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }
272
- .hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }
273
- .hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }
274
- .hep-cr-btn-theme { background: transparent; color: #fdd835; padding: 6px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; display: flex; align-items: center; justify-content: center; }
275
- .hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }
276
- .hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }
277
- .hep-cr-btn-theme:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
278
- .hep-cr-runner-light .hep-cr-btn-theme:hover { background: rgba(0, 0, 0, 0.05); }
279
- .hep-cr-error-message {
280
- padding: 10px 16px;
281
- background: #c62828;
282
- color: white;
283
- font-size: 13px;
284
- }
285
- .hep-cr-main { display: flex; height: 400px; overflow: hidden; }
286
- .hep-cr-editor-panel {
287
- display: flex;
288
- flex-direction: column;
289
- min-width: 20%;
290
- max-width: 80%;
291
- }
292
- .hep-cr-panel-header {
293
- display: flex;
294
- justify-content: space-between;
295
- align-items: center;
296
- padding: 8px 12px;
297
- background: #2d2d2d;
298
- border-bottom: 1px solid #333;
299
- }
300
- .hep-cr-runner-light .hep-cr-panel-header { background: #f0f0f0; border-color: #e0e0e0; }
301
- .hep-cr-panel-title {
302
- font-size: 12px;
303
- font-weight: 600;
304
- color: #888;
305
- text-transform: uppercase;
306
- letter-spacing: 0.5px;
307
- }
308
- .hep-cr-language-badge {
309
- font-size: 11px;
310
- padding: 2px 8px;
311
- background: var(--hep-cr-theme-color, #4fc3f7);
312
- color: var(--hep-cr-tab-active-color, #000);
313
- border-radius: 10px;
314
- font-weight: 600;
315
- }
316
- .hep-cr-editor {
317
- flex: 1;
318
- width: 100%;
319
- background: #1e1e1e;
320
- position: relative;
321
- overflow: hidden;
322
- }
323
- .hep-cr-editor .hep-cr-highlight,
324
- .hep-cr-editor .hep-cr-input {
325
- position: absolute;
326
- top: 0;
327
- left: 0;
328
- width: 100%;
329
- height: 100%;
330
- padding: 12px 16px;
331
- margin: 0;
332
- border: none;
333
- font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
334
- font-size: 14px;
335
- line-height: 1.6;
336
- white-space: pre;
337
- overflow: auto;
338
- }
339
- .hep-cr-editor .hep-cr-highlight {
340
- background: transparent !important;
341
- pointer-events: none;
342
- z-index: 1;
343
- }
344
- .hep-cr-editor .hep-cr-highlight code {
345
- display: block;
346
- font-family: inherit;
347
- }
348
- .hep-cr-editor .hep-cr-input {
349
- background: transparent !important;
350
- color: transparent !important;
351
- caret-color: #d4d4d4;
352
- resize: none;
353
- outline: none;
354
- z-index: 2;
355
- }
356
- .hep-cr-editor .hep-cr-input:disabled { opacity: 0.7; }
357
- .hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code {
358
- color: #333333;
359
- }
360
- .hep-cr-runner-light .hep-cr-editor .hep-cr-input {
361
- caret-color: #333333;
362
- }
363
- .hep-cr-resize-handle {
364
- width: 8px;
365
- background: #2d2d2d;
366
- cursor: col-resize;
367
- display: flex;
368
- align-items: center;
369
- justify-content: center;
370
- border-left: 1px solid #3d3d3d;
371
- border-right: 1px solid #3d3d3d;
372
- }
373
- .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
374
- .hep-cr-resize-line { width: 3px; height: 40px; background: #555; border-radius: 2px; transition: background 0.2s; }
375
- .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
376
- .hep-cr-runner-light .hep-cr-resize-handle { background: #e0e0e0; border-color: #ccc; }
377
- .hep-cr-runner-light .hep-cr-resize-line { background: #bbb; }
378
- .hep-cr-runner-light .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
379
- .hep-cr-runner-light .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
380
- .hep-cr-output-panel {
381
- display: flex;
382
- flex-direction: column;
383
- min-width: 20%;
384
- border-left: 1px solid #333;
385
- }
386
- .hep-cr-runner-light .hep-cr-output-panel { border-color: #e0e0e0; }
387
- .hep-cr-output-tabs { display: flex; gap: 4px; }
388
- .hep-cr-tab {
389
- padding: 4px 12px;
390
- border: none;
391
- background: transparent;
392
- cursor: pointer;
393
- font-size: 12px;
394
- border-radius: 4px;
395
- color: #888;
396
- transition: all 0.2s;
397
- }
398
- .hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }
399
- .hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }
400
- .hep-cr-tab.active { background: var(--hep-cr-theme-color, #4fc3f7); color: var(--hep-cr-tab-active-color, #000); font-weight: 600; }
401
- .hep-cr-tab-error.active { background: #f44336; color: #fff; }
402
- .hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }
403
- .hep-cr-execution-time { font-size: 12px; color: var(--hep-cr-theme-color, #4caf50); font-weight: 500; }
404
- .hep-cr-btn-icon {
405
- background: transparent;
406
- border: none;
407
- cursor: pointer;
408
- padding: 4px;
409
- border-radius: 4px;
410
- color: #888;
411
- display: flex;
412
- align-items: center;
413
- justify-content: center;
414
- transition: all 0.2s;
415
- }
416
- .hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }
417
- .hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }
418
- .hep-cr-btn-icon:disabled { cursor: not-allowed; opacity: 0.7; }
419
- .hep-cr-btn-copied { color: #4caf50 !important; }
420
- .hep-cr-copied-text { font-size: 12px; color: #4caf50; }
421
- .hep-cr-output-content {
422
- flex: 1;
423
- padding: 12px 16px;
424
- overflow: auto;
425
- background: #1e1e1e;
426
- }
427
- .hep-cr-runner-light .hep-cr-output-content { background: #fff; }
428
- .hep-cr-output-content pre {
429
- margin: 0;
430
- font-size: 13px;
431
- line-height: 1.6;
432
- white-space: pre-wrap;
433
- word-break: break-all;
434
- color: #d4d4d4;
435
- }
436
- .hep-cr-runner-light .hep-cr-output-content pre { color: #333; }
437
- .hep-cr-output-content .stderr { color: #f44336; }
438
- .hep-cr-spinner {
439
- width: 12px;
440
- height: 12px;
441
- border: 2px solid rgba(255,255,255,0.3);
442
- border-top-color: white;
443
- border-radius: 50%;
444
- animation: spin 0.8s linear infinite;
445
- }
446
- @keyframes spin { to { transform: rotate(360deg); } }
447
- `})]})},le=t.forwardRef(({open:r,defaultOpen:n=!1,title:i="代码执行器",width:a=800,onClose:s,footer:p,theme:u="light",...b},E)=>{const[g,m]=t.useState(n),h=r!==void 0,x=h?r:g;t.useEffect(()=>{h&&r!==g&&m(r)},[r,h]);const S=t.useCallback(()=>{h||m(!1),s==null||s()},[h,s]),I=l=>{l.target===l.currentTarget&&S()};t.useImperativeHandle(E,()=>({close:S}));const f=typeof a=="number"?`${a}px`:a;return x?e.jsxs("div",{className:"hep-cr-dialog-overlay",onClick:I,children:[e.jsxs("div",{className:"hep-cr-dialog-container",style:{width:f},children:[e.jsxs("div",{className:"hep-cr-dialog-header",children:[e.jsx("h3",{className:"hep-cr-dialog-title",children:i}),e.jsx("button",{className:"hep-cr-dialog-close",onClick:S,children:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),e.jsx("div",{className:"hep-cr-dialog-body",children:e.jsx(V,{theme:u,...b})}),p&&e.jsx("div",{className:"hep-cr-dialog-footer",children:p})]}),e.jsx("style",{children:`
448
- .hep-cr-dialog-overlay {
449
- position: fixed;
450
- top: 0;
451
- left: 0;
452
- right: 0;
453
- bottom: 0;
454
- background: rgba(0, 0, 0, 0.5);
455
- display: flex;
456
- align-items: center;
457
- justify-content: center;
458
- z-index: 9999;
459
- animation: hep-cr-dialog-fade-in 0.2s ease;
460
- }
461
-
462
- .hep-cr-dialog-container {
463
- background: #fff;
464
- border-radius: 12px;
465
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
466
- max-width: 90vw;
467
- max-height: 90vh;
468
- display: flex;
469
- flex-direction: column;
470
- overflow: hidden;
471
- animation: hep-cr-dialog-scale-in 0.2s ease;
472
- }
473
-
474
- .hep-cr-dialog-header {
475
- display: flex;
476
- align-items: center;
477
- justify-content: space-between;
478
- padding: 16px 20px;
479
- border-bottom: 1px solid #e0e0e0;
480
- }
481
-
482
- .hep-cr-dialog-title {
483
- margin: 0;
484
- font-size: 16px;
485
- font-weight: 600;
486
- color: #333;
487
- }
488
-
489
- .hep-cr-dialog-close {
490
- background: none;
491
- border: none;
492
- cursor: pointer;
493
- padding: 4px;
494
- border-radius: 4px;
495
- color: #666;
496
- display: flex;
497
- align-items: center;
498
- justify-content: center;
499
- transition: all 0.2s;
500
- }
501
-
502
- .hep-cr-dialog-close:hover {
503
- background: #f0f0f0;
504
- color: #333;
505
- }
506
-
507
- .hep-cr-dialog-body {
508
- flex: 1;
509
- overflow: auto;
510
- padding: 0;
511
- }
512
-
513
- .hep-cr-dialog-body .hep-cr-runner {
514
- border: none;
515
- border-radius: 0;
516
- }
517
-
518
- .hep-cr-dialog-footer {
519
- padding: 12px 20px;
520
- border-top: 1px solid #e0e0e0;
521
- display: flex;
522
- justify-content: flex-end;
523
- gap: 12px;
524
- }
525
-
526
- @keyframes hep-cr-dialog-fade-in {
527
- from { opacity: 0; }
528
- to { opacity: 1; }
529
- }
530
-
531
- @keyframes hep-cr-dialog-scale-in {
532
- from { transform: scale(0.95); }
533
- to { transform: scale(1); }
534
- }
535
- `})]}):null});le.displayName="CodeRunnerDialog";exports.CodeRunner=V;exports.CodeRunnerDialog=le;exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react");var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,a={exports:{}},o={};var i,s={};"production"===process.env.NODE_ENV?a.exports=function(){if(r)return o;r=1;var n=e,t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,n,r){var a,o={},c=null,p=null;for(a in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(p=n.ref),n)i.call(n,a)&&!l.hasOwnProperty(a)&&(o[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===o[a]&&(o[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:p,props:o,_owner:s.current}}return o.Fragment=a,o.jsx=c,o.jsxs=c,o}():a.exports=(i||(i=1,"production"!==process.env.NODE_ENV&&function(){var n,t=e,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];!function(e,n,t){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(n+="%s",t=t.concat([r]));var a=t.map(function(e){return String(e)});a.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,a)}("error",e,t)}function v(e){return e.displayName||"Context"}function x(e){if(null==e)return null;if("number"==typeof e.tag&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case a:return"Portal";case l:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return v(e)+".Consumer";case c:return v(e._context)+".Provider";case u:return function(e,n,t){var r=e.displayName;if(r)return r;var a=n.displayName||n.name||"";return""!==a?t+"("+a+")":t}(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return null!==n?n:x(e.type)||"Memo";case f:var t=e,r=t._payload,s=t._init;try{return x(s(r))}catch(m){return null}}return null}n=Symbol.for("react.module.reference");var k,w,S,A,T,_,N,R=Object.assign,F=0;function O(){}O.__reactDisabledLog=!0;var I,C=y.ReactCurrentDispatcher;function L(e,n,t){if(void 0===I)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return"\n"+I+e}var j,P=!1,D="function"==typeof WeakMap?WeakMap:Map;function $(e,n){if(!e||P)return"";var t,r=j.get(e);if(void 0!==r)return r;P=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=C.current,C.current=null,function(){if(0===F){k=console.log,w=console.info,S=console.warn,A=console.error,T=console.group,_=console.groupCollapsed,N=console.groupEnd;var e={configurable:!0,enumerable:!0,value:O,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}();try{if(n){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(g){t=g}Reflect.construct(e,[],i)}else{try{i.call()}catch(g){t=g}e.call(i.prototype)}}else{try{throw Error()}catch(g){t=g}e()}}catch(f){if(f&&t&&"string"==typeof f.stack){for(var s=f.stack.split("\n"),l=t.stack.split("\n"),c=s.length-1,p=l.length-1;c>=1&&p>=0&&s[c]!==l[p];)p--;for(;c>=1&&p>=0;c--,p--)if(s[c]!==l[p]){if(1!==c||1!==p)do{if(c--,--p<0||s[c]!==l[p]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&j.set(e,u),u}}while(c>=1&&p>=0);break}}}finally{P=!1,C.current=a,function(){if(0===--F){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:k}),info:R({},e,{value:w}),warn:R({},e,{value:S}),error:R({},e,{value:A}),group:R({},e,{value:T}),groupCollapsed:R({},e,{value:_}),groupEnd:R({},e,{value:N})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var d=e?e.displayName||e.name:"",h=d?L(d):"";return"function"==typeof e&&j.set(e,h),h}function M(e,n,t){if(null==e)return"";if("function"==typeof e)return $(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return L(e);switch(e){case d:return L("Suspense");case h:return L("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return $(e.render,!1);case g:return M(e.type,n,t);case f:var a=e,o=a._payload,i=a._init;try{return M(i(o),n,t)}catch(s){}}return""}j=new D;var U=Object.prototype.hasOwnProperty,z={},H=y.ReactDebugCurrentFrame;function B(e){if(e){var n=e._owner,t=M(e.type,e._source,n?n.type:null);H.setExtraStackFrame(t)}else H.setExtraStackFrame(null)}var G=Array.isArray;function W(e){return G(e)}function Y(e){return""+e}function X(e){if(function(e){try{return Y(e),!1}catch(n){return!0}}(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Y(e)}var Z,K,q=y.ReactCurrentOwner,V={key:!0,ref:!0,__self:!0,__source:!0};function J(e,n,t,a,o){var i,s={},l=null,c=null;for(i in void 0!==t&&(X(t),l=""+t),function(e){if(U.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(n)&&(X(n.key),l=""+n.key),function(e){if(U.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}(n)&&(c=n.ref,function(e){"string"==typeof e.ref&&q.current}(n)),n)U.call(n,i)&&!V.hasOwnProperty(i)&&(s[i]=n[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===s[i]&&(s[i]=p[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,n){var t=function(){Z||(Z=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,u),c&&function(e,n){var t=function(){K||(K=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(s,u)}return function(e,n,t,a,o,i,s){var l={$$typeof:r,type:e,key:n,ref:t,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,o,a,q.current,s)}var Q,ee=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function te(e){if(e){var n=e._owner,t=M(e.type,e._source,n?n.type:null);ne.setExtraStackFrame(t)}else ne.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function ae(){if(ee.current){var e=x(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Q=!1;var oe={};function ie(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=ae();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!oe[t]){oe[t]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+x(e._owner.type)+"."),te(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),te(null)}}}function se(e,n){if("object"==typeof e)if(W(e))for(var t=0;t<e.length;t++){var r=e[t];re(r)&&ie(r,n)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var a=function(e){if(null===e||"object"!=typeof e)return null;var n=b&&e[b]||e["@@iterator"];return"function"==typeof n?n:null}(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)re(o.value)&&ie(o.value,n)}}function le(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u&&t.$$typeof!==g)return;n=t.propTypes}if(n){var r=x(t);!function(e,n,t,r,a){var o=Function.call.bind(U);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](n,i,r,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){s=c}!s||s instanceof Error||(B(a),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",t,i,typeof s),B(null)),s instanceof Error&&!(s.message in z)&&(z[s.message]=!0,B(a),E("Failed %s type: %s",t,s.message),B(null))}}(n,e.props,"prop",r,e)}else void 0===t.PropTypes||Q||(Q=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ce={};function pe(e,t,a,s,b,y){var v=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===d||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===c||e.$$typeof===p||e.$$typeof===u||e.$$typeof===n||void 0!==e.getModuleId)}(e);if(!v){var k,w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),w+=ae(),null===e?k="null":W(e)?k="array":void 0!==e&&e.$$typeof===r?(k="<"+(x(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,w)}var S=J(e,t,a,b,y);if(null==S)return S;if(v){var A=t.children;if(void 0!==A)if(s)if(W(A)){for(var T=0;T<A.length;T++)se(A[T],e);Object.freeze&&Object.freeze(A)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else se(A,e)}if(U.call(t,"key")){var _=x(e),N=Object.keys(t).filter(function(e){return"key"!==e}),R=N.length>0?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}";ce[_+R]||(E('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',R,_,N.length>0?"{"+N.join(": ..., ")+": ...}":"{}",_),ce[_+R]=!0)}return e===o?function(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){te(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),te(null);break}}null!==e.ref&&(te(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(S):le(S),S}var ue=function(e,n,t){return pe(e,n,t,!1)},de=function(e,n,t){return pe(e,n,t,!0)};s.Fragment=o,s.jsx=ue,s.jsxs=de}()),s);var l,c,p=a.exports,u={exports:{}};l=u,c=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof o?new o(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(n,t){var r,o;switch(t=t||{},a.util.type(n)){case"Object":if(o=a.util.objId(n),t[o])return t[o];for(var i in r={},t[o]=r,n)n.hasOwnProperty(i)&&(r[i]=e(n[i],t));return r;case"Array":return o=a.util.objId(n),t[o]?t[o]:(r=[],t[o]=r,n.forEach(function(n,a){r[a]=e(n,t)}),r);default:return n}},getLanguage:function(e){for(;e;){var t=n.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var t in n)if(n[t].src==e)return n[t]}return null}},isActive:function(e,n,t){for(var r="no-"+n;e;){var a=e.classList;if(a.contains(n))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!t}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,n){var t=a.util.clone(a.languages[e]);for(var r in n)t[r]=n[r];return t},insertBefore:function(e,n,t,r){var o=(r=r||a.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==n)for(var l in t)t.hasOwnProperty(l)&&(i[l]=t[l]);t.hasOwnProperty(s)||(i[s]=o[s])}var c=r[e];return r[e]=i,a.languages.DFS(a.languages,function(n,t){t===c&&n!=e&&(this[n]=i)}),i},DFS:function e(n,t,r,o){o=o||{};var i=a.util.objId;for(var s in n)if(n.hasOwnProperty(s)){t.call(n,s,n[s],r||s);var l=n[s],c=a.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,t,s,o)):(o[i(l)]=!0,e(l,t,null,o))}}},plugins:{},highlightAll:function(e,n){a.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var r={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var o,i=0;o=r.elements[i++];)a.highlightElement(o,!0===n,r.callback)},highlightElement:function(n,t,r){var o=a.util.getLanguage(n),i=a.languages[o];a.util.setLanguage(n,o);var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&a.util.setLanguage(s,o);var l={element:n,language:o,grammar:i,code:n.textContent};function c(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(t&&e.Worker){var p=new Worker(a.filename);p.onmessage=function(e){c(e.data)},p.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(a.highlight(l.code,l.grammar,l.language));else c(a.util.encode(l.code))},highlight:function(e,n,t){var r={code:e,grammar:n,language:t};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),o.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,n){var t=n.rest;if(t){for(var r in t)n[r]=t[r];delete n.rest}var a=new l;return c(a,a.head,e),s(e,a,n,a.head,0),function(e){for(var n=[],t=e.head.next;t!==e.tail;)n.push(t.value),t=t.next;return n}(a)},hooks:{all:{},add:function(e,n){var t=a.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=a.hooks.all[e];if(t&&t.length)for(var r,o=0;r=t[o++];)r(n)}},Token:o};function o(e,n,t,r){this.type=e,this.content=n,this.alias=t,this.length=0|(r||"").length}function i(e,n,t,r){e.lastIndex=n;var a=e.exec(t);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,n,t,r,l,u){for(var d in t)if(t.hasOwnProperty(d)&&t[d]){var h=t[d];h=Array.isArray(h)?h:[h];for(var g=0;g<h.length;++g){if(u&&u.cause==d+","+g)return;var f=h[g],m=f.inside,b=!!f.lookbehind,y=!!f.greedy,E=f.alias;if(y&&!f.pattern.global){var v=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,v+"g")}for(var x=f.pattern||f,k=r.next,w=l;k!==n.tail&&!(u&&w>=u.reach);w+=k.value.length,k=k.next){var S=k.value;if(n.length>e.length)return;if(!(S instanceof o)){var A,T=1;if(y){if(!(A=i(x,w,e,b))||A.index>=e.length)break;var _=A.index,N=A.index+A[0].length,R=w;for(R+=k.value.length;_>=R;)R+=(k=k.next).value.length;if(w=R-=k.value.length,k.value instanceof o)continue;for(var F=k;F!==n.tail&&(R<N||"string"==typeof F.value);F=F.next)T++,R+=F.value.length;T--,S=e.slice(w,R),A.index-=w}else if(!(A=i(x,0,S,b)))continue;_=A.index;var O=A[0],I=S.slice(0,_),C=S.slice(_+O.length),L=w+S.length;u&&L>u.reach&&(u.reach=L);var j=k.prev;if(I&&(j=c(n,j,I),w+=I.length),p(n,j,T),k=c(n,j,new o(d,m?a.tokenize(O,m):O,E,O)),C&&c(n,k,C),T>1){var P={cause:d+","+g,reach:L};s(e,n,t,k.prev,w,P),u&&P.reach>u.reach&&(u.reach=P.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function c(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function p(e,n,t){for(var r=n.next,a=0;a<t&&r!==e.tail;a++)r=r.next;n.next=r,r.prev=n,e.length-=a}if(e.Prism=a,o.stringify=function e(n,t){if("string"==typeof n)return n;if(Array.isArray(n)){var r="";return n.forEach(function(n){r+=e(n,t)}),r}var o={type:n.type,content:e(n.content,t),tag:"span",classes:["token",n.type],attributes:{},language:t},i=n.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),a.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",function(n){var t=JSON.parse(n.data),r=t.language,o=t.code,i=t.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r)),i&&e.close()},!1),a):a;var u=a.util.currentScript();function d(){a.manual||a.highlightAll()}if(u&&(a.filename=u.src,u.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}),l.exports&&(l.exports=c),void 0!==n&&(n.Prism=c),c.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},c.languages.markup.tag.inside["attr-value"].inside.entity=c.languages.markup.entity,c.languages.markup.doctype.inside["internal-subset"].inside=c.languages.markup,c.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(c.languages.markup.tag,"addInlined",{value:function(e,n){var t={};t["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:c.languages[n]},t.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:t}};r["language-"+n]={pattern:/[\s\S]+/,inside:c.languages[n]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},c.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(c.languages.markup.tag,"addAttribute",{value:function(e,n){c.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:c.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),c.languages.html=c.languages.markup,c.languages.mathml=c.languages.markup,c.languages.svg=c.languages.markup,c.languages.xml=c.languages.extend("markup",{}),c.languages.ssml=c.languages.xml,c.languages.atom=c.languages.xml,c.languages.rss=c.languages.xml,function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var t=e.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(c),c.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},c.languages.javascript=c.languages.extend("clike",{"class-name":[c.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),c.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,c.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:c.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:c.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:c.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:c.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:c.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),c.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:c.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),c.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),c.languages.markup&&(c.languages.markup.tag.addInlined("script","javascript"),c.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),c.languages.js=c.languages.javascript,function(){if(void 0!==c&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",t="loading",r="loaded",a="pre[data-src]:not(["+n+'="'+r+'"]):not(['+n+'="'+t+'"])';c.hooks.add("before-highlightall",function(e){e.selector+=", "+a}),c.hooks.add("before-sanity-check",function(o){var i=o.element;if(i.matches(a)){o.code="",i.setAttribute(n,t);var s=i.appendChild(document.createElement("CODE"));s.textContent="Loading…";var l=i.getAttribute("data-src"),p=o.language;if("none"===p){var u=(/\.(\w+)$/.exec(l)||[,"none"])[1];p=e[u]||u}c.util.setLanguage(s,p),c.util.setLanguage(i,p);var d=c.plugins.autoloader;d&&d.loadLanguages(p),function(e,n,t){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?n(r.responseText):r.status>=400?t("✖ Error "+r.status+" while fetching file: "+r.statusText):t("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){i.setAttribute(n,r);var t=function(e){var n=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(n){var t=Number(n[1]),r=n[2],a=n[3];return r?a?[t,Number(a)]:[t,void 0]:[t,t]}}(i.getAttribute("data-range"));if(t){var a=e.split(/\r\n?|\n/g),o=t[0],l=null==t[1]?a.length:t[1];o<0&&(o+=a.length),o=Math.max(0,Math.min(o-1,a.length)),l<0&&(l+=a.length),l=Math.max(0,Math.min(l,a.length)),e=a.slice(o,l).join("\n"),i.hasAttribute("data-start")||i.setAttribute("data-start",String(o+1))}s.textContent=e,c.highlightElement(s)},function(e){i.setAttribute(n,"failed"),s.textContent=e})}}),c.plugins.fileHighlight={highlight:function(e){for(var n,t=(e||document).querySelectorAll(a),r=0;n=t[r++];)c.highlightElement(n)}};var o=!1;c.fileHighlight=function(){o||(o=!0),c.plugins.fileHighlight.highlight.apply(this,arguments)}}}();const d=t(u.exports);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],function(e){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(e){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism),Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:t,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json;window.Prism=d;const h={javascript:"javascript",js:"javascript",typescript:"typescript",ts:"typescript",python:"python",py:"python",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",go:"go",golang:"go",rust:"rust",ruby:"ruby",rb:"ruby",php:"php",swift:"swift",kotlin:"kotlin",kt:"kotlin",sql:"sql",bash:"bash",sh:"bash",shell:"bash",json:"json",yaml:"yaml",yml:"yaml",markdown:"markdown",md:"markdown"};const g=({value:n,language:t,theme:r="dark",disabled:a=!1,onChange:o,onCodeChange:i})=>{const s=e.useRef(null),l=e.useRef(null),c=e.useRef(null),u=e.useMemo(()=>h[t.toLowerCase()]||"javascript",[t]),g="dark"===r?"#1e1e1e":"#fafafa",f=e.useMemo(()=>{try{const e=d.languages[u];if(e)return d.highlight(n||"",e,u)}catch(e){}return function(e){const n=document.createElement("div");return n.textContent=e,n.innerHTML}(n||"")},[n,u]),m=e.useCallback(e=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{null==i||i(e)},500)},[i]);return e.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),e.useEffect(()=>{!function(e){if("undefined"==typeof document)return;const n="hep-cr-prism-styles",t=document.getElementById(n),r="dark"===e?'\n/* 默认代码颜色 */\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.comment,\n.hep-cr-editor .token.prolog,\n.hep-cr-editor .token.doctype,\n.hep-cr-editor .token.cdata {\n color: #8292a2 !important;\n}\n\n.hep-cr-editor .token.punctuation {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.property,\n.hep-cr-editor .token.tag,\n.hep-cr-editor .token.constant,\n.hep-cr-editor .token.symbol,\n.hep-cr-editor .token.deleted {\n color: #f92672 !important;\n}\n\n/* console 单独处理 - 必须是白色 */\n.hep-cr-editor .token.property.console,\n.hep-cr-editor .token.console {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.boolean,\n.hep-cr-editor .token.number {\n color: #ae81ff !important;\n}\n\n.hep-cr-editor .token.selector,\n.hep-cr-editor .token.attr-name,\n.hep-cr-editor .token.string,\n.hep-cr-editor .token.char,\n.hep-cr-editor .token.builtin,\n.hep-cr-editor .token.inserted {\n color: #a6e22e !important;\n}\n\n.hep-cr-editor .token.operator,\n.hep-cr-editor .token.entity,\n.hep-cr-editor .token.url,\n.hep-cr-editor .language-css .hep-cr-editor .token.string,\n.hep-cr-editor .style .hep-cr-editor .token.string,\n.hep-cr-editor .token.variable {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.atrule,\n.hep-cr-editor .token.attr-value,\n.hep-cr-editor .token.function,\n.hep-cr-editor .token.class-name {\n color: #e6db74 !important;\n}\n\n.hep-cr-editor .token.keyword,\n.hep-cr-editor .token.keyword-control {\n color: #66d9ef !important;\n}\n\n.hep-cr-editor .token.regex,\n.hep-cr-editor .token.important {\n color: #fd971f !important;\n}\n\n/* 覆盖用户项目的 text-shadow 样式,避免白边 */\n.hep-cr-editor code[class*="language-"],\n.hep-cr-editor pre[class*="language-"],\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n text-shadow: none !important;\n}\n\n/* 覆盖 console 等内置对象 */\n.hep-cr-editor .token.console {\n color: #f8f8f2 !important;\n}\n':'\n/* 默认代码颜色 */\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n color: #333 !important;\n}\n\n.hep-cr-editor .token.comment,\n.hep-cr-editor .token.prolog,\n.hep-cr-editor .token.doctype,\n.hep-cr-editor .token.cdata {\n color: #708090;\n}\n\n.hep-cr-editor .token.punctuation {\n color: #333;\n}\n\n.hep-cr-editor .token.property,\n.hep-cr-editor .token.tag,\n.hep-cr-editor .token.constant,\n.hep-cr-editor .token.symbol,\n.hep-cr-editor .token.deleted {\n color: #d73a49;\n}\n\n.hep-cr-editor .token.boolean,\n.hep-cr-editor .token.number {\n color: #005cc5;\n}\n\n.hep-cr-editor .token.selector,\n.hep-cr-editor .token.attr-name,\n.hep-cr-editor .token.string,\n.hep-cr-editor .token.char,\n.hep-cr-editor .token.builtin,\n.hep-cr-editor .token.inserted {\n color: #22863a;\n}\n\n.hep-cr-editor .token.operator,\n.hep-cr-editor .token.entity,\n.hep-cr-editor .token.url,\n.hep-cr-editor .language-css .hep-cr-editor .token.string,\n.hep-cr-editor .style .hep-cr-editor .token.string,\n.hep-cr-editor .token.variable {\n color: #333;\n}\n\n.hep-cr-editor .token.atrule,\n.hep-cr-editor .token.attr-value,\n.hep-cr-editor .token.function,\n.hep-cr-editor .token.class-name {\n color: #6f42c1;\n}\n\n.hep-cr-editor .token.keyword {\n color: #d73a49;\n}\n\n.hep-cr-editor .token.regex,\n.hep-cr-editor .token.important {\n color: #e36209;\n}\n\n/* 覆盖用户项目的 text-shadow 样式,避免白边 */\n.hep-cr-editor code[class*="language-"],\n.hep-cr-editor pre[class*="language-"],\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n text-shadow: none !important;\n}\n\n/* 覆盖 console 等内置对象 */\n.hep-cr-editor .token.console {\n color: #333 !important;\n}\n';t&&t.remove();const a=document.createElement("style");a.id=n,a.textContent=r,document.head.appendChild(a)}(r)},[r]),p.jsxs("div",{className:`hep-cr-editor theme-${r}`,style:{background:g},children:[p.jsx("pre",{ref:l,className:`hep-cr-highlight language-${u}`,"aria-hidden":"true",children:p.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),p.jsx("textarea",{ref:s,className:"hep-cr-input",value:n,disabled:a,onChange:e=>{const n=e.target.value;null==o||o(n),m(n)},onScroll:()=>{s.current&&l.current&&(l.current.scrollTop=s.current.scrollTop,l.current.scrollLeft=s.current.scrollLeft)},onKeyDown:e=>{if("Tab"===e.key){e.preventDefault();const t=e.target,r=t.selectionStart,a=t.selectionEnd,i=n.substring(0,r)+" "+n.substring(a);null==o||o(i),m(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=r+2})}},spellCheck:!1,placeholder:"Write your code here..."})]})};if("undefined"!=typeof document){const e="hep-cr-editor-styles";if(!document.getElementById(e)){const n=document.createElement("style");n.id=e,n.textContent="\n.hep-cr-editor {\n position: relative;\n flex: 1;\n overflow: hidden;\n}\n\n.hep-cr-highlight,\n.hep-cr-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 12px 16px;\n margin: 0;\n border: none;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 14px;\n line-height: 1.6;\n white-space: pre;\n overflow: auto;\n}\n\n.hep-cr-highlight {\n pointer-events: none;\n z-index: 1;\n}\n\n.hep-cr-highlight.hep-cr-highlight {\n background: transparent !important;\n}\n\n.hep-cr-highlight code {\n display: block;\n font-family: inherit;\n background: transparent !important;\n}\n\n.hep-cr-input {\n position: relative;\n z-index: 2;\n background: transparent;\n color: transparent;\n caret-color: #d4d4d4;\n resize: none;\n outline: none;\n}\n\n.hep-cr-input:disabled {\n opacity: 0.7;\n}\n\n/* Light theme caret */\n.theme-light .hep-cr-input {\n caret-color: #333333;\n}\n",document.head.appendChild(n)}}var f=Object.defineProperty,m=(e,n,t)=>((e,n,t)=>n in e?f(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t)(e,"symbol"!=typeof n?n+"":n,t);let b=null;class y{constructor(e={}){m(this,"baseUrl"),m(this,"timeout"),this.baseUrl=e.pistonUrl||"/api/piston",this.timeout=e.timeout||3e3}async getRuntimes(e=!1){if(b&&!e)return b;try{const e=await fetch(`${this.baseUrl}/runtimes`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to fetch runtimes: ${e.statusText}`);const n=await e.json();return b=n,n}catch(n){throw n}}async execute(e,n,t={}){const r=(await this.getRuntimes()).find(n=>{var t;return n.language.toLowerCase()===e.toLowerCase()||(null==(t=n.aliases)?void 0:t.some(n=>n.toLowerCase()===e.toLowerCase()))});if(!r)throw new Error(`Language '${e}' is not supported`);const a=this.getFileName(e),o={language:r.language,version:t.version||r.version,files:[{name:a,content:n}],stdin:t.stdin||"",args:t.args||[],run_timeout:t.runTimeout||this.timeout,compile_timeout:this.timeout},i=Date.now();try{const e=await fetch(`${this.baseUrl}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!e.ok)throw new Error(`Execute failed: ${e.statusText}`);const n=await e.json(),t=Date.now()-i,r=n.run.stdout||"",a=n.run.stderr||"";return{success:0===n.run.code,output:r,stderr:a,code:n.run.code,executionTime:t,compile:n.compile?{stdout:n.compile.stdout||"",stderr:n.compile.stderr||"",code:n.compile.code}:void 0}}catch(s){return{success:!1,output:"",stderr:s instanceof Error?s.message:"Unknown error",code:-1,executionTime:Date.now()-i}}}getFileName(e){return{javascript:"main.js",typescript:"main.ts",python:"main.py",python3:"main.py",go:"main.go",rust:"main.rs",java:"Main.java",c:"main.c",cpp:"main.cpp",csharp:"Main.cs",ruby:"main.rb",php:"main.php",bash:"main.sh",shell:"main.sh",perl:"main.pl",lua:"main.lua",swift:"main.swift",kotlin:"Main.kt",scala:"Main.scala",haskell:"main.hs",dart:"main.dart",html:"index.html",css:"style.css",sql:"query.sql",markdown:"readme.md"}[e.toLowerCase()]||`main.${e}`}}const E={javascript:'console.log("Hello, World!");',typescript:'console.log("Hello, World!");',python:'print("Hello, World!")',python3:'print("Hello, World!")',go:'package main\n\nimport "fmt"\n\nfunc main() {\n\tfmt.Println("Hello, World!")\n}',rust:'fn main() {\n\tprintln!("Hello, World!");\n}',java:'public class Main {\n public static void main(String[] args) {\n System.out.println("Hello, World!");\n }\n}',c:'#include <stdio.h>\n\nint main() {\n printf("Hello, World!\\n");\n return 0;\n}',cpp:'#include <iostream>\n\nint main() {\n std::cout << "Hello, World!" << std::endl;\n return 0;\n}',csharp:'using System;\n\nclass Main {\n static void Main() {\n Console.WriteLine("Hello, World!");\n }\n}',ruby:'puts "Hello, World!"',php:'<?php\necho "Hello, World!";\n?>',bash:'echo "Hello, World!"',shell:'echo "Hello, World!"',perl:'print "Hello, World!\\n";',lua:'print("Hello, World!")',r:'print("Hello, World!")',swift:'print("Hello, World!")',kotlin:'fun main() {\n println("Hello, World!")\n}',scala:'object Main extends App {\n println("Hello, World!")\n}',haskell:'main = putStrLn "Hello, World!"',elixir:'IO.puts "Hello, World!"',erlang:'main() -> io:fwrite("Hello, World!~n").',clojure:'(println "Hello, World!")',fsharp:'printfn "Hello, World!"',dart:'void main() {\n print("Hello, World!");\n}',assembly:"section .data\n msg db 'Hello, World!', 0\nsection .text\n global _start\n_start:\n mov rax, 1\n mov rdi, 1\n mov rsi, msg\n mov rdx, 13\n syscall\n mov rax, 60\n xor rdi, rdi\n syscall",html:"<!DOCTYPE html>\n<html>\n<head>\n <title>Hello</title>\n</head>\n<body>\n <h1>Hello, World!</h1>\n</body>\n</html>",css:"body {\n background-color: #f0f0f0;\n font-family: Arial, sans-serif;\n}\n\nh1 {\n color: #333;\n}",sql:"SELECT 'Hello, World!' AS message;",markdown:"# Hello, World!\n\nThis is a sample markdown document."};function v(e){const n=e.toLowerCase();return E[n]||`// ${e}\n// Write your code here`}const x=({pistonUrl:n="/api/piston",language:t="javascript",theme:r="light",themeColor:a="",showLanguageSelector:o=!0,showEditor:i=!0,editable:s=!0,defaultCode:l="",executorLabel:c="运行",onExecuteStart:u,onExecuteEnd:d,onLanguageChange:h,onChange:f})=>{const m="hep-cr-default-language",[b,E]=e.useState([]),[x,k]=e.useState("undefined"==typeof window?t:localStorage.getItem(m)||t),[w,S]=e.useState(r),[A,T]=e.useState(l),[_,N]=e.useState(""),[R,F]=e.useState(""),[O,I]=e.useState(!1),[C,L]=e.useState(null),[j,P]=e.useState("stdout"),[D,$]=e.useState(null),[M,U]=e.useState(!0),[z,H]=e.useState(60),[B,G]=e.useState(!1),[W,Y]=e.useState(!1),X=e.useRef(!1),Z=e.useMemo(()=>new y({pistonUrl:n}),[n]),K=e.useMemo(()=>b.map(e=>({value:`${e.language}:${e.version}`,label:`${e.language.charAt(0).toUpperCase()+e.language.slice(1)} ${e.version}`})),[b]),q=e.useMemo(()=>{if(!a)return{};const e="dark"===r,n=(e,n)=>{const t=parseInt(e.replace("#",""),16),r=Math.round(2.55*n);return"#"+(16777216+65536*Math.min(255,Math.max(0,(t>>16)+r))+256*Math.min(255,Math.max(0,(t>>8&255)+r))+Math.min(255,Math.max(0,(255&t)+r))).toString(16).slice(1)},t=(e=>{const n=parseInt(e.replace("#",""),16);return(.299*(n>>16&255)+.587*(n>>8&255)+.114*(255&n))/255>.5})(a)?"#000":"#fff";return{"--hep-cr-theme-color":a,"--hep-cr-theme-color-hover":n(a,e?20:-20),"--hep-cr-tab-active-color":t}},[a,r]),V=e.useMemo(()=>x.includes(":")?x.split(":")[0]:x,[x]);e.useEffect(()=>{!async function(){U(!0),$(null);try{const e=await Z.getRuntimes();E(e)}catch(e){$(e instanceof Error?e.message:"Failed to load runtimes")}finally{U(!1)}}()},[Z]),e.useEffect(()=>{!A&&b.length>0&&T(l||v(V))},[b,A,l,V]),e.useEffect(()=>{null==f||f(A)},[]),e.useEffect(()=>{!M&&b.length>0&&h&&!X.current&&(X.current=!0,h(V,A))},[M,b.length]);const J=e.useCallback(e=>{const n=e.target.value,t=n.includes(":")?n.split(":")[0]:n;k(n);const r=v(t);T(r),null==h||h(t,r),"undefined"!=typeof window&&localStorage.setItem(m,n)},[h]),Q=e.useCallback(async()=>{if(!O){I(!0),N(""),F(""),L(null),$(null),P("stdout"),null==u||u();try{const e=await Z.execute(V,A);N(e.output),F(e.stderr),L(e.executionTime||null),P(e.stderr?"stderr":"stdout"),null==d||d(e)}catch(e){const n=e instanceof Error?e.message:"Execution failed";$(n),null==d||d({success:!1,output:"",stderr:n,code:-1})}finally{I(!1)}}},[O,x,A,Z,u,d]),ee=e.useCallback(async()=>{await navigator.clipboard.writeText(A),G(!0),setTimeout(()=>{G(!1)},2e3)},[A]),ne=e.useCallback(async()=>{const e="stdout"===j?_:R;await navigator.clipboard.writeText(e),Y(!0),setTimeout(()=>{Y(!1)},2e3)},[j,_,R]),te=e.useCallback(()=>{T(v(V))},[x]),re=e.useRef(!1),ae=e.useCallback(e=>{re.current=!0,document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ie),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),oe=e.useCallback(e=>{if(!re.current)return;const n=document.querySelector(".hep-cr-main");if(!n)return;const t=n.getBoundingClientRect(),r=(e.clientX-t.left)/t.width*100;H(Math.max(20,Math.min(80,r)))},[]),ie=e.useCallback(()=>{re.current=!1,document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ie),document.body.style.cursor="",document.body.style.userSelect=""},[oe]);return p.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${w}`,style:q,children:[p.jsxs("div",{className:"hep-cr-header",children:[p.jsx("div",{className:"hep-cr-controls",children:o&&p.jsx(p.Fragment,{children:p.jsxs("select",{value:x,onChange:J,className:"hep-cr-language-select",disabled:O,children:[M&&p.jsx("option",{value:"",children:"加载中..."}),K.map(e=>p.jsx("option",{value:e.value,children:e.label},e.value))]})})}),p.jsxs("div",{className:"hep-cr-actions",children:[p.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:O||M,onClick:Q,children:[O?p.jsx("span",{className:"hep-cr-spinner"}):p.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),O?"运行中...":c]}),i&&s&&p.jsx("button",{className:"hep-cr-btn hep-cr-btn-reset",onClick:te,children:"重置"}),p.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>S("light"===w?"dark":"light"),title:"light"===w?"Switch to dark mode":"Switch to light mode",children:"light"===w?p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:p.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("circle",{cx:"12",cy:"12",r:"5"}),p.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),p.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),p.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),p.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),p.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),p.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),p.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),p.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),D&&p.jsx("div",{className:"hep-cr-error-message",children:D}),p.jsxs("div",{className:"hep-cr-main",children:[i&&p.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${z}%`},children:[p.jsxs("div",{className:"hep-cr-panel-header",children:[p.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),p.jsxs("div",{className:"hep-cr-output-actions",children:[p.jsx("span",{className:"hep-cr-language-badge",children:V}),p.jsx("button",{className:"hep-cr-btn-icon "+(B?"hep-cr-btn-copied":""),disabled:B,onClick:ee,title:B?"已复制":"复制",children:B?p.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),p.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),p.jsx(g,{value:A,language:V,theme:w,disabled:!s||O,onChange:T,onCodeChange:f})]}),i&&p.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:ae,children:p.jsx("div",{className:"hep-cr-resize-line"})}),p.jsxs("div",{className:"hep-cr-output-panel",style:{width:i?100-z+"%":"100%"},children:[p.jsxs("div",{className:"hep-cr-panel-header",children:[p.jsxs("div",{className:"hep-cr-output-tabs",children:[p.jsx("button",{className:"hep-cr-tab "+("stdout"===j?"active":""),onClick:()=>P("stdout"),children:"输出"}),R&&p.jsx("button",{className:"hep-cr-tab hep-cr-tab-error "+("stderr"===j?"active":""),onClick:()=>P("stderr"),children:"错误"})]}),p.jsxs("div",{className:"hep-cr-output-actions",children:[null!==C&&p.jsxs("span",{className:"hep-cr-execution-time",children:[C,"ms"]}),p.jsx("button",{className:"hep-cr-btn-icon "+(W?"hep-cr-btn-copied":""),disabled:W,onClick:ne,title:W?"已复制":"复制",children:W?p.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),p.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),p.jsx("div",{className:"hep-cr-output-content",children:p.jsx("pre",{children:"stdout"===j?O?"代码执行中...":_||'点击"运行"执行代码':R})})]})]}),p.jsx("style",{children:"\n .hep-cr-runner {\n display: flex;\n flex-direction: column;\n border: 1px solid #e0e0e0;\n border-radius: 12px;\n overflow: hidden;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n }\n .hep-cr-runner-dark { background: #1e1e1e; border-color: #333; }\n .hep-cr-runner-light { background: #ffffff; }\n .hep-cr-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n background: #252526;\n border-bottom: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-header { background: #f3f3f3; border-color: #e0e0e0; }\n .hep-cr-controls { display: flex; gap: 8px; }\n .hep-cr-language-select {\n padding: 6px 12px;\n border: 1px solid #444;\n border-radius: 6px;\n background: #2d2d2d;\n color: #d4d4d4;\n font-size: 13px;\n cursor: pointer;\n outline: none;\n }\n .hep-cr-runner-light .hep-cr-language-select { background: white; color: #333; border-color: #ccc; }\n .hep-cr-language-select:focus { border-color: #4fc3f7; }\n .hep-cr-actions { display: flex; gap: 8px; }\n .hep-cr-btn {\n padding: 6px 16px;\n border: none;\n border-radius: 6px;\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n transition: all 0.2s;\n }\n .hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n .hep-cr-btn-run {\n background: var(--hep-cr-theme-color, #4caf50);\n color: var(--hep-cr-tab-active-color, #fff);\n font-weight: 600;\n }\n .hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }\n .hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }\n .hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }\n .hep-cr-btn-theme { background: transparent; color: #fdd835; padding: 6px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; display: flex; align-items: center; justify-content: center; }\n .hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }\n .hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }\n .hep-cr-btn-theme:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }\n .hep-cr-runner-light .hep-cr-btn-theme:hover { background: rgba(0, 0, 0, 0.05); }\n .hep-cr-error-message {\n padding: 10px 16px;\n background: #c62828;\n color: white;\n font-size: 13px;\n }\n .hep-cr-main { display: flex; height: 400px; overflow: hidden; }\n .hep-cr-editor-panel {\n display: flex;\n flex-direction: column;\n min-width: 20%;\n max-width: 80%;\n }\n .hep-cr-panel-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 12px;\n background: #2d2d2d;\n border-bottom: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-panel-header { background: #f0f0f0; border-color: #e0e0e0; }\n .hep-cr-panel-title {\n font-size: 12px;\n font-weight: 600;\n color: #888;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n }\n .hep-cr-language-badge {\n font-size: 11px;\n padding: 2px 8px;\n background: var(--hep-cr-theme-color, #4fc3f7);\n color: var(--hep-cr-tab-active-color, #000);\n border-radius: 10px;\n font-weight: 600;\n }\n .hep-cr-editor {\n flex: 1;\n width: 100%;\n background: #1e1e1e;\n position: relative;\n overflow: hidden;\n }\n .hep-cr-editor .hep-cr-highlight,\n .hep-cr-editor .hep-cr-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 12px 16px;\n margin: 0;\n border: none;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 14px;\n line-height: 1.6;\n white-space: pre;\n overflow: auto;\n }\n .hep-cr-editor .hep-cr-highlight {\n background: transparent !important;\n pointer-events: none;\n z-index: 1;\n }\n .hep-cr-editor .hep-cr-highlight code {\n display: block;\n font-family: inherit;\n }\n .hep-cr-editor .hep-cr-input {\n background: transparent !important;\n color: transparent !important;\n caret-color: #d4d4d4;\n resize: none;\n outline: none;\n z-index: 2;\n }\n .hep-cr-editor .hep-cr-input:disabled { opacity: 0.7; }\n .hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code {\n color: #333333;\n }\n .hep-cr-runner-light .hep-cr-editor .hep-cr-input {\n caret-color: #333333;\n }\n .hep-cr-resize-handle {\n width: 8px;\n background: #2d2d2d;\n cursor: col-resize;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #3d3d3d;\n border-right: 1px solid #3d3d3d;\n }\n .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }\n .hep-cr-resize-line { width: 3px; height: 40px; background: #555; border-radius: 2px; transition: background 0.2s; }\n .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }\n .hep-cr-runner-light .hep-cr-resize-handle { background: #e0e0e0; border-color: #ccc; }\n .hep-cr-runner-light .hep-cr-resize-line { background: #bbb; }\n .hep-cr-runner-light .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }\n .hep-cr-runner-light .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }\n .hep-cr-output-panel {\n display: flex;\n flex-direction: column;\n min-width: 20%;\n border-left: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-output-panel { border-color: #e0e0e0; }\n .hep-cr-output-tabs { display: flex; gap: 4px; }\n .hep-cr-tab {\n padding: 4px 12px;\n border: none;\n background: transparent;\n cursor: pointer;\n font-size: 12px;\n border-radius: 4px;\n color: #888;\n transition: all 0.2s;\n }\n .hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }\n .hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }\n .hep-cr-tab.active { background: var(--hep-cr-theme-color, #4fc3f7); color: var(--hep-cr-tab-active-color, #000); font-weight: 600; }\n .hep-cr-tab-error.active { background: #f44336; color: #fff; }\n .hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }\n .hep-cr-execution-time { font-size: 12px; color: var(--hep-cr-theme-color, #4caf50); font-weight: 500; }\n .hep-cr-btn-icon {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n color: #888;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n }\n .hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }\n .hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }\n .hep-cr-btn-icon:disabled { cursor: not-allowed; opacity: 0.7; }\n .hep-cr-btn-copied { color: #4caf50 !important; }\n .hep-cr-copied-text { font-size: 12px; color: #4caf50; }\n .hep-cr-output-content {\n flex: 1;\n padding: 12px 16px;\n overflow: auto;\n background: #1e1e1e;\n }\n .hep-cr-runner-light .hep-cr-output-content { background: #fff; }\n .hep-cr-output-content pre {\n margin: 0;\n font-size: 13px;\n line-height: 1.6;\n white-space: pre-wrap;\n word-break: break-all;\n color: #d4d4d4;\n }\n .hep-cr-runner-light .hep-cr-output-content pre { color: #333; }\n .hep-cr-output-content .stderr { color: #f44336; }\n .hep-cr-spinner {\n width: 12px;\n height: 12px;\n border: 2px solid rgba(255,255,255,0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n }\n @keyframes spin { to { transform: rotate(360deg); } }\n "})]})},k=e.forwardRef(({open:n,defaultOpen:t=!1,title:r="代码执行器",width:a=800,onClose:o,footer:i,theme:s="light",...l},c)=>{const[u,d]=e.useState(t),h=void 0!==n,g=h?n:u;e.useEffect(()=>{h&&n!==u&&d(n)},[n,h]);const f=e.useCallback(()=>{h||d(!1),null==o||o()},[h,o]);e.useImperativeHandle(c,()=>({close:f}));const m="number"==typeof a?`${a}px`:a;return g?p.jsxs("div",{className:"hep-cr-dialog-overlay",onClick:e=>{e.target===e.currentTarget&&f()},children:[p.jsxs("div",{className:"hep-cr-dialog-container",style:{width:m},children:[p.jsxs("div",{className:"hep-cr-dialog-header",children:[p.jsx("h3",{className:"hep-cr-dialog-title",children:r}),p.jsx("button",{className:"hep-cr-dialog-close",onClick:f,children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),p.jsx("div",{className:"hep-cr-dialog-body",children:p.jsx(x,{theme:s,...l})}),i&&p.jsx("div",{className:"hep-cr-dialog-footer",children:i})]}),p.jsx("style",{children:"\n .hep-cr-dialog-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n animation: hep-cr-dialog-fade-in 0.2s ease;\n }\n\n .hep-cr-dialog-container {\n background: #fff;\n border-radius: 12px;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);\n max-width: 90vw;\n max-height: 90vh;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n animation: hep-cr-dialog-scale-in 0.2s ease;\n }\n\n .hep-cr-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n border-bottom: 1px solid #e0e0e0;\n }\n\n .hep-cr-dialog-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n }\n\n .hep-cr-dialog-close {\n background: none;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n color: #666;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n }\n\n .hep-cr-dialog-close:hover {\n background: #f0f0f0;\n color: #333;\n }\n\n .hep-cr-dialog-body {\n flex: 1;\n overflow: auto;\n padding: 0;\n }\n\n .hep-cr-dialog-body .hep-cr-runner {\n border: none;\n border-radius: 0;\n }\n\n .hep-cr-dialog-footer {\n padding: 12px 20px;\n border-top: 1px solid #e0e0e0;\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n }\n\n @keyframes hep-cr-dialog-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes hep-cr-dialog-scale-in {\n from { transform: scale(0.95); }\n to { transform: scale(1); }\n }\n "})]}):null});k.displayName="CodeRunnerDialog",exports.CodeRunner=x,exports.CodeRunnerDialog=k,exports.default=x;