2 lines
9.9 KiB
JavaScript
2 lines
9.9 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[44851],{44851:function(b,L,$){b=$.nmd(b),ace.define("ace/mode/crystal_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(s,v,y){"use strict";var m=s("../lib/oop"),f=s("./text_highlight_rules").TextHighlightRules,p=function(){var l="puts|initialize|previous_def|typeof|as|pointerof|sizeof|instance_sizeof",n="if|end|else|elsif|unless|case|when|break|while|next|until|def|return|class|new|getter|setter|property|lib|fun|do|struct|private|protected|public|module|super|abstract|include|extend|begin|enum|raise|yield|with|alias|rescue|ensure|macro|uninitialized|union|type|require",k="true|TRUE|false|FALSE|nil|NIL|__LINE__|__END_LINE__|__FILE__|__DIR__",t="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|root_url|flash|session|cookies|params|request|response|logger|self",u=this.$keywords=this.createKeywordMapper({keyword:n,"constant.language":k,"variable.language":t,"support.function":l},"identifier"),r="(?:0[xX][\\dA-Fa-f]+)",e="(?:[0-9][\\d_]*)",i="(?:0o[0-7][0-7]*)",g="(?:0[bB][01]+)",d="(?:[+-]?)(?:"+r+"|"+e+"|"+i+"|"+g+")(?:_?[iIuU](?:8|16|32|64))?\\b",h=/\\(?:[nsrtvfbae'"\\]|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u{[\da-fA-F]{1,6}})/,o=/\\(?:[nsrtvfbae'"\\]|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u{[\da-fA-F]{1,6}}|u{(:?[\da-fA-F]{2}\s)*[\da-fA-F]{2}})/;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string.regexp",regex:"[/]",push:[{token:"constant.language.escape",regex:o},{token:"string.regexp",regex:"[/][imx]*(?=[).,;\\s]|$)",next:"pop"},{defaultToken:"string.regexp"}]},[{regex:"[{}]",onMatch:function(a,x,c){return this.next=a=="{"?this.nextState:"",a=="{"&&c.length?(c.unshift("start",x),"paren.lparen"):a=="}"&&c.length&&(c.shift(),this.next=c.shift(),this.next.indexOf("string")!=-1)?"paren.end":a=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.start",regex:/"/,push:[{token:"constant.language.escape",regex:o},{token:"string",regex:/\\#{/},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:o},{token:"string",regex:/\\#{/},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{stateName:"rpstring",token:"string.start",regex:/%[Qx]?\(/,push:[{token:"constant.language.escape",regex:o},{token:"string.start",regex:/\(/,push:"rpstring"},{token:"string.end",regex:/\)/,next:"pop"},{token:"paren.start",regex:/#{/,push:"start"},{defaultToken:"string"}]},{stateName:"spstring",token:"string.start",regex:/%[Qx]?\[/,push:[{token:"constant.language.escape",regex:o},{token:"string.start",regex:/\[/,push:"spstring"},{token:"string.end",regex:/]/,next:"pop"},{token:"paren.start",regex:/#{/,push:"start"},{defaultToken:"string"}]},{stateName:"fpstring",token:"string.start",regex:/%[Qx]?{/,push:[{token:"constant.language.escape",regex:o},{token:"string.start",regex:/{/,push:"fpstring"},{token:"string.end",regex:/}/,next:"pop"},{token:"paren.start",regex:/#{/,push:"start"},{defaultToken:"string"}]},{stateName:"tpstring",token:"string.start",regex:/%[Qx]?</,push:[{token:"constant.language.escape",regex:o},{token:"string.start",regex:/</,push:"tpstring"},{token:"string.end",regex:/>/,next:"pop"},{token:"paren.start",regex:/#{/,push:"start"},{defaultToken:"string"}]},{stateName:"ppstring",token:"string.start",regex:/%[Qx]?\|/,push:[{token:"constant.language.escape",regex:o},{token:"string.end",regex:/\|/,next:"pop"},{token:"paren.start",regex:/#{/,push:"start"},{defaultToken:"string"}]},{stateName:"rpqstring",token:"string.start",regex:/%[qwir]\(/,push:[{token:"string.start",regex:/\(/,push:"rpqstring"},{token:"string.end",regex:/\)/,next:"pop"},{defaultToken:"string"}]},{stateName:"spqstring",token:"string.start",regex:/%[qwir]\[/,push:[{token:"string.start",regex:/\[/,push:"spqstring"},{token:"string.end",regex:/]/,next:"pop"},{defaultToken:"string"}]},{stateName:"fpqstring",token:"string.start",regex:/%[qwir]{/,push:[{token:"string.start",regex:/{/,push:"fpqstring"},{token:"string.end",regex:/}/,next:"pop"},{defaultToken:"string"}]},{stateName:"tpqstring",token:"string.start",regex:/%[qwir]</,push:[{token:"string.start",regex:/</,push:"tpqstring"},{token:"string.end",regex:/>/,next:"pop"},{defaultToken:"string"}]},{stateName:"ppqstring",token:"string.start",regex:/%[qwir]\|/,push:[{token:"string.end",regex:/\|/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/'/,push:[{token:"constant.language.escape",regex:h},{token:"string.end",regex:/'|$/,next:"pop"},{defaultToken:"string"}]}],{token:"text",regex:"::"},{token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},{token:"variable.fresh",regex:"%[a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]+"},{token:"constant.other.symbol",regex:"[:](?:(?:===|<=>|\\[]\\?|\\[]=|\\[]|>>|\\*\\*|<<|==|!=|>=|<=|!~|=~|<|\\+|-|\\*|\\/|%|&|\\||\\^|>|!|~)|(?:(?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?))"},{token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?(?:_?[fF](?:32|64))?\\b"},{token:"constant.numeric",regex:d},{token:"constant.other.symbol",regex:':"',push:[{token:"constant.language.escape",regex:o},{token:"constant.other.symbol",regex:'"',next:"pop"},{defaultToken:"constant.other.symbol"}]},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"support.function",regex:"(?:is_a\\?|nil\\?|responds_to\\?|as\\?)"},{token:u,regex:"[a-zA-Z_$][a-zA-Z0-9_$!?]*\\b"},{token:"variable.system",regex:"\\$\\!|\\$\\?"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(a,x,c){var A="heredoc",_=a.split(this.splitRegex);return c.push(A,_[3]),[{type:"constant",value:_[1]},{type:"string",value:_[2]},{type:"support.class",value:_[3]},{type:"string",value:_[4]}]},regex:"(<<-)([']?)([\\w]+)([']?)",rules:{heredoc:[{token:"string",regex:"^ +"},{onMatch:function(a,x,c){return a===c[1]?(c.shift(),c.shift(),this.next=c[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(a,x){return x[0]==="heredoc"?x[0]:a}},{token:"punctuation.operator",regex:/[.]\s*(?![.])/,push:[{token:"punctuation.operator",regex:/[.]\s*(?![.])/},{token:"support.function",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{regex:"",token:"empty",next:"pop"}]},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|\\?|\\:|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\^|\\|"},{token:"punctuation.operator",regex:/[?:,;.]/},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};m.inherits(p,f),v.CrystalHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(s,v,y){"use strict";var m=s("../range").Range,f=function(){};(function(){this.checkOutdent=function(p,l){return/^\s+$/.test(p)?/^\s*\}/.test(l):!1},this.autoOutdent=function(p,l){var n=p.getLine(l),k=n.match(/^(\s*\})/);if(!k)return 0;var t=k[1].length,u=p.findMatchingBracket({row:l,column:t});if(!u||u.row==l)return 0;var r=this.$getIndent(p.getLine(u.row));p.replace(new m(l,0,l,t-1),r)},this.$getIndent=function(p){return p.match(/^\s*/)[0]}}).call(f.prototype),v.MatchingBraceOutdent=f}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(s,v,y){"use strict";var m=s("../../lib/oop"),f=s("./fold_mode").FoldMode,p=s("../../range").Range,l=v.FoldMode=function(){};m.inherits(l,f),function(){this.getFoldWidgetRange=function(n,k,t){var u=this.indentationBlock(n,t);if(u)return u;var r=/\S/,e=n.getLine(t),i=e.search(r);if(!(i==-1||e[i]!="#")){for(var g=e.length,d=n.getLength(),h=t,o=t;++t<d;){e=n.getLine(t);var a=e.search(r);if(a!=-1){if(e[a]!="#")break;o=t}}if(o>h){var x=n.getLine(o).length;return new p(h,g,o,x)}}},this.getFoldWidget=function(n,k,t){var u=n.getLine(t),r=u.search(/\S/),e=n.getLine(t+1),i=n.getLine(t-1),g=i.search(/\S/),d=e.search(/\S/);if(r==-1)return n.foldWidgets[t-1]=g!=-1&&g<d?"start":"","";if(g==-1){if(r==d&&u[r]=="#"&&e[r]=="#")return n.foldWidgets[t-1]="",n.foldWidgets[t+1]="","start"}else if(g==r&&u[r]=="#"&&i[r]=="#"&&n.getLine(t-2).search(/\S/)==-1)return n.foldWidgets[t-1]="start",n.foldWidgets[t+1]="","";return g!=-1&&g<r?n.foldWidgets[t-1]="start":n.foldWidgets[t-1]="",r<d?"start":""}}.call(l.prototype)}),ace.define("ace/mode/crystal",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/crystal_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/coffee"],function(s,v,y){"use strict";var m=s("../lib/oop"),f=s("./text").Mode,p=s("./crystal_highlight_rules").CrystalHighlightRules,l=s("./matching_brace_outdent").MatchingBraceOutdent,n=s("../range").Range,k=s("./behaviour/cstyle").CstyleBehaviour,t=s("./folding/coffee").FoldMode,u=function(){this.HighlightRules=p,this.$outdent=new l,this.$behaviour=new k,this.foldingRules=new t};m.inherits(u,f),function(){this.lineCommentStart="#",this.getNextLineIndent=function(r,e,i){var g=this.$getIndent(e),d=this.getTokenizer().getLineTokens(e,r),h=d.tokens;if(h.length&&h[h.length-1].type=="comment")return g;if(r=="start"){var o=e.match(/^.*[\{\(\[]\s*$/),a=e.match(/^\s*(class|def|module)\s.*$/),x=e.match(/.*do(\s*|\s+\|.*\|\s*)$/),c=e.match(/^\s*(if|else|when)\s*/);(o||a||x||c)&&(g+=i)}return g},this.checkOutdent=function(r,e,i){return/^\s+(end|else)$/.test(e+i)||this.$outdent.checkOutdent(e,i)},this.autoOutdent=function(r,e,i){var g=e.getLine(i);if(/}/.test(g))return this.$outdent.autoOutdent(e,i);var d=this.$getIndent(g),h=e.getLine(i-1),o=this.$getIndent(h),a=e.getTabString();o.length<=d.length&&d.slice(-a.length)==a&&e.remove(new n(i,d.length-a.length,i,d.length))},this.$id="ace/mode/crystal"}.call(u.prototype),v.Mode=u}),function(){ace.require(["ace/mode/crystal"],function(s){b&&(b.exports=s)})}()}}]);
|