chunk-7a6f72e8.54989423.js 21 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7a6f72e8"],{"0f7c":function(e,t,r){},2373:function(e,t,r){},3793:function(e,t,r){"use strict";r.r(t);var n=r("a34a"),a=r.n(n),i=r("8593"),o=r("56b3"),s=r.n(o);function c(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){c(i,n,a,o,s,"next",e)}function s(e){c(i,n,a,o,s,"throw",e)}o(void 0)}))}}r("0f7c"),r("f9d4");var l={name:"opendir",data:function(){return{code:"",modals:!1,spinShow:!1,loading:!1,tabList:[],columns4:[{title:"文件/文件夹名",slot:"filename",minWidth:150,back:"返回上级"},{title:"文件/文件夹路径",key:"real_path",minWidth:150},{title:"文件/文件夹大小",key:"size",minWidth:100},{title:"是否可写",slot:"isWritable",minWidth:100},{title:"更新时间",key:"mtime",minWidth:150},{title:"Action",slot:"action",minWidth:150}],formItem:{dir:"",superior:0,filedir:""},rows:{},pathname:"",title:""}},mounted:function(){this.editor=s.a.fromTextArea(this.$refs.mycode,{value:"http://www.crmeb.com",mode:"text/javascript",theme:"ambiance",indentUnit:4,smartIndent:!0,tabSize:4,readOnly:!1,showCursorWhenSelecting:!0,lineNumbers:!0})},created:function(){this.getList()},methods:{currentChange:function(e){e.isDir?this.open(e):this.edit(e)},getList:function(){var e=this;this.loading=!0,Object(i.K)(this.formItem).then(function(){var t=u(a.a.mark((function t(r){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.data,e.tabList=n.list,e.dir=n.dir,e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},goBack:function(){this.formItem={dir:this.dir,superior:1,filedir:""},this.getList()},open:function(e){this.rows=e,this.formItem={dir:e.path,superior:0,filedir:e.filename},this.getList()},edit:function(e){var t=this;this.modals=!0,this.spinShow=!0,this.pathname=e.pathname,this.title=e.filename,Object(i.L)(e.pathname).then(function(){var e=u(a.a.mark((function e(r){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.code=n.content,t.editor.setValue(t.code),t.spinShow=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))},savefile:function(){var e=this,t={comment:this.editor.getValue(),filepath:this.pathname};Object(i.R)(t).then(function(){var t=u(a.a.mark((function t(r){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg),e.modals=!1;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},undofile:function(){this.editor.undo()},redofile:function(){this.editor.redo()},refreshfile:function(){this.editor.refresh()}}},f=(r("e9e1"),r("2877")),d=Object(f.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"i-layout-page-header"},[r("PageHeader",{staticClass:"product_tabs",attrs:{title:"文件管理","hidden-breadcrumb":""}})],1),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("div",{staticClass:"backs",on:{click:e.goBack}},[r("Icon",{staticClass:"mr5",attrs:{type:"ios-folder-outline"}}),r("span",[e._v("返回上级")])],1),r("Table",{ref:"selection",staticClass:"mt20",attrs:{columns:e.columns4,data:e.tabList,loading:e.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},on:{"on-current-change":e.currentChange},scopedSlots:e._u([{key:"filename",fn:function(t){var n=t.row;return[n.isDir?r("Icon",{staticClass:"mr5",attrs:{type:"ios-folder-outline"}}):r("Icon",{staticClass:"mr5",attrs:{type:"ios-document-outline"}}),r("span",[e._v(e._s(n.filename))])]}},{key:"isWritable",fn:function(t){var n=t.row;return[r("span",{domProps:{textContent:e._s(n.isWritable?"是":"否")}})]}},{key:"action",fn:function(t){var n=t.row;return t.index,[n.isDir?r("a",{on:{click:function(t){return e.open(n)}}},[e._v("打开")]):r("a",{on:{click:function(t){return e.edit(n)}}},[e._v("编辑")])]}}])})],1),r("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:e.title,"mask-closable":!1,width:"900"},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[r("Button",{staticClass:"mr5 mb15",attrs:{type:"primary",id:"savefile"},on:{click:e.savefile}},[e._v("保存")]),r("Button",{staticClass:"mr5 mb15",attrs:{id:"undo"},on:{click:e.undofile}},[e._v("撤销")]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],ref:"mycode",staticClass:"codesql public_text",domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}}),e.spinShow?r("Spin",{attrs:{size:"large",fix:""}}):e._e()],1)],1)}),[],!1,null,"25f340b3",null);t.default=d.exports},e9e1:function(e,t,r){"use strict";var n=r("2373");r.n(n).a},f9d4:function(e,t,r){!function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,a,i=t.indentUnit,o=r.statementIndent,s=r.jsonld,c=r.json||s,u=r.typescript,l=r.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),d=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e,t,r){return n=e,a=r,t}function v(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,a=!1;if(s&&"@"==e.peek()&&e.match(m))return t.tokenize=v,p("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||a);)a=!a&&"\\"==n;return a||(t.tokenize=v),p("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return p("number","number");if("."==n&&e.match(".."))return p("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return p(n);if("="==n&&e.eat(">"))return p("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return p("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),p("number","number");if("/"==n)return e.eat("*")?(t.tokenize=k,k(e,t)):e.eat("/")?(e.skipToEnd(),p("comment","comment")):Re(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),p("regexp","string-2")):(e.eat("="),p("operator","operator",e.current()));if("`"==n)return t.tokenize=h,h(e,t);if("#"==n)return e.skipToEnd(),p("error","error");if("<"==n&&e.match("!--")||"-"==n&&e.match("->"))return e.skipToEnd(),p("comment","comment");if(d.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),p("operator","operator",e.current());if(l.test(n)){e.eatWhile(l);var a=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(a)){var i=f[a];return p(i.type,i.style,a)}if("async"==a&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return p("async","keyword",a)}return p("variable","variable",a)}}function k(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=v;break}n="*"==r}return p("comment","comment")}function h(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=v;break}n=!n&&"\\"==r}return p("quasi","string-2",e.current())}var y="([{}])";function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(u){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),c=y.indexOf(s);if(c>=0&&c<3){if(!a){++o;break}if(0==--a){"("==s&&(i=!0);break}}else if(c>=3&&c<6)++a;else if(l.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;var f=e.string.charAt(o-1);if(f==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function g(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function x(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var j={state:null,column:null,marked:null,cc:null};function M(){for(var e=arguments.length-1;e>=0;e--)j.cc.push(arguments[e])}function C(){return M.apply(null,arguments),!0}function I(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function _(e){var t=j.state;if(j.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=function e(t,r){if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new V(n,r.vars,!0):null}return I(t,r.vars)?r:new V(r.prev,new E(t,r.vars),!1)}return null}(e,t.context);if(null!=n)return void(t.context=n)}else if(!I(e,t.localVars))return void(t.localVars=new E(e,t.localVars));r.globalVars&&!I(e,t.globalVars)&&(t.globalVars=new E(e,t.globalVars))}function A(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function V(e,t,r){this.prev=e,this.vars=t,this.block=r}function E(e,t){this.name=e,this.next=t}var z=new E("this",new E("arguments",null));function T(){j.state.context=new V(j.state.context,j.state.localVars,!1),j.state.localVars=z}function $(){j.state.context=new V(j.state.context,j.state.localVars,!0),j.state.localVars=null}function S(){j.state.localVars=j.state.context.vars,j.state.context=j.state.context.prev}function O(e,t){var r=function(){var r=j.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new g(n,j.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function W(){var e=j.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function P(e){return function t(r){return r==e?C():";"==e||"}"==r||")"==r||"]"==r?M():C(t)}}function L(e,t){return"var"==e?C(O("vardef",t),we,P(";"),W):"keyword a"==e?C(O("form"),D,L,W):"keyword b"==e?C(O("form"),L,W):"keyword d"==e?j.stream.match(/^\s*$/,!1)?C():C(O("stat"),H,P(";"),W):"debugger"==e?C(P(";")):"{"==e?C(O("}"),$,oe,W,S):";"==e?C():"if"==e?("else"==j.state.lexical.info&&j.state.cc[j.state.cc.length-1]==W&&j.state.cc.pop()(),C(O("form"),D,L,W,Ce)):"function"==e?C(Ve):"for"==e?C(O("form"),Ie,L,W):"class"==e||u&&"interface"==t?(j.marked="keyword",C(O("form","class"==e?e:t),Se,W)):"variable"==e?u&&"declare"==t?(j.marked="keyword",C(L)):u&&("module"==t||"enum"==t||"type"==t)&&j.stream.match(/^\s*\w/,!1)?(j.marked="keyword","enum"==t?C(Fe):"type"==t?C(ze,P("operator"),fe,P(";")):C(O("form"),be,P("{"),O("}"),oe,W,W)):u&&"namespace"==t?(j.marked="keyword",C(O("form"),B,L,W)):u&&"abstract"==t?(j.marked="keyword",C(L)):C(O("stat"),Z):"switch"==e?C(O("form"),D,P("{"),O("}","switch"),$,oe,W,W,S):"case"==e?C(B,P(":")):"default"==e?C(P(":")):"catch"==e?C(O("form"),T,q,L,W,S):"export"==e?C(O("stat"),Le,W):"import"==e?C(O("stat"),Be,W):"async"==e?C(L):"@"==t?C(B,L):M(O("stat"),B,P(";"),W)}function q(e){if("("==e)return C(Te,P(")"))}function B(e,t){return U(e,t,!1)}function N(e,t){return U(e,t,!0)}function D(e){return"("!=e?M():C(O(")"),B,P(")"),W)}function U(e,t,r){if(j.state.fatArrowAt==j.stream.start){var n=r?Q:G;if("("==e)return C(T,O(")"),ae(Te,")"),W,P("=>"),n,S);if("variable"==e)return M(T,be,P("=>"),n,S)}var a=r?F:J;return b.hasOwnProperty(e)?C(a):"function"==e?C(Ve,a):"class"==e||u&&"interface"==t?(j.marked="keyword",C(O("form"),$e,W)):"keyword c"==e||"async"==e?C(r?N:B):"("==e?C(O(")"),H,P(")"),W,a):"operator"==e||"spread"==e?C(r?N:B):"["==e?C(O("]"),Je,W,a):"{"==e?ie(te,"}",null,a):"quasi"==e?M(K,a):"new"==e?C(function(e){return function(t){return"."==t?C(e?Y:X):"variable"==t&&u?C(ke,e?F:J):M(e?N:B)}}(r)):"import"==e?C(B):C()}function H(e){return e.match(/[;\}\)\],]/)?M():M(B)}function J(e,t){return","==e?C(B):F(e,t,!1)}function F(e,t,r){var n=0==r?J:F,a=0==r?B:N;return"=>"==e?C(T,r?Q:G,S):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?C(n):u&&"<"==t&&j.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?C(O(">"),ae(fe,">"),W,n):"?"==t?C(B,P(":"),a):C(a):"quasi"==e?M(K,n):";"!=e?"("==e?ie(N,")","call",n):"."==e?C(ee,n):"["==e?C(O("]"),H,P("]"),W,n):u&&"as"==t?(j.marked="keyword",C(fe,n)):"regexp"==e?(j.state.lastType=j.marked="operator",j.stream.backUp(j.stream.pos-j.stream.start-1),C(a)):void 0:void 0}function K(e,t){return"quasi"!=e?M():"${"!=t.slice(t.length-2)?C(K):C(B,R)}function R(e){if("}"==e)return j.marked="string-2",j.state.tokenize=h,C(K)}function G(e){return w(j.stream,j.state),M("{"==e?L:B)}function Q(e){return w(j.stream,j.state),M("{"==e?L:N)}function X(e,t){if("target"==t)return j.marked="keyword",C(J)}function Y(e,t){if("target"==t)return j.marked="keyword",C(F)}function Z(e){return":"==e?C(W,L):M(J,P(";"),W)}function ee(e){if("variable"==e)return j.marked="property",C()}function te(e,t){return"async"==e?(j.marked="property",C(te)):"variable"==e||"keyword"==j.style?(j.marked="property","get"==t||"set"==t?C(re):(u&&j.state.fatArrowAt==j.stream.start&&(r=j.stream.match(/^\s*:\s*/,!1))&&(j.state.fatArrowAt=j.stream.pos+r[0].length),C(ne))):"number"==e||"string"==e?(j.marked=s?"property":j.style+" property",C(ne)):"jsonld-keyword"==e?C(ne):u&&A(t)?(j.marked="keyword",C(te)):"["==e?C(B,se,P("]"),ne):"spread"==e?C(N,ne):"*"==t?(j.marked="keyword",C(te)):":"==e?M(ne):void 0;var r}function re(e){return"variable"!=e?M(ne):(j.marked="property",C(Ve))}function ne(e){return":"==e?C(N):"("==e?M(Ve):void 0}function ae(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=j.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),C((function(r,n){return r==t||n==t?M():M(e)}),n)}return a==t||i==t?C():r&&r.indexOf(";")>-1?M(e):C(P(t))}return function(r,a){return r==t||a==t?C():M(e,n)}}function ie(e,t,r){for(var n=3;n<arguments.length;n++)j.cc.push(arguments[n]);return C(O(t,r),ae(e,t),W)}function oe(e){return"}"==e?C():M(L,oe)}function se(e,t){if(u){if(":"==e)return C(fe);if("?"==t)return C(se)}}function ce(e,t){if(u&&(":"==e||"in"==t))return C(fe)}function ue(e){if(u&&":"==e)return j.stream.match(/^\s*\w+\s+is\b/,!1)?C(B,le,fe):C(fe)}function le(e,t){if("is"==t)return j.marked="keyword",C()}function fe(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(j.marked="keyword",C("typeof"==t?N:fe)):"variable"==e||"void"==t?(j.marked="type",C(ve)):"|"==t||"&"==t?C(fe):"string"==e||"number"==e||"atom"==e?C(ve):"["==e?C(O("]"),ae(fe,"]",","),W,ve):"{"==e?C(O("}"),ae(me,"}",",;"),W,ve):"("==e?C(ae(pe,")"),de,ve):"<"==e?C(ae(fe,">"),fe):void 0}function de(e){if("=>"==e)return C(fe)}function me(e,t){return"variable"==e||"keyword"==j.style?(j.marked="property",C(me)):"?"==t||"number"==e||"string"==e?C(me):":"==e?C(fe):"["==e?C(P("variable"),ce,P("]"),me):"("==e?M(Ee,me):void 0}function pe(e,t){return"variable"==e&&j.stream.match(/^\s*[?:]/,!1)||"?"==t?C(pe):":"==e?C(fe):"spread"==e?C(pe):M(fe)}function ve(e,t){return"<"==t?C(O(">"),ae(fe,">"),W,ve):"|"==t||"."==e||"&"==t?C(fe):"["==e?C(fe,P("]"),ve):"extends"==t||"implements"==t?(j.marked="keyword",C(fe)):"?"==t?C(fe,P(":"),fe):void 0}function ke(e,t){if("<"==t)return C(O(">"),ae(fe,">"),W,ve)}function he(){return M(fe,ye)}function ye(e,t){if("="==t)return C(fe)}function we(e,t){return"enum"==t?(j.marked="keyword",C(Fe)):M(be,se,je,Me)}function be(e,t){return u&&A(t)?(j.marked="keyword",C(be)):"variable"==e?(_(t),C()):"spread"==e?C(be):"["==e?ie(xe,"]"):"{"==e?ie(ge,"}"):void 0}function ge(e,t){return"variable"!=e||j.stream.match(/^\s*:/,!1)?("variable"==e&&(j.marked="property"),"spread"==e?C(be):"}"==e?M():"["==e?C(B,P("]"),P(":"),ge):C(P(":"),be,je)):(_(t),C(je))}function xe(){return M(be,je)}function je(e,t){if("="==t)return C(N)}function Me(e){if(","==e)return C(we)}function Ce(e,t){if("keyword b"==e&&"else"==t)return C(O("form","else"),L,W)}function Ie(e,t){return"await"==t?C(Ie):"("==e?C(O(")"),_e,W):void 0}function _e(e){return"var"==e?C(we,Ae):"variable"==e?C(Ae):M(Ae)}function Ae(e,t){return")"==e?C():";"==e?C(Ae):"in"==t||"of"==t?(j.marked="keyword",C(B,Ae)):M(B,Ae)}function Ve(e,t){return"*"==t?(j.marked="keyword",C(Ve)):"variable"==e?(_(t),C(Ve)):"("==e?C(T,O(")"),ae(Te,")"),W,ue,L,S):u&&"<"==t?C(O(">"),ae(he,">"),W,Ve):void 0}function Ee(e,t){return"*"==t?(j.marked="keyword",C(Ee)):"variable"==e?(_(t),C(Ee)):"("==e?C(T,O(")"),ae(Te,")"),W,ue,S):u&&"<"==t?C(O(">"),ae(he,">"),W,Ee):void 0}function ze(e,t){return"keyword"==e||"variable"==e?(j.marked="type",C(ze)):"<"==t?C(O(">"),ae(he,">"),W):void 0}function Te(e,t){return"@"==t&&C(B,Te),"spread"==e?C(Te):u&&A(t)?(j.marked="keyword",C(Te)):u&&"this"==e?C(se,je):M(be,se,je)}function $e(e,t){return"variable"==e?Se(e,t):Oe(e,t)}function Se(e,t){if("variable"==e)return _(t),C(Oe)}function Oe(e,t){return"<"==t?C(O(">"),ae(he,">"),W,Oe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(j.marked="keyword"),C(u?fe:B,Oe)):"{"==e?C(O("}"),We,W):void 0}function We(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&A(t))&&j.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(j.marked="keyword",C(We)):"variable"==e||"keyword"==j.style?(j.marked="property",C(u?Pe:Ve,We)):"number"==e||"string"==e?C(u?Pe:Ve,We):"["==e?C(B,se,P("]"),u?Pe:Ve,We):"*"==t?(j.marked="keyword",C(We)):u&&"("==e?M(Ee,We):";"==e||","==e?C(We):"}"==e?C():"@"==t?C(B,We):void 0}function Pe(e,t){if("?"==t)return C(Pe);if(":"==e)return C(fe,je);if("="==t)return C(N);var r=j.state.lexical.prev,n=r&&"interface"==r.info;return M(n?Ee:Ve)}function Le(e,t){return"*"==t?(j.marked="keyword",C(He,P(";"))):"default"==t?(j.marked="keyword",C(B,P(";"))):"{"==e?C(ae(qe,"}"),He,P(";")):M(L)}function qe(e,t){return"as"==t?(j.marked="keyword",C(P("variable"))):"variable"==e?M(N,qe):void 0}function Be(e){return"string"==e?C():"("==e?M(B):M(Ne,De,He)}function Ne(e,t){return"{"==e?ie(Ne,"}"):("variable"==e&&_(t),"*"==t&&(j.marked="keyword"),C(Ue))}function De(e){if(","==e)return C(Ne,De)}function Ue(e,t){if("as"==t)return j.marked="keyword",C(Ne)}function He(e,t){if("from"==t)return j.marked="keyword",C(B)}function Je(e){return"]"==e?C():M(ae(N,"]"))}function Fe(){return M(O("form"),be,P("{"),O("}"),ae(Ke,"}"),W,W)}function Ke(){return M(be,je)}function Re(e,t,r){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return S.lex=!0,W.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new g((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new V(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=k&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=a&&"--"!=a?n:"incdec",function(e,t,r,n,a){var i=e.cc;for(j.state=e,j.stream=a,j.marked=null,j.cc=i,j.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var o=i.length?i.pop():c?B:L;if(o(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return j.marked?j.marked:"variable"==r&&x(e,n)?"variable-2":t}}}(t,r,n,a,e))},indent:function(t,n){if(t.tokenize==k)return e.Pass;if(t.tokenize!=v)return 0;var a,s=n&&n.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var l=t.cc[u];if(l==W)c=c.prev;else if(l!=Ce)break}for(;("stat"==c.type||"form"==c.type)&&("}"==s||(a=t.cc[t.cc.length-1])&&(a==J||a==F)&&!/^[,\.=+\-*:?[\(]/.test(n));)c=c.prev;o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var f=c.type,m=s==f;return"vardef"==f?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==f&&"{"==s?c.indented:"form"==f?c.indented+i:"stat"==f?c.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?o||i:0):"switch"!=c.info||m||0==r.doubleIndentSwitch?c.align?c.column+(m?0:1):c.indented+(m?0:i):c.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:s,jsonMode:c,expressionAllowed:Re,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=B&&t!=N||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r("56b3"))}}]);