"use strict";(self.rspackChunk_JUPYTERLAB_CORE_OUTPUT=self.rspackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5599],{40322(e,t,r){function n(e,t,r){return t(r),r(e,t)}r.d(t,{elm:()=>d});var i=/[a-z]/,a=/[A-Z]/,o=/[a-zA-Z0-9_]/,u=/[0-9]/,f=/[0-9A-Fa-f]/,s=/[-&*+.\\/<>=?^|:]/,l=/[(),[\]{}]/,c=/[ \v\f]/;function k(){return function(e,t){if(e.eatWhile(c))return null;var r=e.next();if(l.test(r))return"{"===r&&e.eat("-")?n(e,t,function e(t){return 0==t?k():function(r,n){for(;!r.eol();){var i=r.next();if("{"==i&&r.eat("-"))++t;else if("-"==i&&r.eat("}")&&0==--t)return n(k()),"comment"}return n(e(t)),"comment"}}(1)):"["===r&&e.match("glsl|")?n(e,t,T):"builtin";if("'"===r)return n(e,t,h);if('"'===r)return e.eat('"')?e.eat('"')?n(e,t,p):"string":n(e,t,m);if(a.test(r))return e.eatWhile(o),"type";if(i.test(r)){var x=1===e.pos;return e.eatWhile(o),x?"def":"variable"}if(u.test(r)){if("0"===r){if(e.eat(/[xX]/))return e.eatWhile(f),"number"}else e.eatWhile(u);return e.eat(".")&&e.eatWhile(u),e.eat(/[eE]/)&&(e.eat(/[-+]/),e.eatWhile(u)),"number"}return s.test(r)?"-"===r&&e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(s),"keyword"):"_"===r?"keyword":"error"}}function p(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"')){t(k());break}return"string"}function m(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(k()),"string"):(e.skipToEnd(),t(k()),"error")}function h(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(k()),"string"):(e.skipToEnd(),t(k()),"error")}function T(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]")){t(k());break}return"string"}var x={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};let d={name:"elm",startState:function(){return{f:k()}},copyState:function(e){return{f:e.f}},token:function(e,t){var r=t.f(e,function(e){t.f=e}),n=e.current();return x.hasOwnProperty(n)?"keyword":r},languageData:{commentTokens:{line:"--"}}}}}]);