mode-dot-3120d933.js 7.9 KB

1
  1. import{g as _}from"./index-fe76da25.js";function R(k,v){for(var n=0;n<v.length;n++){const g=v[n];if(typeof g!="string"&&!Array.isArray(g)){for(const m in g)if(m!=="default"&&!(m in k)){const h=Object.getOwnPropertyDescriptor(g,m);h&&Object.defineProperty(k,m,h.get?h:{enumerable:!0,get:()=>g[m]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(k,v){ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,g,m){var h=n("../range").Range,u=function(){};(function(){this.checkOutdent=function(i,l){return/^\s+$/.test(i)?/^\s*\}/.test(l):!1},this.autoOutdent=function(i,l){var t=i.getLine(l),r=t.match(/^(\s*\})/);if(!r)return 0;var e=r[1].length,o=i.findMatchingBracket({row:l,column:e});if(!o||o.row==l)return 0;var s=this.$getIndent(i.getLine(o.row));i.replace(new h(l,0,l,e-1),s)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(u.prototype),g.MatchingBraceOutdent=u}),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,g,m){var h=n("../lib/oop"),u=n("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},i.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};h.inherits(i,u),i.getTagRule=function(l){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},i.getStartRule=function(l){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:l}},i.getEndRule=function(l){return{token:"comment.doc",regex:"\\*\\/",next:l}},g.DocCommentHighlightRules=i}),ace.define("ace/mode/dot_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/doc_comment_highlight_rules"],function(n,g,m){var h=n("../lib/oop"),u=n("../lib/lang"),i=n("./text_highlight_rules").TextHighlightRules;n("./doc_comment_highlight_rules").DocCommentHighlightRules;var l=function(){var t=u.arrayToMap("strict|node|edge|graph|digraph|subgraph".split("|")),r=u.arrayToMap("damping|k|url|area|arrowhead|arrowsize|arrowtail|aspect|bb|bgcolor|center|charset|clusterrank|color|colorscheme|comment|compound|concentrate|constraint|decorate|defaultdist|dim|dimen|dir|diredgeconstraints|distortion|dpi|edgeurl|edgehref|edgetarget|edgetooltip|epsilon|esep|fillcolor|fixedsize|fontcolor|fontname|fontnames|fontpath|fontsize|forcelabels|gradientangle|group|headurl|head_lp|headclip|headhref|headlabel|headport|headtarget|headtooltip|height|href|id|image|imagepath|imagescale|label|labelurl|label_scheme|labelangle|labeldistance|labelfloat|labelfontcolor|labelfontname|labelfontsize|labelhref|labeljust|labelloc|labeltarget|labeltooltip|landscape|layer|layerlistsep|layers|layerselect|layersep|layout|len|levels|levelsgap|lhead|lheight|lp|ltail|lwidth|margin|maxiter|mclimit|mindist|minlen|mode|model|mosek|nodesep|nojustify|normalize|nslimit|nslimit1|ordering|orientation|outputorder|overlap|overlap_scaling|pack|packmode|pad|page|pagedir|pencolor|penwidth|peripheries|pin|pos|quadtree|quantum|rank|rankdir|ranksep|ratio|rects|regular|remincross|repulsiveforce|resolution|root|rotate|rotation|samehead|sametail|samplepoints|scale|searchsize|sep|shape|shapefile|showboxes|sides|size|skew|smoothing|sortv|splines|start|style|stylesheet|tailurl|tail_lp|tailclip|tailhref|taillabel|tailport|tailtarget|tailtooltip|target|tooltip|truecolor|vertices|viewport|voro_margin|weight|width|xlabel|xlp|z".split("|"));this.$rules={start:[{token:"comment",regex:/\/\/.*$/},{token:"comment",regex:/#.*$/},{token:"comment",merge:!0,regex:/\/\*/,next:"comment"},{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/[+\-]?\d+(?:(?:\.\d*)?(?:[eE][+\-]?\d+)?)?\b/},{token:"keyword.operator",regex:/\+|=|\->/},{token:"punctuation.operator",regex:/,|;/},{token:"paren.lparen",regex:/[\[{]/},{token:"paren.rparen",regex:/[\]}]/},{token:"comment",regex:/^#!.*$/},{token:function(e){return t.hasOwnProperty(e.toLowerCase())?"keyword":r.hasOwnProperty(e.toLowerCase())?"variable":"text"},regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],qqstring:[{token:"string",regex:'[^"\\\\]+',merge:!0},{token:"string",regex:"\\\\$",next:"qqstring",merge:!0},{token:"string",regex:'"|$',next:"start",merge:!0}],qstring:[{token:"string",regex:"[^'\\\\]+",merge:!0},{token:"string",regex:"\\\\$",next:"qstring",merge:!0},{token:"string",regex:"'|$",next:"start",merge:!0}]}};h.inherits(l,i),g.DotHighlightRules=l}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,g,m){var h=n("../../lib/oop"),u=n("../../range").Range,i=n("./fold_mode").FoldMode,l=g.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};h.inherits(l,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(t,r,e){var o=t.getLine(e);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var s=this._getFoldWidgetBase(t,r,e);return!s&&this.startRegionRe.test(o)?"start":s},this.getFoldWidgetRange=function(t,r,e,o){var s=t.getLine(e);if(this.startRegionRe.test(s))return this.getCommentRegionBlock(t,s,e);var a=s.match(this.foldingStartMarker);if(a){var c=a.index;if(a[1])return this.openingBracketBlock(t,a[1],e,c);var d=t.getCommentFoldRange(e,c+a[0].length,1);return d&&!d.isMultiLine()&&(o?d=this.getSectionRange(t,e):r!="all"&&(d=null)),d}if(r!=="markbegin"){var a=s.match(this.foldingStopMarker);if(a){var c=a.index+a[0].length;return a[1]?this.closingBracketBlock(t,a[1],e,c):t.getCommentFoldRange(e,c,-1)}}},this.getSectionRange=function(t,r){var e=t.getLine(r),o=e.search(/\S/),s=r,c=e.length;r=r+1;for(var d=r,a=t.getLength();++r<a;){e=t.getLine(r);var f=e.search(/\S/);if(f!==-1){if(o>f)break;var p=this.getFoldWidgetRange(t,"all",r);if(p){if(p.start.row<=s)break;if(p.isMultiLine())r=p.end.row;else if(o==f)break}d=r}}return new u(s,c,d,t.getLine(d).length)},this.getCommentRegionBlock=function(t,r,e){for(var o=r.search(/\s*$/),s=t.getLength(),c=e,d=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++e<s;){r=t.getLine(e);var f=d.exec(r);if(f&&(f[1]?a--:a++,!a))break}var p=e;if(p>c)return new u(c,o,p,r.length)}}.call(l.prototype)}),ace.define("ace/mode/dot",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/matching_brace_outdent","ace/mode/dot_highlight_rules","ace/mode/folding/cstyle"],function(n,g,m){var h=n("../lib/oop"),u=n("./text").Mode,i=n("./matching_brace_outdent").MatchingBraceOutdent,l=n("./dot_highlight_rules").DotHighlightRules,t=n("./folding/cstyle").FoldMode,r=function(){this.HighlightRules=l,this.$outdent=new i,this.foldingRules=new t,this.$behaviour=this.$defaultBehaviour};h.inherits(r,u),function(){this.lineCommentStart=["//","#"],this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,o,s){var c=this.$getIndent(o),d=this.getTokenizer().getLineTokens(o,e),a=d.tokens;if(d.state,a.length&&a[a.length-1].type=="comment")return c;if(e=="start"){var f=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);f&&(c+=s)}return c},this.checkOutdent=function(e,o,s){return this.$outdent.checkOutdent(o,s)},this.autoOutdent=function(e,o,s){this.$outdent.autoOutdent(o,s)},this.$id="ace/mode/dot"}.call(r.prototype),g.Mode=r}),function(){ace.require(["ace/mode/dot"],function(n){k&&(k.exports=n)})}()})(x);var b=x.exports;const y=_(b),$=R({__proto__:null,default:y},[b]);export{$ as m};