import{g as b}from"./index-CVJu9AGF.js";import{e as w,a as E}from"./index.CIHrN2LG.entry.js";import{a as S}from"./javascript-CSFJBdTd.js";function O(l,v){for(var i=0;i<v.length;i++){const s=v[i];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in l)){const r=Object.getOwnPropertyDescriptor(s,f);r&&Object.defineProperty(l,f,r.get?r:{enumerable:!0,get:()=>s[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(l,v){(function(i){i(w,E(),S)})(function(i){function s(r,c,o,a){this.state=r,this.mode=c,this.depth=o,this.prev=a}function f(r){return new s(i.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&f(r.prev))}i.defineMode("jsx",function(r,c){var o=i.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=i.getMode(r,c&&c.base||"javascript");function j(t){var n=t.tagName;t.tagName=null;var e=o.indent(t,"","");return t.tagName=n,e}function g(t,n){return n.context.mode==o?x(t,n,n.context):y(t,n,n.context)}function x(t,n,e){if(e.depth==2)return t.match(/^.*?\*\//)?e.depth=1:t.skipToEnd(),"comment";if(t.peek()=="{"){o.skipAttribute(e.state);var u=j(e.state),p=e.state.context;if(p&&t.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?u-=r.indentUnit:e.prev.state.lexical&&(u=e.prev.state.lexical.indented)}else e.depth==1&&(u+=r.indentUnit);return n.context=new s(i.startState(a,u),a,0,n.context),null}if(e.depth==1){if(t.peek()=="<")return o.skipAttribute(e.state),n.context=new s(i.startState(o,j(e.state)),o,0,n.context),null;if(t.match("//"))return t.skipToEnd(),"comment";if(t.match("/*"))return e.depth=2,g(t,n)}var h=o.token(t,e.state),d=t.current(),m;return/\btag\b/.test(h)?/>$/.test(d)?e.state.context?e.depth=0:n.context=n.context.prev:/^</.test(d)&&(e.depth=1):!h&&(m=d.indexOf("{"))>-1&&t.backUp(d.length-m),h}function y(t,n,e){if(t.peek()=="<"&&!t.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&a.expressionAllowed(t,e.state))return n.context=new s(i.startState(o,a.indent(e.state,"","")),o,0,n.context),a.skipExpression(e.state),null;var u=a.token(t,e.state);if(!u&&e.depth!=null){var p=t.current();p=="{"?e.depth++:p=="}"&&--e.depth==0&&(n.context=n.context.prev)}return u}return{startState:function(){return{context:new s(i.startState(a),a)}},copyState:function(t){return{context:f(t.context)}},token:g,indent:function(t,n,e){return t.context.mode.indent(t.context.state,n,e)},innerMode:function(t){return t.context}}},"xml","javascript"),i.defineMIME("text/jsx","jsx"),i.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var k=T.exports;const N=b(k),I=O({__proto__:null,default:N},[k]);export{I as j};
