@matdata/yasqe 4.7.4 → 4.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see yasqe.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Yasqe",[],t):"object"==typeof exports?exports.Yasqe=t():e.Yasqe=t()}(self,()=>(()=>{var __webpack_modules__={160:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),i=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],n(r),n(i))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],i=1;i<t.length;i++)t=(e=n(t,i).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=o(r[0]);n!==r[0]&&(t[r[0]]=n)}r=i.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},232:(e,t,r)=>{var i=r(8541)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},365:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(4360);function n(e,t){if(t&&("object"==(0,i.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},666:(e,t,r)=>{!function(e){"use strict";function t(t){return function(r,i){var n=i.line,o=r.getLine(n);function s(t){for(var s,a=i.ch,l=0;;){var u=a<=0?-1:o.lastIndexOf(t[0],a-1);if(-1!=u){if(1==l&&u<i.ch)break;if(s=r.getTokenTypeAt(e.Pos(n,u+1)),!/^(comment|string)/.test(s))return{ch:u+1,tokenType:s,pair:t};a=u-1}else{if(1==l)break;l=1,a=o.length}}}function a(t){var i,o,s=1,a=r.lastLine(),l=t.ch;e:for(var u=n;u<=a;++u)for(var c=r.getLine(u),p=u==n?l:0;;){var d=c.indexOf(t.pair[0],p),h=c.indexOf(t.pair[1],p);if(d<0&&(d=c.length),h<0&&(h=c.length),(p=Math.min(d,h))==c.length)break;if(r.getTokenTypeAt(e.Pos(u,p+1))==t.tokenType)if(p==d)++s;else if(! --s){i=u,o=p;break e}++p}return null==i||n==i?null:{from:e.Pos(n,l),to:e.Pos(i,o)}}for(var l=[],u=0;u<t.length;u++){var c=s(t[u]);c&&l.push(c)}for(l.sort(function(e,t){return e.ch-t.ch}),u=0;u<l.length;u++){var p=a(l[u]);if(p)return p}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(t,r){function i(r){if(r<t.firstLine()||r>t.lastLine())return null;var i=t.getTokenAt(e.Pos(r,1));if(/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(r,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var n=r,o=Math.min(t.lastLine(),r+10);n<=o;++n){var s=t.getLine(n).indexOf(";");if(-1!=s)return{startCh:i.end,end:e.Pos(n,s)}}}var n,o=r.line,s=i(o);if(!s||i(o-1)||(n=i(o-2))&&n.end.line==o-1)return null;for(var a=s.end;;){var l=i(a.line+1);if(null==l)break;a=l.end}return{from:t.clipPos(e.Pos(o,s.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t,r){function i(r){if(r<t.firstLine()||r>t.lastLine())return null;var i=t.getTokenAt(e.Pos(r,1));return/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(r,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var n=r.line,o=i(n);if(null==o||null!=i(n-1))return null;for(var s=n;null!=i(s+1);)++s;return{from:e.Pos(n,o+1),to:t.clipPos(e.Pos(s))}})}(r(1719))},732:(e,t,r)=>{var i=r(7589),n=i.Global,o=i.trim;e.exports={name:"cookieStorage",read:function(e){if(!e||!u(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(t),"$1"))},write:function(e,t){if(!e)return;s.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:l,clearAll:function(){a(function(e,t){l(t)})}};var s=n.document;function a(e){for(var t=s.cookie.split(/; ?/g),r=t.length-1;r>=0;r--)if(o(t[r])){var i=t[r].split("="),n=unescape(i[0]);e(unescape(i[1]),n)}}function l(e){e&&u(e)&&(s.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},761:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(8086);const n=function(e){if("string"==typeof e||(0,i.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},815:()=>{"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var r,i,n,o,s,a=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,r=0;r<o;r+=1)s[r]=str(r,l)||"null";return n=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,n}if(rep&&"object"==typeof rep)for(o=rep.length,r=0;r<o;r+=1)"string"==typeof rep[r]&&(n=str(i=rep[r],l))&&s.push(quote(i)+(gap?": ":":")+n);else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n=str(i,l))&&s.push(quote(i)+(gap?": ":":")+n);return n=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,n}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,r){var i;if(gap="",indent="","number"==typeof r)for(i=0;i<r;i+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,i,n=e[t];if(n&&"object"==typeof n)for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(void 0!==(i=walk(n,r))?n[r]=i:delete n[r]);return reviver.call(e,t,n)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},946:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(){return e}}},991:(e,t,r)=>{"use strict";r.r(t)},1100:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return e}},1115:(e,t,r)=>{var i=r(1461),n=r(1907);e.exports=function(e,t,r,o,s){return new n(i().w(e,t,r,o),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1273:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(5168);const n=function(e){var t=new e.constructor(e.byteLength);return new i.A(t).set(new i.A(e)),t}},1408:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var i=r(3779),n=r(8412);const o=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const s=function(e){return this.__data__.has(e)};function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n.A;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=s;const l=a;const u=function(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1};const c=function(e,t){return e.has(t)};const p=function(e,t,r,i,n,o){var s=1&r,a=e.length,p=t.length;if(a!=p&&!(s&&p>a))return!1;var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=-1,E=!0,m=2&r?new l:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var g=e[f],v=t[f];if(i)var x=s?i(v,g,f,t,e,o):i(g,v,f,e,t,o);if(void 0!==x){if(x)continue;E=!1;break}if(m){if(!u(t,function(e,t){if(!c(m,t)&&(g===e||n(g,e,r,i,o)))return m.push(t)})){E=!1;break}}else if(g!==v&&!n(g,v,r,i,o)){E=!1;break}}return o.delete(e),o.delete(t),E};var d=r(7181),h=r(5168),f=r(7348);const E=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r};const m=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r};var g=d.A?d.A.prototype:void 0,v=g?g.valueOf:void 0;const x=function(e,t,r,i,n,o,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new h.A(e),new h.A(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=E;case"[object Set]":var l=1&i;if(a||(a=m),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=2,s.set(e,t);var c=p(a(e),a(t),i,n,o,s);return s.delete(e),c;case"[object Symbol]":if(v)return v.call(e)==v.call(t)}return!1};var N=r(6886),y=Object.prototype.hasOwnProperty;const A=function(e,t,r,i,n,o){var s=1&r,a=(0,N.A)(e),l=a.length;if(l!=(0,N.A)(t).length&&!s)return!1;for(var u=l;u--;){var c=a[u];if(!(s?c in t:y.call(t,c)))return!1}var p=o.get(e),d=o.get(t);if(p&&d)return p==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=s;++u<l;){var E=e[c=a[u]],m=t[c];if(i)var g=s?i(m,E,c,t,e,o):i(E,m,c,e,t,o);if(!(void 0===g?E===m||n(E,m,r,i,o):g)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var v=e.constructor,x=t.constructor;v==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof x&&x instanceof x||(h=!1)}return o.delete(e),o.delete(t),h};var L=r(4889),T=r(8285),I=r(6118),S=r(4249),C="[object Arguments]",R="[object Array]",b="[object Object]",O=Object.prototype.hasOwnProperty;const _=function(e,t,r,n,o,s){var a=(0,T.A)(e),l=(0,T.A)(t),u=a?R:(0,L.A)(e),c=l?R:(0,L.A)(t),d=(u=u==C?b:u)==b,h=(c=c==C?b:c)==b,f=u==c;if(f&&(0,I.A)(e)){if(!(0,I.A)(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new i.A),a||(0,S.A)(e)?p(e,t,r,n,o,s):x(e,t,u,r,n,o,s);if(!(1&r)){var E=d&&O.call(e,"__wrapped__"),m=h&&O.call(t,"__wrapped__");if(E||m){var g=E?e.value():e,v=m?t.value():t;return s||(s=new i.A),o(g,v,r,n,s)}}return!!f&&(s||(s=new i.A),A(e,t,r,n,o,s))};var P=r(8214);const w=function e(t,r,i,n,o){return t===r||(null==t||null==r||!(0,P.A)(t)&&!(0,P.A)(r)?t!=t&&r!=r:_(t,r,i,n,e,o))}},1461:(e,t,r)=>{var i=r(6918);function n(){var t,r,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(e,n,o,s){var a=n&&n.prototype instanceof c?n:c,l=Object.create(a.prototype);return i(l,"_invoke",function(e,i,n){var o,s,a,l=0,c=n||[],p=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return o=e,s=0,a=t,d.n=r,u}};function h(e,i){for(s=e,a=i,r=0;!p&&l&&!n&&r<c.length;r++){var n,o=c[r],h=d.p,f=o[2];e>3?(n=f===i)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=h&&((n=e<2&&h<o[1])?(s=0,d.v=i,d.n=o[1]):h<f&&(n=e<3||o[0]>i||i>f)&&(o[4]=e,o[5]=i,d.n=f,s=0))}if(n||e>1)return u;throw p=!0,i}return function(n,c,f){if(l>1)throw TypeError("Generator is already running");for(p&&1===c&&h(c,f),s=c,a=f;(r=s<2?t:a)||!p;){o||(s?s<3?(s>1&&(d.n=-1),h(s,a)):d.n=a:d.v=a);try{if(l=2,o){if(s||(n="next"),r=o[n]){if(!(r=r.call(o,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,s<2&&(s=0)}else 1===s&&(r=o.return)&&r.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+n+"' method"),s=1);o=t}else if((r=(p=d.n<0)?a:e.call(i,d))!==u)break}catch(e){o=t,s=1,a=e}finally{l=1}}return{value:r,done:p}}}(e,o,s),!0),l}var u={};function c(){}function p(){}function d(){}r=Object.getPrototypeOf;var h=[][s]?r(r([][s]())):(i(r={},s,function(){return this}),r),f=d.prototype=c.prototype=Object.create(h);function E(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return p.prototype=d,i(f,"constructor",d),i(d,"constructor",p),p.displayName="GeneratorFunction",i(d,a,"GeneratorFunction"),i(f),i(f,a,"Generator"),i(f,s,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:l,m:E}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},1671:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var i=r(9790);const n=r(8377).A["__core-js_shared__"];var o,s=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";const a=function(e){return!!s&&s in e};var l=r(6809),u=r(5549),c=/^\[object .+?Constructor\]$/,p=Function.prototype,d=Object.prototype,h=p.toString,f=d.hasOwnProperty,E=RegExp("^"+h.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,l.A)(e)||a(e))&&((0,i.A)(e)?E:c).test((0,u.A)(e))};const g=function(e,t){return null==e?void 0:e[t]};const v=function(e,t){var r=g(e,t);return m(r)?r:void 0}},1697:e=>{e.exports=function(e){var t=Object(e),r=[];for(var i in t)r.unshift(i);return function e(){for(;r.length;)if((i=r.pop())in t)return e.value=i,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},1719:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),n=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),s=i||n||o,a=s&&(i?document.documentMode||6:+(o||n)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),p=c&&+c[1],d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),E=/PhantomJS/.test(e),m=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=m||/Mac/.test(t),N=/\bCrOS\b/.test(e),y=/win/i.test(t),A=d&&e.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(d=!1,l=!0);var L=x&&(u||d&&(null==A||A<12.11)),T=r||s&&a>=9;function I(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,C=function(e,t){var r=e.className,i=I(t).exec(r);if(i){var n=r.slice(i.index+i[0].length);e.className=r.slice(0,i.index)+(n?i[1]+n:"")}};function R(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function b(e,t){return R(e).appendChild(t)}function O(e,t,r,i){var n=document.createElement(e);if(r&&(n.className=r),i&&(n.style.cssText=i),"string"==typeof t)n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}function _(e,t,r,i){var n=O(e,t,r,i);return n.setAttribute("role","presentation"),n}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function w(e){var t,r=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=r.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function D(e,t){var r=e.className;I(t).test(r)||(e.className+=(r?" ":"")+t)}function M(e,t){for(var r=e.split(" "),i=0;i<r.length;i++)r[i]&&!I(r[i]).test(t)&&(t+=" "+r[i]);return t}S=document.createRange?function(e,t,r,i){var n=document.createRange();return n.setEnd(i||e,r),n.setStart(e,t),n}:function(e,t,r){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",r),i.moveStart("character",t),i};var k=function(e){e.select()};function G(e){return e.display.wrapper.ownerDocument}function U(e){return B(e.display.wrapper)}function B(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function F(e){return G(e).defaultView}function V(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function H(e,t,r){for(var i in t||(t={}),e)!e.hasOwnProperty(i)||!1===r&&t.hasOwnProperty(i)||(t[i]=e[i]);return t}function j(e,t,r,i,n){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=i||0,s=n||0;;){var a=e.indexOf("\t",o);if(a<0||a>=t)return s+(t-o);s+=a-o,s+=r-s%r,o=a+1}}m?k=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:s&&(k=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};function W(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var z=50,Y={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},X={origin:"*mouse"},$={origin:"+move"};function Q(e,t,r){for(var i=0,n=0;;){var o=e.indexOf("\t",i);-1==o&&(o=e.length);var s=o-i;if(o==e.length||n+s>=t)return i+Math.min(s,t-n);if(n+=o-i,i=o+1,(n+=r-n%r)>=t)return i}}var Z=[""];function J(e){for(;Z.length<=e;)Z.push(ee(Z)+" ");return Z[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var r=[],i=0;i<e.length;i++)r[i]=t(e[i],i);return r}function re(e,t,r){for(var i=0,n=r(t);i<e.length&&r(e[i])<=n;)i++;e.splice(i,0,t)}function ie(){}function ne(e,t){var r;return Object.create?r=Object.create(e):(ie.prototype=e,r=new ie),t&&H(t,r),r}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function se(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&se(e))||t.test(e):se(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(e){return e.charCodeAt(0)>=768&&ue.test(e)}function pe(e,t,r){for(;(r<0?t>0:t<e.length)&&ce(e.charAt(t));)t+=r;return t}function de(e,t,r){for(var i=t>r?-1:1;;){if(t==r)return t;var n=(t+r)/2,o=i<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+i}}function he(e,t,r,i){if(!e)return i(t,r,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var s=e[o];(s.from<r&&s.to>t||t==r&&s.to==t)&&(i(Math.max(s.from,t),Math.min(s.to,r),1==s.level?"rtl":"ltr",o),n=!0)}n||i(t,r,"ltr")}var fe=null;function Ee(e,t,r){var i;fe=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&"before"==r?i=n:fe=n),o.from==t&&(o.from!=o.to&&"before"!=r?i=n:fe=n)}return null!=i?i:fe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,s=/[Lb1n]/,a=/[1n]/;function l(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var c=e.length,p=[],d=0;d<c;++d)p.push(r(e.charCodeAt(d)));for(var h=0,f=u;h<c;++h){var E=p[h];"m"==E?p[h]=f:f=E}for(var m=0,g=u;m<c;++m){var v=p[m];"1"==v&&"r"==g?p[m]="n":o.test(v)&&(g=v,"r"==v&&(p[m]="R"))}for(var x=1,N=p[0];x<c-1;++x){var y=p[x];"+"==y&&"1"==N&&"1"==p[x+1]?p[x]="1":","!=y||N!=p[x+1]||"1"!=N&&"n"!=N||(p[x]=N),N=y}for(var A=0;A<c;++A){var L=p[A];if(","==L)p[A]="N";else if("%"==L){var T=void 0;for(T=A+1;T<c&&"%"==p[T];++T);for(var I=A&&"!"==p[A-1]||T<c&&"1"==p[T]?"1":"N",S=A;S<T;++S)p[S]=I;A=T-1}}for(var C=0,R=u;C<c;++C){var b=p[C];"L"==R&&"1"==b?p[C]="L":o.test(b)&&(R=b)}for(var O=0;O<c;++O)if(n.test(p[O])){var _=void 0;for(_=O+1;_<c&&n.test(p[_]);++_);for(var P="L"==(O?p[O-1]:u),w=P==("L"==(_<c?p[_]:u))?P?"L":"R":u,D=O;D<_;++D)p[D]=w;O=_-1}for(var M,k=[],G=0;G<c;)if(s.test(p[G])){var U=G;for(++G;G<c&&s.test(p[G]);++G);k.push(new l(0,U,G))}else{var B=G,F=k.length,V="rtl"==t?1:0;for(++G;G<c&&"L"!=p[G];++G);for(var H=B;H<G;)if(a.test(p[H])){B<H&&(k.splice(F,0,new l(1,B,H)),F+=V);var j=H;for(++H;H<G&&a.test(p[H]);++H);k.splice(F,0,new l(2,j,H)),F+=V,B=H}else++H;B<G&&k.splice(F,0,new l(1,B,G))}return"ltr"==t&&(1==k[0].level&&(M=e.match(/^\s+/))&&(k[0].from=M[0].length,k.unshift(new l(0,0,M[0].length))),1==ee(k).level&&(M=e.match(/\s+$/))&&(ee(k).to-=M[0].length,k.push(new l(0,c-M[0].length,c)))),"rtl"==t?k.reverse():k}}();function ge(e,t){var r=e.order;return null==r&&(r=e.order=me(e.text,t)),r}var ve=[],xe=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||ve).concat(r)}};function Ne(e,t){return e._handlers&&e._handlers[t]||ve}function ye(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var i=e._handlers,n=i&&i[t];if(n){var o=W(n,r);o>-1&&(i[t]=n.slice(0,o).concat(n.slice(o+1)))}}}function Ae(e,t){var r=Ne(e,t);if(r.length)for(var i=Array.prototype.slice.call(arguments,2),n=0;n<r.length;++n)r[n].apply(null,i)}function Le(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ae(e,r||t.type,e,t),be(t)||t.codemirrorIgnore}function Te(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)-1==W(r,t[i])&&r.push(t[i])}function Ie(e,t){return Ne(e,t).length>0}function Se(e){e.prototype.on=function(e,t){xe(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Re(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function be(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){Ce(e),Re(e)}function _e(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var we,De,Me=function(){if(s&&a<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function ke(e){if(null==we){var t=O("span","​");b(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(we=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&a<8))}var r=we?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ge(e){if(null!=De)return De;var t=b(e,document.createTextNode("AخA")),r=S(t,0,1).getBoundingClientRect(),i=S(t,1,2).getBoundingClientRect();return R(e),!(!r||r.left==r.right)&&(De=i.right-r.right<3)}var Ue,Be=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],i=e.length;t<=i;){var n=e.indexOf("\n",t);-1==n&&(n=e.length);var o=e.slice(t,"\r"==e.charAt(n-1)?n-1:n),s=o.indexOf("\r");-1!=s?(r.push(o.slice(0,s)),t+=s+1):(r.push(o),t=n+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ve="oncopy"in(Ue=O("div"))||(Ue.setAttribute("oncopy","return;"),"function"==typeof Ue.oncopy),He=null;function je(e){if(null!=He)return He;var t=b(e,O("span","x")),r=t.getBoundingClientRect(),i=S(t,0,1).getBoundingClientRect();return He=Math.abs(r.left-i.left)>1}var qe={},We={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Ye(e,t){We[e]=t}function Ke(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Xe(e,t){t=Ke(t);var r=qe[t.name];if(!r)return Xe(e,"text/plain");var i=r(e,t);if($e.hasOwnProperty(t.name)){var n=$e[t.name];for(var o in n)n.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=n[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var s in t.modeProps)i[s]=t.modeProps[s];return i}var $e={};function Qe(e,t){H(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function Ze(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var i in t){var n=t[i];n instanceof Array&&(n=n.concat([])),r[i]=n}return r}function Je(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function et(e,t,r){return!e.startState||e.startState(t,r)}var tt=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function rt(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var i=0;;++i){var n=r.children[i],o=n.chunkSize();if(t<o){r=n;break}t-=o}return r.lines[t]}function it(e,t,r){var i=[],n=t.line;return e.iter(t.line,r.line+1,function(e){var o=e.text;n==r.line&&(o=o.slice(0,r.ch)),n==t.line&&(o=o.slice(t.ch)),i.push(o),++n}),i}function nt(e,t,r){var i=[];return e.iter(t,r,function(e){i.push(e.text)}),i}function ot(e,t){var r=t-e.height;if(r)for(var i=e;i;i=i.parent)i.height+=r}function st(e){if(null==e.parent)return null;for(var t=e.parent,r=W(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var n=0;i.children[n]!=t;++n)r+=i.children[n].chunkSize();return r+t.first}function at(e,t){var r=e.first;e:do{for(var i=0;i<e.children.length;++i){var n=e.children[i],o=n.height;if(t<o){e=n;continue e}t-=o,r+=n.chunkSize()}return r}while(!e.lines);for(var s=0;s<e.lines.length;++s){var a=e.lines[s].height;if(t<a)break;t-=a}return r+s}function lt(e,t){return t>=e.first&&t<e.first+e.size}function ut(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ct(e,t,r){if(void 0===r&&(r=null),!(this instanceof ct))return new ct(e,t,r);this.line=e,this.ch=t,this.sticky=r}function pt(e,t){return e.line-t.line||e.ch-t.ch}function dt(e,t){return e.sticky==t.sticky&&0==pt(e,t)}function ht(e){return ct(e.line,e.ch)}function ft(e,t){return pt(e,t)<0?t:e}function Et(e,t){return pt(e,t)<0?e:t}function mt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function gt(e,t){if(t.line<e.first)return ct(e.first,0);var r=e.first+e.size-1;return t.line>r?ct(r,rt(e,r).text.length):vt(t,rt(e,t.line).text.length)}function vt(e,t){var r=e.ch;return null==r||r>t?ct(e.line,t):r<0?ct(e.line,0):e}function xt(e,t){for(var r=[],i=0;i<t.length;i++)r[i]=gt(e,t[i]);return r}tt.prototype.eol=function(){return this.pos>=this.string.length},tt.prototype.sol=function(){return this.pos==this.lineStart},tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},tt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},tt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},tt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tt.prototype.skipToEnd=function(){this.pos=this.string.length},tt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},tt.prototype.backUp=function(e){this.pos-=e},tt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},tt.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},tt.prototype.match=function(e,t,r){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var n=function(e){return r?e.toLowerCase():e};if(n(this.string.substr(this.pos,e.length))==n(e))return!1!==t&&(this.pos+=e.length),!0},tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},tt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},tt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},tt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Nt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,r,i){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function At(e,t,r,i){var n=[e.state.modeGen],o={};_t(e,t.text,e.doc.mode,r,function(e,t){return n.push(e,t)},o,i);for(var s=r.state,a=function(i){r.baseTokens=n;var a=e.state.overlays[i],l=1,u=0;r.state=!0,_t(e,t.text,a.mode,r,function(e,t){for(var r=l;u<e;){var i=n[l];i>e&&n.splice(l,1,e,n[l+1],i),l+=2,u=Math.min(e,i)}if(t)if(a.opaque)n.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;r<l;r+=2){var o=n[r+1];n[r+1]=(o?o+" ":"")+"overlay "+t}},o),r.state=s,r.baseTokens=null,r.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)a(l);return{styles:n,classes:o.bgClass||o.textClass?o:null}}function Lt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=Tt(e,st(t)),n=t.text.length>e.options.maxHighlightLength&&Ze(e.doc.mode,i.state),o=At(e,t,i);n&&(i.state=n),t.stateAfter=i.save(!n),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Tt(e,t,r){var i=e.doc,n=e.display;if(!i.mode.startState)return new yt(i,!0,t);var o=Pt(e,t,r),s=o>i.first&&rt(i,o-1).stateAfter,a=s?yt.fromSaved(i,s,o):new yt(i,et(i.mode),o);return i.iter(o,t,function(r){It(e,r.text,a);var i=a.line;r.stateAfter=i==t-1||i%5==0||i>=n.viewFrom&&i<n.viewTo?a.save():null,a.nextLine()}),r&&(i.modeFrontier=a.line),a}function It(e,t,r,i){var n=e.doc.mode,o=new tt(t,e.options.tabSize,r);for(o.start=o.pos=i||0,""==t&&St(n,r.state);!o.eol();)Ct(n,o,r.state),o.start=o.pos}function St(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Je(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function Ct(e,t,r,i){for(var n=0;n<10;n++){i&&(i[0]=Je(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,r){return t instanceof Nt?new yt(e,Ze(e.mode,t.state),r,t.lookAhead):new yt(e,Ze(e.mode,t),r)},yt.prototype.save=function(e){var t=!1!==e?Ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nt(t,this.maxLookAhead):t};var Rt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function bt(e,t,r,i){var n,o,s=e.doc,a=s.mode,l=rt(s,(t=gt(s,t)).line),u=Tt(e,t.line,r),c=new tt(l.text,e.options.tabSize,u);for(i&&(o=[]);(i||c.pos<t.ch)&&!c.eol();)c.start=c.pos,n=Ct(a,c,u.state),i&&o.push(new Rt(c,n,Ze(s.mode,u.state)));return i?o:new Rt(c,n,u.state)}function Ot(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var i=r[1]?"bgClass":"textClass";null==t[i]?t[i]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+r[2])}return e}function _t(e,t,r,i,n,o,s){var a=r.flattenSpans;null==a&&(a=e.options.flattenSpans);var l,u=0,c=null,p=new tt(t,e.options.tabSize,i),d=e.options.addModeClass&&[null];for(""==t&&Ot(St(r,i.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(a=!1,s&&It(e,t,i,p.pos),p.pos=t.length,l=null):l=Ot(Ct(r,p,i.state,d),o),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!a||c!=l){for(;u<p.start;)n(u=Math.min(p.start,u+5e3),c);c=l}p.start=p.pos}for(;u<p.pos;){var f=Math.min(p.pos,u+5e3);n(f,c),u=f}}function Pt(e,t,r){for(var i,n,o=e.doc,s=r?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>s;--a){if(a<=o.first)return o.first;var l=rt(o,a-1),u=l.stateAfter;if(u&&(!r||a+(u instanceof Nt?u.lookAhead:0)<=o.modeFrontier))return a;var c=j(l.text,null,e.options.tabSize);(null==n||i>c)&&(n=a-1,i=c)}return n}function wt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,i=t-1;i>r;i--){var n=rt(e,i).stateAfter;if(n&&(!(n instanceof Nt)||i+n.lookAhead<t)){r=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var Dt=!1,Mt=!1;function kt(){Dt=!0}function Gt(){Mt=!0}function Ut(e,t,r){this.marker=e,this.from=t,this.to=r}function Bt(e,t){if(e)for(var r=0;r<e.length;++r){var i=e[r];if(i.marker==t)return i}}function Ft(e,t){for(var r,i=0;i<e.length;++i)e[i]!=t&&(r||(r=[])).push(e[i]);return r}function Vt(e,t,r){var i=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));i&&e.markedSpans&&i.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],i&&i.add(e.markedSpans)),t.marker.attachLine(e)}function Ht(e,t,r){var i;if(e)for(var n=0;n<e.length;++n){var o=e[n],s=o.marker;if(null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==s.type&&(!r||!o.marker.insertLeft)){var a=null==o.to||(s.inclusiveRight?o.to>=t:o.to>t);(i||(i=[])).push(new Ut(s,o.from,a?null:o.to))}}return i}function jt(e,t,r){var i;if(e)for(var n=0;n<e.length;++n){var o=e[n],s=o.marker;if(null==o.to||(s.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==s.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t);(i||(i=[])).push(new Ut(s,a?null:o.from-t,null==o.to?null:o.to-t))}}return i}function qt(e,t){if(t.full)return null;var r=lt(e,t.from.line)&&rt(e,t.from.line).markedSpans,i=lt(e,t.to.line)&&rt(e,t.to.line).markedSpans;if(!r&&!i)return null;var n=t.from.ch,o=t.to.ch,s=0==pt(t.from,t.to),a=Ht(r,n,s),l=jt(i,o,s),u=1==t.text.length,c=ee(t.text).length+(u?n:0);if(a)for(var p=0;p<a.length;++p){var d=a[p];if(null==d.to){var h=Bt(l,d.marker);h?u&&(d.to=null==h.to?null:h.to+c):d.to=n}}if(l)for(var f=0;f<l.length;++f){var E=l[f];null!=E.to&&(E.to+=c),null==E.from?Bt(a,E.marker)||(E.from=c,u&&(a||(a=[])).push(E)):(E.from+=c,u&&(a||(a=[])).push(E))}a&&(a=Wt(a)),l&&l!=a&&(l=Wt(l));var m=[a];if(!u){var g,v=t.text.length-2;if(v>0&&a)for(var x=0;x<a.length;++x)null==a[x].to&&(g||(g=[])).push(new Ut(a[x].marker,null,null));for(var N=0;N<v;++N)m.push(g);m.push(l)}return m}function Wt(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function zt(e,t,r){var i=null;if(e.iter(t.line,r.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||i&&-1!=W(i,r)||(i||(i=[])).push(r)}}),!i)return null;for(var n=[{from:t,to:r}],o=0;o<i.length;++o)for(var s=i[o],a=s.find(0),l=0;l<n.length;++l){var u=n[l];if(!(pt(u.to,a.from)<0||pt(u.from,a.to)>0)){var c=[l,1],p=pt(u.from,a.from),d=pt(u.to,a.to);(p<0||!s.inclusiveLeft&&!p)&&c.push({from:u.from,to:a.from}),(d>0||!s.inclusiveRight&&!d)&&c.push({from:a.to,to:u.to}),n.splice.apply(n,c),l+=c.length-3}}return n}function Yt(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Kt(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Xt(e){return e.inclusiveLeft?-1:0}function $t(e){return e.inclusiveRight?1:0}function Qt(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var i=e.find(),n=t.find(),o=pt(i.from,n.from)||Xt(e)-Xt(t);if(o)return-o;var s=pt(i.to,n.to)||$t(e)-$t(t);return s||t.id-e.id}function Zt(e,t){var r,i=Mt&&e.markedSpans;if(i)for(var n=void 0,o=0;o<i.length;++o)(n=i[o]).marker.collapsed&&null==(t?n.from:n.to)&&(!r||Qt(r,n.marker)<0)&&(r=n.marker);return r}function Jt(e){return Zt(e,!0)}function er(e){return Zt(e,!1)}function tr(e,t){var r,i=Mt&&e.markedSpans;if(i)for(var n=0;n<i.length;++n){var o=i[n];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!r||Qt(r,o.marker)<0)&&(r=o.marker)}return r}function rr(e,t,r,i,n){var o=rt(e,t),s=Mt&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var u=l.marker.find(0),c=pt(u.from,r)||Xt(l.marker)-Xt(n),p=pt(u.to,i)||$t(l.marker)-$t(n);if(!(c>=0&&p<=0||c<=0&&p>=0)&&(c<=0&&(l.marker.inclusiveRight&&n.inclusiveLeft?pt(u.to,r)>=0:pt(u.to,r)>0)||c>=0&&(l.marker.inclusiveRight&&n.inclusiveLeft?pt(u.from,i)<=0:pt(u.from,i)<0)))return!0}}}function ir(e){for(var t;t=Jt(e);)e=t.find(-1,!0).line;return e}function nr(e){for(var t;t=er(e);)e=t.find(1,!0).line;return e}function or(e){for(var t,r;t=er(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function sr(e,t){var r=rt(e,t),i=ir(r);return r==i?t:st(i)}function ar(e,t){if(t>e.lastLine())return t;var r,i=rt(e,t);if(!lr(e,i))return t;for(;r=er(i);)i=r.find(1,!0).line;return st(i)+1}function lr(e,t){var r=Mt&&t.markedSpans;if(r)for(var i=void 0,n=0;n<r.length;++n)if((i=r[n]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&ur(e,t,i))return!0}}function ur(e,t,r){if(null==r.to){var i=r.marker.find(1,!0);return ur(e,i.line,Bt(i.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var n=void 0,o=0;o<t.markedSpans.length;++o)if((n=t.markedSpans[o]).marker.collapsed&&!n.marker.widgetNode&&n.from==r.to&&(null==n.to||n.to!=r.from)&&(n.marker.inclusiveLeft||r.marker.inclusiveRight)&&ur(e,t,n))return!0}function cr(e){for(var t=0,r=(e=ir(e)).parent,i=0;i<r.lines.length;++i){var n=r.lines[i];if(n==e)break;t+=n.height}for(var o=r.parent;o;o=(r=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==r)break;t+=a.height}return t}function pr(e){if(0==e.height)return 0;for(var t,r=e.text.length,i=e;t=Jt(i);){var n=t.find(0,!0);i=n.from.line,r+=n.from.ch-n.to.ch}for(i=e;t=er(i);){var o=t.find(0,!0);r-=i.text.length-o.from.ch,r+=(i=o.to.line).text.length-o.to.ch}return r}function dr(e){var t=e.display,r=e.doc;t.maxLine=rt(r,r.first),t.maxLineLength=pr(t.maxLine),t.maxLineChanged=!0,r.iter(function(e){var r=pr(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}var hr=function(e,t,r){this.text=e,Kt(this,t),this.height=r?r(this):1};function fr(e,t,r,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Yt(e),Kt(e,r);var n=i?i(e):1;n!=e.height&&ot(e,n)}function Er(e){e.parent=null,Yt(e)}hr.prototype.lineNo=function(){return st(this)},Se(hr);var mr={},gr={};function vr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?gr:mr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function xr(e,t){var r=_("span",null,null,l?"padding-right: .1px":null),i={pre:_("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var o=n?t.rest[n-1]:t.line,s=void 0;i.pos=0,i.addToken=yr,Ge(e.display.measure)&&(s=ge(o,e.doc.direction))&&(i.addToken=Lr(i.addToken,s)),i.map=[],Ir(o,i,Lt(e,o,t!=e.display.externalMeasured&&st(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=M(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=M(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(ke(e.display.measure))),0==n?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var a=i.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Ae(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=M(i.pre.className,i.textClass||"")),i}function Nr(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function yr(e,t,r,i,n,o,l){if(t){var u,c=e.splitSpaces?Ar(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){u=document.createDocumentFragment();for(var h=0;;){p.lastIndex=h;var f=p.exec(t),E=f?f.index-h:t.length-h;if(E){var m=document.createTextNode(c.slice(h,h+E));s&&a<9?u.appendChild(O("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+E,m),e.col+=E,e.pos+=E}if(!f)break;h+=E+1;var g=void 0;if("\t"==f[0]){var v=e.cm.options.tabSize,x=v-e.col%v;(g=u.appendChild(O("span",J(x),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=x}else"\r"==f[0]||"\n"==f[0]?((g=u.appendChild(O("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),s&&a<9?u.appendChild(O("span",[g])):u.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),s&&a<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||i||n||d||o||l){var N=r||"";i&&(N+=i),n&&(N+=n);var y=O("span",[u],N,o);if(l)for(var A in l)l.hasOwnProperty(A)&&"style"!=A&&"class"!=A&&y.setAttribute(A,l[A]);return e.content.appendChild(y)}e.content.appendChild(u)}}function Ar(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,i="",n=0;n<e.length;n++){var o=e.charAt(n);" "!=o||!r||n!=e.length-1&&32!=e.charCodeAt(n+1)||(o=" "),i+=o,r=" "==o}return i}function Lr(e,t){return function(r,i,n,o,s,a,l){n=n?n+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+i.length;;){for(var p=void 0,d=0;d<t.length&&!((p=t[d]).to>u&&p.from<=u);d++);if(p.to>=c)return e(r,i,n,o,s,a,l);e(r,i.slice(0,p.to-u),n,o,null,a,l),o=null,i=i.slice(p.to-u),u=p.to}}}function Tr(e,t,r,i){var n=!i&&r.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!i&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",r.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function Ir(e,t,r){var i=e.markedSpans,n=e.text,o=0;if(i)for(var s,a,l,u,c,p,d,h=n.length,f=0,E=1,m="",g=0;;){if(g==f){l=u=c=a="",d=null,p=null,g=1/0;for(var v=[],x=void 0,N=0;N<i.length;++N){var y=i[N],A=y.marker;if("bookmark"==A.type&&y.from==f&&A.widgetNode)v.push(A);else if(y.from<=f&&(null==y.to||y.to>f||A.collapsed&&y.to==f&&y.from==f)){if(null!=y.to&&y.to!=f&&g>y.to&&(g=y.to,u=""),A.className&&(l+=" "+A.className),A.css&&(a=(a?a+";":"")+A.css),A.startStyle&&y.from==f&&(c+=" "+A.startStyle),A.endStyle&&y.to==g&&(x||(x=[])).push(A.endStyle,y.to),A.title&&((d||(d={})).title=A.title),A.attributes)for(var L in A.attributes)(d||(d={}))[L]=A.attributes[L];A.collapsed&&(!p||Qt(p.marker,A)<0)&&(p=y)}else y.from>f&&g>y.from&&(g=y.from)}if(x)for(var T=0;T<x.length;T+=2)x[T+1]==g&&(u+=" "+x[T]);if(!p||p.from==f)for(var I=0;I<v.length;++I)Tr(t,0,v[I]);if(p&&(p.from||0)==f){if(Tr(t,(null==p.to?h+1:p.to)-f,p.marker,null==p.from),null==p.to)return;p.to==f&&(p=!1)}}if(f>=h)break;for(var S=Math.min(h,g);;){if(m){var C=f+m.length;if(!p){var R=C>S?m.slice(0,S-f):m;t.addToken(t,R,s?s+l:l,c,f+R.length==g?u:"",a,d)}if(C>=S){m=m.slice(S-f),f=S;break}f=C,c=""}m=n.slice(o,o=r[E++]),s=vr(r[E++],t.cm.options)}}else for(var b=1;b<r.length;b+=2)t.addToken(t,n.slice(o,o=r[b]),vr(r[b+1],t.cm.options))}function Sr(e,t,r){this.line=t,this.rest=or(t),this.size=this.rest?st(ee(this.rest))-r+1:1,this.node=this.text=null,this.hidden=lr(e,t)}function Cr(e,t,r){for(var i,n=[],o=t;o<r;o=i){var s=new Sr(e.doc,rt(e.doc,o),o);i=o+s.size,n.push(s)}return n}var Rr=null;function br(e){Rr?Rr.ops.push(e):e.ownsGroup=Rr={ops:[e],delayedCallbacks:[]}}function Or(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var i=0;i<e.ops.length;i++){var n=e.ops[i];if(n.cursorActivityHandlers)for(;n.cursorActivityCalled<n.cursorActivityHandlers.length;)n.cursorActivityHandlers[n.cursorActivityCalled++].call(null,n.cm)}}while(r<t.length)}function _r(e,t){var r=e.ownsGroup;if(r)try{Or(r)}finally{Rr=null,t(r)}}var Pr=null;function wr(e,t){var r=Ne(e,t);if(r.length){var i,n=Array.prototype.slice.call(arguments,2);Rr?i=Rr.delayedCallbacks:Pr?i=Pr:(i=Pr=[],setTimeout(Dr,0));for(var o=function(e){i.push(function(){return r[e].apply(null,n)})},s=0;s<r.length;++s)o(s)}}function Dr(){var e=Pr;Pr=null;for(var t=0;t<e.length;++t)e[t]()}function Mr(e,t,r,i){for(var n=0;n<t.changes.length;n++){var o=t.changes[n];"text"==o?Br(e,t):"gutter"==o?Vr(e,t,r,i):"class"==o?Fr(e,t):"widget"==o&&Hr(e,t,i)}t.changes=null}function kr(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),s&&a<8&&(e.node.style.zIndex=2)),e.node}function Gr(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var i=kr(t);t.background=i.insertBefore(O("div",null,r),i.firstChild),e.display.input.setUneditable(t.background)}}function Ur(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):xr(e,t)}function Br(e,t){var r=t.text.className,i=Ur(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,Fr(e,t)):r&&(t.text.className=r)}function Fr(e,t){Gr(e,t),t.line.wrapClass?kr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Vr(e,t,r,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var n=kr(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),n.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var s=kr(t),a=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),e.display.input.setUneditable(a),s.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(O("div",ut(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&a.appendChild(O("div",[c],"CodeMirror-gutter-elt","left: "+i.gutterLeft[u]+"px; width: "+i.gutterWidth[u]+"px"))}}}function Hr(e,t,r){t.alignable&&(t.alignable=null);for(var i=I("CodeMirror-linewidget"),n=t.node.firstChild,o=void 0;n;n=o)o=n.nextSibling,i.test(n.className)&&t.node.removeChild(n);qr(e,t,r)}function jr(e,t,r,i){var n=Ur(e,t);return t.text=t.node=n.pre,n.bgClass&&(t.bgClass=n.bgClass),n.textClass&&(t.textClass=n.textClass),Fr(e,t),Vr(e,t,r,i),qr(e,t,i),t.node}function qr(e,t,r){if(Wr(e,t.line,t,r,!0),t.rest)for(var i=0;i<t.rest.length;i++)Wr(e,t.rest[i],t,r,!1)}function Wr(e,t,r,i,n){if(t.widgets)for(var o=kr(r),s=0,a=t.widgets;s<a.length;++s){var l=a[s],u=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),zr(l,u,r,i),e.display.input.setUneditable(u),n&&l.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),wr(l,"redraw")}}function zr(e,t,r,i){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var n=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(n-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=n+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function Yr(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!P(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),b(t.display.measure,O("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Kr(e,t){for(var r=_e(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Xr(e){return e.lineSpace.offsetTop}function $r(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Qr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=b(e.measure,O("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(e.cachedPaddingH=i),i}function Zr(e){return z-e.display.nativeBarWidth}function Jr(e){return e.display.scroller.clientWidth-Zr(e)-e.display.barWidth}function ei(e){return e.display.scroller.clientHeight-Zr(e)-e.display.barHeight}function ti(e,t,r){var i=e.options.lineWrapping,n=i&&Jr(e);if(!t.measure.heights||i&&t.measure.width!=n){var o=t.measure.heights=[];if(i){t.measure.width=n;for(var s=t.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],u=s[a+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function ri(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var n=0;n<e.rest.length;n++)if(st(e.rest[n])>r)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function ii(e,t){var r=st(t=ir(t)),i=e.display.externalMeasured=new Sr(e.doc,t,r);i.lineN=r;var n=i.built=xr(e,i);return i.text=n.pre,b(e.display.lineMeasure,n.pre),i}function ni(e,t,r,i){return ai(e,si(e,t),r,i)}function oi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Fi(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function si(e,t){var r=st(t),i=oi(e,r);i&&!i.text?i=null:i&&i.changes&&(Mr(e,i,r,Mi(e)),e.curOp.forceUpdate=!0),i||(i=ii(e,t));var n=ri(i,t,r);return{line:t,view:i,rect:null,map:n.map,cache:n.cache,before:n.before,hasHeights:!1}}function ai(e,t,r,i,n){t.before&&(r=-1);var o,s=r+(i||"");return t.cache.hasOwnProperty(s)?o=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(ti(e,t.view,t.rect),t.hasHeights=!0),(o=di(e,t,r,i)).bogus||(t.cache[s]=o)),{left:o.left,right:o.right,top:n?o.rtop:o.top,bottom:n?o.rbottom:o.bottom}}var li,ui={left:0,right:0,top:0,bottom:0};function ci(e,t,r){for(var i,n,o,s,a,l,u=0;u<e.length;u+=3)if(a=e[u],l=e[u+1],t<a?(n=0,o=1,s="left"):t<l?o=1+(n=t-a):(u==e.length-3||t==l&&e[u+3]>t)&&(n=(o=l-a)-1,t>=l&&(s="right")),null!=n){if(i=e[u+2],a==l&&r==(i.insertLeft?"left":"right")&&(s=r),"left"==r&&0==n)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)i=e[2+(u-=3)],s="left";if("right"==r&&n==l-a)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)i=e[(u+=3)+2],s="right";break}return{node:i,start:n,end:o,collapse:s,coverStart:a,coverEnd:l}}function pi(e,t){var r=ui;if("left"==t)for(var i=0;i<e.length&&(r=e[i]).left==r.right;i++);else for(var n=e.length-1;n>=0&&(r=e[n]).left==r.right;n--);return r}function di(e,t,r,i){var n,o=ci(t.map,r,i),l=o.node,u=o.start,c=o.end,p=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&ce(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ce(t.line.text.charAt(o.coverStart+c));)++c;if((n=s&&a<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():pi(S(l,u,c).getClientRects(),i)).left||n.right||0==u)break;c=u,u-=1,p="right"}s&&a<11&&(n=hi(e.display.measure,n))}else{var h;u>0&&(p=i="right"),n=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==i?h.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!u&&(!n||!n.left&&!n.right)){var f=l.parentNode.getClientRects()[0];n=f?{left:f.left,right:f.left+Di(e.display),top:f.top,bottom:f.bottom}:ui}for(var E=n.top-t.rect.top,m=n.bottom-t.rect.top,g=(E+m)/2,v=t.view.measure.heights,x=0;x<v.length-1&&!(g<v[x]);x++);var N=x?v[x-1]:0,y=v[x],A={left:("right"==p?n.right:n.left)-t.rect.left,right:("left"==p?n.left:n.right)-t.rect.left,top:N,bottom:y};return n.left||n.right||(A.bogus=!0),e.options.singleCursorHeightPerLine||(A.rtop=E,A.rbottom=m),A}function hi(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!je(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*i,bottom:t.bottom*i}}function fi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Ei(e){e.display.externalMeasure=null,R(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fi(e.display.view[t])}function mi(e){Ei(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function gi(e){return c&&g?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function vi(e){return c&&g?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function xi(e){var t=ir(e).widgets,r=0;if(t)for(var i=0;i<t.length;++i)t[i].above&&(r+=Yr(t[i]));return r}function Ni(e,t,r,i,n){if(!n){var o=xi(t);r.top+=o,r.bottom+=o}if("line"==i)return r;i||(i="local");var s=cr(t);if("local"==i?s+=Xr(e.display):s-=e.display.viewOffset,"page"==i||"window"==i){var a=e.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==i?0:vi(G(e)));var l=a.left+("window"==i?0:gi(G(e)));r.left+=l,r.right+=l}return r.top+=s,r.bottom+=s,r}function yi(e,t,r){if("div"==r)return t;var i=t.left,n=t.top;if("page"==r)i-=gi(G(e)),n-=vi(G(e));else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();i+=o.left,n+=o.top}var s=e.display.lineSpace.getBoundingClientRect();return{left:i-s.left,top:n-s.top}}function Ai(e,t,r,i,n){return i||(i=rt(e.doc,t.line)),Ni(e,i,ni(e,i,t.ch,n),r)}function Li(e,t,r,i,n,o){function s(t,s){var a=ai(e,n,t,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,Ni(e,i,a,r)}i=i||rt(e.doc,t.line),n||(n=si(e,i));var a=ge(i,e.doc.direction),l=t.ch,u=t.sticky;if(l>=i.text.length?(l=i.text.length,u="before"):l<=0&&(l=0,u="after"),!a)return s("before"==u?l-1:l,"before"==u);function c(e,t,r){return s(r?e-1:e,1==a[t].level!=r)}var p=Ee(a,l,u),d=fe,h=c(l,p,"before"==u);return null!=d&&(h.other=c(l,d,"before"!=u)),h}function Ti(e,t){var r=0;t=gt(e.doc,t),e.options.lineWrapping||(r=Di(e.display)*t.ch);var i=rt(e.doc,t.line),n=cr(i)+Xr(e.display);return{left:r,right:r,top:n,bottom:n+i.height}}function Ii(e,t,r,i,n){var o=ct(e,t,r);return o.xRel=n,i&&(o.outside=i),o}function Si(e,t,r){var i=e.doc;if((r+=e.display.viewOffset)<0)return Ii(i.first,0,null,-1,-1);var n=at(i,r),o=i.first+i.size-1;if(n>o)return Ii(i.first+i.size-1,rt(i,o).text.length,null,1,1);t<0&&(t=0);for(var s=rt(i,n);;){var a=Oi(e,s,n,t,r),l=tr(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!l)return a;var u=l.find(1);if(u.line==n)return u;s=rt(i,n=u.line)}}function Ci(e,t,r,i){i-=xi(t);var n=t.text.length,o=de(function(t){return ai(e,r,t-1).bottom<=i},n,0);return{begin:o,end:n=de(function(t){return ai(e,r,t).top>i},o,n)}}function Ri(e,t,r,i){return r||(r=si(e,t)),Ci(e,t,r,Ni(e,t,ai(e,r,i),"line").top)}function bi(e,t,r,i){return!(e.bottom<=r)&&(e.top>r||(i?e.left:e.right)>t)}function Oi(e,t,r,i,n){n-=cr(t);var o=si(e,t),s=xi(t),a=0,l=t.text.length,u=!0,c=ge(t,e.doc.direction);if(c){var p=(e.options.lineWrapping?Pi:_i)(e,t,r,o,c,i,n);a=(u=1!=p.level)?p.from:p.to-1,l=u?p.to:p.from-1}var d,h,f=null,E=null,m=de(function(t){var r=ai(e,o,t);return r.top+=s,r.bottom+=s,!!bi(r,i,n,!1)&&(r.top<=n&&r.left<=i&&(f=t,E=r),!0)},a,l),g=!1;if(E){var v=i-E.left<E.right-i,x=v==u;m=f+(x?0:1),h=x?"after":"before",d=v?E.left:E.right}else{u||m!=l&&m!=a||m++,h=0==m?"after":m==t.text.length?"before":ai(e,o,m-(u?1:0)).bottom+s<=n==u?"after":"before";var N=Li(e,ct(r,m,h),"line",t,o);d=N.left,g=n<N.top?-1:n>=N.bottom?1:0}return Ii(r,m=pe(t.text,m,1),h,g,i-d)}function _i(e,t,r,i,n,o,s){var a=de(function(a){var l=n[a],u=1!=l.level;return bi(Li(e,ct(r,u?l.to:l.from,u?"before":"after"),"line",t,i),o,s,!0)},0,n.length-1),l=n[a];if(a>0){var u=1!=l.level,c=Li(e,ct(r,u?l.from:l.to,u?"after":"before"),"line",t,i);bi(c,o,s,!0)&&c.top>s&&(l=n[a-1])}return l}function Pi(e,t,r,i,n,o,s){var a=Ci(e,t,i,s),l=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,p=null,d=0;d<n.length;d++){var h=n[d];if(!(h.from>=u||h.to<=l)){var f=ai(e,i,1!=h.level?Math.min(u,h.to)-1:Math.max(l,h.from)).right,E=f<o?o-f+1e9:f-o;(!c||p>E)&&(c=h,p=E)}}return c||(c=n[n.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function wi(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==li){li=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)li.appendChild(document.createTextNode("x")),li.appendChild(O("br"));li.appendChild(document.createTextNode("x"))}b(e.measure,li);var r=li.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),R(e.measure),r||1}function Di(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),r=O("pre",[t],"CodeMirror-line-like");b(e.measure,r);var i=t.getBoundingClientRect(),n=(i.right-i.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function Mi(e){for(var t=e.display,r={},i={},n=t.gutters.clientLeft,o=t.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=e.display.gutterSpecs[s].className;r[a]=o.offsetLeft+o.clientLeft+n,i[a]=o.clientWidth}return{fixedPos:ki(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function ki(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Gi(e){var t=wi(e.display),r=e.options.lineWrapping,i=r&&Math.max(5,e.display.scroller.clientWidth/Di(e.display)-3);return function(n){if(lr(e.doc,n))return 0;var o=0;if(n.widgets)for(var s=0;s<n.widgets.length;s++)n.widgets[s].height&&(o+=n.widgets[s].height);return r?o+(Math.ceil(n.text.length/i)||1)*t:o+t}}function Ui(e){var t=e.doc,r=Gi(e);t.iter(function(e){var t=r(e);t!=e.height&&ot(e,t)})}function Bi(e,t,r,i){var n=e.display;if(!r&&"true"==_e(t).getAttribute("cm-not-content"))return null;var o,s,a=n.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,s=t.clientY-a.top}catch(e){return null}var l,u=Si(e,o,s);if(i&&u.xRel>0&&(l=rt(e.doc,u.line).text).length==u.ch){var c=j(l,l.length,e.options.tabSize)-l.length;u=ct(u.line,Math.max(0,Math.round((o-Qr(e.display).left)/Di(e.display))-c))}return u}function Fi(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,i=0;i<r.length;i++)if((t-=r[i].size)<0)return i}function Vi(e,t,r,i){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),i||(i=0);var n=e.display;if(i&&r<n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>t)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)Mt&&sr(e.doc,t)<n.viewTo&&ji(e);else if(r<=n.viewFrom)Mt&&ar(e.doc,r+i)>n.viewFrom?ji(e):(n.viewFrom+=i,n.viewTo+=i);else if(t<=n.viewFrom&&r>=n.viewTo)ji(e);else if(t<=n.viewFrom){var o=qi(e,r,r+i,1);o?(n.view=n.view.slice(o.index),n.viewFrom=o.lineN,n.viewTo+=i):ji(e)}else if(r>=n.viewTo){var s=qi(e,t,t,-1);s?(n.view=n.view.slice(0,s.index),n.viewTo=s.lineN):ji(e)}else{var a=qi(e,t,t,-1),l=qi(e,r,r+i,1);a&&l?(n.view=n.view.slice(0,a.index).concat(Cr(e,a.lineN,l.lineN)).concat(n.view.slice(l.index)),n.viewTo+=i):ji(e)}var u=n.externalMeasured;u&&(r<u.lineN?u.lineN+=i:t<u.lineN+u.size&&(n.externalMeasured=null))}function Hi(e,t,r){e.curOp.viewChanged=!0;var i=e.display,n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var o=i.view[Fi(e,t)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==W(s,r)&&s.push(r)}}}function ji(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qi(e,t,r,i){var n,o=Fi(e,t),s=e.display.view;if(!Mt||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=t){if(i>0){if(o==s.length-1)return null;n=a+s[o].size-t,o++}else n=a-t;t+=n,r+=n}for(;sr(e.doc,r)!=r;){if(o==(i<0?0:s.length-1))return null;r+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:r}}function Wi(e,t,r){var i=e.display;0==i.view.length||t>=i.viewTo||r<=i.viewFrom?(i.view=Cr(e,t,r),i.viewFrom=t):(i.viewFrom>t?i.view=Cr(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Fi(e,t))),i.viewFrom=t,i.viewTo<r?i.view=i.view.concat(Cr(e,i.viewTo,r)):i.viewTo>r&&(i.view=i.view.slice(0,Fi(e,r)))),i.viewTo=r}function zi(e){for(var t=e.display.view,r=0,i=0;i<t.length;i++){var n=t[i];n.hidden||n.node&&!n.changes||++r}return r}function Yi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ki(e,t){void 0===t&&(t=!0);var r=e.doc,i={},n=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),s=e.options.$customCursor;s&&(t=!0);for(var a=0;a<r.sel.ranges.length;a++)if(t||a!=r.sel.primIndex){var l=r.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(s){var c=s(e,l);c&&Xi(e,c,n)}else(u||e.options.showCursorWhenSelecting)&&Xi(e,l.head,n);u||Qi(e,l,o)}}return i}function Xi(e,t,r){var i=Li(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),n=r.appendChild(O("div"," ","CodeMirror-cursor"));if(n.style.left=i.left+"px",n.style.top=i.top+"px",n.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Ai(e,t,"div",null,null),s=o.right-o.left;n.style.width=(s>0?s:e.defaultCharWidth())+"px"}if(i.other){var a=r.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function $i(e,t){return e.top-t.top||e.left-t.left}function Qi(e,t,r){var i=e.display,n=e.doc,o=document.createDocumentFragment(),s=Qr(e.display),a=s.left,l=Math.max(i.sizerWidth,Jr(e)-i.sizer.offsetLeft)-s.right,u="ltr"==n.direction;function c(e,t,r,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(r??l-e)+"px;\n height: "+(i-t)+"px"))}function p(t,r,i){var o,s,p=rt(n,t),d=p.text.length;function h(r,i){return Ai(e,ct(t,r),"div",p,i)}function f(t,r,i){var n=Ri(e,p,null,t),o="ltr"==r==("after"==i)?"left":"right";return h("after"==i?n.begin:n.end-(/\s/.test(p.text.charAt(n.end-1))?2:1),o)[o]}var E=ge(p,n.direction);return he(E,r||0,i??d,function(e,t,n,p){var m="ltr"==n,g=h(e,m?"left":"right"),v=h(t-1,m?"right":"left"),x=null==r&&0==e,N=null==i&&t==d,y=0==p,A=!E||p==E.length-1;if(v.top-g.top<=3){var L=(u?N:x)&&A,T=(u?x:N)&&y?a:(m?g:v).left,I=L?l:(m?v:g).right;c(T,g.top,I-T,g.bottom)}else{var S,C,R,b;m?(S=u&&x&&y?a:g.left,C=u?l:f(e,n,"before"),R=u?a:f(t,n,"after"),b=u&&N&&A?l:v.right):(S=u?f(e,n,"before"):a,C=!u&&x&&y?l:g.right,R=!u&&N&&A?a:v.left,b=u?f(t,n,"after"):l),c(S,g.top,C-S,g.bottom),g.bottom<v.top&&c(a,g.bottom,null,v.top),c(R,v.top,b-R,v.bottom)}(!o||$i(g,o)<0)&&(o=g),$i(v,o)<0&&(o=v),(!s||$i(g,s)<0)&&(s=g),$i(v,s)<0&&(s=v)}),{start:o,end:s}}var d=t.from(),h=t.to();if(d.line==h.line)p(d.line,d.ch,h.ch);else{var f=rt(n,d.line),E=rt(n,h.line),m=ir(f)==ir(E),g=p(d.line,d.ch,m?f.text.length+1:null).end,v=p(h.line,m?0:null,h.ch).start;m&&(g.top<v.top-2?(c(g.right,g.top,null,g.bottom),c(a,v.top,v.left,v.bottom)):c(g.right,g.top,v.left-g.right,g.bottom)),g.bottom<v.top&&c(a,g.bottom,null,v.top)}r.appendChild(o)}function Zi(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||rn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ji(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||tn(e))}function en(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&rn(e))},100)}function tn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Zi(e))}function rn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function nn(e){for(var t=e.display,r=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,p=void 0,d=0;if(!u.hidden){if(n+=u.line.height,s&&a<8){var h=u.node.offsetTop+u.node.offsetHeight;p=h-r,r=h}else{var f=u.node.getBoundingClientRect();p=f.bottom-f.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-f.left-1)}var E=u.line.height-p;if((E>.005||E<-.005)&&(n<i&&(o-=E),ot(u.line,p),on(u.line),u.rest))for(var m=0;m<u.rest.length;m++)on(u.rest[m]);if(d>e.display.sizerWidth){var g=Math.ceil(d/Di(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function on(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],i=r.node.parentNode;i&&(r.height=i.offsetHeight)}}function sn(e,t,r){var i=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;i=Math.floor(i-Xr(e));var n=r&&null!=r.bottom?r.bottom:i+e.wrapper.clientHeight,o=at(t,i),s=at(t,n);if(r&&r.ensure){var a=r.ensure.from.line,l=r.ensure.to.line;a<o?(o=a,s=at(t,cr(rt(t,a))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=s&&(o=at(t,cr(rt(t,l))-e.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function an(e,t){if(!Le(e,"scrollCursorIntoView")){var r=e.display,i=r.sizer.getBoundingClientRect(),n=null,o=r.wrapper.ownerDocument;if(t.top+i.top<0?n=!0:t.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(n=!1),null!=n&&!E){var s=O("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Xr(e.display))+"px;\n height: "+(t.bottom-t.top+Zr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(s),s.scrollIntoView(n),e.display.lineSpace.removeChild(s)}}}function ln(e,t,r,i){var n;null==i&&(i=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?ct(t.line,t.ch+1,"before"):t,t=t.ch?ct(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var s=!1,a=Li(e,t),l=r&&r!=t?Li(e,r):a,u=cn(e,n={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i}),c=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=u.scrollTop&&(gn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&(xn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(s=!0)),!s)break}return n}function un(e,t){var r=cn(e,t);null!=r.scrollTop&&gn(e,r.scrollTop),null!=r.scrollLeft&&xn(e,r.scrollLeft)}function cn(e,t){var r=e.display,i=wi(e.display);t.top<0&&(t.top=0);var n=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=ei(e),s={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+$r(r),l=t.top<i,u=t.bottom>a-i;if(t.top<n)s.scrollTop=l?0:t.top;else if(t.bottom>n+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=n&&(s.scrollTop=c)}var p=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-p,h=Jr(e)-r.gutters.offsetWidth,f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?s.scrollLeft=0:t.left<d?s.scrollLeft=Math.max(0,t.left+p-(f?0:10)):t.right>h+d-3&&(s.scrollLeft=t.right+(f?0:10)-h),s}function pn(e,t){null!=t&&(En(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function dn(e){En(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hn(e,t,r){null==t&&null==r||En(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function fn(e,t){En(e),e.curOp.scrollToPos=t}function En(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,mn(e,Ti(e,t.from),Ti(e,t.to),t.margin))}function mn(e,t,r,i){var n=cn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-i,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+i});hn(e,n.scrollLeft,n.scrollTop)}function gn(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||Kn(e,{top:t}),vn(e,t,!0),r&&Kn(e),Fn(e,100))}function vn(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function xn(e,t,r,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Zn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Nn(e){var t=e.display,r=t.gutters.offsetWidth,i=Math.round(e.doc.height+$r(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:i,scrollHeight:i+Zr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var yn=function(e,t,r){this.cm=r;var i=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=n.tabIndex=-1,e(i),e(n),xe(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),xe(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var n=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?i:0,bottom:t?i:0}},yn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yn.prototype.zeroWidthHack=function(){var e=x&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},yn.prototype.enableZeroWidthBar=function(e,t,r){function i(){var n=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,i)}e.style.visibility="",t.set(1e3,i)},yn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var An=function(){};function Ln(e,t){t||(t=Nn(e));var r=e.display.barWidth,i=e.display.barHeight;Tn(e,t);for(var n=0;n<4&&r!=e.display.barWidth||i!=e.display.barHeight;n++)r!=e.display.barWidth&&e.options.lineWrapping&&nn(e),Tn(e,Nn(e)),r=e.display.barWidth,i=e.display.barHeight}function Tn(e,t){var r=e.display,i=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=i.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=i.bottom)+"px",r.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=i.bottom+"px",r.scrollbarFiller.style.width=i.right+"px"):r.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=i.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}An.prototype.update=function(){return{bottom:0,right:0}},An.prototype.setScrollLeft=function(){},An.prototype.setScrollTop=function(){},An.prototype.clear=function(){};var In={native:yn,null:An};function Sn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new In[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),xe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?xn(e,t):gn(e,t)},e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var Cn=0;function Rn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cn,markArrays:null},br(e.curOp)}function bn(e){var t=e.curOp;t&&_r(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;On(e)})}function On(e){for(var t=e.ops,r=0;r<t.length;r++)_n(t[r]);for(var i=0;i<t.length;i++)Pn(t[i]);for(var n=0;n<t.length;n++)wn(t[n]);for(var o=0;o<t.length;o++)Dn(t[o]);for(var s=0;s<t.length;s++)Mn(t[s])}function _n(e){var t=e.cm,r=t.display;jn(t),e.updateMaxLine&&dr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Hn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Pn(e){e.updatedDisplay=e.mustUpdate&&zn(e.cm,e.update)}function wn(e){var t=e.cm,r=t.display;e.updatedDisplay&&nn(t),e.barMeasure=Nn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ni(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Zr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Jr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Dn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&xn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==w(U(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ln(t,e.barMeasure),e.updatedDisplay&&Qn(t,e.barMeasure),e.selectionChanged&&Zi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Ji(e.cm)}function Mn(e){var t=e.cm,r=t.display,i=t.doc;e.updatedDisplay&&Yn(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&vn(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&xn(t,e.scrollLeft,!0,!0),e.scrollToPos&&an(t,ln(t,gt(i,e.scrollToPos.from),gt(i,e.scrollToPos.to),e.scrollToPos.margin));var n=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(n)for(var s=0;s<n.length;++s)n[s].lines.length||Ae(n[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&Ae(o[a],"unhide");r.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ae(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function kn(e,t){if(e.curOp)return t();Rn(e);try{return t()}finally{bn(e)}}function Gn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Rn(e);try{return t.apply(e,arguments)}finally{bn(e)}}}function Un(e){return function(){if(this.curOp)return e.apply(this,arguments);Rn(this);try{return e.apply(this,arguments)}finally{bn(this)}}}function Bn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Rn(t);try{return e.apply(this,arguments)}finally{bn(t)}}}function Fn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,V(Vn,e))}function Vn(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,i=Tt(e,t.highlightFrontier),n=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(i.line>=e.display.viewFrom){var s=o.styles,a=o.text.length>e.options.maxHighlightLength?Ze(t.mode,i.state):null,l=At(e,o,i,!0);a&&(i.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var p=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!p&&d<s.length;++d)p=s[d]!=o.styles[d];p&&n.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=e.options.maxHighlightLength&&It(e,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>r)return Fn(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),n.length&&kn(e,function(){for(var t=0;t<n.length;t++)Hi(e,n[t],"text")})}}var Hn=function(e,t,r){var i=e.display;this.viewport=t,this.visible=sn(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Jr(e),this.force=r,this.dims=Mi(e),this.events=[]};function jn(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Zr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Zr(e)+"px",t.scrollbarsClipped=!0)}function qn(e){if(e.hasFocus())return null;var t=w(U(e));if(!t||!P(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var i=F(e).getSelection();i.anchorNode&&i.extend&&P(e.display.lineDiv,i.anchorNode)&&(r.anchorNode=i.anchorNode,r.anchorOffset=i.anchorOffset,r.focusNode=i.focusNode,r.focusOffset=i.focusOffset)}return r}function Wn(e){if(e&&e.activeElt&&e.activeElt!=w(B(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),i=t.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),r.removeAllRanges(),r.addRange(i),r.extend(e.focusNode,e.focusOffset)}}function zn(e,t){var r=e.display,i=e.doc;if(t.editorIsHidden)return ji(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==zi(e))return!1;Jn(e)&&(ji(e),t.dims=Mi(e));var n=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),s=Math.min(n,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(i.first,r.viewFrom)),r.viewTo>s&&r.viewTo-s<20&&(s=Math.min(n,r.viewTo)),Mt&&(o=sr(e.doc,o),s=ar(e.doc,s));var a=o!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Wi(e,o,s),r.viewOffset=cr(rt(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=zi(e);if(!a&&0==l&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=qn(e);return l>4&&(r.lineDiv.style.display="none"),Xn(e,r.updateLineNumbers,t.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Wn(u),R(r.cursorDiv),R(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Fn(e,400)),r.updateLineNumbers=null,!0}function Yn(e,t){for(var r=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Jr(e))i&&(t.visible=sn(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+$r(e.display)-ei(e),r.top)}),t.visible=sn(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!zn(e,t))break;nn(e);var n=Nn(e);Yi(e),Ln(e,n),Qn(e,n),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Kn(e,t){var r=new Hn(e,t);if(zn(e,r)){nn(e),Yn(e,r);var i=Nn(e);Yi(e),Ln(e,i),Qn(e,i),r.finish()}}function Xn(e,t,r){var i=e.display,n=e.options.lineNumbers,o=i.lineDiv,s=o.firstChild;function a(t){var r=t.nextSibling;return l&&x&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=i.view,c=i.viewFrom,p=0;p<u.length;p++){var d=u[p];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;s!=d.node;)s=a(s);var h=n&&null!=t&&t<=c&&d.lineNumber;d.changes&&(W(d.changes,"gutter")>-1&&(h=!1),Mr(e,d,c,r)),h&&(R(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ut(e.options,c)))),s=d.node.nextSibling}else{var f=jr(e,d,c,r);o.insertBefore(f,s)}c+=d.size}for(;s;)s=a(s)}function $n(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",wr(e,"gutterChanged",e)}function Qn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Zr(e)+"px"}function Zn(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=ki(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,o=i+"px",s=0;s<r.length;s++)if(!r[s].hidden){e.options.fixedGutter&&(r[s].gutter&&(r[s].gutter.style.left=o),r[s].gutterBackground&&(r[s].gutterBackground.style.left=o));var a=r[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=i+n+"px")}}function Jn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=ut(e.options,t.first+t.size-1),i=e.display;if(r.length!=i.lineNumChars){var n=i.measure.appendChild(O("div",[O("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=n.firstChild.offsetWidth,s=n.offsetWidth-o;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(o,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?r.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",$n(e.display),!0}return!1}function eo(e,t){for(var r=[],i=!1,n=0;n<e.length;n++){var o=e[n],s=null;if("string"!=typeof o&&(s=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;i=!0}r.push({className:o,style:s})}return t&&!i&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function to(e){var t=e.gutters,r=e.gutterSpecs;R(t),e.lineGutter=null;for(var i=0;i<r.length;++i){var n=r[i],o=n.className,s=n.style,a=t.appendChild(O("div",null,"CodeMirror-gutter "+o));s&&(a.style.cssText=s),"CodeMirror-linenumbers"==o&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",$n(e)}function ro(e){to(e.display),Vi(e),Zn(e)}function io(e,t,i,n){var o=this;this.input=i,o.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=_("div",null,"CodeMirror-code"),o.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=O("div",null,"CodeMirror-cursors"),o.measure=O("div",null,"CodeMirror-measure"),o.lineMeasure=O("div",null,"CodeMirror-measure"),o.lineSpace=_("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=_("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[u],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),o.gutters=O("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=O("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=O("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&105===p&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),s&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||r&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=eo(n.gutters,n.lineNumbers),to(o),i.init(o)}Hn.prototype.signal=function(e,t){Ie(e,t)&&this.events.push(arguments)},Hn.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ae.apply(null,this.events[e])};var no=0,oo=null;function so(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function ao(e){var t=so(e);return t.x*=oo,t.y*=oo,t}function lo(e,t){c&&102==p&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=so(t),n=i.x,o=i.y,s=oo;0===t.deltaMode&&(n=t.deltaX,o=t.deltaY,s=1);var a=e.display,u=a.scroller,h=u.scrollWidth>u.clientWidth,f=u.scrollHeight>u.clientHeight;if(n&&h||o&&f){if(o&&x&&l)e:for(var E=t.target,m=a.view;E!=u;E=E.parentNode)for(var g=0;g<m.length;g++)if(m[g].node==E){e.display.currentWheelTarget=E;break e}if(n&&!r&&!d&&null!=s)return o&&f&&gn(e,Math.max(0,u.scrollTop+o*s)),xn(e,Math.max(0,u.scrollLeft+n*s)),(!o||o&&f)&&Ce(t),void(a.wheelStartX=null);if(o&&null!=s){var v=o*s,N=e.doc.scrollTop,y=N+a.wrapper.clientHeight;v<0?N=Math.max(0,N+v-50):y=Math.min(e.doc.height,y+v+50),Kn(e,{top:N,bottom:y})}no<20&&0!==t.deltaMode&&(null==a.wheelStartX?(a.wheelStartX=u.scrollLeft,a.wheelStartY=u.scrollTop,a.wheelDX=n,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=u.scrollLeft-a.wheelStartX,t=u.scrollTop-a.wheelStartY,r=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,r&&(oo=(oo*no+r)/(no+1),++no)}},200)):(a.wheelDX+=n,a.wheelDY+=o))}}s?oo=-.53:r?oo=15:c?oo=-.7:h&&(oo=-1/3);var uo=function(e,t){this.ranges=e,this.primIndex=t};uo.prototype.primary=function(){return this.ranges[this.primIndex]},uo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],i=e.ranges[t];if(!dt(r.anchor,i.anchor)||!dt(r.head,i.head))return!1}return!0},uo.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new co(ht(this.ranges[t].anchor),ht(this.ranges[t].head));return new uo(e,this.primIndex)},uo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},uo.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=this.ranges[r];if(pt(t,i.from())>=0&&pt(e,i.to())<=0)return r}return-1};var co=function(e,t){this.anchor=e,this.head=t};function po(e,t,r){var i=e&&e.options.selectionsMayTouch,n=t[r];t.sort(function(e,t){return pt(e.from(),t.from())}),r=W(t,n);for(var o=1;o<t.length;o++){var s=t[o],a=t[o-1],l=pt(a.to(),s.from());if(i&&!s.empty()?l>0:l>=0){var u=Et(a.from(),s.from()),c=ft(a.to(),s.to()),p=a.empty()?s.from()==s.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new co(p?c:u,p?u:c))}}return new uo(t,r)}function ho(e,t){return new uo([new co(e,t||e)],0)}function fo(e){return e.text?ct(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Eo(e,t){if(pt(e,t.from)<0)return e;if(pt(e,t.to)<=0)return fo(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=fo(t).ch-t.to.ch),ct(r,i)}function mo(e,t){for(var r=[],i=0;i<e.sel.ranges.length;i++){var n=e.sel.ranges[i];r.push(new co(Eo(n.anchor,t),Eo(n.head,t)))}return po(e.cm,r,e.sel.primIndex)}function go(e,t,r){return e.line==t.line?ct(r.line,e.ch-t.ch+r.ch):ct(r.line+(e.line-t.line),e.ch)}function vo(e,t,r){for(var i=[],n=ct(e.first,0),o=n,s=0;s<t.length;s++){var a=t[s],l=go(a.from,n,o),u=go(fo(a),n,o);if(n=a.to,o=u,"around"==r){var c=e.sel.ranges[s],p=pt(c.head,c.anchor)<0;i[s]=new co(p?u:l,p?l:u)}else i[s]=new co(l,l)}return new uo(i,e.sel.primIndex)}function xo(e){e.doc.mode=Xe(e.options,e.doc.modeOption),No(e)}function No(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Fn(e,100),e.state.modeGen++,e.curOp&&Vi(e)}function yo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==ee(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ao(e,t,r,i){function n(e){return r?r[e]:null}function o(e,r,n){fr(e,r,n,i),wr(e,"change",e,t)}function s(e,t){for(var r=[],o=e;o<t;++o)r.push(new hr(u[o],n(o),i));return r}var a=t.from,l=t.to,u=t.text,c=rt(e,a.line),p=rt(e,l.line),d=ee(u),h=n(u.length-1),f=l.line-a.line;if(t.full)e.insert(0,s(0,u.length)),e.remove(u.length,e.size-u.length);else if(yo(e,t)){var E=s(0,u.length-1);o(p,p.text,h),f&&e.remove(a.line,f),E.length&&e.insert(a.line,E)}else if(c==p)if(1==u.length)o(c,c.text.slice(0,a.ch)+d+c.text.slice(l.ch),h);else{var m=s(1,u.length-1);m.push(new hr(d+c.text.slice(l.ch),h,i)),o(c,c.text.slice(0,a.ch)+u[0],n(0)),e.insert(a.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,a.ch)+u[0]+p.text.slice(l.ch),n(0)),e.remove(a.line+1,f);else{o(c,c.text.slice(0,a.ch)+u[0],n(0)),o(p,d+p.text.slice(l.ch),h);var g=s(1,u.length-1);f>1&&e.remove(a.line+1,f-1),e.insert(a.line+1,g)}wr(e,"change",e,t)}function Lo(e,t,r){function i(e,n,o){if(e.linked)for(var s=0;s<e.linked.length;++s){var a=e.linked[s];if(a.doc!=n){var l=o&&a.sharedHist;r&&!l||(t(a.doc,l),i(a.doc,e,l))}}}i(e,null,!0)}function To(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ui(e),xo(e),Io(e),e.options.direction=t.direction,e.options.lineWrapping||dr(e),e.options.mode=t.modeOption,Vi(e)}function Io(e){("rtl"==e.doc.direction?D:C)(e.display.lineDiv,"CodeMirror-rtl")}function So(e){kn(e,function(){Io(e),Vi(e)})}function Co(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ro(e,t){var r={from:ht(t.from),to:fo(t),text:it(e,t.from,t.to)};return Mo(e,r,t.from.line,t.to.line+1),Lo(e,function(e){return Mo(e,r,t.from.line,t.to.line+1)},!0),r}function bo(e){for(;e.length&&ee(e).ranges;)e.pop()}function Oo(e,t){return t?(bo(e.done),ee(e.done)):e.done.length&&!ee(e.done).ranges?ee(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function _o(e,t,r,i){var n=e.history;n.undone.length=0;var o,s,a=+new Date;if((n.lastOp==i||n.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&n.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Oo(n,n.lastOp==i)))s=ee(o.changes),0==pt(t.from,t.to)&&0==pt(t.from,s.to)?s.to=fo(t):o.changes.push(Ro(e,t));else{var l=ee(n.done);for(l&&l.ranges||Do(e.sel,n.done),o={changes:[Ro(e,t)],generation:n.generation},n.done.push(o);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(r),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=a,n.lastOp=n.lastSelOp=i,n.lastOrigin=n.lastSelOrigin=t.origin,s||Ae(e,"historyAdded")}function Po(e,t,r,i){var n=t.charAt(0);return"*"==n||"+"==n&&r.ranges.length==i.ranges.length&&r.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function wo(e,t,r,i){var n=e.history,o=i&&i.origin;r==n.lastSelOp||o&&n.lastSelOrigin==o&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==o||Po(e,o,ee(n.done),t))?n.done[n.done.length-1]=t:Do(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=o,n.lastSelOp=r,i&&!1!==i.clearRedo&&bo(n.undone)}function Do(e,t){var r=ee(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Mo(e,t,r,i){var n=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,i),function(r){r.markedSpans&&((n||(n=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function ko(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Go(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var i=[],n=0;n<t.text.length;++n)i.push(ko(r[n]));return i}function Uo(e,t){var r=Go(e,t),i=qt(e,t);if(!r)return i;if(!i)return r;for(var n=0;n<r.length;++n){var o=r[n],s=i[n];if(o&&s)e:for(var a=0;a<s.length;++a){for(var l=s[a],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else s&&(r[n]=s)}return r}function Bo(e,t,r){for(var i=[],n=0;n<e.length;++n){var o=e[n];if(o.ranges)i.push(r?uo.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];i.push({changes:a});for(var l=0;l<s.length;++l){var u=s[l],c=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),t)for(var p in u)(c=p.match(/^spans_(\d+)$/))&&W(t,Number(c[1]))>-1&&(ee(a)[p]=u[p],delete u[p])}}}return i}function Fo(e,t,r,i){if(i){var n=e.anchor;if(r){var o=pt(t,n)<0;o!=pt(r,n)<0?(n=t,t=r):o!=pt(t,r)<0&&(t=r)}return new co(n,t)}return new co(r||t,t)}function Vo(e,t,r,i,n){null==n&&(n=e.cm&&(e.cm.display.shift||e.extend)),Yo(e,new uo([Fo(e.sel.primary(),t,r,n)],0),i)}function Ho(e,t,r){for(var i=[],n=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)i[o]=Fo(e.sel.ranges[o],t[o],null,n);Yo(e,po(e.cm,i,e.sel.primIndex),r)}function jo(e,t,r,i){var n=e.sel.ranges.slice(0);n[t]=r,Yo(e,po(e.cm,n,e.sel.primIndex),i)}function qo(e,t,r,i){Yo(e,ho(t,r),i)}function Wo(e,t,r){var i={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new co(gt(e,t[r].anchor),gt(e,t[r].head))},origin:r&&r.origin};return Ae(e,"beforeSelectionChange",e,i),e.cm&&Ae(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?po(e.cm,i.ranges,i.ranges.length-1):t}function zo(e,t,r){var i=e.history.done,n=ee(i);n&&n.ranges?(i[i.length-1]=t,Ko(e,t,r)):Yo(e,t,r)}function Yo(e,t,r){Ko(e,t,r),wo(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function Ko(e,t,r){(Ie(e,"beforeSelectionChange")||e.cm&&Ie(e.cm,"beforeSelectionChange"))&&(t=Wo(e,t,r));var i=r&&r.bias||(pt(t.primary().head,e.sel.primary().head)<0?-1:1);Xo(e,Qo(e,t,i,!0)),r&&!1===r.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||dn(e.cm)}function Xo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),wr(e,"cursorActivity",e))}function $o(e){Xo(e,Qo(e,e.sel,null,!1))}function Qo(e,t,r,i){for(var n,o=0;o<t.ranges.length;o++){var s=t.ranges[o],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Jo(e,s.anchor,a&&a.anchor,r,i),u=s.head==s.anchor?l:Jo(e,s.head,a&&a.head,r,i);(n||l!=s.anchor||u!=s.head)&&(n||(n=t.ranges.slice(0,o)),n[o]=new co(l,u))}return n?po(e.cm,n,t.primIndex):t}function Zo(e,t,r,i,n){var o=rt(e,t.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==a.from||(u?a.from<=t.ch:a.from<t.ch))&&(null==a.to||(c?a.to>=t.ch:a.to>t.ch))){if(n&&(Ae(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(r){var p=l.find(i<0?1:-1),d=void 0;if((i<0?c:u)&&(p=es(e,p,-i,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(d=pt(p,r))&&(i<0?d<0:d>0))return Zo(e,p,t,i,n)}var h=l.find(i<0?-1:1);return(i<0?u:c)&&(h=es(e,h,i,h.line==t.line?o:null)),h?Zo(e,h,t,i,n):null}}return t}function Jo(e,t,r,i,n){var o=i||1,s=Zo(e,t,r,o,n)||!n&&Zo(e,t,r,o,!0)||Zo(e,t,r,-o,n)||!n&&Zo(e,t,r,-o,!0);return s||(e.cantEdit=!0,ct(e.first,0))}function es(e,t,r,i){return r<0&&0==t.ch?t.line>e.first?gt(e,ct(t.line-1)):null:r>0&&t.ch==(i||rt(e,t.line)).text.length?t.line<e.first+e.size-1?ct(t.line+1,0):null:new ct(t.line,t.ch+r)}function ts(e){e.setSelection(ct(e.firstLine(),0),ct(e.lastLine()),K)}function rs(e,t,r){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return r&&(i.update=function(t,r,n,o){t&&(i.from=gt(e,t)),r&&(i.to=gt(e,r)),n&&(i.text=n),void 0!==o&&(i.origin=o)}),Ae(e,"beforeChange",e,i),e.cm&&Ae(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function is(e,t,r){if(e.cm){if(!e.cm.curOp)return Gn(e.cm,is)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(Ie(e,"beforeChange")||e.cm&&Ie(e.cm,"beforeChange"))||(t=rs(e,t,!0))){var i=Dt&&!r&&zt(e,t.from,t.to);if(i)for(var n=i.length-1;n>=0;--n)ns(e,{from:i[n].from,to:i[n].to,text:n?[""]:t.text,origin:t.origin});else ns(e,t)}}function ns(e,t){if(1!=t.text.length||""!=t.text[0]||0!=pt(t.from,t.to)){var r=mo(e,t);_o(e,t,r,e.cm?e.cm.curOp.id:NaN),as(e,t,r,qt(e,t));var i=[];Lo(e,function(e,r){r||-1!=W(i,e.history)||(ds(e.history,t),i.push(e.history)),as(e,t,null,qt(e,t))})}}function os(e,t,r){var i=e.cm&&e.cm.state.suppressEdits;if(!i||r){for(var n,o=e.history,s=e.sel,a="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<a.length&&(n=a[u],r?!n.ranges||n.equals(e.sel):n.ranges);u++);if(u!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(n=a.pop()).ranges){if(i)return void a.push(n);break}if(Do(n,l),r&&!n.equals(e.sel))return void Yo(e,n,{clearRedo:!1});s=n}var c=[];Do(s,l),l.push({changes:c,generation:o.generation}),o.generation=n.generation||++o.maxGeneration;for(var p=Ie(e,"beforeChange")||e.cm&&Ie(e.cm,"beforeChange"),d=function(r){var i=n.changes[r];if(i.origin=t,p&&!rs(e,i,!1))return a.length=0,{};c.push(Ro(e,i));var o=r?mo(e,i):ee(a);as(e,i,o,Uo(e,i)),!r&&e.cm&&e.cm.scrollIntoView({from:i.from,to:fo(i)});var s=[];Lo(e,function(e,t){t||-1!=W(s,e.history)||(ds(e.history,i),s.push(e.history)),as(e,i,null,Uo(e,i))})},h=n.changes.length-1;h>=0;--h){var f=d(h);if(f)return f.v}}}}function ss(e,t){if(0!=t&&(e.first+=t,e.sel=new uo(te(e.sel.ranges,function(e){return new co(ct(e.anchor.line+t,e.anchor.ch),ct(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Vi(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,i=r.viewFrom;i<r.viewTo;i++)Hi(e.cm,i,"gutter")}}function as(e,t,r,i){if(e.cm&&!e.cm.curOp)return Gn(e.cm,as)(e,t,r,i);if(t.to.line<e.first)ss(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var n=t.text.length-1-(e.first-t.from.line);ss(e,n),t={from:ct(e.first,0),to:ct(t.to.line+n,t.to.ch),text:[ee(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ct(o,rt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=it(e,t.from,t.to),r||(r=mo(e,t)),e.cm?ls(e.cm,t,i):Ao(e,t,i),Ko(e,r,K),e.cantEdit&&Jo(e,ct(e.firstLine(),0))&&(e.cantEdit=!1)}}function ls(e,t,r){var i=e.doc,n=e.display,o=t.from,s=t.to,a=!1,l=o.line;e.options.lineWrapping||(l=st(ir(rt(i,o.line))),i.iter(l,s.line+1,function(e){if(e==n.maxLine)return a=!0,!0})),i.sel.contains(t.from,t.to)>-1&&Te(e),Ao(i,t,r,Gi(e)),e.options.lineWrapping||(i.iter(l,o.line+t.text.length,function(e){var t=pr(e);t>n.maxLineLength&&(n.maxLine=e,n.maxLineLength=t,n.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),wt(i,o.line),Fn(e,400);var u=t.text.length-(s.line-o.line)-1;t.full?Vi(e):o.line!=s.line||1!=t.text.length||yo(e.doc,t)?Vi(e,o.line,s.line+1,u):Hi(e,o.line,"text");var c=Ie(e,"changes"),p=Ie(e,"change");if(p||c){var d={from:o,to:s,text:t.text,removed:t.removed,origin:t.origin};p&&wr(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function us(e,t,r,i,n){var o;i||(i=r),pt(i,r)<0&&(r=(o=[i,r])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),is(e,{from:r,to:i,text:t,origin:n})}function cs(e,t,r,i){r<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function ps(e,t,r,i){for(var n=0;n<e.length;++n){var o=e[n],s=!0;if(o.ranges){o.copied||((o=e[n]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)cs(o.ranges[a].anchor,t,r,i),cs(o.ranges[a].head,t,r,i)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(r<u.from.line)u.from=ct(u.from.line+i,u.from.ch),u.to=ct(u.to.line+i,u.to.ch);else if(t<=u.to.line){s=!1;break}}s||(e.splice(0,n+1),n=0)}}}function ds(e,t){var r=t.from.line,i=t.to.line,n=t.text.length-(i-r)-1;ps(e.done,r,i,n),ps(e.undone,r,i,n)}function hs(e,t,r,i){var n=t,o=t;return"number"==typeof t?o=rt(e,mt(e,t)):n=st(t),null==n?null:(i(o,n)&&e.cm&&Hi(e.cm,n,r),o)}function fs(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function Es(e){this.children=e;for(var t=0,r=0,i=0;i<e.length;++i){var n=e[i];t+=n.chunkSize(),r+=n.height,n.parent=this}this.size=t,this.height=r,this.parent=null}co.prototype.from=function(){return Et(this.anchor,this.head)},co.prototype.to=function(){return ft(this.anchor,this.head)},co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},fs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,i=e+t;r<i;++r){var n=this.lines[r];this.height-=n.height,Er(n),wr(n,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,r){for(var i=e+t;e<i;++e)if(r(this.lines[e]))return!0}},Es.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var i=this.children[r],n=i.chunkSize();if(e<n){var o=Math.min(t,n-e),s=i.height;if(i.removeInner(e,o),this.height-=s-i.height,n==o&&(this.children.splice(r--,1),i.parent=null),0==(t-=o))break;e=0}else e-=n}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof fs))){var a=[];this.collapse(a),this.children=[new fs(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var i=0;i<this.children.length;++i){var n=this.children[i],o=n.chunkSize();if(e<=o){if(n.insertInner(e,t,r),n.lines&&n.lines.length>50){for(var s=n.lines.length%25+25,a=s;a<n.lines.length;){var l=new fs(n.lines.slice(a,a+=25));n.height-=l.height,this.children.splice(++i,0,l),l.parent=this}n.lines=n.lines.slice(0,s),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Es(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=W(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var i=new Es(e.children);i.parent=e,e.children=[i,t],e=i}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var i=0;i<this.children.length;++i){var n=this.children[i],o=n.chunkSize();if(e<o){var s=Math.min(t,o-e);if(n.iterN(e,s,r))return!0;if(0==(t-=s))break;e=0}else e-=o}}};var ms=function(e,t,r){if(r)for(var i in r)r.hasOwnProperty(i)&&(this[i]=r[i]);this.doc=e,this.node=t};function gs(e,t,r){cr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&pn(e,r)}function vs(e,t,r,i){var n=new ms(e,r,i),o=e.cm;return o&&n.noHScroll&&(o.display.alignWidgets=!0),hs(e,t,"widget",function(t){var r=t.widgets||(t.widgets=[]);if(null==n.insertAt?r.push(n):r.splice(Math.min(r.length,Math.max(0,n.insertAt)),0,n),n.line=t,o&&!lr(e,t)){var i=cr(t)<e.scrollTop;ot(t,t.height+Yr(n)),i&&pn(o,n.height),o.curOp.forceUpdate=!0}return!0}),o&&wr(o,"lineWidgetAdded",o,n,"number"==typeof t?t:st(t)),n}ms.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,i=st(r);if(null!=i&&t){for(var n=0;n<t.length;++n)t[n]==this&&t.splice(n--,1);t.length||(r.widgets=null);var o=Yr(this);ot(r,Math.max(0,r.height-o)),e&&(kn(e,function(){gs(e,r,-o),Hi(e,i,"widget")}),wr(e,"lineWidgetCleared",e,this,i))}},ms.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,i=this.line;this.height=null;var n=Yr(this)-t;n&&(lr(this.doc,i)||ot(i,i.height+n),r&&kn(r,function(){r.curOp.forceUpdate=!0,gs(r,i,n),wr(r,"lineWidgetChanged",r,e,st(i))}))},Se(ms);var xs=0,Ns=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++xs};function ys(e,t,r,i,n){if(i&&i.shared)return Ls(e,t,r,i,n);if(e.cm&&!e.cm.curOp)return Gn(e.cm,ys)(e,t,r,i,n);var o=new Ns(e,n),s=pt(t,r);if(i&&H(i,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=_("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(rr(e,t.line,t,r,o)||t.line!=r.line&&rr(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Gt()}o.addToHistory&&_o(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,l=t.line,u=e.cm;if(e.iter(l,r.line+1,function(i){u&&o.collapsed&&!u.options.lineWrapping&&ir(i)==u.display.maxLine&&(a=!0),o.collapsed&&l!=t.line&&ot(i,0),Vt(i,new Ut(o,l==t.line?t.ch:null,l==r.line?r.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,r.line+1,function(t){lr(e,t)&&ot(t,0)}),o.clearOnEnter&&xe(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(kt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++xs,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Vi(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)Hi(u,c,"text");o.atomic&&$o(u.doc),wr(u,"markerAdded",u,o)}return o}Ns.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Rn(e),Ie(this,"clear")){var r=this.find();r&&wr(this,"clear",r.from,r.to)}for(var i=null,n=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=Bt(s.markedSpans,this);e&&!this.collapsed?Hi(e,st(s),"text"):e&&(null!=a.to&&(n=st(s)),null!=a.from&&(i=st(s))),s.markedSpans=Ft(s.markedSpans,a),null==a.from&&this.collapsed&&!lr(this.doc,s)&&e&&ot(s,wi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=ir(this.lines[l]),c=pr(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Vi(e,i,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&$o(e.doc)),e&&wr(e,"markerCleared",e,this,i,n),t&&bn(e),this.parent&&this.parent.clear()}},Ns.prototype.find=function(e,t){var r,i;null==e&&"bookmark"==this.type&&(e=1);for(var n=0;n<this.lines.length;++n){var o=this.lines[n],s=Bt(o.markedSpans,this);if(null!=s.from&&(r=ct(t?o:st(o),s.from),-1==e))return r;if(null!=s.to&&(i=ct(t?o:st(o),s.to),1==e))return i}return r&&{from:r,to:i}},Ns.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,i=this.doc.cm;t&&i&&kn(i,function(){var n=t.line,o=st(t.line),s=oi(i,o);if(s&&(fi(s),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!lr(r.doc,n)&&null!=r.height){var a=r.height;r.height=null;var l=Yr(r)-a;l&&ot(n,n.height+l)}wr(i,"markerChanged",i,e)})},Ns.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ns.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Se(Ns);var As=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function Ls(e,t,r,i,n){(i=H(i)).shared=!1;var o=[ys(e,t,r,i,n)],s=o[0],a=i.widgetNode;return Lo(e,function(e){a&&(i.widgetNode=a.cloneNode(!0)),o.push(ys(e,gt(e,t),gt(e,r),i,n));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;s=ee(o)}),new As(o,s)}function Ts(e){return e.findMarks(ct(e.first,0),e.clipPos(ct(e.lastLine())),function(e){return e.parent})}function Is(e,t){for(var r=0;r<t.length;r++){var i=t[r],n=i.find(),o=e.clipPos(n.from),s=e.clipPos(n.to);if(pt(o,s)){var a=ys(e,o,s,i.primary,i.primary.type);i.markers.push(a),a.parent=i}}}function Ss(e){for(var t=function(t){var r=e[t],i=[r.primary.doc];Lo(r.primary.doc,function(e){return i.push(e)});for(var n=0;n<r.markers.length;n++){var o=r.markers[n];-1==W(i,o.doc)&&(o.parent=null,r.markers.splice(n--,1))}},r=0;r<e.length;r++)t(r)}As.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();wr(this,"clear")}},As.prototype.find=function(e,t){return this.primary.find(e,t)},Se(As);var Cs=0,Rs=function(e,t,r,i,n){if(!(this instanceof Rs))return new Rs(e,t,r,i,n);null==r&&(r=0),Es.call(this,[new fs([new hr("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=ct(r,0);this.sel=ho(o),this.history=new Co(null),this.id=++Cs,this.modeOption=t,this.lineSep=i,this.direction="rtl"==n?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ao(this,{from:o,to:o,text:e}),Yo(this,ho(o),K)};Rs.prototype=ne(Es.prototype,{constructor:Rs,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,i=0;i<t.length;++i)r+=t[i].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=nt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Bn(function(e){var t=ct(this.first,0),r=this.first+this.size-1;is(this,{from:t,to:ct(r,rt(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&hn(this.cm,0,0),Yo(this,ho(t),K)}),replaceRange:function(e,t,r,i){us(this,e,t=gt(this,t),r=r?gt(this,r):t,i)},getRange:function(e,t,r){var i=it(this,gt(this,e),gt(this,t));return!1===r?i:""===r?i.join(""):i.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(lt(this,e))return rt(this,e)},getLineNumber:function(e){return st(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=rt(this,e)),ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return gt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Bn(function(e,t,r){qo(this,gt(this,"number"==typeof e?ct(e,t||0):e),null,r)}),setSelection:Bn(function(e,t,r){qo(this,gt(this,e),gt(this,t||e),r)}),extendSelection:Bn(function(e,t,r){Vo(this,gt(this,e),t&&gt(this,t),r)}),extendSelections:Bn(function(e,t){Ho(this,xt(this,e),t)}),extendSelectionsBy:Bn(function(e,t){Ho(this,xt(this,te(this.sel.ranges,e)),t)}),setSelections:Bn(function(e,t,r){if(e.length){for(var i=[],n=0;n<e.length;n++)i[n]=new co(gt(this,e[n].anchor),gt(this,e[n].head||e[n].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Yo(this,po(this.cm,i,t),r)}}),addSelection:Bn(function(e,t,r){var i=this.sel.ranges.slice(0);i.push(new co(gt(this,e),gt(this,t||e))),Yo(this,po(this.cm,i,i.length-1),r)}),getSelection:function(e){for(var t,r=this.sel.ranges,i=0;i<r.length;i++){var n=it(this,r[i].from(),r[i].to());t=t?t.concat(n):n}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,i=0;i<r.length;i++){var n=it(this,r[i].from(),r[i].to());!1!==e&&(n=n.join(e||this.lineSeparator())),t[i]=n}return t},replaceSelection:function(e,t,r){for(var i=[],n=0;n<this.sel.ranges.length;n++)i[n]=e;this.replaceSelections(i,t,r||"+input")},replaceSelections:Bn(function(e,t,r){for(var i=[],n=this.sel,o=0;o<n.ranges.length;o++){var s=n.ranges[o];i[o]={from:s.from(),to:s.to(),text:this.splitLines(e[o]),origin:r}}for(var a=t&&"end"!=t&&vo(this,i,t),l=i.length-1;l>=0;l--)is(this,i[l]);a?zo(this,a):this.cm&&dn(this.cm)}),undo:Bn(function(){os(this,"undo")}),redo:Bn(function(){os(this,"redo")}),undoSelection:Bn(function(){os(this,"undo",!0)}),redoSelection:Bn(function(){os(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var n=0;n<e.undone.length;n++)e.undone[n].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Co(this.history),Lo(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Bo(this.history.done),undone:Bo(this.history.undone)}},setHistory:function(e){var t=this.history=new Co(this.history);t.done=Bo(e.done.slice(0),null,!0),t.undone=Bo(e.undone.slice(0),null,!0)},setGutterMarker:Bn(function(e,t,r){return hs(this,e,"gutter",function(e){var i=e.gutterMarkers||(e.gutterMarkers={});return i[t]=r,!r&&le(i)&&(e.gutterMarkers=null),!0})}),clearGutter:Bn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&hs(t,r,"gutter",function(){return r.gutterMarkers[e]=null,le(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!lt(this,e))return null;if(t=e,!(e=rt(this,e)))return null}else if(null==(t=st(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Bn(function(e,t,r){return hs(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[i]){if(I(r).test(e[i]))return!1;e[i]+=" "+r}else e[i]=r;return!0})}),removeLineClass:Bn(function(e,t,r){return hs(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",n=e[i];if(!n)return!1;if(null==r)e[i]=null;else{var o=n.match(I(r));if(!o)return!1;var s=o.index+o[0].length;e[i]=n.slice(0,o.index)+(o.index&&s!=n.length?" ":"")+n.slice(s)||null}return!0})}),addLineWidget:Bn(function(e,t,r){return vs(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return ys(this,gt(this,e),gt(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ys(this,e=gt(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=rt(this,(e=gt(this,e)).line).markedSpans;if(r)for(var i=0;i<r.length;++i){var n=r[i];(null==n.from||n.from<=e.ch)&&(null==n.to||n.to>=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,r){e=gt(this,e),t=gt(this,t);var i=[],n=e.line;return this.iter(e.line,t.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&n==e.line&&e.ch>=l.to||null==l.from&&n!=e.line||null!=l.from&&n==t.line&&l.from>=t.ch||r&&!r(l.marker)||i.push(l.marker.parent||l.marker)}++n}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var i=0;i<r.length;++i)null!=r[i].from&&e.push(r[i].marker)}),e},posFromIndex:function(e){var t,r=this.first,i=this.lineSeparator().length;return this.iter(function(n){var o=n.text.length+i;if(o>e)return t=e,!0;e-=o,++r}),gt(this,ct(r,t))},indexFromPos:function(e){var t=(e=gt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+r}),t},copy:function(e){var t=new Rs(nt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var i=new Rs(nt(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Is(i,Ts(this)),i},unlinkDoc:function(e){if(e instanceof Ha&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ss(Ts(this));break}if(e.history==this.history){var r=[e.id];Lo(e,function(e){return r.push(e.id)},!0),e.history=new Co(null),e.history.done=Bo(this.history.done,r),e.history.undone=Bo(this.history.undone,r)}},iterLinkedDocs:function(e){Lo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Be(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Bn(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&So(this.cm))})}),Rs.prototype.eachLine=Rs.prototype.iter;var bs=0;function Os(e){var t=this;if(ws(t),!Le(t,e)&&!Kr(t.display,e)){Ce(e),s&&(bs=+new Date);var r=Bi(t,e,!0),i=e.dataTransfer.files;if(r&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var n=i.length,o=Array(n),a=0,l=function(){++a==n&&Gn(t,function(){var e={from:r=gt(t.doc,r),to:r,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};is(t.doc,e),zo(t.doc,ho(gt(t.doc,r),gt(t.doc,fo(e))))})()},u=function(e,r){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))l();else{var i=new FileReader;i.onerror=function(){return l()},i.onload=function(){var e=i.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[r]=e),l()},i.readAsText(e)}},c=0;c<i.length;c++)u(i[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Ko(t.doc,ho(r,r)),d)for(var h=0;h<d.length;++h)us(t.doc,"",d[h].anchor,d[h].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function _s(e,t){if(s&&(!e.state.draggingText||+new Date-bs<100))Oe(t);else if(!Le(e,t)&&!Kr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=O("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),d&&r.parentNode.removeChild(r)}}function Ps(e,t){var r=Bi(e,t);if(r){var i=document.createDocumentFragment();Xi(e,r,i),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),b(e.display.dragCursor,i)}}function ws(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ds(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],i=0;i<t.length;i++){var n=t[i].CodeMirror;n&&r.push(n)}r.length&&r[0].operation(function(){for(var t=0;t<r.length;t++)e(r[t])})}}var Ms=!1;function ks(){Ms||(Gs(),Ms=!0)}function Gs(){var e;xe(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Ds(Us)},100))}),xe(window,"blur",function(){return Ds(rn)})}function Us(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bs={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fs=0;Fs<10;Fs++)Bs[Fs+48]=Bs[Fs+96]=String(Fs);for(var Vs=65;Vs<=90;Vs++)Bs[Vs]=String.fromCharCode(Vs);for(var Hs=1;Hs<=12;Hs++)Bs[Hs+111]=Bs[Hs+63235]="F"+Hs;var js={};function qs(e){var t,r,i,n,o=e.split(/-(?!$)/);e=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))n=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);i=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),n&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ws(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==i){delete e[r];continue}for(var n=te(r.split(" "),qs),o=0;o<n.length;o++){var s=void 0,a=void 0;o==n.length-1?(a=n.join(" "),s=i):(a=n.slice(0,o+1).join(" "),s="...");var l=t[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else t[a]=s}delete e[r]}for(var u in t)e[u]=t[u];return e}function zs(e,t,r,i){var n=(t=$s(t)).call?t.call(e,i):t[e];if(!1===n)return"nothing";if("..."===n)return"multi";if(null!=n&&r(n))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return zs(e,t.fallthrough,r,i);for(var o=0;o<t.fallthrough.length;o++){var s=zs(e,t.fallthrough[o],r,i);if(s)return s}}}function Ys(e){var t="string"==typeof e?e:Bs[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ks(e,t,r){var i=e;return t.altKey&&"Alt"!=i&&(e="Alt-"+e),(L?t.metaKey:t.ctrlKey)&&"Ctrl"!=i&&(e="Ctrl-"+e),(L?t.ctrlKey:t.metaKey)&&"Mod"!=i&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=i&&(e="Shift-"+e),e}function Xs(e,t){if(d&&34==e.keyCode&&e.char)return!1;var r=Bs[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),Ks(r,e,t))}function $s(e){return"string"==typeof e?js[e]:e}function Qs(e,t){for(var r=e.doc.sel.ranges,i=[],n=0;n<r.length;n++){for(var o=t(r[n]);i.length&&pt(o.from,ee(i).to)<=0;){var s=i.pop();if(pt(s.from,o.from)<0){o.from=s.from;break}}i.push(o)}kn(e,function(){for(var t=i.length-1;t>=0;t--)us(e.doc,"",i[t].from,i[t].to,"+delete");dn(e)})}function Zs(e,t,r){var i=pe(e.text,t+r,r);return i<0||i>e.text.length?null:i}function Js(e,t,r){var i=Zs(e,t.ch,r);return null==i?null:new ct(t.line,i,r<0?"after":"before")}function ea(e,t,r,i,n){if(e){"rtl"==t.doc.direction&&(n=-n);var o=ge(r,t.doc.direction);if(o){var s,a=n<0?ee(o):o[0],l=n<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=si(t,r);s=n<0?r.text.length-1:0;var c=ai(t,u,s).top;s=de(function(e){return ai(t,u,e).top==c},n<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Zs(r,s,1))}else s=n<0?a.to:a.from;return new ct(i,s,l)}}return new ct(i,n<0?r.text.length:0,n<0?"before":"after")}function ta(e,t,r,i){var n=ge(t,e.doc.direction);if(!n)return Js(t,r,i);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=Ee(n,r.ch,r.sticky),s=n[o];if("ltr"==e.doc.direction&&s.level%2==0&&(i>0?s.to>r.ch:s.from<r.ch))return Js(t,r,i);var a,l=function(e,r){return Zs(t,e instanceof ct?e.ch:e,r)},u=function(r){return e.options.lineWrapping?(a=a||si(e,t),Ri(e,t,a,r)):{begin:0,end:t.text.length}},c=u("before"==r.sticky?l(r,-1):r.ch);if("rtl"==e.doc.direction||1==s.level){var p=1==s.level==i<0,d=l(r,p?1:-1);if(null!=d&&(p?d<=s.to&&d<=c.end:d>=s.from&&d>=c.begin)){var h=p?"before":"after";return new ct(r.line,d,h)}}var f=function(e,t,i){for(var o=function(e,t){return t?new ct(r.line,l(e,1),"before"):new ct(r.line,e,"after")};e>=0&&e<n.length;e+=t){var s=n[e],a=t>0==(1!=s.level),u=a?i.begin:l(i.end,-1);if(s.from<=u&&u<s.to)return o(u,a);if(u=a?s.from:l(s.to,-1),i.begin<=u&&u<i.end)return o(u,a)}},E=f(o+i,i,c);if(E)return E;var m=i>0?c.end:l(c.begin,-1);return null==m||i>0&&m==t.text.length||!(E=f(i>0?0:n.length-1,i,u(m)))?null:E}js.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},js.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},js.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},js.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},js.default=x?js.macDefault:js.pcDefault;var ra={selectAll:ts,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return Qs(e,function(t){if(t.empty()){var r=rt(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:ct(t.head.line+1,0)}:{from:t.head,to:ct(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qs(e,function(t){return{from:ct(t.from().line,0),to:gt(e.doc,ct(t.to().line+1,0))}})},delLineLeft:function(e){return Qs(e,function(e){return{from:ct(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Qs(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Qs(e,function(t){var r=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ct(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ct(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ia(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return oa(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return na(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},$)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},$)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:r},"div");return i.ch<e.getLine(i.line).search(/\S/)?oa(e,t.head):i},$)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),i=e.options.tabSize,n=0;n<r.length;n++){var o=r[n].from(),s=j(e.getLine(o.line),o.ch,i);t.push(J(i-s%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return kn(e,function(){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)if(t[i].empty()){var n=t[i].head,o=rt(e.doc,n.line).text;if(o)if(n.ch==o.length&&(n=new ct(n.line,n.ch-1)),n.ch>0)n=new ct(n.line,n.ch+1),e.replaceRange(o.charAt(n.ch-1)+o.charAt(n.ch-2),ct(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var s=rt(e.doc,n.line-1).text;s&&(n=new ct(n.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+s.charAt(s.length-1),ct(n.line-1,s.length-1),n,"+transpose"))}r.push(new co(n,n))}e.setSelections(r)})},newlineAndIndent:function(e){return kn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);dn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ia(e,t){var r=rt(e.doc,t),i=ir(r);return i!=r&&(t=st(i)),ea(!0,e,i,t,1)}function na(e,t){var r=rt(e.doc,t),i=nr(r);return i!=r&&(t=st(i)),ea(!0,e,r,t,-1)}function oa(e,t){var r=ia(e,t.line),i=rt(e.doc,r.line),n=ge(i,e.doc.direction);if(!n||0==n[0].level){var o=Math.max(r.ch,i.text.search(/\S/)),s=t.line==r.line&&t.ch<=o&&t.ch;return ct(r.line,s?0:o,r.sticky)}return r}function sa(e,t,r){if("string"==typeof t&&!(t=ra[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),n=t(e)!=Y}finally{e.display.shift=i,e.state.suppressEdits=!1}return n}function aa(e,t,r){for(var i=0;i<e.state.keyMaps.length;i++){var n=zs(t,e.state.keyMaps[i],r,e);if(n)return n}return e.options.extraKeys&&zs(t,e.options.extraKeys,r,e)||zs(t,e.options.keyMap,r,e)}var la=new q;function ua(e,t,r,i){var n=e.state.keySeq;if(n){if(Ys(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:la.set(50,function(){e.state.keySeq==n&&(e.state.keySeq=null,e.display.input.reset())}),ca(e,n+" "+t,r,i))return!0}return ca(e,t,r,i)}function ca(e,t,r,i){var n=aa(e,t,i);return"multi"==n&&(e.state.keySeq=t),"handled"==n&&wr(e,"keyHandled",e,t,r),"handled"!=n&&"multi"!=n||(Ce(r),Zi(e)),!!n}function pa(e,t){var r=Xs(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?ua(e,"Shift-"+r,t,function(t){return sa(e,t,!0)})||ua(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return sa(e,t)}):ua(e,r,t,function(t){return sa(e,t)}))}function da(e,t,r){return ua(e,"'"+r+"'",t,function(t){return sa(e,t,!0)})}var ha=null;function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=w(U(t)),Le(t,e)))){s&&a<11&&27==e.keyCode&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=16==i||e.shiftKey;var n=pa(t,e);d&&(ha=n?i:null,n||88!=i||Ve||!(x?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),r&&!x&&!n&&46==i&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=i||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||Ea(t)}}function Ea(e){var t=e.display.lineDiv;function r(e){18!=e.keyCode&&e.altKey||(C(t,"CodeMirror-crosshair"),ye(document,"keyup",r),ye(document,"mouseover",r))}D(t,"CodeMirror-crosshair"),xe(document,"keyup",r),xe(document,"mouseover",r)}function ma(e){16==e.keyCode&&(this.doc.sel.shift=!1),Le(this,e)}function ga(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Kr(t.display,e)||Le(t,e)||e.ctrlKey&&!e.altKey||x&&e.metaKey)){var r=e.keyCode,i=e.charCode;if(d&&r==ha)return ha=null,void Ce(e);if(!d||e.which&&!(e.which<10)||!pa(t,e)){var n=String.fromCharCode(i??r);"\b"!=n&&(da(t,e,n)||t.display.input.onKeyPress(e))}}}var va,xa,Na=400,ya=function(e,t,r){this.time=e,this.pos=t,this.button=r};function Aa(e,t){var r=+new Date;return xa&&xa.compare(r,e,t)?(va=xa=null,"triple"):va&&va.compare(r,e,t)?(xa=new ya(r,e,t),va=null,"double"):(va=new ya(r,e,t),xa=null,"single")}function La(e){var t=this,r=t.display;if(!(Le(t,e)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=e.shiftKey,Kr(r,e))l||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));else if(!Pa(t,e)){var i=Bi(t,e),n=Pe(e),o=i?Aa(i,n):"single";F(t).focus(),1==n&&t.state.selectingText&&t.state.selectingText(e),i&&Ta(t,n,i,o,e)||(1==n?i?Sa(t,i,o,e):_e(e)==r.scroller&&Ce(e):2==n?(i&&Vo(t.doc,i),setTimeout(function(){return r.input.focus()},20)):3==n&&(T?t.display.input.onContextMenu(e):en(t)))}}function Ta(e,t,r,i,n){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),ua(e,Ks(o=(1==t?"Left":2==t?"Middle":"Right")+o,n),n,function(t){if("string"==typeof t&&(t=ra[t]),!t)return!1;var i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i=t(e,r)!=Y}finally{e.state.suppressEdits=!1}return i})}function Ia(e,t,r){var i=e.getOption("configureMouse"),n=i?i(e,t,r):{};if(null==n.unit){var o=N?r.shiftKey&&r.metaKey:r.altKey;n.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==n.extend||e.doc.extend)&&(n.extend=e.doc.extend||r.shiftKey),null==n.addNew&&(n.addNew=x?r.metaKey:r.ctrlKey),null==n.moveOnDrag&&(n.moveOnDrag=!(x?r.altKey:r.ctrlKey)),n}function Sa(e,t,r,i){s?setTimeout(V(Ji,e),0):e.curOp.focus=w(U(e));var n,o=Ia(e,r,i),a=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==r&&(n=a.contains(t))>-1&&(pt((n=a.ranges[n]).from(),t)<0||t.xRel>0)&&(pt(n.to(),t)>0||t.xRel<0)?Ca(e,i,t,o):ba(e,i,t,o)}function Ca(e,t,r,i){var n=e.display,o=!1,u=Gn(e,function(t){l&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:en(e)),ye(n.wrapper.ownerDocument,"mouseup",u),ye(n.wrapper.ownerDocument,"mousemove",c),ye(n.scroller,"dragstart",p),ye(n.scroller,"drop",u),o||(Ce(t),i.addNew||Vo(e.doc,r,null,null,i.extend),l&&!h||s&&9==a?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};l&&(n.scroller.draggable=!0),e.state.draggingText=u,u.copy=!i.moveOnDrag,xe(n.wrapper.ownerDocument,"mouseup",u),xe(n.wrapper.ownerDocument,"mousemove",c),xe(n.scroller,"dragstart",p),xe(n.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function Ra(e,t,r){if("char"==r)return new co(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new co(ct(t.line,0),gt(e.doc,ct(t.line+1,0)));var i=r(e,t);return new co(i.from,i.to)}function ba(e,t,r,i){s&&en(e);var n=e.display,o=e.doc;Ce(t);var a,l,u=o.sel,c=u.ranges;if(i.addNew&&!i.extend?(l=o.sel.contains(r),a=l>-1?c[l]:new co(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new co(r,r)),r=Bi(e,t,!0,!0),l=-1;else{var p=Ra(e,r,i.unit);a=i.extend?Fo(a,p.anchor,p.head,i.extend):p}i.addNew?-1==l?(l=c.length,Yo(o,po(e,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==i.unit&&!i.extend?(Yo(o,po(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):jo(o,l,a,X):(l=0,Yo(o,new uo([a],0),X),u=o.sel);var d=r;function h(t){if(0!=pt(d,t))if(d=t,"rectangle"==i.unit){for(var n=[],s=e.options.tabSize,c=j(rt(o,r.line).text,r.ch,s),p=j(rt(o,t.line).text,t.ch,s),h=Math.min(c,p),f=Math.max(c,p),E=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));E<=m;E++){var g=rt(o,E).text,v=Q(g,h,s);h==f?n.push(new co(ct(E,v),ct(E,v))):g.length>v&&n.push(new co(ct(E,v),ct(E,Q(g,f,s))))}n.length||n.push(new co(r,r)),Yo(o,po(e,u.ranges.slice(0,l).concat(n),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,N=a,y=Ra(e,t,i.unit),A=N.anchor;pt(y.anchor,A)>0?(x=y.head,A=Et(N.from(),y.anchor)):(x=y.anchor,A=ft(N.to(),y.head));var L=u.ranges.slice(0);L[l]=Oa(e,new co(gt(o,A),x)),Yo(o,po(e,L,l),X)}}var f=n.wrapper.getBoundingClientRect(),E=0;function m(t){var r=++E,s=Bi(e,t,!0,"rectangle"==i.unit);if(s)if(0!=pt(s,d)){e.curOp.focus=w(U(e)),h(s);var a=sn(n,o);(s.line>=a.to||s.line<a.from)&&setTimeout(Gn(e,function(){E==r&&m(t)}),150)}else{var l=t.clientY<f.top?-20:t.clientY>f.bottom?20:0;l&&setTimeout(Gn(e,function(){E==r&&(n.scroller.scrollTop+=l,m(t))}),50)}}function g(t){e.state.selectingText=!1,E=1/0,t&&(Ce(t),n.input.focus()),ye(n.wrapper.ownerDocument,"mousemove",v),ye(n.wrapper.ownerDocument,"mouseup",x),o.history.lastSelOrigin=null}var v=Gn(e,function(e){0!==e.buttons&&Pe(e)?m(e):g(e)}),x=Gn(e,g);e.state.selectingText=x,xe(n.wrapper.ownerDocument,"mousemove",v),xe(n.wrapper.ownerDocument,"mouseup",x)}function Oa(e,t){var r=t.anchor,i=t.head,n=rt(e.doc,r.line);if(0==pt(r,i)&&r.sticky==i.sticky)return t;var o=ge(n);if(!o)return t;var s=Ee(o,r.ch,r.sticky),a=o[s];if(a.from!=r.ch&&a.to!=r.ch)return t;var l,u=s+(a.from==r.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(i.line!=r.line)l=(i.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ee(o,i.ch,i.sticky),p=c-s||(i.ch-r.ch)*(1==a.level?-1:1);l=c==u-1||c==u?p<0:p>0}var d=o[u+(l?-1:0)],h=l==(1==d.level),f=h?d.from:d.to,E=h?"after":"before";return r.ch==f&&r.sticky==E?t:new co(new ct(r.line,f,E),i)}function _a(e,t,r,i){var n,o;if(t.touches)n=t.touches[0].clientX,o=t.touches[0].clientY;else try{n=t.clientX,o=t.clientY}catch(e){return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ce(t);var s=e.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ie(e,r))return be(t);o-=a.top-s.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=s.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=n)return Ae(e,r,e,at(e.doc,o),e.display.gutterSpecs[l].className,t),be(t)}}function Pa(e,t){return _a(e,t,"gutterClick",!0)}function wa(e,t){Kr(e.display,t)||Da(e,t)||Le(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function Da(e,t){return!!Ie(e,"gutterContextMenu")&&_a(e,t,"gutterContextMenu",!1)}function Ma(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mi(e)}ya.prototype.compare=function(e,t,r){return this.time+Na>e&&0==pt(t,this.pos)&&r==this.button};var ka={toString:function(){return"CodeMirror.Init"}},Ga={},Ua={};function Ba(e){var t=e.optionHandlers;function r(r,i,n,o){e.defaults[r]=i,n&&(t[r]=o?function(e,t,r){r!=ka&&n(e,t,r)}:n)}e.defineOption=r,e.Init=ka,r("value","",function(e,t){return e.setValue(t)},!0),r("mode",null,function(e,t){e.doc.modeOption=t,xo(e)},!0),r("indentUnit",2,xo,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(e){No(e),mi(e),Vi(e)},!0),r("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],i=e.doc.first;e.doc.iter(function(e){for(var n=0;;){var o=e.text.indexOf(t,n);if(-1==o)break;n=o+t.length,r.push(ct(i,o))}i++});for(var n=r.length-1;n>=0;n--)us(e.doc,t,r[n],ct(r[n].line,r[n].ch+t.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=ka&&e.refresh()}),r("specialCharPlaceholder",Nr,function(e){return e.refresh()},!0),r("electricChars",!0),r("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),r("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),r("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),r("rtlMoveVisually",!y),r("wholeLineUpdateBefore",!0),r("theme","default",function(e){Ma(e),ro(e)},!0),r("keyMap","default",function(e,t,r){var i=$s(t),n=r!=ka&&$s(r);n&&n.detach&&n.detach(e,i),i.attach&&i.attach(e,n||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Va,!0),r("gutters",[],function(e,t){e.display.gutterSpecs=eo(t,e.options.lineNumbers),ro(e)},!0),r("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ki(e.display)+"px":"0",e.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(e){return Ln(e)},!0),r("scrollbarStyle","native",function(e){Sn(e),Ln(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),r("lineNumbers",!1,function(e,t){e.display.gutterSpecs=eo(e.options.gutters,t),ro(e)},!0),r("firstLineNumber",1,ro,!0),r("lineNumberFormatter",function(e){return e},ro,!0),r("showCursorWhenSelecting",!1,Yi,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(e,t){"nocursor"==t&&(rn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),r("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),r("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),r("dragDrop",!0,Fa),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Yi,!0),r("singleCursorHeightPerLine",!0,Yi,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,No,!0),r("addModeClass",!1,No,!0),r("pollInterval",100),r("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),r("historyEventDelay",1250),r("viewportMargin",10,function(e){return e.refresh()},!0),r("maxHighlightLength",1e4,No,!0),r("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),r("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),r("autofocus",null),r("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),r("phrases",null)}function Fa(e,t,r){if(!t!=!(r&&r!=ka)){var i=e.display.dragFunctions,n=t?xe:ye;n(e.display.scroller,"dragstart",i.start),n(e.display.scroller,"dragenter",i.enter),n(e.display.scroller,"dragover",i.over),n(e.display.scroller,"dragleave",i.leave),n(e.display.scroller,"drop",i.drop)}}function Va(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),dr(e)),Ui(e),Vi(e),mi(e),setTimeout(function(){return Ln(e)},100)}function Ha(e,t){var r=this;if(!(this instanceof Ha))return new Ha(e,t);this.options=t=t?H(t):{},H(Ga,t,!1);var i=t.value;"string"==typeof i?i=new Rs(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var n=new Ha.inputStyles[t.inputStyle](this),o=this.display=new io(e,i,n,t);for(var u in o.wrapper.CodeMirror=this,Ma(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),s&&a<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ja(this),ks(),Rn(this),this.curOp.forceUpdate=!0,To(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&tn(r)},20):rn(this),Ua)Ua.hasOwnProperty(u)&&Ua[u](this,t[u],ka);Jn(this),t.finishInit&&t.finishInit(this);for(var c=0;c<qa.length;++c)qa[c](this);bn(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function ja(e){var t=e.display;xe(t.scroller,"mousedown",Gn(e,La)),xe(t.scroller,"dblclick",s&&a<11?Gn(e,function(t){if(!Le(e,t)){var r=Bi(e,t);if(r&&!Pa(e,t)&&!Kr(e.display,t)){Ce(t);var i=e.findWordAt(r);Vo(e.doc,i.anchor,i.head)}}}):function(t){return Le(e,t)||Ce(t)}),xe(t.scroller,"contextmenu",function(t){return wa(e,t)}),xe(t.input.getField(),"contextmenu",function(r){t.scroller.contains(r.target)||wa(e,r)});var r,i={end:0};function n(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),(i=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var r=t.left-e.left,i=t.top-e.top;return r*r+i*i>400}xe(t.scroller,"touchstart",function(n){if(!Le(e,n)&&!o(n)&&!Pa(e,n)){t.input.ensurePolled(),clearTimeout(r);var s=+new Date;t.activeTouch={start:s,moved:!1,prev:s-i.end<=300?i:null},1==n.touches.length&&(t.activeTouch.left=n.touches[0].pageX,t.activeTouch.top=n.touches[0].pageY)}}),xe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),xe(t.scroller,"touchend",function(r){var i=t.activeTouch;if(i&&!Kr(t,r)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,s=e.coordsChar(t.activeTouch,"page");o=!i.prev||l(i,i.prev)?new co(s,s):!i.prev.prev||l(i,i.prev.prev)?e.findWordAt(s):new co(ct(s.line,0),gt(e.doc,ct(s.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ce(r)}n()}),xe(t.scroller,"touchcancel",n),xe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(gn(e,t.scroller.scrollTop),xn(e,t.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),xe(t.scroller,"mousewheel",function(t){return lo(e,t)}),xe(t.scroller,"DOMMouseScroll",function(t){return lo(e,t)}),xe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){Le(e,t)||Oe(t)},over:function(t){Le(e,t)||(Ps(e,t),Oe(t))},start:function(t){return _s(e,t)},drop:Gn(e,Os),leave:function(t){Le(e,t)||ws(e)}};var u=t.input.getField();xe(u,"keyup",function(t){return ma.call(e,t)}),xe(u,"keydown",Gn(e,fa)),xe(u,"keypress",Gn(e,ga)),xe(u,"focus",function(t){return tn(e,t)}),xe(u,"blur",function(t){return rn(e,t)})}Ha.defaults=Ga,Ha.optionHandlers=Ua;var qa=[];function Wa(e,t,r,i){var n,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?n=Tt(e,t).state:r="prev");var s=e.options.tabSize,a=rt(o,t),l=j(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(i||/\S/.test(a.text)){if("smart"==r&&((u=o.mode.indent(n,a.text.slice(c.length),a.text))==Y||u>150)){if(!i)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?j(rt(o,t-1).text,null,s):0:"add"==r?u=l+e.options.indentUnit:"subtract"==r?u=l-e.options.indentUnit:"number"==typeof r&&(u=l+r),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/s);h;--h)d+=s,p+="\t";if(d<u&&(p+=J(u-d)),p!=c)return us(o,p,ct(t,0),ct(t,c.length),"+input"),a.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var E=o.sel.ranges[f];if(E.head.line==t&&E.head.ch<c.length){var m=ct(t,c.length);jo(o,f,new co(m,m));break}}}Ha.defineInitHook=function(e){return qa.push(e)};var za=null;function Ya(e){za=e}function Ka(e,t,r,i,n){var o=e.doc;e.display.shift=!1,i||(i=o.sel);var s=+new Date-200,a="paste"==n||e.state.pasteIncoming>s,l=Be(t),u=null;if(a&&i.ranges.length>1)if(za&&za.text.join("\n")==t){if(i.ranges.length%za.text.length==0){u=[];for(var c=0;c<za.text.length;c++)u.push(o.splitLines(za.text[c]))}}else l.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(u=te(l,function(e){return[e]}));for(var p=e.curOp.updateInput,d=i.ranges.length-1;d>=0;d--){var h=i.ranges[d],f=h.from(),E=h.to();h.empty()&&(r&&r>0?f=ct(f.line,f.ch-r):e.state.overwrite&&!a?E=ct(E.line,Math.min(rt(o,E.line).text.length,E.ch+ee(l).length)):a&&za&&za.lineWise&&za.text.join("\n")==l.join("\n")&&(f=E=ct(f.line,0)));var m={from:f,to:E,text:u?u[d%u.length]:l,origin:n||(a?"paste":e.state.cutIncoming>s?"cut":"+input")};is(e.doc,m),wr(e,"inputRead",e,m)}t&&!a&&$a(e,t),dn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xa(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||kn(t,function(){return Ka(t,r,0,null,"paste")}),!0}function $a(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,i=r.ranges.length-1;i>=0;i--){var n=r.ranges[i];if(!(n.head.ch>100||i&&r.ranges[i-1].head.line==n.head.line)){var o=e.getModeAt(n.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(t.indexOf(o.electricChars.charAt(a))>-1){s=Wa(e,n.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(rt(e.doc,n.head.line).text.slice(0,n.head.ch))&&(s=Wa(e,n.head.line,"smart"));s&&wr(e,"electricInput",e,n.head.line)}}}function Qa(e){for(var t=[],r=[],i=0;i<e.doc.sel.ranges.length;i++){var n=e.doc.sel.ranges[i].head.line,o={anchor:ct(n,0),head:ct(n+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function Za(e,t,r,i){e.setAttribute("autocorrect",r?"on":"off"),e.setAttribute("autocapitalize",i?"on":"off"),e.setAttribute("spellcheck",!!t)}function Ja(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function el(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){F(this).focus(),this.display.input.focus()},setOption:function(e,r){var i=this.options,n=i[e];i[e]==r&&"mode"!=e||(i[e]=r,t.hasOwnProperty(e)&&Gn(this,t[e])(this,r,n),Ae(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($s(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:Un(function(t,r){var i=t.token?t:e.getMode(this.options,t);if(i.startState)throw new Error("Overlays may not be stateful.");re(this.state.overlays,{mode:i,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},function(e){return e.priority}),this.state.modeGen++,Vi(this)}),removeOverlay:Un(function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var i=t[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return t.splice(r,1),this.state.modeGen++,void Vi(this)}}),indentLine:Un(function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),lt(this.doc,e)&&Wa(this,e,t,r)}),indentSelection:Un(function(e){for(var t=this.doc.sel.ranges,r=-1,i=0;i<t.length;i++){var n=t[i];if(n.empty())n.head.line>r&&(Wa(this,n.head.line,e,!0),r=n.head.line,i==this.doc.sel.primIndex&&dn(this));else{var o=n.from(),s=n.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l<r;++l)Wa(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[i].from().ch>0&&jo(this.doc,i,new co(o,u[i].to()),K)}}}),getTokenAt:function(e,t){return bt(this,e,t)},getLineTokens:function(e,t){return bt(this,ct(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,r=Lt(this,rt(this.doc,e.line)),i=0,n=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var s=i+n>>1;if((s?r[2*s-1]:0)>=o)n=s;else{if(!(r[2*s+1]<o)){t=r[2*s+2];break}i=s+1}}var a=t?t.indexOf("overlay "):-1;return a<0?t:0==a?null:t.slice(0,a-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var i=[];if(!r.hasOwnProperty(t))return i;var n=r[t],o=this.getModeAt(e);if("string"==typeof o[t])n[o[t]]&&i.push(n[o[t]]);else if(o[t])for(var s=0;s<o[t].length;s++){var a=n[o[t][s]];a&&i.push(a)}else o.helperType&&n[o.helperType]?i.push(n[o.helperType]):n[o.name]&&i.push(n[o.name]);for(var l=0;l<n._global.length;l++){var u=n._global[l];u.pred(o,this)&&-1==W(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(e,t){var r=this.doc;return Tt(this,(e=mt(r,e??r.first+r.size-1))+1,t).state},cursorCoords:function(e,t){var r=this.doc.sel.primary();return Li(this,null==e?r.head:"object"==typeof e?gt(this.doc,e):e?r.from():r.to(),t||"page")},charCoords:function(e,t){return Ai(this,gt(this.doc,e),t||"page")},coordsChar:function(e,t){return Si(this,(e=yi(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=yi(this,{top:e,left:0},t||"page").top,at(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var i,n=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,n=!0),i=rt(this.doc,e)}else i=e;return Ni(this,i,{top:0,left:0},t||"page",r||n).top+(n?this.doc.height-cr(i):0)},defaultTextHeight:function(){return wi(this.display)},defaultCharWidth:function(){return Di(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,i,n){var o=this.display,s=(e=Li(this,gt(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)s=e.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(s=e.bottom),a+t.offsetWidth>u&&(a=u-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==n?(a=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==n?a=0:"middle"==n&&(a=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),r&&un(this,{left:a,top:s,right:a+t.offsetWidth,bottom:s+t.offsetHeight})},triggerOnKeyDown:Un(fa),triggerOnKeyPress:Un(ga),triggerOnKeyUp:ma,triggerOnMouseDown:Un(La),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:Un(function(e){$a(this,e)}),findPosH:function(e,t,r,i){var n=1;t<0&&(n=-1,t=-t);for(var o=gt(this.doc,e),s=0;s<t&&!(o=tl(this.doc,o,n,r,i)).hitSide;++s);return o},moveH:Un(function(e,t){var r=this;this.extendSelectionsBy(function(i){return r.display.shift||r.doc.extend||i.empty()?tl(r.doc,i.head,e,t,r.options.rtlMoveVisually):e<0?i.from():i.to()},$)}),deleteH:Un(function(e,t){var r=this.doc.sel,i=this.doc;r.somethingSelected()?i.replaceSelection("",null,"+delete"):Qs(this,function(r){var n=tl(i,r.head,e,t,!1);return e<0?{from:n,to:r.head}:{from:r.head,to:n}})}),findPosV:function(e,t,r,i){var n=1,o=i;t<0&&(n=-1,t=-t);for(var s=gt(this.doc,e),a=0;a<t;++a){var l=Li(this,s,"div");if(null==o?o=l.left:l.left=o,(s=rl(this,l,n,r)).hitSide)break}return s},moveV:Un(function(e,t){var r=this,i=this.doc,n=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(s){if(o)return e<0?s.from():s.to();var a=Li(r,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),n.push(a.left);var l=rl(r,a,e,t);return"page"==t&&s==i.sel.primary()&&pn(r,Ai(r,l,"div").top-a.top),l},$),n.length)for(var s=0;s<i.sel.ranges.length;s++)i.sel.ranges[s].goalColumn=n[s]}),findWordAt:function(e){var t=rt(this.doc,e.line).text,r=e.ch,i=e.ch;if(t){var n=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=t.length||!r?++i:--r;for(var o=t.charAt(r),s=ae(o,n)?function(e){return ae(e,n)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ae(e)};r>0&&s(t.charAt(r-1));)--r;for(;i<t.length&&s(t.charAt(i));)++i}return new co(ct(e.line,r),ct(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==w(U(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Un(function(e,t){hn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Zr(this)-this.display.barHeight,width:e.scrollWidth-Zr(this)-this.display.barWidth,clientHeight:ei(this),clientWidth:Jr(this)}},scrollIntoView:Un(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ct(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?fn(this,e):mn(this,e.from,e.to,e.margin)}),setSize:Un(function(e,t){var r=this,i=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=i(e)),null!=t&&(this.display.wrapper.style.height=i(t)),this.options.lineWrapping&&Ei(this);var n=this.display.viewFrom;this.doc.iter(n,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Hi(r,n,"widget");break}++n}),this.curOp.forceUpdate=!0,Ae(this,"refresh",this)}),operation:function(e){return kn(this,e)},startOperation:function(){return Rn(this)},endOperation:function(){return bn(this)},refresh:Un(function(){var e=this.display.cachedTextHeight;Vi(this),this.curOp.forceUpdate=!0,mi(this),hn(this,this.doc.scrollLeft,this.doc.scrollTop),$n(this.display),(null==e||Math.abs(e-wi(this.display))>.5||this.options.lineWrapping)&&Ui(this),Ae(this,"refresh",this)}),swapDoc:Un(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),To(this,e),mi(this),this.display.input.reset(),hn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,wr(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Se(e),e.registerHelper=function(t,i,n){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][i]=n},e.registerGlobalHelper=function(t,i,n,o){e.registerHelper(t,i,o),r[t]._global.push({pred:n,val:o})}}function tl(e,t,r,i,n){var o=t,s=r,a=rt(e,t.line),l=n&&"rtl"==e.direction?-r:r;function u(){var r=t.line+l;return!(r<e.first||r>=e.first+e.size)&&(t=new ct(r,t.ch,t.sticky),a=rt(e,r))}function c(o){var s;if("codepoint"==i){var c=a.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(c))s=null;else{var p=r>0?c>=55296&&c<56320:c>=56320&&c<57343;s=new ct(t.line,Math.max(0,Math.min(a.text.length,t.ch+r*(p?2:1))),-r)}}else s=n?ta(e.cm,a,t,r):Js(a,t,r);if(null==s){if(o||!u())return!1;t=ea(n,e.cm,a,t.line,l)}else t=s;return!0}if("char"==i||"codepoint"==i)c();else if("column"==i)c(!0);else if("word"==i||"group"==i)for(var p=null,d="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(r<0)||c(!f);f=!1){var E=a.text.charAt(t.ch)||"\n",m=ae(E,h)?"w":d&&"\n"==E?"n":!d||/\s/.test(E)?null:"p";if(!d||f||m||(m="s"),p&&p!=m){r<0&&(r=1,c(),t.sticky="after");break}if(m&&(p=m),r>0&&!c(!f))break}var g=Jo(e,t,o,s,!0);return dt(o,g)&&(g.hitSide=!0),g}function rl(e,t,r,i){var n,o,s=e.doc,a=t.left;if("page"==i){var l=Math.min(e.display.wrapper.clientHeight,F(e).innerHeight||s(e).documentElement.clientHeight),u=Math.max(l-.5*wi(e.display),3);n=(r>0?t.bottom:t.top)+r*u}else"line"==i&&(n=r>0?t.bottom+3:t.top-3);for(;(o=Si(e,a,n)).outside;){if(r<0?n<=0:n>=s.height){o.hitSide=!0;break}n+=5*r}return o}var il=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function nl(e,t){var r=oi(e,t.line);if(!r||r.hidden)return null;var i=rt(e.doc,t.line),n=ri(r,i,t.line),o=ge(i,e.doc.direction),s="left";o&&(s=Ee(o,t.ch)%2?"right":"left");var a=ci(n.map,t.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function ol(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function sl(e,t){return t&&(e.bad=!0),e}function al(e,t,r,i,n){var o="",s=!1,a=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){s&&(o+=a,l&&(o+=a),s=l=!1)}function p(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void p(r);var o,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(ct(i,0),ct(n+1,0),u(+h));return void(f.length&&(o=f[0].find(0))&&p(it(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var E=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;E&&c();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),E&&(s=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=r;)t=t.nextSibling,l=!1;return o}function ll(e,t,r){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[r]))return sl(e.clipPos(ct(e.display.viewTo-1)),!0);t=null,r=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var n=0;n<e.display.view.length;n++){var o=e.display.view[n];if(o.node==i)return ul(o,t,r)}}function ul(e,t,r){var i=e.text.firstChild,n=!1;if(!t||!P(i,t))return sl(ct(st(e.line),0),!0);if(t==i&&(n=!0,t=i.childNodes[r],r=0,!t)){var o=e.rest?ee(e.rest):e.line;return sl(ct(st(o),o.text.length),n)}var s=3==t.nodeType?t:null,a=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,r&&(r=s.nodeValue.length));a.parentNode!=i;)a=a.parentNode;var l=e.measure,u=l.maps;function c(t,r,i){for(var n=-1;n<(u?u.length:0);n++)for(var o=n<0?l.map:u[n],s=0;s<o.length;s+=3){var a=o[s+2];if(a==t||a==r){var c=st(n<0?e.line:e.rest[n]),p=o[s]+i;return(i<0||a!=t)&&(p=o[s+(i?1:0)]),ct(c,p)}}}var p=c(s,a,r);if(p)return sl(p,n);for(var d=a.nextSibling,h=s?s.nodeValue.length-r:0;d;d=d.nextSibling){if(p=c(d,d.firstChild,0))return sl(ct(p.line,p.ch-h),n);h+=d.textContent.length}for(var f=a.previousSibling,E=r;f;f=f.previousSibling){if(p=c(f,f.firstChild,-1))return sl(ct(p.line,p.ch+E),n);E+=f.textContent.length}}il.prototype.init=function(e){var t=this,r=this,i=r.cm,n=r.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function s(e){if(o(e)&&!Le(i,e)){if(i.somethingSelected())Ya({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Qa(i);Ya({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,K),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var s=za.text.join("\n");if(e.clipboardData.setData("Text",s),e.clipboardData.getData("Text")==s)return void e.preventDefault()}var a=Ja(),l=a.firstChild;Za(l),i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=za.text.join("\n");var u=w(B(n));k(l),setTimeout(function(){i.display.lineSpace.removeChild(a),u.focus(),u==n&&r.showPrimarySelection()},50)}}n.contentEditable=!0,Za(n,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),xe(n,"paste",function(e){!o(e)||Le(i,e)||Xa(e,i)||a<=11&&setTimeout(Gn(i,function(){return t.updateFromDOM()}),20)}),xe(n,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),xe(n,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),xe(n,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),xe(n,"touchstart",function(){return r.forceCompositionEnd()}),xe(n,"input",function(){t.composing||t.readFromDOMSoon()}),xe(n,"copy",s),xe(n,"cut",s)},il.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=Ki(this.cm,!1);return e.focus=w(B(this.div))==this.div,e},il.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},il.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},il.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),o=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var s=ll(t,e.anchorNode,e.anchorOffset),a=ll(t,e.focusNode,e.focusOffset);if(!s||s.bad||!a||a.bad||0!=pt(Et(s,a),n)||0!=pt(ft(s,a),o)){var l=t.display.view,u=n.line>=t.display.viewFrom&&nl(t,n)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&nl(t,o);if(!c){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var h,f=e.rangeCount&&e.getRangeAt(0);try{h=S(u.node,u.offset,c.offset,c.node)}catch(e){}h&&(!r&&t.state.focused?(e.collapse(u.node,u.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),f&&null==e.anchorNode?e.addRange(f):r&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},il.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},il.prototype.showMultipleSelections=function(e){b(this.cm.display.cursorDiv,e.cursors),b(this.cm.display.selectionDiv,e.selection)},il.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},il.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return P(this.div,t)},il.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&w(B(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},il.prototype.blur=function(){this.div.blur()},il.prototype.getField=function(){return this.div},il.prototype.supportsTouch=function(){return!0},il.prototype.receivedFocus=function(){var e=this,t=this;function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):kn(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,r)},il.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},il.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&c&&this.cm.display.gutterSpecs.length&&ol(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=ll(t,e.anchorNode,e.anchorOffset),i=ll(t,e.focusNode,e.focusOffset);r&&i&&kn(t,function(){Yo(t.doc,ho(r,i),K),(r.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},il.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,i=this.cm,n=i.display,o=i.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>i.firstLine()&&(s=ct(s.line-1,rt(i.doc,s.line-1).length)),a.ch==rt(i.doc,a.line).text.length&&a.line<i.lastLine()&&(a=ct(a.line+1,0)),s.line<n.viewFrom||a.line>n.viewTo-1)return!1;s.line==n.viewFrom||0==(e=Fi(i,s.line))?(t=st(n.view[0].line),r=n.view[0].node):(t=st(n.view[e].line),r=n.view[e-1].node.nextSibling);var l,u,c=Fi(i,a.line);if(c==n.view.length-1?(l=n.viewTo-1,u=n.lineDiv.lastChild):(l=st(n.view[c+1].line)-1,u=n.view[c+1].node.previousSibling),!r)return!1;for(var p=i.doc.splitLines(al(i,r,u,t,l)),d=it(i.doc,ct(t,0),ct(l,rt(i.doc,l).text.length));p.length>1&&d.length>1;)if(ee(p)==ee(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var h=0,f=0,E=p[0],m=d[0],g=Math.min(E.length,m.length);h<g&&E.charCodeAt(h)==m.charCodeAt(h);)++h;for(var v=ee(p),x=ee(d),N=Math.min(v.length-(1==p.length?h:0),x.length-(1==d.length?h:0));f<N&&v.charCodeAt(v.length-f-1)==x.charCodeAt(x.length-f-1);)++f;if(1==p.length&&1==d.length&&t==s.line)for(;h&&h>s.ch&&v.charCodeAt(v.length-f-1)==x.charCodeAt(x.length-f-1);)h--,f++;p[p.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),p[0]=p[0].slice(h).replace(/\u200b+$/,"");var y=ct(t,h),A=ct(l,d.length?ee(d).length-f:0);return p.length>1||p[0]||pt(y,A)?(us(i.doc,p,y,A,"+input"),!0):void 0},il.prototype.ensurePolled=function(){this.forceCompositionEnd()},il.prototype.reset=function(){this.forceCompositionEnd()},il.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},il.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},il.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||kn(this.cm,function(){return Vi(e.cm)})},il.prototype.setUneditable=function(e){e.contentEditable="false"},il.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Gn(this.cm,Ka)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},il.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},il.prototype.onContextMenu=function(){},il.prototype.resetPosition=function(){},il.prototype.needsContentAttribute=!0;var cl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};function pl(e,t){if((t=t?H(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=w(B(e));t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function i(){e.value=a.getValue()}var n;if(e.form&&(xe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;n=o.submit;try{var s=o.submit=function(){i(),o.submit=n,o.submit(),o.submit=s}}catch(e){}}t.finishInit=function(r){r.save=i,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,i(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=n))}},e.style.display="none";var a=Ha(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a}function dl(e){e.off=ye,e.on=xe,e.wheelEventPixels=ao,e.Doc=Rs,e.splitLines=Be,e.countColumn=j,e.findColumn=Q,e.isWordChar=se,e.Pass=Y,e.signal=Ae,e.Line=hr,e.changeEnd=fo,e.scrollbarModel=In,e.Pos=ct,e.cmpPos=pt,e.modes=qe,e.mimeModes=We,e.resolveMode=Ke,e.getMode=Xe,e.modeExtensions=$e,e.extendMode=Qe,e.copyState=Ze,e.startState=et,e.innerMode=Je,e.commands=ra,e.keyMap=js,e.keyName=Xs,e.isModifierKey=Ys,e.lookupKey=zs,e.normalizeKeyMap=Ws,e.StringStream=tt,e.SharedTextMarker=As,e.TextMarker=Ns,e.LineWidget=ms,e.e_preventDefault=Ce,e.e_stopPropagation=Re,e.e_stop=Oe,e.addClass=D,e.contains=P,e.rmClass=C,e.keyNames=Bs}cl.prototype.init=function(e){var t=this,r=this,i=this.cm;this.createField(e);var n=this.textarea;function o(e){if(!Le(i,e)){if(i.somethingSelected())Ya({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Qa(i);Ya({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,K):(r.prevInput="",n.value=t.text.join("\n"),k(n))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(n.style.width="0px"),xe(n,"input",function(){s&&a>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),xe(n,"paste",function(e){Le(i,e)||Xa(e,i)||(i.state.pasteIncoming=+new Date,r.fastPoll())}),xe(n,"cut",o),xe(n,"copy",o),xe(e.scroller,"paste",function(t){if(!Kr(e,t)&&!Le(i,t)){if(!n.dispatchEvent)return i.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,n.dispatchEvent(o)}}),xe(e.lineSpace,"selectstart",function(t){Kr(e,t)||Ce(t)}),xe(n,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),xe(n,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},cl.prototype.createField=function(e){this.wrapper=Ja(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Za(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},cl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},cl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,i=Ki(e);if(e.options.moveInputWithCursor){var n=Li(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),s=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+s.left-o.left))}return i},cl.prototype.showSelection=function(e){var t=this.cm.display;b(t.cursorDiv,e.cursors),b(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},cl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&k(this.textarea),s&&a>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null));this.resetting=!1}},cl.prototype.getField=function(){return this.textarea},cl.prototype.supportsTouch=function(){return!1},cl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||w(B(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},cl.prototype.blur=function(){this.textarea.blur()},cl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cl.prototype.receivedFocus=function(){this.slowPoll()},cl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},cl.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},cl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(r)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=r.value;if(n==i&&!t.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===n||x&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=n.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(i.length,n.length);l<u&&i.charCodeAt(l)==n.charCodeAt(l);)++l;return kn(t,function(){Ka(t,n.slice(l),i.length-l,null,e.composing?"*compose":null),n.length>1e3||n.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=n,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},cl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cl.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},cl.prototype.onContextMenu=function(e){var t=this,r=t.cm,i=r.display,n=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Bi(r,e),u=i.scroller.scrollTop;if(o&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&Gn(r,Yo)(r.doc,ho(o),K);var c,p=n.style.cssText,h=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",n.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=n.ownerDocument.defaultView.scrollY),i.input.focus(),l&&n.ownerDocument.defaultView.scrollTo(null,c),i.input.reset(),r.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=g,i.selForContextMenu=r.doc.sel,clearTimeout(i.detectingSelectAll),s&&a>=9&&m(),T){Oe(e);var E=function(){ye(window,"mouseup",E),setTimeout(g,20)};xe(window,"mouseup",E)}else setTimeout(g,50)}function m(){if(null!=n.selectionStart){var e=r.somethingSelected(),o="​"+(e?n.value:"");n.value="⇚",n.value=o,t.prevInput=e?"":"​",n.selectionStart=1,n.selectionEnd=o.length,i.selForContextMenu=r.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,n.style.cssText=p,s&&a<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=n.selectionStart)){(!s||s&&a<9)&&m();var e=0,o=function(){i.selForContextMenu==r.doc.sel&&0==n.selectionStart&&n.selectionEnd>0&&"​"==t.prevInput?Gn(r,ts)(r):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},cl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},cl.prototype.setUneditable=function(){},cl.prototype.needsContentAttribute=!1,Ba(Ha),el(Ha);var hl="iter insert remove copy getEditor constructor".split(" ");for(var fl in Rs.prototype)Rs.prototype.hasOwnProperty(fl)&&W(hl,fl)<0&&(Ha.prototype[fl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Rs.prototype[fl]));return Se(Rs),Ha.inputStyles={textarea:cl,contenteditable:il},Ha.defineMode=function(e){Ha.defaults.mode||"null"==e||(Ha.defaults.mode=e),ze.apply(this,arguments)},Ha.defineMIME=Ye,Ha.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ha.defineMIME("text/plain","null"),Ha.defineExtension=function(e,t){Ha.prototype[e]=t},Ha.defineDocExtension=function(e,t){Rs.prototype[e]=t},Ha.fromTextArea=pl,dl(Ha),Ha.version="5.65.20",Ha}()},1779:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}},1850:(e,t,r)=>{var i=r(7589).Global;function n(){return i.sessionStorage}function o(e){return n().getItem(e)}e.exports={name:"sessionStorage",read:o,write:function(e,t){return n().setItem(e,t)},each:function(e){for(var t=n().length-1;t>=0;t--){var r=n().key(t);e(o(r),r)}},remove:function(e){return n().removeItem(e)},clearAll:function(){return n().clear()}}},1907:(e,t,r)=>{var i=r(8696),n=r(6918);e.exports=function e(t,r){function o(e,n,s,a){try{var l=t[e](n),u=l.value;return u instanceof i?r.resolve(u.v).then(function(e){o("next",e,s,a)},function(e){o("throw",e,s,a)}):r.resolve(u).then(function(e){l.value=e,s(l)},function(e){return o("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(n(e.prototype),n(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(e,t,i){function n(){return new r(function(t,r){o(e,i,t,r)})}return s=s?s.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},2020:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}},2078:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(2977),n=r(8214);const o=function(e){return(0,n.A)(e)&&"[object Arguments]"==(0,i.A)(e)};var s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;const u=o(function(){return arguments}())?o:function(e){return(0,n.A)(e)&&a.call(e,"callee")&&!l.call(e,"callee")}},2448:(e,t,r)=>{!function(e){"use strict";e.defineOption("foldGutter",!1,function(t,n,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",u),t.off("changes",p),t.off("viewportChange",d),t.off("fold",h),t.off("unfold",h),t.off("swapDoc",p),t.off("optionChange",c)),n&&(t.state.foldGutter=new r(i(n)),l(t),t.on("gutterClick",u),t.on("changes",p),t.on("viewportChange",d),t.on("fold",h),t.on("unfold",h),t.on("swapDoc",p),t.on("optionChange",c))});var t=e.Pos;function r(e){this.options=e,this.from=this.to=0}function i(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function n(e,r){for(var i=e.findMarks(t(r,0),t(r+1,0)),n=0;n<i.length;++n)if(i[n].__isFold){var o=i[n].find(-1);if(o&&o.line===r)return i[n]}}function o(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function s(e,r,i){var s=e.state.foldGutter.options,l=r-1,u=e.foldOption(s,"minFoldSize"),c=e.foldOption(s,"rangeFinder"),p="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),d="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(r,i,function(r){++l;var i=null,a=r.gutterMarkers;if(a&&(a=a[s.gutter]),n(e,l)){if(p&&a&&p.test(a.className))return;i=o(s.indicatorFolded)}else{var h=t(l,0),f=c&&c(e,h);if(f&&f.to.line-f.from.line>=u){if(d&&a&&d.test(a.className))return;i=o(s.indicatorOpen)}}(i||a)&&e.setGutterMarker(r,s.gutter,i)})}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function l(e){var t=e.getViewport(),r=e.state.foldGutter;r&&(e.operation(function(){s(e,t.from,t.to)}),r.from=t.from,r.to=t.to)}function u(e,r,i){var o=e.state.foldGutter;if(o){var s=o.options;if(i==s.gutter){var a=n(e,r);a?a.clear():e.foldCode(t(r,0),s)}}}function c(e,t){"mode"==t&&p(e)}function p(e){var t=e.state.foldGutter;if(t){var r=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){l(e)},r.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var r=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var r=e.getViewport();t.from==t.to||r.from-t.to>20||t.from-r.to>20?l(e):e.operation(function(){r.from<t.from&&(s(e,r.from,t.from),t.from=r.from),r.to>t.to&&(s(e,t.to,r.to),t.to=r.to)})},r.updateViewportTimeSpan||400)}}function h(e,t){var r=e.state.foldGutter;if(r){var i=t.line;i>=r.from&&i<r.to&&s(e,i,i+1)}}}(r(1719),r(9754))},2700:(e,t,r)=>{"use strict";r.r(t)},2829:e=>{"use strict";e.exports=function(e,t){for(var r={},i=Object.keys(e),n=Array.isArray(t),o=0;o<i.length;o++){var s=i[o],a=e[s];(n?-1!==t.indexOf(s):t(s,a,e))&&(r[s]=a)}return r}},2928:(e,t,r)=>{"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=o.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,n=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return a}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}var l=r(7781),u=r(160),c=r(8723),p=r(2829);function d(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?l(e):encodeURIComponent(e):e}function f(e,t){return t.decode?u(e):e}function E(e){return Array.isArray(e)?e.sort():"object"===n(e)?E(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function m(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){var t=(e=m(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function x(e,t){d((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,i){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=r):i[e]=r};case"bracket":return function(e,r,i){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],r):i[e]=[r]:i[e]=r};case"comma":case"separator":return function(t,r,i){var n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&f(r,e).includes(e.arrayFormatSeparator);r=o?f(r,e):r;var s=n||o?r.split(e.arrayFormatSeparator).map(function(t){return f(t,e)}):null===r?r:f(r,e);i[t]=s};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a,l=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}(e.split("&"));try{for(l.s();!(a=l.n()).done;){var u=a.value;if(""!==u){var p=i(c(t.decode?u.replace(/\+/g," "):u,"="),2),h=p[0],m=p[1];m=void 0===m?null:["comma","separator"].includes(t.arrayFormat)?m:f(m,t),r(f(h,t),m,o)}}}catch(e){l.e(e)}finally{l.f()}for(var g=0,x=Object.keys(o);g<x.length;g++){var N=x[g],y=o[N];if("object"===n(y)&&null!==y)for(var A=0,L=Object.keys(y);A<L.length;A++){var T=L[A];y[T]=v(y[T],t)}else o[N]=v(y,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(function(e,t){var r=o[t];return Boolean(r)&&"object"===n(r)&&!Array.isArray(r)?e[t]=E(r):e[t]=r,e},Object.create(null))}t.extract=g,t.parse=x,t.stringify=function(e,t){if(!e)return"";d((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var r=function(r){return t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r]},i=function(e){switch(e.arrayFormat){case"index":return function(t){return function(r,i){var n=r.length;return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:[].concat(o(r),null===i?[[h(t,e),"[",n,"]"].join("")]:[[h(t,e),"[",h(n,e),"]=",h(i,e)].join("")])}};case"bracket":return function(t){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:[].concat(o(r),null===i?[[h(t,e),"[]"].join("")]:[[h(t,e),"[]=",h(i,e)].join("")])}};case"comma":case"separator":return function(t){return function(r,i){return null==i||0===i.length?r:0===r.length?[[h(t,e),"=",h(i,e)].join("")]:[[r,h(i,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:[].concat(o(r),null===i?[h(t,e)]:[[h(t,e),"=",h(i,e)].join("")])}}}}(t),n={},s=0,a=Object.keys(e);s<a.length;s++){var l=a[s];r(l)||(n[l]=e[l])}var u=Object.keys(n);return!1!==t.sort&&u.sort(t.sort),u.map(function(r){var n=e[r];return void 0===n?"":null===n?h(r,t):Array.isArray(n)?n.reduce(i(r),[]).join("&"):h(r,t)+"="+h(n,t)}).filter(function(e){return e.length>0}).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var r=i(c(e,"#"),2),n=r[0],o=r[1];return Object.assign({url:n.split("?")[0]||"",query:x(g(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:f(o,t)}:{})},t.stringifyUrl=function(e,r){r=Object.assign({encode:!0,strict:!0},r);var i=m(e.url).split("?")[0]||"",n=t.extract(e.url),o=t.parse(n,{sort:!1}),s=Object.assign(o,e.query),a=t.stringify(s,r);a&&(a="?".concat(a));var l=function(e){var t="",r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(l="#".concat(h(e.fragmentIdentifier,r))),"".concat(i).concat(a).concat(l)},t.pick=function(e,r,i){i=Object.assign({parseFragmentIdentifier:!0},i);var n=t.parseUrl(e,i),o=n.url,s=n.query,a=n.fragmentIdentifier;return t.stringifyUrl({url:o,query:p(s,r),fragmentIdentifier:a},i)},t.exclude=function(e,r,i){var n=Array.isArray(r)?function(e){return!r.includes(e)}:function(e,t){return!r(e,t)};return t.pick(e,n,i)}},2965:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(7181),n=r(8272),o=r(8285),s=r(8086),a=i.A?i.A.prototype:void 0,l=a?a.toString:void 0;const u=function e(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,n.A)(t,e)+"";if((0,s.A)(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const c=function(e){return null==e?"":u(e)}},2977:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(7181),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,a=i.A?i.A.toStringTag:void 0;const l=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var i=!0}catch(e){}var n=s.call(e);return i&&(t?e[a]=r:delete e[a]),n};var u=Object.prototype.toString;const c=function(e){return u.call(e)};var p=i.A?i.A.toStringTag:void 0;const d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?l(e):c(e)}},2984:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(t,r,i){for(var n=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++n];if(!1===r(o[l],l,o))break}return t}}()},2990:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3001:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(4603);const n=(0,r(5067).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const s=function(e){if(!(0,i.A)(e))return n(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},3074:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(3653),n=r(7242);const o=function(e,t){return function(r,i){if(null==r)return r;if(!(0,n.A)(r))return e(r,i);for(var o=r.length,s=t?o:-1,a=Object(r);(t?s--:++s<o)&&!1!==i(a[s],s,a););return r}}(i.A)},3111:(e,t,r)=>{"use strict";r.d(t,{wc:()=>a,iQ:()=>c,Mg:()=>l,vy:()=>p});var i=r(9418),n=r(9121),o=r(4758),s=r(5043),a=function(){return(0,o.A)(function e(t){(0,n.A)(this,e),this.namespace=t},[{key:"set",value:function(e,t,r,i){if(s.enabled&&(this.removeExpiredKeys(),e&&void 0!==t)){t.documentElement&&(t=(new XMLSerializer).serializeToString(t.documentElement));try{s.set(e,{namespace:this.namespace,val:t,exp:r,time:(new Date).getTime()/1e3})}catch(e){if(e instanceof Error){var n=e;if(n.quotaExceeded=function(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}(e),!n.quotaExceeded||!i)throw n;i(e)}throw e}}}},{key:"remove",value:function(e){s.enabled&&e&&s.remove(e)}},{key:"removeExpiredKeys",value:function(){var e=this;s.enabled&&s.each(function(t,r){t&&t.exp&&(new Date).getTime()/1e3-t.time>t.exp&&e.remove(r)})}},{key:"removeAll",value:function(){s.enabled}},{key:"removeNamespace",value:function(){var e=this;s.each(function(t,r){t.namespace&&t.namespace===e.namespace&&e.remove(r)})}},{key:"get",value:function(e){if(s.enabled&&e&&(this.removeExpiredKeys(),e)){var t=s.get(e);if(!t)return;return t.val}}}])}();i.A.sanitize;function l(e){if(e&&0==e.trim().indexOf("<svg")){var t=(new DOMParser).parseFromString(e,"text/xml").documentElement;t.setAttribute("aria-hidden","true");var r=document.createElement("div");return r.className="svgImg",r.appendChild(t),r}throw new Error("No svg string given. Cannot draw")}function u(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function c(e){if(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];for(var n=0,o=r;n<o.length;n++){var s=o[n];e.classList?e.classList.add(s):u(e,s)||(e.className+=" "+s)}}}function p(e,t){if(e)if(e.classList)e.classList.remove(t);else if(u(e,t)){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}}},3380:(e,t,r)=>{"use strict";r.r(t)},3382:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(8377),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===n?i.A.Buffer:void 0,a=s?s.allocUnsafe:void 0;const l=function(e,t){if(t)return e.slice();var r=e.length,i=a?a(r):new e.constructor(r);return e.copy(i),i}},3475:(e,t,r)=>{"use strict";r.r(t)},3653:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2984),n=r(6826);const o=function(e,t){return e&&(0,i.A)(e,t,n.A)}},3779:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(5826);const n=function(){this.__data__=new i.A,this.size=0};const o=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const s=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var l=r(6787),u=r(8412);const c=function(e,t){var r=this.__data__;if(r instanceof i.A){var n=r.__data__;if(!l.A||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new u.A(n)}return r.set(e,t),this.size=r.size,this};function p(e){var t=this.__data__=new i.A(e);this.size=t.size}p.prototype.clear=n,p.prototype.delete=o,p.prototype.get=s,p.prototype.has=a,p.prototype.set=c;const d=p},3869:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=/^(?:0|[1-9]\d*)$/;const n=function(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e<t}},4043:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(5186),n=r(6988);const o=function(e){return(0,i.A)(function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&(0,n.A)(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t})}},4182:(e,t,r)=>{"use strict";r.r(t)},4249:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var i=r(2977),n=r(7554),o=r(8214),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(e){return(0,o.A)(e)&&(0,n.A)(e.length)&&!!s[(0,i.A)(e)]};var l=r(9161),u=r(6037),c=u.A&&u.A.isTypedArray;const p=c?(0,l.A)(c):a},4360:(e,t,r)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{A:()=>i})},4479:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});const i=function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i};var n=r(2078),o=r(8285),s=r(6118),a=r(3869),l=r(4249),u=Object.prototype.hasOwnProperty;const c=function(e,t){var r=(0,o.A)(e),c=!r&&(0,n.A)(e),p=!r&&!c&&(0,s.A)(e),d=!r&&!c&&!p&&(0,l.A)(e),h=r||c||p||d,f=h?i(e.length,String):[],E=f.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.A)(m,E))||f.push(m);return f}},4508:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(6422),n=r(5757),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(e){return null==e?[]:(e=Object(e),(0,i.A)(s(e),function(t){return o.call(e,t)}))}:n.A},4560:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(2020),n=r(7181),o=r(2078),s=r(8285),a=n.A?n.A.isConcatSpreadable:void 0;const l=function(e){return(0,s.A)(e)||(0,o.A)(e)||!!(a&&e&&e[a])};const u=function e(t,r,n,o,s){var a=-1,u=t.length;for(n||(n=l),s||(s=[]);++a<u;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,o,s):(0,i.A)(s,c):o||(s[s.length]=c)}return s}},4603:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=Object.prototype;const n=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}},4636:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(t){return null==e?void 0:e[t]}}},4758:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(4360);function n(e){var t=function(e,t){if("object"!=(0,i.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=(0,i.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,i.A)(t)?t:t+""}function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function s(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},4785:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,i){function n(r){e.removeListener(t,o),i(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}E(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&E(e,"error",t,r)}(e,n,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,i){var n,o,s,u;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(n=l(e))>0&&s.length>n&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=c.bind(i);return n.listener=r,i.wrapFn=n,n}function d(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(n):f(n,n.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function E(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function n(o){i.once&&e.removeEventListener(t,n),r(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var u=l.length,c=f(l,u);for(r=0;r<u;++r)i(c[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,i,n,o,s;if(a(t),void 0===(i=this._events))return this;if(void 0===(r=i[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(n=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,n),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4801:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var i=/\s/;const n=function(e){for(var t=e.length;t--&&i.test(e.charAt(t)););return t};var o=/^\s+/;const s=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e};var a=r(6809),l=r(8086),u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt;const h=function(e){if("number"==typeof e)return e;if((0,l.A)(e))return NaN;if((0,a.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var r=c.test(e);return r||p.test(e)?d(e.slice(2),r?2:8):u.test(e)?NaN:+e};var f=1/0;const E=function(e){return e?(e=h(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const m=function(e){var t=E(e),r=t%1;return t==t?r?t-r:t:0}},4858:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const i=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var n=Math.max;const o=function(e,t,r){return t=n(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=n(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=o[s];return u[t]=r(l),i(e,this,u)}}},4889:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var i=r(1671),n=r(8377);const o=(0,i.A)(n.A,"DataView");var s=r(6787);const a=(0,i.A)(n.A,"Promise");const l=(0,i.A)(n.A,"Set");const u=(0,i.A)(n.A,"WeakMap");var c=r(2977),p=r(5549),d="[object Map]",h="[object Promise]",f="[object Set]",E="[object WeakMap]",m="[object DataView]",g=(0,p.A)(o),v=(0,p.A)(s.A),x=(0,p.A)(a),N=(0,p.A)(l),y=(0,p.A)(u),A=c.A;(o&&A(new o(new ArrayBuffer(1)))!=m||s.A&&A(new s.A)!=d||a&&A(a.resolve())!=h||l&&A(new l)!=f||u&&A(new u)!=E)&&(A=function(e){var t=(0,c.A)(e),r="[object Object]"==t?e.constructor:void 0,i=r?(0,p.A)(r):"";if(i)switch(i){case g:return m;case v:return d;case x:return h;case N:return f;case y:return E}return t});const L=A},5043:(e,t,r)=>{var i=r(7459),n=r(5788),o=[r(5503)];e.exports=i.createStore(n,o)},5067:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){return function(r){return e(t(r))}}},5168:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=r(8377).A.Uint8Array},5186:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(1100),n=r(4858),o=r(9430);const s=function(e,t){return(0,o.A)((0,n.A)(e,t,i.A),e+"")}},5217:(e,t,r)=>{var i=r(1115);e.exports=function(e,t,r,n,o){var s=i(e,t,r,n,o);return s.next().then(function(e){return e.done?e.value:s.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},5355:(e,t,r)=>{var i=r(7589).Global;function n(){return i.localStorage}function o(e){return n().getItem(e)}e.exports={name:"localStorage",read:o,write:function(e,t){return n().setItem(e,t)},each:function(e){for(var t=n().length-1;t>=0;t--){var r=n().key(t);e(o(r),r)}},remove:function(e){return n().removeItem(e)},clearAll:function(){return n().clear()}}},5397:(e,t,r)=>{!function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";function i(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var r=this;e.on("cursorActivity",this.activityFunc=function(){r.cursorActivity()})}}e.showHint=function(e,t,r){if(!t)return e.showHint(r);r&&r.async&&(t.async=!0);var i={hint:t};if(r)for(var n in r)i[n]=r[n];return e.showHint(i)},e.defineExtension("showHint",function(t){t=s(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var n=0;n<r.length;n++)if(r[n].head.line!=r[n].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new i(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function s(e,t,r){var i=e.options.hintOptions,n={};for(var o in f)n[o]=f[o];if(i)for(var o in i)void 0!==i[o]&&(n[o]=i[o]);if(r)for(var o in r)void 0!==r[o]&&(n[o]=r[o]);return n.hint.resolve&&(n.hint=n.hint.resolve(e,t)),n}function a(e){return"string"==typeof e?e:e.text}function l(e,t){var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(r["Ctrl-P"]=function(){t.moveFocus(-1)},r["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,n=i?{}:r;function o(e,i){var o;o="string"!=typeof i?function(e){return i(e,t)}:r.hasOwnProperty(i)?r[i]:i,n[e]=o}if(i)for(var s in i)i.hasOwnProperty(s)&&o(s,i[s]);var a=e.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&o(s,a[s]);return n}function u(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function c(i,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=i,this.data=n,this.picked=!1;var o=this,s=i.cm,c=s.getInputField().ownerDocument,p=c.defaultView||c.parentWindow,d=this.hints=c.createElement("ul");d.setAttribute("role","listbox"),d.setAttribute("aria-expanded","true"),d.id=this.id;var h=i.cm.options.theme;d.className="CodeMirror-hints "+h,this.selectedHint=n.selectedHint||0;for(var f=n.list,E=0;E<f.length;++E){var m=d.appendChild(c.createElement("li")),g=f[E],v=t+(E!=this.selectedHint?"":" "+r);null!=g.className&&(v=g.className+" "+v),m.className=v,E==this.selectedHint&&m.setAttribute("aria-selected","true"),m.id=this.id+"-"+E,m.setAttribute("role","option"),g.render?g.render(m,n,g):m.appendChild(c.createTextNode(g.displayText||a(g))),m.hintId=E}var x=i.options.container||c.body,N=s.cursorCoords(i.options.alignWithWord?n.from:null),y=N.left,A=N.bottom,L=!0,T=0,I=0;if(x!==c.body){var S=-1!==["absolute","relative","fixed"].indexOf(p.getComputedStyle(x).position)?x:x.offsetParent,C=S.getBoundingClientRect(),R=c.body.getBoundingClientRect();T=C.left-R.left-S.scrollLeft,I=C.top-R.top-S.scrollTop}d.style.left=y-T+"px",d.style.top=A-I+"px";var b=p.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),O=p.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);x.appendChild(d),s.getInputField().setAttribute("aria-autocomplete","list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var _,P=i.options.moveOnOverlap?d.getBoundingClientRect():new DOMRect,w=!!i.options.paddingForScrollbar&&d.scrollHeight>d.clientHeight+1;if(setTimeout(function(){_=s.getScrollInfo()}),P.bottom-O>0){var D=P.bottom-P.top,M=P.top-(N.bottom-N.top)-2;O-P.top<M?(D>M&&(d.style.height=(D=M)+"px"),d.style.top=(A=N.top-D)-I+"px",L=!1):d.style.height=O-P.top-2+"px"}var k,G=P.right-b;if(w&&(G+=s.display.nativeBarWidth),G>0&&(P.right-P.left>b&&(d.style.width=b-5+"px",G-=P.right-P.left-b),d.style.left=(y=Math.max(N.left-G-T,0))+"px"),w)for(var U=d.firstChild;U;U=U.nextSibling)U.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=l(i,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:f.length,close:function(){i.close()},pick:function(){o.pick()},data:n})),i.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){k=setTimeout(function(){i.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(k)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();_||(_=s.getScrollInfo());var r=A+_.top-e.top,n=r-(p.pageYOffset||(c.documentElement||c.body).scrollTop);if(L||(n+=d.offsetHeight),n<=t.top||n>=t.bottom)return i.close();d.style.top=r+"px",d.style.left=y+_.left-e.left+"px"}),e.on(d,"dblclick",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(d,"click",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),i.options.completeOnSingleClick&&o.pick())}),e.on(d,"mousedown",function(){setTimeout(function(){s.focus()},20)});var B=this.getSelectedHintRange();return 0===B.from&&0===B.to||this.scrollToActive(),e.signal(n,"select",f[this.selectedHint],d.childNodes[this.selectedHint]),!0}function p(e,t){if(!e.somethingSelected())return t;for(var r=[],i=0;i<t.length;i++)t[i].supportsSelection&&r.push(t[i]);return r}function d(e,t,r,i){if(e.async)e(t,i,r);else{var n=e(t,r);n&&n.then?n.then(i):i(n)}}function h(t,r){var i,n=t.getHelpers(r,"hint");if(n.length){var o=function(e,t,r){var i=p(e,n);function o(n){if(n==i.length)return t(null);d(i[n],e,r,function(e){e&&e.list.length>0?t(e):o(n+1)})}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,r){return e.hint.anyword(t,r)}:function(){}}i.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var i=t.list[r],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(a(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var i=this;this.debounce=n(function(){i.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,r=++this.tick;d(this.options.hint,this.cm,this.options,function(i){t.tick==r&&t.finishUpdate(i,e)})}},finishUpdate:function(t,r){this.data&&e.signal(this.data,"update");var i=this.widget&&this.widget.picked||r&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&1==t.list.length?this.pick(t,0):(this.widget=new c(this,t),e.signal(t,"shown")))}},c.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,i){if(t>=this.data.list.length?t=i?this.data.list.length-1:0:t<0&&(t=i?0:this.data.list.length-1),this.selectedHint!=t){var n=this.hints.childNodes[this.selectedHint];n&&(n.className=n.className.replace(" "+r,""),n.removeAttribute("aria-selected")),(n=this.hints.childNodes[this.selectedHint=t]).className+=" "+r,n.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",n.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],n)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],r=this.hints.childNodes[e.to],i=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-i.offsetTop:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+i.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:h}),e.registerHelper("hint","fromList",function(t,r){var i,n=t.getCursor(),o=t.getTokenAt(n),s=e.Pos(n.line,o.start),a=n;o.start<n.ch&&/\w/.test(o.string.charAt(n.ch-o.start-1))?i=o.string.substr(0,n.ch-o.start):(i="",s=n);for(var l=[],u=0;u<r.words.length;u++){var c=r.words[u];c.slice(0,i.length)==i&&l.push(c)}if(l.length)return{list:l,from:s,to:a}}),e.commands.autocomplete=e.showHint;var f={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(r(1719))},5406:e=>{e.exports={table:{"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],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:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},keywords:/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|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|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,punct:/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,startSymbol:"sparql11",acceptEmpty:!0}},5503:(e,t,r)=>{e.exports=function(){return r(815),{}}},5549:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=Function.prototype.toString;const n=function(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5757:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(){return[]}},5788:(e,t,r)=>{e.exports=[r(5355),r(8199),r(7837),r(732),r(1850),r(8883)]},5826:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});const i=function(){this.__data__=[],this.size=0};var n=r(7348);const o=function(e,t){for(var r=e.length;r--;)if((0,n.A)(e[r][0],t))return r;return-1};var s=Array.prototype.splice;const a=function(e){var t=this.__data__,r=o(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)};const l=function(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]};const u=function(e){return o(this.__data__,e)>-1};const c=function(e,t){var r=this.__data__,i=o(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this};function p(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}p.prototype.clear=i,p.prototype.delete=a,p.prototype.get=l,p.prototype.has=u,p.prototype.set=c;const d=p},5955:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var i=r(3779),n=r(1408);const o=function(e,t,r,o){var s=r.length,a=s,l=!o;if(null==e)return!a;for(e=Object(e);s--;){var u=r[s];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<a;){var c=(u=r[s])[0],p=e[c],d=u[1];if(l&&u[2]){if(void 0===p&&!(c in e))return!1}else{var h=new i.A;if(o)var f=o(p,d,c,e,t,h);if(!(void 0===f?(0,n.A)(d,p,3,o,h):f))return!1}}return!0};var s=r(6809);const a=function(e){return e==e&&!(0,s.A)(e)};var l=r(6826);const u=function(e){for(var t=(0,l.A)(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,a(n)]}return t};const c=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};const p=function(e){var t=u(e);return 1==t.length&&t[0][2]?c(t[0][0],t[0][1]):function(r){return r===e||o(r,e,t)}};var d=r(6074);const h=function(e,t,r){var i=null==e?void 0:(0,d.A)(e,t);return void 0===i?r:i};var f=r(6928),E=r(9758),m=r(761);const g=function(e,t){return(0,E.A)(e)&&a(t)?c((0,m.A)(e),t):function(r){var i=h(r,e);return void 0===i&&i===t?(0,f.A)(r,e):(0,n.A)(t,i,3)}};var v=r(1100),x=r(8285);const N=function(e){return function(t){return null==t?void 0:t[e]}};const y=function(e){return function(t){return(0,d.A)(t,e)}};const A=function(e){return(0,E.A)(e)?N((0,m.A)(e)):y(e)};const L=function(e){return"function"==typeof e?e:null==e?v.A:"object"==typeof e?(0,x.A)(e)?g(e[0],e[1]):p(e):A(e)}},6037:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(7476),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===n&&i.A.process;const a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}()},6074:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(8563),n=r(761);const o=function(e,t){for(var r=0,o=(t=(0,i.A)(t,e)).length;null!=e&&r<o;)e=e[(0,n.A)(t[r++])];return r&&r==o?e:void 0}},6118:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(8377);const n=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?i.A.Buffer:void 0;const l=(a?a.isBuffer:void 0)||n},6422:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){for(var r=-1,i=null==e?0:e.length,n=0,o=[];++r<i;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}},6531:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(7903),n=r(8292);const o=function(e,t,r,o){var s=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var u=t[a],c=o?o(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),s?(0,n.A)(r,u,c):(0,i.A)(r,u,c)}return r}},6583:(e,t,r)=>{!function(e){"use strict";function t(e,t,r,i){this.cm=e,this.options=i;var n={listenForChanges:!1};for(var o in i)n[o]=i[o];n.className||(n.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(n),this.query=t,this.caseFold=r,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var s=this;e.on("change",this.changeHandler=function(e,t){s.onChange(t)})}e.defineExtension("showMatchesOnScrollbar",function(e,r,i){return"string"==typeof i&&(i={className:i}),i||(i={}),new t(this,e,r,i)});var r=1e3;function i(e,t,r){return e<=t?e:Math.max(t,e+r)}t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length&&!((o=this.matches[t]).from.line>=this.gap.to);t++)o.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var i=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),n=this.options&&this.options.maxMatches||r;i.findNext();){var o;if((o={from:i.from(),to:i.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,o),this.matches.length>n)break}this.gap=null}},t.prototype.onChange=function(t){var r=t.from.line,n=e.changeEnd(t).line,o=n-t.to.line;if(this.gap?(this.gap.from=Math.min(i(this.gap.from,r,o),t.from.line),this.gap.to=Math.max(i(this.gap.to,r,o),t.from.line)):this.gap={from:t.from.line,to:n+1},o)for(var s=0;s<this.matches.length;s++){var a=this.matches[s],l=i(a.from.line,r,o);l!=a.from.line&&(a.from=e.Pos(l,a.from.ch));var u=i(a.to.line,r,o);u!=a.to.line&&(a.to=e.Pos(u,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout(function(){c.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(r(1719),r(8023),r(9298))},6691:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const i=(0,r(4636).A)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var n=r(2965),o=/[&<>"']/g,s=RegExp(o.source);const a=function(e){return(e=(0,n.A)(e))&&s.test(e)?e.replace(o,i):e}},6787:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(1671),n=r(8377);const o=(0,i.A)(n.A,"Map")},6809:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6824:(e,t,r)=>{"use strict";r.r(t)},6826:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(4479),n=r(3001),o=r(7242);const s=function(e){return(0,o.A)(e)?(0,i.A)(e):(0,n.A)(e)}},6886:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(9091),n=r(4508),o=r(6826);const s=function(e){return(0,i.A)(e,o.A,n.A)}},6918:e=>{function t(r,i,n,o){var s=Object.defineProperty;try{s({},"",{})}catch(r){s=0}e.exports=t=function(e,r,i,n){function o(r,i){t(e,r,function(e){return this._invoke(r,i,e)})}r?s?s(e,r,{value:i,enumerable:!n,configurable:!n,writable:!n}):e[r]=i:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,i,n,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6928:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});const i=function(e,t){return null!=e&&t in Object(e)};var n=r(8563),o=r(2078),s=r(8285),a=r(3869),l=r(7554),u=r(761);const c=function(e,t,r){for(var i=-1,c=(t=(0,n.A)(t,e)).length,p=!1;++i<c;){var d=(0,u.A)(t[i]);if(!(p=null!=e&&r(e,d)))break;e=e[d]}return p||++i!=c?p:!!(c=null==e?0:e.length)&&(0,l.A)(c)&&(0,a.A)(d,c)&&((0,s.A)(e)||(0,o.A)(e))};const p=function(e,t){return null!=e&&c(e,t,i)}},6962:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(4479),n=r(6809),o=r(4603);const s=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var a=Object.prototype.hasOwnProperty;const l=function(e){if(!(0,n.A)(e))return s(e);var t=(0,o.A)(e),r=[];for(var i in e)("constructor"!=i||!t&&a.call(e,i))&&r.push(i);return r};var u=r(7242);const c=function(e){return(0,u.A)(e)?(0,i.A)(e,!0):l(e)}},6988:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(7348),n=r(7242),o=r(3869),s=r(6809);const a=function(e,t,r){if(!(0,s.A)(r))return!1;var a=typeof t;return!!("number"==a?(0,n.A)(r)&&(0,o.A)(t,r.length):"string"==a&&t in r)&&(0,i.A)(r[t],e)}},7167:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(1671);const n=function(){try{var e=(0,i.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},7181:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=r(8377).A.Symbol},7204:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var i=r(3779),n=r(8292),o=r(7348);const s=function(e,t,r){(void 0!==r&&!(0,o.A)(e[t],r)||void 0===r&&!(t in e))&&(0,n.A)(e,t,r)};var a=r(2984),l=r(3382),u=r(9741),c=r(1779),p=r(9557),d=r(2078),h=r(8285),f=r(7242),E=r(8214);const m=function(e){return(0,E.A)(e)&&(0,f.A)(e)};var g=r(6118),v=r(9790),x=r(6809),N=r(2977),y=r(7827),A=Function.prototype,L=Object.prototype,T=A.toString,I=L.hasOwnProperty,S=T.call(Object);const C=function(e){if(!(0,E.A)(e)||"[object Object]"!=(0,N.A)(e))return!1;var t=(0,y.A)(e);if(null===t)return!0;var r=I.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&T.call(r)==S};var R=r(4249);const b=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var O=r(6531),_=r(6962);const P=function(e){return(0,O.A)(e,(0,_.A)(e))};const w=function(e,t,r,i,n,o,a){var f=b(e,r),E=b(t,r),N=a.get(E);if(N)s(e,r,N);else{var y=o?o(f,E,r+"",e,t,a):void 0,A=void 0===y;if(A){var L=(0,h.A)(E),T=!L&&(0,g.A)(E),I=!L&&!T&&(0,R.A)(E);y=E,L||T||I?(0,h.A)(f)?y=f:m(f)?y=(0,c.A)(f):T?(A=!1,y=(0,l.A)(E,!0)):I?(A=!1,y=(0,u.A)(E,!0)):y=[]:C(E)||(0,d.A)(E)?(y=f,(0,d.A)(f)?y=P(f):(0,x.A)(f)&&!(0,v.A)(f)||(y=(0,p.A)(E))):A=!1}A&&(a.set(E,y),n(y,E,i,o,a),a.delete(E)),s(e,r,y)}};const D=function e(t,r,n,o,l){t!==r&&(0,a.A)(r,function(a,u){if(l||(l=new i.A),(0,x.A)(a))w(t,r,u,n,e,o,l);else{var c=o?o(b(t,u),a,u+"",t,r,l):void 0;void 0===c&&(c=a),s(t,u,c)}},_.A)}},7242:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(9790),n=r(7554);const o=function(e){return null!=e&&(0,n.A)(e.length)&&!(0,i.A)(e)}},7348:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){return e===t||e!=e&&t!=t}},7440:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(7204);const n=(0,r(4043).A)(function(e,t,r){(0,i.A)(e,t,r)})},7459:(e,t,r)=>{var i=r(7589),n=i.slice,o=i.pluck,s=i.each,a=i.bind,l=i.create,u=i.isList,c=i.isFunction,p=i.isObject;e.exports={createStore:h};var d={version:"2.0.12",enabled:!1,get:function(e,t){var r=this.storage.read(this._namespacePrefix+e);return this._deserialize(r,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(r,i){e.call(t,t._deserialize(r),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return h(this.storage,this.plugins,e)}};function h(e,t,r){r||(r=""),e&&!u(e)&&(e=[e]),t&&!u(t)&&(t=[t]);var i=r?"__storejs_"+r+"_":"",h=r?new RegExp("^"+i):null;if(!/^[a-zA-Z0-9_\-]*$/.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var f={_namespacePrefix:i,_namespaceRegexp:h,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var r=e.read(t)===t;return e.remove(t),r}catch(e){return!1}},_assignPluginFnProp:function(e,t){var r=this[t];this[t]=function(){var t=n(arguments,0),i=this;var o=[function(){if(r)return s(arguments,function(e,r){t[r]=e}),r.apply(i,t)}].concat(t);return e.apply(i,o)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var r="";try{r=JSON.parse(e)}catch(t){r=e}return void 0!==r?r:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(u(e))s(e,function(e){t._addPlugin(e)});else if(!o(this.plugins,function(t){return e===t})){if(this.plugins.push(e),!c(e))throw new Error("Plugins must be function values that return objects");var r=e.call(this);if(!p(r))throw new Error("Plugins must return an object of function properties");s(r,function(r,i){if(!c(r))throw new Error("Bad plugin property: "+i+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(r,i)})}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;e&&(e.warn?e.warn:e.log).apply(e,arguments)}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},E=l(f,d,{plugins:[]});return E.raw={},s(E,function(e,t){c(e)&&(E.raw[t]=a(E,e))}),s(e,function(e){E._addStorage(e)}),s(t,function(e){E._addPlugin(e)}),E}},7476:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},7554:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7589:(e,t,r)=>{var i=Object.assign?Object.assign:function(e,t,r,i){for(var n=1;n<arguments.length;n++)l(Object(arguments[n]),function(t,r){e[r]=t});return e},n=function(){if(Object.create)return function(e,t,r,n){var o=a(arguments,1);return i.apply(this,[Object.create(e)].concat(o))};{function e(){}return function(t,r,n,o){var s=a(arguments,1);return e.prototype=t,i.apply(this,[new e].concat(s))}}}(),o=String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},s="undefined"!=typeof window?window:r.g;function a(e,t){return Array.prototype.slice.call(e,t||0)}function l(e,t){u(e,function(e,r){return t(e,r),!1})}function u(e,t){if(c(e)){for(var r=0;r<e.length;r++)if(t(e[r],r))return e[r]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function c(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}e.exports={assign:i,create:n,trim:o,bind:function(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}},slice:a,each:l,map:function(e,t){var r=c(e)?[]:{};return u(e,function(e,i){return r[i]=t(e,i),!1}),r},pluck:u,isList:c,isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},isObject:function(e){return e&&"[object Object]"==={}.toString.call(e)},Global:s}},7623:(e,t,r)=>{!function(e){"use strict";var t=e.Pos;function r(e,t){return e.line-t.line||e.ch-t.ch}var i="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n=new RegExp("<(/?)(["+i+"]["+i+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,r,i){this.line=t,this.ch=r,this.cm=e,this.text=e.getLine(t),this.min=i?Math.max(i.from,e.firstLine()):e.firstLine(),this.max=i?Math.min(i.to-1,e.lastLine()):e.lastLine()}function s(e,r){var i=e.cm.getTokenTypeAt(t(e.line,r));return i&&/\btag\b/.test(i)}function a(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function l(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function u(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(a(e))continue;return}if(s(e,t+1)){var r=e.text.lastIndexOf("/",t),i=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(s(e,t+1)){n.lastIndex=t,e.ch=t;var r=n.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function p(e){for(;;){n.lastIndex=e.ch;var t=n.exec(e.text);if(!t){if(a(e))continue;return}if(s(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(s(e,t+1)){var r=e.text.lastIndexOf("/",t),i=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}function h(e,r){for(var i=[];;){var n,o=p(e),s=e.line,a=e.ch-(o?o[0].length:0);if(!o||!(n=u(e)))return;if("selfClose"!=n)if(o[1]){for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!r||r==o[2]))return{tag:o[2],from:t(s,a),to:t(e.line,e.ch)}}else i.push(o[2])}}function f(e,r){for(var i=[];;){var n=d(e);if(!n)return;if("selfClose"!=n){var o=e.line,s=e.ch,a=c(e);if(!a)return;if(a[1])i.push(a[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==a[2]){i.length=l;break}if(l<0&&(!r||r==a[2]))return{tag:a[2],from:t(e.line,e.ch),to:t(o,s)}}}else c(e)}}e.registerHelper("fold","xml",function(e,i){for(var n=new o(e,i.line,0);;){var s=p(n);if(!s||n.line!=i.line)return;var a=u(n);if(!a)return;if(!s[1]&&"selfClose"!=a){var l=t(n.line,n.ch),c=h(n,s[2]);return c&&r(c.from,l)>0?{from:l,to:c.from}:null}}}),e.findMatchingTag=function(e,i,n){var s=new o(e,i.line,i.ch,n);if(-1!=s.text.indexOf(">")||-1!=s.text.indexOf("<")){var a=u(s),l=a&&t(s.line,s.ch),p=a&&c(s);if(a&&p&&!(r(s,i)>0)){var d={from:t(s.line,s.ch),to:l,tag:p[2]};return"selfClose"==a?{open:d,close:null,at:"open"}:p[1]?{open:f(s,p[2]),close:d,at:"close"}:{open:d,close:h(s=new o(e,l.line,l.ch,n),p[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,r,i){for(var n=new o(e,t.line,t.ch,r);;){var s=f(n,i);if(!s)break;var a=h(new o(e,t.line,t.ch,r),s.tag);if(a)return{open:s,close:a}}},e.scanForClosingTag=function(e,t,r,i){return h(new o(e,t.line,t.ch,i?{from:0,to:i}:null),r)}}(r(1719))},7735:(e,t,r)=>{var i=r(2990).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(i(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},7781:e=>{"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},7827:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=(0,r(5067).A)(Object.getPrototypeOf,Object)},7837:(e,t,r)=>{var i=r(7589).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(a)return;var r=u(e);s(function(e){e.setAttribute(r,t),e.save(n)})},read:function(e){if(a)return;var t=u(e),r=null;return s(function(e){r=e.getAttribute(t)}),r},each:function(e){s(function(t){for(var r=t.XMLDocument.documentElement.attributes,i=r.length-1;i>=0;i--){var n=r[i];e(t.getAttribute(n.name),n.name)}})},remove:function(e){var t=u(e);s(function(e){e.removeAttribute(t),e.save(n)})},clearAll:function(){s(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(n);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(n)})}};var n="storejs",o=i.document,s=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var e,t,r,i="script";try{(t=new ActiveXObject("htmlfile")).open(),t.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),t.close(),e=t.w.frames[0].document,r=e.createElement("div")}catch(t){r=o.createElement("div"),e=o.body}return function(t){var i=[].slice.call(arguments,0);i.unshift(r),e.appendChild(r),r.addBehavior("#default#userData"),r.load(n),t.apply(this,i),e.removeChild(r)}}(),a=(i.navigator?i.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(e){return e.replace(/^\d/,"___$&").replace(l,"___")}},7899:(e,t,r)=>{!function(e){"use strict";e.runMode=function(t,r,i,n){var o=e.getMode(e.defaults,r),s=n&&n.tabSize||e.defaults.tabSize;if(i.appendChild){var a=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<9),l=i,u=0;l.textContent="",i=function(e,t){if("\n"==e)return l.appendChild(document.createTextNode(a?"\r":e)),void(u=0);for(var r="",i=0;;){var n=e.indexOf("\t",i);if(-1==n){r+=e.slice(i),u+=e.length-i;break}u+=n-i,r+=e.slice(i,n);var o=s-u%s;u+=o;for(var c=0;c<o;++c)r+=" ";i=n+1}if(t){var p=l.appendChild(document.createElement("span"));p.className="cm-"+t.replace(/ +/g," cm-"),p.appendChild(document.createTextNode(r))}else l.appendChild(document.createTextNode(r))}}for(var c=e.splitLines(t),p=n&&n.state||e.startState(o),d=0,h=c.length;d<h;++d){d&&i("\n");var f=new e.StringStream(c[d],null,{lookAhead:function(e){return c[d+e]},baseToken:function(){}});for(!f.string&&o.blankLine&&o.blankLine(p);!f.eol();){var E=o.token(f,p);i(f.current(),E,d,f.start,p,o),f.start=f.pos}}}}(r(1719))},7903:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(8292),n=r(7348),o=Object.prototype.hasOwnProperty;const s=function(e,t,r){var s=e[t];o.call(e,t)&&(0,n.A)(s,r)&&(void 0!==r||t in e)||(0,i.A)(e,t,r)}},8023:(e,t,r)=>{!function(e){"use strict";var t,r,i=e.Pos;function n(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var r=n(e),i=r,o=0;o<t.length;o++)-1==i.indexOf(t.charAt(o))&&(i+=t.charAt(o));return r==i?e:new RegExp(e.source,i)}function s(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,r){t=o(t,"g");for(var n=r.line,s=r.ch,a=e.lastLine();n<=a;n++,s=0){t.lastIndex=s;var l=e.getLine(n),u=t.exec(l);if(u)return{from:i(n,u.index),to:i(n,u.index+u[0].length),match:u}}}function l(e,t,r){if(!s(t))return a(e,t,r);t=o(t,"gm");for(var n,l=1,u=r.line,c=e.lastLine();u<=c;){for(var p=0;p<l&&!(u>c);p++){var d=e.getLine(u++);n=null==n?d:n+"\n"+d}l*=2,t.lastIndex=r.ch;var h=t.exec(n);if(h){var f=n.slice(0,h.index).split("\n"),E=h[0].split("\n"),m=r.line+f.length-1,g=f[f.length-1].length;return{from:i(m,g),to:i(m+E.length-1,1==E.length?g+E[0].length:E[E.length-1].length),match:h}}}}function u(e,t,r){for(var i,n=0;n<=e.length;){t.lastIndex=n;var o=t.exec(e);if(!o)break;var s=o.index+o[0].length;if(s>e.length-r)break;(!i||s>i.index+i[0].length)&&(i=o),n=o.index+1}return i}function c(e,t,r){t=o(t,"g");for(var n=r.line,s=r.ch,a=e.firstLine();n>=a;n--,s=-1){var l=e.getLine(n),c=u(l,t,s<0?0:l.length-s);if(c)return{from:i(n,c.index),to:i(n,c.index+c[0].length),match:c}}}function p(e,t,r){if(!s(t))return c(e,t,r);t=o(t,"gm");for(var n,a=1,l=e.getLine(r.line).length-r.ch,p=r.line,d=e.firstLine();p>=d;){for(var h=0;h<a&&p>=d;h++){var f=e.getLine(p--);n=null==n?f:f+"\n"+n}a*=2;var E=u(n,t,l);if(E){var m=n.slice(0,E.index).split("\n"),g=E[0].split("\n"),v=p+m.length,x=m[m.length-1].length;return{from:i(v,x),to:i(v+g.length-1,1==g.length?x+g[0].length:g[g.length-1].length),match:E}}}}function d(e,t,r,i){if(e.length==t.length)return r;for(var n=0,o=r+Math.max(0,e.length-t.length);;){if(n==o)return n;var s=n+o>>1,a=i(e.slice(0,s)).length;if(a==r)return s;a>r?o=s:n=s+1}}function h(e,n,o,s){if(!n.length)return null;var a=s?t:r,l=a(n).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.lastLine()+1-l.length;u<=p;u++,c=0){var h=e.getLine(u).slice(c),f=a(h);if(1==l.length){var E=f.indexOf(l[0]);if(-1==E)continue e;return o=d(h,f,E,a)+c,{from:i(u,d(h,f,E,a)+c),to:i(u,d(h,f,E+l[0].length,a)+c)}}var m=f.length-l[0].length;if(f.slice(m)==l[0]){for(var g=1;g<l.length-1;g++)if(a(e.getLine(u+g))!=l[g])continue e;var v=e.getLine(u+l.length-1),x=a(v),N=l[l.length-1];if(x.slice(0,N.length)==N)return{from:i(u,d(h,f,m,a)+c),to:i(u+l.length-1,d(v,x,N.length,a))}}}}function f(e,n,o,s){if(!n.length)return null;var a=s?t:r,l=a(n).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.firstLine()-1+l.length;u>=p;u--,c=-1){var h=e.getLine(u);c>-1&&(h=h.slice(0,c));var f=a(h);if(1==l.length){var E=f.lastIndexOf(l[0]);if(-1==E)continue e;return{from:i(u,d(h,f,E,a)),to:i(u,d(h,f,E+l[0].length,a))}}var m=l[l.length-1];if(f.slice(0,m.length)==m){var g=1;for(o=u-l.length+1;g<l.length-1;g++)if(a(e.getLine(o+g))!=l[g])continue e;var v=e.getLine(u+1-l.length),x=a(v);if(x.slice(x.length-l[0].length)==l[0])return{from:i(u+1-l.length,d(v,x,v.length-l[0].length,a)),to:i(u,d(h,f,m.length,a))}}}}function E(e,t,r,n){var s;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,r=r?e.clipPos(r):i(0,0),this.pos={from:r,to:r},"object"==typeof n?s=n.caseFold:(s=n,n=null),"string"==typeof t?(null==s&&(s=!1),this.matches=function(r,i){return(r?f:h)(e,t,i,s)}):(t=o(t,"gm"),n&&!1===n.multiline?this.matches=function(r,i){return(r?c:a)(e,t,i)}:this.matches=function(r,i){return(r?p:l)(e,t,i)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},r=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},r=function(e){return e}),E.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var r=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(r=i(r.line,r.ch),t?(r.ch--,r.ch<0&&(r.line--,r.ch=(this.doc.getLine(r.line)||"").length)):(r.ch++,r.ch>(this.doc.getLine(r.line)||"").length&&(r.ch=0,r.line++)),0!=e.cmpPos(r,this.doc.clipPos(r))))return this.atOccurrence=!1;var n=this.matches(t,r);if(this.afterEmptyMatch=n&&0==e.cmpPos(n.from,n.to),n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var o=i(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,r){if(this.atOccurrence){var n=e.splitLines(t);this.doc.replaceRange(n,this.pos.from,this.pos.to,r),this.pos.to=i(this.pos.from.line+n.length-1,n[n.length-1].length+(1==n.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,r){return new E(this.doc,e,t,r)}),e.defineDocExtension("getSearchCursor",function(e,t,r){return new E(this,e,t,r)}),e.defineExtension("selectMatches",function(t,r){for(var i=[],n=this.getSearchCursor(t,this.getCursor("from"),r);n.findNext()&&!(e.cmpPos(n.to(),this.getCursor("to"))>0);)i.push({anchor:n.from(),head:n.to()});i.length&&this.setSelections(i,0)})}(r(1719))},8086:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2977),n=r(8214);const o=function(e){return"symbol"==typeof e||(0,n.A)(e)&&"[object Symbol]"==(0,i.A)(e)}},8199:(e,t,r)=>{var i=r(7589).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return n[e]},write:function(e,t){n[e]=t},each:o,remove:function(e){return n.removeItem(e)},clearAll:function(){o(function(e,t){delete n[e]})}};var n=i.globalStorage;function o(e){for(var t=n.length-1;t>=0;t--){var r=n.key(t);e(n[r],r)}}},8214:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return null!=e&&"object"==typeof e}},8272:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}},8285:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=Array.isArray},8292:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(7167);const n=function(e,t,r){"__proto__"==t&&i.A?(0,i.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},8377:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(7476),n="object"==typeof self&&self&&self.Object===Object&&self;const o=i.A||n||Function("return this")()},8412:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});const i=(0,r(1671).A)(Object,"create");const n=function(){this.__data__=i?i(null):{},this.size=0};const o=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var s=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0};var l=Object.prototype.hasOwnProperty;const u=function(e){var t=this.__data__;return i?void 0!==t[e]:l.call(t,e)};const c=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this};function p(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}p.prototype.clear=n,p.prototype.delete=o,p.prototype.get=a,p.prototype.has=u,p.prototype.set=c;const d=p;var h=r(5826),f=r(6787);const E=function(){this.size=0,this.__data__={hash:new d,map:new(f.A||h.A),string:new d}};const m=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const g=function(e,t){var r=e.__data__;return m(t)?r["string"==typeof t?"string":"hash"]:r.map};const v=function(e){var t=g(this,e).delete(e);return this.size-=t?1:0,t};const x=function(e){return g(this,e).get(e)};const N=function(e){return g(this,e).has(e)};const y=function(e,t){var r=g(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this};function A(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}A.prototype.clear=E,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=N,A.prototype.set=y;const L=A},8541:(e,t,r)=>{var i=r(8696),n=r(1461),o=r(5217),s=r(1115),a=r(1907),l=r(1697),u=r(7735);function c(){"use strict";var t=n(),r=t.m(c),p=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function f(e){var t,r;return function(i){t||(t={stop:function(){return r(i.a,2)},catch:function(){return i.v},abrupt:function(e,t){return r(i.a,h[e],t)},delegateYield:function(e,n,o){return t.resultName=n,r(i.d,u(e),o)},finish:function(e){return r(i.f,e)}},r=function(e,r,n){i.p=t.prev,i.n=t.next;try{return e(r,n)}finally{t.next=i.n}}),t.resultName&&(t[t.resultName]=i.v,t.resultName=void 0),t.sent=i.v,t.next=i.n;try{return e.call(this,t)}finally{i.p=t.prev,i.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,r,i,n){return t.w(f(e),r,i,n&&n.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new i(e,t)},AsyncIterator:a,async:function(e,t,r,i,n){return(d(t)?s:o)(f(e),t,r,i,n)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},8563:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(8285),n=r(9758),o=r(8412);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(s.Cache||o.A),r}s.Cache=o.A;const a=s;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const c=function(e){var t=a(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,r,i,n){t.push(i?n.replace(u,"$1"):r||e)}),t});var p=r(2965);const d=function(e,t){return(0,i.A)(e)?e:(0,n.A)(e,t)?[e]:c((0,p.A)(e))}},8696:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},8709:(e,t,r)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),r=e.Pos,i={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function n(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var a=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=n(o),p=!u&&l>=0&&c.test(a.text.charAt(l))&&i[a.text.charAt(l)]||c.test(a.text.charAt(l+1))&&i[a.text.charAt(++l)];if(!p)return null;var d=">"==p.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var h=e.getTokenTypeAt(r(t.line,l+1)),f=s(e,r(t.line,l+(d>0?1:0)),d,h,o);return null==f?null:{from:r(t.line,l),to:f&&f.pos,match:f&&f.ch==p.charAt(0),forward:d>0}}function s(e,t,o,s,a){for(var l=a&&a.maxScanLineLength||1e4,u=a&&a.maxScanLines||1e3,c=[],p=n(a),d=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),h=t.line;h!=d;h+=o){var f=e.getLine(h);if(f){var E=o>0?0:f.length-1,m=o>0?f.length:-1;if(!(f.length>l))for(h==t.line&&(E=t.ch-(o<0?1:0));E!=m;E+=o){var g=f.charAt(E);if(p.test(g)&&(void 0===s||(e.getTokenTypeAt(r(h,E+1))||"")==(s||""))){var v=i[g];if(v&&">"==v.charAt(1)==o>0)c.push(g);else{if(!c.length)return{pos:r(h,E),ch:g};c.pop()}}}}}return h-o!=(o>0?e.lastLine():e.firstLine())&&null}function a(e,i,n){for(var s=e.state.matchBrackets.maxHighlightLineLength||1e3,a=n&&n.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var p=u[c].empty()&&o(e,u[c].head,n);if(p&&(p.match||!1!==a)&&e.getLine(p.from.line).length<=s){var d=p.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(p.from,r(p.from.line,p.from.ch+1),{className:d})),p.to&&e.getLine(p.to.line).length<=s&&l.push(e.markText(p.to,r(p.to.line,p.to.ch+1),{className:d}))}}if(l.length){t&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!i)return h;setTimeout(h,800)}}function l(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=a(e,!1,e.state.matchBrackets)})}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(t,r,i){i&&i!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),r&&(t.state.matchBrackets="object"==typeof r?r:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))}),e.defineExtension("matchBrackets",function(){a(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,r){return(r||"boolean"==typeof t)&&(r?(r.strict=t,t=r):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,r,i){return s(this,e,t,r,i)})}(r(1719))},8723:e=>{"use strict";e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},8782:(e,t,r)=>{"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}r.d(t,{A:()=>i})},8883:e=>{e.exports={name:"memoryStorage",read:function(e){return t[e]},write:function(e,r){t[e]=r},each:function(e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},remove:function(e){delete t[e]},clearAll:function(e){t={}}};var t={}},9082:(e,t,r)=>{!function(e){"use strict";var t={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function r(e){for(var r in this.options={},t)this.options[r]=(e&&e.hasOwnProperty(r)?e:t)[r];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function i(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&o(e,t)}function n(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,o(e,t))}function o(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){l(e)},t.options.delay)}function s(e,t,r,i){var n=e.state.matchHighlighter;if(e.addOverlay(n.overlay=p(t,r,i)),n.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=r?new RegExp((/\w/.test(t.charAt(0))?"\\b":"")+t.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(t.charAt(t.length-1))?"\\b":"")):t;n.matchesonscroll=e.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function a(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function l(e){e.operation(function(){var t=e.state.matchHighlighter;if(a(e),e.somethingSelected()||!t.options.showToken){var r=e.getCursor("from"),i=e.getCursor("to");if(r.line==i.line&&(!t.options.wordsOnly||u(e,r,i))){var n=e.getRange(r,i);t.options.trim&&(n=n.replace(/^\s+|\s+$/g,"")),n.length>=t.options.minChars&&s(e,n,!1,t.options.style)}}else{for(var o=!0===t.options.showToken?/[\w$]/:t.options.showToken,l=e.getCursor(),c=e.getLine(l.line),p=l.ch,d=p;p&&o.test(c.charAt(p-1));)--p;for(;d<c.length&&o.test(c.charAt(d));)++d;p<d&&s(e,c.slice(p,d),o,t.options.style)}})}function u(e,t,r){if(null!==e.getRange(t,r).match(/^\w+$/)){if(t.ch>0){var i={line:t.line,ch:t.ch-1};if(null===e.getRange(i,t).match(/\W/))return!1}return!(r.ch<e.getLine(t.line).length&&(i={line:r.line,ch:r.ch+1},null===e.getRange(r,i).match(/\W/)))}return!1}function c(e,t){return!(e.start&&t.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&t.test(e.string.charAt(e.pos)))}function p(e,t,r){return{token:function(i){if(i.match(e)&&(!t||c(i,t)))return r;i.next(),i.skipTo(e.charAt(0))||i.skipToEnd()}}}e.defineOption("highlightSelectionMatches",!1,function(t,o,s){if(s&&s!=e.Init&&(a(t),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",i),t.off("focus",n)),o){var u=t.state.matchHighlighter=new r(o);t.hasFocus()?(u.active=!0,l(t)):t.on("focus",n),t.on("cursorActivity",i)}})}(r(1719),r(6583))},9091:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2020),n=r(8285);const o=function(e,t,r){var o=t(e);return(0,n.A)(e)?o:(0,i.A)(o,r(e))}},9121:(e,t,r)=>{"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>i})},9161:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(t){return e(t)}}},9298:(e,t,r)=>{!function(e){"use strict";function t(e,t){function r(e){clearTimeout(i.doRedraw),i.doRedraw=setTimeout(function(){i.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var i=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(i.doUpdate),i.doUpdate=setTimeout(function(){i.computeScale()&&r(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("changes",this.changeHandler=function(){r(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,r=this.hScale,i=document.createDocumentFragment(),n=this.annotations,o=t.getOption("lineWrapping"),s=o&&1.5*t.defaultTextHeight(),a=null,l=null;function u(e,r){if(a!=e.line){a=e.line,l=t.getLineHandle(e.line);var i=t.getLineHandleVisualStart(l);i!=l&&(a=t.getLineNumber(i),l=i)}return l.widgets&&l.widgets.length||o&&l.height>s?t.charCoords(e,"local")[r?"top":"bottom"]:t.heightAtLine(l,"local")+(r?0:l.height)}var c=t.lastLine();if(t.display.barWidth)for(var p,d=0;d<n.length;d++){var h=n[d];if(!(h.to.line>c)){for(var f=p||u(h.from,!0)*r,E=u(h.to,!1)*r;d<n.length-1&&!(n[d+1].to.line>c)&&!((p=u(n[d+1].from,!0)*r)>E+.9);)E=u((h=n[++d]).to,!1)*r;if(E!=f){var m=Math.max(E-f,3),g=i.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(f+this.buttonHeight)+"px; height: "+m+"px",g.className=this.options.className,h.id&&g.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(r(1719))},9418:(e,t,r)=>{"use strict";r.d(t,{A:()=>ae});const{entries:i,setPrototypeOf:n,isFrozen:o,getPrototypeOf:s,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:u,create:c}=Object,{apply:p,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),u||(u=function(e){return e}),p||(p=function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];return e.apply(t,i)}),d||(d=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return new e(...r)});const h=R(Array.prototype.forEach),f=R(Array.prototype.lastIndexOf),E=R(Array.prototype.pop),m=R(Array.prototype.push),g=R(Array.prototype.splice),v=R(String.prototype.toLowerCase),x=R(String.prototype.toString),N=R(String.prototype.match),y=R(String.prototype.replace),A=R(String.prototype.indexOf),L=R(String.prototype.trim),T=R(Object.prototype.hasOwnProperty),I=R(RegExp.prototype.test),S=(C=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return d(C,t)});var C;function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return p(e,t,i)}}function b(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;n&&n(e,null);let i=t.length;for(;i--;){let n=t[i];if("string"==typeof n){const e=r(n);e!==n&&(o(t)||(t[i]=e),n=e)}e[n]=!0}return e}function O(e){for(let t=0;t<e.length;t++){T(e,t)||(e[t]=null)}return e}function _(e){const t=c(null);for(const[r,n]of i(e)){T(e,r)&&(Array.isArray(n)?t[r]=O(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=_(n):t[r]=n)}return t}function P(e,t){for(;null!==e;){const r=a(e,t);if(r){if(r.get)return R(r.get);if("function"==typeof r.value)return R(r.value)}e=s(e)}return function(){return null}}const w=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=l(["#text"]),F=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),V=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=u(/<%[\w\W]*|[\w\W]*%>/gm),z=u(/\$\{[\w\W]*/gm),Y=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=u(/^aria-[\-\w]+$/),X=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=u(/^(?:\w+script|data):/i),Q=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),J=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J,DATA_ATTR:Y,DOCTYPE_NAME:Z,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:q,TMPLIT_EXPR:z});const te=1,re=3,ie=7,ne=8,oe=9,se=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se();const r=t=>e(t);if(r.version="3.3.0",r.removed=[],!t||!t.document||t.document.nodeType!==oe||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:p,Element:d,NodeFilter:C,NamedNodeMap:R=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:O,DOMParser:q,trustedTypes:W}=t,z=d.prototype,Y=P(z,"cloneNode"),K=P(z,"remove"),$=P(z,"nextSibling"),Q=P(z,"childNodes"),J=P(z,"parentNode");if("function"==typeof u){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let ae,le="";const{implementation:ue,createNodeIterator:ce,createDocumentFragment:pe,getElementsByTagName:de}=n,{importNode:he}=o;let fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof i&&"function"==typeof J&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:Ee,ERB_EXPR:me,TMPLIT_EXPR:ge,DATA_ATTR:ve,ARIA_ATTR:xe,IS_SCRIPT_OR_DATA:Ne,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:Ae}=ee;let{IS_ALLOWED_URI:Le}=ee,Te=null;const Ie=b({},[...w,...D,...M,...G,...B]);let Se=null;const Ce=b({},[...F,...V,...H,...j]);let Re=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,Oe=null;const _e=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pe=!0,we=!0,De=!1,Me=!0,ke=!1,Ge=!0,Ue=!1,Be=!1,Fe=!1,Ve=!1,He=!1,je=!1,qe=!0,We=!1,ze=!0,Ye=!1,Ke={},Xe=null;const $e=b({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Ze=b({},["audio","video","img","source","image","track"]);let Je=null;const et=b({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let nt=it,ot=!1,st=null;const at=b({},[tt,rt,it],x);let lt=b({},["mi","mo","mn","ms","mtext"]),ut=b({},["annotation-xml"]);const ct=b({},["title","style","font","a","script"]);let pt=null;const dt=["application/xhtml+xml","text/html"];let ht=null,ft=null;const Et=n.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"==typeof e||(e={}),e=_(e),pt=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===pt?x:v,Te=T(e,"ALLOWED_TAGS")?b({},e.ALLOWED_TAGS,ht):Ie,Se=T(e,"ALLOWED_ATTR")?b({},e.ALLOWED_ATTR,ht):Ce,st=T(e,"ALLOWED_NAMESPACES")?b({},e.ALLOWED_NAMESPACES,x):at,Je=T(e,"ADD_URI_SAFE_ATTR")?b(_(et),e.ADD_URI_SAFE_ATTR,ht):et,Qe=T(e,"ADD_DATA_URI_TAGS")?b(_(Ze),e.ADD_DATA_URI_TAGS,ht):Ze,Xe=T(e,"FORBID_CONTENTS")?b({},e.FORBID_CONTENTS,ht):$e,be=T(e,"FORBID_TAGS")?b({},e.FORBID_TAGS,ht):_({}),Oe=T(e,"FORBID_ATTR")?b({},e.FORBID_ATTR,ht):_({}),Ke=!!T(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Ge=!1!==e.SAFE_FOR_XML,Ue=e.WHOLE_DOCUMENT||!1,Ve=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,qe=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Le=e.ALLOWED_URI_REGEXP||X,nt=e.NAMESPACE||it,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ut=e.HTML_INTEGRATION_POINTS||ut,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(we=!1),He&&(Ve=!0),Ke&&(Te=b({},B),Se=[],!0===Ke.html&&(b(Te,w),b(Se,F)),!0===Ke.svg&&(b(Te,D),b(Se,V),b(Se,j)),!0===Ke.svgFilters&&(b(Te,M),b(Se,V),b(Se,j)),!0===Ke.mathMl&&(b(Te,G),b(Se,H),b(Se,j))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?_e.tagCheck=e.ADD_TAGS:(Te===Ie&&(Te=_(Te)),b(Te,e.ADD_TAGS,ht))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?_e.attributeCheck=e.ADD_ATTR:(Se===Ce&&(Se=_(Se)),b(Se,e.ADD_ATTR,ht))),e.ADD_URI_SAFE_ATTR&&b(Je,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Xe===$e&&(Xe=_(Xe)),b(Xe,e.FORBID_CONTENTS,ht)),ze&&(Te["#text"]=!0),Ue&&b(Te,["html","head","body"]),Te.table&&(b(Te,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,le=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));const n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(W,s)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),ft=e}},vt=b({},[...D,...M,...k]),xt=b({},[...G,...U]),Nt=function(e){m(r.removed,{element:e});try{J(e).removeChild(e)}catch(t){K(e)}},yt=function(e,t){try{m(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ve||He)try{Nt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},At=function(e){let t=null,r=null;if(Fe)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===pt&&nt===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ae?ae.createHTML(e):e;if(nt===it)try{t=(new q).parseFromString(i,pt)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(nt,"template",null);try{t.documentElement.innerHTML=ot?le:i}catch(e){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),nt===it?de.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:o},Lt=function(e){return ce.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof O&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof R)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},It=function(e){return"function"==typeof p&&e instanceof p};function St(e,t,i){h(e,e=>{e.call(r,t,i,ft)})}const Ct=function(e){let t=null;if(St(fe.beforeSanitizeElements,e,null),Tt(e))return Nt(e),!0;const i=ht(e.nodeName);if(St(fe.uponSanitizeElement,e,{tagName:i,allowedTags:Te}),Ge&&e.hasChildNodes()&&!It(e.firstElementChild)&&I(/<[/\w!]/g,e.innerHTML)&&I(/<[/\w!]/g,e.textContent))return Nt(e),!0;if(e.nodeType===ie)return Nt(e),!0;if(Ge&&e.nodeType===ne&&I(/<[/\w]/g,e.data))return Nt(e),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(i))&&(!Te[i]||be[i])){if(!be[i]&&bt(i)){if(Re.tagNameCheck instanceof RegExp&&I(Re.tagNameCheck,i))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(i))return!1}if(ze&&!Xe[i]){const t=J(e)||e.parentNode,r=Q(e)||e.childNodes;if(r&&t){for(let i=r.length-1;i>=0;--i){const n=Y(r[i],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,$(e))}}}return Nt(e),!0}return e instanceof d&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});const r=v(e.tagName),i=v(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===it?"svg"===r:t.namespaceURI===tt?"svg"===r&&("annotation-xml"===i||lt[i]):Boolean(vt[r]):e.namespaceURI===tt?t.namespaceURI===it?"math"===r:t.namespaceURI===rt?"math"===r&&ut[i]:Boolean(xt[r]):e.namespaceURI===it?!(t.namespaceURI===rt&&!ut[i])&&!(t.namespaceURI===tt&&!lt[i])&&!xt[r]&&(ct[r]||!vt[r]):!("application/xhtml+xml"!==pt||!st[e.namespaceURI]))}(e)?(Nt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!I(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===re&&(t=e.textContent,h([Ee,me,ge],e=>{t=y(t,e," ")}),e.textContent!==t&&(m(r.removed,{element:e.cloneNode()}),e.textContent=t)),St(fe.afterSanitizeElements,e,null),!1):(Nt(e),!0)},Rt=function(e,t,r){if(qe&&("id"===t||"name"===t)&&(r in n||r in Et))return!1;if(we&&!Oe[t]&&I(ve,t));else if(Pe&&I(xe,t));else if(_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e));else if(!Se[t]||Oe[t]){if(!(bt(e)&&(Re.tagNameCheck instanceof RegExp&&I(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&I(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t,e))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&I(Re.tagNameCheck,r)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(r))))return!1}else if(Je[t]);else if(I(Le,y(r,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(r,"data:")||!Qe[e]){if(De&&!I(Ne,y(r,ye,"")));else if(r)return!1}else;return!0},bt=function(e){return"annotation-xml"!==e&&N(e,Ae)},Ot=function(e){St(fe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let n=t.length;for(;n--;){const o=t[n],{name:s,namespaceURI:a,value:l}=o,u=ht(s),c=l;let p="value"===s?c:L(c);if(i.attrName=u,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,St(fe.uponSanitizeAttribute,e,i),p=i.attrValue,!We||"id"!==u&&"name"!==u||(yt(s,e),p="user-content-"+p),Ge&&I(/((--!?|])>)|<\/(style|title|textarea)/i,p)){yt(s,e);continue}if("attributename"===u&&N(p,"href")){yt(s,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){yt(s,e);continue}if(!Me&&I(/\/>/i,p)){yt(s,e);continue}ke&&h([Ee,me,ge],e=>{p=y(p,e," ")});const d=ht(e.nodeName);if(Rt(d,u,p)){if(ae&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(d,u)){case"TrustedHTML":p=ae.createHTML(p);break;case"TrustedScriptURL":p=ae.createScriptURL(p)}if(p!==c)try{a?e.setAttributeNS(a,s,p):e.setAttribute(s,p),Tt(e)?Nt(e):E(r.removed)}catch(t){yt(s,e)}}else yt(s,e)}St(fe.afterSanitizeAttributes,e,null)},_t=function e(t){let r=null;const i=Lt(t);for(St(fe.beforeSanitizeShadowDOM,t,null);r=i.nextNode();)St(fe.uponSanitizeShadowNode,r,null),Ct(r),Ot(r),r.content instanceof a&&e(r.content);St(fe.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,n=null,s=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!It(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Be||gt(t),r.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=ht(e.nodeName);if(!Te[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)i=At("\x3c!----\x3e"),n=i.ownerDocument.importNode(e,!0),n.nodeType===te&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n);else{if(!Ve&&!ke&&!Ue&&-1===e.indexOf("<"))return ae&&je?ae.createHTML(e):e;if(i=At(e),!i)return Ve?null:je?le:""}i&&Fe&&Nt(i.firstChild);const u=Lt(Ye?e:i);for(;s=u.nextNode();)Ct(s),Ot(s),s.content instanceof a&&_t(s.content);if(Ye)return e;if(Ve){if(He)for(l=pe.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(Se.shadowroot||Se.shadowrootmode)&&(l=he.call(o,l,!0)),l}let c=Ue?i.outerHTML:i.innerHTML;return Ue&&Te["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&I(Z,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),ke&&h([Ee,me,ge],e=>{c=y(c,e," ")}),ae&&je?ae.createHTML(c):c},r.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Be=!0},r.clearConfig=function(){ft=null,Be=!1},r.isValidAttribute=function(e,t,r){ft||gt({});const i=ht(e),n=ht(t);return Rt(i,n,r)},r.addHook=function(e,t){"function"==typeof t&&m(fe[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=f(fe[e],t);return-1===r?void 0:g(fe[e],r,1)[0]}return E(fe[e])},r.removeHooks=function(e){fe[e]=[]},r.removeAllHooks=function(){fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()},9430:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(946),n=r(7167),o=r(1100);const s=n.A?function(e,t){return(0,n.A)(e,"toString",{configurable:!0,enumerable:!1,value:(0,i.A)(t),writable:!0})}:o.A;var a=Date.now;const l=function(e){var t=0,r=0;return function(){var i=a(),n=16-(i-r);if(r=i,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(s)},9557:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(6809),n=Object.create;const o=function(){function e(){}return function(t){if(!(0,i.A)(t))return{};if(n)return n(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var s=r(7827),a=r(4603);const l=function(e){return"function"!=typeof e.constructor||(0,a.A)(e)?{}:o((0,s.A)(e))}},9604:(e,t,r)=>{"use strict";function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}r.d(t,{A:()=>n})},9741:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(1273);const n=function(e,t){var r=t?(0,i.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},9754:(e,t,r)=>{!function(e){"use strict";function t(t,i,o,s){if(o&&o.call){var a=o;o=null}else a=n(t,o,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var l=n(t,o,"minFoldSize");function u(e){var r=a(t,i);if(!r||r.to.line-r.from.line<l)return null;if("fold"===s)return r;for(var n=t.findMarksAt(r.from),o=0;o<n.length;++o)if(n[o].__isFold){if(!e)return null;r.cleared=!0,n[o].clear()}return r}var c=u(!0);if(n(t,o,"scanUp"))for(;!c&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==s){var p=r(t,o,c);e.on(p,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(c.from,c.to,{replacedWith:p,clearOnEnter:n(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",function(r,i){e.signal(t,"unfold",t,r,i)}),e.signal(t,"fold",t,c.from,c.to)}}function r(e,t,r){var i=n(e,t,"widget");if("function"==typeof i&&(i=i(r.from,r.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}e.newFoldFunction=function(e,r){return function(i,n){t(i,n,{rangeFinder:e,widget:r})}},e.defineExtension("foldCode",function(e,r,i){t(this,e,r,i)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),r=0;r<t.length;++r)if(t[r].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var r=t.firstLine(),i=t.lastLine();r<=i;r++)t.foldCode(e.Pos(r,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var r=t.firstLine(),i=t.lastLine();r<=i;r++)t.foldCode(e.Pos(r,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,r){for(var i=0;i<e.length;++i){var n=e[i](t,r);if(n)return n}}}),e.registerHelper("fold","auto",function(e,t){for(var r=e.getHelpers(t,"fold"),i=0;i<r.length;i++){var n=r[i](e,t);if(n)return n}});var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function n(e,t,r){if(t&&void 0!==t[r])return t[r];var n=e.options.foldOptions;return n&&void 0!==n[r]?n[r]:i[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return n(this,e,t)})}(r(1719))},9758:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(8285),n=r(8086),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(e,t){if((0,i.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,n.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},9790:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2977),n=r(6809);const o=function(e){if(!(0,n.A)(e))return!1;var t=(0,i.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{default:()=>ye});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{executeQuery:()=>S,getAcceptHeader:()=>R,getAjaxConfig:()=>I,getAsCurlString:()=>b,getUrlArguments:()=>C});var t=__webpack_require__(9121),r=__webpack_require__(4758),i=__webpack_require__(365),n=__webpack_require__(8782),o=__webpack_require__(9604),s=__webpack_require__(1719),a=__webpack_require__.n(s);function l(e,t,r){return r||(r=e.getDoc().getCursor()),t||(t=e.getTokenAt(r)),c(e,u(e,t,r),r)}function u(e,t,r){var i=e.getTokenAt({line:r.line,ch:t.start});return"punc"!==t.type&&"error"!==t.type||t.state.possibleFullIri||t.state.inPrefixDecl?"punc"!==i.type||i.state.possibleFullIri||i.state.inPrefixDecl?null!=i.type&&"ws"!=i.type&&null!=t.type&&"ws"!=t.type?(t.start=i.start,t.string=i.string+t.string,u(e,t,{line:r.line,ch:i.start})):null!=t.type&&"ws"==t.type?(t.start=t.start+1,t.string=t.string.substring(1),t):t:t:(t.state.possibleCurrent=t.state.possibleNext,t)}function c(e,t,r){if(t.string.indexOf(" ")>=0){var i=t.string.indexOf(" ");return t.string=t.string.substr(0,i),t.end=t.start+t.string.length,t}if(!t.type)return t;var n=e.getTokenAt({line:r.line,ch:t.end+1});return"ws"!==n.type&&t.state.possibleFullIri&&null!==t.type&&"ws"!==t.type&&n.end!==t.end?(t.end=n.end,t.string=t.string+n.string,c(e,t,{line:r.line,ch:n.end})):"ws"===t.type?(t.end=t.end+1,t.string=t.string.substring(t.string.length-1),t):t}function p(e,t,r){var i=e.getTokenAt({line:t,ch:r.start});return null!=i&&"ws"==i.type&&(i=p(e,t,i)),i}function d(e,t,r){null==r&&(r=1);var i=e.getTokenAt({line:t,ch:r});if(!(null==i||null==i||i.end<r))return"ws"==i.type?d(e,t,i.end+1):i}var h="PREFIX ";function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0;i||(i=e.getDoc().getLine(t));var n=(i=i.toUpperCase()).indexOf(h,r);if(n>=0&&"keyword"===e.getTokenTypeAt(a().Pos(t,n+1)))return n}function E(e,t){e.getDoc().replaceRange("PREFIX "+t+"\n",{line:0,ch:0}),e.collapsePrefixes(!1)}var m=__webpack_require__(3111),g=__webpack_require__(2928);function v(e,t,r){var i;t.onmouseover=function(){i||((i=document.createElement("div")).className="yasqe_tooltip"),i.style.display="block",i.innerHTML=r,t.appendChild(i)},t.onmouseout=function(){i&&(i.style.display="none"),i.innerHTML=r}}var x=__webpack_require__(232),N=__webpack_require__.n(x),y=__webpack_require__(9790),A=__webpack_require__(7440),L=function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};function T(e,t){return(0,y.A)(t)?t(e):null!=t?t:{}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,A.A)({},T(e,e.config.requestConfig),T(e,t));if(r.endpoint&&0!=r.endpoint.length){var i=e.getQueryMode(),n=(0,y.A)(r.endpoint)?r.endpoint(e):r.endpoint,o="update"==i?"POST":(0,y.A)(r.method)?r.method(e):r.method,s=(0,y.A)(r.headers)?r.headers(e):r.headers,a=(0,y.A)(r.withCredentials)?r.withCredentials(e):r.withCredentials;return{reqMethod:o,url:n,args:C(e,r),headers:s,accept:R(e,r),withCredentials:a}}}function S(e,t){return L(this,void 0,void 0,N().mark(function r(){var i,n,o,s,a,l,u,c,p,d,h,f,E,m,g,v,x,y,A,L,T,S;return N().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i=Date.now(),r.prev=1,e.emit("queryBefore",e,t),n=I(e,t)){r.next=2;break}return r.abrupt("return");case 2:o=new AbortController,(null==(s={method:n.reqMethod,headers:Object.assign({Accept:n.accept},n.headers||{}),credentials:n.withCredentials?"include":"same-origin",signal:o.signal})?void 0:s.headers)&&"POST"===n.reqMethod&&(s.headers["Content-Type"]="application/x-www-form-urlencoded"),a=new URLSearchParams,l=N().mark(function e(t){var r;return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=n.args[t],Array.isArray(r)?r.forEach(function(e){return a.append(t,e)}):a.append(t,r);case 1:case"end":return e.stop()}},e)}),f=N().keys(n.args);case 3:if((E=f()).done){r.next=5;break}return u=E.value,r.delegateYield(l(u),"t0",4);case 4:r.next=3;break;case 5:return"POST"===n.reqMethod?s.body=a.toString():(c=new URL(n.url),a.forEach(function(e,t){c.searchParams.append(t,e)}),n.url=c.toString()),p=new Request(n.url,s),e.emit("query",p,o),r.next=6,fetch(p);case 6:if((d=r.sent).ok){r.next=9;break}return m=Error,r.next=7,d.text();case 7:if(g=r.sent){r.next=8;break}g=d.statusText;case 8:throw new m(g);case 9:return v=d.ok,x=d.status,y=d.statusText,A=d.headers,L=d.type,r.next=10,d.text();case 10:return T=r.sent,h={ok:v,status:x,statusText:y,headers:A,type:L,content:T},e.emit("queryResponse",h,Date.now()-i),e.emit("queryResults",h.content,Date.now()-i),r.abrupt("return",h);case 11:throw r.prev=11,(S=r.catch(1))instanceof Error&&"Aborted"===S.message||e.emit("queryResponse",S,Date.now()-i),e.emit("error",S),S;case 12:case"end":return r.stop()}},r,null,[[1,11]])}))}function C(e,t){var r=e.getQueryMode(),i={},n=T(e,t),o=(0,y.A)(n.queryArgument)?n.queryArgument(e):n.queryArgument;o||(o=e.getQueryMode()),i[o]=n.adjustQueryBeforeRequest?n.adjustQueryBeforeRequest(e):e.getValue();var s=(0,y.A)(n.namedGraphs)?n.namedGraphs(e):n.namedGraphs;s&&s.length>0&&(i["query"===r?"named-graph-uri":"using-named-graph-uri "]=s);var a=(0,y.A)(n.defaultGraphs)?n.defaultGraphs(e):n.defaultGraphs;a&&a.length>0&&(i["query"==r?"default-graph-uri":"using-graph-uri "]=s);var l=(0,y.A)(n.args)?n.args(e):n.args;return l&&l.length>0&&(0,A.A)(i,l.reduce(function(e,t){return e[t.name]?e[t.name].push(t.value):e[t.name]=[t.value],e},{})),i}function R(e,t){var r=T(e,t),i=null;if("update"==e.getQueryMode())i=(0,y.A)(r.acceptHeaderUpdate)?r.acceptHeaderUpdate(e):r.acceptHeaderUpdate;else{var n=e.getQueryType();i="DESCRIBE"==n||"CONSTRUCT"==n?(0,y.A)(r.acceptHeaderGraph)?r.acceptHeaderGraph(e):r.acceptHeaderGraph:(0,y.A)(r.acceptHeaderSelect)?r.acceptHeaderSelect(e):r.acceptHeaderSelect}return i}function b(e,t){var r=I(e,T(e,t));if(!r)return"";var i=r.url;0!==r.url.indexOf("http")&&(i="".concat(window.location.protocol,"//").concat(window.location.host),0===r.url.indexOf("/")?i+=r.url:i+=window.location.pathname+r.url);var n=["curl"];for(var o in"GET"===r.reqMethod?(i+="?".concat(g.stringify(r.args)),n.push(i)):"POST"===r.reqMethod?(n.push(i),n.push("--data",g.stringify(r.args))):(console.warn("Unexpected request-method",r.reqMethod),n.push(i)),n.push("-X",r.reqMethod),r.headers)n.push("-H '".concat(o,": ").concat(r.headers[o],"'"));return n.join(" ")}var O='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',_=function(){function e(){(0,t.A)(this,e),this.words=0,this.prefixes=0,this.children={}}return(0,r.A)(e,[{key:"insert",value:function(t,r){if(0!=t.length){var i,n=this;void 0===r&&(r=0),r!==t.length?(n.prefixes++,i=t[r],void 0===n.children[i]&&(n.children[i]=new e),n.children[i].insert(t,r+1)):n.words++}}},{key:"remove",value:function(e,t){if(0!=e.length){var r,i=this;void 0===t&&(t=0),void 0!==i&&(t!==e.length?(i.prefixes--,r=e[t],i.children[r].remove(e,t+1)):i.words--)}}},{key:"update",value:function(e,t){0!=e.length&&0!=t.length&&(this.remove(e),this.insert(t))}},{key:"countWord",value:function(e,t){if(0==e.length)return 0;var r,i,n=0;return void 0===t&&(t=0),t===e.length?this.words:(r=e[t],void 0!==(i=this.children[r])&&(n=i.countWord(e,t+1)),n)}},{key:"countPrefix",value:function(e,t){if(0==e.length)return 0;var r,i=0;if(void 0===t&&(t=0),t===e.length)return this.prefixes;var n=e[t];return void 0!==(r=this.children[n])&&(i=r.countPrefix(e,t+1)),i}},{key:"find",value:function(e){return 0!=e.length&&this.countWord(e)>0}},{key:"getAllWords",value:function(e){var t,r,i=this,n=[];if(void 0===e&&(e=""),void 0===i)return[];for(t in i.words>0&&n.push(e),i.children)i.children.hasOwnProperty(t)&&(r=i.children[t],n=n.concat(r.getAllWords(e+t)));return n}},{key:"autoComplete",value:function(e,t){var r,i;return 0==e.length?void 0===t?this.getAllWords(e):[]:(void 0===t&&(t=0),r=e[t],void 0===(i=this.children[r])?[]:t===e.length-1?i.getAllWords(e):i.autoComplete(e,t+1))}}])}(),P=__webpack_require__(4785);const w=function(e,t,r){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(n);++i<n;)o[i]=e[i+t];return o};var D=__webpack_require__(4801);const M=function(e,t,r){return e&&e.length?(t=r||void 0===t?1:(0,D.A)(t),w(e,0,t<0?0:t)):[]};const k={name:"variables",isValidCompletionPosition:function(e){var t=e.getTokenAt(e.getDoc().getCursor());return!("ws"==t.type||!(t=e.getCompleteToken(t))||"?"!==t.string[0]&&"$"!==t.string[0])},get:function(e,t){if(!t||0==t.string.length)return[];for(var r={},i=[],n=e.getWrapperElement().querySelectorAll(".cm-atom"),o=0;o<n.length;o++){var s=n[o],a=s.innerHTML;if("?"===a[0]||"$"===a[0]){var l=s.nextSibling;if(l&&l.className&&l.className.indexOf("cm-atom")>=0&&(a+=l.innerText),r[a])continue;if(a.length<=1)continue;if(0!==a.indexOf(t.string))continue;if(a===t.string)continue;r[a]=!0,i.push(a)}}return i.sort()},bulk:!1,autoShow:!0};var G=__webpack_require__(4560),U=__webpack_require__(8272),B=__webpack_require__(6074),F=__webpack_require__(5955),V=__webpack_require__(3074),H=__webpack_require__(7242);const j=function(e,t){var r=-1,i=(0,H.A)(e)?Array(e.length):[];return(0,V.A)(e,function(e,n,o){i[++r]=t(e,n,o)}),i};const q=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e};var W=__webpack_require__(9161),z=__webpack_require__(8086);const Y=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,n=e==e,o=(0,z.A)(e),s=void 0!==t,a=null===t,l=t==t,u=(0,z.A)(t);if(!a&&!u&&!o&&e>t||o&&s&&l&&!a&&!u||i&&s&&l||!r&&l||!n)return 1;if(!i&&!o&&!u&&e<t||u&&r&&n&&!i&&!o||a&&r&&n||!s&&n||!l)return-1}return 0};const K=function(e,t,r){for(var i=-1,n=e.criteria,o=t.criteria,s=n.length,a=r.length;++i<s;){var l=Y(n[i],o[i]);if(l)return i>=a?l:l*("desc"==r[i]?-1:1)}return e.index-t.index};var X=__webpack_require__(1100),$=__webpack_require__(8285);const Q=function(e,t,r){t=t.length?(0,U.A)(t,function(e){return(0,$.A)(e)?function(t){return(0,B.A)(t,1===e.length?e[0]:e)}:e}):[X.A];var i=-1;t=(0,U.A)(t,(0,W.A)(F.A));var n=j(e,function(e,r,n){return{criteria:(0,U.A)(t,function(t){return t(e)}),index:++i,value:e}});return q(n,function(e,t){return K(e,t,r)})};var Z=__webpack_require__(5186),J=__webpack_require__(6988);const ee=(0,Z.A)(function(e,t){if(null==e)return[];var r=t.length;return r>1&&(0,J.A)(e,t[0],t[1])?t=[]:r>2&&(0,J.A)(t[0],t[1],t[2])&&(t=[t[0]]),Q(e,(0,G.A)(t,1),[])});var te={"string-2":"prefixed",atom:"var"};const re={postprocessHints:function(e,t){return ee(t,function(e){return e.text.split(":")[0]})},onInitialize:function(e){var t=this;e.on("change",function(){var r;if(e.config.autocompleters&&-1!=e.config.autocompleters.indexOf(t.name)){var i=e.getDoc().getCursor(),n=e.getTokenAt(i);if(n.type&&"prefixed"==te[n.type]){var o=n.string.indexOf(":");if(-1!==o){var s=e.getPreviousNonWsToken(i.line,n).string.toUpperCase(),a=e.getTokenAt({line:i.line,ch:n.start});if("PREFIX"!==s&&("ws"==a.type||null==a.type||"punc"===a.type&&("|"===a.string||"/"===a.string||"^^"==a.string||"{"==a.string||"("===a.string))){var l=n.string.substring(0,o+1);null==e.getPrefixesFromQuery()[l.slice(0,-1)]&&(n.autocompletionString=l,null===(r=e.autocompleters[t.name])||void 0===r||r.getCompletions(n).then(function(t){t.length&&(e.addPrefixes(t[0]),e.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(e){var t=e.getDoc().getCursor(),r=e.getTokenAt(t);if(e.getDoc().getLine(t.line).length>t.ch)return!1;if("ws"!=r.type&&(r=e.getCompleteToken()),0!==r.string.indexOf("a")&&r.state.possibleCurrent.indexOf("PNAME_NS")<0)return!1;var i=e.getPreviousNonWsToken(t.line,r);return!(!i||"PREFIX"!=i.string.toUpperCase())},get:function(e){return fetch(e.config.prefixCcApi).then(function(e){if(!e.ok)throw new Error("Failed to fetch prefixes");return e.json()}).then(function(e){var t=[];for(var r in e){var i="".concat(r,": <").concat(e[r],">");t.push(i)}return t.sort()})},preProcessToken:function(e,t){var r=e.getPreviousNonWsToken(e.getDoc().getCursor().line,t);return r&&r.string&&":"==r.string.slice(-1)&&(t={start:r.start,end:t.end,string:r.string+" "+t.string,state:t.state,type:t.type}),t},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"};const ie={onInitialize:function(e){},get:function(e,t){return de(e,"property",t)},isValidCompletionPosition:function(e){var t=e.getCompleteToken();return 0!=t.string.length&&("?"!==t.string[0]&&"$"!==t.string[0]&&t.state.possibleCurrent.indexOf("a")>=0)},preProcessToken:function(e,t){return ce(e,t)},postProcessSuggestion:function(e,t,r){return pe(e,t,r)},bulk:!1,name:"property"};const ne={onInitialize:function(e){},get:function(e,t){return de(e,"class",t)},isValidCompletionPosition:function(e){var t=e.getCompleteToken();if("?"===t.string[0]||"$"===t.string[0])return!1;var r=e.getDoc().getCursor(),i=e.getPreviousNonWsToken(r.line,t);return"a"===i.state.lastProperty||("rdf:type"===i.state.lastProperty||("rdfs:domain"===i.state.lastProperty||"rdfs:range"===i.state.lastProperty))},preProcessToken:function(e,t){return ce(e,t)},postProcessSuggestion:function(e,t,r){return pe(e,t,r)},bulk:!1,name:"class"};function oe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return se(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?se(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ae=function(){return!!e})()}var le=__webpack_require__(1719);__webpack_require__(991);var ue=function(e){function s(e,r){var o,a,l,u;return(0,t.A)(this,s),a=this,l=s,l=(0,n.A)(l),(o=(0,i.A)(a,ae()?Reflect.construct(l,u||[],(0,n.A)(a).constructor):l.apply(a,u))).yasqe=e,o.config=r,o}return(0,o.A)(s,e),(0,r.A)(s,[{key:"getStorageId",value:function(){return this.yasqe.getStorageId(this.config.persistenceId)}},{key:"storeBulkCompletions",value:function(e){if(e&&e instanceof Array){this.trie=new _;var t,r=oe(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.trie.insert(i)}}catch(e){r.e(e)}finally{r.f()}var n=this.getStorageId();n&&this.yasqe.storage.set(n,e,2592e3,this.yasqe.handleLocalStorageQuotaFull)}}},{key:"getCompletions",value:function(e){if(!this.config.get)return Promise.resolve([]);if(!e)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(function(e){return e instanceof Array?e:[]});var t=e.autocompletionString||e.string;return this.trie?Promise.resolve(M(this.trie.autoComplete(t),100)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(function(e){return 0===e.indexOf(t)})):Promise.resolve(this.config.get(this.yasqe,e)).then(function(e){return e instanceof Array?e:[]})}},{key:"initialize",value:function(){var e=this;if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var t,r=this.getStorageId();return r&&(t=this.yasqe.storage.get(r)),t&&t.length>0?(this.storeBulkCompletions(t),Promise.resolve()):this.getCompletions().then(function(t){return e.storeBulkCompletions(t)})}return Promise.resolve()}},{key:"isValidPosition",value:function(){return!!this.config.isValidCompletionPosition&&(this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1))}},{key:"getHint",value:function(e,t){var r,i;this.config.postProcessSuggestion&&(t=this.config.postProcessSuggestion(this.yasqe,e,t));var n=this.yasqe.getDoc().getCursor();e.from&&(i=Object.assign(Object.assign({},n),e.from));var o=this.yasqe.getDoc().getCursor().line;return{text:t,displayText:t,from:i,to:e.to?{ch:(null===(r=null==e?void 0:e.to)||void 0===r?void 0:r.ch)||this.yasqe.getCompleteToken().end,line:o}:e.string.length>0?{ch:this.yasqe.getCompleteToken().end,line:o}:e.from}}},{key:"getHints",value:function(e){var t=this;return this.config.preProcessToken&&(e=this.config.preProcessToken(this.yasqe,e)),e?this.getCompletions(e).then(function(r){return r.map(function(r){return t.getHint(e,r)})}).then(function(e){return t.config.postprocessHints?t.config.postprocessHints(t.yasqe,e):e}):Promise.resolve([])}},{key:"autocomplete",value:function(e){var t=this;if(!this.isValidPosition())return!1;var r=this.yasqe.state.completionActive,i=this.yasqe.getDoc().getCursor();if(r&&i.sticky&&i.ch!==r.startPos.ch?this.yasqe.state.completionActive.startPos=i:r&&!i.sticky&&i.ch<r.startPos.ch&&(i.sticky=r.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=i.ch,this.yasqe.state.completionActive.startLen--),e&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;var n=function(){return t.getHints(t.yasqe.getCompleteToken()).then(function(e){var r=t.yasqe.getDoc().getCursor(),i=t.yasqe.getCompleteToken(),n={list:e,from:{line:r.line,ch:i.start},to:{line:r.line,ch:i.end}};return le.on(n,"shown",function(){t.yasqe.emit("autocompletionShown",t.yasqe.state.completionActive.widget)}),le.on(n,"close",function(){t.yasqe.emit("autocompletionClose")}),n})};n.async=!1;var o=Object.assign({closeCharacters:/[\s>"]/,completeSingle:!1,hint:n,container:this.yasqe.rootEl,extraKeys:{Home:function(e,t){e.getDoc().setCursor({ch:0,line:t.data.from.line})},End:function(e,t){e.getDoc().setCursor({ch:e.getLine(t.data.to.line).length,line:t.data.to.line})}}},this.yasqe.config.hintConfig);return this.yasqe.showHint(o),!0}}])}(P.EventEmitter);function ce(e,t){var r=e.getPrefixesFromQuery(),i=t.string;if(i.indexOf("<")<0&&(t.tokenPrefix=i.substring(0,i.indexOf(":")+1),null!=r[t.tokenPrefix.slice(0,-1)]&&(t.tokenPrefixUri=r[t.tokenPrefix.slice(0,-1)])),t.autocompletionString=i.trim(),i.indexOf("<")<0&&i.indexOf(":")>-1)for(var n in r)if(t.tokenPrefix===n+":"){t.autocompletionString=r[n],t.autocompletionString+=i.substring(n.length+1);break}return 0==t.autocompletionString.indexOf("<")&&(t.autocompletionString=t.autocompletionString.substring(1)),t.autocompletionString.indexOf(">",t.autocompletionString.length-1)>0&&(t.autocompletionString=t.autocompletionString.substring(0,t.autocompletionString.length-1)),t}function pe(e,t,r){return r=t.tokenPrefix&&t.autocompletionString&&t.tokenPrefixUri?t.tokenPrefix+r.substring(t.tokenPrefixUri.length):"<"+r+">"}var de=function(e,t,r){var i=0===window.location.protocol.indexOf("http")?"https://":"http://",n="autocomplete_"+t;if(!r||!r.string||0==r.string.trim().length)return e.showNotification(n,"Nothing to autocomplete yet!"),Promise.resolve([]);var o=new URLSearchParams;r.autocompletionString&&o.append("q",r.autocompletionString),o.append("page_size","50"),o.append("type",t);var s="".concat(i,"lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?").concat(o.toString());return fetch(s).then(function(e){if(!e.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return e.json()}).then(function(e){return e.results?e.results.map(function(e){return e.uri[0]}):[]}).catch(function(t){e.showNotification(n,"Failed fetching suggestions")})},he=[k,re,ie,ne],fe=__webpack_require__(6691);var Ee=__webpack_require__(1719);__webpack_require__(9754),__webpack_require__(2448),__webpack_require__(7623),__webpack_require__(666),__webpack_require__(5397),__webpack_require__(8023),__webpack_require__(9082),__webpack_require__(8709),__webpack_require__(7899),__webpack_require__(3475),__webpack_require__(4182),__webpack_require__(6824),Ee.registerHelper("fold","prefix",function(e,t){var r=t.line,i=e.getDoc().getLine(r),n=function(t,r){var i=e.getTokenAt(a().Pos(t,r+1));if(!i||"keyword"!=i.type)return-1;var n=d(e,t,i.end+1);if(!n||"string-2"!=n.type)return-1;var o=d(e,t,n.end+1);return o&&"variable-3"==o.type?o.end:-1};if(!function(){for(var t=!1,i=r-1;i>=0;i--)if(e.getDoc().getLine(i).toUpperCase().indexOf(h)>=0){t=!0;break}return t}()){var o=f(e,r,t.ch,i);if(null!=o){for(var s,l=!1,u=e.getDoc().lastLine(),c=n(r,o),p=r,E=r;E<=u&&!l;++E)for(var m=e.getDoc().getLine(E),g=E==r?o+1:0;;){!l&&m.indexOf("{")>=0&&(l=!0);var v=m.toUpperCase().indexOf(h,g);if(!(v>=0))break;(s=n(E,v))>0&&(p=E,g=c=s),g++}return{from:a().Pos(r,o+7),to:a().Pos(p,c)}}}}),Ee.defineMode("sparql11",function(e){var t=__webpack_require__(5406),r=t.table,i="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",n=i+"|_",o="("+n+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",s="("+n+"|[0-9])("+n+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",a="\\?"+s,l="\\$"+s,u="[0-9A-Fa-f]",c="("+("(%"+u+u+")")+"|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%]))",p="_:("+n+"|[0-9])(("+o+"|\\.)*"+o+")?",d="("+("("+i+")((("+o+")|\\.)*("+o+"))?")+")?:",h=d+("("+n+"|:|[0-9]|"+c+")(("+o+"|\\.|:|"+c+")*("+o+"|:|"+c+"))?"),f="[eE][\\+-]?[0-9]+",E="[0-9]+",m="[0-9]*\\.[0-9]+",g="(([0-9]+\\.[0-9]*"+f+")|(\\.[0-9]+"+f+")|([0-9]+"+f+"))",v="\\+"+E,x="\\+"+m,N="\\+"+g,y="-"+E,A="-"+m,L="-"+g,T="\\\\[tbnrf\\\\\"']",I=u+"{4}",S="(\\\\u"+I+"|\\\\U00(10|0"+u+")"+I+")",C="'(([^\\x27\\x5C\\x0A\\x0D])|"+T+"|"+S+")*'",R='"(([^\\x22\\x5C\\x0A\\x0D])|'+T+"|"+S+')*"',b={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+T+"|"+S+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+T+"|"+S+"))*"}};for(var O in b)b[O].COMPLETE=b[O].QUOTES+b[O].CONTENTS+b[O].QUOTES;var _={};for(var P in b)_[P]={complete:{name:"STRING_LITERAL_LONG_"+P,regex:new RegExp("^"+b[P].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+P,regex:new RegExp("^"+b[P].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+P,regex:new RegExp("^"+b[P].CONTENTS+b[P].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+P,regex:new RegExp("^"+b[P].QUOTES),style:"string"}};var w="[\\x20\\x09\\x0D\\x0A]",D="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",M="("+w+"|("+D+"))*",k="\\("+M+"\\)",G="\\["+M+"\\]",U=[{name:"WS",regex:new RegExp("^"+w+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+D),style:"comment"},{name:"IRI_REF",regex:new RegExp('^<[^<>"`|{}^\\\0- ]*>'),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+a),style:"atom"},{name:"VAR2",regex:new RegExp("^"+l),style:"atom"},{name:"LANGTAG",regex:new RegExp("^@[a-zA-Z]+(-[a-zA-Z0-9]+)*"),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+g),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+m),style:"number"},{name:"INTEGER",regex:new RegExp("^"+E),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+N),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+x),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+v),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+L),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+A),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+y),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+C),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+R),style:"string"},{name:"NIL",regex:new RegExp("^"+k),style:"punc"},{name:"ANON",regex:new RegExp("^"+G),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+h),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+d),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+p),style:"string-2"}];function B(e){var t=[],i=r[e];if(null!=i)for(var n in i)t.push(n.toString());else t.push(e);return t}function F(e,i){function n(){var t=e.column();i.errorStartPos=t,i.errorEndPos=t+l.string.length}function o(e){if(null==i.queryType)switch(e){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":i.queryType=e}}function s(e){switch(i.inPrefixDecl="prefixDecl"===e,e){case"disallowVars":i.allowVars=!1;break;case"allowVars":i.allowVars=!0;break;case"disallowBnodes":i.allowBnodes=!1;break;case"allowBnodes":i.allowBnodes=!0;break;case"storeProperty":i.storeProperty=!0}}function a(e){return(i.allowVars||"var"!=e)&&(i.allowBnodes||"blankNode"!=e&&"blankNodePropertyList"!=e&&"blankNodePropertyListPath"!=e)}0==e.pos&&(i.possibleCurrent=i.possibleNext);var l=function(){var r;if(i.inLiteral){var n=!1;if((r=e.match(_[i.inLiteral].contents.regex,!0,!1))&&0==r[0].length&&(r=e.match(_[i.inLiteral].closing.regex,!0,!1),n=!0),r&&r[0].length>0){var o={quotePos:n?"end":"content",cat:b[i.inLiteral].CAT,style:_[i.inLiteral].complete.style,string:r[0],start:e.start};return n&&(i.inLiteral=void 0),o}}for(var s in _){var a;if(r=e.match(_[s].quotes.regex,!0,!1))return i.inLiteral?(i.inLiteral=void 0,a="end"):(i.inLiteral=s,a="start"),{cat:b[s].CAT,style:_[s].quotes.style,string:r[0],quotePos:a,start:e.start}}for(var l=0;l<U.length;++l)if(r=e.match(U[l].regex,!0,!1))return{cat:U[l].name,style:U[l].style,string:r[0],start:e.start,quotePos:void 0};return(r=e.match(t.keywords,!0,!1))?{cat:e.current().toUpperCase(),style:"keyword",string:r[0],start:e.start,quotePos:void 0}:(r=e.match(t.punct,!0,!1))?{cat:e.current(),style:"punc",string:r[0],start:e.start,quotePos:void 0}:{cat:"<invalid_token>",style:"error",string:(r=e.match(/^.[A-Za-z0-9]*/,!0,!1))[0],start:e.start,quotePos:void 0}}();if("<invalid_token>"==l.cat)return 1==i.OK&&(i.OK=!1,n()),i.complete=!1,l.style;if("WS"===l.cat||"COMMENT"===l.cat||l.quotePos&&"end"!=l.quotePos)return i.possibleCurrent=i.possibleNext,i.possibleFullIri=!1,l.style;var u,c=!1,p=l.cat;if(i.possibleFullIri&&">"===l.string&&(i.possibleFullIri=!1),i.possibleFullIri||"<"!==l.string||(i.possibleFullIri=!0),!l.quotePos||"end"==l.quotePos)for(;i.stack.length>0&&p&&i.OK&&!c;)if("var"===(u=i.stack.pop())&&l.string&&(i.variables[l.string]=l.string),r[u]){var d=r[u][p];if(null!=d&&a(u)){for(var h=d.length-1;h>=0;--h)i.stack.push(d[h]);s(u)}else i.OK=!1,i.complete=!1,n(),i.stack.push(u)}else if(u==p){i.inPrefixDecl&&("PNAME_NS"===u&&l.string.length>0?i.currentPnameNs=l.string.slice(0,-1):"string"==typeof i.currentPnameNs&&l.string.length>1&&(i.prefixes[i.currentPnameNs]=l.string.slice(1,-1),i.currentPnameNs=void 0)),c=!0,o(u);for(var f=!0,E=i.stack.length;E>0;--E){var m=r[i.stack[E-1]];m&&m.$||(f=!1)}if(i.complete=f,i.storeProperty&&"punc"!=p?(i.lastProperty=l.string,i.lastPropertyIndex=l.start,i.storeProperty=!1):"."!==p&&";"!==p||(i.lastProperty="",i.lastPropertyIndex=0),!i.inPrefixDecl&&("PNAME_NS"===p||"PNAME_LN"===p)){var g=l.string.indexOf(":");if(g>=0){var v=l.string.slice(0,g);void 0===i.prefixes[v]&&(i.OK=!1,n(),i.errorMsg="Prefix '"+v+"' is not defined")}}}else i.OK=!1,i.complete=!1,n();if(!c&&i.OK&&(i.OK=!1,i.complete=!1,n()),i.possibleNext.indexOf("a")>=0)for(var x=e.string,N=l.start;N>=0;N--)if(" "!==x[N-1]){"|"===x[N-1]||"/"===x[N-1]||"punc"===l.style||(i.lastPredicateOffset=l.start);break}return i.possibleCurrent=i.possibleNext,i.possibleNext=B(i.stack[i.stack.length-1]),l.style}var V={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},H={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};return{token:F,startState:function(){return{tokenize:F,OK:!0,complete:t.acceptEmpty,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:B(t.startSymbol),possibleNext:B(t.startSymbol),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[t.startSymbol],lastPredicateOffset:e.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:function(t,r){var i;if(t.inLiteral)return 0;if(void 0!==t.lastPredicateOffset&&t.stack.length&&"?[or([verbPath,verbSimple]),objectListPath]"==t.stack[t.stack.length-1])return t.lastPredicateOffset;var n=0,o=t.stack.length-1;if(/^[\}\]\)]/.test(r)){for(var s=r.substr(0,1);o>=0;--o)if(t.stack[o]==s){--o;break}}else{var a=V[t.stack[o]];a&&(n+=a,--o)}for(;o>=0;--o){var l=H[t.stack[o]];l&&(n+=l)}return n*(null!==(i=e.indentUnit)&&void 0!==i?i:2)},electricChars:"}])"}});const me=Ee;function ge(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ve(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xe=function(){return!!e})()}__webpack_require__(2700),__webpack_require__(3380);var Ne=function(e){function s(e){var r,o,a,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,t.A)(this,s),o=this,a=s,a=(0,n.A)(a),(r=(0,i.A)(o,xe()?Reflect.construct(a,l||[],(0,n.A)(o).constructor):a.apply(o,l))).autocompleters={},r.prevQueryValid=!1,r.queryValid=!0,r.isFullscreen=!1,r.handleHashChange=function(){var e,t;null===(t=(e=r.config).consumeShareLink)||void 0===t||t.call(e,r)},r.notificationEls={},!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");r.rootEl=document.createElement("div"),r.rootEl.className="yasqe",e.appendChild(r.rootEl),r.config=(0,A.A)({},s.defaults,u);var c,p=me(r.rootEl,r.config),d=ge(Object.getOwnPropertyNames(s.prototype));try{for(d.s();!(c=d.n()).done;){var h=c.value;p[h]=s.prototype[h].bind(r)}}catch(e){d.e(e)}finally{d.f()}Object.assign(r,me.prototype,p),r.storage=new m.wc(s.storageNamespace),r.drawButtons();var f=r.getStorageId();if(f){var E=r.storage.get(f);r.persistentConfig=E&&"string"==typeof E?{query:E,editorHeight:r.config.editorHeight}:E,r.persistentConfig||(r.persistentConfig={query:r.getValue(),editorHeight:r.config.editorHeight}),r.persistentConfig&&r.persistentConfig.query&&r.setValue(r.persistentConfig.query)}return r.config.autocompleters.forEach(function(e){return r.enableCompleter(e).then(function(){},console.warn)}),r.config.consumeShareLink&&(r.config.consumeShareLink(r),window.addEventListener("hashchange",r.handleHashChange)),r.checkSyntax(),r.persistentConfig&&r.persistentConfig.editorHeight?r.getWrapperElement().style.height=r.persistentConfig.editorHeight:r.config.editorHeight&&(r.getWrapperElement().style.height=r.config.editorHeight),r.config.resizeable&&r.drawResizer(),r.config.collapsePrefixesOnLoad&&r.collapsePrefixes(!0),r.registerEventListeners(),r}return(0,o.A)(s,e),(0,r.A)(s,[{key:"handleChange",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleBlur",value:function(){this.saveQuery()}},{key:"handleChanges",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleCursorActivity",value:function(){this.autocomplete(!0)}},{key:"handleQuery",value:function(e,t,r){this.req=t,this.abortController=r,this.updateQueryButton()}},{key:"handleQueryResponse",value:function(e,t,r){this.lastQueryDuration=r,this.req=void 0,this.updateQueryButton()}},{key:"handleQueryAbort",value:function(e,t){this.req=void 0,this.updateQueryButton()}},{key:"registerEventListeners",value:function(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}},{key:"unregisterEventListeners",value:function(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];me.signal.apply(me,[this,e,this].concat(r))}},{key:"getStorageId",value:function(e){var t=e||this.config.persistenceId;if(t)return"string"==typeof t?t:t(this)}},{key:"drawButtons",value:function(){var e=this,t=document.createElement("div");if(t.className="yasqe_buttons",this.getWrapperElement().appendChild(t),this.config.pluginButtons){var r=this.config.pluginButtons();if(!r)return;if(Array.isArray(r)){var i,n=ge(r);try{for(n.s();!(i=n.n()).done;){var o=i.value;t.append(o)}}catch(e){n.e(e)}finally{n.f()}}else t.appendChild(r)}if(this.config.createShareableLink){var s=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>'),a=document.createElement("button");a.className="yasqe_share",a.title="Share query",a.setAttribute("aria-label","Share query"),a.appendChild(s),t.appendChild(a),a.addEventListener("click",function(e){return l(e)}),a.addEventListener("keydown",function(e){"Enter"===e.code&&l(e)});var l=function(r){r.stopPropagation();var i=document.createElement("div");i.className="yasqe_sharePopup",t.appendChild(i),document.body.addEventListener("click",function(e){i&&e.target!==i&&!i.contains(e.target)&&(i.remove(),i=void 0)},!0);var n=document.createElement("input");n.type="text",n.value=e.config.createShareableLink(e),n.onfocus=function(){n.select()},n.onmouseup=function(){return!1},i.innerHTML="";var o=document.createElement("div");o.className="inputWrapper",o.appendChild(n),i.appendChild(o);var a=[],l=e.config.createShortLink;if(l){i.className=i.className+=" enableShort";var u=document.createElement("button");a.push(u),u.innerHTML="Shorten",u.className="yasqe_btn yasqe_btn-sm shorten",i.appendChild(u),u.onclick=function(){a.forEach(function(e){return e.disabled=!0}),l(e,n.value).then(function(e){n.value=e,n.focus()},function(e){var t=document.createElement("span");t.className="shortlinkErr";var r="An error has occurred";"string"==typeof e&&0!==e.length?r=e:e.message&&0!==e.message.length&&(r=e.message),t.textContent=r,n.replaceWith(t)})}}var c=document.createElement("button");a.push(c),c.innerText="cURL",c.className="yasqe_btn yasqe_btn-sm curl",i.appendChild(c),c.onclick=function(){a.forEach(function(e){return e.disabled=!0}),n.value=e.getAsCurlString(),n.focus(),null==i||i.appendChild(c)};var p=s.getBoundingClientRect();i.style.top=s.offsetTop+p.height+"px",i.style.left=s.offsetLeft+s.clientWidth-i.clientWidth+"px",n.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),(0,m.iQ)(this.queryBtn,"yasqe_queryButton");var u=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>');(0,m.iQ)(u,"queryIcon"),this.queryBtn.appendChild(u);var c=(0,m.Mg)(O);(0,m.iQ)(c,"warningIcon"),this.queryBtn.appendChild(c),this.queryBtn.onclick=function(){e.config.queryingDisabled||(e.req?e.abortQuery():e.query().catch(function(){}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),t.appendChild(this.queryBtn),this.updateQueryButton()}this.fullscreenBtn=document.createElement("button"),(0,m.iQ)(this.fullscreenBtn,"yasqe_fullscreenButton");var p=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');(0,m.iQ)(p,"fullscreenIcon"),this.fullscreenBtn.appendChild(p);var d=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>');(0,m.iQ)(d,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(d),this.fullscreenBtn.onclick=function(){e.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),t.appendChild(this.fullscreenBtn)}},{key:"toggleFullscreen",value:function(){var e,t;this.isFullscreen=!this.isFullscreen,this.isFullscreen?((0,m.iQ)(this.rootEl,"fullscreen"),null===(e=this.fullscreenBtn)||void 0===e||e.setAttribute("title","Exit fullscreen (F11)")):((0,m.vy)(this.rootEl,"fullscreen"),null===(t=this.fullscreenBtn)||void 0===t||t.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}},{key:"getIsFullscreen",value:function(){return this.isFullscreen}},{key:"drawResizer",value:function(){if(!this.resizeWrapper){this.resizeWrapper=document.createElement("div"),(0,m.iQ)(this.resizeWrapper,"resizeWrapper");var e=document.createElement("div");(0,m.iQ)(e,"resizeChip"),this.resizeWrapper.appendChild(e),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}}},{key:"initDrag",value:function(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}},{key:"calculateDragOffset",value:function(e,t){var r=0;t.offsetParent&&(r=t.offsetParent.offsetTop);for(var i=0,n=t.parentElement;n;)i+=n.scrollTop,n=n.parentElement;return e.clientY-r-this.rootEl.offsetTop+i}},{key:"doDrag",value:function(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}},{key:"stopDrag",value:function(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}},{key:"duplicateLine",value:function(){var e=this.getDoc().getCursor();if(e){var t=this.getDoc().getLine(e.line);this.getDoc().replaceRange(t+"\n"+t,{ch:0,line:e.line},{ch:t.length,line:e.line})}}},{key:"updateQueryButton",value:function(e){this.queryBtn&&(this.config.queryingDisabled?((0,m.iQ)(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):((0,m.vy)(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&((0,m.vy)(this.queryBtn,"query_"+this.queryStatus),(0,m.iQ)(this.queryBtn,"query_"+e),this.queryStatus=e),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}},{key:"handleLocalStorageQuotaFull",value:function(e){console.warn("Localstorage quota exceeded. Clearing all queries"),s.clearStorage()}},{key:"saveQuery",value:function(){var e=this.getStorageId();e&&this.persistentConfig&&(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}},{key:"getQueryType",value:function(){return this.getOption("queryType")}},{key:"getQueryMode",value:function(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}},{key:"getVariablesFromQuery",value:function(){var e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),t=[];for(var r in e.state.variables)t.push(r);return t.sort()}},{key:"autoformatSelection",value:function(e,t){var r=this.getValue();return r=r.substring(e,t),s.autoformatString(r)}},{key:"commentLines",value:function(){for(var e=this.getDoc().getCursor("start").line,t=this.getDoc().getCursor("end").line,r=Math.min(e,t),i=Math.max(e,t),n=!0,o=r;o<=i;o++){var s=this.getDoc().getLine(o);if(0==s.length||"#"!=s.substring(0,1)){n=!1;break}}for(o=r;o<=i;o++)n?this.getDoc().replaceRange("",{line:o,ch:0},{line:o,ch:1}):this.getDoc().replaceRange("#",{line:o,ch:0})}},{key:"autoformat",value:function(){var e=this;this.getDoc().somethingSelected()||this.execCommand("selectAll");var t=this.getDoc().getCursor("start"),r={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},i=this.getDoc().indexFromPos(t),n=this.getDoc().indexFromPos(r),o=this.autoformatSelection(i,n);this.operation(function(){e.getDoc().replaceRange(o,t,r);for(var n=e.getDoc().posFromIndex(i).line,s=e.getDoc().posFromIndex(i+o.length).line,a=n;a<=s;a++)e.indentLine(a,"smart")})}},{key:"getQueryWithValues",value:function(e){if(!e)return this.getValue();var t;if("string"==typeof e)t=e;else{e instanceof Array||(e=[e]);var r=e.reduce(function(e,t){for(var r in t)e[r]=r;return e},{}),i=[];for(var n in r)i.push(n);if(!i.length)return this.getValue();t="VALUES ("+i.join(" ")+") {\n",e.forEach(function(e){t+="( ",i.forEach(function(r){t+=e[r]||"UNDEF"}),t+=" )\n"}),t+="}\n"}if(!t)return this.getValue();var o="",a=!1,l=!1;return s.runMode(this.getValue(),"sparql11",function(e,r,i,n,s){"keyword"===r&&"select"===e.toLowerCase()&&(l=!0),o+=e,l&&!a&&"punc"===r&&"{"===e&&(a=!0,o+="\n"+t)}),o}},{key:"getValueWithoutComments",value:function(){var e="";return s.runMode(this.getValue(),"sparql11",function(t,r){"comment"!=r&&(e+=t)}),e}},{key:"setCheckSyntaxErrors",value:function(e){this.config.syntaxErrorCheck=e,this.checkSyntax()}},{key:"checkSyntax",value:function(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e=0;e<this.getDoc().lineCount();++e){var t=!1;this.prevQueryValid||(t=!0);var r=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},t),i=r.state;if(this.setOption("queryType",i.queryType),0==i.OK){if(!this.config.syntaxErrorCheck){for(var n=this.getWrapperElement().querySelectorAll(".sp-error"),o=0;o<n.length;o++){var s=n[o];s.style&&(s.style.color="black")}return}var a=(0,m.Mg)(O);if(i.errorMsg)v(0,a,(0,fe.A)(r.state.errorMsg));else if(i.possibleCurrent&&i.possibleCurrent.length>0){var l=[];i.possibleCurrent.forEach(function(e){l.push("<strong style='text-decoration:underline'>"+(0,fe.A)(e)+"</strong>")}),v(0,a,"This line is invalid. Expected: "+l.join(", "))}a.className="parseErrorIcon",this.setGutterMarker(e,"gutterErrorBar",a),this.queryValid=!1;break}}}},{key:"getCompleteToken",value:function(e,t){return l(this,e,t)}},{key:"getPreviousNonWsToken",value:function(e,t){return p(this,e,t)}},{key:"getNextNonWsToken",value:function(e,t){return d(this,e,t)}},{key:"showNotification",value:function(e,t){if(!this.notificationEls[e]){var r=document.createElement("div");(0,m.iQ)(r,"notificationContainer"),this.getWrapperElement().appendChild(r),this.notificationEls[e]=document.createElement("div"),(0,m.iQ)(this.notificationEls[e],"notification","notif_"+e),r.appendChild(this.notificationEls[e])}for(var i in this.notificationEls)i!==e&&this.hideNotification(i);var n=this.notificationEls[e];(0,m.iQ)(n,"active"),n.innerText=t}},{key:"hideNotification",value:function(e){this.notificationEls[e]&&(0,m.vy)(this.notificationEls[e],"active")}},{key:"enableCompleter",value:function(e){return s.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new ue(this,s.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}},{key:"disableCompleter",value:function(e){this.config.autocompleters=this.config.autocompleters.filter(function(t){return t!==e}),this.autocompleters[e]=void 0}},{key:"autocomplete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.getDoc().somethingSelected())for(var t in this.config.autocompleters){var r=this.autocompleters[this.config.autocompleters[t]];r&&r.autocomplete(e)}}},{key:"collapsePrefixes",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=function(e){for(var t=e.getDoc().lastLine(),r=0;r<=t;++r){var i=f(e,r);if(null!=i&&i>=0)return r}}(this);void 0!==t&&this.foldCode(t,me.fold.prefix,e?"fold":"unfold")}},{key:"getPrefixesFromQuery",value:function(){return(e=this).getTokenAt({line:e.getDoc().lastLine(),ch:e.getDoc().getLine(e.getDoc().lastLine()).length},!0).state.prefixes;var e}},{key:"addPrefixes",value:function(e){return function(e,t){var r=e.getPrefixesFromQuery();if("string"==typeof t)E(e,t);else for(var i in t)i in r||E(e,i+": <"+t[i]+">");e.collapsePrefixes(!1)}(this,e)}},{key:"removePrefixes",value:function(e){return function(e,t){var r=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var i in t)e.setValue(e.getValue().replace(new RegExp("PREFIX\\s*"+i+":\\s*"+r("<"+t[i]+">")+"\\s*","ig"),""));e.collapsePrefixes(!1)}(this,e)}},{key:"updateWidget",value:function(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){var e=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=e+"px"}}},{key:"query",value:function(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.abortQuery(),S(this,e))}},{key:"getUrlParams",value:function(){var e={};return window.location.hash.length>1&&(e=g.parse(location.hash)),e&&"query"in e||!(window.location.search.length>1)||(e=g.parse(window.location.search)),e}},{key:"configToQueryParams",value:function(){var e={};return window.location.hash.length>1&&(e=g.parse(window.location.hash)),e.query=this.getValue(),e}},{key:"queryParamsToConfig",value:function(e){e&&e.query&&"string"==typeof e.query&&this.setValue(e.query)}},{key:"getAsCurlString",value:function(e){return b(this,e)}},{key:"abortQuery",value:function(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}},{key:"expandEditor",value:function(){this.setSize(null,"100%")}},{key:"destroy",value:function(){var e,t;for(var r in this.abortQuery(),this.unregisterEventListeners(),null===(e=this.resizeWrapper)||void 0===e||e.removeEventListener("mousedown",this.initDrag,!1),null===(t=this.resizeWrapper)||void 0===t||t.removeEventListener("dblclick",this.expandEditor),this.autocompleters)this.disableCompleter(r);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}}],[{key:"autoformatString",value:function(e){var t=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],r=["}"],i="",n="",o=[];return s.runMode(e,"sparql11",function(e,s){o.push(s);var a=function(e){if("{"===e)return 1;if("."===e)return 1;if(";"===e)return o.length>2&&"punc"===o[o.length-2]?0:1;for(var i=0;i<t.length;i++)if(o.valueOf().toString()===t[i].valueOf().toString())return 1;for(i=0;i<r.length;i++)if(""!==n.trim()&&e==r[i])return-1;return 0}(e);0!=a?(1==a?(i+=e+"\n",n=""):(i+="\n"+e,n=e),o=[]):(n+=e,i+=e),1==o.length&&"sp-ws"==o[0]&&(o=[])}),i.replace(/\n\s*\n/g,"\n").trim()}},{key:"clearStorage",value:function(){new m.wc(s.storageNamespace).removeNamespace()}},{key:"registerAutocompleter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.name;s.Autocompleters[r]=e,t&&s.defaults.autocompleters.indexOf(r)<0&&s.defaults.autocompleters.push(r)}},{key:"forkAutocompleter",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!s.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!(null==t?void 0:t.name))throw new Error("Expected a name for newly registered autocompleter");var i=t.name;s.Autocompleters[i]=Object.assign(Object.assign({},s.Autocompleters[e]),t),r&&s.defaults.autocompleters.indexOf(i)<0&&s.defaults.autocompleters.push(i)}}])}(me);Ne.storageNamespace="triply",Ne.Sparql=e,Ne.runMode=me.runMode,Ne.Autocompleters={},Ne.defaults=function(){var e=__webpack_require__(1719),t={mode:"sparql11",value:"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nSELECT * WHERE {\n ?sub ?pred ?obj .\n} LIMIT 10",highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new e.fold.combine(e.fold.brace,e.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(e){e.autocomplete()},"Shift-Ctrl-K":function(e){var t=e,r=t.getDoc().getCursor().line;return r===t.getDoc().lastLine()&&r>1?t.getDoc().replaceRange("",{ch:t.getDoc().getLine(r-1).length,line:r-1},{ch:t.getDoc().getLine(r).length,line:r}):t.getDoc().replaceRange("",{ch:0,line:r},{ch:0,line:r+1})},"Ctrl-/":function(e){e.commentLines()},"Shift-Ctrl-D":function(e){e.duplicateLine()},"Shift-Ctrl-F":function(e){e.autoformat()},"Ctrl-S":function(e){e.saveQuery()},"Cmd-Enter":function(e){e.query().catch(function(){})},"Ctrl-Enter":function(e){e.query().catch(function(){})},Esc:function(e){e.getInputField().blur()}},createShareableLink:function(e){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+g.stringify(e.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(e){e.queryParamsToConfig(e.getUrlParams())},persistenceId:function(e){var t="",r=e.rootEl;for(r.id&&(t=r.id);r&&r!==document;r=r.parentNode)if(r){r.id&&(t=r.id);break}return"yasqe_"+t+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json"},r={queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"application/n-triples,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1};return Object.assign(Object.assign({},t),{requestConfig:r})}(),Object.assign(me.prototype,Ne.prototype),he.forEach(function(e){Ne.registerAutocompleter(e)});const ye=Ne})(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Yasqe",[],t):"object"==typeof exports?exports.Yasqe=t():e.Yasqe=t()}(self,()=>(()=>{var __webpack_modules__={160:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),i=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],n(r),n(i))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],i=1;i<t.length;i++)t=(e=n(t,i).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=o(r[0]);n!==r[0]&&(t[r[0]]=n)}r=i.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},232:(e,t,r)=>{var i=r(8541)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},365:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(4360);function n(e,t){if(t&&("object"==(0,i.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},666:(e,t,r)=>{!function(e){"use strict";function t(t){return function(r,i){var n=i.line,o=r.getLine(n);function s(t){for(var s,a=i.ch,l=0;;){var u=a<=0?-1:o.lastIndexOf(t[0],a-1);if(-1!=u){if(1==l&&u<i.ch)break;if(s=r.getTokenTypeAt(e.Pos(n,u+1)),!/^(comment|string)/.test(s))return{ch:u+1,tokenType:s,pair:t};a=u-1}else{if(1==l)break;l=1,a=o.length}}}function a(t){var i,o,s=1,a=r.lastLine(),l=t.ch;e:for(var u=n;u<=a;++u)for(var c=r.getLine(u),p=u==n?l:0;;){var d=c.indexOf(t.pair[0],p),h=c.indexOf(t.pair[1],p);if(d<0&&(d=c.length),h<0&&(h=c.length),(p=Math.min(d,h))==c.length)break;if(r.getTokenTypeAt(e.Pos(u,p+1))==t.tokenType)if(p==d)++s;else if(! --s){i=u,o=p;break e}++p}return null==i||n==i?null:{from:e.Pos(n,l),to:e.Pos(i,o)}}for(var l=[],u=0;u<t.length;u++){var c=s(t[u]);c&&l.push(c)}for(l.sort(function(e,t){return e.ch-t.ch}),u=0;u<l.length;u++){var p=a(l[u]);if(p)return p}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(t,r){function i(r){if(r<t.firstLine()||r>t.lastLine())return null;var i=t.getTokenAt(e.Pos(r,1));if(/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(r,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var n=r,o=Math.min(t.lastLine(),r+10);n<=o;++n){var s=t.getLine(n).indexOf(";");if(-1!=s)return{startCh:i.end,end:e.Pos(n,s)}}}var n,o=r.line,s=i(o);if(!s||i(o-1)||(n=i(o-2))&&n.end.line==o-1)return null;for(var a=s.end;;){var l=i(a.line+1);if(null==l)break;a=l.end}return{from:t.clipPos(e.Pos(o,s.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t,r){function i(r){if(r<t.firstLine()||r>t.lastLine())return null;var i=t.getTokenAt(e.Pos(r,1));return/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(r,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var n=r.line,o=i(n);if(null==o||null!=i(n-1))return null;for(var s=n;null!=i(s+1);)++s;return{from:e.Pos(n,o+1),to:t.clipPos(e.Pos(s))}})}(r(1719))},732:(e,t,r)=>{var i=r(7589),n=i.Global,o=i.trim;e.exports={name:"cookieStorage",read:function(e){if(!e||!u(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(t),"$1"))},write:function(e,t){if(!e)return;s.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:l,clearAll:function(){a(function(e,t){l(t)})}};var s=n.document;function a(e){for(var t=s.cookie.split(/; ?/g),r=t.length-1;r>=0;r--)if(o(t[r])){var i=t[r].split("="),n=unescape(i[0]);e(unescape(i[1]),n)}}function l(e){e&&u(e)&&(s.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},761:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(8086);const n=function(e){if("string"==typeof e||(0,i.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},815:()=>{"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var r,i,n,o,s,a=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,r=0;r<o;r+=1)s[r]=str(r,l)||"null";return n=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,n}if(rep&&"object"==typeof rep)for(o=rep.length,r=0;r<o;r+=1)"string"==typeof rep[r]&&(n=str(i=rep[r],l))&&s.push(quote(i)+(gap?": ":":")+n);else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n=str(i,l))&&s.push(quote(i)+(gap?": ":":")+n);return n=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,n}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,r){var i;if(gap="",indent="","number"==typeof r)for(i=0;i<r;i+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,i,n=e[t];if(n&&"object"==typeof n)for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(void 0!==(i=walk(n,r))?n[r]=i:delete n[r]);return reviver.call(e,t,n)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},946:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(){return e}}},991:(e,t,r)=>{"use strict";r.r(t)},1100:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return e}},1115:(e,t,r)=>{var i=r(1461),n=r(1907);e.exports=function(e,t,r,o,s){return new n(i().w(e,t,r,o),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1273:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(5168);const n=function(e){var t=new e.constructor(e.byteLength);return new i.A(t).set(new i.A(e)),t}},1408:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var i=r(3779),n=r(8412);const o=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const s=function(e){return this.__data__.has(e)};function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n.A;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=s;const l=a;const u=function(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1};const c=function(e,t){return e.has(t)};const p=function(e,t,r,i,n,o){var s=1&r,a=e.length,p=t.length;if(a!=p&&!(s&&p>a))return!1;var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=-1,E=!0,m=2&r?new l:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var g=e[f],v=t[f];if(i)var x=s?i(v,g,f,t,e,o):i(g,v,f,e,t,o);if(void 0!==x){if(x)continue;E=!1;break}if(m){if(!u(t,function(e,t){if(!c(m,t)&&(g===e||n(g,e,r,i,o)))return m.push(t)})){E=!1;break}}else if(g!==v&&!n(g,v,r,i,o)){E=!1;break}}return o.delete(e),o.delete(t),E};var d=r(7181),h=r(5168),f=r(7348);const E=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r};const m=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r};var g=d.A?d.A.prototype:void 0,v=g?g.valueOf:void 0;const x=function(e,t,r,i,n,o,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new h.A(e),new h.A(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=E;case"[object Set]":var l=1&i;if(a||(a=m),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=2,s.set(e,t);var c=p(a(e),a(t),i,n,o,s);return s.delete(e),c;case"[object Symbol]":if(v)return v.call(e)==v.call(t)}return!1};var N=r(6886),y=Object.prototype.hasOwnProperty;const A=function(e,t,r,i,n,o){var s=1&r,a=(0,N.A)(e),l=a.length;if(l!=(0,N.A)(t).length&&!s)return!1;for(var u=l;u--;){var c=a[u];if(!(s?c in t:y.call(t,c)))return!1}var p=o.get(e),d=o.get(t);if(p&&d)return p==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=s;++u<l;){var E=e[c=a[u]],m=t[c];if(i)var g=s?i(m,E,c,t,e,o):i(E,m,c,e,t,o);if(!(void 0===g?E===m||n(E,m,r,i,o):g)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var v=e.constructor,x=t.constructor;v==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof x&&x instanceof x||(h=!1)}return o.delete(e),o.delete(t),h};var L=r(4889),T=r(8285),I=r(6118),S=r(4249),C="[object Arguments]",R="[object Array]",b="[object Object]",O=Object.prototype.hasOwnProperty;const _=function(e,t,r,n,o,s){var a=(0,T.A)(e),l=(0,T.A)(t),u=a?R:(0,L.A)(e),c=l?R:(0,L.A)(t),d=(u=u==C?b:u)==b,h=(c=c==C?b:c)==b,f=u==c;if(f&&(0,I.A)(e)){if(!(0,I.A)(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new i.A),a||(0,S.A)(e)?p(e,t,r,n,o,s):x(e,t,u,r,n,o,s);if(!(1&r)){var E=d&&O.call(e,"__wrapped__"),m=h&&O.call(t,"__wrapped__");if(E||m){var g=E?e.value():e,v=m?t.value():t;return s||(s=new i.A),o(g,v,r,n,s)}}return!!f&&(s||(s=new i.A),A(e,t,r,n,o,s))};var P=r(8214);const w=function e(t,r,i,n,o){return t===r||(null==t||null==r||!(0,P.A)(t)&&!(0,P.A)(r)?t!=t&&r!=r:_(t,r,i,n,e,o))}},1461:(e,t,r)=>{var i=r(6918);function n(){var t,r,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(e,n,o,s){var a=n&&n.prototype instanceof c?n:c,l=Object.create(a.prototype);return i(l,"_invoke",function(e,i,n){var o,s,a,l=0,c=n||[],p=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return o=e,s=0,a=t,d.n=r,u}};function h(e,i){for(s=e,a=i,r=0;!p&&l&&!n&&r<c.length;r++){var n,o=c[r],h=d.p,f=o[2];e>3?(n=f===i)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=h&&((n=e<2&&h<o[1])?(s=0,d.v=i,d.n=o[1]):h<f&&(n=e<3||o[0]>i||i>f)&&(o[4]=e,o[5]=i,d.n=f,s=0))}if(n||e>1)return u;throw p=!0,i}return function(n,c,f){if(l>1)throw TypeError("Generator is already running");for(p&&1===c&&h(c,f),s=c,a=f;(r=s<2?t:a)||!p;){o||(s?s<3?(s>1&&(d.n=-1),h(s,a)):d.n=a:d.v=a);try{if(l=2,o){if(s||(n="next"),r=o[n]){if(!(r=r.call(o,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,s<2&&(s=0)}else 1===s&&(r=o.return)&&r.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+n+"' method"),s=1);o=t}else if((r=(p=d.n<0)?a:e.call(i,d))!==u)break}catch(e){o=t,s=1,a=e}finally{l=1}}return{value:r,done:p}}}(e,o,s),!0),l}var u={};function c(){}function p(){}function d(){}r=Object.getPrototypeOf;var h=[][s]?r(r([][s]())):(i(r={},s,function(){return this}),r),f=d.prototype=c.prototype=Object.create(h);function E(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return p.prototype=d,i(f,"constructor",d),i(d,"constructor",p),p.displayName="GeneratorFunction",i(d,a,"GeneratorFunction"),i(f),i(f,a,"Generator"),i(f,s,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:l,m:E}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},1671:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var i=r(9790);const n=r(8377).A["__core-js_shared__"];var o,s=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";const a=function(e){return!!s&&s in e};var l=r(6809),u=r(5549),c=/^\[object .+?Constructor\]$/,p=Function.prototype,d=Object.prototype,h=p.toString,f=d.hasOwnProperty,E=RegExp("^"+h.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,l.A)(e)||a(e))&&((0,i.A)(e)?E:c).test((0,u.A)(e))};const g=function(e,t){return null==e?void 0:e[t]};const v=function(e,t){var r=g(e,t);return m(r)?r:void 0}},1697:e=>{e.exports=function(e){var t=Object(e),r=[];for(var i in t)r.unshift(i);return function e(){for(;r.length;)if((i=r.pop())in t)return e.value=i,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},1719:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),n=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),s=i||n||o,a=s&&(i?document.documentMode||6:+(o||n)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),p=c&&+c[1],d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),E=/PhantomJS/.test(e),m=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=m||/Mac/.test(t),N=/\bCrOS\b/.test(e),y=/win/i.test(t),A=d&&e.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(d=!1,l=!0);var L=x&&(u||d&&(null==A||A<12.11)),T=r||s&&a>=9;function I(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,C=function(e,t){var r=e.className,i=I(t).exec(r);if(i){var n=r.slice(i.index+i[0].length);e.className=r.slice(0,i.index)+(n?i[1]+n:"")}};function R(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function b(e,t){return R(e).appendChild(t)}function O(e,t,r,i){var n=document.createElement(e);if(r&&(n.className=r),i&&(n.style.cssText=i),"string"==typeof t)n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}function _(e,t,r,i){var n=O(e,t,r,i);return n.setAttribute("role","presentation"),n}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function w(e){var t,r=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=r.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function D(e,t){var r=e.className;I(t).test(r)||(e.className+=(r?" ":"")+t)}function M(e,t){for(var r=e.split(" "),i=0;i<r.length;i++)r[i]&&!I(r[i]).test(t)&&(t+=" "+r[i]);return t}S=document.createRange?function(e,t,r,i){var n=document.createRange();return n.setEnd(i||e,r),n.setStart(e,t),n}:function(e,t,r){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",r),i.moveStart("character",t),i};var k=function(e){e.select()};function G(e){return e.display.wrapper.ownerDocument}function U(e){return B(e.display.wrapper)}function B(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function F(e){return G(e).defaultView}function V(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function H(e,t,r){for(var i in t||(t={}),e)!e.hasOwnProperty(i)||!1===r&&t.hasOwnProperty(i)||(t[i]=e[i]);return t}function j(e,t,r,i,n){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=i||0,s=n||0;;){var a=e.indexOf("\t",o);if(a<0||a>=t)return s+(t-o);s+=a-o,s+=r-s%r,o=a+1}}m?k=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:s&&(k=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};function W(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var z=50,Y={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},X={origin:"*mouse"},$={origin:"+move"};function Q(e,t,r){for(var i=0,n=0;;){var o=e.indexOf("\t",i);-1==o&&(o=e.length);var s=o-i;if(o==e.length||n+s>=t)return i+Math.min(s,t-n);if(n+=o-i,i=o+1,(n+=r-n%r)>=t)return i}}var Z=[""];function J(e){for(;Z.length<=e;)Z.push(ee(Z)+" ");return Z[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var r=[],i=0;i<e.length;i++)r[i]=t(e[i],i);return r}function re(e,t,r){for(var i=0,n=r(t);i<e.length&&r(e[i])<=n;)i++;e.splice(i,0,t)}function ie(){}function ne(e,t){var r;return Object.create?r=Object.create(e):(ie.prototype=e,r=new ie),t&&H(t,r),r}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function se(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&se(e))||t.test(e):se(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(e){return e.charCodeAt(0)>=768&&ue.test(e)}function pe(e,t,r){for(;(r<0?t>0:t<e.length)&&ce(e.charAt(t));)t+=r;return t}function de(e,t,r){for(var i=t>r?-1:1;;){if(t==r)return t;var n=(t+r)/2,o=i<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+i}}function he(e,t,r,i){if(!e)return i(t,r,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var s=e[o];(s.from<r&&s.to>t||t==r&&s.to==t)&&(i(Math.max(s.from,t),Math.min(s.to,r),1==s.level?"rtl":"ltr",o),n=!0)}n||i(t,r,"ltr")}var fe=null;function Ee(e,t,r){var i;fe=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&"before"==r?i=n:fe=n),o.from==t&&(o.from!=o.to&&"before"!=r?i=n:fe=n)}return null!=i?i:fe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,s=/[Lb1n]/,a=/[1n]/;function l(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var c=e.length,p=[],d=0;d<c;++d)p.push(r(e.charCodeAt(d)));for(var h=0,f=u;h<c;++h){var E=p[h];"m"==E?p[h]=f:f=E}for(var m=0,g=u;m<c;++m){var v=p[m];"1"==v&&"r"==g?p[m]="n":o.test(v)&&(g=v,"r"==v&&(p[m]="R"))}for(var x=1,N=p[0];x<c-1;++x){var y=p[x];"+"==y&&"1"==N&&"1"==p[x+1]?p[x]="1":","!=y||N!=p[x+1]||"1"!=N&&"n"!=N||(p[x]=N),N=y}for(var A=0;A<c;++A){var L=p[A];if(","==L)p[A]="N";else if("%"==L){var T=void 0;for(T=A+1;T<c&&"%"==p[T];++T);for(var I=A&&"!"==p[A-1]||T<c&&"1"==p[T]?"1":"N",S=A;S<T;++S)p[S]=I;A=T-1}}for(var C=0,R=u;C<c;++C){var b=p[C];"L"==R&&"1"==b?p[C]="L":o.test(b)&&(R=b)}for(var O=0;O<c;++O)if(n.test(p[O])){var _=void 0;for(_=O+1;_<c&&n.test(p[_]);++_);for(var P="L"==(O?p[O-1]:u),w=P==("L"==(_<c?p[_]:u))?P?"L":"R":u,D=O;D<_;++D)p[D]=w;O=_-1}for(var M,k=[],G=0;G<c;)if(s.test(p[G])){var U=G;for(++G;G<c&&s.test(p[G]);++G);k.push(new l(0,U,G))}else{var B=G,F=k.length,V="rtl"==t?1:0;for(++G;G<c&&"L"!=p[G];++G);for(var H=B;H<G;)if(a.test(p[H])){B<H&&(k.splice(F,0,new l(1,B,H)),F+=V);var j=H;for(++H;H<G&&a.test(p[H]);++H);k.splice(F,0,new l(2,j,H)),F+=V,B=H}else++H;B<G&&k.splice(F,0,new l(1,B,G))}return"ltr"==t&&(1==k[0].level&&(M=e.match(/^\s+/))&&(k[0].from=M[0].length,k.unshift(new l(0,0,M[0].length))),1==ee(k).level&&(M=e.match(/\s+$/))&&(ee(k).to-=M[0].length,k.push(new l(0,c-M[0].length,c)))),"rtl"==t?k.reverse():k}}();function ge(e,t){var r=e.order;return null==r&&(r=e.order=me(e.text,t)),r}var ve=[],xe=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||ve).concat(r)}};function Ne(e,t){return e._handlers&&e._handlers[t]||ve}function ye(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var i=e._handlers,n=i&&i[t];if(n){var o=W(n,r);o>-1&&(i[t]=n.slice(0,o).concat(n.slice(o+1)))}}}function Ae(e,t){var r=Ne(e,t);if(r.length)for(var i=Array.prototype.slice.call(arguments,2),n=0;n<r.length;++n)r[n].apply(null,i)}function Le(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ae(e,r||t.type,e,t),be(t)||t.codemirrorIgnore}function Te(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)-1==W(r,t[i])&&r.push(t[i])}function Ie(e,t){return Ne(e,t).length>0}function Se(e){e.prototype.on=function(e,t){xe(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Re(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function be(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){Ce(e),Re(e)}function _e(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var we,De,Me=function(){if(s&&a<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function ke(e){if(null==we){var t=O("span","​");b(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(we=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&a<8))}var r=we?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ge(e){if(null!=De)return De;var t=b(e,document.createTextNode("AخA")),r=S(t,0,1).getBoundingClientRect(),i=S(t,1,2).getBoundingClientRect();return R(e),!(!r||r.left==r.right)&&(De=i.right-r.right<3)}var Ue,Be=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],i=e.length;t<=i;){var n=e.indexOf("\n",t);-1==n&&(n=e.length);var o=e.slice(t,"\r"==e.charAt(n-1)?n-1:n),s=o.indexOf("\r");-1!=s?(r.push(o.slice(0,s)),t+=s+1):(r.push(o),t=n+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ve="oncopy"in(Ue=O("div"))||(Ue.setAttribute("oncopy","return;"),"function"==typeof Ue.oncopy),He=null;function je(e){if(null!=He)return He;var t=b(e,O("span","x")),r=t.getBoundingClientRect(),i=S(t,0,1).getBoundingClientRect();return He=Math.abs(r.left-i.left)>1}var qe={},We={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Ye(e,t){We[e]=t}function Ke(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Xe(e,t){t=Ke(t);var r=qe[t.name];if(!r)return Xe(e,"text/plain");var i=r(e,t);if($e.hasOwnProperty(t.name)){var n=$e[t.name];for(var o in n)n.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=n[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var s in t.modeProps)i[s]=t.modeProps[s];return i}var $e={};function Qe(e,t){H(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function Ze(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var i in t){var n=t[i];n instanceof Array&&(n=n.concat([])),r[i]=n}return r}function Je(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function et(e,t,r){return!e.startState||e.startState(t,r)}var tt=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function rt(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var i=0;;++i){var n=r.children[i],o=n.chunkSize();if(t<o){r=n;break}t-=o}return r.lines[t]}function it(e,t,r){var i=[],n=t.line;return e.iter(t.line,r.line+1,function(e){var o=e.text;n==r.line&&(o=o.slice(0,r.ch)),n==t.line&&(o=o.slice(t.ch)),i.push(o),++n}),i}function nt(e,t,r){var i=[];return e.iter(t,r,function(e){i.push(e.text)}),i}function ot(e,t){var r=t-e.height;if(r)for(var i=e;i;i=i.parent)i.height+=r}function st(e){if(null==e.parent)return null;for(var t=e.parent,r=W(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var n=0;i.children[n]!=t;++n)r+=i.children[n].chunkSize();return r+t.first}function at(e,t){var r=e.first;e:do{for(var i=0;i<e.children.length;++i){var n=e.children[i],o=n.height;if(t<o){e=n;continue e}t-=o,r+=n.chunkSize()}return r}while(!e.lines);for(var s=0;s<e.lines.length;++s){var a=e.lines[s].height;if(t<a)break;t-=a}return r+s}function lt(e,t){return t>=e.first&&t<e.first+e.size}function ut(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ct(e,t,r){if(void 0===r&&(r=null),!(this instanceof ct))return new ct(e,t,r);this.line=e,this.ch=t,this.sticky=r}function pt(e,t){return e.line-t.line||e.ch-t.ch}function dt(e,t){return e.sticky==t.sticky&&0==pt(e,t)}function ht(e){return ct(e.line,e.ch)}function ft(e,t){return pt(e,t)<0?t:e}function Et(e,t){return pt(e,t)<0?e:t}function mt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function gt(e,t){if(t.line<e.first)return ct(e.first,0);var r=e.first+e.size-1;return t.line>r?ct(r,rt(e,r).text.length):vt(t,rt(e,t.line).text.length)}function vt(e,t){var r=e.ch;return null==r||r>t?ct(e.line,t):r<0?ct(e.line,0):e}function xt(e,t){for(var r=[],i=0;i<t.length;i++)r[i]=gt(e,t[i]);return r}tt.prototype.eol=function(){return this.pos>=this.string.length},tt.prototype.sol=function(){return this.pos==this.lineStart},tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},tt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},tt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},tt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tt.prototype.skipToEnd=function(){this.pos=this.string.length},tt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},tt.prototype.backUp=function(e){this.pos-=e},tt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},tt.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},tt.prototype.match=function(e,t,r){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var n=function(e){return r?e.toLowerCase():e};if(n(this.string.substr(this.pos,e.length))==n(e))return!1!==t&&(this.pos+=e.length),!0},tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},tt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},tt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},tt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Nt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,r,i){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function At(e,t,r,i){var n=[e.state.modeGen],o={};_t(e,t.text,e.doc.mode,r,function(e,t){return n.push(e,t)},o,i);for(var s=r.state,a=function(i){r.baseTokens=n;var a=e.state.overlays[i],l=1,u=0;r.state=!0,_t(e,t.text,a.mode,r,function(e,t){for(var r=l;u<e;){var i=n[l];i>e&&n.splice(l,1,e,n[l+1],i),l+=2,u=Math.min(e,i)}if(t)if(a.opaque)n.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;r<l;r+=2){var o=n[r+1];n[r+1]=(o?o+" ":"")+"overlay "+t}},o),r.state=s,r.baseTokens=null,r.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)a(l);return{styles:n,classes:o.bgClass||o.textClass?o:null}}function Lt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=Tt(e,st(t)),n=t.text.length>e.options.maxHighlightLength&&Ze(e.doc.mode,i.state),o=At(e,t,i);n&&(i.state=n),t.stateAfter=i.save(!n),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Tt(e,t,r){var i=e.doc,n=e.display;if(!i.mode.startState)return new yt(i,!0,t);var o=Pt(e,t,r),s=o>i.first&&rt(i,o-1).stateAfter,a=s?yt.fromSaved(i,s,o):new yt(i,et(i.mode),o);return i.iter(o,t,function(r){It(e,r.text,a);var i=a.line;r.stateAfter=i==t-1||i%5==0||i>=n.viewFrom&&i<n.viewTo?a.save():null,a.nextLine()}),r&&(i.modeFrontier=a.line),a}function It(e,t,r,i){var n=e.doc.mode,o=new tt(t,e.options.tabSize,r);for(o.start=o.pos=i||0,""==t&&St(n,r.state);!o.eol();)Ct(n,o,r.state),o.start=o.pos}function St(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Je(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function Ct(e,t,r,i){for(var n=0;n<10;n++){i&&(i[0]=Je(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,r){return t instanceof Nt?new yt(e,Ze(e.mode,t.state),r,t.lookAhead):new yt(e,Ze(e.mode,t),r)},yt.prototype.save=function(e){var t=!1!==e?Ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nt(t,this.maxLookAhead):t};var Rt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function bt(e,t,r,i){var n,o,s=e.doc,a=s.mode,l=rt(s,(t=gt(s,t)).line),u=Tt(e,t.line,r),c=new tt(l.text,e.options.tabSize,u);for(i&&(o=[]);(i||c.pos<t.ch)&&!c.eol();)c.start=c.pos,n=Ct(a,c,u.state),i&&o.push(new Rt(c,n,Ze(s.mode,u.state)));return i?o:new Rt(c,n,u.state)}function Ot(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var i=r[1]?"bgClass":"textClass";null==t[i]?t[i]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+r[2])}return e}function _t(e,t,r,i,n,o,s){var a=r.flattenSpans;null==a&&(a=e.options.flattenSpans);var l,u=0,c=null,p=new tt(t,e.options.tabSize,i),d=e.options.addModeClass&&[null];for(""==t&&Ot(St(r,i.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(a=!1,s&&It(e,t,i,p.pos),p.pos=t.length,l=null):l=Ot(Ct(r,p,i.state,d),o),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!a||c!=l){for(;u<p.start;)n(u=Math.min(p.start,u+5e3),c);c=l}p.start=p.pos}for(;u<p.pos;){var f=Math.min(p.pos,u+5e3);n(f,c),u=f}}function Pt(e,t,r){for(var i,n,o=e.doc,s=r?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>s;--a){if(a<=o.first)return o.first;var l=rt(o,a-1),u=l.stateAfter;if(u&&(!r||a+(u instanceof Nt?u.lookAhead:0)<=o.modeFrontier))return a;var c=j(l.text,null,e.options.tabSize);(null==n||i>c)&&(n=a-1,i=c)}return n}function wt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,i=t-1;i>r;i--){var n=rt(e,i).stateAfter;if(n&&(!(n instanceof Nt)||i+n.lookAhead<t)){r=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var Dt=!1,Mt=!1;function kt(){Dt=!0}function Gt(){Mt=!0}function Ut(e,t,r){this.marker=e,this.from=t,this.to=r}function Bt(e,t){if(e)for(var r=0;r<e.length;++r){var i=e[r];if(i.marker==t)return i}}function Ft(e,t){for(var r,i=0;i<e.length;++i)e[i]!=t&&(r||(r=[])).push(e[i]);return r}function Vt(e,t,r){var i=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));i&&e.markedSpans&&i.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],i&&i.add(e.markedSpans)),t.marker.attachLine(e)}function Ht(e,t,r){var i;if(e)for(var n=0;n<e.length;++n){var o=e[n],s=o.marker;if(null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==s.type&&(!r||!o.marker.insertLeft)){var a=null==o.to||(s.inclusiveRight?o.to>=t:o.to>t);(i||(i=[])).push(new Ut(s,o.from,a?null:o.to))}}return i}function jt(e,t,r){var i;if(e)for(var n=0;n<e.length;++n){var o=e[n],s=o.marker;if(null==o.to||(s.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==s.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t);(i||(i=[])).push(new Ut(s,a?null:o.from-t,null==o.to?null:o.to-t))}}return i}function qt(e,t){if(t.full)return null;var r=lt(e,t.from.line)&&rt(e,t.from.line).markedSpans,i=lt(e,t.to.line)&&rt(e,t.to.line).markedSpans;if(!r&&!i)return null;var n=t.from.ch,o=t.to.ch,s=0==pt(t.from,t.to),a=Ht(r,n,s),l=jt(i,o,s),u=1==t.text.length,c=ee(t.text).length+(u?n:0);if(a)for(var p=0;p<a.length;++p){var d=a[p];if(null==d.to){var h=Bt(l,d.marker);h?u&&(d.to=null==h.to?null:h.to+c):d.to=n}}if(l)for(var f=0;f<l.length;++f){var E=l[f];null!=E.to&&(E.to+=c),null==E.from?Bt(a,E.marker)||(E.from=c,u&&(a||(a=[])).push(E)):(E.from+=c,u&&(a||(a=[])).push(E))}a&&(a=Wt(a)),l&&l!=a&&(l=Wt(l));var m=[a];if(!u){var g,v=t.text.length-2;if(v>0&&a)for(var x=0;x<a.length;++x)null==a[x].to&&(g||(g=[])).push(new Ut(a[x].marker,null,null));for(var N=0;N<v;++N)m.push(g);m.push(l)}return m}function Wt(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function zt(e,t,r){var i=null;if(e.iter(t.line,r.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||i&&-1!=W(i,r)||(i||(i=[])).push(r)}}),!i)return null;for(var n=[{from:t,to:r}],o=0;o<i.length;++o)for(var s=i[o],a=s.find(0),l=0;l<n.length;++l){var u=n[l];if(!(pt(u.to,a.from)<0||pt(u.from,a.to)>0)){var c=[l,1],p=pt(u.from,a.from),d=pt(u.to,a.to);(p<0||!s.inclusiveLeft&&!p)&&c.push({from:u.from,to:a.from}),(d>0||!s.inclusiveRight&&!d)&&c.push({from:a.to,to:u.to}),n.splice.apply(n,c),l+=c.length-3}}return n}function Yt(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Kt(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Xt(e){return e.inclusiveLeft?-1:0}function $t(e){return e.inclusiveRight?1:0}function Qt(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var i=e.find(),n=t.find(),o=pt(i.from,n.from)||Xt(e)-Xt(t);if(o)return-o;var s=pt(i.to,n.to)||$t(e)-$t(t);return s||t.id-e.id}function Zt(e,t){var r,i=Mt&&e.markedSpans;if(i)for(var n=void 0,o=0;o<i.length;++o)(n=i[o]).marker.collapsed&&null==(t?n.from:n.to)&&(!r||Qt(r,n.marker)<0)&&(r=n.marker);return r}function Jt(e){return Zt(e,!0)}function er(e){return Zt(e,!1)}function tr(e,t){var r,i=Mt&&e.markedSpans;if(i)for(var n=0;n<i.length;++n){var o=i[n];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!r||Qt(r,o.marker)<0)&&(r=o.marker)}return r}function rr(e,t,r,i,n){var o=rt(e,t),s=Mt&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var u=l.marker.find(0),c=pt(u.from,r)||Xt(l.marker)-Xt(n),p=pt(u.to,i)||$t(l.marker)-$t(n);if(!(c>=0&&p<=0||c<=0&&p>=0)&&(c<=0&&(l.marker.inclusiveRight&&n.inclusiveLeft?pt(u.to,r)>=0:pt(u.to,r)>0)||c>=0&&(l.marker.inclusiveRight&&n.inclusiveLeft?pt(u.from,i)<=0:pt(u.from,i)<0)))return!0}}}function ir(e){for(var t;t=Jt(e);)e=t.find(-1,!0).line;return e}function nr(e){for(var t;t=er(e);)e=t.find(1,!0).line;return e}function or(e){for(var t,r;t=er(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function sr(e,t){var r=rt(e,t),i=ir(r);return r==i?t:st(i)}function ar(e,t){if(t>e.lastLine())return t;var r,i=rt(e,t);if(!lr(e,i))return t;for(;r=er(i);)i=r.find(1,!0).line;return st(i)+1}function lr(e,t){var r=Mt&&t.markedSpans;if(r)for(var i=void 0,n=0;n<r.length;++n)if((i=r[n]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&ur(e,t,i))return!0}}function ur(e,t,r){if(null==r.to){var i=r.marker.find(1,!0);return ur(e,i.line,Bt(i.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var n=void 0,o=0;o<t.markedSpans.length;++o)if((n=t.markedSpans[o]).marker.collapsed&&!n.marker.widgetNode&&n.from==r.to&&(null==n.to||n.to!=r.from)&&(n.marker.inclusiveLeft||r.marker.inclusiveRight)&&ur(e,t,n))return!0}function cr(e){for(var t=0,r=(e=ir(e)).parent,i=0;i<r.lines.length;++i){var n=r.lines[i];if(n==e)break;t+=n.height}for(var o=r.parent;o;o=(r=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==r)break;t+=a.height}return t}function pr(e){if(0==e.height)return 0;for(var t,r=e.text.length,i=e;t=Jt(i);){var n=t.find(0,!0);i=n.from.line,r+=n.from.ch-n.to.ch}for(i=e;t=er(i);){var o=t.find(0,!0);r-=i.text.length-o.from.ch,r+=(i=o.to.line).text.length-o.to.ch}return r}function dr(e){var t=e.display,r=e.doc;t.maxLine=rt(r,r.first),t.maxLineLength=pr(t.maxLine),t.maxLineChanged=!0,r.iter(function(e){var r=pr(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}var hr=function(e,t,r){this.text=e,Kt(this,t),this.height=r?r(this):1};function fr(e,t,r,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Yt(e),Kt(e,r);var n=i?i(e):1;n!=e.height&&ot(e,n)}function Er(e){e.parent=null,Yt(e)}hr.prototype.lineNo=function(){return st(this)},Se(hr);var mr={},gr={};function vr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?gr:mr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function xr(e,t){var r=_("span",null,null,l?"padding-right: .1px":null),i={pre:_("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var o=n?t.rest[n-1]:t.line,s=void 0;i.pos=0,i.addToken=yr,Ge(e.display.measure)&&(s=ge(o,e.doc.direction))&&(i.addToken=Lr(i.addToken,s)),i.map=[],Ir(o,i,Lt(e,o,t!=e.display.externalMeasured&&st(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=M(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=M(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(ke(e.display.measure))),0==n?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var a=i.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Ae(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=M(i.pre.className,i.textClass||"")),i}function Nr(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function yr(e,t,r,i,n,o,l){if(t){var u,c=e.splitSpaces?Ar(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){u=document.createDocumentFragment();for(var h=0;;){p.lastIndex=h;var f=p.exec(t),E=f?f.index-h:t.length-h;if(E){var m=document.createTextNode(c.slice(h,h+E));s&&a<9?u.appendChild(O("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+E,m),e.col+=E,e.pos+=E}if(!f)break;h+=E+1;var g=void 0;if("\t"==f[0]){var v=e.cm.options.tabSize,x=v-e.col%v;(g=u.appendChild(O("span",J(x),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=x}else"\r"==f[0]||"\n"==f[0]?((g=u.appendChild(O("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),s&&a<9?u.appendChild(O("span",[g])):u.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),s&&a<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||i||n||d||o||l){var N=r||"";i&&(N+=i),n&&(N+=n);var y=O("span",[u],N,o);if(l)for(var A in l)l.hasOwnProperty(A)&&"style"!=A&&"class"!=A&&y.setAttribute(A,l[A]);return e.content.appendChild(y)}e.content.appendChild(u)}}function Ar(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,i="",n=0;n<e.length;n++){var o=e.charAt(n);" "!=o||!r||n!=e.length-1&&32!=e.charCodeAt(n+1)||(o=" "),i+=o,r=" "==o}return i}function Lr(e,t){return function(r,i,n,o,s,a,l){n=n?n+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+i.length;;){for(var p=void 0,d=0;d<t.length&&!((p=t[d]).to>u&&p.from<=u);d++);if(p.to>=c)return e(r,i,n,o,s,a,l);e(r,i.slice(0,p.to-u),n,o,null,a,l),o=null,i=i.slice(p.to-u),u=p.to}}}function Tr(e,t,r,i){var n=!i&&r.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!i&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",r.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function Ir(e,t,r){var i=e.markedSpans,n=e.text,o=0;if(i)for(var s,a,l,u,c,p,d,h=n.length,f=0,E=1,m="",g=0;;){if(g==f){l=u=c=a="",d=null,p=null,g=1/0;for(var v=[],x=void 0,N=0;N<i.length;++N){var y=i[N],A=y.marker;if("bookmark"==A.type&&y.from==f&&A.widgetNode)v.push(A);else if(y.from<=f&&(null==y.to||y.to>f||A.collapsed&&y.to==f&&y.from==f)){if(null!=y.to&&y.to!=f&&g>y.to&&(g=y.to,u=""),A.className&&(l+=" "+A.className),A.css&&(a=(a?a+";":"")+A.css),A.startStyle&&y.from==f&&(c+=" "+A.startStyle),A.endStyle&&y.to==g&&(x||(x=[])).push(A.endStyle,y.to),A.title&&((d||(d={})).title=A.title),A.attributes)for(var L in A.attributes)(d||(d={}))[L]=A.attributes[L];A.collapsed&&(!p||Qt(p.marker,A)<0)&&(p=y)}else y.from>f&&g>y.from&&(g=y.from)}if(x)for(var T=0;T<x.length;T+=2)x[T+1]==g&&(u+=" "+x[T]);if(!p||p.from==f)for(var I=0;I<v.length;++I)Tr(t,0,v[I]);if(p&&(p.from||0)==f){if(Tr(t,(null==p.to?h+1:p.to)-f,p.marker,null==p.from),null==p.to)return;p.to==f&&(p=!1)}}if(f>=h)break;for(var S=Math.min(h,g);;){if(m){var C=f+m.length;if(!p){var R=C>S?m.slice(0,S-f):m;t.addToken(t,R,s?s+l:l,c,f+R.length==g?u:"",a,d)}if(C>=S){m=m.slice(S-f),f=S;break}f=C,c=""}m=n.slice(o,o=r[E++]),s=vr(r[E++],t.cm.options)}}else for(var b=1;b<r.length;b+=2)t.addToken(t,n.slice(o,o=r[b]),vr(r[b+1],t.cm.options))}function Sr(e,t,r){this.line=t,this.rest=or(t),this.size=this.rest?st(ee(this.rest))-r+1:1,this.node=this.text=null,this.hidden=lr(e,t)}function Cr(e,t,r){for(var i,n=[],o=t;o<r;o=i){var s=new Sr(e.doc,rt(e.doc,o),o);i=o+s.size,n.push(s)}return n}var Rr=null;function br(e){Rr?Rr.ops.push(e):e.ownsGroup=Rr={ops:[e],delayedCallbacks:[]}}function Or(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var i=0;i<e.ops.length;i++){var n=e.ops[i];if(n.cursorActivityHandlers)for(;n.cursorActivityCalled<n.cursorActivityHandlers.length;)n.cursorActivityHandlers[n.cursorActivityCalled++].call(null,n.cm)}}while(r<t.length)}function _r(e,t){var r=e.ownsGroup;if(r)try{Or(r)}finally{Rr=null,t(r)}}var Pr=null;function wr(e,t){var r=Ne(e,t);if(r.length){var i,n=Array.prototype.slice.call(arguments,2);Rr?i=Rr.delayedCallbacks:Pr?i=Pr:(i=Pr=[],setTimeout(Dr,0));for(var o=function(e){i.push(function(){return r[e].apply(null,n)})},s=0;s<r.length;++s)o(s)}}function Dr(){var e=Pr;Pr=null;for(var t=0;t<e.length;++t)e[t]()}function Mr(e,t,r,i){for(var n=0;n<t.changes.length;n++){var o=t.changes[n];"text"==o?Br(e,t):"gutter"==o?Vr(e,t,r,i):"class"==o?Fr(e,t):"widget"==o&&Hr(e,t,i)}t.changes=null}function kr(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),s&&a<8&&(e.node.style.zIndex=2)),e.node}function Gr(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var i=kr(t);t.background=i.insertBefore(O("div",null,r),i.firstChild),e.display.input.setUneditable(t.background)}}function Ur(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):xr(e,t)}function Br(e,t){var r=t.text.className,i=Ur(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,Fr(e,t)):r&&(t.text.className=r)}function Fr(e,t){Gr(e,t),t.line.wrapClass?kr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Vr(e,t,r,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var n=kr(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),n.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var s=kr(t),a=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),e.display.input.setUneditable(a),s.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(O("div",ut(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&a.appendChild(O("div",[c],"CodeMirror-gutter-elt","left: "+i.gutterLeft[u]+"px; width: "+i.gutterWidth[u]+"px"))}}}function Hr(e,t,r){t.alignable&&(t.alignable=null);for(var i=I("CodeMirror-linewidget"),n=t.node.firstChild,o=void 0;n;n=o)o=n.nextSibling,i.test(n.className)&&t.node.removeChild(n);qr(e,t,r)}function jr(e,t,r,i){var n=Ur(e,t);return t.text=t.node=n.pre,n.bgClass&&(t.bgClass=n.bgClass),n.textClass&&(t.textClass=n.textClass),Fr(e,t),Vr(e,t,r,i),qr(e,t,i),t.node}function qr(e,t,r){if(Wr(e,t.line,t,r,!0),t.rest)for(var i=0;i<t.rest.length;i++)Wr(e,t.rest[i],t,r,!1)}function Wr(e,t,r,i,n){if(t.widgets)for(var o=kr(r),s=0,a=t.widgets;s<a.length;++s){var l=a[s],u=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),zr(l,u,r,i),e.display.input.setUneditable(u),n&&l.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),wr(l,"redraw")}}function zr(e,t,r,i){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var n=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(n-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=n+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function Yr(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!P(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),b(t.display.measure,O("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Kr(e,t){for(var r=_e(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Xr(e){return e.lineSpace.offsetTop}function $r(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Qr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=b(e.measure,O("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(e.cachedPaddingH=i),i}function Zr(e){return z-e.display.nativeBarWidth}function Jr(e){return e.display.scroller.clientWidth-Zr(e)-e.display.barWidth}function ei(e){return e.display.scroller.clientHeight-Zr(e)-e.display.barHeight}function ti(e,t,r){var i=e.options.lineWrapping,n=i&&Jr(e);if(!t.measure.heights||i&&t.measure.width!=n){var o=t.measure.heights=[];if(i){t.measure.width=n;for(var s=t.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],u=s[a+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function ri(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var n=0;n<e.rest.length;n++)if(st(e.rest[n])>r)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function ii(e,t){var r=st(t=ir(t)),i=e.display.externalMeasured=new Sr(e.doc,t,r);i.lineN=r;var n=i.built=xr(e,i);return i.text=n.pre,b(e.display.lineMeasure,n.pre),i}function ni(e,t,r,i){return ai(e,si(e,t),r,i)}function oi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Fi(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function si(e,t){var r=st(t),i=oi(e,r);i&&!i.text?i=null:i&&i.changes&&(Mr(e,i,r,Mi(e)),e.curOp.forceUpdate=!0),i||(i=ii(e,t));var n=ri(i,t,r);return{line:t,view:i,rect:null,map:n.map,cache:n.cache,before:n.before,hasHeights:!1}}function ai(e,t,r,i,n){t.before&&(r=-1);var o,s=r+(i||"");return t.cache.hasOwnProperty(s)?o=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(ti(e,t.view,t.rect),t.hasHeights=!0),(o=di(e,t,r,i)).bogus||(t.cache[s]=o)),{left:o.left,right:o.right,top:n?o.rtop:o.top,bottom:n?o.rbottom:o.bottom}}var li,ui={left:0,right:0,top:0,bottom:0};function ci(e,t,r){for(var i,n,o,s,a,l,u=0;u<e.length;u+=3)if(a=e[u],l=e[u+1],t<a?(n=0,o=1,s="left"):t<l?o=1+(n=t-a):(u==e.length-3||t==l&&e[u+3]>t)&&(n=(o=l-a)-1,t>=l&&(s="right")),null!=n){if(i=e[u+2],a==l&&r==(i.insertLeft?"left":"right")&&(s=r),"left"==r&&0==n)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)i=e[2+(u-=3)],s="left";if("right"==r&&n==l-a)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)i=e[(u+=3)+2],s="right";break}return{node:i,start:n,end:o,collapse:s,coverStart:a,coverEnd:l}}function pi(e,t){var r=ui;if("left"==t)for(var i=0;i<e.length&&(r=e[i]).left==r.right;i++);else for(var n=e.length-1;n>=0&&(r=e[n]).left==r.right;n--);return r}function di(e,t,r,i){var n,o=ci(t.map,r,i),l=o.node,u=o.start,c=o.end,p=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&ce(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ce(t.line.text.charAt(o.coverStart+c));)++c;if((n=s&&a<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():pi(S(l,u,c).getClientRects(),i)).left||n.right||0==u)break;c=u,u-=1,p="right"}s&&a<11&&(n=hi(e.display.measure,n))}else{var h;u>0&&(p=i="right"),n=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==i?h.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!u&&(!n||!n.left&&!n.right)){var f=l.parentNode.getClientRects()[0];n=f?{left:f.left,right:f.left+Di(e.display),top:f.top,bottom:f.bottom}:ui}for(var E=n.top-t.rect.top,m=n.bottom-t.rect.top,g=(E+m)/2,v=t.view.measure.heights,x=0;x<v.length-1&&!(g<v[x]);x++);var N=x?v[x-1]:0,y=v[x],A={left:("right"==p?n.right:n.left)-t.rect.left,right:("left"==p?n.left:n.right)-t.rect.left,top:N,bottom:y};return n.left||n.right||(A.bogus=!0),e.options.singleCursorHeightPerLine||(A.rtop=E,A.rbottom=m),A}function hi(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!je(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*i,bottom:t.bottom*i}}function fi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Ei(e){e.display.externalMeasure=null,R(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fi(e.display.view[t])}function mi(e){Ei(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function gi(e){return c&&g?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function vi(e){return c&&g?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function xi(e){var t=ir(e).widgets,r=0;if(t)for(var i=0;i<t.length;++i)t[i].above&&(r+=Yr(t[i]));return r}function Ni(e,t,r,i,n){if(!n){var o=xi(t);r.top+=o,r.bottom+=o}if("line"==i)return r;i||(i="local");var s=cr(t);if("local"==i?s+=Xr(e.display):s-=e.display.viewOffset,"page"==i||"window"==i){var a=e.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==i?0:vi(G(e)));var l=a.left+("window"==i?0:gi(G(e)));r.left+=l,r.right+=l}return r.top+=s,r.bottom+=s,r}function yi(e,t,r){if("div"==r)return t;var i=t.left,n=t.top;if("page"==r)i-=gi(G(e)),n-=vi(G(e));else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();i+=o.left,n+=o.top}var s=e.display.lineSpace.getBoundingClientRect();return{left:i-s.left,top:n-s.top}}function Ai(e,t,r,i,n){return i||(i=rt(e.doc,t.line)),Ni(e,i,ni(e,i,t.ch,n),r)}function Li(e,t,r,i,n,o){function s(t,s){var a=ai(e,n,t,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,Ni(e,i,a,r)}i=i||rt(e.doc,t.line),n||(n=si(e,i));var a=ge(i,e.doc.direction),l=t.ch,u=t.sticky;if(l>=i.text.length?(l=i.text.length,u="before"):l<=0&&(l=0,u="after"),!a)return s("before"==u?l-1:l,"before"==u);function c(e,t,r){return s(r?e-1:e,1==a[t].level!=r)}var p=Ee(a,l,u),d=fe,h=c(l,p,"before"==u);return null!=d&&(h.other=c(l,d,"before"!=u)),h}function Ti(e,t){var r=0;t=gt(e.doc,t),e.options.lineWrapping||(r=Di(e.display)*t.ch);var i=rt(e.doc,t.line),n=cr(i)+Xr(e.display);return{left:r,right:r,top:n,bottom:n+i.height}}function Ii(e,t,r,i,n){var o=ct(e,t,r);return o.xRel=n,i&&(o.outside=i),o}function Si(e,t,r){var i=e.doc;if((r+=e.display.viewOffset)<0)return Ii(i.first,0,null,-1,-1);var n=at(i,r),o=i.first+i.size-1;if(n>o)return Ii(i.first+i.size-1,rt(i,o).text.length,null,1,1);t<0&&(t=0);for(var s=rt(i,n);;){var a=Oi(e,s,n,t,r),l=tr(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!l)return a;var u=l.find(1);if(u.line==n)return u;s=rt(i,n=u.line)}}function Ci(e,t,r,i){i-=xi(t);var n=t.text.length,o=de(function(t){return ai(e,r,t-1).bottom<=i},n,0);return{begin:o,end:n=de(function(t){return ai(e,r,t).top>i},o,n)}}function Ri(e,t,r,i){return r||(r=si(e,t)),Ci(e,t,r,Ni(e,t,ai(e,r,i),"line").top)}function bi(e,t,r,i){return!(e.bottom<=r)&&(e.top>r||(i?e.left:e.right)>t)}function Oi(e,t,r,i,n){n-=cr(t);var o=si(e,t),s=xi(t),a=0,l=t.text.length,u=!0,c=ge(t,e.doc.direction);if(c){var p=(e.options.lineWrapping?Pi:_i)(e,t,r,o,c,i,n);a=(u=1!=p.level)?p.from:p.to-1,l=u?p.to:p.from-1}var d,h,f=null,E=null,m=de(function(t){var r=ai(e,o,t);return r.top+=s,r.bottom+=s,!!bi(r,i,n,!1)&&(r.top<=n&&r.left<=i&&(f=t,E=r),!0)},a,l),g=!1;if(E){var v=i-E.left<E.right-i,x=v==u;m=f+(x?0:1),h=x?"after":"before",d=v?E.left:E.right}else{u||m!=l&&m!=a||m++,h=0==m?"after":m==t.text.length?"before":ai(e,o,m-(u?1:0)).bottom+s<=n==u?"after":"before";var N=Li(e,ct(r,m,h),"line",t,o);d=N.left,g=n<N.top?-1:n>=N.bottom?1:0}return Ii(r,m=pe(t.text,m,1),h,g,i-d)}function _i(e,t,r,i,n,o,s){var a=de(function(a){var l=n[a],u=1!=l.level;return bi(Li(e,ct(r,u?l.to:l.from,u?"before":"after"),"line",t,i),o,s,!0)},0,n.length-1),l=n[a];if(a>0){var u=1!=l.level,c=Li(e,ct(r,u?l.from:l.to,u?"after":"before"),"line",t,i);bi(c,o,s,!0)&&c.top>s&&(l=n[a-1])}return l}function Pi(e,t,r,i,n,o,s){var a=Ci(e,t,i,s),l=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,p=null,d=0;d<n.length;d++){var h=n[d];if(!(h.from>=u||h.to<=l)){var f=ai(e,i,1!=h.level?Math.min(u,h.to)-1:Math.max(l,h.from)).right,E=f<o?o-f+1e9:f-o;(!c||p>E)&&(c=h,p=E)}}return c||(c=n[n.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function wi(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==li){li=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)li.appendChild(document.createTextNode("x")),li.appendChild(O("br"));li.appendChild(document.createTextNode("x"))}b(e.measure,li);var r=li.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),R(e.measure),r||1}function Di(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),r=O("pre",[t],"CodeMirror-line-like");b(e.measure,r);var i=t.getBoundingClientRect(),n=(i.right-i.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function Mi(e){for(var t=e.display,r={},i={},n=t.gutters.clientLeft,o=t.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=e.display.gutterSpecs[s].className;r[a]=o.offsetLeft+o.clientLeft+n,i[a]=o.clientWidth}return{fixedPos:ki(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function ki(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Gi(e){var t=wi(e.display),r=e.options.lineWrapping,i=r&&Math.max(5,e.display.scroller.clientWidth/Di(e.display)-3);return function(n){if(lr(e.doc,n))return 0;var o=0;if(n.widgets)for(var s=0;s<n.widgets.length;s++)n.widgets[s].height&&(o+=n.widgets[s].height);return r?o+(Math.ceil(n.text.length/i)||1)*t:o+t}}function Ui(e){var t=e.doc,r=Gi(e);t.iter(function(e){var t=r(e);t!=e.height&&ot(e,t)})}function Bi(e,t,r,i){var n=e.display;if(!r&&"true"==_e(t).getAttribute("cm-not-content"))return null;var o,s,a=n.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,s=t.clientY-a.top}catch(e){return null}var l,u=Si(e,o,s);if(i&&u.xRel>0&&(l=rt(e.doc,u.line).text).length==u.ch){var c=j(l,l.length,e.options.tabSize)-l.length;u=ct(u.line,Math.max(0,Math.round((o-Qr(e.display).left)/Di(e.display))-c))}return u}function Fi(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,i=0;i<r.length;i++)if((t-=r[i].size)<0)return i}function Vi(e,t,r,i){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),i||(i=0);var n=e.display;if(i&&r<n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>t)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)Mt&&sr(e.doc,t)<n.viewTo&&ji(e);else if(r<=n.viewFrom)Mt&&ar(e.doc,r+i)>n.viewFrom?ji(e):(n.viewFrom+=i,n.viewTo+=i);else if(t<=n.viewFrom&&r>=n.viewTo)ji(e);else if(t<=n.viewFrom){var o=qi(e,r,r+i,1);o?(n.view=n.view.slice(o.index),n.viewFrom=o.lineN,n.viewTo+=i):ji(e)}else if(r>=n.viewTo){var s=qi(e,t,t,-1);s?(n.view=n.view.slice(0,s.index),n.viewTo=s.lineN):ji(e)}else{var a=qi(e,t,t,-1),l=qi(e,r,r+i,1);a&&l?(n.view=n.view.slice(0,a.index).concat(Cr(e,a.lineN,l.lineN)).concat(n.view.slice(l.index)),n.viewTo+=i):ji(e)}var u=n.externalMeasured;u&&(r<u.lineN?u.lineN+=i:t<u.lineN+u.size&&(n.externalMeasured=null))}function Hi(e,t,r){e.curOp.viewChanged=!0;var i=e.display,n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var o=i.view[Fi(e,t)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==W(s,r)&&s.push(r)}}}function ji(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qi(e,t,r,i){var n,o=Fi(e,t),s=e.display.view;if(!Mt||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=t){if(i>0){if(o==s.length-1)return null;n=a+s[o].size-t,o++}else n=a-t;t+=n,r+=n}for(;sr(e.doc,r)!=r;){if(o==(i<0?0:s.length-1))return null;r+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:r}}function Wi(e,t,r){var i=e.display;0==i.view.length||t>=i.viewTo||r<=i.viewFrom?(i.view=Cr(e,t,r),i.viewFrom=t):(i.viewFrom>t?i.view=Cr(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Fi(e,t))),i.viewFrom=t,i.viewTo<r?i.view=i.view.concat(Cr(e,i.viewTo,r)):i.viewTo>r&&(i.view=i.view.slice(0,Fi(e,r)))),i.viewTo=r}function zi(e){for(var t=e.display.view,r=0,i=0;i<t.length;i++){var n=t[i];n.hidden||n.node&&!n.changes||++r}return r}function Yi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ki(e,t){void 0===t&&(t=!0);var r=e.doc,i={},n=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),s=e.options.$customCursor;s&&(t=!0);for(var a=0;a<r.sel.ranges.length;a++)if(t||a!=r.sel.primIndex){var l=r.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(s){var c=s(e,l);c&&Xi(e,c,n)}else(u||e.options.showCursorWhenSelecting)&&Xi(e,l.head,n);u||Qi(e,l,o)}}return i}function Xi(e,t,r){var i=Li(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),n=r.appendChild(O("div"," ","CodeMirror-cursor"));if(n.style.left=i.left+"px",n.style.top=i.top+"px",n.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Ai(e,t,"div",null,null),s=o.right-o.left;n.style.width=(s>0?s:e.defaultCharWidth())+"px"}if(i.other){var a=r.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function $i(e,t){return e.top-t.top||e.left-t.left}function Qi(e,t,r){var i=e.display,n=e.doc,o=document.createDocumentFragment(),s=Qr(e.display),a=s.left,l=Math.max(i.sizerWidth,Jr(e)-i.sizer.offsetLeft)-s.right,u="ltr"==n.direction;function c(e,t,r,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(r??l-e)+"px;\n height: "+(i-t)+"px"))}function p(t,r,i){var o,s,p=rt(n,t),d=p.text.length;function h(r,i){return Ai(e,ct(t,r),"div",p,i)}function f(t,r,i){var n=Ri(e,p,null,t),o="ltr"==r==("after"==i)?"left":"right";return h("after"==i?n.begin:n.end-(/\s/.test(p.text.charAt(n.end-1))?2:1),o)[o]}var E=ge(p,n.direction);return he(E,r||0,i??d,function(e,t,n,p){var m="ltr"==n,g=h(e,m?"left":"right"),v=h(t-1,m?"right":"left"),x=null==r&&0==e,N=null==i&&t==d,y=0==p,A=!E||p==E.length-1;if(v.top-g.top<=3){var L=(u?N:x)&&A,T=(u?x:N)&&y?a:(m?g:v).left,I=L?l:(m?v:g).right;c(T,g.top,I-T,g.bottom)}else{var S,C,R,b;m?(S=u&&x&&y?a:g.left,C=u?l:f(e,n,"before"),R=u?a:f(t,n,"after"),b=u&&N&&A?l:v.right):(S=u?f(e,n,"before"):a,C=!u&&x&&y?l:g.right,R=!u&&N&&A?a:v.left,b=u?f(t,n,"after"):l),c(S,g.top,C-S,g.bottom),g.bottom<v.top&&c(a,g.bottom,null,v.top),c(R,v.top,b-R,v.bottom)}(!o||$i(g,o)<0)&&(o=g),$i(v,o)<0&&(o=v),(!s||$i(g,s)<0)&&(s=g),$i(v,s)<0&&(s=v)}),{start:o,end:s}}var d=t.from(),h=t.to();if(d.line==h.line)p(d.line,d.ch,h.ch);else{var f=rt(n,d.line),E=rt(n,h.line),m=ir(f)==ir(E),g=p(d.line,d.ch,m?f.text.length+1:null).end,v=p(h.line,m?0:null,h.ch).start;m&&(g.top<v.top-2?(c(g.right,g.top,null,g.bottom),c(a,v.top,v.left,v.bottom)):c(g.right,g.top,v.left-g.right,g.bottom)),g.bottom<v.top&&c(a,g.bottom,null,v.top)}r.appendChild(o)}function Zi(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||rn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ji(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||tn(e))}function en(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&rn(e))},100)}function tn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Zi(e))}function rn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function nn(e){for(var t=e.display,r=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,p=void 0,d=0;if(!u.hidden){if(n+=u.line.height,s&&a<8){var h=u.node.offsetTop+u.node.offsetHeight;p=h-r,r=h}else{var f=u.node.getBoundingClientRect();p=f.bottom-f.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-f.left-1)}var E=u.line.height-p;if((E>.005||E<-.005)&&(n<i&&(o-=E),ot(u.line,p),on(u.line),u.rest))for(var m=0;m<u.rest.length;m++)on(u.rest[m]);if(d>e.display.sizerWidth){var g=Math.ceil(d/Di(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function on(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],i=r.node.parentNode;i&&(r.height=i.offsetHeight)}}function sn(e,t,r){var i=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;i=Math.floor(i-Xr(e));var n=r&&null!=r.bottom?r.bottom:i+e.wrapper.clientHeight,o=at(t,i),s=at(t,n);if(r&&r.ensure){var a=r.ensure.from.line,l=r.ensure.to.line;a<o?(o=a,s=at(t,cr(rt(t,a))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=s&&(o=at(t,cr(rt(t,l))-e.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function an(e,t){if(!Le(e,"scrollCursorIntoView")){var r=e.display,i=r.sizer.getBoundingClientRect(),n=null,o=r.wrapper.ownerDocument;if(t.top+i.top<0?n=!0:t.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(n=!1),null!=n&&!E){var s=O("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Xr(e.display))+"px;\n height: "+(t.bottom-t.top+Zr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(s),s.scrollIntoView(n),e.display.lineSpace.removeChild(s)}}}function ln(e,t,r,i){var n;null==i&&(i=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?ct(t.line,t.ch+1,"before"):t,t=t.ch?ct(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var s=!1,a=Li(e,t),l=r&&r!=t?Li(e,r):a,u=cn(e,n={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i}),c=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=u.scrollTop&&(gn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&(xn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(s=!0)),!s)break}return n}function un(e,t){var r=cn(e,t);null!=r.scrollTop&&gn(e,r.scrollTop),null!=r.scrollLeft&&xn(e,r.scrollLeft)}function cn(e,t){var r=e.display,i=wi(e.display);t.top<0&&(t.top=0);var n=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=ei(e),s={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+$r(r),l=t.top<i,u=t.bottom>a-i;if(t.top<n)s.scrollTop=l?0:t.top;else if(t.bottom>n+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=n&&(s.scrollTop=c)}var p=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-p,h=Jr(e)-r.gutters.offsetWidth,f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?s.scrollLeft=0:t.left<d?s.scrollLeft=Math.max(0,t.left+p-(f?0:10)):t.right>h+d-3&&(s.scrollLeft=t.right+(f?0:10)-h),s}function pn(e,t){null!=t&&(En(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function dn(e){En(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hn(e,t,r){null==t&&null==r||En(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function fn(e,t){En(e),e.curOp.scrollToPos=t}function En(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,mn(e,Ti(e,t.from),Ti(e,t.to),t.margin))}function mn(e,t,r,i){var n=cn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-i,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+i});hn(e,n.scrollLeft,n.scrollTop)}function gn(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||Kn(e,{top:t}),vn(e,t,!0),r&&Kn(e),Fn(e,100))}function vn(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function xn(e,t,r,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Zn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Nn(e){var t=e.display,r=t.gutters.offsetWidth,i=Math.round(e.doc.height+$r(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:i,scrollHeight:i+Zr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var yn=function(e,t,r){this.cm=r;var i=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=n.tabIndex=-1,e(i),e(n),xe(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),xe(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var n=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?i:0,bottom:t?i:0}},yn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yn.prototype.zeroWidthHack=function(){var e=x&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},yn.prototype.enableZeroWidthBar=function(e,t,r){function i(){var n=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,i)}e.style.visibility="",t.set(1e3,i)},yn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var An=function(){};function Ln(e,t){t||(t=Nn(e));var r=e.display.barWidth,i=e.display.barHeight;Tn(e,t);for(var n=0;n<4&&r!=e.display.barWidth||i!=e.display.barHeight;n++)r!=e.display.barWidth&&e.options.lineWrapping&&nn(e),Tn(e,Nn(e)),r=e.display.barWidth,i=e.display.barHeight}function Tn(e,t){var r=e.display,i=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=i.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=i.bottom)+"px",r.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=i.bottom+"px",r.scrollbarFiller.style.width=i.right+"px"):r.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=i.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}An.prototype.update=function(){return{bottom:0,right:0}},An.prototype.setScrollLeft=function(){},An.prototype.setScrollTop=function(){},An.prototype.clear=function(){};var In={native:yn,null:An};function Sn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new In[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),xe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?xn(e,t):gn(e,t)},e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var Cn=0;function Rn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cn,markArrays:null},br(e.curOp)}function bn(e){var t=e.curOp;t&&_r(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;On(e)})}function On(e){for(var t=e.ops,r=0;r<t.length;r++)_n(t[r]);for(var i=0;i<t.length;i++)Pn(t[i]);for(var n=0;n<t.length;n++)wn(t[n]);for(var o=0;o<t.length;o++)Dn(t[o]);for(var s=0;s<t.length;s++)Mn(t[s])}function _n(e){var t=e.cm,r=t.display;jn(t),e.updateMaxLine&&dr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Hn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Pn(e){e.updatedDisplay=e.mustUpdate&&zn(e.cm,e.update)}function wn(e){var t=e.cm,r=t.display;e.updatedDisplay&&nn(t),e.barMeasure=Nn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ni(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Zr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Jr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Dn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&xn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==w(U(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ln(t,e.barMeasure),e.updatedDisplay&&Qn(t,e.barMeasure),e.selectionChanged&&Zi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Ji(e.cm)}function Mn(e){var t=e.cm,r=t.display,i=t.doc;e.updatedDisplay&&Yn(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&vn(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&xn(t,e.scrollLeft,!0,!0),e.scrollToPos&&an(t,ln(t,gt(i,e.scrollToPos.from),gt(i,e.scrollToPos.to),e.scrollToPos.margin));var n=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(n)for(var s=0;s<n.length;++s)n[s].lines.length||Ae(n[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&Ae(o[a],"unhide");r.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ae(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function kn(e,t){if(e.curOp)return t();Rn(e);try{return t()}finally{bn(e)}}function Gn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Rn(e);try{return t.apply(e,arguments)}finally{bn(e)}}}function Un(e){return function(){if(this.curOp)return e.apply(this,arguments);Rn(this);try{return e.apply(this,arguments)}finally{bn(this)}}}function Bn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Rn(t);try{return e.apply(this,arguments)}finally{bn(t)}}}function Fn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,V(Vn,e))}function Vn(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,i=Tt(e,t.highlightFrontier),n=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(i.line>=e.display.viewFrom){var s=o.styles,a=o.text.length>e.options.maxHighlightLength?Ze(t.mode,i.state):null,l=At(e,o,i,!0);a&&(i.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var p=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!p&&d<s.length;++d)p=s[d]!=o.styles[d];p&&n.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=e.options.maxHighlightLength&&It(e,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>r)return Fn(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),n.length&&kn(e,function(){for(var t=0;t<n.length;t++)Hi(e,n[t],"text")})}}var Hn=function(e,t,r){var i=e.display;this.viewport=t,this.visible=sn(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Jr(e),this.force=r,this.dims=Mi(e),this.events=[]};function jn(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Zr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Zr(e)+"px",t.scrollbarsClipped=!0)}function qn(e){if(e.hasFocus())return null;var t=w(U(e));if(!t||!P(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var i=F(e).getSelection();i.anchorNode&&i.extend&&P(e.display.lineDiv,i.anchorNode)&&(r.anchorNode=i.anchorNode,r.anchorOffset=i.anchorOffset,r.focusNode=i.focusNode,r.focusOffset=i.focusOffset)}return r}function Wn(e){if(e&&e.activeElt&&e.activeElt!=w(B(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),i=t.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),r.removeAllRanges(),r.addRange(i),r.extend(e.focusNode,e.focusOffset)}}function zn(e,t){var r=e.display,i=e.doc;if(t.editorIsHidden)return ji(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==zi(e))return!1;Jn(e)&&(ji(e),t.dims=Mi(e));var n=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),s=Math.min(n,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(i.first,r.viewFrom)),r.viewTo>s&&r.viewTo-s<20&&(s=Math.min(n,r.viewTo)),Mt&&(o=sr(e.doc,o),s=ar(e.doc,s));var a=o!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Wi(e,o,s),r.viewOffset=cr(rt(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=zi(e);if(!a&&0==l&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=qn(e);return l>4&&(r.lineDiv.style.display="none"),Xn(e,r.updateLineNumbers,t.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Wn(u),R(r.cursorDiv),R(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Fn(e,400)),r.updateLineNumbers=null,!0}function Yn(e,t){for(var r=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Jr(e))i&&(t.visible=sn(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+$r(e.display)-ei(e),r.top)}),t.visible=sn(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!zn(e,t))break;nn(e);var n=Nn(e);Yi(e),Ln(e,n),Qn(e,n),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Kn(e,t){var r=new Hn(e,t);if(zn(e,r)){nn(e),Yn(e,r);var i=Nn(e);Yi(e),Ln(e,i),Qn(e,i),r.finish()}}function Xn(e,t,r){var i=e.display,n=e.options.lineNumbers,o=i.lineDiv,s=o.firstChild;function a(t){var r=t.nextSibling;return l&&x&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=i.view,c=i.viewFrom,p=0;p<u.length;p++){var d=u[p];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;s!=d.node;)s=a(s);var h=n&&null!=t&&t<=c&&d.lineNumber;d.changes&&(W(d.changes,"gutter")>-1&&(h=!1),Mr(e,d,c,r)),h&&(R(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ut(e.options,c)))),s=d.node.nextSibling}else{var f=jr(e,d,c,r);o.insertBefore(f,s)}c+=d.size}for(;s;)s=a(s)}function $n(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",wr(e,"gutterChanged",e)}function Qn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Zr(e)+"px"}function Zn(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=ki(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,o=i+"px",s=0;s<r.length;s++)if(!r[s].hidden){e.options.fixedGutter&&(r[s].gutter&&(r[s].gutter.style.left=o),r[s].gutterBackground&&(r[s].gutterBackground.style.left=o));var a=r[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=i+n+"px")}}function Jn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=ut(e.options,t.first+t.size-1),i=e.display;if(r.length!=i.lineNumChars){var n=i.measure.appendChild(O("div",[O("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=n.firstChild.offsetWidth,s=n.offsetWidth-o;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(o,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?r.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",$n(e.display),!0}return!1}function eo(e,t){for(var r=[],i=!1,n=0;n<e.length;n++){var o=e[n],s=null;if("string"!=typeof o&&(s=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;i=!0}r.push({className:o,style:s})}return t&&!i&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function to(e){var t=e.gutters,r=e.gutterSpecs;R(t),e.lineGutter=null;for(var i=0;i<r.length;++i){var n=r[i],o=n.className,s=n.style,a=t.appendChild(O("div",null,"CodeMirror-gutter "+o));s&&(a.style.cssText=s),"CodeMirror-linenumbers"==o&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",$n(e)}function ro(e){to(e.display),Vi(e),Zn(e)}function io(e,t,i,n){var o=this;this.input=i,o.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=_("div",null,"CodeMirror-code"),o.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=O("div",null,"CodeMirror-cursors"),o.measure=O("div",null,"CodeMirror-measure"),o.lineMeasure=O("div",null,"CodeMirror-measure"),o.lineSpace=_("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=_("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[u],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),o.gutters=O("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=O("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=O("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&105===p&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),s&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||r&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=eo(n.gutters,n.lineNumbers),to(o),i.init(o)}Hn.prototype.signal=function(e,t){Ie(e,t)&&this.events.push(arguments)},Hn.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ae.apply(null,this.events[e])};var no=0,oo=null;function so(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function ao(e){var t=so(e);return t.x*=oo,t.y*=oo,t}function lo(e,t){c&&102==p&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=so(t),n=i.x,o=i.y,s=oo;0===t.deltaMode&&(n=t.deltaX,o=t.deltaY,s=1);var a=e.display,u=a.scroller,h=u.scrollWidth>u.clientWidth,f=u.scrollHeight>u.clientHeight;if(n&&h||o&&f){if(o&&x&&l)e:for(var E=t.target,m=a.view;E!=u;E=E.parentNode)for(var g=0;g<m.length;g++)if(m[g].node==E){e.display.currentWheelTarget=E;break e}if(n&&!r&&!d&&null!=s)return o&&f&&gn(e,Math.max(0,u.scrollTop+o*s)),xn(e,Math.max(0,u.scrollLeft+n*s)),(!o||o&&f)&&Ce(t),void(a.wheelStartX=null);if(o&&null!=s){var v=o*s,N=e.doc.scrollTop,y=N+a.wrapper.clientHeight;v<0?N=Math.max(0,N+v-50):y=Math.min(e.doc.height,y+v+50),Kn(e,{top:N,bottom:y})}no<20&&0!==t.deltaMode&&(null==a.wheelStartX?(a.wheelStartX=u.scrollLeft,a.wheelStartY=u.scrollTop,a.wheelDX=n,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=u.scrollLeft-a.wheelStartX,t=u.scrollTop-a.wheelStartY,r=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,r&&(oo=(oo*no+r)/(no+1),++no)}},200)):(a.wheelDX+=n,a.wheelDY+=o))}}s?oo=-.53:r?oo=15:c?oo=-.7:h&&(oo=-1/3);var uo=function(e,t){this.ranges=e,this.primIndex=t};uo.prototype.primary=function(){return this.ranges[this.primIndex]},uo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],i=e.ranges[t];if(!dt(r.anchor,i.anchor)||!dt(r.head,i.head))return!1}return!0},uo.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new co(ht(this.ranges[t].anchor),ht(this.ranges[t].head));return new uo(e,this.primIndex)},uo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},uo.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=this.ranges[r];if(pt(t,i.from())>=0&&pt(e,i.to())<=0)return r}return-1};var co=function(e,t){this.anchor=e,this.head=t};function po(e,t,r){var i=e&&e.options.selectionsMayTouch,n=t[r];t.sort(function(e,t){return pt(e.from(),t.from())}),r=W(t,n);for(var o=1;o<t.length;o++){var s=t[o],a=t[o-1],l=pt(a.to(),s.from());if(i&&!s.empty()?l>0:l>=0){var u=Et(a.from(),s.from()),c=ft(a.to(),s.to()),p=a.empty()?s.from()==s.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new co(p?c:u,p?u:c))}}return new uo(t,r)}function ho(e,t){return new uo([new co(e,t||e)],0)}function fo(e){return e.text?ct(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Eo(e,t){if(pt(e,t.from)<0)return e;if(pt(e,t.to)<=0)return fo(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=fo(t).ch-t.to.ch),ct(r,i)}function mo(e,t){for(var r=[],i=0;i<e.sel.ranges.length;i++){var n=e.sel.ranges[i];r.push(new co(Eo(n.anchor,t),Eo(n.head,t)))}return po(e.cm,r,e.sel.primIndex)}function go(e,t,r){return e.line==t.line?ct(r.line,e.ch-t.ch+r.ch):ct(r.line+(e.line-t.line),e.ch)}function vo(e,t,r){for(var i=[],n=ct(e.first,0),o=n,s=0;s<t.length;s++){var a=t[s],l=go(a.from,n,o),u=go(fo(a),n,o);if(n=a.to,o=u,"around"==r){var c=e.sel.ranges[s],p=pt(c.head,c.anchor)<0;i[s]=new co(p?u:l,p?l:u)}else i[s]=new co(l,l)}return new uo(i,e.sel.primIndex)}function xo(e){e.doc.mode=Xe(e.options,e.doc.modeOption),No(e)}function No(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Fn(e,100),e.state.modeGen++,e.curOp&&Vi(e)}function yo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==ee(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ao(e,t,r,i){function n(e){return r?r[e]:null}function o(e,r,n){fr(e,r,n,i),wr(e,"change",e,t)}function s(e,t){for(var r=[],o=e;o<t;++o)r.push(new hr(u[o],n(o),i));return r}var a=t.from,l=t.to,u=t.text,c=rt(e,a.line),p=rt(e,l.line),d=ee(u),h=n(u.length-1),f=l.line-a.line;if(t.full)e.insert(0,s(0,u.length)),e.remove(u.length,e.size-u.length);else if(yo(e,t)){var E=s(0,u.length-1);o(p,p.text,h),f&&e.remove(a.line,f),E.length&&e.insert(a.line,E)}else if(c==p)if(1==u.length)o(c,c.text.slice(0,a.ch)+d+c.text.slice(l.ch),h);else{var m=s(1,u.length-1);m.push(new hr(d+c.text.slice(l.ch),h,i)),o(c,c.text.slice(0,a.ch)+u[0],n(0)),e.insert(a.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,a.ch)+u[0]+p.text.slice(l.ch),n(0)),e.remove(a.line+1,f);else{o(c,c.text.slice(0,a.ch)+u[0],n(0)),o(p,d+p.text.slice(l.ch),h);var g=s(1,u.length-1);f>1&&e.remove(a.line+1,f-1),e.insert(a.line+1,g)}wr(e,"change",e,t)}function Lo(e,t,r){function i(e,n,o){if(e.linked)for(var s=0;s<e.linked.length;++s){var a=e.linked[s];if(a.doc!=n){var l=o&&a.sharedHist;r&&!l||(t(a.doc,l),i(a.doc,e,l))}}}i(e,null,!0)}function To(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ui(e),xo(e),Io(e),e.options.direction=t.direction,e.options.lineWrapping||dr(e),e.options.mode=t.modeOption,Vi(e)}function Io(e){("rtl"==e.doc.direction?D:C)(e.display.lineDiv,"CodeMirror-rtl")}function So(e){kn(e,function(){Io(e),Vi(e)})}function Co(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ro(e,t){var r={from:ht(t.from),to:fo(t),text:it(e,t.from,t.to)};return Mo(e,r,t.from.line,t.to.line+1),Lo(e,function(e){return Mo(e,r,t.from.line,t.to.line+1)},!0),r}function bo(e){for(;e.length&&ee(e).ranges;)e.pop()}function Oo(e,t){return t?(bo(e.done),ee(e.done)):e.done.length&&!ee(e.done).ranges?ee(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function _o(e,t,r,i){var n=e.history;n.undone.length=0;var o,s,a=+new Date;if((n.lastOp==i||n.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&n.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Oo(n,n.lastOp==i)))s=ee(o.changes),0==pt(t.from,t.to)&&0==pt(t.from,s.to)?s.to=fo(t):o.changes.push(Ro(e,t));else{var l=ee(n.done);for(l&&l.ranges||Do(e.sel,n.done),o={changes:[Ro(e,t)],generation:n.generation},n.done.push(o);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(r),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=a,n.lastOp=n.lastSelOp=i,n.lastOrigin=n.lastSelOrigin=t.origin,s||Ae(e,"historyAdded")}function Po(e,t,r,i){var n=t.charAt(0);return"*"==n||"+"==n&&r.ranges.length==i.ranges.length&&r.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function wo(e,t,r,i){var n=e.history,o=i&&i.origin;r==n.lastSelOp||o&&n.lastSelOrigin==o&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==o||Po(e,o,ee(n.done),t))?n.done[n.done.length-1]=t:Do(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=o,n.lastSelOp=r,i&&!1!==i.clearRedo&&bo(n.undone)}function Do(e,t){var r=ee(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Mo(e,t,r,i){var n=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,i),function(r){r.markedSpans&&((n||(n=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function ko(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Go(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var i=[],n=0;n<t.text.length;++n)i.push(ko(r[n]));return i}function Uo(e,t){var r=Go(e,t),i=qt(e,t);if(!r)return i;if(!i)return r;for(var n=0;n<r.length;++n){var o=r[n],s=i[n];if(o&&s)e:for(var a=0;a<s.length;++a){for(var l=s[a],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else s&&(r[n]=s)}return r}function Bo(e,t,r){for(var i=[],n=0;n<e.length;++n){var o=e[n];if(o.ranges)i.push(r?uo.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];i.push({changes:a});for(var l=0;l<s.length;++l){var u=s[l],c=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),t)for(var p in u)(c=p.match(/^spans_(\d+)$/))&&W(t,Number(c[1]))>-1&&(ee(a)[p]=u[p],delete u[p])}}}return i}function Fo(e,t,r,i){if(i){var n=e.anchor;if(r){var o=pt(t,n)<0;o!=pt(r,n)<0?(n=t,t=r):o!=pt(t,r)<0&&(t=r)}return new co(n,t)}return new co(r||t,t)}function Vo(e,t,r,i,n){null==n&&(n=e.cm&&(e.cm.display.shift||e.extend)),Yo(e,new uo([Fo(e.sel.primary(),t,r,n)],0),i)}function Ho(e,t,r){for(var i=[],n=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)i[o]=Fo(e.sel.ranges[o],t[o],null,n);Yo(e,po(e.cm,i,e.sel.primIndex),r)}function jo(e,t,r,i){var n=e.sel.ranges.slice(0);n[t]=r,Yo(e,po(e.cm,n,e.sel.primIndex),i)}function qo(e,t,r,i){Yo(e,ho(t,r),i)}function Wo(e,t,r){var i={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new co(gt(e,t[r].anchor),gt(e,t[r].head))},origin:r&&r.origin};return Ae(e,"beforeSelectionChange",e,i),e.cm&&Ae(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?po(e.cm,i.ranges,i.ranges.length-1):t}function zo(e,t,r){var i=e.history.done,n=ee(i);n&&n.ranges?(i[i.length-1]=t,Ko(e,t,r)):Yo(e,t,r)}function Yo(e,t,r){Ko(e,t,r),wo(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function Ko(e,t,r){(Ie(e,"beforeSelectionChange")||e.cm&&Ie(e.cm,"beforeSelectionChange"))&&(t=Wo(e,t,r));var i=r&&r.bias||(pt(t.primary().head,e.sel.primary().head)<0?-1:1);Xo(e,Qo(e,t,i,!0)),r&&!1===r.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||dn(e.cm)}function Xo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),wr(e,"cursorActivity",e))}function $o(e){Xo(e,Qo(e,e.sel,null,!1))}function Qo(e,t,r,i){for(var n,o=0;o<t.ranges.length;o++){var s=t.ranges[o],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Jo(e,s.anchor,a&&a.anchor,r,i),u=s.head==s.anchor?l:Jo(e,s.head,a&&a.head,r,i);(n||l!=s.anchor||u!=s.head)&&(n||(n=t.ranges.slice(0,o)),n[o]=new co(l,u))}return n?po(e.cm,n,t.primIndex):t}function Zo(e,t,r,i,n){var o=rt(e,t.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==a.from||(u?a.from<=t.ch:a.from<t.ch))&&(null==a.to||(c?a.to>=t.ch:a.to>t.ch))){if(n&&(Ae(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(r){var p=l.find(i<0?1:-1),d=void 0;if((i<0?c:u)&&(p=es(e,p,-i,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(d=pt(p,r))&&(i<0?d<0:d>0))return Zo(e,p,t,i,n)}var h=l.find(i<0?-1:1);return(i<0?u:c)&&(h=es(e,h,i,h.line==t.line?o:null)),h?Zo(e,h,t,i,n):null}}return t}function Jo(e,t,r,i,n){var o=i||1,s=Zo(e,t,r,o,n)||!n&&Zo(e,t,r,o,!0)||Zo(e,t,r,-o,n)||!n&&Zo(e,t,r,-o,!0);return s||(e.cantEdit=!0,ct(e.first,0))}function es(e,t,r,i){return r<0&&0==t.ch?t.line>e.first?gt(e,ct(t.line-1)):null:r>0&&t.ch==(i||rt(e,t.line)).text.length?t.line<e.first+e.size-1?ct(t.line+1,0):null:new ct(t.line,t.ch+r)}function ts(e){e.setSelection(ct(e.firstLine(),0),ct(e.lastLine()),K)}function rs(e,t,r){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return r&&(i.update=function(t,r,n,o){t&&(i.from=gt(e,t)),r&&(i.to=gt(e,r)),n&&(i.text=n),void 0!==o&&(i.origin=o)}),Ae(e,"beforeChange",e,i),e.cm&&Ae(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function is(e,t,r){if(e.cm){if(!e.cm.curOp)return Gn(e.cm,is)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(Ie(e,"beforeChange")||e.cm&&Ie(e.cm,"beforeChange"))||(t=rs(e,t,!0))){var i=Dt&&!r&&zt(e,t.from,t.to);if(i)for(var n=i.length-1;n>=0;--n)ns(e,{from:i[n].from,to:i[n].to,text:n?[""]:t.text,origin:t.origin});else ns(e,t)}}function ns(e,t){if(1!=t.text.length||""!=t.text[0]||0!=pt(t.from,t.to)){var r=mo(e,t);_o(e,t,r,e.cm?e.cm.curOp.id:NaN),as(e,t,r,qt(e,t));var i=[];Lo(e,function(e,r){r||-1!=W(i,e.history)||(ds(e.history,t),i.push(e.history)),as(e,t,null,qt(e,t))})}}function os(e,t,r){var i=e.cm&&e.cm.state.suppressEdits;if(!i||r){for(var n,o=e.history,s=e.sel,a="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<a.length&&(n=a[u],r?!n.ranges||n.equals(e.sel):n.ranges);u++);if(u!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(n=a.pop()).ranges){if(i)return void a.push(n);break}if(Do(n,l),r&&!n.equals(e.sel))return void Yo(e,n,{clearRedo:!1});s=n}var c=[];Do(s,l),l.push({changes:c,generation:o.generation}),o.generation=n.generation||++o.maxGeneration;for(var p=Ie(e,"beforeChange")||e.cm&&Ie(e.cm,"beforeChange"),d=function(r){var i=n.changes[r];if(i.origin=t,p&&!rs(e,i,!1))return a.length=0,{};c.push(Ro(e,i));var o=r?mo(e,i):ee(a);as(e,i,o,Uo(e,i)),!r&&e.cm&&e.cm.scrollIntoView({from:i.from,to:fo(i)});var s=[];Lo(e,function(e,t){t||-1!=W(s,e.history)||(ds(e.history,i),s.push(e.history)),as(e,i,null,Uo(e,i))})},h=n.changes.length-1;h>=0;--h){var f=d(h);if(f)return f.v}}}}function ss(e,t){if(0!=t&&(e.first+=t,e.sel=new uo(te(e.sel.ranges,function(e){return new co(ct(e.anchor.line+t,e.anchor.ch),ct(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Vi(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,i=r.viewFrom;i<r.viewTo;i++)Hi(e.cm,i,"gutter")}}function as(e,t,r,i){if(e.cm&&!e.cm.curOp)return Gn(e.cm,as)(e,t,r,i);if(t.to.line<e.first)ss(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var n=t.text.length-1-(e.first-t.from.line);ss(e,n),t={from:ct(e.first,0),to:ct(t.to.line+n,t.to.ch),text:[ee(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ct(o,rt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=it(e,t.from,t.to),r||(r=mo(e,t)),e.cm?ls(e.cm,t,i):Ao(e,t,i),Ko(e,r,K),e.cantEdit&&Jo(e,ct(e.firstLine(),0))&&(e.cantEdit=!1)}}function ls(e,t,r){var i=e.doc,n=e.display,o=t.from,s=t.to,a=!1,l=o.line;e.options.lineWrapping||(l=st(ir(rt(i,o.line))),i.iter(l,s.line+1,function(e){if(e==n.maxLine)return a=!0,!0})),i.sel.contains(t.from,t.to)>-1&&Te(e),Ao(i,t,r,Gi(e)),e.options.lineWrapping||(i.iter(l,o.line+t.text.length,function(e){var t=pr(e);t>n.maxLineLength&&(n.maxLine=e,n.maxLineLength=t,n.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),wt(i,o.line),Fn(e,400);var u=t.text.length-(s.line-o.line)-1;t.full?Vi(e):o.line!=s.line||1!=t.text.length||yo(e.doc,t)?Vi(e,o.line,s.line+1,u):Hi(e,o.line,"text");var c=Ie(e,"changes"),p=Ie(e,"change");if(p||c){var d={from:o,to:s,text:t.text,removed:t.removed,origin:t.origin};p&&wr(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function us(e,t,r,i,n){var o;i||(i=r),pt(i,r)<0&&(r=(o=[i,r])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),is(e,{from:r,to:i,text:t,origin:n})}function cs(e,t,r,i){r<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function ps(e,t,r,i){for(var n=0;n<e.length;++n){var o=e[n],s=!0;if(o.ranges){o.copied||((o=e[n]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)cs(o.ranges[a].anchor,t,r,i),cs(o.ranges[a].head,t,r,i)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(r<u.from.line)u.from=ct(u.from.line+i,u.from.ch),u.to=ct(u.to.line+i,u.to.ch);else if(t<=u.to.line){s=!1;break}}s||(e.splice(0,n+1),n=0)}}}function ds(e,t){var r=t.from.line,i=t.to.line,n=t.text.length-(i-r)-1;ps(e.done,r,i,n),ps(e.undone,r,i,n)}function hs(e,t,r,i){var n=t,o=t;return"number"==typeof t?o=rt(e,mt(e,t)):n=st(t),null==n?null:(i(o,n)&&e.cm&&Hi(e.cm,n,r),o)}function fs(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function Es(e){this.children=e;for(var t=0,r=0,i=0;i<e.length;++i){var n=e[i];t+=n.chunkSize(),r+=n.height,n.parent=this}this.size=t,this.height=r,this.parent=null}co.prototype.from=function(){return Et(this.anchor,this.head)},co.prototype.to=function(){return ft(this.anchor,this.head)},co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},fs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,i=e+t;r<i;++r){var n=this.lines[r];this.height-=n.height,Er(n),wr(n,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,r){for(var i=e+t;e<i;++e)if(r(this.lines[e]))return!0}},Es.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var i=this.children[r],n=i.chunkSize();if(e<n){var o=Math.min(t,n-e),s=i.height;if(i.removeInner(e,o),this.height-=s-i.height,n==o&&(this.children.splice(r--,1),i.parent=null),0==(t-=o))break;e=0}else e-=n}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof fs))){var a=[];this.collapse(a),this.children=[new fs(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var i=0;i<this.children.length;++i){var n=this.children[i],o=n.chunkSize();if(e<=o){if(n.insertInner(e,t,r),n.lines&&n.lines.length>50){for(var s=n.lines.length%25+25,a=s;a<n.lines.length;){var l=new fs(n.lines.slice(a,a+=25));n.height-=l.height,this.children.splice(++i,0,l),l.parent=this}n.lines=n.lines.slice(0,s),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Es(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=W(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var i=new Es(e.children);i.parent=e,e.children=[i,t],e=i}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var i=0;i<this.children.length;++i){var n=this.children[i],o=n.chunkSize();if(e<o){var s=Math.min(t,o-e);if(n.iterN(e,s,r))return!0;if(0==(t-=s))break;e=0}else e-=o}}};var ms=function(e,t,r){if(r)for(var i in r)r.hasOwnProperty(i)&&(this[i]=r[i]);this.doc=e,this.node=t};function gs(e,t,r){cr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&pn(e,r)}function vs(e,t,r,i){var n=new ms(e,r,i),o=e.cm;return o&&n.noHScroll&&(o.display.alignWidgets=!0),hs(e,t,"widget",function(t){var r=t.widgets||(t.widgets=[]);if(null==n.insertAt?r.push(n):r.splice(Math.min(r.length,Math.max(0,n.insertAt)),0,n),n.line=t,o&&!lr(e,t)){var i=cr(t)<e.scrollTop;ot(t,t.height+Yr(n)),i&&pn(o,n.height),o.curOp.forceUpdate=!0}return!0}),o&&wr(o,"lineWidgetAdded",o,n,"number"==typeof t?t:st(t)),n}ms.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,i=st(r);if(null!=i&&t){for(var n=0;n<t.length;++n)t[n]==this&&t.splice(n--,1);t.length||(r.widgets=null);var o=Yr(this);ot(r,Math.max(0,r.height-o)),e&&(kn(e,function(){gs(e,r,-o),Hi(e,i,"widget")}),wr(e,"lineWidgetCleared",e,this,i))}},ms.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,i=this.line;this.height=null;var n=Yr(this)-t;n&&(lr(this.doc,i)||ot(i,i.height+n),r&&kn(r,function(){r.curOp.forceUpdate=!0,gs(r,i,n),wr(r,"lineWidgetChanged",r,e,st(i))}))},Se(ms);var xs=0,Ns=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++xs};function ys(e,t,r,i,n){if(i&&i.shared)return Ls(e,t,r,i,n);if(e.cm&&!e.cm.curOp)return Gn(e.cm,ys)(e,t,r,i,n);var o=new Ns(e,n),s=pt(t,r);if(i&&H(i,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=_("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(rr(e,t.line,t,r,o)||t.line!=r.line&&rr(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Gt()}o.addToHistory&&_o(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,l=t.line,u=e.cm;if(e.iter(l,r.line+1,function(i){u&&o.collapsed&&!u.options.lineWrapping&&ir(i)==u.display.maxLine&&(a=!0),o.collapsed&&l!=t.line&&ot(i,0),Vt(i,new Ut(o,l==t.line?t.ch:null,l==r.line?r.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,r.line+1,function(t){lr(e,t)&&ot(t,0)}),o.clearOnEnter&&xe(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(kt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++xs,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Vi(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)Hi(u,c,"text");o.atomic&&$o(u.doc),wr(u,"markerAdded",u,o)}return o}Ns.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Rn(e),Ie(this,"clear")){var r=this.find();r&&wr(this,"clear",r.from,r.to)}for(var i=null,n=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=Bt(s.markedSpans,this);e&&!this.collapsed?Hi(e,st(s),"text"):e&&(null!=a.to&&(n=st(s)),null!=a.from&&(i=st(s))),s.markedSpans=Ft(s.markedSpans,a),null==a.from&&this.collapsed&&!lr(this.doc,s)&&e&&ot(s,wi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=ir(this.lines[l]),c=pr(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Vi(e,i,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&$o(e.doc)),e&&wr(e,"markerCleared",e,this,i,n),t&&bn(e),this.parent&&this.parent.clear()}},Ns.prototype.find=function(e,t){var r,i;null==e&&"bookmark"==this.type&&(e=1);for(var n=0;n<this.lines.length;++n){var o=this.lines[n],s=Bt(o.markedSpans,this);if(null!=s.from&&(r=ct(t?o:st(o),s.from),-1==e))return r;if(null!=s.to&&(i=ct(t?o:st(o),s.to),1==e))return i}return r&&{from:r,to:i}},Ns.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,i=this.doc.cm;t&&i&&kn(i,function(){var n=t.line,o=st(t.line),s=oi(i,o);if(s&&(fi(s),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!lr(r.doc,n)&&null!=r.height){var a=r.height;r.height=null;var l=Yr(r)-a;l&&ot(n,n.height+l)}wr(i,"markerChanged",i,e)})},Ns.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ns.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Se(Ns);var As=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function Ls(e,t,r,i,n){(i=H(i)).shared=!1;var o=[ys(e,t,r,i,n)],s=o[0],a=i.widgetNode;return Lo(e,function(e){a&&(i.widgetNode=a.cloneNode(!0)),o.push(ys(e,gt(e,t),gt(e,r),i,n));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;s=ee(o)}),new As(o,s)}function Ts(e){return e.findMarks(ct(e.first,0),e.clipPos(ct(e.lastLine())),function(e){return e.parent})}function Is(e,t){for(var r=0;r<t.length;r++){var i=t[r],n=i.find(),o=e.clipPos(n.from),s=e.clipPos(n.to);if(pt(o,s)){var a=ys(e,o,s,i.primary,i.primary.type);i.markers.push(a),a.parent=i}}}function Ss(e){for(var t=function(t){var r=e[t],i=[r.primary.doc];Lo(r.primary.doc,function(e){return i.push(e)});for(var n=0;n<r.markers.length;n++){var o=r.markers[n];-1==W(i,o.doc)&&(o.parent=null,r.markers.splice(n--,1))}},r=0;r<e.length;r++)t(r)}As.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();wr(this,"clear")}},As.prototype.find=function(e,t){return this.primary.find(e,t)},Se(As);var Cs=0,Rs=function(e,t,r,i,n){if(!(this instanceof Rs))return new Rs(e,t,r,i,n);null==r&&(r=0),Es.call(this,[new fs([new hr("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=ct(r,0);this.sel=ho(o),this.history=new Co(null),this.id=++Cs,this.modeOption=t,this.lineSep=i,this.direction="rtl"==n?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ao(this,{from:o,to:o,text:e}),Yo(this,ho(o),K)};Rs.prototype=ne(Es.prototype,{constructor:Rs,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,i=0;i<t.length;++i)r+=t[i].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=nt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Bn(function(e){var t=ct(this.first,0),r=this.first+this.size-1;is(this,{from:t,to:ct(r,rt(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&hn(this.cm,0,0),Yo(this,ho(t),K)}),replaceRange:function(e,t,r,i){us(this,e,t=gt(this,t),r=r?gt(this,r):t,i)},getRange:function(e,t,r){var i=it(this,gt(this,e),gt(this,t));return!1===r?i:""===r?i.join(""):i.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(lt(this,e))return rt(this,e)},getLineNumber:function(e){return st(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=rt(this,e)),ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return gt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Bn(function(e,t,r){qo(this,gt(this,"number"==typeof e?ct(e,t||0):e),null,r)}),setSelection:Bn(function(e,t,r){qo(this,gt(this,e),gt(this,t||e),r)}),extendSelection:Bn(function(e,t,r){Vo(this,gt(this,e),t&&gt(this,t),r)}),extendSelections:Bn(function(e,t){Ho(this,xt(this,e),t)}),extendSelectionsBy:Bn(function(e,t){Ho(this,xt(this,te(this.sel.ranges,e)),t)}),setSelections:Bn(function(e,t,r){if(e.length){for(var i=[],n=0;n<e.length;n++)i[n]=new co(gt(this,e[n].anchor),gt(this,e[n].head||e[n].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Yo(this,po(this.cm,i,t),r)}}),addSelection:Bn(function(e,t,r){var i=this.sel.ranges.slice(0);i.push(new co(gt(this,e),gt(this,t||e))),Yo(this,po(this.cm,i,i.length-1),r)}),getSelection:function(e){for(var t,r=this.sel.ranges,i=0;i<r.length;i++){var n=it(this,r[i].from(),r[i].to());t=t?t.concat(n):n}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,i=0;i<r.length;i++){var n=it(this,r[i].from(),r[i].to());!1!==e&&(n=n.join(e||this.lineSeparator())),t[i]=n}return t},replaceSelection:function(e,t,r){for(var i=[],n=0;n<this.sel.ranges.length;n++)i[n]=e;this.replaceSelections(i,t,r||"+input")},replaceSelections:Bn(function(e,t,r){for(var i=[],n=this.sel,o=0;o<n.ranges.length;o++){var s=n.ranges[o];i[o]={from:s.from(),to:s.to(),text:this.splitLines(e[o]),origin:r}}for(var a=t&&"end"!=t&&vo(this,i,t),l=i.length-1;l>=0;l--)is(this,i[l]);a?zo(this,a):this.cm&&dn(this.cm)}),undo:Bn(function(){os(this,"undo")}),redo:Bn(function(){os(this,"redo")}),undoSelection:Bn(function(){os(this,"undo",!0)}),redoSelection:Bn(function(){os(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var n=0;n<e.undone.length;n++)e.undone[n].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Co(this.history),Lo(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Bo(this.history.done),undone:Bo(this.history.undone)}},setHistory:function(e){var t=this.history=new Co(this.history);t.done=Bo(e.done.slice(0),null,!0),t.undone=Bo(e.undone.slice(0),null,!0)},setGutterMarker:Bn(function(e,t,r){return hs(this,e,"gutter",function(e){var i=e.gutterMarkers||(e.gutterMarkers={});return i[t]=r,!r&&le(i)&&(e.gutterMarkers=null),!0})}),clearGutter:Bn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&hs(t,r,"gutter",function(){return r.gutterMarkers[e]=null,le(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!lt(this,e))return null;if(t=e,!(e=rt(this,e)))return null}else if(null==(t=st(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Bn(function(e,t,r){return hs(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[i]){if(I(r).test(e[i]))return!1;e[i]+=" "+r}else e[i]=r;return!0})}),removeLineClass:Bn(function(e,t,r){return hs(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",n=e[i];if(!n)return!1;if(null==r)e[i]=null;else{var o=n.match(I(r));if(!o)return!1;var s=o.index+o[0].length;e[i]=n.slice(0,o.index)+(o.index&&s!=n.length?" ":"")+n.slice(s)||null}return!0})}),addLineWidget:Bn(function(e,t,r){return vs(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return ys(this,gt(this,e),gt(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ys(this,e=gt(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=rt(this,(e=gt(this,e)).line).markedSpans;if(r)for(var i=0;i<r.length;++i){var n=r[i];(null==n.from||n.from<=e.ch)&&(null==n.to||n.to>=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,r){e=gt(this,e),t=gt(this,t);var i=[],n=e.line;return this.iter(e.line,t.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&n==e.line&&e.ch>=l.to||null==l.from&&n!=e.line||null!=l.from&&n==t.line&&l.from>=t.ch||r&&!r(l.marker)||i.push(l.marker.parent||l.marker)}++n}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var i=0;i<r.length;++i)null!=r[i].from&&e.push(r[i].marker)}),e},posFromIndex:function(e){var t,r=this.first,i=this.lineSeparator().length;return this.iter(function(n){var o=n.text.length+i;if(o>e)return t=e,!0;e-=o,++r}),gt(this,ct(r,t))},indexFromPos:function(e){var t=(e=gt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+r}),t},copy:function(e){var t=new Rs(nt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var i=new Rs(nt(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Is(i,Ts(this)),i},unlinkDoc:function(e){if(e instanceof Ha&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ss(Ts(this));break}if(e.history==this.history){var r=[e.id];Lo(e,function(e){return r.push(e.id)},!0),e.history=new Co(null),e.history.done=Bo(this.history.done,r),e.history.undone=Bo(this.history.undone,r)}},iterLinkedDocs:function(e){Lo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Be(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Bn(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&So(this.cm))})}),Rs.prototype.eachLine=Rs.prototype.iter;var bs=0;function Os(e){var t=this;if(ws(t),!Le(t,e)&&!Kr(t.display,e)){Ce(e),s&&(bs=+new Date);var r=Bi(t,e,!0),i=e.dataTransfer.files;if(r&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var n=i.length,o=Array(n),a=0,l=function(){++a==n&&Gn(t,function(){var e={from:r=gt(t.doc,r),to:r,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};is(t.doc,e),zo(t.doc,ho(gt(t.doc,r),gt(t.doc,fo(e))))})()},u=function(e,r){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))l();else{var i=new FileReader;i.onerror=function(){return l()},i.onload=function(){var e=i.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[r]=e),l()},i.readAsText(e)}},c=0;c<i.length;c++)u(i[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Ko(t.doc,ho(r,r)),d)for(var h=0;h<d.length;++h)us(t.doc,"",d[h].anchor,d[h].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function _s(e,t){if(s&&(!e.state.draggingText||+new Date-bs<100))Oe(t);else if(!Le(e,t)&&!Kr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=O("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),d&&r.parentNode.removeChild(r)}}function Ps(e,t){var r=Bi(e,t);if(r){var i=document.createDocumentFragment();Xi(e,r,i),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),b(e.display.dragCursor,i)}}function ws(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ds(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],i=0;i<t.length;i++){var n=t[i].CodeMirror;n&&r.push(n)}r.length&&r[0].operation(function(){for(var t=0;t<r.length;t++)e(r[t])})}}var Ms=!1;function ks(){Ms||(Gs(),Ms=!0)}function Gs(){var e;xe(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Ds(Us)},100))}),xe(window,"blur",function(){return Ds(rn)})}function Us(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bs={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fs=0;Fs<10;Fs++)Bs[Fs+48]=Bs[Fs+96]=String(Fs);for(var Vs=65;Vs<=90;Vs++)Bs[Vs]=String.fromCharCode(Vs);for(var Hs=1;Hs<=12;Hs++)Bs[Hs+111]=Bs[Hs+63235]="F"+Hs;var js={};function qs(e){var t,r,i,n,o=e.split(/-(?!$)/);e=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))n=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);i=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),n&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ws(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==i){delete e[r];continue}for(var n=te(r.split(" "),qs),o=0;o<n.length;o++){var s=void 0,a=void 0;o==n.length-1?(a=n.join(" "),s=i):(a=n.slice(0,o+1).join(" "),s="...");var l=t[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else t[a]=s}delete e[r]}for(var u in t)e[u]=t[u];return e}function zs(e,t,r,i){var n=(t=$s(t)).call?t.call(e,i):t[e];if(!1===n)return"nothing";if("..."===n)return"multi";if(null!=n&&r(n))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return zs(e,t.fallthrough,r,i);for(var o=0;o<t.fallthrough.length;o++){var s=zs(e,t.fallthrough[o],r,i);if(s)return s}}}function Ys(e){var t="string"==typeof e?e:Bs[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ks(e,t,r){var i=e;return t.altKey&&"Alt"!=i&&(e="Alt-"+e),(L?t.metaKey:t.ctrlKey)&&"Ctrl"!=i&&(e="Ctrl-"+e),(L?t.ctrlKey:t.metaKey)&&"Mod"!=i&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=i&&(e="Shift-"+e),e}function Xs(e,t){if(d&&34==e.keyCode&&e.char)return!1;var r=Bs[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),Ks(r,e,t))}function $s(e){return"string"==typeof e?js[e]:e}function Qs(e,t){for(var r=e.doc.sel.ranges,i=[],n=0;n<r.length;n++){for(var o=t(r[n]);i.length&&pt(o.from,ee(i).to)<=0;){var s=i.pop();if(pt(s.from,o.from)<0){o.from=s.from;break}}i.push(o)}kn(e,function(){for(var t=i.length-1;t>=0;t--)us(e.doc,"",i[t].from,i[t].to,"+delete");dn(e)})}function Zs(e,t,r){var i=pe(e.text,t+r,r);return i<0||i>e.text.length?null:i}function Js(e,t,r){var i=Zs(e,t.ch,r);return null==i?null:new ct(t.line,i,r<0?"after":"before")}function ea(e,t,r,i,n){if(e){"rtl"==t.doc.direction&&(n=-n);var o=ge(r,t.doc.direction);if(o){var s,a=n<0?ee(o):o[0],l=n<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=si(t,r);s=n<0?r.text.length-1:0;var c=ai(t,u,s).top;s=de(function(e){return ai(t,u,e).top==c},n<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Zs(r,s,1))}else s=n<0?a.to:a.from;return new ct(i,s,l)}}return new ct(i,n<0?r.text.length:0,n<0?"before":"after")}function ta(e,t,r,i){var n=ge(t,e.doc.direction);if(!n)return Js(t,r,i);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=Ee(n,r.ch,r.sticky),s=n[o];if("ltr"==e.doc.direction&&s.level%2==0&&(i>0?s.to>r.ch:s.from<r.ch))return Js(t,r,i);var a,l=function(e,r){return Zs(t,e instanceof ct?e.ch:e,r)},u=function(r){return e.options.lineWrapping?(a=a||si(e,t),Ri(e,t,a,r)):{begin:0,end:t.text.length}},c=u("before"==r.sticky?l(r,-1):r.ch);if("rtl"==e.doc.direction||1==s.level){var p=1==s.level==i<0,d=l(r,p?1:-1);if(null!=d&&(p?d<=s.to&&d<=c.end:d>=s.from&&d>=c.begin)){var h=p?"before":"after";return new ct(r.line,d,h)}}var f=function(e,t,i){for(var o=function(e,t){return t?new ct(r.line,l(e,1),"before"):new ct(r.line,e,"after")};e>=0&&e<n.length;e+=t){var s=n[e],a=t>0==(1!=s.level),u=a?i.begin:l(i.end,-1);if(s.from<=u&&u<s.to)return o(u,a);if(u=a?s.from:l(s.to,-1),i.begin<=u&&u<i.end)return o(u,a)}},E=f(o+i,i,c);if(E)return E;var m=i>0?c.end:l(c.begin,-1);return null==m||i>0&&m==t.text.length||!(E=f(i>0?0:n.length-1,i,u(m)))?null:E}js.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},js.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},js.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},js.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},js.default=x?js.macDefault:js.pcDefault;var ra={selectAll:ts,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return Qs(e,function(t){if(t.empty()){var r=rt(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:ct(t.head.line+1,0)}:{from:t.head,to:ct(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qs(e,function(t){return{from:ct(t.from().line,0),to:gt(e.doc,ct(t.to().line+1,0))}})},delLineLeft:function(e){return Qs(e,function(e){return{from:ct(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Qs(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Qs(e,function(t){var r=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ct(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ct(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ia(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return oa(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return na(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},$)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},$)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:r},"div");return i.ch<e.getLine(i.line).search(/\S/)?oa(e,t.head):i},$)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),i=e.options.tabSize,n=0;n<r.length;n++){var o=r[n].from(),s=j(e.getLine(o.line),o.ch,i);t.push(J(i-s%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return kn(e,function(){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)if(t[i].empty()){var n=t[i].head,o=rt(e.doc,n.line).text;if(o)if(n.ch==o.length&&(n=new ct(n.line,n.ch-1)),n.ch>0)n=new ct(n.line,n.ch+1),e.replaceRange(o.charAt(n.ch-1)+o.charAt(n.ch-2),ct(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var s=rt(e.doc,n.line-1).text;s&&(n=new ct(n.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+s.charAt(s.length-1),ct(n.line-1,s.length-1),n,"+transpose"))}r.push(new co(n,n))}e.setSelections(r)})},newlineAndIndent:function(e){return kn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);dn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ia(e,t){var r=rt(e.doc,t),i=ir(r);return i!=r&&(t=st(i)),ea(!0,e,i,t,1)}function na(e,t){var r=rt(e.doc,t),i=nr(r);return i!=r&&(t=st(i)),ea(!0,e,r,t,-1)}function oa(e,t){var r=ia(e,t.line),i=rt(e.doc,r.line),n=ge(i,e.doc.direction);if(!n||0==n[0].level){var o=Math.max(r.ch,i.text.search(/\S/)),s=t.line==r.line&&t.ch<=o&&t.ch;return ct(r.line,s?0:o,r.sticky)}return r}function sa(e,t,r){if("string"==typeof t&&!(t=ra[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),n=t(e)!=Y}finally{e.display.shift=i,e.state.suppressEdits=!1}return n}function aa(e,t,r){for(var i=0;i<e.state.keyMaps.length;i++){var n=zs(t,e.state.keyMaps[i],r,e);if(n)return n}return e.options.extraKeys&&zs(t,e.options.extraKeys,r,e)||zs(t,e.options.keyMap,r,e)}var la=new q;function ua(e,t,r,i){var n=e.state.keySeq;if(n){if(Ys(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:la.set(50,function(){e.state.keySeq==n&&(e.state.keySeq=null,e.display.input.reset())}),ca(e,n+" "+t,r,i))return!0}return ca(e,t,r,i)}function ca(e,t,r,i){var n=aa(e,t,i);return"multi"==n&&(e.state.keySeq=t),"handled"==n&&wr(e,"keyHandled",e,t,r),"handled"!=n&&"multi"!=n||(Ce(r),Zi(e)),!!n}function pa(e,t){var r=Xs(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?ua(e,"Shift-"+r,t,function(t){return sa(e,t,!0)})||ua(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return sa(e,t)}):ua(e,r,t,function(t){return sa(e,t)}))}function da(e,t,r){return ua(e,"'"+r+"'",t,function(t){return sa(e,t,!0)})}var ha=null;function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=w(U(t)),Le(t,e)))){s&&a<11&&27==e.keyCode&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=16==i||e.shiftKey;var n=pa(t,e);d&&(ha=n?i:null,n||88!=i||Ve||!(x?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),r&&!x&&!n&&46==i&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=i||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||Ea(t)}}function Ea(e){var t=e.display.lineDiv;function r(e){18!=e.keyCode&&e.altKey||(C(t,"CodeMirror-crosshair"),ye(document,"keyup",r),ye(document,"mouseover",r))}D(t,"CodeMirror-crosshair"),xe(document,"keyup",r),xe(document,"mouseover",r)}function ma(e){16==e.keyCode&&(this.doc.sel.shift=!1),Le(this,e)}function ga(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Kr(t.display,e)||Le(t,e)||e.ctrlKey&&!e.altKey||x&&e.metaKey)){var r=e.keyCode,i=e.charCode;if(d&&r==ha)return ha=null,void Ce(e);if(!d||e.which&&!(e.which<10)||!pa(t,e)){var n=String.fromCharCode(i??r);"\b"!=n&&(da(t,e,n)||t.display.input.onKeyPress(e))}}}var va,xa,Na=400,ya=function(e,t,r){this.time=e,this.pos=t,this.button=r};function Aa(e,t){var r=+new Date;return xa&&xa.compare(r,e,t)?(va=xa=null,"triple"):va&&va.compare(r,e,t)?(xa=new ya(r,e,t),va=null,"double"):(va=new ya(r,e,t),xa=null,"single")}function La(e){var t=this,r=t.display;if(!(Le(t,e)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=e.shiftKey,Kr(r,e))l||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));else if(!Pa(t,e)){var i=Bi(t,e),n=Pe(e),o=i?Aa(i,n):"single";F(t).focus(),1==n&&t.state.selectingText&&t.state.selectingText(e),i&&Ta(t,n,i,o,e)||(1==n?i?Sa(t,i,o,e):_e(e)==r.scroller&&Ce(e):2==n?(i&&Vo(t.doc,i),setTimeout(function(){return r.input.focus()},20)):3==n&&(T?t.display.input.onContextMenu(e):en(t)))}}function Ta(e,t,r,i,n){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),ua(e,Ks(o=(1==t?"Left":2==t?"Middle":"Right")+o,n),n,function(t){if("string"==typeof t&&(t=ra[t]),!t)return!1;var i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i=t(e,r)!=Y}finally{e.state.suppressEdits=!1}return i})}function Ia(e,t,r){var i=e.getOption("configureMouse"),n=i?i(e,t,r):{};if(null==n.unit){var o=N?r.shiftKey&&r.metaKey:r.altKey;n.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==n.extend||e.doc.extend)&&(n.extend=e.doc.extend||r.shiftKey),null==n.addNew&&(n.addNew=x?r.metaKey:r.ctrlKey),null==n.moveOnDrag&&(n.moveOnDrag=!(x?r.altKey:r.ctrlKey)),n}function Sa(e,t,r,i){s?setTimeout(V(Ji,e),0):e.curOp.focus=w(U(e));var n,o=Ia(e,r,i),a=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==r&&(n=a.contains(t))>-1&&(pt((n=a.ranges[n]).from(),t)<0||t.xRel>0)&&(pt(n.to(),t)>0||t.xRel<0)?Ca(e,i,t,o):ba(e,i,t,o)}function Ca(e,t,r,i){var n=e.display,o=!1,u=Gn(e,function(t){l&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:en(e)),ye(n.wrapper.ownerDocument,"mouseup",u),ye(n.wrapper.ownerDocument,"mousemove",c),ye(n.scroller,"dragstart",p),ye(n.scroller,"drop",u),o||(Ce(t),i.addNew||Vo(e.doc,r,null,null,i.extend),l&&!h||s&&9==a?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};l&&(n.scroller.draggable=!0),e.state.draggingText=u,u.copy=!i.moveOnDrag,xe(n.wrapper.ownerDocument,"mouseup",u),xe(n.wrapper.ownerDocument,"mousemove",c),xe(n.scroller,"dragstart",p),xe(n.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function Ra(e,t,r){if("char"==r)return new co(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new co(ct(t.line,0),gt(e.doc,ct(t.line+1,0)));var i=r(e,t);return new co(i.from,i.to)}function ba(e,t,r,i){s&&en(e);var n=e.display,o=e.doc;Ce(t);var a,l,u=o.sel,c=u.ranges;if(i.addNew&&!i.extend?(l=o.sel.contains(r),a=l>-1?c[l]:new co(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new co(r,r)),r=Bi(e,t,!0,!0),l=-1;else{var p=Ra(e,r,i.unit);a=i.extend?Fo(a,p.anchor,p.head,i.extend):p}i.addNew?-1==l?(l=c.length,Yo(o,po(e,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==i.unit&&!i.extend?(Yo(o,po(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):jo(o,l,a,X):(l=0,Yo(o,new uo([a],0),X),u=o.sel);var d=r;function h(t){if(0!=pt(d,t))if(d=t,"rectangle"==i.unit){for(var n=[],s=e.options.tabSize,c=j(rt(o,r.line).text,r.ch,s),p=j(rt(o,t.line).text,t.ch,s),h=Math.min(c,p),f=Math.max(c,p),E=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));E<=m;E++){var g=rt(o,E).text,v=Q(g,h,s);h==f?n.push(new co(ct(E,v),ct(E,v))):g.length>v&&n.push(new co(ct(E,v),ct(E,Q(g,f,s))))}n.length||n.push(new co(r,r)),Yo(o,po(e,u.ranges.slice(0,l).concat(n),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,N=a,y=Ra(e,t,i.unit),A=N.anchor;pt(y.anchor,A)>0?(x=y.head,A=Et(N.from(),y.anchor)):(x=y.anchor,A=ft(N.to(),y.head));var L=u.ranges.slice(0);L[l]=Oa(e,new co(gt(o,A),x)),Yo(o,po(e,L,l),X)}}var f=n.wrapper.getBoundingClientRect(),E=0;function m(t){var r=++E,s=Bi(e,t,!0,"rectangle"==i.unit);if(s)if(0!=pt(s,d)){e.curOp.focus=w(U(e)),h(s);var a=sn(n,o);(s.line>=a.to||s.line<a.from)&&setTimeout(Gn(e,function(){E==r&&m(t)}),150)}else{var l=t.clientY<f.top?-20:t.clientY>f.bottom?20:0;l&&setTimeout(Gn(e,function(){E==r&&(n.scroller.scrollTop+=l,m(t))}),50)}}function g(t){e.state.selectingText=!1,E=1/0,t&&(Ce(t),n.input.focus()),ye(n.wrapper.ownerDocument,"mousemove",v),ye(n.wrapper.ownerDocument,"mouseup",x),o.history.lastSelOrigin=null}var v=Gn(e,function(e){0!==e.buttons&&Pe(e)?m(e):g(e)}),x=Gn(e,g);e.state.selectingText=x,xe(n.wrapper.ownerDocument,"mousemove",v),xe(n.wrapper.ownerDocument,"mouseup",x)}function Oa(e,t){var r=t.anchor,i=t.head,n=rt(e.doc,r.line);if(0==pt(r,i)&&r.sticky==i.sticky)return t;var o=ge(n);if(!o)return t;var s=Ee(o,r.ch,r.sticky),a=o[s];if(a.from!=r.ch&&a.to!=r.ch)return t;var l,u=s+(a.from==r.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(i.line!=r.line)l=(i.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ee(o,i.ch,i.sticky),p=c-s||(i.ch-r.ch)*(1==a.level?-1:1);l=c==u-1||c==u?p<0:p>0}var d=o[u+(l?-1:0)],h=l==(1==d.level),f=h?d.from:d.to,E=h?"after":"before";return r.ch==f&&r.sticky==E?t:new co(new ct(r.line,f,E),i)}function _a(e,t,r,i){var n,o;if(t.touches)n=t.touches[0].clientX,o=t.touches[0].clientY;else try{n=t.clientX,o=t.clientY}catch(e){return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ce(t);var s=e.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ie(e,r))return be(t);o-=a.top-s.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=s.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=n)return Ae(e,r,e,at(e.doc,o),e.display.gutterSpecs[l].className,t),be(t)}}function Pa(e,t){return _a(e,t,"gutterClick",!0)}function wa(e,t){Kr(e.display,t)||Da(e,t)||Le(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function Da(e,t){return!!Ie(e,"gutterContextMenu")&&_a(e,t,"gutterContextMenu",!1)}function Ma(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mi(e)}ya.prototype.compare=function(e,t,r){return this.time+Na>e&&0==pt(t,this.pos)&&r==this.button};var ka={toString:function(){return"CodeMirror.Init"}},Ga={},Ua={};function Ba(e){var t=e.optionHandlers;function r(r,i,n,o){e.defaults[r]=i,n&&(t[r]=o?function(e,t,r){r!=ka&&n(e,t,r)}:n)}e.defineOption=r,e.Init=ka,r("value","",function(e,t){return e.setValue(t)},!0),r("mode",null,function(e,t){e.doc.modeOption=t,xo(e)},!0),r("indentUnit",2,xo,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(e){No(e),mi(e),Vi(e)},!0),r("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],i=e.doc.first;e.doc.iter(function(e){for(var n=0;;){var o=e.text.indexOf(t,n);if(-1==o)break;n=o+t.length,r.push(ct(i,o))}i++});for(var n=r.length-1;n>=0;n--)us(e.doc,t,r[n],ct(r[n].line,r[n].ch+t.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=ka&&e.refresh()}),r("specialCharPlaceholder",Nr,function(e){return e.refresh()},!0),r("electricChars",!0),r("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),r("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),r("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),r("rtlMoveVisually",!y),r("wholeLineUpdateBefore",!0),r("theme","default",function(e){Ma(e),ro(e)},!0),r("keyMap","default",function(e,t,r){var i=$s(t),n=r!=ka&&$s(r);n&&n.detach&&n.detach(e,i),i.attach&&i.attach(e,n||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Va,!0),r("gutters",[],function(e,t){e.display.gutterSpecs=eo(t,e.options.lineNumbers),ro(e)},!0),r("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ki(e.display)+"px":"0",e.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(e){return Ln(e)},!0),r("scrollbarStyle","native",function(e){Sn(e),Ln(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),r("lineNumbers",!1,function(e,t){e.display.gutterSpecs=eo(e.options.gutters,t),ro(e)},!0),r("firstLineNumber",1,ro,!0),r("lineNumberFormatter",function(e){return e},ro,!0),r("showCursorWhenSelecting",!1,Yi,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(e,t){"nocursor"==t&&(rn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),r("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),r("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),r("dragDrop",!0,Fa),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Yi,!0),r("singleCursorHeightPerLine",!0,Yi,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,No,!0),r("addModeClass",!1,No,!0),r("pollInterval",100),r("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),r("historyEventDelay",1250),r("viewportMargin",10,function(e){return e.refresh()},!0),r("maxHighlightLength",1e4,No,!0),r("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),r("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),r("autofocus",null),r("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),r("phrases",null)}function Fa(e,t,r){if(!t!=!(r&&r!=ka)){var i=e.display.dragFunctions,n=t?xe:ye;n(e.display.scroller,"dragstart",i.start),n(e.display.scroller,"dragenter",i.enter),n(e.display.scroller,"dragover",i.over),n(e.display.scroller,"dragleave",i.leave),n(e.display.scroller,"drop",i.drop)}}function Va(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),dr(e)),Ui(e),Vi(e),mi(e),setTimeout(function(){return Ln(e)},100)}function Ha(e,t){var r=this;if(!(this instanceof Ha))return new Ha(e,t);this.options=t=t?H(t):{},H(Ga,t,!1);var i=t.value;"string"==typeof i?i=new Rs(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var n=new Ha.inputStyles[t.inputStyle](this),o=this.display=new io(e,i,n,t);for(var u in o.wrapper.CodeMirror=this,Ma(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),s&&a<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ja(this),ks(),Rn(this),this.curOp.forceUpdate=!0,To(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&tn(r)},20):rn(this),Ua)Ua.hasOwnProperty(u)&&Ua[u](this,t[u],ka);Jn(this),t.finishInit&&t.finishInit(this);for(var c=0;c<qa.length;++c)qa[c](this);bn(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function ja(e){var t=e.display;xe(t.scroller,"mousedown",Gn(e,La)),xe(t.scroller,"dblclick",s&&a<11?Gn(e,function(t){if(!Le(e,t)){var r=Bi(e,t);if(r&&!Pa(e,t)&&!Kr(e.display,t)){Ce(t);var i=e.findWordAt(r);Vo(e.doc,i.anchor,i.head)}}}):function(t){return Le(e,t)||Ce(t)}),xe(t.scroller,"contextmenu",function(t){return wa(e,t)}),xe(t.input.getField(),"contextmenu",function(r){t.scroller.contains(r.target)||wa(e,r)});var r,i={end:0};function n(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),(i=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var r=t.left-e.left,i=t.top-e.top;return r*r+i*i>400}xe(t.scroller,"touchstart",function(n){if(!Le(e,n)&&!o(n)&&!Pa(e,n)){t.input.ensurePolled(),clearTimeout(r);var s=+new Date;t.activeTouch={start:s,moved:!1,prev:s-i.end<=300?i:null},1==n.touches.length&&(t.activeTouch.left=n.touches[0].pageX,t.activeTouch.top=n.touches[0].pageY)}}),xe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),xe(t.scroller,"touchend",function(r){var i=t.activeTouch;if(i&&!Kr(t,r)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,s=e.coordsChar(t.activeTouch,"page");o=!i.prev||l(i,i.prev)?new co(s,s):!i.prev.prev||l(i,i.prev.prev)?e.findWordAt(s):new co(ct(s.line,0),gt(e.doc,ct(s.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ce(r)}n()}),xe(t.scroller,"touchcancel",n),xe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(gn(e,t.scroller.scrollTop),xn(e,t.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),xe(t.scroller,"mousewheel",function(t){return lo(e,t)}),xe(t.scroller,"DOMMouseScroll",function(t){return lo(e,t)}),xe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){Le(e,t)||Oe(t)},over:function(t){Le(e,t)||(Ps(e,t),Oe(t))},start:function(t){return _s(e,t)},drop:Gn(e,Os),leave:function(t){Le(e,t)||ws(e)}};var u=t.input.getField();xe(u,"keyup",function(t){return ma.call(e,t)}),xe(u,"keydown",Gn(e,fa)),xe(u,"keypress",Gn(e,ga)),xe(u,"focus",function(t){return tn(e,t)}),xe(u,"blur",function(t){return rn(e,t)})}Ha.defaults=Ga,Ha.optionHandlers=Ua;var qa=[];function Wa(e,t,r,i){var n,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?n=Tt(e,t).state:r="prev");var s=e.options.tabSize,a=rt(o,t),l=j(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(i||/\S/.test(a.text)){if("smart"==r&&((u=o.mode.indent(n,a.text.slice(c.length),a.text))==Y||u>150)){if(!i)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?j(rt(o,t-1).text,null,s):0:"add"==r?u=l+e.options.indentUnit:"subtract"==r?u=l-e.options.indentUnit:"number"==typeof r&&(u=l+r),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/s);h;--h)d+=s,p+="\t";if(d<u&&(p+=J(u-d)),p!=c)return us(o,p,ct(t,0),ct(t,c.length),"+input"),a.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var E=o.sel.ranges[f];if(E.head.line==t&&E.head.ch<c.length){var m=ct(t,c.length);jo(o,f,new co(m,m));break}}}Ha.defineInitHook=function(e){return qa.push(e)};var za=null;function Ya(e){za=e}function Ka(e,t,r,i,n){var o=e.doc;e.display.shift=!1,i||(i=o.sel);var s=+new Date-200,a="paste"==n||e.state.pasteIncoming>s,l=Be(t),u=null;if(a&&i.ranges.length>1)if(za&&za.text.join("\n")==t){if(i.ranges.length%za.text.length==0){u=[];for(var c=0;c<za.text.length;c++)u.push(o.splitLines(za.text[c]))}}else l.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(u=te(l,function(e){return[e]}));for(var p=e.curOp.updateInput,d=i.ranges.length-1;d>=0;d--){var h=i.ranges[d],f=h.from(),E=h.to();h.empty()&&(r&&r>0?f=ct(f.line,f.ch-r):e.state.overwrite&&!a?E=ct(E.line,Math.min(rt(o,E.line).text.length,E.ch+ee(l).length)):a&&za&&za.lineWise&&za.text.join("\n")==l.join("\n")&&(f=E=ct(f.line,0)));var m={from:f,to:E,text:u?u[d%u.length]:l,origin:n||(a?"paste":e.state.cutIncoming>s?"cut":"+input")};is(e.doc,m),wr(e,"inputRead",e,m)}t&&!a&&$a(e,t),dn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xa(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||kn(t,function(){return Ka(t,r,0,null,"paste")}),!0}function $a(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,i=r.ranges.length-1;i>=0;i--){var n=r.ranges[i];if(!(n.head.ch>100||i&&r.ranges[i-1].head.line==n.head.line)){var o=e.getModeAt(n.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(t.indexOf(o.electricChars.charAt(a))>-1){s=Wa(e,n.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(rt(e.doc,n.head.line).text.slice(0,n.head.ch))&&(s=Wa(e,n.head.line,"smart"));s&&wr(e,"electricInput",e,n.head.line)}}}function Qa(e){for(var t=[],r=[],i=0;i<e.doc.sel.ranges.length;i++){var n=e.doc.sel.ranges[i].head.line,o={anchor:ct(n,0),head:ct(n+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function Za(e,t,r,i){e.setAttribute("autocorrect",r?"on":"off"),e.setAttribute("autocapitalize",i?"on":"off"),e.setAttribute("spellcheck",!!t)}function Ja(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function el(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){F(this).focus(),this.display.input.focus()},setOption:function(e,r){var i=this.options,n=i[e];i[e]==r&&"mode"!=e||(i[e]=r,t.hasOwnProperty(e)&&Gn(this,t[e])(this,r,n),Ae(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($s(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:Un(function(t,r){var i=t.token?t:e.getMode(this.options,t);if(i.startState)throw new Error("Overlays may not be stateful.");re(this.state.overlays,{mode:i,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},function(e){return e.priority}),this.state.modeGen++,Vi(this)}),removeOverlay:Un(function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var i=t[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return t.splice(r,1),this.state.modeGen++,void Vi(this)}}),indentLine:Un(function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),lt(this.doc,e)&&Wa(this,e,t,r)}),indentSelection:Un(function(e){for(var t=this.doc.sel.ranges,r=-1,i=0;i<t.length;i++){var n=t[i];if(n.empty())n.head.line>r&&(Wa(this,n.head.line,e,!0),r=n.head.line,i==this.doc.sel.primIndex&&dn(this));else{var o=n.from(),s=n.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l<r;++l)Wa(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[i].from().ch>0&&jo(this.doc,i,new co(o,u[i].to()),K)}}}),getTokenAt:function(e,t){return bt(this,e,t)},getLineTokens:function(e,t){return bt(this,ct(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,r=Lt(this,rt(this.doc,e.line)),i=0,n=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var s=i+n>>1;if((s?r[2*s-1]:0)>=o)n=s;else{if(!(r[2*s+1]<o)){t=r[2*s+2];break}i=s+1}}var a=t?t.indexOf("overlay "):-1;return a<0?t:0==a?null:t.slice(0,a-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var i=[];if(!r.hasOwnProperty(t))return i;var n=r[t],o=this.getModeAt(e);if("string"==typeof o[t])n[o[t]]&&i.push(n[o[t]]);else if(o[t])for(var s=0;s<o[t].length;s++){var a=n[o[t][s]];a&&i.push(a)}else o.helperType&&n[o.helperType]?i.push(n[o.helperType]):n[o.name]&&i.push(n[o.name]);for(var l=0;l<n._global.length;l++){var u=n._global[l];u.pred(o,this)&&-1==W(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(e,t){var r=this.doc;return Tt(this,(e=mt(r,e??r.first+r.size-1))+1,t).state},cursorCoords:function(e,t){var r=this.doc.sel.primary();return Li(this,null==e?r.head:"object"==typeof e?gt(this.doc,e):e?r.from():r.to(),t||"page")},charCoords:function(e,t){return Ai(this,gt(this.doc,e),t||"page")},coordsChar:function(e,t){return Si(this,(e=yi(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=yi(this,{top:e,left:0},t||"page").top,at(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var i,n=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,n=!0),i=rt(this.doc,e)}else i=e;return Ni(this,i,{top:0,left:0},t||"page",r||n).top+(n?this.doc.height-cr(i):0)},defaultTextHeight:function(){return wi(this.display)},defaultCharWidth:function(){return Di(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,i,n){var o=this.display,s=(e=Li(this,gt(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)s=e.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(s=e.bottom),a+t.offsetWidth>u&&(a=u-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==n?(a=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==n?a=0:"middle"==n&&(a=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),r&&un(this,{left:a,top:s,right:a+t.offsetWidth,bottom:s+t.offsetHeight})},triggerOnKeyDown:Un(fa),triggerOnKeyPress:Un(ga),triggerOnKeyUp:ma,triggerOnMouseDown:Un(La),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:Un(function(e){$a(this,e)}),findPosH:function(e,t,r,i){var n=1;t<0&&(n=-1,t=-t);for(var o=gt(this.doc,e),s=0;s<t&&!(o=tl(this.doc,o,n,r,i)).hitSide;++s);return o},moveH:Un(function(e,t){var r=this;this.extendSelectionsBy(function(i){return r.display.shift||r.doc.extend||i.empty()?tl(r.doc,i.head,e,t,r.options.rtlMoveVisually):e<0?i.from():i.to()},$)}),deleteH:Un(function(e,t){var r=this.doc.sel,i=this.doc;r.somethingSelected()?i.replaceSelection("",null,"+delete"):Qs(this,function(r){var n=tl(i,r.head,e,t,!1);return e<0?{from:n,to:r.head}:{from:r.head,to:n}})}),findPosV:function(e,t,r,i){var n=1,o=i;t<0&&(n=-1,t=-t);for(var s=gt(this.doc,e),a=0;a<t;++a){var l=Li(this,s,"div");if(null==o?o=l.left:l.left=o,(s=rl(this,l,n,r)).hitSide)break}return s},moveV:Un(function(e,t){var r=this,i=this.doc,n=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(s){if(o)return e<0?s.from():s.to();var a=Li(r,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),n.push(a.left);var l=rl(r,a,e,t);return"page"==t&&s==i.sel.primary()&&pn(r,Ai(r,l,"div").top-a.top),l},$),n.length)for(var s=0;s<i.sel.ranges.length;s++)i.sel.ranges[s].goalColumn=n[s]}),findWordAt:function(e){var t=rt(this.doc,e.line).text,r=e.ch,i=e.ch;if(t){var n=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=t.length||!r?++i:--r;for(var o=t.charAt(r),s=ae(o,n)?function(e){return ae(e,n)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ae(e)};r>0&&s(t.charAt(r-1));)--r;for(;i<t.length&&s(t.charAt(i));)++i}return new co(ct(e.line,r),ct(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==w(U(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Un(function(e,t){hn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Zr(this)-this.display.barHeight,width:e.scrollWidth-Zr(this)-this.display.barWidth,clientHeight:ei(this),clientWidth:Jr(this)}},scrollIntoView:Un(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ct(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?fn(this,e):mn(this,e.from,e.to,e.margin)}),setSize:Un(function(e,t){var r=this,i=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=i(e)),null!=t&&(this.display.wrapper.style.height=i(t)),this.options.lineWrapping&&Ei(this);var n=this.display.viewFrom;this.doc.iter(n,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Hi(r,n,"widget");break}++n}),this.curOp.forceUpdate=!0,Ae(this,"refresh",this)}),operation:function(e){return kn(this,e)},startOperation:function(){return Rn(this)},endOperation:function(){return bn(this)},refresh:Un(function(){var e=this.display.cachedTextHeight;Vi(this),this.curOp.forceUpdate=!0,mi(this),hn(this,this.doc.scrollLeft,this.doc.scrollTop),$n(this.display),(null==e||Math.abs(e-wi(this.display))>.5||this.options.lineWrapping)&&Ui(this),Ae(this,"refresh",this)}),swapDoc:Un(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),To(this,e),mi(this),this.display.input.reset(),hn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,wr(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Se(e),e.registerHelper=function(t,i,n){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][i]=n},e.registerGlobalHelper=function(t,i,n,o){e.registerHelper(t,i,o),r[t]._global.push({pred:n,val:o})}}function tl(e,t,r,i,n){var o=t,s=r,a=rt(e,t.line),l=n&&"rtl"==e.direction?-r:r;function u(){var r=t.line+l;return!(r<e.first||r>=e.first+e.size)&&(t=new ct(r,t.ch,t.sticky),a=rt(e,r))}function c(o){var s;if("codepoint"==i){var c=a.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(c))s=null;else{var p=r>0?c>=55296&&c<56320:c>=56320&&c<57343;s=new ct(t.line,Math.max(0,Math.min(a.text.length,t.ch+r*(p?2:1))),-r)}}else s=n?ta(e.cm,a,t,r):Js(a,t,r);if(null==s){if(o||!u())return!1;t=ea(n,e.cm,a,t.line,l)}else t=s;return!0}if("char"==i||"codepoint"==i)c();else if("column"==i)c(!0);else if("word"==i||"group"==i)for(var p=null,d="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(r<0)||c(!f);f=!1){var E=a.text.charAt(t.ch)||"\n",m=ae(E,h)?"w":d&&"\n"==E?"n":!d||/\s/.test(E)?null:"p";if(!d||f||m||(m="s"),p&&p!=m){r<0&&(r=1,c(),t.sticky="after");break}if(m&&(p=m),r>0&&!c(!f))break}var g=Jo(e,t,o,s,!0);return dt(o,g)&&(g.hitSide=!0),g}function rl(e,t,r,i){var n,o,s=e.doc,a=t.left;if("page"==i){var l=Math.min(e.display.wrapper.clientHeight,F(e).innerHeight||s(e).documentElement.clientHeight),u=Math.max(l-.5*wi(e.display),3);n=(r>0?t.bottom:t.top)+r*u}else"line"==i&&(n=r>0?t.bottom+3:t.top-3);for(;(o=Si(e,a,n)).outside;){if(r<0?n<=0:n>=s.height){o.hitSide=!0;break}n+=5*r}return o}var il=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function nl(e,t){var r=oi(e,t.line);if(!r||r.hidden)return null;var i=rt(e.doc,t.line),n=ri(r,i,t.line),o=ge(i,e.doc.direction),s="left";o&&(s=Ee(o,t.ch)%2?"right":"left");var a=ci(n.map,t.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function ol(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function sl(e,t){return t&&(e.bad=!0),e}function al(e,t,r,i,n){var o="",s=!1,a=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){s&&(o+=a,l&&(o+=a),s=l=!1)}function p(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void p(r);var o,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(ct(i,0),ct(n+1,0),u(+h));return void(f.length&&(o=f[0].find(0))&&p(it(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var E=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;E&&c();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),E&&(s=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=r;)t=t.nextSibling,l=!1;return o}function ll(e,t,r){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[r]))return sl(e.clipPos(ct(e.display.viewTo-1)),!0);t=null,r=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var n=0;n<e.display.view.length;n++){var o=e.display.view[n];if(o.node==i)return ul(o,t,r)}}function ul(e,t,r){var i=e.text.firstChild,n=!1;if(!t||!P(i,t))return sl(ct(st(e.line),0),!0);if(t==i&&(n=!0,t=i.childNodes[r],r=0,!t)){var o=e.rest?ee(e.rest):e.line;return sl(ct(st(o),o.text.length),n)}var s=3==t.nodeType?t:null,a=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,r&&(r=s.nodeValue.length));a.parentNode!=i;)a=a.parentNode;var l=e.measure,u=l.maps;function c(t,r,i){for(var n=-1;n<(u?u.length:0);n++)for(var o=n<0?l.map:u[n],s=0;s<o.length;s+=3){var a=o[s+2];if(a==t||a==r){var c=st(n<0?e.line:e.rest[n]),p=o[s]+i;return(i<0||a!=t)&&(p=o[s+(i?1:0)]),ct(c,p)}}}var p=c(s,a,r);if(p)return sl(p,n);for(var d=a.nextSibling,h=s?s.nodeValue.length-r:0;d;d=d.nextSibling){if(p=c(d,d.firstChild,0))return sl(ct(p.line,p.ch-h),n);h+=d.textContent.length}for(var f=a.previousSibling,E=r;f;f=f.previousSibling){if(p=c(f,f.firstChild,-1))return sl(ct(p.line,p.ch+E),n);E+=f.textContent.length}}il.prototype.init=function(e){var t=this,r=this,i=r.cm,n=r.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function s(e){if(o(e)&&!Le(i,e)){if(i.somethingSelected())Ya({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Qa(i);Ya({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,K),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var s=za.text.join("\n");if(e.clipboardData.setData("Text",s),e.clipboardData.getData("Text")==s)return void e.preventDefault()}var a=Ja(),l=a.firstChild;Za(l),i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=za.text.join("\n");var u=w(B(n));k(l),setTimeout(function(){i.display.lineSpace.removeChild(a),u.focus(),u==n&&r.showPrimarySelection()},50)}}n.contentEditable=!0,Za(n,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),xe(n,"paste",function(e){!o(e)||Le(i,e)||Xa(e,i)||a<=11&&setTimeout(Gn(i,function(){return t.updateFromDOM()}),20)}),xe(n,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),xe(n,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),xe(n,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),xe(n,"touchstart",function(){return r.forceCompositionEnd()}),xe(n,"input",function(){t.composing||t.readFromDOMSoon()}),xe(n,"copy",s),xe(n,"cut",s)},il.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=Ki(this.cm,!1);return e.focus=w(B(this.div))==this.div,e},il.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},il.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},il.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),o=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var s=ll(t,e.anchorNode,e.anchorOffset),a=ll(t,e.focusNode,e.focusOffset);if(!s||s.bad||!a||a.bad||0!=pt(Et(s,a),n)||0!=pt(ft(s,a),o)){var l=t.display.view,u=n.line>=t.display.viewFrom&&nl(t,n)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&nl(t,o);if(!c){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var h,f=e.rangeCount&&e.getRangeAt(0);try{h=S(u.node,u.offset,c.offset,c.node)}catch(e){}h&&(!r&&t.state.focused?(e.collapse(u.node,u.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),f&&null==e.anchorNode?e.addRange(f):r&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},il.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},il.prototype.showMultipleSelections=function(e){b(this.cm.display.cursorDiv,e.cursors),b(this.cm.display.selectionDiv,e.selection)},il.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},il.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return P(this.div,t)},il.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&w(B(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},il.prototype.blur=function(){this.div.blur()},il.prototype.getField=function(){return this.div},il.prototype.supportsTouch=function(){return!0},il.prototype.receivedFocus=function(){var e=this,t=this;function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):kn(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,r)},il.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},il.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&c&&this.cm.display.gutterSpecs.length&&ol(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=ll(t,e.anchorNode,e.anchorOffset),i=ll(t,e.focusNode,e.focusOffset);r&&i&&kn(t,function(){Yo(t.doc,ho(r,i),K),(r.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},il.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,i=this.cm,n=i.display,o=i.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>i.firstLine()&&(s=ct(s.line-1,rt(i.doc,s.line-1).length)),a.ch==rt(i.doc,a.line).text.length&&a.line<i.lastLine()&&(a=ct(a.line+1,0)),s.line<n.viewFrom||a.line>n.viewTo-1)return!1;s.line==n.viewFrom||0==(e=Fi(i,s.line))?(t=st(n.view[0].line),r=n.view[0].node):(t=st(n.view[e].line),r=n.view[e-1].node.nextSibling);var l,u,c=Fi(i,a.line);if(c==n.view.length-1?(l=n.viewTo-1,u=n.lineDiv.lastChild):(l=st(n.view[c+1].line)-1,u=n.view[c+1].node.previousSibling),!r)return!1;for(var p=i.doc.splitLines(al(i,r,u,t,l)),d=it(i.doc,ct(t,0),ct(l,rt(i.doc,l).text.length));p.length>1&&d.length>1;)if(ee(p)==ee(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var h=0,f=0,E=p[0],m=d[0],g=Math.min(E.length,m.length);h<g&&E.charCodeAt(h)==m.charCodeAt(h);)++h;for(var v=ee(p),x=ee(d),N=Math.min(v.length-(1==p.length?h:0),x.length-(1==d.length?h:0));f<N&&v.charCodeAt(v.length-f-1)==x.charCodeAt(x.length-f-1);)++f;if(1==p.length&&1==d.length&&t==s.line)for(;h&&h>s.ch&&v.charCodeAt(v.length-f-1)==x.charCodeAt(x.length-f-1);)h--,f++;p[p.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),p[0]=p[0].slice(h).replace(/\u200b+$/,"");var y=ct(t,h),A=ct(l,d.length?ee(d).length-f:0);return p.length>1||p[0]||pt(y,A)?(us(i.doc,p,y,A,"+input"),!0):void 0},il.prototype.ensurePolled=function(){this.forceCompositionEnd()},il.prototype.reset=function(){this.forceCompositionEnd()},il.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},il.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},il.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||kn(this.cm,function(){return Vi(e.cm)})},il.prototype.setUneditable=function(e){e.contentEditable="false"},il.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Gn(this.cm,Ka)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},il.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},il.prototype.onContextMenu=function(){},il.prototype.resetPosition=function(){},il.prototype.needsContentAttribute=!0;var cl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};function pl(e,t){if((t=t?H(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=w(B(e));t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function i(){e.value=a.getValue()}var n;if(e.form&&(xe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;n=o.submit;try{var s=o.submit=function(){i(),o.submit=n,o.submit(),o.submit=s}}catch(e){}}t.finishInit=function(r){r.save=i,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,i(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=n))}},e.style.display="none";var a=Ha(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a}function dl(e){e.off=ye,e.on=xe,e.wheelEventPixels=ao,e.Doc=Rs,e.splitLines=Be,e.countColumn=j,e.findColumn=Q,e.isWordChar=se,e.Pass=Y,e.signal=Ae,e.Line=hr,e.changeEnd=fo,e.scrollbarModel=In,e.Pos=ct,e.cmpPos=pt,e.modes=qe,e.mimeModes=We,e.resolveMode=Ke,e.getMode=Xe,e.modeExtensions=$e,e.extendMode=Qe,e.copyState=Ze,e.startState=et,e.innerMode=Je,e.commands=ra,e.keyMap=js,e.keyName=Xs,e.isModifierKey=Ys,e.lookupKey=zs,e.normalizeKeyMap=Ws,e.StringStream=tt,e.SharedTextMarker=As,e.TextMarker=Ns,e.LineWidget=ms,e.e_preventDefault=Ce,e.e_stopPropagation=Re,e.e_stop=Oe,e.addClass=D,e.contains=P,e.rmClass=C,e.keyNames=Bs}cl.prototype.init=function(e){var t=this,r=this,i=this.cm;this.createField(e);var n=this.textarea;function o(e){if(!Le(i,e)){if(i.somethingSelected())Ya({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Qa(i);Ya({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,K):(r.prevInput="",n.value=t.text.join("\n"),k(n))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(n.style.width="0px"),xe(n,"input",function(){s&&a>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),xe(n,"paste",function(e){Le(i,e)||Xa(e,i)||(i.state.pasteIncoming=+new Date,r.fastPoll())}),xe(n,"cut",o),xe(n,"copy",o),xe(e.scroller,"paste",function(t){if(!Kr(e,t)&&!Le(i,t)){if(!n.dispatchEvent)return i.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,n.dispatchEvent(o)}}),xe(e.lineSpace,"selectstart",function(t){Kr(e,t)||Ce(t)}),xe(n,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),xe(n,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},cl.prototype.createField=function(e){this.wrapper=Ja(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Za(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},cl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},cl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,i=Ki(e);if(e.options.moveInputWithCursor){var n=Li(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),s=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+s.left-o.left))}return i},cl.prototype.showSelection=function(e){var t=this.cm.display;b(t.cursorDiv,e.cursors),b(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},cl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&k(this.textarea),s&&a>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null));this.resetting=!1}},cl.prototype.getField=function(){return this.textarea},cl.prototype.supportsTouch=function(){return!1},cl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||w(B(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},cl.prototype.blur=function(){this.textarea.blur()},cl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cl.prototype.receivedFocus=function(){this.slowPoll()},cl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},cl.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},cl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(r)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=r.value;if(n==i&&!t.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===n||x&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=n.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(i.length,n.length);l<u&&i.charCodeAt(l)==n.charCodeAt(l);)++l;return kn(t,function(){Ka(t,n.slice(l),i.length-l,null,e.composing?"*compose":null),n.length>1e3||n.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=n,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},cl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cl.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},cl.prototype.onContextMenu=function(e){var t=this,r=t.cm,i=r.display,n=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Bi(r,e),u=i.scroller.scrollTop;if(o&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&Gn(r,Yo)(r.doc,ho(o),K);var c,p=n.style.cssText,h=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",n.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=n.ownerDocument.defaultView.scrollY),i.input.focus(),l&&n.ownerDocument.defaultView.scrollTo(null,c),i.input.reset(),r.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=g,i.selForContextMenu=r.doc.sel,clearTimeout(i.detectingSelectAll),s&&a>=9&&m(),T){Oe(e);var E=function(){ye(window,"mouseup",E),setTimeout(g,20)};xe(window,"mouseup",E)}else setTimeout(g,50)}function m(){if(null!=n.selectionStart){var e=r.somethingSelected(),o="​"+(e?n.value:"");n.value="⇚",n.value=o,t.prevInput=e?"":"​",n.selectionStart=1,n.selectionEnd=o.length,i.selForContextMenu=r.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,n.style.cssText=p,s&&a<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=n.selectionStart)){(!s||s&&a<9)&&m();var e=0,o=function(){i.selForContextMenu==r.doc.sel&&0==n.selectionStart&&n.selectionEnd>0&&"​"==t.prevInput?Gn(r,ts)(r):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},cl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},cl.prototype.setUneditable=function(){},cl.prototype.needsContentAttribute=!1,Ba(Ha),el(Ha);var hl="iter insert remove copy getEditor constructor".split(" ");for(var fl in Rs.prototype)Rs.prototype.hasOwnProperty(fl)&&W(hl,fl)<0&&(Ha.prototype[fl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Rs.prototype[fl]));return Se(Rs),Ha.inputStyles={textarea:cl,contenteditable:il},Ha.defineMode=function(e){Ha.defaults.mode||"null"==e||(Ha.defaults.mode=e),ze.apply(this,arguments)},Ha.defineMIME=Ye,Ha.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ha.defineMIME("text/plain","null"),Ha.defineExtension=function(e,t){Ha.prototype[e]=t},Ha.defineDocExtension=function(e,t){Rs.prototype[e]=t},Ha.fromTextArea=pl,dl(Ha),Ha.version="5.65.20",Ha}()},1779:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}},1850:(e,t,r)=>{var i=r(7589).Global;function n(){return i.sessionStorage}function o(e){return n().getItem(e)}e.exports={name:"sessionStorage",read:o,write:function(e,t){return n().setItem(e,t)},each:function(e){for(var t=n().length-1;t>=0;t--){var r=n().key(t);e(o(r),r)}},remove:function(e){return n().removeItem(e)},clearAll:function(){return n().clear()}}},1907:(e,t,r)=>{var i=r(8696),n=r(6918);e.exports=function e(t,r){function o(e,n,s,a){try{var l=t[e](n),u=l.value;return u instanceof i?r.resolve(u.v).then(function(e){o("next",e,s,a)},function(e){o("throw",e,s,a)}):r.resolve(u).then(function(e){l.value=e,s(l)},function(e){return o("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(n(e.prototype),n(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(e,t,i){function n(){return new r(function(t,r){o(e,i,t,r)})}return s=s?s.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},2020:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}},2078:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(2977),n=r(8214);const o=function(e){return(0,n.A)(e)&&"[object Arguments]"==(0,i.A)(e)};var s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;const u=o(function(){return arguments}())?o:function(e){return(0,n.A)(e)&&a.call(e,"callee")&&!l.call(e,"callee")}},2448:(e,t,r)=>{!function(e){"use strict";e.defineOption("foldGutter",!1,function(t,n,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",u),t.off("changes",p),t.off("viewportChange",d),t.off("fold",h),t.off("unfold",h),t.off("swapDoc",p),t.off("optionChange",c)),n&&(t.state.foldGutter=new r(i(n)),l(t),t.on("gutterClick",u),t.on("changes",p),t.on("viewportChange",d),t.on("fold",h),t.on("unfold",h),t.on("swapDoc",p),t.on("optionChange",c))});var t=e.Pos;function r(e){this.options=e,this.from=this.to=0}function i(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function n(e,r){for(var i=e.findMarks(t(r,0),t(r+1,0)),n=0;n<i.length;++n)if(i[n].__isFold){var o=i[n].find(-1);if(o&&o.line===r)return i[n]}}function o(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function s(e,r,i){var s=e.state.foldGutter.options,l=r-1,u=e.foldOption(s,"minFoldSize"),c=e.foldOption(s,"rangeFinder"),p="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),d="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(r,i,function(r){++l;var i=null,a=r.gutterMarkers;if(a&&(a=a[s.gutter]),n(e,l)){if(p&&a&&p.test(a.className))return;i=o(s.indicatorFolded)}else{var h=t(l,0),f=c&&c(e,h);if(f&&f.to.line-f.from.line>=u){if(d&&a&&d.test(a.className))return;i=o(s.indicatorOpen)}}(i||a)&&e.setGutterMarker(r,s.gutter,i)})}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function l(e){var t=e.getViewport(),r=e.state.foldGutter;r&&(e.operation(function(){s(e,t.from,t.to)}),r.from=t.from,r.to=t.to)}function u(e,r,i){var o=e.state.foldGutter;if(o){var s=o.options;if(i==s.gutter){var a=n(e,r);a?a.clear():e.foldCode(t(r,0),s)}}}function c(e,t){"mode"==t&&p(e)}function p(e){var t=e.state.foldGutter;if(t){var r=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){l(e)},r.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var r=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var r=e.getViewport();t.from==t.to||r.from-t.to>20||t.from-r.to>20?l(e):e.operation(function(){r.from<t.from&&(s(e,r.from,t.from),t.from=r.from),r.to>t.to&&(s(e,t.to,r.to),t.to=r.to)})},r.updateViewportTimeSpan||400)}}function h(e,t){var r=e.state.foldGutter;if(r){var i=t.line;i>=r.from&&i<r.to&&s(e,i,i+1)}}}(r(1719),r(9754))},2700:(e,t,r)=>{"use strict";r.r(t)},2829:e=>{"use strict";e.exports=function(e,t){for(var r={},i=Object.keys(e),n=Array.isArray(t),o=0;o<i.length;o++){var s=i[o],a=e[s];(n?-1!==t.indexOf(s):t(s,a,e))&&(r[s]=a)}return r}},2928:(e,t,r)=>{"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=o.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,n=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return a}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}var l=r(7781),u=r(160),c=r(8723),p=r(2829);function d(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?l(e):encodeURIComponent(e):e}function f(e,t){return t.decode?u(e):e}function E(e){return Array.isArray(e)?e.sort():"object"===n(e)?E(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function m(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){var t=(e=m(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function x(e,t){d((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,i){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=r):i[e]=r};case"bracket":return function(e,r,i){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],r):i[e]=[r]:i[e]=r};case"comma":case"separator":return function(t,r,i){var n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&f(r,e).includes(e.arrayFormatSeparator);r=o?f(r,e):r;var s=n||o?r.split(e.arrayFormatSeparator).map(function(t){return f(t,e)}):null===r?r:f(r,e);i[t]=s};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a,l=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}(e.split("&"));try{for(l.s();!(a=l.n()).done;){var u=a.value;if(""!==u){var p=i(c(t.decode?u.replace(/\+/g," "):u,"="),2),h=p[0],m=p[1];m=void 0===m?null:["comma","separator"].includes(t.arrayFormat)?m:f(m,t),r(f(h,t),m,o)}}}catch(e){l.e(e)}finally{l.f()}for(var g=0,x=Object.keys(o);g<x.length;g++){var N=x[g],y=o[N];if("object"===n(y)&&null!==y)for(var A=0,L=Object.keys(y);A<L.length;A++){var T=L[A];y[T]=v(y[T],t)}else o[N]=v(y,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(function(e,t){var r=o[t];return Boolean(r)&&"object"===n(r)&&!Array.isArray(r)?e[t]=E(r):e[t]=r,e},Object.create(null))}t.extract=g,t.parse=x,t.stringify=function(e,t){if(!e)return"";d((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var r=function(r){return t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r]},i=function(e){switch(e.arrayFormat){case"index":return function(t){return function(r,i){var n=r.length;return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:[].concat(o(r),null===i?[[h(t,e),"[",n,"]"].join("")]:[[h(t,e),"[",h(n,e),"]=",h(i,e)].join("")])}};case"bracket":return function(t){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:[].concat(o(r),null===i?[[h(t,e),"[]"].join("")]:[[h(t,e),"[]=",h(i,e)].join("")])}};case"comma":case"separator":return function(t){return function(r,i){return null==i||0===i.length?r:0===r.length?[[h(t,e),"=",h(i,e)].join("")]:[[r,h(i,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:[].concat(o(r),null===i?[h(t,e)]:[[h(t,e),"=",h(i,e)].join("")])}}}}(t),n={},s=0,a=Object.keys(e);s<a.length;s++){var l=a[s];r(l)||(n[l]=e[l])}var u=Object.keys(n);return!1!==t.sort&&u.sort(t.sort),u.map(function(r){var n=e[r];return void 0===n?"":null===n?h(r,t):Array.isArray(n)?n.reduce(i(r),[]).join("&"):h(r,t)+"="+h(n,t)}).filter(function(e){return e.length>0}).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var r=i(c(e,"#"),2),n=r[0],o=r[1];return Object.assign({url:n.split("?")[0]||"",query:x(g(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:f(o,t)}:{})},t.stringifyUrl=function(e,r){r=Object.assign({encode:!0,strict:!0},r);var i=m(e.url).split("?")[0]||"",n=t.extract(e.url),o=t.parse(n,{sort:!1}),s=Object.assign(o,e.query),a=t.stringify(s,r);a&&(a="?".concat(a));var l=function(e){var t="",r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(l="#".concat(h(e.fragmentIdentifier,r))),"".concat(i).concat(a).concat(l)},t.pick=function(e,r,i){i=Object.assign({parseFragmentIdentifier:!0},i);var n=t.parseUrl(e,i),o=n.url,s=n.query,a=n.fragmentIdentifier;return t.stringifyUrl({url:o,query:p(s,r),fragmentIdentifier:a},i)},t.exclude=function(e,r,i){var n=Array.isArray(r)?function(e){return!r.includes(e)}:function(e,t){return!r(e,t)};return t.pick(e,n,i)}},2965:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(7181),n=r(8272),o=r(8285),s=r(8086),a=i.A?i.A.prototype:void 0,l=a?a.toString:void 0;const u=function e(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,n.A)(t,e)+"";if((0,s.A)(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const c=function(e){return null==e?"":u(e)}},2977:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(7181),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,a=i.A?i.A.toStringTag:void 0;const l=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var i=!0}catch(e){}var n=s.call(e);return i&&(t?e[a]=r:delete e[a]),n};var u=Object.prototype.toString;const c=function(e){return u.call(e)};var p=i.A?i.A.toStringTag:void 0;const d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?l(e):c(e)}},2984:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(t,r,i){for(var n=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++n];if(!1===r(o[l],l,o))break}return t}}()},2990:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3001:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(4603);const n=(0,r(5067).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const s=function(e){if(!(0,i.A)(e))return n(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},3074:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(3653),n=r(7242);const o=function(e,t){return function(r,i){if(null==r)return r;if(!(0,n.A)(r))return e(r,i);for(var o=r.length,s=t?o:-1,a=Object(r);(t?s--:++s<o)&&!1!==i(a[s],s,a););return r}}(i.A)},3111:(e,t,r)=>{"use strict";r.d(t,{wc:()=>a,iQ:()=>c,Mg:()=>l,vy:()=>p});var i=r(9418),n=r(9121),o=r(4758),s=r(5043),a=function(){return(0,o.A)(function e(t){(0,n.A)(this,e),this.namespace=t},[{key:"set",value:function(e,t,r,i){if(s.enabled&&(this.removeExpiredKeys(),e&&void 0!==t)){t.documentElement&&(t=(new XMLSerializer).serializeToString(t.documentElement));try{s.set(e,{namespace:this.namespace,val:t,exp:r,time:(new Date).getTime()/1e3})}catch(e){if(e instanceof Error){var n=e;if(n.quotaExceeded=function(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}(e),!n.quotaExceeded||!i)throw n;i(e)}throw e}}}},{key:"remove",value:function(e){s.enabled&&e&&s.remove(e)}},{key:"removeExpiredKeys",value:function(){var e=this;s.enabled&&s.each(function(t,r){t&&t.exp&&(new Date).getTime()/1e3-t.time>t.exp&&e.remove(r)})}},{key:"removeAll",value:function(){s.enabled}},{key:"removeNamespace",value:function(){var e=this;s.each(function(t,r){t.namespace&&t.namespace===e.namespace&&e.remove(r)})}},{key:"get",value:function(e){if(s.enabled&&e&&(this.removeExpiredKeys(),e)){var t=s.get(e);if(!t)return;return t.val}}}])}();i.A.sanitize;function l(e){if(e&&0==e.trim().indexOf("<svg")){var t=(new DOMParser).parseFromString(e,"text/xml").documentElement;t.setAttribute("aria-hidden","true");var r=document.createElement("div");return r.className="svgImg",r.appendChild(t),r}throw new Error("No svg string given. Cannot draw")}function u(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function c(e){if(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];for(var n=0,o=r;n<o.length;n++){var s=o[n];e.classList?e.classList.add(s):u(e,s)||(e.className+=" "+s)}}}function p(e,t){if(e)if(e.classList)e.classList.remove(t);else if(u(e,t)){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}}},3380:(e,t,r)=>{"use strict";r.r(t)},3382:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(8377),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===n?i.A.Buffer:void 0,a=s?s.allocUnsafe:void 0;const l=function(e,t){if(t)return e.slice();var r=e.length,i=a?a(r):new e.constructor(r);return e.copy(i),i}},3475:(e,t,r)=>{"use strict";r.r(t)},3653:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2984),n=r(6826);const o=function(e,t){return e&&(0,i.A)(e,t,n.A)}},3779:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(5826);const n=function(){this.__data__=new i.A,this.size=0};const o=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const s=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var l=r(6787),u=r(8412);const c=function(e,t){var r=this.__data__;if(r instanceof i.A){var n=r.__data__;if(!l.A||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new u.A(n)}return r.set(e,t),this.size=r.size,this};function p(e){var t=this.__data__=new i.A(e);this.size=t.size}p.prototype.clear=n,p.prototype.delete=o,p.prototype.get=s,p.prototype.has=a,p.prototype.set=c;const d=p},3869:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=/^(?:0|[1-9]\d*)$/;const n=function(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e<t}},4043:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(5186),n=r(6988);const o=function(e){return(0,i.A)(function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&(0,n.A)(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t})}},4182:(e,t,r)=>{"use strict";r.r(t)},4249:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var i=r(2977),n=r(7554),o=r(8214),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(e){return(0,o.A)(e)&&(0,n.A)(e.length)&&!!s[(0,i.A)(e)]};var l=r(9161),u=r(6037),c=u.A&&u.A.isTypedArray;const p=c?(0,l.A)(c):a},4360:(e,t,r)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{A:()=>i})},4479:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});const i=function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i};var n=r(2078),o=r(8285),s=r(6118),a=r(3869),l=r(4249),u=Object.prototype.hasOwnProperty;const c=function(e,t){var r=(0,o.A)(e),c=!r&&(0,n.A)(e),p=!r&&!c&&(0,s.A)(e),d=!r&&!c&&!p&&(0,l.A)(e),h=r||c||p||d,f=h?i(e.length,String):[],E=f.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.A)(m,E))||f.push(m);return f}},4508:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(6422),n=r(5757),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(e){return null==e?[]:(e=Object(e),(0,i.A)(s(e),function(t){return o.call(e,t)}))}:n.A},4560:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(2020),n=r(7181),o=r(2078),s=r(8285),a=n.A?n.A.isConcatSpreadable:void 0;const l=function(e){return(0,s.A)(e)||(0,o.A)(e)||!!(a&&e&&e[a])};const u=function e(t,r,n,o,s){var a=-1,u=t.length;for(n||(n=l),s||(s=[]);++a<u;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,o,s):(0,i.A)(s,c):o||(s[s.length]=c)}return s}},4603:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=Object.prototype;const n=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}},4636:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(t){return null==e?void 0:e[t]}}},4758:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(4360);function n(e){var t=function(e,t){if("object"!=(0,i.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=(0,i.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,i.A)(t)?t:t+""}function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function s(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},4785:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,i){function n(r){e.removeListener(t,o),i(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}E(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&E(e,"error",t,r)}(e,n,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,i){var n,o,s,u;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(n=l(e))>0&&s.length>n&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=c.bind(i);return n.listener=r,i.wrapFn=n,n}function d(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(n):f(n,n.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function E(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function n(o){i.once&&e.removeEventListener(t,n),r(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var u=l.length,c=f(l,u);for(r=0;r<u;++r)i(c[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,i,n,o,s;if(a(t),void 0===(i=this._events))return this;if(void 0===(r=i[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(n=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,n),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4801:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var i=/\s/;const n=function(e){for(var t=e.length;t--&&i.test(e.charAt(t)););return t};var o=/^\s+/;const s=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e};var a=r(6809),l=r(8086),u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt;const h=function(e){if("number"==typeof e)return e;if((0,l.A)(e))return NaN;if((0,a.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var r=c.test(e);return r||p.test(e)?d(e.slice(2),r?2:8):u.test(e)?NaN:+e};var f=1/0;const E=function(e){return e?(e=h(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const m=function(e){var t=E(e),r=t%1;return t==t?r?t-r:t:0}},4858:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const i=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var n=Math.max;const o=function(e,t,r){return t=n(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=n(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=o[s];return u[t]=r(l),i(e,this,u)}}},4889:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var i=r(1671),n=r(8377);const o=(0,i.A)(n.A,"DataView");var s=r(6787);const a=(0,i.A)(n.A,"Promise");const l=(0,i.A)(n.A,"Set");const u=(0,i.A)(n.A,"WeakMap");var c=r(2977),p=r(5549),d="[object Map]",h="[object Promise]",f="[object Set]",E="[object WeakMap]",m="[object DataView]",g=(0,p.A)(o),v=(0,p.A)(s.A),x=(0,p.A)(a),N=(0,p.A)(l),y=(0,p.A)(u),A=c.A;(o&&A(new o(new ArrayBuffer(1)))!=m||s.A&&A(new s.A)!=d||a&&A(a.resolve())!=h||l&&A(new l)!=f||u&&A(new u)!=E)&&(A=function(e){var t=(0,c.A)(e),r="[object Object]"==t?e.constructor:void 0,i=r?(0,p.A)(r):"";if(i)switch(i){case g:return m;case v:return d;case x:return h;case N:return f;case y:return E}return t});const L=A},5043:(e,t,r)=>{var i=r(7459),n=r(5788),o=[r(5503)];e.exports=i.createStore(n,o)},5067:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){return function(r){return e(t(r))}}},5168:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=r(8377).A.Uint8Array},5186:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(1100),n=r(4858),o=r(9430);const s=function(e,t){return(0,o.A)((0,n.A)(e,t,i.A),e+"")}},5217:(e,t,r)=>{var i=r(1115);e.exports=function(e,t,r,n,o){var s=i(e,t,r,n,o);return s.next().then(function(e){return e.done?e.value:s.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},5355:(e,t,r)=>{var i=r(7589).Global;function n(){return i.localStorage}function o(e){return n().getItem(e)}e.exports={name:"localStorage",read:o,write:function(e,t){return n().setItem(e,t)},each:function(e){for(var t=n().length-1;t>=0;t--){var r=n().key(t);e(o(r),r)}},remove:function(e){return n().removeItem(e)},clearAll:function(){return n().clear()}}},5397:(e,t,r)=>{!function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";function i(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var r=this;e.on("cursorActivity",this.activityFunc=function(){r.cursorActivity()})}}e.showHint=function(e,t,r){if(!t)return e.showHint(r);r&&r.async&&(t.async=!0);var i={hint:t};if(r)for(var n in r)i[n]=r[n];return e.showHint(i)},e.defineExtension("showHint",function(t){t=s(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var n=0;n<r.length;n++)if(r[n].head.line!=r[n].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new i(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function s(e,t,r){var i=e.options.hintOptions,n={};for(var o in f)n[o]=f[o];if(i)for(var o in i)void 0!==i[o]&&(n[o]=i[o]);if(r)for(var o in r)void 0!==r[o]&&(n[o]=r[o]);return n.hint.resolve&&(n.hint=n.hint.resolve(e,t)),n}function a(e){return"string"==typeof e?e:e.text}function l(e,t){var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(r["Ctrl-P"]=function(){t.moveFocus(-1)},r["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,n=i?{}:r;function o(e,i){var o;o="string"!=typeof i?function(e){return i(e,t)}:r.hasOwnProperty(i)?r[i]:i,n[e]=o}if(i)for(var s in i)i.hasOwnProperty(s)&&o(s,i[s]);var a=e.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&o(s,a[s]);return n}function u(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function c(i,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=i,this.data=n,this.picked=!1;var o=this,s=i.cm,c=s.getInputField().ownerDocument,p=c.defaultView||c.parentWindow,d=this.hints=c.createElement("ul");d.setAttribute("role","listbox"),d.setAttribute("aria-expanded","true"),d.id=this.id;var h=i.cm.options.theme;d.className="CodeMirror-hints "+h,this.selectedHint=n.selectedHint||0;for(var f=n.list,E=0;E<f.length;++E){var m=d.appendChild(c.createElement("li")),g=f[E],v=t+(E!=this.selectedHint?"":" "+r);null!=g.className&&(v=g.className+" "+v),m.className=v,E==this.selectedHint&&m.setAttribute("aria-selected","true"),m.id=this.id+"-"+E,m.setAttribute("role","option"),g.render?g.render(m,n,g):m.appendChild(c.createTextNode(g.displayText||a(g))),m.hintId=E}var x=i.options.container||c.body,N=s.cursorCoords(i.options.alignWithWord?n.from:null),y=N.left,A=N.bottom,L=!0,T=0,I=0;if(x!==c.body){var S=-1!==["absolute","relative","fixed"].indexOf(p.getComputedStyle(x).position)?x:x.offsetParent,C=S.getBoundingClientRect(),R=c.body.getBoundingClientRect();T=C.left-R.left-S.scrollLeft,I=C.top-R.top-S.scrollTop}d.style.left=y-T+"px",d.style.top=A-I+"px";var b=p.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),O=p.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);x.appendChild(d),s.getInputField().setAttribute("aria-autocomplete","list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var _,P=i.options.moveOnOverlap?d.getBoundingClientRect():new DOMRect,w=!!i.options.paddingForScrollbar&&d.scrollHeight>d.clientHeight+1;if(setTimeout(function(){_=s.getScrollInfo()}),P.bottom-O>0){var D=P.bottom-P.top,M=P.top-(N.bottom-N.top)-2;O-P.top<M?(D>M&&(d.style.height=(D=M)+"px"),d.style.top=(A=N.top-D)-I+"px",L=!1):d.style.height=O-P.top-2+"px"}var k,G=P.right-b;if(w&&(G+=s.display.nativeBarWidth),G>0&&(P.right-P.left>b&&(d.style.width=b-5+"px",G-=P.right-P.left-b),d.style.left=(y=Math.max(N.left-G-T,0))+"px"),w)for(var U=d.firstChild;U;U=U.nextSibling)U.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=l(i,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:f.length,close:function(){i.close()},pick:function(){o.pick()},data:n})),i.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){k=setTimeout(function(){i.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(k)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();_||(_=s.getScrollInfo());var r=A+_.top-e.top,n=r-(p.pageYOffset||(c.documentElement||c.body).scrollTop);if(L||(n+=d.offsetHeight),n<=t.top||n>=t.bottom)return i.close();d.style.top=r+"px",d.style.left=y+_.left-e.left+"px"}),e.on(d,"dblclick",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(d,"click",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),i.options.completeOnSingleClick&&o.pick())}),e.on(d,"mousedown",function(){setTimeout(function(){s.focus()},20)});var B=this.getSelectedHintRange();return 0===B.from&&0===B.to||this.scrollToActive(),e.signal(n,"select",f[this.selectedHint],d.childNodes[this.selectedHint]),!0}function p(e,t){if(!e.somethingSelected())return t;for(var r=[],i=0;i<t.length;i++)t[i].supportsSelection&&r.push(t[i]);return r}function d(e,t,r,i){if(e.async)e(t,i,r);else{var n=e(t,r);n&&n.then?n.then(i):i(n)}}function h(t,r){var i,n=t.getHelpers(r,"hint");if(n.length){var o=function(e,t,r){var i=p(e,n);function o(n){if(n==i.length)return t(null);d(i[n],e,r,function(e){e&&e.list.length>0?t(e):o(n+1)})}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,r){return e.hint.anyword(t,r)}:function(){}}i.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var i=t.list[r],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(a(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var i=this;this.debounce=n(function(){i.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,r=++this.tick;d(this.options.hint,this.cm,this.options,function(i){t.tick==r&&t.finishUpdate(i,e)})}},finishUpdate:function(t,r){this.data&&e.signal(this.data,"update");var i=this.widget&&this.widget.picked||r&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&1==t.list.length?this.pick(t,0):(this.widget=new c(this,t),e.signal(t,"shown")))}},c.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,i){if(t>=this.data.list.length?t=i?this.data.list.length-1:0:t<0&&(t=i?0:this.data.list.length-1),this.selectedHint!=t){var n=this.hints.childNodes[this.selectedHint];n&&(n.className=n.className.replace(" "+r,""),n.removeAttribute("aria-selected")),(n=this.hints.childNodes[this.selectedHint=t]).className+=" "+r,n.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",n.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],n)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],r=this.hints.childNodes[e.to],i=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-i.offsetTop:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+i.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:h}),e.registerHelper("hint","fromList",function(t,r){var i,n=t.getCursor(),o=t.getTokenAt(n),s=e.Pos(n.line,o.start),a=n;o.start<n.ch&&/\w/.test(o.string.charAt(n.ch-o.start-1))?i=o.string.substr(0,n.ch-o.start):(i="",s=n);for(var l=[],u=0;u<r.words.length;u++){var c=r.words[u];c.slice(0,i.length)==i&&l.push(c)}if(l.length)return{list:l,from:s,to:a}}),e.commands.autocomplete=e.showHint;var f={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(r(1719))},5406:e=>{e.exports={table:{"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],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:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},keywords:/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|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|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,punct:/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,startSymbol:"sparql11",acceptEmpty:!0}},5503:(e,t,r)=>{e.exports=function(){return r(815),{}}},5549:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=Function.prototype.toString;const n=function(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5757:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(){return[]}},5788:(e,t,r)=>{e.exports=[r(5355),r(8199),r(7837),r(732),r(1850),r(8883)]},5826:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});const i=function(){this.__data__=[],this.size=0};var n=r(7348);const o=function(e,t){for(var r=e.length;r--;)if((0,n.A)(e[r][0],t))return r;return-1};var s=Array.prototype.splice;const a=function(e){var t=this.__data__,r=o(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)};const l=function(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]};const u=function(e){return o(this.__data__,e)>-1};const c=function(e,t){var r=this.__data__,i=o(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this};function p(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}p.prototype.clear=i,p.prototype.delete=a,p.prototype.get=l,p.prototype.has=u,p.prototype.set=c;const d=p},5955:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var i=r(3779),n=r(1408);const o=function(e,t,r,o){var s=r.length,a=s,l=!o;if(null==e)return!a;for(e=Object(e);s--;){var u=r[s];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<a;){var c=(u=r[s])[0],p=e[c],d=u[1];if(l&&u[2]){if(void 0===p&&!(c in e))return!1}else{var h=new i.A;if(o)var f=o(p,d,c,e,t,h);if(!(void 0===f?(0,n.A)(d,p,3,o,h):f))return!1}}return!0};var s=r(6809);const a=function(e){return e==e&&!(0,s.A)(e)};var l=r(6826);const u=function(e){for(var t=(0,l.A)(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,a(n)]}return t};const c=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};const p=function(e){var t=u(e);return 1==t.length&&t[0][2]?c(t[0][0],t[0][1]):function(r){return r===e||o(r,e,t)}};var d=r(6074);const h=function(e,t,r){var i=null==e?void 0:(0,d.A)(e,t);return void 0===i?r:i};var f=r(6928),E=r(9758),m=r(761);const g=function(e,t){return(0,E.A)(e)&&a(t)?c((0,m.A)(e),t):function(r){var i=h(r,e);return void 0===i&&i===t?(0,f.A)(r,e):(0,n.A)(t,i,3)}};var v=r(1100),x=r(8285);const N=function(e){return function(t){return null==t?void 0:t[e]}};const y=function(e){return function(t){return(0,d.A)(t,e)}};const A=function(e){return(0,E.A)(e)?N((0,m.A)(e)):y(e)};const L=function(e){return"function"==typeof e?e:null==e?v.A:"object"==typeof e?(0,x.A)(e)?g(e[0],e[1]):p(e):A(e)}},6037:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(7476),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===n&&i.A.process;const a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}()},6074:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(8563),n=r(761);const o=function(e,t){for(var r=0,o=(t=(0,i.A)(t,e)).length;null!=e&&r<o;)e=e[(0,n.A)(t[r++])];return r&&r==o?e:void 0}},6118:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(8377);const n=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?i.A.Buffer:void 0;const l=(a?a.isBuffer:void 0)||n},6422:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){for(var r=-1,i=null==e?0:e.length,n=0,o=[];++r<i;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}},6531:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(7903),n=r(8292);const o=function(e,t,r,o){var s=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var u=t[a],c=o?o(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),s?(0,n.A)(r,u,c):(0,i.A)(r,u,c)}return r}},6583:(e,t,r)=>{!function(e){"use strict";function t(e,t,r,i){this.cm=e,this.options=i;var n={listenForChanges:!1};for(var o in i)n[o]=i[o];n.className||(n.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(n),this.query=t,this.caseFold=r,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var s=this;e.on("change",this.changeHandler=function(e,t){s.onChange(t)})}e.defineExtension("showMatchesOnScrollbar",function(e,r,i){return"string"==typeof i&&(i={className:i}),i||(i={}),new t(this,e,r,i)});var r=1e3;function i(e,t,r){return e<=t?e:Math.max(t,e+r)}t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length&&!((o=this.matches[t]).from.line>=this.gap.to);t++)o.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var i=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),n=this.options&&this.options.maxMatches||r;i.findNext();){var o;if((o={from:i.from(),to:i.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,o),this.matches.length>n)break}this.gap=null}},t.prototype.onChange=function(t){var r=t.from.line,n=e.changeEnd(t).line,o=n-t.to.line;if(this.gap?(this.gap.from=Math.min(i(this.gap.from,r,o),t.from.line),this.gap.to=Math.max(i(this.gap.to,r,o),t.from.line)):this.gap={from:t.from.line,to:n+1},o)for(var s=0;s<this.matches.length;s++){var a=this.matches[s],l=i(a.from.line,r,o);l!=a.from.line&&(a.from=e.Pos(l,a.from.ch));var u=i(a.to.line,r,o);u!=a.to.line&&(a.to=e.Pos(u,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout(function(){c.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(r(1719),r(8023),r(9298))},6691:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const i=(0,r(4636).A)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var n=r(2965),o=/[&<>"']/g,s=RegExp(o.source);const a=function(e){return(e=(0,n.A)(e))&&s.test(e)?e.replace(o,i):e}},6787:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(1671),n=r(8377);const o=(0,i.A)(n.A,"Map")},6809:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6824:(e,t,r)=>{"use strict";r.r(t)},6826:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(4479),n=r(3001),o=r(7242);const s=function(e){return(0,o.A)(e)?(0,i.A)(e):(0,n.A)(e)}},6886:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(9091),n=r(4508),o=r(6826);const s=function(e){return(0,i.A)(e,o.A,n.A)}},6918:e=>{function t(r,i,n,o){var s=Object.defineProperty;try{s({},"",{})}catch(r){s=0}e.exports=t=function(e,r,i,n){function o(r,i){t(e,r,function(e){return this._invoke(r,i,e)})}r?s?s(e,r,{value:i,enumerable:!n,configurable:!n,writable:!n}):e[r]=i:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,i,n,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6928:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});const i=function(e,t){return null!=e&&t in Object(e)};var n=r(8563),o=r(2078),s=r(8285),a=r(3869),l=r(7554),u=r(761);const c=function(e,t,r){for(var i=-1,c=(t=(0,n.A)(t,e)).length,p=!1;++i<c;){var d=(0,u.A)(t[i]);if(!(p=null!=e&&r(e,d)))break;e=e[d]}return p||++i!=c?p:!!(c=null==e?0:e.length)&&(0,l.A)(c)&&(0,a.A)(d,c)&&((0,s.A)(e)||(0,o.A)(e))};const p=function(e,t){return null!=e&&c(e,t,i)}},6962:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(4479),n=r(6809),o=r(4603);const s=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var a=Object.prototype.hasOwnProperty;const l=function(e){if(!(0,n.A)(e))return s(e);var t=(0,o.A)(e),r=[];for(var i in e)("constructor"!=i||!t&&a.call(e,i))&&r.push(i);return r};var u=r(7242);const c=function(e){return(0,u.A)(e)?(0,i.A)(e,!0):l(e)}},6988:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(7348),n=r(7242),o=r(3869),s=r(6809);const a=function(e,t,r){if(!(0,s.A)(r))return!1;var a=typeof t;return!!("number"==a?(0,n.A)(r)&&(0,o.A)(t,r.length):"string"==a&&t in r)&&(0,i.A)(r[t],e)}},7167:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(1671);const n=function(){try{var e=(0,i.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},7181:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=r(8377).A.Symbol},7204:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var i=r(3779),n=r(8292),o=r(7348);const s=function(e,t,r){(void 0!==r&&!(0,o.A)(e[t],r)||void 0===r&&!(t in e))&&(0,n.A)(e,t,r)};var a=r(2984),l=r(3382),u=r(9741),c=r(1779),p=r(9557),d=r(2078),h=r(8285),f=r(7242),E=r(8214);const m=function(e){return(0,E.A)(e)&&(0,f.A)(e)};var g=r(6118),v=r(9790),x=r(6809),N=r(2977),y=r(7827),A=Function.prototype,L=Object.prototype,T=A.toString,I=L.hasOwnProperty,S=T.call(Object);const C=function(e){if(!(0,E.A)(e)||"[object Object]"!=(0,N.A)(e))return!1;var t=(0,y.A)(e);if(null===t)return!0;var r=I.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&T.call(r)==S};var R=r(4249);const b=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var O=r(6531),_=r(6962);const P=function(e){return(0,O.A)(e,(0,_.A)(e))};const w=function(e,t,r,i,n,o,a){var f=b(e,r),E=b(t,r),N=a.get(E);if(N)s(e,r,N);else{var y=o?o(f,E,r+"",e,t,a):void 0,A=void 0===y;if(A){var L=(0,h.A)(E),T=!L&&(0,g.A)(E),I=!L&&!T&&(0,R.A)(E);y=E,L||T||I?(0,h.A)(f)?y=f:m(f)?y=(0,c.A)(f):T?(A=!1,y=(0,l.A)(E,!0)):I?(A=!1,y=(0,u.A)(E,!0)):y=[]:C(E)||(0,d.A)(E)?(y=f,(0,d.A)(f)?y=P(f):(0,x.A)(f)&&!(0,v.A)(f)||(y=(0,p.A)(E))):A=!1}A&&(a.set(E,y),n(y,E,i,o,a),a.delete(E)),s(e,r,y)}};const D=function e(t,r,n,o,l){t!==r&&(0,a.A)(r,function(a,u){if(l||(l=new i.A),(0,x.A)(a))w(t,r,u,n,e,o,l);else{var c=o?o(b(t,u),a,u+"",t,r,l):void 0;void 0===c&&(c=a),s(t,u,c)}},_.A)}},7242:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(9790),n=r(7554);const o=function(e){return null!=e&&(0,n.A)(e.length)&&!(0,i.A)(e)}},7348:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){return e===t||e!=e&&t!=t}},7440:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(7204);const n=(0,r(4043).A)(function(e,t,r){(0,i.A)(e,t,r)})},7459:(e,t,r)=>{var i=r(7589),n=i.slice,o=i.pluck,s=i.each,a=i.bind,l=i.create,u=i.isList,c=i.isFunction,p=i.isObject;e.exports={createStore:h};var d={version:"2.0.12",enabled:!1,get:function(e,t){var r=this.storage.read(this._namespacePrefix+e);return this._deserialize(r,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(r,i){e.call(t,t._deserialize(r),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return h(this.storage,this.plugins,e)}};function h(e,t,r){r||(r=""),e&&!u(e)&&(e=[e]),t&&!u(t)&&(t=[t]);var i=r?"__storejs_"+r+"_":"",h=r?new RegExp("^"+i):null;if(!/^[a-zA-Z0-9_\-]*$/.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var f={_namespacePrefix:i,_namespaceRegexp:h,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var r=e.read(t)===t;return e.remove(t),r}catch(e){return!1}},_assignPluginFnProp:function(e,t){var r=this[t];this[t]=function(){var t=n(arguments,0),i=this;var o=[function(){if(r)return s(arguments,function(e,r){t[r]=e}),r.apply(i,t)}].concat(t);return e.apply(i,o)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var r="";try{r=JSON.parse(e)}catch(t){r=e}return void 0!==r?r:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(u(e))s(e,function(e){t._addPlugin(e)});else if(!o(this.plugins,function(t){return e===t})){if(this.plugins.push(e),!c(e))throw new Error("Plugins must be function values that return objects");var r=e.call(this);if(!p(r))throw new Error("Plugins must return an object of function properties");s(r,function(r,i){if(!c(r))throw new Error("Bad plugin property: "+i+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(r,i)})}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;e&&(e.warn?e.warn:e.log).apply(e,arguments)}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},E=l(f,d,{plugins:[]});return E.raw={},s(E,function(e,t){c(e)&&(E.raw[t]=a(E,e))}),s(e,function(e){E._addStorage(e)}),s(t,function(e){E._addPlugin(e)}),E}},7476:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},7554:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7589:(e,t,r)=>{var i=Object.assign?Object.assign:function(e,t,r,i){for(var n=1;n<arguments.length;n++)l(Object(arguments[n]),function(t,r){e[r]=t});return e},n=function(){if(Object.create)return function(e,t,r,n){var o=a(arguments,1);return i.apply(this,[Object.create(e)].concat(o))};{function e(){}return function(t,r,n,o){var s=a(arguments,1);return e.prototype=t,i.apply(this,[new e].concat(s))}}}(),o=String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},s="undefined"!=typeof window?window:r.g;function a(e,t){return Array.prototype.slice.call(e,t||0)}function l(e,t){u(e,function(e,r){return t(e,r),!1})}function u(e,t){if(c(e)){for(var r=0;r<e.length;r++)if(t(e[r],r))return e[r]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function c(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}e.exports={assign:i,create:n,trim:o,bind:function(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}},slice:a,each:l,map:function(e,t){var r=c(e)?[]:{};return u(e,function(e,i){return r[i]=t(e,i),!1}),r},pluck:u,isList:c,isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},isObject:function(e){return e&&"[object Object]"==={}.toString.call(e)},Global:s}},7623:(e,t,r)=>{!function(e){"use strict";var t=e.Pos;function r(e,t){return e.line-t.line||e.ch-t.ch}var i="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n=new RegExp("<(/?)(["+i+"]["+i+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,r,i){this.line=t,this.ch=r,this.cm=e,this.text=e.getLine(t),this.min=i?Math.max(i.from,e.firstLine()):e.firstLine(),this.max=i?Math.min(i.to-1,e.lastLine()):e.lastLine()}function s(e,r){var i=e.cm.getTokenTypeAt(t(e.line,r));return i&&/\btag\b/.test(i)}function a(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function l(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function u(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(a(e))continue;return}if(s(e,t+1)){var r=e.text.lastIndexOf("/",t),i=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(s(e,t+1)){n.lastIndex=t,e.ch=t;var r=n.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function p(e){for(;;){n.lastIndex=e.ch;var t=n.exec(e.text);if(!t){if(a(e))continue;return}if(s(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(s(e,t+1)){var r=e.text.lastIndexOf("/",t),i=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}function h(e,r){for(var i=[];;){var n,o=p(e),s=e.line,a=e.ch-(o?o[0].length:0);if(!o||!(n=u(e)))return;if("selfClose"!=n)if(o[1]){for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!r||r==o[2]))return{tag:o[2],from:t(s,a),to:t(e.line,e.ch)}}else i.push(o[2])}}function f(e,r){for(var i=[];;){var n=d(e);if(!n)return;if("selfClose"!=n){var o=e.line,s=e.ch,a=c(e);if(!a)return;if(a[1])i.push(a[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==a[2]){i.length=l;break}if(l<0&&(!r||r==a[2]))return{tag:a[2],from:t(e.line,e.ch),to:t(o,s)}}}else c(e)}}e.registerHelper("fold","xml",function(e,i){for(var n=new o(e,i.line,0);;){var s=p(n);if(!s||n.line!=i.line)return;var a=u(n);if(!a)return;if(!s[1]&&"selfClose"!=a){var l=t(n.line,n.ch),c=h(n,s[2]);return c&&r(c.from,l)>0?{from:l,to:c.from}:null}}}),e.findMatchingTag=function(e,i,n){var s=new o(e,i.line,i.ch,n);if(-1!=s.text.indexOf(">")||-1!=s.text.indexOf("<")){var a=u(s),l=a&&t(s.line,s.ch),p=a&&c(s);if(a&&p&&!(r(s,i)>0)){var d={from:t(s.line,s.ch),to:l,tag:p[2]};return"selfClose"==a?{open:d,close:null,at:"open"}:p[1]?{open:f(s,p[2]),close:d,at:"close"}:{open:d,close:h(s=new o(e,l.line,l.ch,n),p[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,r,i){for(var n=new o(e,t.line,t.ch,r);;){var s=f(n,i);if(!s)break;var a=h(new o(e,t.line,t.ch,r),s.tag);if(a)return{open:s,close:a}}},e.scanForClosingTag=function(e,t,r,i){return h(new o(e,t.line,t.ch,i?{from:0,to:i}:null),r)}}(r(1719))},7735:(e,t,r)=>{var i=r(2990).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(i(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},7781:e=>{"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},7827:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=(0,r(5067).A)(Object.getPrototypeOf,Object)},7837:(e,t,r)=>{var i=r(7589).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(a)return;var r=u(e);s(function(e){e.setAttribute(r,t),e.save(n)})},read:function(e){if(a)return;var t=u(e),r=null;return s(function(e){r=e.getAttribute(t)}),r},each:function(e){s(function(t){for(var r=t.XMLDocument.documentElement.attributes,i=r.length-1;i>=0;i--){var n=r[i];e(t.getAttribute(n.name),n.name)}})},remove:function(e){var t=u(e);s(function(e){e.removeAttribute(t),e.save(n)})},clearAll:function(){s(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(n);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(n)})}};var n="storejs",o=i.document,s=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var e,t,r,i="script";try{(t=new ActiveXObject("htmlfile")).open(),t.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),t.close(),e=t.w.frames[0].document,r=e.createElement("div")}catch(t){r=o.createElement("div"),e=o.body}return function(t){var i=[].slice.call(arguments,0);i.unshift(r),e.appendChild(r),r.addBehavior("#default#userData"),r.load(n),t.apply(this,i),e.removeChild(r)}}(),a=(i.navigator?i.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(e){return e.replace(/^\d/,"___$&").replace(l,"___")}},7899:(e,t,r)=>{!function(e){"use strict";e.runMode=function(t,r,i,n){var o=e.getMode(e.defaults,r),s=n&&n.tabSize||e.defaults.tabSize;if(i.appendChild){var a=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<9),l=i,u=0;l.textContent="",i=function(e,t){if("\n"==e)return l.appendChild(document.createTextNode(a?"\r":e)),void(u=0);for(var r="",i=0;;){var n=e.indexOf("\t",i);if(-1==n){r+=e.slice(i),u+=e.length-i;break}u+=n-i,r+=e.slice(i,n);var o=s-u%s;u+=o;for(var c=0;c<o;++c)r+=" ";i=n+1}if(t){var p=l.appendChild(document.createElement("span"));p.className="cm-"+t.replace(/ +/g," cm-"),p.appendChild(document.createTextNode(r))}else l.appendChild(document.createTextNode(r))}}for(var c=e.splitLines(t),p=n&&n.state||e.startState(o),d=0,h=c.length;d<h;++d){d&&i("\n");var f=new e.StringStream(c[d],null,{lookAhead:function(e){return c[d+e]},baseToken:function(){}});for(!f.string&&o.blankLine&&o.blankLine(p);!f.eol();){var E=o.token(f,p);i(f.current(),E,d,f.start,p,o),f.start=f.pos}}}}(r(1719))},7903:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(8292),n=r(7348),o=Object.prototype.hasOwnProperty;const s=function(e,t,r){var s=e[t];o.call(e,t)&&(0,n.A)(s,r)&&(void 0!==r||t in e)||(0,i.A)(e,t,r)}},8023:(e,t,r)=>{!function(e){"use strict";var t,r,i=e.Pos;function n(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var r=n(e),i=r,o=0;o<t.length;o++)-1==i.indexOf(t.charAt(o))&&(i+=t.charAt(o));return r==i?e:new RegExp(e.source,i)}function s(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,r){t=o(t,"g");for(var n=r.line,s=r.ch,a=e.lastLine();n<=a;n++,s=0){t.lastIndex=s;var l=e.getLine(n),u=t.exec(l);if(u)return{from:i(n,u.index),to:i(n,u.index+u[0].length),match:u}}}function l(e,t,r){if(!s(t))return a(e,t,r);t=o(t,"gm");for(var n,l=1,u=r.line,c=e.lastLine();u<=c;){for(var p=0;p<l&&!(u>c);p++){var d=e.getLine(u++);n=null==n?d:n+"\n"+d}l*=2,t.lastIndex=r.ch;var h=t.exec(n);if(h){var f=n.slice(0,h.index).split("\n"),E=h[0].split("\n"),m=r.line+f.length-1,g=f[f.length-1].length;return{from:i(m,g),to:i(m+E.length-1,1==E.length?g+E[0].length:E[E.length-1].length),match:h}}}}function u(e,t,r){for(var i,n=0;n<=e.length;){t.lastIndex=n;var o=t.exec(e);if(!o)break;var s=o.index+o[0].length;if(s>e.length-r)break;(!i||s>i.index+i[0].length)&&(i=o),n=o.index+1}return i}function c(e,t,r){t=o(t,"g");for(var n=r.line,s=r.ch,a=e.firstLine();n>=a;n--,s=-1){var l=e.getLine(n),c=u(l,t,s<0?0:l.length-s);if(c)return{from:i(n,c.index),to:i(n,c.index+c[0].length),match:c}}}function p(e,t,r){if(!s(t))return c(e,t,r);t=o(t,"gm");for(var n,a=1,l=e.getLine(r.line).length-r.ch,p=r.line,d=e.firstLine();p>=d;){for(var h=0;h<a&&p>=d;h++){var f=e.getLine(p--);n=null==n?f:f+"\n"+n}a*=2;var E=u(n,t,l);if(E){var m=n.slice(0,E.index).split("\n"),g=E[0].split("\n"),v=p+m.length,x=m[m.length-1].length;return{from:i(v,x),to:i(v+g.length-1,1==g.length?x+g[0].length:g[g.length-1].length),match:E}}}}function d(e,t,r,i){if(e.length==t.length)return r;for(var n=0,o=r+Math.max(0,e.length-t.length);;){if(n==o)return n;var s=n+o>>1,a=i(e.slice(0,s)).length;if(a==r)return s;a>r?o=s:n=s+1}}function h(e,n,o,s){if(!n.length)return null;var a=s?t:r,l=a(n).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.lastLine()+1-l.length;u<=p;u++,c=0){var h=e.getLine(u).slice(c),f=a(h);if(1==l.length){var E=f.indexOf(l[0]);if(-1==E)continue e;return o=d(h,f,E,a)+c,{from:i(u,d(h,f,E,a)+c),to:i(u,d(h,f,E+l[0].length,a)+c)}}var m=f.length-l[0].length;if(f.slice(m)==l[0]){for(var g=1;g<l.length-1;g++)if(a(e.getLine(u+g))!=l[g])continue e;var v=e.getLine(u+l.length-1),x=a(v),N=l[l.length-1];if(x.slice(0,N.length)==N)return{from:i(u,d(h,f,m,a)+c),to:i(u+l.length-1,d(v,x,N.length,a))}}}}function f(e,n,o,s){if(!n.length)return null;var a=s?t:r,l=a(n).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.firstLine()-1+l.length;u>=p;u--,c=-1){var h=e.getLine(u);c>-1&&(h=h.slice(0,c));var f=a(h);if(1==l.length){var E=f.lastIndexOf(l[0]);if(-1==E)continue e;return{from:i(u,d(h,f,E,a)),to:i(u,d(h,f,E+l[0].length,a))}}var m=l[l.length-1];if(f.slice(0,m.length)==m){var g=1;for(o=u-l.length+1;g<l.length-1;g++)if(a(e.getLine(o+g))!=l[g])continue e;var v=e.getLine(u+1-l.length),x=a(v);if(x.slice(x.length-l[0].length)==l[0])return{from:i(u+1-l.length,d(v,x,v.length-l[0].length,a)),to:i(u,d(h,f,m.length,a))}}}}function E(e,t,r,n){var s;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,r=r?e.clipPos(r):i(0,0),this.pos={from:r,to:r},"object"==typeof n?s=n.caseFold:(s=n,n=null),"string"==typeof t?(null==s&&(s=!1),this.matches=function(r,i){return(r?f:h)(e,t,i,s)}):(t=o(t,"gm"),n&&!1===n.multiline?this.matches=function(r,i){return(r?c:a)(e,t,i)}:this.matches=function(r,i){return(r?p:l)(e,t,i)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},r=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},r=function(e){return e}),E.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var r=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(r=i(r.line,r.ch),t?(r.ch--,r.ch<0&&(r.line--,r.ch=(this.doc.getLine(r.line)||"").length)):(r.ch++,r.ch>(this.doc.getLine(r.line)||"").length&&(r.ch=0,r.line++)),0!=e.cmpPos(r,this.doc.clipPos(r))))return this.atOccurrence=!1;var n=this.matches(t,r);if(this.afterEmptyMatch=n&&0==e.cmpPos(n.from,n.to),n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var o=i(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,r){if(this.atOccurrence){var n=e.splitLines(t);this.doc.replaceRange(n,this.pos.from,this.pos.to,r),this.pos.to=i(this.pos.from.line+n.length-1,n[n.length-1].length+(1==n.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,r){return new E(this.doc,e,t,r)}),e.defineDocExtension("getSearchCursor",function(e,t,r){return new E(this,e,t,r)}),e.defineExtension("selectMatches",function(t,r){for(var i=[],n=this.getSearchCursor(t,this.getCursor("from"),r);n.findNext()&&!(e.cmpPos(n.to(),this.getCursor("to"))>0);)i.push({anchor:n.from(),head:n.to()});i.length&&this.setSelections(i,0)})}(r(1719))},8086:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2977),n=r(8214);const o=function(e){return"symbol"==typeof e||(0,n.A)(e)&&"[object Symbol]"==(0,i.A)(e)}},8199:(e,t,r)=>{var i=r(7589).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return n[e]},write:function(e,t){n[e]=t},each:o,remove:function(e){return n.removeItem(e)},clearAll:function(){o(function(e,t){delete n[e]})}};var n=i.globalStorage;function o(e){for(var t=n.length-1;t>=0;t--){var r=n.key(t);e(n[r],r)}}},8214:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return null!=e&&"object"==typeof e}},8272:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}},8285:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=Array.isArray},8292:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(7167);const n=function(e,t,r){"__proto__"==t&&i.A?(0,i.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},8377:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(7476),n="object"==typeof self&&self&&self.Object===Object&&self;const o=i.A||n||Function("return this")()},8412:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});const i=(0,r(1671).A)(Object,"create");const n=function(){this.__data__=i?i(null):{},this.size=0};const o=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var s=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0};var l=Object.prototype.hasOwnProperty;const u=function(e){var t=this.__data__;return i?void 0!==t[e]:l.call(t,e)};const c=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this};function p(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}p.prototype.clear=n,p.prototype.delete=o,p.prototype.get=a,p.prototype.has=u,p.prototype.set=c;const d=p;var h=r(5826),f=r(6787);const E=function(){this.size=0,this.__data__={hash:new d,map:new(f.A||h.A),string:new d}};const m=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const g=function(e,t){var r=e.__data__;return m(t)?r["string"==typeof t?"string":"hash"]:r.map};const v=function(e){var t=g(this,e).delete(e);return this.size-=t?1:0,t};const x=function(e){return g(this,e).get(e)};const N=function(e){return g(this,e).has(e)};const y=function(e,t){var r=g(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this};function A(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}A.prototype.clear=E,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=N,A.prototype.set=y;const L=A},8541:(e,t,r)=>{var i=r(8696),n=r(1461),o=r(5217),s=r(1115),a=r(1907),l=r(1697),u=r(7735);function c(){"use strict";var t=n(),r=t.m(c),p=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function f(e){var t,r;return function(i){t||(t={stop:function(){return r(i.a,2)},catch:function(){return i.v},abrupt:function(e,t){return r(i.a,h[e],t)},delegateYield:function(e,n,o){return t.resultName=n,r(i.d,u(e),o)},finish:function(e){return r(i.f,e)}},r=function(e,r,n){i.p=t.prev,i.n=t.next;try{return e(r,n)}finally{t.next=i.n}}),t.resultName&&(t[t.resultName]=i.v,t.resultName=void 0),t.sent=i.v,t.next=i.n;try{return e.call(this,t)}finally{i.p=t.prev,i.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,r,i,n){return t.w(f(e),r,i,n&&n.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new i(e,t)},AsyncIterator:a,async:function(e,t,r,i,n){return(d(t)?s:o)(f(e),t,r,i,n)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},8563:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(8285),n=r(9758),o=r(8412);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(s.Cache||o.A),r}s.Cache=o.A;const a=s;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const c=function(e){var t=a(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,r,i,n){t.push(i?n.replace(u,"$1"):r||e)}),t});var p=r(2965);const d=function(e,t){return(0,i.A)(e)?e:(0,n.A)(e,t)?[e]:c((0,p.A)(e))}},8696:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},8709:(e,t,r)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),r=e.Pos,i={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function n(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var a=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=n(o),p=!u&&l>=0&&c.test(a.text.charAt(l))&&i[a.text.charAt(l)]||c.test(a.text.charAt(l+1))&&i[a.text.charAt(++l)];if(!p)return null;var d=">"==p.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var h=e.getTokenTypeAt(r(t.line,l+1)),f=s(e,r(t.line,l+(d>0?1:0)),d,h,o);return null==f?null:{from:r(t.line,l),to:f&&f.pos,match:f&&f.ch==p.charAt(0),forward:d>0}}function s(e,t,o,s,a){for(var l=a&&a.maxScanLineLength||1e4,u=a&&a.maxScanLines||1e3,c=[],p=n(a),d=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),h=t.line;h!=d;h+=o){var f=e.getLine(h);if(f){var E=o>0?0:f.length-1,m=o>0?f.length:-1;if(!(f.length>l))for(h==t.line&&(E=t.ch-(o<0?1:0));E!=m;E+=o){var g=f.charAt(E);if(p.test(g)&&(void 0===s||(e.getTokenTypeAt(r(h,E+1))||"")==(s||""))){var v=i[g];if(v&&">"==v.charAt(1)==o>0)c.push(g);else{if(!c.length)return{pos:r(h,E),ch:g};c.pop()}}}}}return h-o!=(o>0?e.lastLine():e.firstLine())&&null}function a(e,i,n){for(var s=e.state.matchBrackets.maxHighlightLineLength||1e3,a=n&&n.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var p=u[c].empty()&&o(e,u[c].head,n);if(p&&(p.match||!1!==a)&&e.getLine(p.from.line).length<=s){var d=p.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(p.from,r(p.from.line,p.from.ch+1),{className:d})),p.to&&e.getLine(p.to.line).length<=s&&l.push(e.markText(p.to,r(p.to.line,p.to.ch+1),{className:d}))}}if(l.length){t&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!i)return h;setTimeout(h,800)}}function l(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=a(e,!1,e.state.matchBrackets)})}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(t,r,i){i&&i!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),r&&(t.state.matchBrackets="object"==typeof r?r:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))}),e.defineExtension("matchBrackets",function(){a(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,r){return(r||"boolean"==typeof t)&&(r?(r.strict=t,t=r):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,r,i){return s(this,e,t,r,i)})}(r(1719))},8723:e=>{"use strict";e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},8782:(e,t,r)=>{"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}r.d(t,{A:()=>i})},8883:e=>{e.exports={name:"memoryStorage",read:function(e){return t[e]},write:function(e,r){t[e]=r},each:function(e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},remove:function(e){delete t[e]},clearAll:function(e){t={}}};var t={}},9082:(e,t,r)=>{!function(e){"use strict";var t={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function r(e){for(var r in this.options={},t)this.options[r]=(e&&e.hasOwnProperty(r)?e:t)[r];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function i(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&o(e,t)}function n(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,o(e,t))}function o(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){l(e)},t.options.delay)}function s(e,t,r,i){var n=e.state.matchHighlighter;if(e.addOverlay(n.overlay=p(t,r,i)),n.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=r?new RegExp((/\w/.test(t.charAt(0))?"\\b":"")+t.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(t.charAt(t.length-1))?"\\b":"")):t;n.matchesonscroll=e.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function a(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function l(e){e.operation(function(){var t=e.state.matchHighlighter;if(a(e),e.somethingSelected()||!t.options.showToken){var r=e.getCursor("from"),i=e.getCursor("to");if(r.line==i.line&&(!t.options.wordsOnly||u(e,r,i))){var n=e.getRange(r,i);t.options.trim&&(n=n.replace(/^\s+|\s+$/g,"")),n.length>=t.options.minChars&&s(e,n,!1,t.options.style)}}else{for(var o=!0===t.options.showToken?/[\w$]/:t.options.showToken,l=e.getCursor(),c=e.getLine(l.line),p=l.ch,d=p;p&&o.test(c.charAt(p-1));)--p;for(;d<c.length&&o.test(c.charAt(d));)++d;p<d&&s(e,c.slice(p,d),o,t.options.style)}})}function u(e,t,r){if(null!==e.getRange(t,r).match(/^\w+$/)){if(t.ch>0){var i={line:t.line,ch:t.ch-1};if(null===e.getRange(i,t).match(/\W/))return!1}return!(r.ch<e.getLine(t.line).length&&(i={line:r.line,ch:r.ch+1},null===e.getRange(r,i).match(/\W/)))}return!1}function c(e,t){return!(e.start&&t.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&t.test(e.string.charAt(e.pos)))}function p(e,t,r){return{token:function(i){if(i.match(e)&&(!t||c(i,t)))return r;i.next(),i.skipTo(e.charAt(0))||i.skipToEnd()}}}e.defineOption("highlightSelectionMatches",!1,function(t,o,s){if(s&&s!=e.Init&&(a(t),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",i),t.off("focus",n)),o){var u=t.state.matchHighlighter=new r(o);t.hasFocus()?(u.active=!0,l(t)):t.on("focus",n),t.on("cursorActivity",i)}})}(r(1719),r(6583))},9091:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2020),n=r(8285);const o=function(e,t,r){var o=t(e);return(0,n.A)(e)?o:(0,i.A)(o,r(e))}},9121:(e,t,r)=>{"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>i})},9161:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const i=function(e){return function(t){return e(t)}}},9298:(e,t,r)=>{!function(e){"use strict";function t(e,t){function r(e){clearTimeout(i.doRedraw),i.doRedraw=setTimeout(function(){i.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var i=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(i.doUpdate),i.doUpdate=setTimeout(function(){i.computeScale()&&r(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("changes",this.changeHandler=function(){r(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,r=this.hScale,i=document.createDocumentFragment(),n=this.annotations,o=t.getOption("lineWrapping"),s=o&&1.5*t.defaultTextHeight(),a=null,l=null;function u(e,r){if(a!=e.line){a=e.line,l=t.getLineHandle(e.line);var i=t.getLineHandleVisualStart(l);i!=l&&(a=t.getLineNumber(i),l=i)}return l.widgets&&l.widgets.length||o&&l.height>s?t.charCoords(e,"local")[r?"top":"bottom"]:t.heightAtLine(l,"local")+(r?0:l.height)}var c=t.lastLine();if(t.display.barWidth)for(var p,d=0;d<n.length;d++){var h=n[d];if(!(h.to.line>c)){for(var f=p||u(h.from,!0)*r,E=u(h.to,!1)*r;d<n.length-1&&!(n[d+1].to.line>c)&&!((p=u(n[d+1].from,!0)*r)>E+.9);)E=u((h=n[++d]).to,!1)*r;if(E!=f){var m=Math.max(E-f,3),g=i.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(f+this.buttonHeight)+"px; height: "+m+"px",g.className=this.options.className,h.id&&g.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(r(1719))},9418:(e,t,r)=>{"use strict";r.d(t,{A:()=>ae});const{entries:i,setPrototypeOf:n,isFrozen:o,getPrototypeOf:s,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:u,create:c}=Object,{apply:p,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),u||(u=function(e){return e}),p||(p=function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];return e.apply(t,i)}),d||(d=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return new e(...r)});const h=R(Array.prototype.forEach),f=R(Array.prototype.lastIndexOf),E=R(Array.prototype.pop),m=R(Array.prototype.push),g=R(Array.prototype.splice),v=R(String.prototype.toLowerCase),x=R(String.prototype.toString),N=R(String.prototype.match),y=R(String.prototype.replace),A=R(String.prototype.indexOf),L=R(String.prototype.trim),T=R(Object.prototype.hasOwnProperty),I=R(RegExp.prototype.test),S=(C=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return d(C,t)});var C;function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return p(e,t,i)}}function b(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;n&&n(e,null);let i=t.length;for(;i--;){let n=t[i];if("string"==typeof n){const e=r(n);e!==n&&(o(t)||(t[i]=e),n=e)}e[n]=!0}return e}function O(e){for(let t=0;t<e.length;t++){T(e,t)||(e[t]=null)}return e}function _(e){const t=c(null);for(const[r,n]of i(e)){T(e,r)&&(Array.isArray(n)?t[r]=O(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=_(n):t[r]=n)}return t}function P(e,t){for(;null!==e;){const r=a(e,t);if(r){if(r.get)return R(r.get);if("function"==typeof r.value)return R(r.value)}e=s(e)}return function(){return null}}const w=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=l(["#text"]),F=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),V=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=u(/<%[\w\W]*|[\w\W]*%>/gm),z=u(/\$\{[\w\W]*/gm),Y=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=u(/^aria-[\-\w]+$/),X=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=u(/^(?:\w+script|data):/i),Q=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),J=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J,DATA_ATTR:Y,DOCTYPE_NAME:Z,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:q,TMPLIT_EXPR:z});const te=1,re=3,ie=7,ne=8,oe=9,se=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se();const r=t=>e(t);if(r.version="3.3.0",r.removed=[],!t||!t.document||t.document.nodeType!==oe||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:p,Element:d,NodeFilter:C,NamedNodeMap:R=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:O,DOMParser:q,trustedTypes:W}=t,z=d.prototype,Y=P(z,"cloneNode"),K=P(z,"remove"),$=P(z,"nextSibling"),Q=P(z,"childNodes"),J=P(z,"parentNode");if("function"==typeof u){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let ae,le="";const{implementation:ue,createNodeIterator:ce,createDocumentFragment:pe,getElementsByTagName:de}=n,{importNode:he}=o;let fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof i&&"function"==typeof J&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:Ee,ERB_EXPR:me,TMPLIT_EXPR:ge,DATA_ATTR:ve,ARIA_ATTR:xe,IS_SCRIPT_OR_DATA:Ne,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:Ae}=ee;let{IS_ALLOWED_URI:Le}=ee,Te=null;const Ie=b({},[...w,...D,...M,...G,...B]);let Se=null;const Ce=b({},[...F,...V,...H,...j]);let Re=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,Oe=null;const _e=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pe=!0,we=!0,De=!1,Me=!0,ke=!1,Ge=!0,Ue=!1,Be=!1,Fe=!1,Ve=!1,He=!1,je=!1,qe=!0,We=!1,ze=!0,Ye=!1,Ke={},Xe=null;const $e=b({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Ze=b({},["audio","video","img","source","image","track"]);let Je=null;const et=b({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let nt=it,ot=!1,st=null;const at=b({},[tt,rt,it],x);let lt=b({},["mi","mo","mn","ms","mtext"]),ut=b({},["annotation-xml"]);const ct=b({},["title","style","font","a","script"]);let pt=null;const dt=["application/xhtml+xml","text/html"];let ht=null,ft=null;const Et=n.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"==typeof e||(e={}),e=_(e),pt=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===pt?x:v,Te=T(e,"ALLOWED_TAGS")?b({},e.ALLOWED_TAGS,ht):Ie,Se=T(e,"ALLOWED_ATTR")?b({},e.ALLOWED_ATTR,ht):Ce,st=T(e,"ALLOWED_NAMESPACES")?b({},e.ALLOWED_NAMESPACES,x):at,Je=T(e,"ADD_URI_SAFE_ATTR")?b(_(et),e.ADD_URI_SAFE_ATTR,ht):et,Qe=T(e,"ADD_DATA_URI_TAGS")?b(_(Ze),e.ADD_DATA_URI_TAGS,ht):Ze,Xe=T(e,"FORBID_CONTENTS")?b({},e.FORBID_CONTENTS,ht):$e,be=T(e,"FORBID_TAGS")?b({},e.FORBID_TAGS,ht):_({}),Oe=T(e,"FORBID_ATTR")?b({},e.FORBID_ATTR,ht):_({}),Ke=!!T(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Ge=!1!==e.SAFE_FOR_XML,Ue=e.WHOLE_DOCUMENT||!1,Ve=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,qe=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Le=e.ALLOWED_URI_REGEXP||X,nt=e.NAMESPACE||it,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ut=e.HTML_INTEGRATION_POINTS||ut,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(we=!1),He&&(Ve=!0),Ke&&(Te=b({},B),Se=[],!0===Ke.html&&(b(Te,w),b(Se,F)),!0===Ke.svg&&(b(Te,D),b(Se,V),b(Se,j)),!0===Ke.svgFilters&&(b(Te,M),b(Se,V),b(Se,j)),!0===Ke.mathMl&&(b(Te,G),b(Se,H),b(Se,j))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?_e.tagCheck=e.ADD_TAGS:(Te===Ie&&(Te=_(Te)),b(Te,e.ADD_TAGS,ht))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?_e.attributeCheck=e.ADD_ATTR:(Se===Ce&&(Se=_(Se)),b(Se,e.ADD_ATTR,ht))),e.ADD_URI_SAFE_ATTR&&b(Je,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Xe===$e&&(Xe=_(Xe)),b(Xe,e.FORBID_CONTENTS,ht)),ze&&(Te["#text"]=!0),Ue&&b(Te,["html","head","body"]),Te.table&&(b(Te,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,le=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));const n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(W,s)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),ft=e}},vt=b({},[...D,...M,...k]),xt=b({},[...G,...U]),Nt=function(e){m(r.removed,{element:e});try{J(e).removeChild(e)}catch(t){K(e)}},yt=function(e,t){try{m(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ve||He)try{Nt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},At=function(e){let t=null,r=null;if(Fe)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===pt&&nt===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ae?ae.createHTML(e):e;if(nt===it)try{t=(new q).parseFromString(i,pt)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(nt,"template",null);try{t.documentElement.innerHTML=ot?le:i}catch(e){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),nt===it?de.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:o},Lt=function(e){return ce.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof O&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof R)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},It=function(e){return"function"==typeof p&&e instanceof p};function St(e,t,i){h(e,e=>{e.call(r,t,i,ft)})}const Ct=function(e){let t=null;if(St(fe.beforeSanitizeElements,e,null),Tt(e))return Nt(e),!0;const i=ht(e.nodeName);if(St(fe.uponSanitizeElement,e,{tagName:i,allowedTags:Te}),Ge&&e.hasChildNodes()&&!It(e.firstElementChild)&&I(/<[/\w!]/g,e.innerHTML)&&I(/<[/\w!]/g,e.textContent))return Nt(e),!0;if(e.nodeType===ie)return Nt(e),!0;if(Ge&&e.nodeType===ne&&I(/<[/\w]/g,e.data))return Nt(e),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(i))&&(!Te[i]||be[i])){if(!be[i]&&bt(i)){if(Re.tagNameCheck instanceof RegExp&&I(Re.tagNameCheck,i))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(i))return!1}if(ze&&!Xe[i]){const t=J(e)||e.parentNode,r=Q(e)||e.childNodes;if(r&&t){for(let i=r.length-1;i>=0;--i){const n=Y(r[i],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,$(e))}}}return Nt(e),!0}return e instanceof d&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});const r=v(e.tagName),i=v(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===it?"svg"===r:t.namespaceURI===tt?"svg"===r&&("annotation-xml"===i||lt[i]):Boolean(vt[r]):e.namespaceURI===tt?t.namespaceURI===it?"math"===r:t.namespaceURI===rt?"math"===r&&ut[i]:Boolean(xt[r]):e.namespaceURI===it?!(t.namespaceURI===rt&&!ut[i])&&!(t.namespaceURI===tt&&!lt[i])&&!xt[r]&&(ct[r]||!vt[r]):!("application/xhtml+xml"!==pt||!st[e.namespaceURI]))}(e)?(Nt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!I(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===re&&(t=e.textContent,h([Ee,me,ge],e=>{t=y(t,e," ")}),e.textContent!==t&&(m(r.removed,{element:e.cloneNode()}),e.textContent=t)),St(fe.afterSanitizeElements,e,null),!1):(Nt(e),!0)},Rt=function(e,t,r){if(qe&&("id"===t||"name"===t)&&(r in n||r in Et))return!1;if(we&&!Oe[t]&&I(ve,t));else if(Pe&&I(xe,t));else if(_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e));else if(!Se[t]||Oe[t]){if(!(bt(e)&&(Re.tagNameCheck instanceof RegExp&&I(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&I(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t,e))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&I(Re.tagNameCheck,r)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(r))))return!1}else if(Je[t]);else if(I(Le,y(r,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(r,"data:")||!Qe[e]){if(De&&!I(Ne,y(r,ye,"")));else if(r)return!1}else;return!0},bt=function(e){return"annotation-xml"!==e&&N(e,Ae)},Ot=function(e){St(fe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let n=t.length;for(;n--;){const o=t[n],{name:s,namespaceURI:a,value:l}=o,u=ht(s),c=l;let p="value"===s?c:L(c);if(i.attrName=u,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,St(fe.uponSanitizeAttribute,e,i),p=i.attrValue,!We||"id"!==u&&"name"!==u||(yt(s,e),p="user-content-"+p),Ge&&I(/((--!?|])>)|<\/(style|title|textarea)/i,p)){yt(s,e);continue}if("attributename"===u&&N(p,"href")){yt(s,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){yt(s,e);continue}if(!Me&&I(/\/>/i,p)){yt(s,e);continue}ke&&h([Ee,me,ge],e=>{p=y(p,e," ")});const d=ht(e.nodeName);if(Rt(d,u,p)){if(ae&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(d,u)){case"TrustedHTML":p=ae.createHTML(p);break;case"TrustedScriptURL":p=ae.createScriptURL(p)}if(p!==c)try{a?e.setAttributeNS(a,s,p):e.setAttribute(s,p),Tt(e)?Nt(e):E(r.removed)}catch(t){yt(s,e)}}else yt(s,e)}St(fe.afterSanitizeAttributes,e,null)},_t=function e(t){let r=null;const i=Lt(t);for(St(fe.beforeSanitizeShadowDOM,t,null);r=i.nextNode();)St(fe.uponSanitizeShadowNode,r,null),Ct(r),Ot(r),r.content instanceof a&&e(r.content);St(fe.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,n=null,s=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!It(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Be||gt(t),r.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=ht(e.nodeName);if(!Te[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)i=At("\x3c!----\x3e"),n=i.ownerDocument.importNode(e,!0),n.nodeType===te&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n);else{if(!Ve&&!ke&&!Ue&&-1===e.indexOf("<"))return ae&&je?ae.createHTML(e):e;if(i=At(e),!i)return Ve?null:je?le:""}i&&Fe&&Nt(i.firstChild);const u=Lt(Ye?e:i);for(;s=u.nextNode();)Ct(s),Ot(s),s.content instanceof a&&_t(s.content);if(Ye)return e;if(Ve){if(He)for(l=pe.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(Se.shadowroot||Se.shadowrootmode)&&(l=he.call(o,l,!0)),l}let c=Ue?i.outerHTML:i.innerHTML;return Ue&&Te["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&I(Z,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),ke&&h([Ee,me,ge],e=>{c=y(c,e," ")}),ae&&je?ae.createHTML(c):c},r.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Be=!0},r.clearConfig=function(){ft=null,Be=!1},r.isValidAttribute=function(e,t,r){ft||gt({});const i=ht(e),n=ht(t);return Rt(i,n,r)},r.addHook=function(e,t){"function"==typeof t&&m(fe[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=f(fe[e],t);return-1===r?void 0:g(fe[e],r,1)[0]}return E(fe[e])},r.removeHooks=function(e){fe[e]=[]},r.removeAllHooks=function(){fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()},9430:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(946),n=r(7167),o=r(1100);const s=n.A?function(e,t){return(0,n.A)(e,"toString",{configurable:!0,enumerable:!1,value:(0,i.A)(t),writable:!0})}:o.A;var a=Date.now;const l=function(e){var t=0,r=0;return function(){var i=a(),n=16-(i-r);if(r=i,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(s)},9557:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(6809),n=Object.create;const o=function(){function e(){}return function(t){if(!(0,i.A)(t))return{};if(n)return n(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var s=r(7827),a=r(4603);const l=function(e){return"function"!=typeof e.constructor||(0,a.A)(e)?{}:o((0,s.A)(e))}},9604:(e,t,r)=>{"use strict";function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}r.d(t,{A:()=>n})},9741:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(1273);const n=function(e,t){var r=t?(0,i.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},9754:(e,t,r)=>{!function(e){"use strict";function t(t,i,o,s){if(o&&o.call){var a=o;o=null}else a=n(t,o,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var l=n(t,o,"minFoldSize");function u(e){var r=a(t,i);if(!r||r.to.line-r.from.line<l)return null;if("fold"===s)return r;for(var n=t.findMarksAt(r.from),o=0;o<n.length;++o)if(n[o].__isFold){if(!e)return null;r.cleared=!0,n[o].clear()}return r}var c=u(!0);if(n(t,o,"scanUp"))for(;!c&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==s){var p=r(t,o,c);e.on(p,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(c.from,c.to,{replacedWith:p,clearOnEnter:n(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",function(r,i){e.signal(t,"unfold",t,r,i)}),e.signal(t,"fold",t,c.from,c.to)}}function r(e,t,r){var i=n(e,t,"widget");if("function"==typeof i&&(i=i(r.from,r.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}e.newFoldFunction=function(e,r){return function(i,n){t(i,n,{rangeFinder:e,widget:r})}},e.defineExtension("foldCode",function(e,r,i){t(this,e,r,i)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),r=0;r<t.length;++r)if(t[r].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var r=t.firstLine(),i=t.lastLine();r<=i;r++)t.foldCode(e.Pos(r,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var r=t.firstLine(),i=t.lastLine();r<=i;r++)t.foldCode(e.Pos(r,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,r){for(var i=0;i<e.length;++i){var n=e[i](t,r);if(n)return n}}}),e.registerHelper("fold","auto",function(e,t){for(var r=e.getHelpers(t,"fold"),i=0;i<r.length;i++){var n=r[i](e,t);if(n)return n}});var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function n(e,t,r){if(t&&void 0!==t[r])return t[r];var n=e.options.foldOptions;return n&&void 0!==n[r]?n[r]:i[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return n(this,e,t)})}(r(1719))},9758:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(8285),n=r(8086),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(e,t){if((0,i.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,n.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},9790:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2977),n=r(6809);const o=function(e){if(!(0,n.A)(e))return!1;var t=(0,i.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{default:()=>ye});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{executeQuery:()=>S,getAcceptHeader:()=>R,getAjaxConfig:()=>I,getAsCurlString:()=>b,getUrlArguments:()=>C});var t=__webpack_require__(9121),r=__webpack_require__(4758),i=__webpack_require__(365),n=__webpack_require__(8782),o=__webpack_require__(9604),s=__webpack_require__(1719),a=__webpack_require__.n(s);function l(e,t,r){return r||(r=e.getDoc().getCursor()),t||(t=e.getTokenAt(r)),c(e,u(e,t,r),r)}function u(e,t,r){var i=e.getTokenAt({line:r.line,ch:t.start});return"punc"!==t.type&&"error"!==t.type||t.state.possibleFullIri||t.state.inPrefixDecl?"punc"!==i.type||i.state.possibleFullIri||i.state.inPrefixDecl?null!=i.type&&"ws"!=i.type&&null!=t.type&&"ws"!=t.type?(t.start=i.start,t.string=i.string+t.string,u(e,t,{line:r.line,ch:i.start})):null!=t.type&&"ws"==t.type?(t.start=t.start+1,t.string=t.string.substring(1),t):t:t:(t.state.possibleCurrent=t.state.possibleNext,t)}function c(e,t,r){if(t.string.indexOf(" ")>=0){var i=t.string.indexOf(" ");return t.string=t.string.substr(0,i),t.end=t.start+t.string.length,t}if(!t.type)return t;var n=e.getTokenAt({line:r.line,ch:t.end+1});return"ws"!==n.type&&t.state.possibleFullIri&&null!==t.type&&"ws"!==t.type&&n.end!==t.end?(t.end=n.end,t.string=t.string+n.string,c(e,t,{line:r.line,ch:n.end})):"ws"===t.type?(t.end=t.end+1,t.string=t.string.substring(t.string.length-1),t):t}function p(e,t,r){var i=e.getTokenAt({line:t,ch:r.start});return null!=i&&"ws"==i.type&&(i=p(e,t,i)),i}function d(e,t,r){null==r&&(r=1);var i=e.getTokenAt({line:t,ch:r});if(!(null==i||null==i||i.end<r))return"ws"==i.type?d(e,t,i.end+1):i}var h="PREFIX ";function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0;i||(i=e.getDoc().getLine(t));var n=(i=i.toUpperCase()).indexOf(h,r);if(n>=0&&"keyword"===e.getTokenTypeAt(a().Pos(t,n+1)))return n}function E(e,t){e.getDoc().replaceRange("PREFIX "+t+"\n",{line:0,ch:0}),e.collapsePrefixes(!1)}var m=__webpack_require__(3111),g=__webpack_require__(2928);function v(e,t,r){var i;t.onmouseover=function(){i||((i=document.createElement("div")).className="yasqe_tooltip"),i.style.display="block",i.innerHTML=r,t.appendChild(i)},t.onmouseout=function(){i&&(i.style.display="none"),i.innerHTML=r}}var x=__webpack_require__(232),N=__webpack_require__.n(x),y=__webpack_require__(9790),A=__webpack_require__(7440),L=function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};function T(e,t){return(0,y.A)(t)?t(e):null!=t?t:{}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,A.A)({},T(e,e.config.requestConfig),T(e,t));if(r.endpoint&&0!=r.endpoint.length){var i=e.getQueryMode(),n=(0,y.A)(r.endpoint)?r.endpoint(e):r.endpoint,o="update"==i?"POST":(0,y.A)(r.method)?r.method(e):r.method,s=(0,y.A)(r.headers)?r.headers(e):r.headers,a=(0,y.A)(r.withCredentials)?r.withCredentials(e):r.withCredentials;return{reqMethod:o,url:n,args:C(e,r),headers:s,accept:R(e,r),withCredentials:a}}}function S(e,t){return L(this,void 0,void 0,N().mark(function r(){var i,n,o,s,a,l,u,c,p,d,h,f,E,m,g,v,x,y,A,L,T,S;return N().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i=Date.now(),r.prev=1,e.emit("queryBefore",e,t),n=I(e,t)){r.next=2;break}return r.abrupt("return");case 2:o=new AbortController,(null==(s={method:n.reqMethod,headers:Object.assign({Accept:n.accept},n.headers||{}),credentials:n.withCredentials?"include":"same-origin",signal:o.signal})?void 0:s.headers)&&"POST"===n.reqMethod&&(s.headers["Content-Type"]="application/x-www-form-urlencoded"),a=new URLSearchParams,l=N().mark(function e(t){var r;return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=n.args[t],Array.isArray(r)?r.forEach(function(e){return a.append(t,e)}):a.append(t,r);case 1:case"end":return e.stop()}},e)}),f=N().keys(n.args);case 3:if((E=f()).done){r.next=5;break}return u=E.value,r.delegateYield(l(u),"t0",4);case 4:r.next=3;break;case 5:return"POST"===n.reqMethod?s.body=a.toString():(c=new URL(n.url),a.forEach(function(e,t){c.searchParams.append(t,e)}),n.url=c.toString()),p=new Request(n.url,s),e.emit("query",p,o),r.next=6,fetch(p);case 6:if((d=r.sent).ok){r.next=9;break}return m=Error,r.next=7,d.text();case 7:if(g=r.sent){r.next=8;break}g=d.statusText;case 8:throw new m(g);case 9:return v=d.ok,x=d.status,y=d.statusText,A=d.headers,L=d.type,r.next=10,d.text();case 10:return T=r.sent,h={ok:v,status:x,statusText:y,headers:A,type:L,content:T},e.emit("queryResponse",h,Date.now()-i),e.emit("queryResults",h.content,Date.now()-i),r.abrupt("return",h);case 11:throw r.prev=11,(S=r.catch(1))instanceof Error&&"Aborted"===S.message||e.emit("queryResponse",S,Date.now()-i),e.emit("error",S),S;case 12:case"end":return r.stop()}},r,null,[[1,11]])}))}function C(e,t){var r=e.getQueryMode(),i={},n=T(e,t),o=(0,y.A)(n.queryArgument)?n.queryArgument(e):n.queryArgument;o||(o=e.getQueryMode()),i[o]=n.adjustQueryBeforeRequest?n.adjustQueryBeforeRequest(e):e.getValue();var s=(0,y.A)(n.namedGraphs)?n.namedGraphs(e):n.namedGraphs;s&&s.length>0&&(i["query"===r?"named-graph-uri":"using-named-graph-uri "]=s);var a=(0,y.A)(n.defaultGraphs)?n.defaultGraphs(e):n.defaultGraphs;a&&a.length>0&&(i["query"==r?"default-graph-uri":"using-graph-uri "]=s);var l=(0,y.A)(n.args)?n.args(e):n.args;return l&&l.length>0&&(0,A.A)(i,l.reduce(function(e,t){return e[t.name]?e[t.name].push(t.value):e[t.name]=[t.value],e},{})),i}function R(e,t){var r=T(e,t),i=null;if("update"==e.getQueryMode())i=(0,y.A)(r.acceptHeaderUpdate)?r.acceptHeaderUpdate(e):r.acceptHeaderUpdate;else{var n=e.getQueryType();i="DESCRIBE"==n||"CONSTRUCT"==n?(0,y.A)(r.acceptHeaderGraph)?r.acceptHeaderGraph(e):r.acceptHeaderGraph:(0,y.A)(r.acceptHeaderSelect)?r.acceptHeaderSelect(e):r.acceptHeaderSelect}return i}function b(e,t){var r=I(e,T(e,t));if(!r)return"";var i=r.url;0!==r.url.indexOf("http")&&(i="".concat(window.location.protocol,"//").concat(window.location.host),0===r.url.indexOf("/")?i+=r.url:i+=window.location.pathname+r.url);var n=["curl"];for(var o in"GET"===r.reqMethod?(i+="?".concat(g.stringify(r.args)),n.push(i)):"POST"===r.reqMethod?(n.push(i),n.push("--data",g.stringify(r.args))):(console.warn("Unexpected request-method",r.reqMethod),n.push(i)),n.push("-X",r.reqMethod),r.headers)n.push("-H '".concat(o,": ").concat(r.headers[o],"'"));return n.join(" ")}var O='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',_=function(){function e(){(0,t.A)(this,e),this.words=0,this.prefixes=0,this.children={}}return(0,r.A)(e,[{key:"insert",value:function(t,r){if(0!=t.length){var i,n=this;void 0===r&&(r=0),r!==t.length?(n.prefixes++,i=t[r],void 0===n.children[i]&&(n.children[i]=new e),n.children[i].insert(t,r+1)):n.words++}}},{key:"remove",value:function(e,t){if(0!=e.length){var r,i=this;void 0===t&&(t=0),void 0!==i&&(t!==e.length?(i.prefixes--,r=e[t],i.children[r].remove(e,t+1)):i.words--)}}},{key:"update",value:function(e,t){0!=e.length&&0!=t.length&&(this.remove(e),this.insert(t))}},{key:"countWord",value:function(e,t){if(0==e.length)return 0;var r,i,n=0;return void 0===t&&(t=0),t===e.length?this.words:(r=e[t],void 0!==(i=this.children[r])&&(n=i.countWord(e,t+1)),n)}},{key:"countPrefix",value:function(e,t){if(0==e.length)return 0;var r,i=0;if(void 0===t&&(t=0),t===e.length)return this.prefixes;var n=e[t];return void 0!==(r=this.children[n])&&(i=r.countPrefix(e,t+1)),i}},{key:"find",value:function(e){return 0!=e.length&&this.countWord(e)>0}},{key:"getAllWords",value:function(e){var t,r,i=this,n=[];if(void 0===e&&(e=""),void 0===i)return[];for(t in i.words>0&&n.push(e),i.children)i.children.hasOwnProperty(t)&&(r=i.children[t],n=n.concat(r.getAllWords(e+t)));return n}},{key:"autoComplete",value:function(e,t){var r,i;return 0==e.length?void 0===t?this.getAllWords(e):[]:(void 0===t&&(t=0),r=e[t],void 0===(i=this.children[r])?[]:t===e.length-1?i.getAllWords(e):i.autoComplete(e,t+1))}}])}(),P=__webpack_require__(4785);const w=function(e,t,r){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(n);++i<n;)o[i]=e[i+t];return o};var D=__webpack_require__(4801);const M=function(e,t,r){return e&&e.length?(t=r||void 0===t?1:(0,D.A)(t),w(e,0,t<0?0:t)):[]};const k={name:"variables",isValidCompletionPosition:function(e){var t=e.getTokenAt(e.getDoc().getCursor());return!("ws"==t.type||!(t=e.getCompleteToken(t))||"?"!==t.string[0]&&"$"!==t.string[0])},get:function(e,t){if(!t||0==t.string.length)return[];for(var r={},i=[],n=e.getWrapperElement().querySelectorAll(".cm-atom"),o=0;o<n.length;o++){var s=n[o],a=s.innerHTML;if("?"===a[0]||"$"===a[0]){var l=s.nextSibling;if(l&&l.className&&l.className.indexOf("cm-atom")>=0&&(a+=l.innerText),r[a])continue;if(a.length<=1)continue;if(0!==a.indexOf(t.string))continue;if(a===t.string)continue;r[a]=!0,i.push(a)}}return i.sort()},bulk:!1,autoShow:!0};var G=__webpack_require__(4560),U=__webpack_require__(8272),B=__webpack_require__(6074),F=__webpack_require__(5955),V=__webpack_require__(3074),H=__webpack_require__(7242);const j=function(e,t){var r=-1,i=(0,H.A)(e)?Array(e.length):[];return(0,V.A)(e,function(e,n,o){i[++r]=t(e,n,o)}),i};const q=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e};var W=__webpack_require__(9161),z=__webpack_require__(8086);const Y=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,n=e==e,o=(0,z.A)(e),s=void 0!==t,a=null===t,l=t==t,u=(0,z.A)(t);if(!a&&!u&&!o&&e>t||o&&s&&l&&!a&&!u||i&&s&&l||!r&&l||!n)return 1;if(!i&&!o&&!u&&e<t||u&&r&&n&&!i&&!o||a&&r&&n||!s&&n||!l)return-1}return 0};const K=function(e,t,r){for(var i=-1,n=e.criteria,o=t.criteria,s=n.length,a=r.length;++i<s;){var l=Y(n[i],o[i]);if(l)return i>=a?l:l*("desc"==r[i]?-1:1)}return e.index-t.index};var X=__webpack_require__(1100),$=__webpack_require__(8285);const Q=function(e,t,r){t=t.length?(0,U.A)(t,function(e){return(0,$.A)(e)?function(t){return(0,B.A)(t,1===e.length?e[0]:e)}:e}):[X.A];var i=-1;t=(0,U.A)(t,(0,W.A)(F.A));var n=j(e,function(e,r,n){return{criteria:(0,U.A)(t,function(t){return t(e)}),index:++i,value:e}});return q(n,function(e,t){return K(e,t,r)})};var Z=__webpack_require__(5186),J=__webpack_require__(6988);const ee=(0,Z.A)(function(e,t){if(null==e)return[];var r=t.length;return r>1&&(0,J.A)(e,t[0],t[1])?t=[]:r>2&&(0,J.A)(t[0],t[1],t[2])&&(t=[t[0]]),Q(e,(0,G.A)(t,1),[])});var te={"string-2":"prefixed",atom:"var"};const re={postprocessHints:function(e,t){return ee(t,function(e){return e.text.split(":")[0]})},onInitialize:function(e){var t=this;e.on("change",function(){var r;if(e.config.autocompleters&&-1!=e.config.autocompleters.indexOf(t.name)){var i=e.getDoc().getCursor(),n=e.getTokenAt(i);if(n.type&&"prefixed"==te[n.type]){var o=n.string.indexOf(":");if(-1!==o){var s=e.getPreviousNonWsToken(i.line,n).string.toUpperCase(),a=e.getTokenAt({line:i.line,ch:n.start});if("PREFIX"!==s&&("ws"==a.type||null==a.type||"punc"===a.type&&("|"===a.string||"/"===a.string||"^^"==a.string||"{"==a.string||"("===a.string))){var l=n.string.substring(0,o+1);null==e.getPrefixesFromQuery()[l.slice(0,-1)]&&(n.autocompletionString=l,null===(r=e.autocompleters[t.name])||void 0===r||r.getCompletions(n).then(function(t){t.length&&(e.addPrefixes(t[0]),e.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(e){var t=e.getDoc().getCursor(),r=e.getTokenAt(t);if(e.getDoc().getLine(t.line).length>t.ch)return!1;if("ws"!=r.type&&(r=e.getCompleteToken()),0!==r.string.indexOf("a")&&r.state.possibleCurrent.indexOf("PNAME_NS")<0)return!1;var i=e.getPreviousNonWsToken(t.line,r);return!(!i||"PREFIX"!=i.string.toUpperCase())},get:function(e){return fetch(e.config.prefixCcApi).then(function(e){if(!e.ok)throw new Error("Failed to fetch prefixes");return e.json()}).then(function(e){var t=[];for(var r in e){var i="".concat(r,": <").concat(e[r],">");t.push(i)}return t.sort()})},preProcessToken:function(e,t){var r=e.getPreviousNonWsToken(e.getDoc().getCursor().line,t);return r&&r.string&&":"==r.string.slice(-1)&&(t={start:r.start,end:t.end,string:r.string+" "+t.string,state:t.state,type:t.type}),t},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"};const ie={onInitialize:function(e){},get:function(e,t){return de(e,"property",t)},isValidCompletionPosition:function(e){var t=e.getCompleteToken();return 0!=t.string.length&&("?"!==t.string[0]&&"$"!==t.string[0]&&t.state.possibleCurrent.indexOf("a")>=0)},preProcessToken:function(e,t){return ce(e,t)},postProcessSuggestion:function(e,t,r){return pe(e,t,r)},bulk:!1,name:"property"};const ne={onInitialize:function(e){},get:function(e,t){return de(e,"class",t)},isValidCompletionPosition:function(e){var t=e.getCompleteToken();if("?"===t.string[0]||"$"===t.string[0])return!1;var r=e.getDoc().getCursor(),i=e.getPreviousNonWsToken(r.line,t);return"a"===i.state.lastProperty||("rdf:type"===i.state.lastProperty||("rdfs:domain"===i.state.lastProperty||"rdfs:range"===i.state.lastProperty))},preProcessToken:function(e,t){return ce(e,t)},postProcessSuggestion:function(e,t,r){return pe(e,t,r)},bulk:!1,name:"class"};function oe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return se(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?se(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ae=function(){return!!e})()}var le=__webpack_require__(1719);__webpack_require__(991);var ue=function(e){function s(e,r){var o,a,l,u;return(0,t.A)(this,s),a=this,l=s,l=(0,n.A)(l),(o=(0,i.A)(a,ae()?Reflect.construct(l,u||[],(0,n.A)(a).constructor):l.apply(a,u))).yasqe=e,o.config=r,o}return(0,o.A)(s,e),(0,r.A)(s,[{key:"getStorageId",value:function(){return this.yasqe.getStorageId(this.config.persistenceId)}},{key:"storeBulkCompletions",value:function(e){if(e&&e instanceof Array){this.trie=new _;var t,r=oe(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.trie.insert(i)}}catch(e){r.e(e)}finally{r.f()}var n=this.getStorageId();n&&this.yasqe.storage.set(n,e,2592e3,this.yasqe.handleLocalStorageQuotaFull)}}},{key:"getCompletions",value:function(e){if(!this.config.get)return Promise.resolve([]);if(!e)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(function(e){return e instanceof Array?e:[]});var t=e.autocompletionString||e.string;return this.trie?Promise.resolve(M(this.trie.autoComplete(t),100)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(function(e){return 0===e.indexOf(t)})):Promise.resolve(this.config.get(this.yasqe,e)).then(function(e){return e instanceof Array?e:[]})}},{key:"initialize",value:function(){var e=this;if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var t,r=this.getStorageId();return r&&(t=this.yasqe.storage.get(r)),t&&t.length>0?(this.storeBulkCompletions(t),Promise.resolve()):this.getCompletions().then(function(t){return e.storeBulkCompletions(t)})}return Promise.resolve()}},{key:"isValidPosition",value:function(){return!!this.config.isValidCompletionPosition&&(this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1))}},{key:"getHint",value:function(e,t){var r,i;this.config.postProcessSuggestion&&(t=this.config.postProcessSuggestion(this.yasqe,e,t));var n=this.yasqe.getDoc().getCursor();e.from&&(i=Object.assign(Object.assign({},n),e.from));var o=this.yasqe.getDoc().getCursor().line;return{text:t,displayText:t,from:i,to:e.to?{ch:(null===(r=null==e?void 0:e.to)||void 0===r?void 0:r.ch)||this.yasqe.getCompleteToken().end,line:o}:e.string.length>0?{ch:this.yasqe.getCompleteToken().end,line:o}:e.from}}},{key:"getHints",value:function(e){var t=this;return this.config.preProcessToken&&(e=this.config.preProcessToken(this.yasqe,e)),e?this.getCompletions(e).then(function(r){return r.map(function(r){return t.getHint(e,r)})}).then(function(e){return t.config.postprocessHints?t.config.postprocessHints(t.yasqe,e):e}):Promise.resolve([])}},{key:"autocomplete",value:function(e){var t=this;if(!this.isValidPosition())return!1;var r=this.yasqe.state.completionActive,i=this.yasqe.getDoc().getCursor();if(r&&i.sticky&&i.ch!==r.startPos.ch?this.yasqe.state.completionActive.startPos=i:r&&!i.sticky&&i.ch<r.startPos.ch&&(i.sticky=r.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=i.ch,this.yasqe.state.completionActive.startLen--),e&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;var n=function(){return t.getHints(t.yasqe.getCompleteToken()).then(function(e){var r=t.yasqe.getDoc().getCursor(),i=t.yasqe.getCompleteToken(),n={list:e,from:{line:r.line,ch:i.start},to:{line:r.line,ch:i.end}};return le.on(n,"shown",function(){t.yasqe.emit("autocompletionShown",t.yasqe.state.completionActive.widget)}),le.on(n,"close",function(){t.yasqe.emit("autocompletionClose")}),n})};n.async=!1;var o=Object.assign({closeCharacters:/[\s>"]/,completeSingle:!1,hint:n,container:this.yasqe.rootEl,extraKeys:{Home:function(e,t){e.getDoc().setCursor({ch:0,line:t.data.from.line})},End:function(e,t){e.getDoc().setCursor({ch:e.getLine(t.data.to.line).length,line:t.data.to.line})}}},this.yasqe.config.hintConfig);return this.yasqe.showHint(o),!0}}])}(P.EventEmitter);function ce(e,t){var r=e.getPrefixesFromQuery(),i=t.string;if(i.indexOf("<")<0&&(t.tokenPrefix=i.substring(0,i.indexOf(":")+1),null!=r[t.tokenPrefix.slice(0,-1)]&&(t.tokenPrefixUri=r[t.tokenPrefix.slice(0,-1)])),t.autocompletionString=i.trim(),i.indexOf("<")<0&&i.indexOf(":")>-1)for(var n in r)if(t.tokenPrefix===n+":"){t.autocompletionString=r[n],t.autocompletionString+=i.substring(n.length+1);break}return 0==t.autocompletionString.indexOf("<")&&(t.autocompletionString=t.autocompletionString.substring(1)),t.autocompletionString.indexOf(">",t.autocompletionString.length-1)>0&&(t.autocompletionString=t.autocompletionString.substring(0,t.autocompletionString.length-1)),t}function pe(e,t,r){return r=t.tokenPrefix&&t.autocompletionString&&t.tokenPrefixUri?t.tokenPrefix+r.substring(t.tokenPrefixUri.length):"<"+r+">"}var de=function(e,t,r){var i=0===window.location.protocol.indexOf("http")?"https://":"http://",n="autocomplete_"+t;if(!r||!r.string||0==r.string.trim().length)return e.showNotification(n,"Nothing to autocomplete yet!"),Promise.resolve([]);var o=new URLSearchParams;r.autocompletionString&&o.append("q",r.autocompletionString),o.append("page_size","50"),o.append("type",t);var s="".concat(i,"lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?").concat(o.toString());return fetch(s).then(function(e){if(!e.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return e.json()}).then(function(e){return e.results?e.results.map(function(e){return e.uri[0]}):[]}).catch(function(t){e.showNotification(n,"Failed fetching suggestions")})},he=[k,re,ie,ne],fe=__webpack_require__(6691);var Ee=__webpack_require__(1719);__webpack_require__(9754),__webpack_require__(2448),__webpack_require__(7623),__webpack_require__(666),__webpack_require__(5397),__webpack_require__(8023),__webpack_require__(9082),__webpack_require__(8709),__webpack_require__(7899),__webpack_require__(3475),__webpack_require__(4182),__webpack_require__(6824),Ee.registerHelper("fold","prefix",function(e,t){var r=t.line,i=e.getDoc().getLine(r),n=function(t,r){var i=e.getTokenAt(a().Pos(t,r+1));if(!i||"keyword"!=i.type)return-1;var n=d(e,t,i.end+1);if(!n||"string-2"!=n.type)return-1;var o=d(e,t,n.end+1);return o&&"variable-3"==o.type?o.end:-1};if(!function(){for(var t=!1,i=r-1;i>=0;i--)if(e.getDoc().getLine(i).toUpperCase().indexOf(h)>=0){t=!0;break}return t}()){var o=f(e,r,t.ch,i);if(null!=o){for(var s,l=!1,u=e.getDoc().lastLine(),c=n(r,o),p=r,E=r;E<=u&&!l;++E)for(var m=e.getDoc().getLine(E),g=E==r?o+1:0;;){!l&&m.indexOf("{")>=0&&(l=!0);var v=m.toUpperCase().indexOf(h,g);if(!(v>=0))break;(s=n(E,v))>0&&(p=E,g=c=s),g++}return{from:a().Pos(r,o+7),to:a().Pos(p,c)}}}}),Ee.defineMode("sparql11",function(e){var t=__webpack_require__(5406),r=t.table,i="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",n=i+"|_",o="("+n+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",s="("+n+"|[0-9])("+n+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",a="\\?"+s,l="\\$"+s,u="[0-9A-Fa-f]",c="("+("(%"+u+u+")")+"|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%]))",p="_:("+n+"|[0-9])(("+o+"|\\.)*"+o+")?",d="("+("("+i+")((("+o+")|\\.)*("+o+"))?")+")?:",h=d+("("+n+"|:|[0-9]|"+c+")(("+o+"|\\.|:|"+c+")*("+o+"|:|"+c+"))?"),f="[eE][\\+-]?[0-9]+",E="[0-9]+",m="[0-9]*\\.[0-9]+",g="(([0-9]+\\.[0-9]*"+f+")|(\\.[0-9]+"+f+")|([0-9]+"+f+"))",v="\\+"+E,x="\\+"+m,N="\\+"+g,y="-"+E,A="-"+m,L="-"+g,T="\\\\[tbnrf\\\\\"']",I=u+"{4}",S="(\\\\u"+I+"|\\\\U00(10|0"+u+")"+I+")",C="'(([^\\x27\\x5C\\x0A\\x0D])|"+T+"|"+S+")*'",R='"(([^\\x22\\x5C\\x0A\\x0D])|'+T+"|"+S+')*"',b={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+T+"|"+S+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+T+"|"+S+"))*"}};for(var O in b)b[O].COMPLETE=b[O].QUOTES+b[O].CONTENTS+b[O].QUOTES;var _={};for(var P in b)_[P]={complete:{name:"STRING_LITERAL_LONG_"+P,regex:new RegExp("^"+b[P].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+P,regex:new RegExp("^"+b[P].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+P,regex:new RegExp("^"+b[P].CONTENTS+b[P].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+P,regex:new RegExp("^"+b[P].QUOTES),style:"string"}};var w="[\\x20\\x09\\x0D\\x0A]",D="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",M="("+w+"|("+D+"))*",k="\\("+M+"\\)",G="\\["+M+"\\]",U=[{name:"WS",regex:new RegExp("^"+w+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+D),style:"comment"},{name:"IRI_REF",regex:new RegExp('^<[^<>"`|{}^\\\0- ]*>'),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+a),style:"atom"},{name:"VAR2",regex:new RegExp("^"+l),style:"atom"},{name:"LANGTAG",regex:new RegExp("^@[a-zA-Z]+(-[a-zA-Z0-9]+)*"),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+g),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+m),style:"number"},{name:"INTEGER",regex:new RegExp("^"+E),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+N),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+x),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+v),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+L),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+A),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+y),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+C),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+R),style:"string"},{name:"NIL",regex:new RegExp("^"+k),style:"punc"},{name:"ANON",regex:new RegExp("^"+G),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+h),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+d),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+p),style:"string-2"}];function B(e){var t=[],i=r[e];if(null!=i)for(var n in i)t.push(n.toString());else t.push(e);return t}function F(e,i){function n(){var t=e.column();i.errorStartPos=t,i.errorEndPos=t+l.string.length}function o(e){if(null==i.queryType)switch(e){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":i.queryType=e}}function s(e){switch(i.inPrefixDecl="prefixDecl"===e,e){case"disallowVars":i.allowVars=!1;break;case"allowVars":i.allowVars=!0;break;case"disallowBnodes":i.allowBnodes=!1;break;case"allowBnodes":i.allowBnodes=!0;break;case"storeProperty":i.storeProperty=!0}}function a(e){return(i.allowVars||"var"!=e)&&(i.allowBnodes||"blankNode"!=e&&"blankNodePropertyList"!=e&&"blankNodePropertyListPath"!=e)}0==e.pos&&(i.possibleCurrent=i.possibleNext);var l=function(){var r;if(i.inLiteral){var n=!1;if((r=e.match(_[i.inLiteral].contents.regex,!0,!1))&&0==r[0].length&&(r=e.match(_[i.inLiteral].closing.regex,!0,!1),n=!0),r&&r[0].length>0){var o={quotePos:n?"end":"content",cat:b[i.inLiteral].CAT,style:_[i.inLiteral].complete.style,string:r[0],start:e.start};return n&&(i.inLiteral=void 0),o}}for(var s in _){var a;if(r=e.match(_[s].quotes.regex,!0,!1))return i.inLiteral?(i.inLiteral=void 0,a="end"):(i.inLiteral=s,a="start"),{cat:b[s].CAT,style:_[s].quotes.style,string:r[0],quotePos:a,start:e.start}}for(var l=0;l<U.length;++l)if(r=e.match(U[l].regex,!0,!1))return{cat:U[l].name,style:U[l].style,string:r[0],start:e.start,quotePos:void 0};return(r=e.match(t.keywords,!0,!1))?{cat:e.current().toUpperCase(),style:"keyword",string:r[0],start:e.start,quotePos:void 0}:(r=e.match(t.punct,!0,!1))?{cat:e.current(),style:"punc",string:r[0],start:e.start,quotePos:void 0}:{cat:"<invalid_token>",style:"error",string:(r=e.match(/^.[A-Za-z0-9]*/,!0,!1))[0],start:e.start,quotePos:void 0}}();if("<invalid_token>"==l.cat)return 1==i.OK&&(i.OK=!1,n()),i.complete=!1,l.style;if("WS"===l.cat||"COMMENT"===l.cat||l.quotePos&&"end"!=l.quotePos)return i.possibleCurrent=i.possibleNext,i.possibleFullIri=!1,l.style;var u,c=!1,p=l.cat;if(i.possibleFullIri&&">"===l.string&&(i.possibleFullIri=!1),i.possibleFullIri||"<"!==l.string||(i.possibleFullIri=!0),!l.quotePos||"end"==l.quotePos)for(;i.stack.length>0&&p&&i.OK&&!c;)if("var"===(u=i.stack.pop())&&l.string&&(i.variables[l.string]=l.string),r[u]){var d=r[u][p];if(null!=d&&a(u)){for(var h=d.length-1;h>=0;--h)i.stack.push(d[h]);s(u)}else i.OK=!1,i.complete=!1,n(),i.stack.push(u)}else if(u==p){i.inPrefixDecl&&("PNAME_NS"===u&&l.string.length>0?i.currentPnameNs=l.string.slice(0,-1):"string"==typeof i.currentPnameNs&&l.string.length>1&&(i.prefixes[i.currentPnameNs]=l.string.slice(1,-1),i.currentPnameNs=void 0)),c=!0,o(u);for(var f=!0,E=i.stack.length;E>0;--E){var m=r[i.stack[E-1]];m&&m.$||(f=!1)}if(i.complete=f,i.storeProperty&&"punc"!=p?(i.lastProperty=l.string,i.lastPropertyIndex=l.start,i.storeProperty=!1):"."!==p&&";"!==p||(i.lastProperty="",i.lastPropertyIndex=0),!i.inPrefixDecl&&("PNAME_NS"===p||"PNAME_LN"===p)){var g=l.string.indexOf(":");if(g>=0){var v=l.string.slice(0,g);void 0===i.prefixes[v]&&(i.OK=!1,n(),i.errorMsg="Prefix '"+v+"' is not defined")}}}else i.OK=!1,i.complete=!1,n();if(!c&&i.OK&&(i.OK=!1,i.complete=!1,n()),i.possibleNext.indexOf("a")>=0)for(var x=e.string,N=l.start;N>=0;N--)if(" "!==x[N-1]){"|"===x[N-1]||"/"===x[N-1]||"punc"===l.style||(i.lastPredicateOffset=l.start);break}return i.possibleCurrent=i.possibleNext,i.possibleNext=B(i.stack[i.stack.length-1]),l.style}var V={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},H={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};return{token:F,startState:function(){return{tokenize:F,OK:!0,complete:t.acceptEmpty,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:B(t.startSymbol),possibleNext:B(t.startSymbol),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[t.startSymbol],lastPredicateOffset:e.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:function(t,r){var i;if(t.inLiteral)return 0;if(void 0!==t.lastPredicateOffset&&t.stack.length&&"?[or([verbPath,verbSimple]),objectListPath]"==t.stack[t.stack.length-1])return t.lastPredicateOffset;var n=0,o=t.stack.length-1;if(/^[\}\]\)]/.test(r)){for(var s=r.substr(0,1);o>=0;--o)if(t.stack[o]==s){--o;break}}else{var a=V[t.stack[o]];a&&(n+=a,--o)}for(;o>=0;--o){var l=H[t.stack[o]];l&&(n+=l)}return n*(null!==(i=e.indentUnit)&&void 0!==i?i:2)},electricChars:"}])"}});const me=Ee;function ge(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ve(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xe=function(){return!!e})()}__webpack_require__(2700),__webpack_require__(3380);var Ne=function(e){function s(e){var r,o,a,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,t.A)(this,s),o=this,a=s,a=(0,n.A)(a),(r=(0,i.A)(o,xe()?Reflect.construct(a,l||[],(0,n.A)(o).constructor):a.apply(o,l))).autocompleters={},r.prevQueryValid=!1,r.queryValid=!0,r.isFullscreen=!1,r.handleHashChange=function(){var e,t;null===(t=(e=r.config).consumeShareLink)||void 0===t||t.call(e,r)},r.notificationEls={},!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");r.rootEl=document.createElement("div"),r.rootEl.className="yasqe",e.appendChild(r.rootEl),r.config=(0,A.A)({},s.defaults,u);var c,p=me(r.rootEl,r.config),d=ge(Object.getOwnPropertyNames(s.prototype));try{for(d.s();!(c=d.n()).done;){var h=c.value;p[h]=s.prototype[h].bind(r)}}catch(e){d.e(e)}finally{d.f()}Object.assign(r,me.prototype,p),r.storage=new m.wc(s.storageNamespace),r.drawButtons();var f=r.getStorageId();if(f){var E=r.storage.get(f);r.persistentConfig=E&&"string"==typeof E?{query:E,editorHeight:r.config.editorHeight}:E,r.persistentConfig||(r.persistentConfig={query:r.getValue(),editorHeight:r.config.editorHeight}),r.persistentConfig&&r.persistentConfig.query&&r.setValue(r.persistentConfig.query)}return r.config.autocompleters.forEach(function(e){return r.enableCompleter(e).then(function(){},console.warn)}),r.config.consumeShareLink&&(r.config.consumeShareLink(r),window.addEventListener("hashchange",r.handleHashChange)),r.checkSyntax(),r.persistentConfig&&r.persistentConfig.editorHeight?r.getWrapperElement().style.height=r.persistentConfig.editorHeight:r.config.editorHeight&&(r.getWrapperElement().style.height=r.config.editorHeight),r.config.resizeable&&r.drawResizer(),r.config.collapsePrefixesOnLoad&&r.collapsePrefixes(!0),r.registerEventListeners(),r}return(0,o.A)(s,e),(0,r.A)(s,[{key:"handleChange",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleBlur",value:function(){this.saveQuery()}},{key:"handleChanges",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleCursorActivity",value:function(){this.autocomplete(!0)}},{key:"handleQuery",value:function(e,t,r){this.req=t,this.abortController=r,this.updateQueryButton()}},{key:"handleQueryResponse",value:function(e,t,r){this.lastQueryDuration=r,this.req=void 0,this.updateQueryButton()}},{key:"handleQueryAbort",value:function(e,t){this.req=void 0,this.updateQueryButton()}},{key:"registerEventListeners",value:function(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}},{key:"unregisterEventListeners",value:function(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];me.signal.apply(me,[this,e,this].concat(r))}},{key:"getStorageId",value:function(e){var t=e||this.config.persistenceId;if(t)return"string"==typeof t?t:t(this)}},{key:"drawButtons",value:function(){var e=this,t=document.createElement("div");if(t.className="yasqe_buttons",this.getWrapperElement().appendChild(t),this.config.pluginButtons){var r=this.config.pluginButtons();if(!r)return;if(Array.isArray(r)){var i,n=ge(r);try{for(n.s();!(i=n.n()).done;){var o=i.value;t.append(o)}}catch(e){n.e(e)}finally{n.f()}}else t.appendChild(r)}if(this.config.createShareableLink){var s=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>'),a=document.createElement("button");a.className="yasqe_share",a.title="Share query",a.setAttribute("aria-label","Share query"),a.appendChild(s),t.appendChild(a),a.addEventListener("click",function(e){return l(e)}),a.addEventListener("keydown",function(e){"Enter"===e.code&&l(e)});var l=function(r){r.stopPropagation();var i=document.createElement("div");i.className="yasqe_sharePopup",t.appendChild(i),document.body.addEventListener("click",function(e){i&&e.target!==i&&!i.contains(e.target)&&(i.remove(),i=void 0)},!0);var n=document.createElement("input");n.type="text",n.value=e.config.createShareableLink(e),n.onfocus=function(){n.select()},n.onmouseup=function(){return!1},i.innerHTML="";var o=document.createElement("div");o.className="inputWrapper",o.appendChild(n),i.appendChild(o);var a=[],l=e.config.createShortLink;if(l){i.className=i.className+=" enableShort";var u=document.createElement("button");a.push(u),u.innerHTML="Shorten",u.className="yasqe_btn yasqe_btn-sm shorten",i.appendChild(u),u.onclick=function(){a.forEach(function(e){return e.disabled=!0}),l(e,n.value).then(function(e){n.value=e,n.focus()},function(e){var t=document.createElement("span");t.className="shortlinkErr";var r="An error has occurred";"string"==typeof e&&0!==e.length?r=e:e.message&&0!==e.message.length&&(r=e.message),t.textContent=r,n.replaceWith(t)})}}var c=document.createElement("button");a.push(c),c.innerText="cURL",c.className="yasqe_btn yasqe_btn-sm curl",i.appendChild(c),c.onclick=function(){a.forEach(function(e){return e.disabled=!0}),n.value=e.getAsCurlString(),n.focus(),null==i||i.appendChild(c)};var p=s.getBoundingClientRect();i.style.top=s.offsetTop+p.height+"px",i.style.left=s.offsetLeft+s.clientWidth-i.clientWidth+"px",n.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),(0,m.iQ)(this.queryBtn,"yasqe_queryButton");var u=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>');(0,m.iQ)(u,"queryIcon"),this.queryBtn.appendChild(u);var c=(0,m.Mg)(O);(0,m.iQ)(c,"warningIcon"),this.queryBtn.appendChild(c),this.queryBtn.onclick=function(){e.config.queryingDisabled||(e.req?e.abortQuery():e.query().catch(function(){}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),t.appendChild(this.queryBtn),this.updateQueryButton()}this.fullscreenBtn=document.createElement("button"),(0,m.iQ)(this.fullscreenBtn,"yasqe_fullscreenButton");var p=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');(0,m.iQ)(p,"fullscreenIcon"),this.fullscreenBtn.appendChild(p);var d=(0,m.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>');(0,m.iQ)(d,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(d),this.fullscreenBtn.onclick=function(){e.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),t.appendChild(this.fullscreenBtn)}},{key:"toggleFullscreen",value:function(){var e,t;this.isFullscreen=!this.isFullscreen,this.isFullscreen?((0,m.iQ)(this.rootEl,"fullscreen"),null===(e=this.fullscreenBtn)||void 0===e||e.setAttribute("title","Exit fullscreen (F11)")):((0,m.vy)(this.rootEl,"fullscreen"),null===(t=this.fullscreenBtn)||void 0===t||t.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}},{key:"getIsFullscreen",value:function(){return this.isFullscreen}},{key:"drawResizer",value:function(){if(!this.resizeWrapper){this.resizeWrapper=document.createElement("div"),(0,m.iQ)(this.resizeWrapper,"resizeWrapper");var e=document.createElement("div");(0,m.iQ)(e,"resizeChip"),this.resizeWrapper.appendChild(e),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}}},{key:"initDrag",value:function(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}},{key:"calculateDragOffset",value:function(e,t){var r=0;t.offsetParent&&(r=t.offsetParent.offsetTop);for(var i=0,n=t.parentElement;n;)i+=n.scrollTop,n=n.parentElement;return e.clientY-r-this.rootEl.offsetTop+i}},{key:"doDrag",value:function(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}},{key:"stopDrag",value:function(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}},{key:"duplicateLine",value:function(){var e=this.getDoc().getCursor();if(e){var t=this.getDoc().getLine(e.line);this.getDoc().replaceRange(t+"\n"+t,{ch:0,line:e.line},{ch:t.length,line:e.line})}}},{key:"updateQueryButton",value:function(e){this.queryBtn&&(this.config.queryingDisabled?((0,m.iQ)(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):((0,m.vy)(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&((0,m.vy)(this.queryBtn,"query_"+this.queryStatus),(0,m.iQ)(this.queryBtn,"query_"+e),this.queryStatus=e),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}},{key:"handleLocalStorageQuotaFull",value:function(e){console.warn("Localstorage quota exceeded. Clearing all queries"),s.clearStorage()}},{key:"saveQuery",value:function(){var e=this.getStorageId();e&&this.persistentConfig&&(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}},{key:"getQueryType",value:function(){return this.getOption("queryType")}},{key:"getQueryMode",value:function(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}},{key:"getVariablesFromQuery",value:function(){var e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),t=[];for(var r in e.state.variables)t.push(r);return t.sort()}},{key:"autoformatSelection",value:function(e,t){var r=this.getValue();return r=r.substring(e,t),s.autoformatString(r)}},{key:"commentLines",value:function(){for(var e=this.getDoc().getCursor("start").line,t=this.getDoc().getCursor("end").line,r=Math.min(e,t),i=Math.max(e,t),n=!0,o=r;o<=i;o++){var s=this.getDoc().getLine(o);if(0==s.length||"#"!=s.substring(0,1)){n=!1;break}}for(o=r;o<=i;o++)n?this.getDoc().replaceRange("",{line:o,ch:0},{line:o,ch:1}):this.getDoc().replaceRange("#",{line:o,ch:0})}},{key:"autoformat",value:function(){var e=this;this.getDoc().somethingSelected()||this.execCommand("selectAll");var t=this.getDoc().getCursor("start"),r={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},i=this.getDoc().indexFromPos(t),n=this.getDoc().indexFromPos(r),o=this.autoformatSelection(i,n);this.operation(function(){e.getDoc().replaceRange(o,t,r);for(var n=e.getDoc().posFromIndex(i).line,s=e.getDoc().posFromIndex(i+o.length).line,a=n;a<=s;a++)e.indentLine(a,"smart")})}},{key:"getQueryWithValues",value:function(e){if(!e)return this.getValue();var t;if("string"==typeof e)t=e;else{e instanceof Array||(e=[e]);var r=e.reduce(function(e,t){for(var r in t)e[r]=r;return e},{}),i=[];for(var n in r)i.push(n);if(!i.length)return this.getValue();t="VALUES ("+i.join(" ")+") {\n",e.forEach(function(e){t+="( ",i.forEach(function(r){t+=e[r]||"UNDEF"}),t+=" )\n"}),t+="}\n"}if(!t)return this.getValue();var o="",a=!1,l=!1;return s.runMode(this.getValue(),"sparql11",function(e,r,i,n,s){"keyword"===r&&"select"===e.toLowerCase()&&(l=!0),o+=e,l&&!a&&"punc"===r&&"{"===e&&(a=!0,o+="\n"+t)}),o}},{key:"getValueWithoutComments",value:function(){var e="";return s.runMode(this.getValue(),"sparql11",function(t,r){"comment"!=r&&(e+=t)}),e}},{key:"setCheckSyntaxErrors",value:function(e){this.config.syntaxErrorCheck=e,this.checkSyntax()}},{key:"checkSyntax",value:function(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e=0;e<this.getDoc().lineCount();++e){var t=!1;this.prevQueryValid||(t=!0);var r=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},t),i=r.state;if(this.setOption("queryType",i.queryType),0==i.OK){if(!this.config.syntaxErrorCheck){for(var n=this.getWrapperElement().querySelectorAll(".sp-error"),o=0;o<n.length;o++){var s=n[o];s.style&&(s.style.color="black")}return}var a=(0,m.Mg)(O);if(i.errorMsg)v(0,a,(0,fe.A)(r.state.errorMsg));else if(i.possibleCurrent&&i.possibleCurrent.length>0){var l=[];i.possibleCurrent.forEach(function(e){l.push("<strong style='text-decoration:underline'>"+(0,fe.A)(e)+"</strong>")}),v(0,a,"This line is invalid. Expected: "+l.join(", "))}a.className="parseErrorIcon",this.setGutterMarker(e,"gutterErrorBar",a),this.queryValid=!1;break}}}},{key:"getCompleteToken",value:function(e,t){return l(this,e,t)}},{key:"getPreviousNonWsToken",value:function(e,t){return p(this,e,t)}},{key:"getNextNonWsToken",value:function(e,t){return d(this,e,t)}},{key:"showNotification",value:function(e,t){if(!this.notificationEls[e]){var r=document.createElement("div");(0,m.iQ)(r,"notificationContainer"),this.getWrapperElement().appendChild(r),this.notificationEls[e]=document.createElement("div"),(0,m.iQ)(this.notificationEls[e],"notification","notif_"+e),r.appendChild(this.notificationEls[e])}for(var i in this.notificationEls)i!==e&&this.hideNotification(i);var n=this.notificationEls[e];(0,m.iQ)(n,"active"),n.innerText=t}},{key:"hideNotification",value:function(e){this.notificationEls[e]&&(0,m.vy)(this.notificationEls[e],"active")}},{key:"enableCompleter",value:function(e){return s.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new ue(this,s.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}},{key:"disableCompleter",value:function(e){this.config.autocompleters=this.config.autocompleters.filter(function(t){return t!==e}),this.autocompleters[e]=void 0}},{key:"autocomplete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.getDoc().somethingSelected())for(var t in this.config.autocompleters){var r=this.autocompleters[this.config.autocompleters[t]];r&&r.autocomplete(e)}}},{key:"collapsePrefixes",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=function(e){for(var t=e.getDoc().lastLine(),r=0;r<=t;++r){var i=f(e,r);if(null!=i&&i>=0)return r}}(this);void 0!==t&&this.foldCode(t,me.fold.prefix,e?"fold":"unfold")}},{key:"getPrefixesFromQuery",value:function(){return(e=this).getTokenAt({line:e.getDoc().lastLine(),ch:e.getDoc().getLine(e.getDoc().lastLine()).length},!0).state.prefixes;var e}},{key:"addPrefixes",value:function(e){return function(e,t){var r=e.getPrefixesFromQuery();if("string"==typeof t)E(e,t);else for(var i in t)i in r||E(e,i+": <"+t[i]+">");e.collapsePrefixes(!1)}(this,e)}},{key:"removePrefixes",value:function(e){return function(e,t){var r=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var i in t)e.setValue(e.getValue().replace(new RegExp("PREFIX\\s*"+i+":\\s*"+r("<"+t[i]+">")+"\\s*","ig"),""));e.collapsePrefixes(!1)}(this,e)}},{key:"updateWidget",value:function(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){var e=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=e+"px"}}},{key:"query",value:function(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.abortQuery(),S(this,e))}},{key:"getUrlParams",value:function(){var e={};return window.location.hash.length>1&&(e=g.parse(location.hash)),e&&"query"in e||!(window.location.search.length>1)||(e=g.parse(window.location.search)),e}},{key:"configToQueryParams",value:function(){var e={};return window.location.hash.length>1&&(e=g.parse(window.location.hash)),e.query=this.getValue(),e}},{key:"queryParamsToConfig",value:function(e){e&&e.query&&"string"==typeof e.query&&this.setValue(e.query)}},{key:"getAsCurlString",value:function(e){return b(this,e)}},{key:"abortQuery",value:function(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}},{key:"expandEditor",value:function(){this.setSize(null,"100%")}},{key:"destroy",value:function(){var e,t;for(var r in this.abortQuery(),this.unregisterEventListeners(),null===(e=this.resizeWrapper)||void 0===e||e.removeEventListener("mousedown",this.initDrag,!1),null===(t=this.resizeWrapper)||void 0===t||t.removeEventListener("dblclick",this.expandEditor),this.autocompleters)this.disableCompleter(r);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}}],[{key:"autoformatString",value:function(e){var t=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],r=["}"],i="",n="",o=[];return s.runMode(e,"sparql11",function(e,s){o.push(s);var a=function(e){if("{"===e)return 1;if("."===e)return 1;if(";"===e)return o.length>2&&"punc"===o[o.length-2]?0:1;for(var i=0;i<t.length;i++)if(o.valueOf().toString()===t[i].valueOf().toString())return 1;for(i=0;i<r.length;i++)if(""!==n.trim()&&e==r[i])return-1;return 0}(e);0!=a?(1==a?(i+=e+"\n",n=""):(i+="\n"+e,n=e),o=[]):(n+=e,i+=e),1==o.length&&"sp-ws"==o[0]&&(o=[])}),i.replace(/\n\s*\n/g,"\n").trim()}},{key:"clearStorage",value:function(){new m.wc(s.storageNamespace).removeNamespace()}},{key:"registerAutocompleter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.name;s.Autocompleters[r]=e,t&&s.defaults.autocompleters.indexOf(r)<0&&s.defaults.autocompleters.push(r)}},{key:"forkAutocompleter",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!s.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!(null==t?void 0:t.name))throw new Error("Expected a name for newly registered autocompleter");var i=t.name;s.Autocompleters[i]=Object.assign(Object.assign({},s.Autocompleters[e]),t),r&&s.defaults.autocompleters.indexOf(i)<0&&s.defaults.autocompleters.push(i)}}])}(me);Ne.storageNamespace="triply",Ne.Sparql=e,Ne.runMode=me.runMode,Ne.Autocompleters={},Ne.defaults=function(){var e=__webpack_require__(1719),t={mode:"sparql11",value:"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nSELECT * WHERE {\n ?sub ?pred ?obj .\n} LIMIT 10",highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new e.fold.combine(e.fold.brace,e.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(e){e.autocomplete()},"Shift-Ctrl-K":function(e){var t=e,r=t.getDoc().getCursor().line;return r===t.getDoc().lastLine()&&r>1?t.getDoc().replaceRange("",{ch:t.getDoc().getLine(r-1).length,line:r-1},{ch:t.getDoc().getLine(r).length,line:r}):t.getDoc().replaceRange("",{ch:0,line:r},{ch:0,line:r+1})},"Ctrl-/":function(e){e.commentLines()},"Shift-Ctrl-D":function(e){e.duplicateLine()},"Shift-Ctrl-F":function(e){e.autoformat()},"Ctrl-S":function(e){e.saveQuery()},"Cmd-Enter":function(e){e.query().catch(function(){})},"Ctrl-Enter":function(e){e.query().catch(function(){})},Esc:function(e){e.getInputField().blur()}},createShareableLink:function(e){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+g.stringify(e.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(e){e.queryParamsToConfig(e.getUrlParams())},persistenceId:function(e){var t="",r=e.rootEl;for(r.id&&(t=r.id);r&&r!==document;r=r.parentNode)if(r){r.id&&(t=r.id);break}return"yasqe_"+t+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json"},r={queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"text/turtle,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1};return Object.assign(Object.assign({},t),{requestConfig:r})}(),Object.assign(me.prototype,Ne.prototype),he.forEach(function(e){Ne.registerAutocompleter(e)});const ye=Ne})(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})());
3
3
  //# sourceMappingURL=yasqe.min.js.map