8 lines
70 KiB
JavaScript
8 lines
70 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[79411],{79411:function(C,M,R){C=R.nmd(C),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(i,p,k){"use strict";var h=i("../lib/oop"),f=i("../lib/lang"),g=i("./text_highlight_rules").TextHighlightRules,c=p.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",o=p.supportFunction="rgb|rgba|url|attr|counter|counters",d=p.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|loc
|
||
|
`){var t=u.getCursorPosition(),a=e.getLine(t.row),l=new g(e,t.row,t.column),m=l.getCurrentToken();if(m&&m.type.indexOf("tag-close")!==-1){if(m.value=="/>")return;for(;m&&m.type.indexOf("tag-name")===-1;)m=l.stepBackward();if(!m)return;var x=m.value,v=l.getCurrentTokenRow();if(m=l.stepBackward(),!m||m.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[x]){var b=e.getTokenAt(t.row,t.column+1),a=e.getLine(v),y=this.$getIndent(a),w=y+e.getTabString();return b&&b.value==="</"?{text:`
|
||
|
`+w+`
|
||
|
`+y,selection:[1,w.length,1,w.length]}:{text:`
|
||
|
`+w}}}}})};h.inherits(d,f),p.XmlBehaviour=d}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(i,p,k){"use strict";var h=i("../../lib/oop"),f=i("./fold_mode").FoldMode,g=p.FoldMode=function(c,o){this.defaultMode=c,this.subModes=o};h.inherits(g,f),function(){this.$getMode=function(c){typeof c!="string"&&(c=c[0]);for(var o in this.subModes)if(c.indexOf(o)===0)return this.subModes[o];return null},this.$tryMode=function(c,o,d,r){var s=this.$getMode(c);return s?s.getFoldWidget(o,d,r):""},this.getFoldWidget=function(c,o,d){return this.$tryMode(c.getState(d-1),c,o,d)||this.$tryMode(c.getState(d),c,o,d)||this.defaultMode.getFoldWidget(c,o,d)},this.getFoldWidgetRange=function(c,o,d){var r=this.$getMode(c.getState(d-1));return(!r||!r.getFoldWidget(c,o,d))&&(r=this.$getMode(c.getState(d))),(!r||!r.getFoldWidget(c,o,d))&&(r=this.defaultMode),r.getFoldWidgetRange(c,o,d)}}.call(g.prototype)}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(i,p,k){"use strict";var h=i("../../lib/oop"),f=i("../../range").Range,g=i("./fold_mode").FoldMode,c=p.FoldMode=function(r,s){g.call(this),this.voidElements=r||{},this.optionalEndTags=h.mixin({},this.voidElements),s&&h.mixin(this.optionalEndTags,s)};h.inherits(c,g);var o=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function d(r,s){return r.type.lastIndexOf(s+".xml")>-1}(function(){this.getFoldWidget=function(r,s,u){var e=this._getFirstTagInLine(r,u);return e?e.closing||!e.tagName&&e.selfClosing?s==="markbeginend"?"end":"":!e.tagName||e.selfClosing||this.voidElements.hasOwnProperty(e.tagName.toLowerCase())||this._findEndTagInLine(r,u,e.tagName,e.end.column)?"":"start":this.getCommentFoldWidget(r,u)},this.getCommentFoldWidget=function(r,s){return/comment/.test(r.getState(s))&&/<!-/.test(r.getLine(s))?"start":""},this._getFirstTagInLine=function(r,s){for(var u=r.getTokens(s),e=new o,n=0;n<u.length;n++){var t=u[n];if(d(t,"tag-open")){if(e.end.column=e.start.column+t.value.length,e.closing=d(t,"end-tag-open"),t=u[++n],!t)return null;for(e.tagName=t.value,e.end.column+=t.value.length,n++;n<u.length;n++)if(t=u[n],e.end.column+=t.value.length,d(t,"tag-close")){e.selfClosing=t.value=="/>";break}return e}else if(d(t,"tag-close"))return e.selfClosing=t.value=="/>",e;e.start.column+=t.value.length}return null},this._findEndTagInLine=function(r,s,u,e){for(var n=r.getTokens(s),t=0,a=0;a<n.length;a++){var l=n[a];if(t+=l.value.length,!(t<e)&&d(l,"end-tag-open")&&(l=n[a+1],l&&l.value==u))return!0}return!1},this.getFoldWidgetRange=function(r,s,u){var e=r.getMatchingTags({row:u,column:0});return e?new f(e.openTag.end.row,e.openTag.end.column,e.closeTag.start.row,e.closeTag.start.column):this.getCommentFoldWidget(r,u)&&r.getCommentFoldRange(u,r.getLine(u).length)}}).call(c.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(i,p,k){"use strict";var h=i("../../lib/oop"),f=i("./mixed").FoldMode,g=i("./xml").FoldMode,c=i("./cstyle").FoldMode,o=p.FoldMode=function(d,r){f.call(this,new g(d,r),{"js-":new c,"css-":new c})};h.inherits(o,f)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(i,p,k){"use strict";var h=i("../token_iterator").TokenIterator,f=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],g=["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
|
||
|
`&&n!=="\r"&&n!==`
|
||
|
`)return!1;var t=this.getTokenizer().getLineTokens(e.trim(),u).tokens;if(!t)return!1;do var a=t.pop();while(a&&(a.type=="comment"||a.type=="text"&&a.value.match(/^\s+$/)));return a?a.type=="keyword"&&s[a.value]:!1},this.autoOutdent=function(u,e,n){n+=1;var t=this.$getIndent(e.getLine(n)),a=e.getTabString();t.slice(-a.length)==a&&e.remove(new c(n,t.length-a.length,n,t.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(r.prototype),p.Mode=r}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(i,p,k){"use strict";var h=i("../lib/oop"),f=i("../lib/lang"),g=i("./text").Mode,c=i("./xml_highlight_rules").XmlHighlightRules,o=i("./behaviour/xml").XmlBehaviour,d=i("./folding/xml").FoldMode,r=i("../worker/worker_client").WorkerClient,s=function(){this.HighlightRules=c,this.$behaviour=new o,this.foldingRules=new d};h.inherits(s,g),function(){this.voidElements=f.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(u){var e=new r(["ace"],"ace/mode/xml_worker","Worker");return e.attachToDocument(u.getDocument()),e.on("error",function(n){u.setAnnotations(n.data)}),e.on("terminate",function(){u.clearAnnotations()}),e},this.$id="ace/mode/xml"}.call(s.prototype),p.Mode=s}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(i,p,k){"use strict";var h=i("../lib/oop"),f=i("./behaviour/cstyle").CstyleBehaviour,g=i("./text").Mode,c=i("./markdown_highlight_rules").MarkdownHighlightRules,o=i("./folding/markdown").FoldMode,d=function(){this.HighlightRules=c,this.createModeDelegates({javascript:i("./javascript").Mode,html:i("./html").Mode,bash:i("./sh").Mode,sh:i("./sh").Mode,xml:i("./xml").Mode,css:i("./css").Mode}),this.foldingRules=new o,this.$behaviour=new f({braces:!0})};h.inherits(d,g),function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(r,s,u){if(r=="listblock"){var e=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(s);if(!e)return"";var n=e[2];return n||(n=parseInt(e[3],10)+1+"."),e[1]+n+e[4]}else return this.$getIndent(s)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}.call(d.prototype),p.Mode=d}),function(){ace.require(["ace/mode/markdown"],function(i){C&&(C.exports=i)})}()}}]);
|