@dhzh/foundry 10.1.2 → 10.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- import{l as c}from"./code-editor-DBM7ibgv.js";import"./index-B1nT-DfA.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
1
+ import{l as c}from"./code-editor-CjmqDtZQ.js";import"./index-DlOf72U2.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
2
2
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
3
3
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","-&gt;"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(r,t),i=_(a,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,k)},E={conf:l(r),language:_(r,p)},B={conf:l(a),language:_(a,p)},D={conf:g(),language:A(k)},C={conf:g(),language:A(p)};export{E as TagAngleInterpolationBracket,x as TagAngleInterpolationDollar,C as TagAutoInterpolationBracket,D as TagAutoInterpolationDollar,B as TagBracketInterpolationBracket,$ as TagBracketInterpolationDollar};
@@ -1 +1 @@
1
- import{l as e}from"./code-editor-DBM7ibgv.js";import"./index-B1nT-DfA.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
1
+ import{l as e}from"./code-editor-CjmqDtZQ.js";import"./index-DlOf72U2.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
@@ -1 +1 @@
1
- import{l as e}from"./code-editor-DBM7ibgv.js";import"./index-B1nT-DfA.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
1
+ import{l as e}from"./code-editor-CjmqDtZQ.js";import"./index-DlOf72U2.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/code-editor-DBM7ibgv.js","assets/code-editor-DMeNDIaI.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/code-editor-CjmqDtZQ.js","assets/code-editor-DMeNDIaI.css"])))=>i.map(i=>d[i]);
2
2
  function yj(e,t){for(var s=0;s<t.length;s++){const i=t[s];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function s(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=s(o);fetch(o.href,l)}})();function VR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V0={exports:{}},uu={};var sw;function vj(){if(sw)return uu;sw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(i,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var d in o)d!=="key"&&(l[d]=o[d])}else l=o;return o=l.ref,{$$typeof:e,type:i,key:u,ref:o!==void 0?o:null,props:l}}return uu.Fragment=t,uu.jsx=s,uu.jsxs=s,uu}var iw;function bj(){return iw||(iw=1,V0.exports=vj()),V0.exports}var v=bj(),K0={exports:{}},Mt={};var aw;function xj(){if(aw)return Mt;aw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),x=Symbol.for("react.view_transition"),S=Symbol.iterator;function w(I){return I===null||typeof I!="object"?null:(I=S&&I[S]||I["@@iterator"],typeof I=="function"?I:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function O(I,V,W){this.props=I,this.context=V,this.refs=R,this.updater=W||C}O.prototype.isReactComponent={},O.prototype.setState=function(I,V){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,V,"setState")},O.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function k(){}k.prototype=O.prototype;function A(I,V,W){this.props=I,this.context=V,this.refs=R,this.updater=W||C}var N=A.prototype=new k;N.constructor=A,E(N,O.prototype),N.isPureReactComponent=!0;var j=Array.isArray;function D(){}var M={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function L(I,V,W){var re=W.ref;return{$$typeof:e,type:I,key:V,ref:re!==void 0?re:null,props:W}}function q(I,V){return L(I.type,V,I.props)}function X(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function B(I){var V={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(W){return V[W]})}var H=/\/+/g;function U(I,V){return typeof I=="object"&&I!==null&&I.key!=null?B(""+I.key):V.toString(36)}function z(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(D,D):(I.status="pending",I.then(function(V){I.status==="pending"&&(I.status="fulfilled",I.value=V)},function(V){I.status==="pending"&&(I.status="rejected",I.reason=V)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function Q(I,V,W,re,Ee){var le=typeof I;(le==="undefined"||le==="boolean")&&(I=null);var me=!1;if(I===null)me=!0;else switch(le){case"bigint":case"string":case"number":me=!0;break;case"object":switch(I.$$typeof){case e:case t:me=!0;break;case m:return me=I._init,Q(me(I._payload),V,W,re,Ee)}}if(me)return Ee=Ee(I),me=re===""?"."+U(I,0):re,j(Ee)?(W="",me!=null&&(W=me.replace(H,"$&/")+"/"),Q(Ee,V,W,"",function(Te){return Te})):Ee!=null&&(X(Ee)&&(Ee=q(Ee,W+(Ee.key==null||I&&I.key===Ee.key?"":(""+Ee.key).replace(H,"$&/")+"/")+me)),V.push(Ee)),1;me=0;var ge=re===""?".":re+":";if(j(I))for(var ue=0;ue<I.length;ue++)re=I[ue],le=ge+U(re,ue),me+=Q(re,V,W,le,Ee);else if(ue=w(I),typeof ue=="function")for(I=ue.call(I),ue=0;!(re=I.next()).done;)re=re.value,le=ge+U(re,ue++),me+=Q(re,V,W,le,Ee);else if(le==="object"){if(typeof I.then=="function")return Q(z(I),V,W,re,Ee);throw V=String(I),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return me}function $(I,V,W){if(I==null)return I;var re=[],Ee=0;return Q(I,re,"","",function(le){return V.call(W,le,Ee++)}),re}function K(I){if(I._status===-1){var V=I._result,W=V();W.then(function(re){(I._status===0||I._status===-1)&&(I._status=1,I._result=re,W.status===void 0&&(W.status="fulfilled",W.value=re))},function(re){(I._status===0||I._status===-1)&&(I._status=2,I._result=re,W.status===void 0&&(W.status="rejected",W.reason=re))}),I._status===-1&&(I._status=0,I._result=W)}if(I._status===1)return I._result.default;throw I._result}var Y=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function ee(I){var V=M.T,W={};W.types=V!==null?V.types:null,M.T=W;try{var re=I(),Ee=M.S;Ee!==null&&Ee(W,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(D,Y)}catch(le){Y(le)}finally{V!==null&&W.types!==null&&(V.types=W.types),M.T=V}}function G(I){var V=M.T;if(V!==null){var W=V.types;W===null?V.types=[I]:W.indexOf(I)===-1&&W.push(I)}else ee(G.bind(null,I))}var oe={map:$,forEach:function(I,V,W){$(I,function(){V.apply(this,arguments)},W)},count:function(I){var V=0;return $(I,function(){V++}),V},toArray:function(I){return $(I,function(V){return V})||[]},only:function(I){if(!X(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Mt.Activity=h,Mt.Children=oe,Mt.Component=O,Mt.Fragment=s,Mt.Profiler=o,Mt.PureComponent=A,Mt.StrictMode=i,Mt.Suspense=f,Mt.ViewTransition=x,Mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Mt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return M.H.useMemoCache(I)}},Mt.addTransitionType=G,Mt.cache=function(I){return function(){return I.apply(null,arguments)}},Mt.cacheSignal=function(){return null},Mt.cloneElement=function(I,V,W){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var re=E({},I.props),Ee=I.key;if(V!=null)for(le in V.key!==void 0&&(Ee=""+V.key),V)!_.call(V,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&V.ref===void 0||(re[le]=V[le]);var le=arguments.length-2;if(le===1)re.children=W;else if(1<le){for(var me=Array(le),ge=0;ge<le;ge++)me[ge]=arguments[ge+2];re.children=me}return L(I.type,Ee,re)},Mt.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:l,_context:I},I},Mt.createElement=function(I,V,W){var re,Ee={},le=null;if(V!=null)for(re in V.key!==void 0&&(le=""+V.key),V)_.call(V,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(Ee[re]=V[re]);var me=arguments.length-2;if(me===1)Ee.children=W;else if(1<me){for(var ge=Array(me),ue=0;ue<me;ue++)ge[ue]=arguments[ue+2];Ee.children=ge}if(I&&I.defaultProps)for(re in me=I.defaultProps,me)Ee[re]===void 0&&(Ee[re]=me[re]);return L(I,le,Ee)},Mt.createRef=function(){return{current:null}},Mt.forwardRef=function(I){return{$$typeof:d,render:I}},Mt.isValidElement=X,Mt.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:K}},Mt.memo=function(I,V){return{$$typeof:g,type:I,compare:V===void 0?null:V}},Mt.startTransition=ee,Mt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Mt.use=function(I){return M.H.use(I)},Mt.useActionState=function(I,V,W){return M.H.useActionState(I,V,W)},Mt.useCallback=function(I,V){return M.H.useCallback(I,V)},Mt.useContext=function(I){return M.H.useContext(I)},Mt.useDebugValue=function(){},Mt.useDeferredValue=function(I,V){return M.H.useDeferredValue(I,V)},Mt.useEffect=function(I,V){return M.H.useEffect(I,V)},Mt.useEffectEvent=function(I){return M.H.useEffectEvent(I)},Mt.useId=function(){return M.H.useId()},Mt.useImperativeHandle=function(I,V,W){return M.H.useImperativeHandle(I,V,W)},Mt.useInsertionEffect=function(I,V){return M.H.useInsertionEffect(I,V)},Mt.useLayoutEffect=function(I,V){return M.H.useLayoutEffect(I,V)},Mt.useMemo=function(I,V){return M.H.useMemo(I,V)},Mt.useOptimistic=function(I,V){return M.H.useOptimistic(I,V)},Mt.useReducer=function(I,V,W){return M.H.useReducer(I,V,W)},Mt.useRef=function(I){return M.H.useRef(I)},Mt.useState=function(I){return M.H.useState(I)},Mt.useSyncExternalStore=function(I,V,W){return M.H.useSyncExternalStore(I,V,W)},Mt.useTransition=function(){return M.H.useTransition()},Mt.version="19.3.1",Mt}var ow;function Qu(){return ow||(ow=1,K0.exports=xj()),K0.exports}var b=Qu();const Ne=VR(b),KR=yj({__proto__:null,default:Ne},[b]);var q0={exports:{}},du={},Y0={exports:{}},G0={};var lw;function Sj(){return lw||(lw=1,(function(e){function t(z,Q){var $=z.length;z.push(Q);e:for(;0<$;){var K=$-1>>>1,Y=z[K];if(0<o(Y,Q))z[K]=Q,z[$]=Y,$=K;else break e}}function s(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var Q=z[0],$=z.pop();if($!==Q){z[0]=$;e:for(var K=0,Y=z.length,ee=Y>>>1;K<ee;){var G=2*(K+1)-1,oe=z[G],I=G+1,V=z[I];if(0>o(oe,$))I<Y&&0>o(V,oe)?(z[K]=V,z[I]=$,K=I):(z[K]=oe,z[G]=$,K=G);else if(I<Y&&0>o(V,$))z[K]=V,z[I]=$,K=I;else break e}}return Q}function o(z,Q){var $=z.sortIndex-Q.sortIndex;return $!==0?$:z.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],g=[],m=1,h=null,x=3,S=!1,w=!1,C=!1,E=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function A(z){for(var Q=s(g);Q!==null;){if(Q.callback===null)i(g);else if(Q.startTime<=z)i(g),Q.sortIndex=Q.expirationTime,t(f,Q);else break;Q=s(g)}}function N(z){if(C=!1,A(z),!w)if(s(f)!==null)w=!0,j||(j=!0,X());else{var Q=s(g);Q!==null&&U(N,Q.startTime-z)}}var j=!1,D=-1,M=5,_=-1;function L(){return E?!0:!(e.unstable_now()-_<M)}function q(){if(E=!1,j){var z=e.unstable_now();_=z;var Q=!0;try{e:{w=!1,C&&(C=!1,O(D),D=-1),S=!0;var $=x;try{t:{for(A(z),h=s(f);h!==null&&!(h.expirationTime>z&&L());){var K=h.callback;if(typeof K=="function"){h.callback=null,x=h.priorityLevel;var Y=K(h.expirationTime<=z);if(z=e.unstable_now(),typeof Y=="function"){h.callback=Y,A(z),Q=!0;break t}h===s(f)&&i(f),A(z)}else i(f);h=s(f)}if(h!==null)Q=!0;else{var ee=s(g);ee!==null&&U(N,ee.startTime-z),Q=!1}}break e}finally{h=null,x=$,S=!1}Q=void 0}}finally{Q?X():j=!1}}}var X;if(typeof k=="function")X=function(){k(q)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,H=B.port2;B.port1.onmessage=q,X=function(){H.postMessage(null)}}else X=function(){R(q,0)};function U(z,Q){D=R(function(){z(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(z){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var $=x;x=Q;try{return z()}finally{x=$}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(z,Q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=x;x=z;try{return Q()}finally{x=$}},e.unstable_scheduleCallback=function(z,Q,$){var K=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?K+$:K):$=K,z){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=$+Y,z={id:m++,callback:Q,priorityLevel:z,startTime:$,expirationTime:Y,sortIndex:-1},$>K?(z.sortIndex=$,t(g,z),s(f)===null&&z===s(g)&&(C?(O(D),D=-1):C=!0,U(N,$-K))):(z.sortIndex=Y,t(f,z),w||S||(w=!0,j||(j=!0,X()))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var Q=x;return function(){var $=x;x=Q;try{return z.apply(this,arguments)}finally{x=$}}}})(G0)),G0}var cw;function wj(){return cw||(cw=1,Y0.exports=Sj()),Y0.exports}var $0={exports:{}},Er={};var uw;function Ej(){if(uw)return Er;uw=1;var e=Qu();function t(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)h+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var i={d:{f:s,r:function(){throw Error(t(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal"),l=Symbol.for("react.recoverable"),u=Symbol.for("react.optimistic_key");function d(m,h,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:S===u?u:""+S,children:m,containerInfo:h,implementation:x}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Er.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Er.browser=function(m){return{$$typeof:l,_reason:m}},Er.createPortal=function(m,h){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return d(m,h,null,x)},Er.flushSync=function(m){var h=f.T,x=i.p;try{if(f.T=null,i.p=2,m)return m()}finally{f.T=h,i.p=x,i.d.f()}},Er.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(m,h))},Er.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},Er.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var x=h.as,S=g(x,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;x==="style"?i.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:C}):x==="script"&&i.d.X(m,{crossOrigin:S,integrity:w,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Er.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var x=g(h.as,h.crossOrigin);i.d.M(m,{crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0})}}else h==null&&i.d.M(m)},Er.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var x=h.as,S=g(x,h.crossOrigin);i.d.L(m,x,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Er.preloadModule=function(m,h){if(typeof m=="string")if(h){var x=g(h.as,h.crossOrigin);i.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0})}else i.d.m(m)},Er.requestFormReset=function(m){i.d.r(m)},Er.unstable_batchedUpdates=function(m,h){return m(h)},Er.useFormState=function(m,h,x){return f.H.useFormState(m,h,x)},Er.useFormStatus=function(){return f.H.useHostTransitionStatus()},Er.version="19.3.1",Er}var dw;function qR(){if(dw)return $0.exports;dw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$0.exports=Ej(),$0.exports}var fw;function Rj(){if(fw)return du;fw=1;var e=wj(),t=Qu(),s=qR();function i(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){for(var r=n,a=r;a&&!a.alternate;)r=a,(r.flags&4098)!==0&&(n=r.return),a=r.return;for(;r.return;)r=r.return;return r.tag===3?n:null}function u(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(l(n)!==n)throw Error(i(188))}function g(n){var r=n.alternate;if(!r){if(r=l(n),r===null)throw Error(i(188));return r!==n?null:n}for(var a=n,c=r;;){var p=a.return;if(p===null)break;var y=p.alternate;if(y===null){if(c=p.return,c!==null){a=c;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===a)return f(p),n;if(y===c)return f(p),r;y=y.sibling}throw Error(i(188))}if(a.return!==c.return)a=p,c=y;else{for(var T=!1,P=p.child;P;){if(P===a){T=!0,a=p,c=y;break}if(P===c){T=!0,c=p,a=y;break}P=P.sibling}if(!T){for(P=y.child;P;){if(P===a){T=!0,a=y,c=p;break}if(P===c){T=!0,c=y,a=p;break}P=P.sibling}if(!T)throw Error(i(189))}}if(a.alternate!==c)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?n:r}function m(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=m(n),r!==null)return r;n=n.sibling}return null}function h(n,r,a,c,p,y){for(;n!==null;){if((n.tag===5||n.tag===27||n.tag===6)&&a(n,c,p,y)||(n.tag!==22||n.memoizedState===null)&&(r||n.tag!==5&&n.tag!==27)&&h(n.child,r,a,c,p,y))return!0;n=n.sibling}return!1}function x(n){for(n=n.return;n!==null;){if(n.tag===3||n.tag===5||n.tag===27)return n;n=n.return}return null}function S(n){var r=!1;for(n=n.return;n!==null&&(n.tag===4&&(r=!0),!(n.tag===3||n.tag===5||n.tag===27));)n=n.return;return r}function w(n){var r=[null,null],a=x(n);return a===null||C(r,n,a.child,{foundSelf:!1}),r}function C(n,r,a,c){for(;a!==null;){if(a===r)c.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(c.foundSelf)return n[1]=a,!0;n[0]=a}else if((a.tag!==22||a.memoizedState===null)&&C(n,r,a.child,c))return!0;a=a.sibling}return!1}function E(n){switch(n.tag){case 5:case 27:case 6:return n.stateNode;case 3:return n.stateNode.containerInfo;default:throw Error(i(559))}}var R=null,O=null;function k(n,r,a){return n===a?!0:n===r?(R=n,!0):!1}function A(n,r,a){return n===a?(O=n,!1):n===r?(O!==null&&(R=n),!0):!1}function N(n){if(n===null)return null;do n=n===null?null:n.return;while(n&&n.tag!==5&&n.tag!==27&&n.tag!==3);return n||null}function j(n,r,a){for(var c=0,p=n;p;p=a(p))c++;p=0;for(var y=r;y;y=a(y))p++;for(;0<c-p;)n=a(n),c--;for(;0<p-c;)r=a(r),p--;for(;c--;){if(n===r||r!==null&&n===r.alternate)return n;n=a(n),r=a(r)}return null}var D=Object.assign,M=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),U=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),G=Symbol.for("react.legacy_hidden"),oe=Symbol.for("react.memo_cache_sentinel"),I=Symbol.for("react.view_transition"),V=Symbol.for("react.recoverable"),W=Symbol.iterator;function re(n){return n===null||typeof n!="object"?null:(n=W&&n[W]||n["@@iterator"],typeof n=="function"?n:null)}var Ee=Symbol.for("react.client.reference");function le(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Ee?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case q:return"Fragment";case B:return"Profiler";case X:return"StrictMode";case Q:return"Suspense";case $:return"SuspenseList";case ee:return"Activity";case I:return"ViewTransition"}if(typeof n=="object")switch(n.$$typeof){case L:return"Portal";case U:return n.displayName||"Context";case H:return(n._context.displayName||"Context")+".Consumer";case z:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case K:return r=n.displayName||null,r!==null?r:le(n.type)||"Memo";case Y:r=n._payload,n=n._init;try{return le(n(r))}catch{}}return null}var me=Array.isArray,ge=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te={pending:!1,data:null,method:null,action:null},ve=[],Pe=-1;function Oe(n){return{current:n}}function Le(n){0>Pe||(n.current=ve[Pe],ve[Pe]=null,Pe--)}function Ve(n,r){Pe++,ve[Pe]=n.current,n.current=r}var ke=Oe(null),Ue=Oe(null),be=Oe(null),He=Oe(null);function Ze(n,r){switch(Ve(be,r),Ve(Ue,n),Ve(ke,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?hS(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=hS(r),n=pS(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Le(ke),Ve(ke,n)}function ot(){Le(ke),Le(Ue),Le(be)}function de(n){var r=n.memoizedState;r!==null&&(Al._currentValue=r.memoizedState,Ve(He,n)),r=ke.current;var a=pS(r,n.type);r!==a&&(Ve(Ue,n),Ve(ke,a))}function we(n){Ue.current===n&&(Le(ke),Le(Ue)),He.current===n&&(Le(He),Al._currentValue=Te)}var Ge,Me;function De(n){if(Ge===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ge=r&&r[1]||"",Me=-1<a.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+Ge+n+Me}var bt=!1;function dt(n,r){if(!n||bt)return"";bt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(r){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Ye){var se=Ye}Reflect.construct(n,[],Ce)}else{try{Ce.call()}catch(Ye){se=Ye}Ce=!1;try{var fe=Object.getOwnPropertyDescriptor(n.prototype,"props");Object.defineProperty(n.prototype,"props",{configurable:!0,set:function(){throw Error()}}),Ce=!0,new n}finally{Ce&&(fe!==void 0?Object.defineProperty(n.prototype,"props",fe):delete n.prototype.props)}}}else{try{throw Error()}catch(Ye){se=Ye}(Ce=n())&&typeof Ce.catch=="function"&&Ce.catch(function(){})}}catch(Ye){if(Ye&&se&&typeof Ye.stack=="string")return[Ye.stack,se.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),T=y[0],P=y[1];if(T&&P){var Z=T.split(`
@@ -122,7 +122,7 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
122
122
  focus-visible:opacity-100
123
123
  data-popup-open:opacity-100
124
124
  [@media(hover:none)]:opacity-100
125
- `,onKeyDown:g=>{g.stopPropagation()},onMouseDown:g=>{g.stopPropagation()},onPointerDown:g=>{g.stopPropagation()},onTouchStart:g=>{g.stopPropagation()}}),children:v.jsx(Wv,{})}),v.jsx(qo,{align:"end",className:"w-40",children:v.jsx(jR,{Item:fc,onDelete:i,onEdit:t})})]})]}),v.jsx(Cg,{children:v.jsx(jR,{Item:Tg,onDelete:i,onEdit:t})})]})}function jR({Item:e,onEdit:t,onDelete:s}){const{t:i}=pt();return v.jsxs(v.Fragment,{children:[v.jsxs(e,{onClick:t,children:[v.jsx(ZT,{}),v.jsx("span",{children:i("instructions.edit")})]}),v.jsxs(e,{variant:"destructive",onClick:s,children:[v.jsx(rb,{}),v.jsx("span",{children:i("instructions.delete")})]})]})}function lM({className:e,...t}){return v.jsx("label",{"data-slot":"label",className:Fe("flex items-center gap-2 text-xs/relaxed leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Wi({children:e,className:t,...s}){return v.jsxs(lM,{className:Fe("gap-1",t),...s,children:[e,v.jsx("span",{"aria-hidden":"true",className:"text-destructive",children:"*"})]})}function Ri({...e}){return v.jsx(mA,{"data-slot":"dialog",...e})}function V9({...e}){return v.jsx(gA,{"data-slot":"dialog-portal",...e})}function kd({...e}){return v.jsx(pg,{"data-slot":"dialog-close",...e})}function K9({className:e,...t}){return v.jsx(dA,{"data-slot":"dialog-overlay",className:Fe("fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Ci({className:e,children:t,showCloseButton:s=!0,...i}){return v.jsxs(V9,{children:[v.jsx(K9,{}),v.jsxs(pA,{"data-slot":"dialog-content",className:Fe("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[t,s&&v.jsxs(pg,{"data-slot":"dialog-close",render:v.jsx(nt,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[v.jsx(ta,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Js({className:e,...t}){return v.jsx("div",{"data-slot":"dialog-header",className:Fe("flex flex-col gap-1",e),...t})}function bi({className:e,showCloseButton:t=!1,children:s,...i}){return v.jsxs("div",{"data-slot":"dialog-footer",className:Fe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...i,children:[s,t&&v.jsx(pg,{render:v.jsx(nt,{variant:"outline"}),children:"Close"})]})}function Ws({className:e,...t}){return v.jsx(yA,{"data-slot":"dialog-title",className:Fe("font-heading text-sm font-medium",e),...t})}function xi({className:e,...t}){return v.jsx(fA,{"data-slot":"dialog-description",className:Fe("text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}const Xb="/api/instructions";class cM extends Error{constructor(t,s){super(s),this.code=t,this.name="InstructionApiError"}code}function q9(e){return Zb(Xb,{signal:e})}function Y9(e){return Zb(Xb,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}function G9(e,t){return Zb(uM(e),{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async function $9(e){const t=await fetch(uM(e),{method:"DELETE"});if(t.ok)return;const s=await dM(t);throw new cM(s.code,s.message)}async function Zb(e,t){const s=await fetch(e,t);if(!s.ok){const i=await dM(s);throw new cM(i.code,i.message)}return s.json()}function uM(e){return`${Xb}/${encodeURIComponent(e)}`}async function dM(e){try{const t=await e.json();return{code:t.error?.code??"INSTRUCTION_REQUEST_FAILED",message:t.error?.message??`Request failed with status ${e.status}`}}catch{return{code:"INSTRUCTION_REQUEST_FAILED",message:`Request failed with status ${e.status}`}}}const $u=["instructions"];function Q9(){const e=na({queryKey:$u,queryFn:({signal:t})=>q9(t),retry:!1});return{instructions:e.data??[],isLoading:e.isPending,isError:e.isError&&e.data===void 0,retry:e.refetch}}const X9="modulepreload",Z9=function(e){return"/"+e},IR={},J9=function(t,s,i){let o=Promise.resolve();if(s&&s.length>0){let f=function(g){return Promise.all(g.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=f(s.map(g=>{if(g=Z9(g),g in IR)return;IR[g]=!0;const m=g.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${h}`))return;const x=document.createElement("link");if(x.rel=m?"stylesheet":X9,m||(x.as="script"),x.crossOrigin="",x.href=g,d&&x.setAttribute("nonce",d),document.head.appendChild(x),m)return new Promise((S,w)=>{x.addEventListener("load",S),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${g}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})},fM=()=>J9(()=>import("./code-editor-DBM7ibgv.js").then(e=>e.j2),__vite__mapDeps([0,1]));function Ty(){fM()}const W9=b.lazy(async()=>({default:(await fM()).CodeEditor}));function hM(e){const{t}=pt();return v.jsx(b.Suspense,{fallback:v.jsx("div",{style:{height:e.height??"16rem"},className:`
125
+ `,onKeyDown:g=>{g.stopPropagation()},onMouseDown:g=>{g.stopPropagation()},onPointerDown:g=>{g.stopPropagation()},onTouchStart:g=>{g.stopPropagation()}}),children:v.jsx(Wv,{})}),v.jsx(qo,{align:"end",className:"w-40",children:v.jsx(jR,{Item:fc,onDelete:i,onEdit:t})})]})]}),v.jsx(Cg,{children:v.jsx(jR,{Item:Tg,onDelete:i,onEdit:t})})]})}function jR({Item:e,onEdit:t,onDelete:s}){const{t:i}=pt();return v.jsxs(v.Fragment,{children:[v.jsxs(e,{onClick:t,children:[v.jsx(ZT,{}),v.jsx("span",{children:i("instructions.edit")})]}),v.jsxs(e,{variant:"destructive",onClick:s,children:[v.jsx(rb,{}),v.jsx("span",{children:i("instructions.delete")})]})]})}function lM({className:e,...t}){return v.jsx("label",{"data-slot":"label",className:Fe("flex items-center gap-2 text-xs/relaxed leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Wi({children:e,className:t,...s}){return v.jsxs(lM,{className:Fe("gap-1",t),...s,children:[e,v.jsx("span",{"aria-hidden":"true",className:"text-destructive",children:"*"})]})}function Ri({...e}){return v.jsx(mA,{"data-slot":"dialog",...e})}function V9({...e}){return v.jsx(gA,{"data-slot":"dialog-portal",...e})}function kd({...e}){return v.jsx(pg,{"data-slot":"dialog-close",...e})}function K9({className:e,...t}){return v.jsx(dA,{"data-slot":"dialog-overlay",className:Fe("fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Ci({className:e,children:t,showCloseButton:s=!0,...i}){return v.jsxs(V9,{children:[v.jsx(K9,{}),v.jsxs(pA,{"data-slot":"dialog-content",className:Fe("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[t,s&&v.jsxs(pg,{"data-slot":"dialog-close",render:v.jsx(nt,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[v.jsx(ta,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Js({className:e,...t}){return v.jsx("div",{"data-slot":"dialog-header",className:Fe("flex flex-col gap-1",e),...t})}function bi({className:e,showCloseButton:t=!1,children:s,...i}){return v.jsxs("div",{"data-slot":"dialog-footer",className:Fe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...i,children:[s,t&&v.jsx(pg,{render:v.jsx(nt,{variant:"outline"}),children:"Close"})]})}function Ws({className:e,...t}){return v.jsx(yA,{"data-slot":"dialog-title",className:Fe("font-heading text-sm font-medium",e),...t})}function xi({className:e,...t}){return v.jsx(fA,{"data-slot":"dialog-description",className:Fe("text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}const Xb="/api/instructions";class cM extends Error{constructor(t,s){super(s),this.code=t,this.name="InstructionApiError"}code}function q9(e){return Zb(Xb,{signal:e})}function Y9(e){return Zb(Xb,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}function G9(e,t){return Zb(uM(e),{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async function $9(e){const t=await fetch(uM(e),{method:"DELETE"});if(t.ok)return;const s=await dM(t);throw new cM(s.code,s.message)}async function Zb(e,t){const s=await fetch(e,t);if(!s.ok){const i=await dM(s);throw new cM(i.code,i.message)}return s.json()}function uM(e){return`${Xb}/${encodeURIComponent(e)}`}async function dM(e){try{const t=await e.json();return{code:t.error?.code??"INSTRUCTION_REQUEST_FAILED",message:t.error?.message??`Request failed with status ${e.status}`}}catch{return{code:"INSTRUCTION_REQUEST_FAILED",message:`Request failed with status ${e.status}`}}}const $u=["instructions"];function Q9(){const e=na({queryKey:$u,queryFn:({signal:t})=>q9(t),retry:!1});return{instructions:e.data??[],isLoading:e.isPending,isError:e.isError&&e.data===void 0,retry:e.refetch}}const X9="modulepreload",Z9=function(e){return"/"+e},IR={},J9=function(t,s,i){let o=Promise.resolve();if(s&&s.length>0){let f=function(g){return Promise.all(g.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=f(s.map(g=>{if(g=Z9(g),g in IR)return;IR[g]=!0;const m=g.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${h}`))return;const x=document.createElement("link");if(x.rel=m?"stylesheet":X9,m||(x.as="script"),x.crossOrigin="",x.href=g,d&&x.setAttribute("nonce",d),document.head.appendChild(x),m)return new Promise((S,w)=>{x.addEventListener("load",S),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${g}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})},fM=()=>J9(()=>import("./code-editor-CjmqDtZQ.js").then(e=>e.j2),__vite__mapDeps([0,1]));function Ty(){fM()}const W9=b.lazy(async()=>({default:(await fM()).CodeEditor}));function hM(e){const{t}=pt();return v.jsx(b.Suspense,{fallback:v.jsx("div",{style:{height:e.height??"16rem"},className:`
126
126
  flex items-center justify-center text-xs text-muted-foreground
127
127
  `,children:t("editor.loading")}),children:v.jsx(W9,{...e})})}const eB="16rem";function PR({instruction:e,onClose:t}){const{t:s}=pt(),i=jr(),o=b.useId(),l=b.useId(),u=e!==void 0,[d,f]=b.useState(e?.name??""),[g,m]=b.useState(e?.content??""),h=er({mutationFn:k=>e?G9(e.id,k):Y9(k),onSuccess:k=>{i.setQueryData($u,A=>[...(A??[]).filter(N=>N.id!==k.id),k].toSorted((N,j)=>j.updatedAt-N.updatedAt)),i.invalidateQueries({queryKey:$u}),Kt.success(s(u?"instructions.updated":"instructions.created")),t()},onError:()=>{Kt.error(s(u?"instructions.updateError":"instructions.error"))}}),x=h.isPending,S=!!(d.trim()&&g.trim())&&!x,w=u?"instructions.editTitle":"instructions.createTitle",C=u?"instructions.updating":"instructions.creating",E=u?"instructions.updateSave":"instructions.save",R=u?nb:lc;function O(){x||t()}return v.jsx(Ri,{open:!0,onOpenChange:k=>{k||O()},children:v.jsxs(Ci,{showCloseButton:!1,className:`
128
128
  grid max-h-[calc(100vh-2rem)] grid-rows-[auto_minmax(0,1fr)_auto]
@@ -179,10 +179,10 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
179
179
  `})}})})]}),v.jsxs(bi,{children:[v.jsx(nt,{type:"button",variant:"ghost",disabled:o.isPending,onClick:l,children:s("common.cancel")}),v.jsxs(nt,{type:"button",variant:"destructive",disabled:o.isPending,onClick:()=>o.mutate(),children:[o.isPending&&v.jsx(Vr,{className:"animate-spin"}),v.jsx("span",{children:s("skills.delete")})]})]})]})})}function ZB({skill:e,onClose:t}){const{t:s}=pt();return v.jsx(Ri,{open:!0,onOpenChange:i=>{i||t()},children:v.jsxs(Ci,{children:[v.jsxs(Js,{children:[v.jsx(Ws,{className:"pr-6 leading-relaxed",children:v.jsx(Wp,{i18nKey:"skills.assignDialogTitle",values:{name:e.name},components:{skillName:v.jsx("code",{className:`
180
180
  rounded-sm bg-muted px-1 py-0.5 font-mono text-sm
181
181
  wrap-anywhere
182
- `})}})}),v.jsx(xi,{children:s("skills.assignDescription")})]}),v.jsx(CM,{name:e.name})]})})}function JB(e,t,s,i){return s.flatMap(o=>t.filter(l=>(e.find(u=>u.name===l)?.agentIds.includes(o)??!1)!==i).map(l=>({name:l,agentId:o,isAssigned:i})))}function WB({names:e,onAssigned:t}){const{t:s}=pt(),i=jr(),[o,l]=b.useState(!1),[u,d]=b.useState([]),f=rg({mutationKey:["skill-assignment"]})>0,g=na({queryKey:Iu,queryFn:({signal:S})=>pM(S),enabled:o}),m=er({mutationKey:mM,mutationFn:async S=>{let w=0;const C=[];for(const{name:E,agentId:R,isAssigned:O}of S)try{await gM(E,R,O),w+=1}catch(k){C.push(k)}return{completed:w,errors:C}},onSuccess:async({completed:S,errors:w})=>{if(await i.invalidateQueries({queryKey:Iu}),w.length>0){Kt.error(s("skills.batchAssignPartial",{completed:S,failed:w.length}),{description:s(w.some(C=>C instanceof Ga&&C.code==="SKILL_LINK_CONFLICT")?"skills.linkConflict":"skills.assignmentError")});return}Kt.success(s("skills.batchAssigned")),l(!1),t()}}),h=!g.isSuccess||u.length===0||m.isPending||f;function x(S){h||m.mutate(JB(g.data.skills,e,u,S))}return v.jsxs(ub,{open:o,onOpenChange:S=>{m.isPending||(l(S),S||d([]))},children:[v.jsxs(Ik,{render:v.jsx(nt,{variant:"outline",disabled:f||m.isPending}),children:[v.jsx(uk,{}),v.jsx("span",{children:s("skills.batch")}),v.jsx("span",{className:"text-muted-foreground tabular-nums",children:e.length})]}),v.jsx(db,{align:"end","aria-label":s("skills.batch"),children:v.jsxs("div",{className:"flex flex-col gap-4","aria-busy":m.isPending,children:[v.jsxs("div",{className:"flex flex-col gap-2",children:[g.isPending&&v.jsx(fr,{className:"h-16 w-full"}),g.isError&&v.jsxs("div",{role:"alert",className:"space-y-2",children:[v.jsx("p",{className:"text-xs text-muted-foreground",children:s("skills.assignmentError")}),v.jsx(nt,{type:"button",variant:"outline",disabled:g.isFetching,onClick:()=>{g.refetch()},children:s("common.retry")})]}),g.isSuccess&&g.data.agents.length===0&&v.jsx("p",{className:"text-xs text-muted-foreground",children:s("skills.noAgents")}),g.isSuccess&&v.jsx(RM,{agents:g.data.agents,value:u,onValueChange:d,label:s("skills.batch"),disabled:m.isPending,shouldShowNames:!0})]}),v.jsxs("div",{className:"flex justify-end gap-2",children:[v.jsxs(nt,{type:"button",variant:"outline",disabled:h,onClick:()=>x(!1),children:[m.isPending&&!m.variables[0]?.isAssigned&&v.jsx(Vr,{className:"animate-spin"}),v.jsx("span",{children:s("skills.unassign")})]}),v.jsxs(nt,{type:"button",disabled:h,onClick:()=>x(!0),children:[m.isPending&&m.variables[0]?.isAssigned&&v.jsx(Vr,{className:"animate-spin"}),v.jsx("span",{children:s("skills.assign")})]})]})]})})]})}function eV(){const{t:e}=pt(),[t,s]=b.useState(!1),[i,o]=b.useState(null),[l,u]=b.useState(null),[d,f]=b.useState(null),[g,m]=b.useState([]),h=rg({mutationKey:mM})>0,x=na({queryKey:Od,queryFn:({signal:E})=>oB(E)}),S=x.isSuccess?x.data.filter(E=>g.includes(E.name)):[],w=x.isSuccess&&x.data.length>0&&S.length===x.data.length,C=e(w?"skills.deselectAll":"skills.selectAll");return v.jsxs(v.Fragment,{children:[v.jsxs(RA,{children:[v.jsxs(nt,{type:"button",variant:"outline",className:"max-sm:size-7 max-sm:p-0",title:C,"aria-pressed":w,disabled:h||!x.isSuccess||x.data.length===0,onClick:()=>{x.isSuccess&&m(w?[]:x.data.map(E=>E.name))},children:[v.jsx(SL,{}),v.jsx("span",{className:`
182
+ `})}})}),v.jsx(xi,{children:s("skills.assignDescription")})]}),v.jsx(CM,{name:e.name})]})})}function JB(e,t,s,i){return s.flatMap(o=>t.filter(l=>(e.find(u=>u.name===l)?.agentIds.includes(o)??!1)!==i).map(l=>({name:l,agentId:o,isAssigned:i})))}function WB({names:e,onAssigned:t}){const{t:s}=pt(),i=jr(),[o,l]=b.useState(!1),[u,d]=b.useState([]),f=rg({mutationKey:["skill-assignment"]})>0,g=na({queryKey:Iu,queryFn:({signal:S})=>pM(S),enabled:o}),m=er({mutationKey:mM,mutationFn:async S=>{let w=0;const C=[];for(const{name:E,agentId:R,isAssigned:O}of S)try{await gM(E,R,O),w+=1}catch(k){C.push(k)}return{completed:w,errors:C}},onSuccess:async({completed:S,errors:w})=>{if(await i.invalidateQueries({queryKey:Iu}),w.length>0){Kt.error(s("skills.batchAssignPartial",{completed:S,failed:w.length}),{description:s(w.some(C=>C instanceof Ga&&C.code==="SKILL_LINK_CONFLICT")?"skills.linkConflict":"skills.assignmentError")});return}Kt.success(s("skills.batchAssigned")),l(!1),t()}}),h=!g.isSuccess||u.length===0||m.isPending||f;function x(S){h||m.mutate(JB(g.data.skills,e,u,S))}return v.jsxs(ub,{open:o,onOpenChange:S=>{m.isPending||(l(S),S||d([]))},children:[v.jsxs(Ik,{render:v.jsx(nt,{variant:"outline",disabled:f||m.isPending}),children:[v.jsx(uk,{}),v.jsx("span",{children:s("skills.batch")}),v.jsx("span",{className:"text-muted-foreground tabular-nums",children:e.length})]}),v.jsx(db,{align:"end","aria-label":s("skills.batch"),children:v.jsxs("div",{className:"flex flex-col gap-4","aria-busy":m.isPending,children:[v.jsxs("div",{className:"flex flex-col gap-2",children:[g.isPending&&v.jsx(fr,{className:"h-16 w-full"}),g.isError&&v.jsxs("div",{role:"alert",className:"space-y-2",children:[v.jsx("p",{className:"text-xs text-muted-foreground",children:s("skills.assignmentError")}),v.jsx(nt,{type:"button",variant:"outline",disabled:g.isFetching,onClick:()=>{g.refetch()},children:s("common.retry")})]}),g.isSuccess&&g.data.agents.length===0&&v.jsx("p",{className:"text-xs text-muted-foreground",children:s("skills.noAgents")}),g.isSuccess&&v.jsx(RM,{agents:g.data.agents,value:u,onValueChange:d,label:s("skills.batch"),disabled:m.isPending,shouldShowNames:!0})]}),v.jsxs("div",{className:"flex justify-end gap-2",children:[v.jsxs(nt,{type:"button",variant:"outline",disabled:h,onClick:()=>x(!1),children:[m.isPending&&!m.variables[0]?.isAssigned&&v.jsx(Vr,{className:"animate-spin"}),v.jsx("span",{children:s("skills.unassign")})]}),v.jsxs(nt,{type:"button",disabled:h,onClick:()=>x(!0),children:[m.isPending&&m.variables[0]?.isAssigned&&v.jsx(Vr,{className:"animate-spin"}),v.jsx("span",{children:s("skills.assign")})]})]})]})})]})}function eV(){const{t:e}=pt(),[t,s]=b.useState(!1),[i,o]=b.useState(null),[l,u]=b.useState(null),[d,f]=b.useState(null),[g,m]=b.useState([]),h=rg({mutationKey:mM})>0,x=na({queryKey:Od,queryFn:({signal:E})=>oB(E)}),S=x.isSuccess?x.data.filter(E=>g.includes(E.name)):[],w=x.isSuccess&&x.data.length>0&&S.length===x.data.length,C=e(w?"skills.deselectAll":"skills.selectAll");return v.jsxs(v.Fragment,{children:[v.jsxs(RA,{children:[S.length>0&&v.jsx(WB,{names:S.map(E=>E.name),onAssigned:()=>m([])}),v.jsxs(nt,{type:"button",variant:"outline",className:"max-sm:size-7 max-sm:p-0",title:C,"aria-pressed":w,disabled:h||!x.isSuccess||x.data.length===0,onClick:()=>{x.isSuccess&&m(w?[]:x.data.map(E=>E.name))},children:[v.jsx(SL,{}),v.jsx("span",{className:`
183
183
  sr-only
184
184
  sm:not-sr-only
185
- `,children:C})]}),S.length>0&&v.jsx(WB,{names:S.map(E=>E.name),onAssigned:()=>m([])}),v.jsx(OB,{onCreateManually:()=>{s(!0)}})]}),v.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto p-4",children:[x.isPending&&v.jsx(fr,{className:"h-16 w-full"}),x.isError&&v.jsxs("div",{role:"alert",className:"flex flex-1 flex-col items-center justify-center",children:[v.jsx(Gu,{icon:By,title:e("skills.loadError"),className:"flex-none"}),v.jsx(nt,{variant:"outline",onClick:()=>{x.refetch()},children:e("common.retry")})]}),x.isSuccess&&x.data.length===0&&v.jsx(Gu,{icon:By,title:e("skills.emptyTitle"),description:e("skills.emptyDescription")}),x.isSuccess&&x.data.length>0&&v.jsx("div",{role:"list",children:x.data.map(E=>v.jsx(QB,{skill:E,isSelected:g.includes(E.name),selectionDisabled:h,onSelectedChange:R=>{m(O=>R?[...O,E.name]:O.filter(k=>k!==E.name))},onEdit:()=>o(E),onDelete:()=>u(E),onAssign:()=>f(E)},E.name))})]}),t&&v.jsx(pv,{onClose:()=>{s(!1)}}),i&&v.jsx(pv,{skill:i,onClose:()=>o(null)}),l&&v.jsx(XB,{skill:l,onClose:()=>u(null)}),d&&v.jsx(ZB,{skill:d,onClose:()=>f(null)})]})}function up(e,t){for(const s of e){if(s.path===t)return s;if(!s.children)continue;const i=up(s.children,t);if(i)return i}}function dp(e,t,s){return e.flatMap(i=>{if(i.path===t){const o=s(i);return o?[o]:[]}return i.children?[{...i,children:dp(i.children,t,s)}]:[i]})}function tV(e,t,s){return t?dp(e,t,i=>i.children?{...i,children:[...i.children,s]}:i):[...e,s]}function nV({files:e,parent:t,kind:s,onCreate:i,onCancel:o}){const{t:l}=pt(),[u,d]=b.useState(""),[f,g]=b.useState(!1),m=b.useRef(null),h=b.useRef(!1),x=b.useId(),S=u.trim(),w=t?`${t}/${S}`:S,C=EB(S)&&!S.includes("/"),E=S!==""&&up(e,w)!==void 0,R=E?l("skills.fileConflict"):f&&!C?l("skills.invalidEntryName"):null;b.useEffect(()=>{const k=requestAnimationFrame(()=>m.current?.focus());return()=>cancelAnimationFrame(k)},[]);const O=()=>{h.current||(g(!0),!(!C||E)&&(h.current=!0,i(s==="directory"?{path:w,children:[]}:{path:w,content:""})))};return v.jsxs("form",{onSubmit:k=>{k.preventDefault(),O()},onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),k.stopPropagation(),h.current=!0,o())},children:[v.jsxs("div",{className:`
185
+ `,children:C})]}),v.jsx(OB,{onCreateManually:()=>{s(!0)}})]}),v.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto p-4",children:[x.isPending&&v.jsx(fr,{className:"h-16 w-full"}),x.isError&&v.jsxs("div",{role:"alert",className:"flex flex-1 flex-col items-center justify-center",children:[v.jsx(Gu,{icon:By,title:e("skills.loadError"),className:"flex-none"}),v.jsx(nt,{variant:"outline",onClick:()=>{x.refetch()},children:e("common.retry")})]}),x.isSuccess&&x.data.length===0&&v.jsx(Gu,{icon:By,title:e("skills.emptyTitle"),description:e("skills.emptyDescription")}),x.isSuccess&&x.data.length>0&&v.jsx("div",{role:"list",children:x.data.map(E=>v.jsx(QB,{skill:E,isSelected:g.includes(E.name),selectionDisabled:h,onSelectedChange:R=>{m(O=>R?[...O,E.name]:O.filter(k=>k!==E.name))},onEdit:()=>o(E),onDelete:()=>u(E),onAssign:()=>f(E)},E.name))})]}),t&&v.jsx(pv,{onClose:()=>{s(!1)}}),i&&v.jsx(pv,{skill:i,onClose:()=>o(null)}),l&&v.jsx(XB,{skill:l,onClose:()=>u(null)}),d&&v.jsx(ZB,{skill:d,onClose:()=>f(null)})]})}function up(e,t){for(const s of e){if(s.path===t)return s;if(!s.children)continue;const i=up(s.children,t);if(i)return i}}function dp(e,t,s){return e.flatMap(i=>{if(i.path===t){const o=s(i);return o?[o]:[]}return i.children?[{...i,children:dp(i.children,t,s)}]:[i]})}function tV(e,t,s){return t?dp(e,t,i=>i.children?{...i,children:[...i.children,s]}:i):[...e,s]}function nV({files:e,parent:t,kind:s,onCreate:i,onCancel:o}){const{t:l}=pt(),[u,d]=b.useState(""),[f,g]=b.useState(!1),m=b.useRef(null),h=b.useRef(!1),x=b.useId(),S=u.trim(),w=t?`${t}/${S}`:S,C=EB(S)&&!S.includes("/"),E=S!==""&&up(e,w)!==void 0,R=E?l("skills.fileConflict"):f&&!C?l("skills.invalidEntryName"):null;b.useEffect(()=>{const k=requestAnimationFrame(()=>m.current?.focus());return()=>cancelAnimationFrame(k)},[]);const O=()=>{h.current||(g(!0),!(!C||E)&&(h.current=!0,i(s==="directory"?{path:w,children:[]}:{path:w,content:""})))};return v.jsxs("form",{onSubmit:k=>{k.preventDefault(),O()},onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),k.stopPropagation(),h.current=!0,o())},children:[v.jsxs("div",{className:`
186
186
  flex h-7 min-w-0 items-center gap-1.5 border-x border-transparent pl-2
187
187
  `,children:[v.jsx("span",{className:"size-3 shrink-0"}),s==="directory"?v.jsx(zT,{className:"size-3.5 shrink-0"}):v.jsx(eb,{className:"size-3.5 shrink-0"}),v.jsx(Sd,{ref:m,required:!0,"aria-label":l(s==="directory"?"skills.newFolder":"skills.newFile"),"aria-invalid":!!R,"aria-describedby":R?x:void 0,maxLength:255,value:u,className:"min-w-0 flex-1",onKeyDown:k=>{k.key==="Enter"&&k.nativeEvent.isComposing&&k.preventDefault()},onChange:k=>d(k.target.value),onBlur:()=>{S===""&&!h.current?(h.current=!0,o()):O()}})]}),R&&v.jsx("p",{id:x,role:"alert",className:"mt-1 px-2 text-xs text-destructive",children:R})]})}function rV({entry:e,anchor:t,isOpen:s,onOpenChange:i,onConfirm:o}){const{t:l}=pt(),u=b.useId(),d=b.useId();return v.jsx(ub,{open:s,onOpenChange:i,children:v.jsx(db,{anchor:t,align:"start","aria-labelledby":u,"aria-describedby":d,finalFocus:()=>t.current?.querySelector("button")??!1,className:"max-w-[calc(100vw-1.5rem)]",children:v.jsxs("div",{className:"flex flex-col gap-3",children:[v.jsx("h2",{id:u,className:"text-sm font-medium",children:l("skills.delete")}),v.jsx("p",{id:d,className:"text-xs wrap-anywhere text-muted-foreground",children:v.jsx(Wp,{i18nKey:"skills.deleteEntryDescription",values:{path:e.path},components:{entryPath:v.jsx("code",{className:`
188
188
  rounded-sm bg-muted px-1 py-0.5 font-mono wrap-anywhere
@@ -1 +1 @@
1
- import{conf as t,language as e}from"./typescript-DhaCkbV9.js";import"./code-editor-DBM7ibgv.js";import"./index-B1nT-DfA.js";const r=t,n={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,n as language};
1
+ import{conf as t,language as e}from"./typescript-DtwFb6C8.js";import"./code-editor-CjmqDtZQ.js";import"./index-DlOf72U2.js";const r=t,n={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,n as language};