import{A as m}from"./index.f4d41e67.entry.js";function D(l,d){return d.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(u){if(u!=="default"&&!(u in l)){var a=Object.getOwnPropertyDescriptor(i,u);Object.defineProperty(l,u,a.get?a:{enumerable:!0,get:function(){return i[u]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(l,d){(function(i){i(m.exports)})(function(i){i.defineMode("sparql",function(u){var a=u.indentUnit,o;function x(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var v=x(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),y=x(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load"]),s=/[*+\-<>=&|\^\/!\?]/;function F(e,n){var t=e.next();if(o=null,t=="$"||t=="?")return t=="?"&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variable-2");if(t=="<"&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if(t=='"'||t=="'")return n.tokenize=b(t),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(t))return o=t,"bracket";if(t=="#")return e.skipToEnd(),"comment";if(t==="^")return t=e.peek(),t==="^"?e.eat("^"):e.eatWhile(s),"operator";if(s.test(t))return e.eatWhile(s),"operator";if(t==":")return h(e),"atom";if(t=="@")return e.eatWhile(/[a-z\d\-]/i),"meta";if(e.eatWhile(/[_\w\d]/),e.eat(":"))return h(e),"atom";var r=e.current();return v.test(r)?"builtin":y.test(r)?"keyword":"variable"}function h(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function b(e){return function(n,t){for(var r=!1,c;(c=n.next())!=null;){if(c==e&&!r){t.tokenize=F;break}r=!r&&c=="\\"}return"string"}}function f(e,n,t){e.context={prev:e.context,indent:e.indent,col:t,type:n}}function p(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:F,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&n.context.align==null&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var t=n.tokenize(e,n);if(t!="comment"&&n.context&&n.context.align==null&&n.context.type!="pattern"&&(n.context.align=!0),o=="(")f(n,")",e.column());else if(o=="[")f(n,"]",e.column());else if(o=="{")f(n,"}",e.column());else if(/[\]\}\)]/.test(o)){for(;n.context&&n.context.type=="pattern";)p(n);n.context&&o==n.context.type&&(p(n),o=="}"&&n.context&&n.context.type=="pattern"&&p(n))}else o=="."&&n.context&&n.context.type=="pattern"?p(n):/atom|string|variable/.test(t)&&n.context&&(/[\}\]]/.test(n.context.type)?f(n,"pattern",e.column()):n.context.type=="pattern"&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return t},indent:function(e,n){var t=n&&n.charAt(0),r=e.context;if(/[\]\}]/.test(t))for(;r&&r.type=="pattern";)r=r.prev;var c=r&&t==r.type;return r?r.type=="pattern"?r.col:r.align?r.col+(c?0:1):r.indent+(c?0:a):0},lineComment:"#"}}),i.defineMIME("application/sparql-query","sparql")})})();var _=g.exports,w=D({__proto__:null,default:_},[g.exports]);export{w as s};
