filesbox/web/dist/6833.5200bf96.async.js

2 lines
3.8 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6833],{27013:function(u,b,m){u=m.nmd(u),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(a,d,_){"use strict";var s=a("../../lib/oop"),f=a("./fold_mode").FoldMode,c=a("../../range").Range,l=d.FoldMode=function(){};s.inherits(l,f),function(){this.getFoldWidgetRange=function(t,p,e){var g=this.indentationBlock(t,e);if(g)return g;var n=/\S/,r=t.getLine(e),i=r.search(n);if(!(i==-1||r[i]!="#")){for(var o=r.length,x=t.getLength(),k=e,h=e;++e<x;){r=t.getLine(e);var v=r.search(n);if(v!=-1){if(r[v]!="#")break;h=e}}if(h>k){var R=t.getLine(h).length;return new c(k,o,h,R)}}},this.getFoldWidget=function(t,p,e){var g=t.getLine(e),n=g.search(/\S/),r=t.getLine(e+1),i=t.getLine(e-1),o=i.search(/\S/),x=r.search(/\S/);if(n==-1)return t.foldWidgets[e-1]=o!=-1&&o<x?"start":"","";if(o==-1){if(n==x&&g[n]=="#"&&r[n]=="#")return t.foldWidgets[e-1]="",t.foldWidgets[e+1]="","start"}else if(o==n&&g[n]=="#"&&i[n]=="#"&&t.getLine(e-2).search(/\S/)==-1)return t.foldWidgets[e-1]="start",t.foldWidgets[e+1]="","";return o!=-1&&o<n?t.foldWidgets[e-1]="start":t.foldWidgets[e-1]="",n<x?"start":""}}.call(l.prototype)}),ace.define("ace/mode/snippets",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/folding/coffee"],function(a,d,_){"use strict";var s=a("../lib/oop"),f=a("./text").Mode,c=a("./text_highlight_rules").TextHighlightRules,l=function(){var g="SELECTION|CURRENT_WORD|SELECTED_TEXT|CURRENT_LINE|LINE_INDEX|LINE_NUMBER|SOFT_TABS|TAB_SIZE|FILENAME|FILEPATH|FULLNAME";this.$rules={start:[{token:"constant.language.escape",regex:/\\[\$}`\\]/},{token:"keyword",regex:"\\$(?:TM_)?(?:"+g+")\\b"},{token:"variable",regex:"\\$\\w+"},{onMatch:function(n,r,i){return i[1]?i[1]++:i.unshift(r,1),this.tokenName},tokenName:"markup.list",regex:"\\${",next:"varDecl"},{onMatch:function(n,r,i){return i[1]?(i[1]--,i[1]||i.splice(0,2),this.tokenName):"text"},tokenName:"markup.list",regex:"}"},{token:"doc.comment",regex:/^\${2}-{5,}$/}],varDecl:[{regex:/\d+\b/,token:"constant.numeric"},{token:"keyword",regex:"(?:TM_)?(?:"+g+")\\b"},{token:"variable",regex:"\\w+"},{regex:/:/,token:"punctuation.operator",next:"start"},{regex:/\//,token:"string.regex",next:"regexp"},{regex:"",next:"start"}],regexp:[{regex:/\\./,token:"escape"},{regex:/\[/,token:"regex.start",next:"charClass"},{regex:"/",token:"string.regex",next:"format"},{token:"string.regex",regex:"."}],charClass:[{regex:"\\.",token:"escape"},{regex:"\\]",token:"regex.end",next:"regexp"},{token:"string.regex",regex:"."}],format:[{regex:/\\[ulULE]/,token:"keyword"},{regex:/\$\d+/,token:"variable"},{regex:"/[gim]*:?",token:"string.regex",next:"start"},{token:"string",regex:"."}]}};s.inherits(l,c),d.SnippetHighlightRules=l;var t=function(){this.$rules={start:[{token:"text",regex:"^\\t",next:"sn-start"},{token:"invalid",regex:/^ \s*/},{token:"comment",regex:/^#.*/},{token:"constant.language.escape",regex:"^regex ",next:"regex"},{token:"constant.language.escape",regex:"^(trigger|endTrigger|name|snippet|guard|endGuard|tabTrigger|key)\\b"}],regex:[{token:"text",regex:"\\."},{token:"keyword",regex:"/"},{token:"empty",regex:"$",next:"start"}]},this.embedRules(l,"sn-",[{token:"text",regex:"^\\t",next:"sn-start"},{onMatch:function(g,n,r){return r.splice(r.length),this.tokenName},tokenName:"text",regex:"^(?! )",next:"start"}])};s.inherits(t,c),d.SnippetGroupHighlightRules=t;var p=a("./folding/coffee").FoldMode,e=function(){this.HighlightRules=t,this.foldingRules=new p,this.$behaviour=this.$defaultBehaviour};s.inherits(e,f),function(){this.$indentWithTabs=!0,this.lineCommentStart="#",this.$id="ace/mode/snippets",this.snippetFileId="ace/snippets/snippets"}.call(e.prototype),d.Mode=e}),function(){ace.require(["ace/mode/snippets"],function(a){u&&(u.exports=a)})}()}}]);