6 lines
62 KiB
JavaScript
6 lines
62 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[19516],{19516:function(w,T,C){w=C.nmd(w),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(c,h,b){"use strict";var f=c("../lib/oop"),p=c("./text_highlight_rules").TextHighlightRules,d=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},d.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};f.inherits(d,p),d.getTagRule=function(u){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},d.getStartRule=function(u){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:u}},d.getEndRule=function(u){return{token:"comment.doc",regex:"\\*\\/",next:u}},h.DocCommentHighlightRules=d}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(c,h,b){"use strict";var f=c("../lib/oop"),p=c("./doc_comment_highlight_rules").DocCommentHighlightRules,d=c("./text_highlight_rules").TextHighlightRules,u="[a-zA-Z\\$_\xA1-\uFFFF][a-zA-Z\\d\\$_\xA1-\uFFFF]*",r=function(s){var l=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),e="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",a="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[p.getStartRule("doc-start"),n("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+u+")(\\.)(prototype)(\\.)("+u+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+u+")(\\.)("+u+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+u+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+u+")(\\.)("+u+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+u+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+u+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\
|
||
|
`){var t=l.getCursorPosition(),o=e.getLine(t.row),i=new d(e,t.row,t.column),m=i.getCurrentToken();if(m&&m.type.indexOf("tag-close")!==-1){if(m.value=="/>")return;for(;m&&m.type.indexOf("tag-name")===-1;)m=i.stepBackward();if(!m)return;var x=m.value,k=i.getCurrentTokenRow();if(m=i.stepBackward(),!m||m.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[x]){var v=e.getTokenAt(t.row,t.column+1),o=e.getLine(k),y=this.$getIndent(o),_=y+e.getTabString();return v&&v.value==="</"?{text:`
|
||
|
`+_+`
|
||
|
`+y,selection:[1,_.length,1,_.length]}:{text:`
|
||
|
`+_}}}}})};f.inherits(g,p),h.XmlBehaviour=g}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(c,h,b){"use strict";var f=c("../../lib/oop"),p=c("./fold_mode").FoldMode,d=h.FoldMode=function(u,r){this.defaultMode=u,this.subModes=r};f.inherits(d,p),function(){this.$getMode=function(u){typeof u!="string"&&(u=u[0]);for(var r in this.subModes)if(u.indexOf(r)===0)return this.subModes[r];return null},this.$tryMode=function(u,r,g,n){var s=this.$getMode(u);return s?s.getFoldWidget(r,g,n):""},this.getFoldWidget=function(u,r,g){return this.$tryMode(u.getState(g-1),u,r,g)||this.$tryMode(u.getState(g),u,r,g)||this.defaultMode.getFoldWidget(u,r,g)},this.getFoldWidgetRange=function(u,r,g){var n=this.$getMode(u.getState(g-1));return(!n||!n.getFoldWidget(u,r,g))&&(n=this.$getMode(u.getState(g))),(!n||!n.getFoldWidget(u,r,g))&&(n=this.defaultMode),n.getFoldWidgetRange(u,r,g)}}.call(d.prototype)}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(c,h,b){"use strict";var f=c("../../lib/oop"),p=c("../../range").Range,d=c("./fold_mode").FoldMode,u=h.FoldMode=function(n,s){d.call(this),this.voidElements=n||{},this.optionalEndTags=f.mixin({},this.voidElements),s&&f.mixin(this.optionalEndTags,s)};f.inherits(u,d);var r=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function g(n,s){return n.type.lastIndexOf(s+".xml")>-1}(function(){this.getFoldWidget=function(n,s,l){var e=this._getFirstTagInLine(n,l);return e?e.closing||!e.tagName&&e.selfClosing?s==="markbeginend"?"end":"":!e.tagName||e.selfClosing||this.voidElements.hasOwnProperty(e.tagName.toLowerCase())||this._findEndTagInLine(n,l,e.tagName,e.end.column)?"":"start":this.getCommentFoldWidget(n,l)},this.getCommentFoldWidget=function(n,s){return/comment/.test(n.getState(s))&&/<!-/.test(n.getLine(s))?"start":""},this._getFirstTagInLine=function(n,s){for(var l=n.getTokens(s),e=new r,a=0;a<l.length;a++){var t=l[a];if(g(t,"tag-open")){if(e.end.column=e.start.column+t.value.length,e.closing=g(t,"end-tag-open"),t=l[++a],!t)return null;for(e.tagName=t.value,e.end.column+=t.value.length,a++;a<l.length;a++)if(t=l[a],e.end.column+=t.value.length,g(t,"tag-close")){e.selfClosing=t.value=="/>";break}return e}else if(g(t,"tag-close"))return e.selfClosing=t.value=="/>",e;e.start.column+=t.value.length}return null},this._findEndTagInLine=function(n,s,l,e){for(var a=n.getTokens(s),t=0,o=0;o<a.length;o++){var i=a[o];if(t+=i.value.length,!(t<e)&&g(i,"end-tag-open")&&(i=a[o+1],i&&i.value==l))return!0}return!1},this.getFoldWidgetRange=function(n,s,l){var e=n.getMatchingTags({row:l,column:0});return e?new p(e.openTag.end.row,e.openTag.end.column,e.closeTag.start.row,e.closeTag.start.column):this.getCommentFoldWidget(n,l)&&n.getCommentFoldRange(l,n.getLine(l).length)}}).call(u.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(c,h,b){"use strict";var f=c("../../lib/oop"),p=c("./mixed").FoldMode,d=c("./xml").FoldMode,u=c("./cstyle").FoldMode,r=h.FoldMode=function(g,n){p.call(this,new d(g,n),{"js-":new u,"css-":new u})};f.inherits(r,p)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(c,h,b){"use strict";var f=c("../token_iterator").TokenIterator,p=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],d=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmet
|