import{A as Z}from"./index.f4d41e67.entry.js";function N(t,k){return k.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(u){if(u!=="default"&&!(u in t)){var d=Object.getOwnPropertyDescriptor(o,u);Object.defineProperty(t,u,d.get?d:{enumerable:!0,get:function(){return o[u]}})}})}),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(t,k){(function(o){o(Z.exports)})(function(o){o.defineMode("coffeescript",function(u,d){var g="error";function v(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var z=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,A=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,x=/^[_A-Za-z$][_A-Za-z$0-9]*/,O=/^@[_A-Za-z$][_A-Za-z$0-9]*/,E=v(["and","or","not","is","isnt","in","instanceof","typeof"]),h=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],_=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],s=v(h.concat(_));h=v(h);var S=/^('{3}|\"{3}|['\"])/,j=/^(\/{3}|\/)/,P=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],$=v(P);function l(e,n){if(e.sol()){n.scope.align===null&&(n.scope.align=!1);var r=n.scope.offset;if(e.eatSpace()){var i=e.indentation();return i>r&&n.scope.type=="coffee"?"indent":i<r?"dedent":null}else r>0&&y(e,n)}if(e.eatSpace())return null;var f=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return n.tokenize=M,n.tokenize(e,n);if(f==="#")return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var p=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(p=!0),e.match(/^-?\d+\.\d*/)&&(p=!0),e.match(/^-?\.\d+/)&&(p=!0),p)return e.peek()=="."&&e.backUp(1),"number";var c=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(c=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(c=!0),e.match(/^-?0(?![\dx])/i)&&(c=!0),c)return"number"}if(e.match(S))return n.tokenize=b(e.current(),!1,"string"),n.tokenize(e,n);if(e.match(j)){if(e.current()!="/"||e.match(/^.*\//,!1))return n.tokenize=b(e.current(),!0,"string-2"),n.tokenize(e,n);e.backUp(1)}return e.match(z)||e.match(E)?"operator":e.match(A)?"punctuation":e.match($)?"atom":e.match(O)||n.prop&&e.match(x)?"property":e.match(s)?"keyword":e.match(x)?"variable":(e.next(),g)}function b(e,n,r){return function(i,f){for(;!i.eol();)if(i.eatWhile(/[^'"\/\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return f.tokenize=l,r;i.eat(/['"\/]/)}return n&&(d.singleLineStringErrors?r=g:f.tokenize=l),r}}function M(e,n){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){n.tokenize=l;break}e.eatWhile("#")}return"comment"}function a(e,n,r){r=r||"coffee";for(var i=0,f=!1,p=null,c=n.scope;c;c=c.prev)if(c.type==="coffee"||c.type=="}"){i=c.offset+u.indentUnit;break}r!=="coffee"?(f=null,p=e.column()+e.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:f,alignOffset:p}}function y(e,n){if(!!n.scope.prev)if(n.scope.type==="coffee"){for(var r=e.indentation(),i=!1,f=n.scope;f;f=f.prev)if(r===f.offset){i=!0;break}if(!i)return!0;for(;n.scope.prev&&n.scope.offset!==r;)n.scope=n.scope.prev;return!1}else return n.scope=n.scope.prev,!1}function R(e,n){var r=n.tokenize(e,n),i=e.current();i==="return"&&(n.dedent=!0),((i==="->"||i==="=>")&&e.eol()||r==="indent")&&a(e,n);var f="[({".indexOf(i);if(f!==-1&&a(e,n,"])}".slice(f,f+1)),h.exec(i)&&a(e,n),i=="then"&&y(e,n),r==="dedent"&&y(e,n))return g;if(f="])}".indexOf(i),f!==-1){for(;n.scope.type=="coffee"&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==i&&(n.scope=n.scope.prev)}return n.dedent&&e.eol()&&(n.scope.type=="coffee"&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),r}var I={startState:function(e){return{tokenize:l,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,n){var r=n.scope.align===null&&n.scope;r&&e.sol()&&(r.align=!1);var i=R(e,n);return i&&i!="comment"&&(r&&(r.align=!0),n.prop=i=="punctuation"&&e.current()=="."),i},indent:function(e,n){if(e.tokenize!=l)return 0;var r=e.scope,i=n&&"])}".indexOf(n.charAt(0))>-1;if(i)for(;r.type=="coffee"&&r.prev;)r=r.prev;var f=i&&r.type===n.charAt(0);return r.align?r.alignOffset-(f?1:0):(f?r.prev:r).offset},lineComment:"#",fold:"indent"};return I}),o.defineMIME("application/vnd.coffeescript","coffeescript"),o.defineMIME("text/x-coffeescript","coffeescript"),o.defineMIME("text/coffeescript","coffeescript")})})();var T=w.exports,W=N({__proto__:null,default:T},[w.exports]);export{w as a,W as c};
