(self.webpackChunk_name_=self.webpackChunk_name_||[]).push([["mode/jsx"],{8112:(t,e,n)=>{!function(t){"use strict";function e(t,e,n,a){this.state=t,this.mode=e,this.depth=n,this.prev=a}function n(a){return new e(t.copyState(a.mode,a.state),a.mode,a.depth,a.prev&&n(a.prev))}t.defineMode("jsx",(function(a,r){var i=t.getMode(a,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),s=t.getMode(a,r&&r.base||"javascript");function o(t){var e=t.tagName;t.tagName=null;var n=i.indent(t,"","");return t.tagName=e,n}function c(n,r){return r.context.mode==i?function(n,r,p){if(2==p.depth)return n.match(/^.*?\*\//)?p.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){i.skipAttribute(p.state);var u=o(p.state),d=p.state.context;if(d&&n.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?u-=a.indentUnit:p.prev.state.lexical&&(u=p.prev.state.lexical.indented)}else 1==p.depth&&(u+=a.indentUnit);return r.context=new e(t.startState(s,u),s,0,r.context),null}if(1==p.depth){if("<"==n.peek())return i.skipAttribute(p.state),r.context=new e(t.startState(i,o(p.state)),i,0,r.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return p.depth=2,c(n,r)}var x,f=i.token(n,p.state),l=n.current();return/\btag\b/.test(f)?/>$/.test(l)?p.state.context?p.depth=0:r.context=r.context.prev:/^</.test(l)&&(p.depth=1):!f&&(x=l.indexOf("{"))>-1&&n.backUp(l.length-x),f}(n,r,r.context):function(n,a,r){if("<"==n.peek()&&s.expressionAllowed(n,r.state))return s.skipExpression(r.state),a.context=new e(t.startState(i,s.indent(r.state,"","")),i,0,a.context),null;var o=s.token(n,r.state);if(!o&&null!=r.depth){var c=n.current();"{"==c?r.depth++:"}"==c&&0==--r.depth&&(a.context=a.context.prev)}return o}(n,r,r.context)}return{startState:function(){return{context:new e(t.startState(s),s)}},copyState:function(t){return{context:n(t.context)}},token:c,indent:function(t,e,n){return t.context.mode.indent(t.context.state,e,n)},innerMode:function(t){return t.context}}}),"xml","javascript"),t.defineMIME("text/jsx","jsx"),t.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(7750),n(9868),n(6406))}}]);
//# sourceMappingURL=jsx.js.map