import{b$ as _}from"./vendor.c7523e55.js";function g(c,d){return d.forEach(function(u){u&&typeof u!="string"&&!Array.isArray(u)&&Object.keys(u).forEach(function(o){if(o!=="default"&&!(o in c)){var i=Object.getOwnPropertyDescriptor(u,o);Object.defineProperty(c,o,i.get?i:{enumerable:!0,get:function(){return u[o]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(c,d){(function(u){u(_.exports)})(function(u){u.defineMode("fcl",function(o){var i=o.indentUnit,y={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},p={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},l={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},s={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},b=/[+\-*&^%:=<>!|\/]/;function a(e,t){var n=e.next();if(/[\d\.]/.test(n))return n=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):n=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(n=="/"||n=="("){if(e.eat("*"))return t.tokenize=m,m(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(b.test(n))return e.eatWhile(b),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return y.propertyIsEnumerable(r)||p.propertyIsEnumerable(r)||l.propertyIsEnumerable(r)?"keyword":s.propertyIsEnumerable(r)?"atom":"variable"}function m(e,t){for(var n=!1,r;r=e.next();){if((r=="/"||r==")")&&n){t.tokenize=a;break}n=r=="*"}return"comment"}function v(e,t,n,r,f){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=f}function h(e,t,n){return e.context=new v(e.indented,t,n,null,e.context)}function k(e){if(!!e.context.prev){var t=e.context.type;return t=="end_block"&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new v((e||0)-i,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var r=(t.tokenize||a)(e,t);if(r=="comment")return r;n.align==null&&(n.align=!0);var f=e.current().toLowerCase();return p.propertyIsEnumerable(f)?h(t,e.column(),"end_block"):l.propertyIsEnumerable(f)&&k(t),t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=a&&e.tokenize!=null)return 0;var n=e.context,r=l.propertyIsEnumerable(t);return n.align?n.column+(r?0:1):n.indented+(r?0:i)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),u.defineMIME("text/x-fcl","fcl")})})();var z=x.exports,C=g({__proto__:null,default:z},[x.exports]);export{C as f};
