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