filesbox/web/dist/4007.6e85721b.async.js
2024-07-26 14:10:54 +08:00

4 lines
8.0 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4007],{4007:function(f,T,_){f=_.nmd(f),ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,u,m){"use strict";var x=a("../lib/oop"),p=a("./text_highlight_rules").TextHighlightRules,l=function(){var s="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",k="True|False|None|NotImplemented|Ellipsis|__debug__",o="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",c=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":o,"variable.language":"self|cls","constant.language":k,keyword:s},"identifier"),e="[uU]?",i="[rR]",t="[fF]",n="(?:[rR][fF]|[fF][rR])",r="(?:(?:[1-9]\\d*)|(?:0))",d="(?:0[oO]?[0-7]+)",h="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",v="(?:"+r+"|"+d+"|"+h+"|"+R+")",$="(?:[eE][+-]?\\d+)",w="(?:\\.\\d+)",q="(?:\\d+)",b="(?:(?:"+q+"?"+w+")|(?:"+q+"\\.))",F="(?:(?:"+b+"|"+q+")"+$+")",y="(?:"+F+"|"+b+")",g=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:e+'"{3}',next:"qqstring3"},{token:"string",regex:e+'"(?=.)',next:"qqstring"},{token:"string",regex:e+"'{3}",next:"qstring3"},{token:"string",regex:e+"'(?=.)",next:"qstring"},{token:"string",regex:i+'"{3}',next:"rawqqstring3"},{token:"string",regex:i+'"(?=.)',next:"rawqqstring"},{token:"string",regex:i+"'{3}",next:"rawqstring3"},{token:"string",regex:i+"'(?=.)",next:"rawqstring"},{token:"string",regex:t+'"{3}',next:"fqqstring3"},{token:"string",regex:t+'"(?=.)',next:"fqqstring"},{token:"string",regex:t+"'{3}",next:"fqstring3"},{token:"string",regex:t+"'(?=.)",next:"fqstring"},{token:"string",regex:n+'"{3}',next:"rfqqstring3"},{token:"string",regex:n+'"(?=.)',next:"rfqqstring"},{token:"string",regex:n+"'{3}",next:"rfqstring3"},{token:"string",regex:n+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:g},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:g},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:g},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:g},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+y+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:y},{token:"constant.numeric",regex:v+"[lL]\\b"},{token:"constant.numeric",regex:v+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};x.inherits(l,p),u.PythonHighlightRules=l}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(a,u,m){"use strict";var x=a("../../lib/oop"),p=a("./fold_mode").FoldMode,l=u.FoldMode=function(s){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+s+")(?:\\s*)(?:#.*)?$")};x.inherits(l,p),function(){this.getFoldWidgetRange=function(s,k,o){var c=s.getLine(o),e=c.match(this.foldingStartMarker);if(e)return e[1]?this.openingBracketBlock(s,e[1],o,e.index):e[2]?this.indentationBlock(s,o,e.index+e[2].length):this.indentationBlock(s,o)}}.call(l.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(a,u,m){"use strict";var x=a("../lib/oop"),p=a("./text").Mode,l=a("./python_highlight_rules").PythonHighlightRules,s=a("./folding/pythonic").FoldMode,k=a("../range").Range,o=function(){this.HighlightRules=l,this.foldingRules=new s("\\:"),this.$behaviour=this.$defaultBehaviour};x.inherits(o,p),function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(e,i,t){var n=this.$getIndent(i),r=this.getTokenizer().getLineTokens(i,e),d=r.tokens;if(d.length&&d[d.length-1].type=="comment")return n;if(e=="start"){var h=i.match(/^.*[\{\(\[:]\s*$/);h&&(n+=t)}return n};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(e,i,t){if(t!==`\r
`&&t!=="\r"&&t!==`
`)return!1;var n=this.getTokenizer().getLineTokens(i.trim(),e).tokens;if(!n)return!1;do var r=n.pop();while(r&&(r.type=="comment"||r.type=="text"&&r.value.match(/^\s+$/)));return r?r.type=="keyword"&&c[r.value]:!1},this.autoOutdent=function(e,i,t){t+=1;var n=this.$getIndent(i.getLine(t)),r=i.getTabString();n.slice(-r.length)==r&&i.remove(new k(t,n.length-r.length,t,n.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}.call(o.prototype),u.Mode=o}),function(){ace.require(["ace/mode/python"],function(a){f&&(f.exports=a)})}()}}]);