import{t as e}from"./rolldown-runtime-iuO8RvI4.js";import{t as s}from"./ca20d785d-UFpxuBvv.js";var r=e((e,r)=>{var o=s();function a(e){e.register(o),function(e){var s=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(e,o){for(var a=0;a<o;a++)e=e.replace(/<self>/g,function(){return"(?:"+e+")"});return e.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+s+")")}var a=o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),c=o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),t=o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),u=o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),n=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,l=/(?!\d)[^\s>\/=$<%]+/.source+n+/\s*\/?>/.source,i=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+n+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+l+"|"+o(/<\1/.source+n+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+l+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+l+")";e.languages.cshtml=e.languages.extend("markup",{});var g={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:e.languages.insertBefore("csharp","string",{html:{pattern:RegExp(i),greedy:!0,inside:e.languages.cshtml}},{csharp:e.languages.extend("csharp",{})})};e.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[t,/(?:code|functions)\s*/.source+t,/(?:for|foreach|lock|switch|using|while)\s*/.source+a+/\s*/.source+t,/do\s*/.source+t+/\s*while\s*/.source+a+/(?:\s*;)?/.source,/try\s*/.source+t+/\s*catch\s*/.source+a+/\s*/.source+t+/\s*finally\s*/.source+t,/if\s*/.source+a+/\s*/.source+t+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+a+")?"+/\s*/.source+t+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:g}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:g}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|"+a+"|"+c+"|"+u+a+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:g}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),e.languages.razor=e.languages.cshtml}(e)}r.exports=a,a.displayName="cshtml",a.aliases=["razor"]});export default r();