1 |
- import{g as R}from"./index-b2e76ed2.js";function M(u,y){for(var n=0;n<y.length;n++){const a=y[n];if(typeof a!="string"&&!Array.isArray(a)){for(const m in a)if(m!=="default"&&!(m in u)){const d=Object.getOwnPropertyDescriptor(a,m);d&&Object.defineProperty(u,m,d.get?d:{enumerable:!0,get:()=>a[m]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(u,y){ace.define("ace/mode/maze_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,a,m){var d=n("../lib/oop"),f=n("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"keyword.control",regex:/##|``/,comment:"Wall"},{token:"entity.name.tag",regex:/\.\./,comment:"Path"},{token:"keyword.control",regex:/<>/,comment:"Splitter"},{token:"entity.name.tag",regex:/\*[\*A-Za-z0-9]/,comment:"Signal"},{token:"constant.numeric",regex:/[0-9]{2}/,comment:"Pause"},{token:"keyword.control",regex:/\^\^/,comment:"Start"},{token:"keyword.control",regex:/\(\)/,comment:"Hole"},{token:"support.function",regex:/>>/,comment:"Out"},{token:"support.function",regex:/>\//,comment:"Ln Out"},{token:"support.function",regex:/<</,comment:"In"},{token:"keyword.control",regex:/--/,comment:"One use"},{token:"constant.language",regex:/%[LRUDNlrudn]/,comment:"Direction"},{token:["entity.name.function","keyword.other","keyword.operator","keyword.other","keyword.operator","constant.numeric","keyword.operator","keyword.other","keyword.operator","constant.numeric","string.quoted.double","string.quoted.single"],regex:/([A-Za-z][A-Za-z0-9])( *-> *)(?:([-+*\/]=)( *)((?:-)?)([0-9]+)|(=)( *)(?:((?:-)?)([0-9]+)|("[^"]*")|('[^']*')))/,comment:"Assignment function"},{token:["entity.name.function","keyword.other","keyword.control","keyword.other","keyword.operator","keyword.other","keyword.operator","constant.numeric","entity.name.tag","keyword.other","keyword.control","keyword.other","constant.language","keyword.other","keyword.control","keyword.other","constant.language"],regex:/([A-Za-z][A-Za-z0-9])( *-> *)(IF|if)( *)(?:([<>]=?|==)( *)((?:-)?)([0-9]+)|(\*[\*A-Za-z0-9]))( *)(THEN|then)( *)(%[LRUDNlrudn])(?:( *)(ELSE|else)( *)(%[LRUDNlrudn]))?/,comment:"Equality Function"},{token:"entity.name.function",regex:/[A-Za-z][A-Za-z0-9]/,comment:"Function cell"},{token:"comment.line.double-slash",regex:/ *\/\/.*/,comment:"Comment"}]},this.normalizeRules()};s.metaData={fileTypes:["mz"],name:"Maze",scopeName:"source.maze"},d.inherits(s,f),a.MazeHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,a,m){var d=n("../../lib/oop"),f=n("../../range").Range,s=n("./fold_mode").FoldMode,p=a.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};d.inherits(p,s),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(e,t,o){var l=e.getLine(o);if(this.singleLineBlockCommentRe.test(l)&&!this.startRegionRe.test(l)&&!this.tripleStarBlockCommentRe.test(l))return"";var i=this._getFoldWidgetBase(e,t,o);return!i&&this.startRegionRe.test(l)?"start":i},this.getFoldWidgetRange=function(e,t,o,l){var i=e.getLine(o);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,o);var r=i.match(this.foldingStartMarker);if(r){var c=r.index;if(r[1])return this.openingBracketBlock(e,r[1],o,c);var g=e.getCommentFoldRange(o,c+r[0].length,1);return g&&!g.isMultiLine()&&(l?g=this.getSectionRange(e,o):t!="all"&&(g=null)),g}if(t!=="markbegin"){var r=i.match(this.foldingStopMarker);if(r){var c=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],o,c):e.getCommentFoldRange(o,c,-1)}}},this.getSectionRange=function(e,t){var o=e.getLine(t),l=o.search(/\S/),i=t,c=o.length;t=t+1;for(var g=t,r=e.getLength();++t<r;){o=e.getLine(t);var k=o.search(/\S/);if(k!==-1){if(l>k)break;var h=this.getFoldWidgetRange(e,"all",t);if(h){if(h.start.row<=i)break;if(h.isMultiLine())t=h.end.row;else if(l==k)break}g=t}}return new f(i,c,g,e.getLine(g).length)},this.getCommentRegionBlock=function(e,t,o){for(var l=t.search(/\s*$/),i=e.getLength(),c=o,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,r=1;++o<i;){t=e.getLine(o);var k=g.exec(t);if(k&&(k[1]?r--:r++,!r))break}var h=o;if(h>c)return new f(c,l,h,t.length)}}.call(p.prototype)}),ace.define("ace/mode/maze",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/maze_highlight_rules","ace/mode/folding/cstyle"],function(n,a,m){var d=n("../lib/oop"),f=n("./text").Mode,s=n("./maze_highlight_rules").MazeHighlightRules,p=n("./folding/cstyle").FoldMode,e=function(){this.HighlightRules=s,this.foldingRules=new p,this.$behaviour=this.$defaultBehaviour};d.inherits(e,f),function(){this.lineCommentStart="//",this.$id="ace/mode/maze",this.snippetFileId="ace/snippets/maze"}.call(e.prototype),a.Mode=e}),function(){ace.require(["ace/mode/maze"],function(n){u&&(u.exports=n)})}()})(v);var x=v.exports;const z=R(x),S=M({__proto__:null,default:z},[x]);export{S as m};
|