@matdata/yasqe 5.16.0 → 5.17.0

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,45 +1,45 @@
1
- "use strict";var Yasqe=(()=>{var rb=Object.create;var Fd=Object.defineProperty;var tb=Object.getOwnPropertyDescriptor;var ib=Object.getOwnPropertyNames;var sb=Object.getPrototypeOf,nb=Object.prototype.hasOwnProperty;var yr=(i,m)=>()=>(m||i((m={exports:{}}).exports,m),m.exports),Jm=(i,m)=>{for(var e in m)Fd(i,e,{get:m[e],enumerable:!0})},_m=(i,m,e,A)=>{if(m&&typeof m=="object"||typeof m=="function")for(let R of ib(m))!nb.call(i,R)&&R!==e&&Fd(i,R,{get:()=>m[R],enumerable:!(A=tb(m,R))||A.enumerable});return i};var jt=(i,m,e)=>(e=i!=null?rb(sb(i)):{},_m(m||!i||!i.__esModule?Fd(e,"default",{value:i,enumerable:!0}):e,i)),ob=i=>_m(Fd({},"__esModule",{value:!0}),i);var ni=yr((YE,HE)=>{(function(i,m){typeof YE=="object"&&typeof HE<"u"?HE.exports=m():typeof define=="function"&&define.amd?define(m):(i=i||self,i.CodeMirror=m())})(YE,function(){"use strict";var i=navigator.userAgent,m=navigator.platform,e=/gecko\/\d/i.test(i),A=/MSIE \d/.test(i),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),L=/Edge\/(\d+)/.exec(i),F=A||R||L,Z=F&&(A?document.documentMode||6:+(L||R)[1]),M=!L&&/WebKit\//.test(i),Y=M&&/Qt\/\d+\.\d+/.test(i),P=!L&&/Chrome\/(\d+)/.exec(i),D=P&&+P[1],z=/Opera\//.test(i),W=/Apple Computer/.test(navigator.vendor),$=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),J=/PhantomJS/.test(i),O=W&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),V=/Android/.test(i),H=O||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),q=O||/Mac/.test(m),K=/\bCrOS\b/.test(i),ee=/win/i.test(m),ne=z&&i.match(/Version\/(\d*\.\d*)/);ne&&(ne=Number(ne[1])),ne&&ne>=15&&(z=!1,M=!0);var de=q&&(Y||z&&(ne==null||ne<12.11)),Se=e||F&&Z>=9;function be(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Ze=function(s,l){var g=s.className,h=be(l).exec(g);if(h){var v=g.slice(h.index+h[0].length);s.className=g.slice(0,h.index)+(v?h[1]+v:"")}};function Be(s){for(var l=s.childNodes.length;l>0;--l)s.removeChild(s.firstChild);return s}function Ke(s,l){return Be(s).appendChild(l)}function Ee(s,l,g,h){var v=document.createElement(s);if(g&&(v.className=g),h&&(v.style.cssText=h),typeof l=="string")v.appendChild(document.createTextNode(l));else if(l)for(var b=0;b<l.length;++b)v.appendChild(l[b]);return v}function Er(s,l,g,h){var v=Ee(s,l,g,h);return v.setAttribute("role","presentation"),v}var ur;document.createRange?ur=function(s,l,g,h){var v=document.createRange();return v.setEnd(h||s,g),v.setStart(s,l),v}:ur=function(s,l,g){var h=document.body.createTextRange();try{h.moveToElementText(s.parentNode)}catch{return h}return h.collapse(!0),h.moveEnd("character",g),h.moveStart("character",l),h};function or(s,l){if(l.nodeType==3&&(l=l.parentNode),s.contains)return s.contains(l);do if(l.nodeType==11&&(l=l.host),l==s)return!0;while(l=l.parentNode)}function Or(s){var l=s.ownerDocument||s,g;try{g=s.activeElement}catch{g=l.body||null}for(;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;return g}function je(s,l){var g=s.className;be(l).test(g)||(s.className+=(g?" ":"")+l)}function et(s,l){for(var g=s.split(" "),h=0;h<g.length;h++)g[h]&&!be(g[h]).test(l)&&(l+=" "+g[h]);return l}var rt=function(s){s.select()};O?rt=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:F&&(rt=function(s){try{s.select()}catch{}});function cr(s){return s.display.wrapper.ownerDocument}function qe(s){return Pe(s.display.wrapper)}function Pe(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function Ir(s){return cr(s).defaultView}function Me(s){var l=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,l)}}function Rr(s,l,g){l||(l={});for(var h in s)s.hasOwnProperty(h)&&(g!==!1||!l.hasOwnProperty(h))&&(l[h]=s[h]);return l}function dr(s,l,g,h,v){l==null&&(l=s.search(/[^\s\u00a0]/),l==-1&&(l=s.length));for(var b=h||0,N=v||0;;){var y=s.indexOf(" ",b);if(y<0||y>=l)return N+(l-b);N+=y-b,N+=g-N%g,b=y+1}}var Hr=function(){this.id=null,this.f=null,this.time=0,this.handler=Me(this.onTimeout,this)};Hr.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},Hr.prototype.set=function(s,l){this.f=l;var g=+new Date+s;(!this.id||g<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=g)};function Cr(s,l){for(var g=0;g<s.length;++g)if(s[g]==l)return g;return-1}var ti=50,Ge={toString:function(){return"CodeMirror.Pass"}},fe={scroll:!1},Ar={origin:"*mouse"},mr={origin:"+move"};function Ue(s,l,g){for(var h=0,v=0;;){var b=s.indexOf(" ",h);b==-1&&(b=s.length);var N=b-h;if(b==s.length||v+N>=l)return h+Math.min(N,l-v);if(v+=b-h,v+=g-v%g,h=b+1,v>=l)return h}}var Vr=[""];function ii(s){for(;Vr.length<=s;)Vr.push(xe(Vr)+" ");return Vr[s]}function xe(s){return s[s.length-1]}function Ft(s,l){for(var g=[],h=0;h<s.length;h++)g[h]=l(s[h],h);return g}function gt(s,l,g){for(var h=0,v=g(l);h<s.length&&g(s[h])<=v;)h++;s.splice(h,0,l)}function Et(){}function ts(s,l){var g;return Object.create?g=Object.create(s):(Et.prototype=s,g=new Et),l&&Rr(l,g),g}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function mt(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||De.test(s))}function Le(s,l){return l?l.source.indexOf("\\w")>-1&&mt(s)?!0:l.test(s):mt(s)}function sr(s){for(var l in s)if(s.hasOwnProperty(l)&&s[l])return!1;return!0}var pt=/[\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 dt(s){return s.charCodeAt(0)>=768&&pt.test(s)}function nr(s,l,g){for(;(g<0?l>0:l<s.length)&&dt(s.charAt(l));)l+=g;return l}function Wr(s,l,g){for(var h=l>g?-1:1;;){if(l==g)return l;var v=(l+g)/2,b=h<0?Math.ceil(v):Math.floor(v);if(b==l)return s(b)?l:g;s(b)?g=b:l=b+h}}function vt(s,l,g,h){if(!s)return h(l,g,"ltr",0);for(var v=!1,b=0;b<s.length;++b){var N=s[b];(N.from<g&&N.to>l||l==g&&N.to==l)&&(h(Math.max(N.from,l),Math.min(N.to,g),N.level==1?"rtl":"ltr",b),v=!0)}v||h(l,g,"ltr")}var Bt=null;function Lt(s,l,g){var h;Bt=null;for(var v=0;v<s.length;++v){var b=s[v];if(b.from<l&&b.to>l)return v;b.to==l&&(b.from!=b.to&&g=="before"?h=v:Bt=v),b.from==l&&(b.from!=b.to&&g!="before"?h=v:Bt=v)}return h??Bt}var si=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function g(G){return G<=247?s.charAt(G):1424<=G&&G<=1524?"R":1536<=G&&G<=1785?l.charAt(G-1536):1774<=G&&G<=2220?"r":8192<=G&&G<=8203?"w":G==8204?"b":"L"}var h=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,b=/[LRr]/,N=/[Lb1n]/,y=/[1n]/;function w(G,k,_){this.level=G,this.from=k,this.to=_}return function(G,k){var _=k=="ltr"?"L":"R";if(G.length==0||k=="ltr"&&!h.test(G))return!1;for(var ie=G.length,te=[],ae=0;ae<ie;++ae)te.push(g(G.charCodeAt(ae)));for(var ce=0,he=_;ce<ie;++ce){var ve=te[ce];ve=="m"?te[ce]=he:he=ve}for(var Ce=0,Ie=_;Ce<ie;++Ce){var Re=te[Ce];Re=="1"&&Ie=="r"?te[Ce]="n":b.test(Re)&&(Ie=Re,Re=="r"&&(te[Ce]="R"))}for(var ke=1,We=te[0];ke<ie-1;++ke){var tr=te[ke];tr=="+"&&We=="1"&&te[ke+1]=="1"?te[ke]="1":tr==","&&We==te[ke+1]&&(We=="1"||We=="n")&&(te[ke]=We),We=tr}for(var Tr=0;Tr<ie;++Tr){var ut=te[Tr];if(ut==",")te[Tr]="N";else if(ut=="%"){var Ur=void 0;for(Ur=Tr+1;Ur<ie&&te[Ur]=="%";++Ur);for(var Jt=Tr&&te[Tr-1]=="!"||Ur<ie&&te[Ur]=="1"?"1":"N",Mt=Tr;Mt<Ur;++Mt)te[Mt]=Jt;Tr=Ur-1}}for(var jr=0,Dt=_;jr<ie;++jr){var ht=te[jr];Dt=="L"&&ht=="1"?te[jr]="L":b.test(ht)&&(Dt=ht)}for(var tt=0;tt<ie;++tt)if(v.test(te[tt])){var zr=void 0;for(zr=tt+1;zr<ie&&v.test(te[zr]);++zr);for(var Zr=(tt?te[tt-1]:_)=="L",Qt=(zr<ie?te[zr]:_)=="L",Vn=Zr==Qt?Zr?"L":"R":_,Is=tt;Is<zr;++Is)te[Is]=Vn;tt=zr-1}for(var Rt=[],wi,ft=0;ft<ie;)if(N.test(te[ft])){var cl=ft;for(++ft;ft<ie&&N.test(te[ft]);++ft);Rt.push(new w(0,cl,ft))}else{var Hi=ft,ks=Rt.length,Xs=k=="rtl"?1:0;for(++ft;ft<ie&&te[ft]!="L";++ft);for(var Gt=Hi;Gt<ft;)if(y.test(te[Gt])){Hi<Gt&&(Rt.splice(ks,0,new w(1,Hi,Gt)),ks+=Xs);var Wn=Gt;for(++Gt;Gt<ft&&y.test(te[Gt]);++Gt);Rt.splice(ks,0,new w(2,Wn,Gt)),ks+=Xs,Hi=Gt}else++Gt;Hi<ft&&Rt.splice(ks,0,new w(1,Hi,ft))}return k=="ltr"&&(Rt[0].level==1&&(wi=G.match(/^\s+/))&&(Rt[0].from=wi[0].length,Rt.unshift(new w(0,0,wi[0].length))),xe(Rt).level==1&&(wi=G.match(/\s+$/))&&(xe(Rt).to-=wi[0].length,Rt.push(new w(0,ie-wi[0].length,ie)))),k=="rtl"?Rt.reverse():Rt}}();function Sr(s,l){var g=s.order;return g==null&&(g=s.order=si(s.text,l)),g}var Ot=[],Oe=function(s,l,g){if(s.addEventListener)s.addEventListener(l,g,!1);else if(s.attachEvent)s.attachEvent("on"+l,g);else{var h=s._handlers||(s._handlers={});h[l]=(h[l]||Ot).concat(g)}};function oi(s,l){return s._handlers&&s._handlers[l]||Ot}function Jr(s,l,g){if(s.removeEventListener)s.removeEventListener(l,g,!1);else if(s.detachEvent)s.detachEvent("on"+l,g);else{var h=s._handlers,v=h&&h[l];if(v){var b=Cr(v,g);b>-1&&(h[l]=v.slice(0,b).concat(v.slice(b+1)))}}}function hr(s,l){var g=oi(s,l);if(g.length)for(var h=Array.prototype.slice.call(arguments,2),v=0;v<g.length;++v)g[v].apply(null,h)}function xr(s,l,g){return typeof l=="string"&&(l={type:l,preventDefault:function(){this.defaultPrevented=!0}}),hr(s,g||l.type,s,l),vi(l)||l.codemirrorIgnore}function is(s){var l=s._handlers&&s._handlers.cursorActivity;if(l)for(var g=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),h=0;h<l.length;++h)Cr(g,l[h])==-1&&g.push(l[h])}function ar(s,l){return oi(s,l).length>0}function ss(s){s.prototype.on=function(l,g){Oe(this,l,g)},s.prototype.off=function(l,g){Jr(this,l,g)}}function It(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function kr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function vi(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Ns(s){It(s),kr(s)}function rn(s){return s.target||s.srcElement}function tn(s){var l=s.which;return l==null&&(s.button&1?l=1:s.button&2?l=3:s.button&4&&(l=2)),q&&s.ctrlKey&&l==1&&(l=3),l}var Oo=function(){if(F&&Z<9)return!1;var s=Ee("div");return"draggable"in s||"dragDrop"in s}(),sn;function ya(s){if(sn==null){var l=Ee("span","\u200B");Ke(s,Ee("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(sn=l.offsetWidth<=1&&l.offsetHeight>2&&!(F&&Z<8))}var g=sn?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Xt;function Bi(s){if(Xt!=null)return Xt;var l=Ke(s,document.createTextNode("A\u062EA")),g=ur(l,0,1).getBoundingClientRect(),h=ur(l,1,2).getBoundingClientRect();return Be(s),!g||g.left==g.right?!1:Xt=h.right-g.right<3}var nn=`
1
+ "use strict";var Yasqe=(()=>{var rb=Object.create;var Fd=Object.defineProperty;var tb=Object.getOwnPropertyDescriptor;var ib=Object.getOwnPropertyNames;var sb=Object.getPrototypeOf,nb=Object.prototype.hasOwnProperty;var yr=(i,m)=>()=>(m||i((m={exports:{}}).exports,m),m.exports),Jm=(i,m)=>{for(var e in m)Fd(i,e,{get:m[e],enumerable:!0})},_m=(i,m,e,A)=>{if(m&&typeof m=="object"||typeof m=="function")for(let R of ib(m))!nb.call(i,R)&&R!==e&&Fd(i,R,{get:()=>m[R],enumerable:!(A=tb(m,R))||A.enumerable});return i};var jt=(i,m,e)=>(e=i!=null?rb(sb(i)):{},_m(m||!i||!i.__esModule?Fd(e,"default",{value:i,enumerable:!0}):e,i)),ob=i=>_m(Fd({},"__esModule",{value:!0}),i);var ni=yr((YE,HE)=>{(function(i,m){typeof YE=="object"&&typeof HE<"u"?HE.exports=m():typeof define=="function"&&define.amd?define(m):(i=i||self,i.CodeMirror=m())})(YE,function(){"use strict";var i=navigator.userAgent,m=navigator.platform,e=/gecko\/\d/i.test(i),A=/MSIE \d/.test(i),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),L=/Edge\/(\d+)/.exec(i),F=A||R||L,Z=F&&(A?document.documentMode||6:+(L||R)[1]),M=!L&&/WebKit\//.test(i),Y=M&&/Qt\/\d+\.\d+/.test(i),X=!L&&/Chrome\/(\d+)/.exec(i),D=X&&+X[1],z=/Opera\//.test(i),W=/Apple Computer/.test(navigator.vendor),K=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),J=/PhantomJS/.test(i),O=W&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),V=/Android/.test(i),H=O||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),$=O||/Mac/.test(m),q=/\bCrOS\b/.test(i),ee=/win/i.test(m),ne=z&&i.match(/Version\/(\d*\.\d*)/);ne&&(ne=Number(ne[1])),ne&&ne>=15&&(z=!1,M=!0);var de=$&&(Y||z&&(ne==null||ne<12.11)),Se=e||F&&Z>=9;function be(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Ze=function(s,l){var g=s.className,h=be(l).exec(g);if(h){var v=g.slice(h.index+h[0].length);s.className=g.slice(0,h.index)+(v?h[1]+v:"")}};function Be(s){for(var l=s.childNodes.length;l>0;--l)s.removeChild(s.firstChild);return s}function Ke(s,l){return Be(s).appendChild(l)}function Ee(s,l,g,h){var v=document.createElement(s);if(g&&(v.className=g),h&&(v.style.cssText=h),typeof l=="string")v.appendChild(document.createTextNode(l));else if(l)for(var b=0;b<l.length;++b)v.appendChild(l[b]);return v}function Er(s,l,g,h){var v=Ee(s,l,g,h);return v.setAttribute("role","presentation"),v}var ur;document.createRange?ur=function(s,l,g,h){var v=document.createRange();return v.setEnd(h||s,g),v.setStart(s,l),v}:ur=function(s,l,g){var h=document.body.createTextRange();try{h.moveToElementText(s.parentNode)}catch{return h}return h.collapse(!0),h.moveEnd("character",g),h.moveStart("character",l),h};function or(s,l){if(l.nodeType==3&&(l=l.parentNode),s.contains)return s.contains(l);do if(l.nodeType==11&&(l=l.host),l==s)return!0;while(l=l.parentNode)}function Or(s){var l=s.ownerDocument||s,g;try{g=s.activeElement}catch{g=l.body||null}for(;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;return g}function je(s,l){var g=s.className;be(l).test(g)||(s.className+=(g?" ":"")+l)}function et(s,l){for(var g=s.split(" "),h=0;h<g.length;h++)g[h]&&!be(g[h]).test(l)&&(l+=" "+g[h]);return l}var rt=function(s){s.select()};O?rt=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:F&&(rt=function(s){try{s.select()}catch{}});function cr(s){return s.display.wrapper.ownerDocument}function qe(s){return Pe(s.display.wrapper)}function Pe(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function Ir(s){return cr(s).defaultView}function Me(s){var l=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,l)}}function Rr(s,l,g){l||(l={});for(var h in s)s.hasOwnProperty(h)&&(g!==!1||!l.hasOwnProperty(h))&&(l[h]=s[h]);return l}function dr(s,l,g,h,v){l==null&&(l=s.search(/[^\s\u00a0]/),l==-1&&(l=s.length));for(var b=h||0,N=v||0;;){var y=s.indexOf(" ",b);if(y<0||y>=l)return N+(l-b);N+=y-b,N+=g-N%g,b=y+1}}var Hr=function(){this.id=null,this.f=null,this.time=0,this.handler=Me(this.onTimeout,this)};Hr.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},Hr.prototype.set=function(s,l){this.f=l;var g=+new Date+s;(!this.id||g<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=g)};function Cr(s,l){for(var g=0;g<s.length;++g)if(s[g]==l)return g;return-1}var ti=50,Ge={toString:function(){return"CodeMirror.Pass"}},fe={scroll:!1},Ar={origin:"*mouse"},mr={origin:"+move"};function Ue(s,l,g){for(var h=0,v=0;;){var b=s.indexOf(" ",h);b==-1&&(b=s.length);var N=b-h;if(b==s.length||v+N>=l)return h+Math.min(N,l-v);if(v+=b-h,v+=g-v%g,h=b+1,v>=l)return h}}var Vr=[""];function ii(s){for(;Vr.length<=s;)Vr.push(xe(Vr)+" ");return Vr[s]}function xe(s){return s[s.length-1]}function Ft(s,l){for(var g=[],h=0;h<s.length;h++)g[h]=l(s[h],h);return g}function gt(s,l,g){for(var h=0,v=g(l);h<s.length&&g(s[h])<=v;)h++;s.splice(h,0,l)}function Et(){}function ts(s,l){var g;return Object.create?g=Object.create(s):(Et.prototype=s,g=new Et),l&&Rr(l,g),g}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function mt(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||De.test(s))}function Le(s,l){return l?l.source.indexOf("\\w")>-1&&mt(s)?!0:l.test(s):mt(s)}function sr(s){for(var l in s)if(s.hasOwnProperty(l)&&s[l])return!1;return!0}var pt=/[\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 dt(s){return s.charCodeAt(0)>=768&&pt.test(s)}function nr(s,l,g){for(;(g<0?l>0:l<s.length)&&dt(s.charAt(l));)l+=g;return l}function Wr(s,l,g){for(var h=l>g?-1:1;;){if(l==g)return l;var v=(l+g)/2,b=h<0?Math.ceil(v):Math.floor(v);if(b==l)return s(b)?l:g;s(b)?g=b:l=b+h}}function vt(s,l,g,h){if(!s)return h(l,g,"ltr",0);for(var v=!1,b=0;b<s.length;++b){var N=s[b];(N.from<g&&N.to>l||l==g&&N.to==l)&&(h(Math.max(N.from,l),Math.min(N.to,g),N.level==1?"rtl":"ltr",b),v=!0)}v||h(l,g,"ltr")}var Bt=null;function Lt(s,l,g){var h;Bt=null;for(var v=0;v<s.length;++v){var b=s[v];if(b.from<l&&b.to>l)return v;b.to==l&&(b.from!=b.to&&g=="before"?h=v:Bt=v),b.from==l&&(b.from!=b.to&&g!="before"?h=v:Bt=v)}return h??Bt}var si=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function g(G){return G<=247?s.charAt(G):1424<=G&&G<=1524?"R":1536<=G&&G<=1785?l.charAt(G-1536):1774<=G&&G<=2220?"r":8192<=G&&G<=8203?"w":G==8204?"b":"L"}var h=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,b=/[LRr]/,N=/[Lb1n]/,y=/[1n]/;function w(G,k,_){this.level=G,this.from=k,this.to=_}return function(G,k){var _=k=="ltr"?"L":"R";if(G.length==0||k=="ltr"&&!h.test(G))return!1;for(var ie=G.length,te=[],ae=0;ae<ie;++ae)te.push(g(G.charCodeAt(ae)));for(var ce=0,he=_;ce<ie;++ce){var ve=te[ce];ve=="m"?te[ce]=he:he=ve}for(var Ce=0,Ie=_;Ce<ie;++Ce){var Re=te[Ce];Re=="1"&&Ie=="r"?te[Ce]="n":b.test(Re)&&(Ie=Re,Re=="r"&&(te[Ce]="R"))}for(var ke=1,We=te[0];ke<ie-1;++ke){var tr=te[ke];tr=="+"&&We=="1"&&te[ke+1]=="1"?te[ke]="1":tr==","&&We==te[ke+1]&&(We=="1"||We=="n")&&(te[ke]=We),We=tr}for(var Tr=0;Tr<ie;++Tr){var ut=te[Tr];if(ut==",")te[Tr]="N";else if(ut=="%"){var Ur=void 0;for(Ur=Tr+1;Ur<ie&&te[Ur]=="%";++Ur);for(var Jt=Tr&&te[Tr-1]=="!"||Ur<ie&&te[Ur]=="1"?"1":"N",Mt=Tr;Mt<Ur;++Mt)te[Mt]=Jt;Tr=Ur-1}}for(var jr=0,Dt=_;jr<ie;++jr){var ht=te[jr];Dt=="L"&&ht=="1"?te[jr]="L":b.test(ht)&&(Dt=ht)}for(var tt=0;tt<ie;++tt)if(v.test(te[tt])){var zr=void 0;for(zr=tt+1;zr<ie&&v.test(te[zr]);++zr);for(var Zr=(tt?te[tt-1]:_)=="L",Qt=(zr<ie?te[zr]:_)=="L",Vn=Zr==Qt?Zr?"L":"R":_,Is=tt;Is<zr;++Is)te[Is]=Vn;tt=zr-1}for(var Rt=[],wi,ft=0;ft<ie;)if(N.test(te[ft])){var cl=ft;for(++ft;ft<ie&&N.test(te[ft]);++ft);Rt.push(new w(0,cl,ft))}else{var Hi=ft,ks=Rt.length,Xs=k=="rtl"?1:0;for(++ft;ft<ie&&te[ft]!="L";++ft);for(var Gt=Hi;Gt<ft;)if(y.test(te[Gt])){Hi<Gt&&(Rt.splice(ks,0,new w(1,Hi,Gt)),ks+=Xs);var Wn=Gt;for(++Gt;Gt<ft&&y.test(te[Gt]);++Gt);Rt.splice(ks,0,new w(2,Wn,Gt)),ks+=Xs,Hi=Gt}else++Gt;Hi<ft&&Rt.splice(ks,0,new w(1,Hi,ft))}return k=="ltr"&&(Rt[0].level==1&&(wi=G.match(/^\s+/))&&(Rt[0].from=wi[0].length,Rt.unshift(new w(0,0,wi[0].length))),xe(Rt).level==1&&(wi=G.match(/\s+$/))&&(xe(Rt).to-=wi[0].length,Rt.push(new w(0,ie-wi[0].length,ie)))),k=="rtl"?Rt.reverse():Rt}}();function Sr(s,l){var g=s.order;return g==null&&(g=s.order=si(s.text,l)),g}var Ot=[],Oe=function(s,l,g){if(s.addEventListener)s.addEventListener(l,g,!1);else if(s.attachEvent)s.attachEvent("on"+l,g);else{var h=s._handlers||(s._handlers={});h[l]=(h[l]||Ot).concat(g)}};function oi(s,l){return s._handlers&&s._handlers[l]||Ot}function Jr(s,l,g){if(s.removeEventListener)s.removeEventListener(l,g,!1);else if(s.detachEvent)s.detachEvent("on"+l,g);else{var h=s._handlers,v=h&&h[l];if(v){var b=Cr(v,g);b>-1&&(h[l]=v.slice(0,b).concat(v.slice(b+1)))}}}function hr(s,l){var g=oi(s,l);if(g.length)for(var h=Array.prototype.slice.call(arguments,2),v=0;v<g.length;++v)g[v].apply(null,h)}function xr(s,l,g){return typeof l=="string"&&(l={type:l,preventDefault:function(){this.defaultPrevented=!0}}),hr(s,g||l.type,s,l),vi(l)||l.codemirrorIgnore}function is(s){var l=s._handlers&&s._handlers.cursorActivity;if(l)for(var g=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),h=0;h<l.length;++h)Cr(g,l[h])==-1&&g.push(l[h])}function ar(s,l){return oi(s,l).length>0}function ss(s){s.prototype.on=function(l,g){Oe(this,l,g)},s.prototype.off=function(l,g){Jr(this,l,g)}}function It(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function kr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function vi(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Ns(s){It(s),kr(s)}function rn(s){return s.target||s.srcElement}function tn(s){var l=s.which;return l==null&&(s.button&1?l=1:s.button&2?l=3:s.button&4&&(l=2)),$&&s.ctrlKey&&l==1&&(l=3),l}var Oo=function(){if(F&&Z<9)return!1;var s=Ee("div");return"draggable"in s||"dragDrop"in s}(),sn;function ya(s){if(sn==null){var l=Ee("span","\u200B");Ke(s,Ee("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(sn=l.offsetWidth<=1&&l.offsetHeight>2&&!(F&&Z<8))}var g=sn?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Xt;function Bi(s){if(Xt!=null)return Xt;var l=Ke(s,document.createTextNode("A\u062EA")),g=ur(l,0,1).getBoundingClientRect(),h=ur(l,1,2).getBoundingClientRect();return Be(s),!g||g.left==g.right?!1:Xt=h.right-g.right<3}var nn=`
2
2
 
3
3
  b`.split(/\n/).length!=3?function(s){for(var l=0,g=[],h=s.length;l<=h;){var v=s.indexOf(`
4
4
  `,l);v==-1&&(v=s.length);var b=s.slice(l,s.charAt(v-1)=="\r"?v-1:v),N=b.indexOf("\r");N!=-1?(g.push(b.slice(0,N)),l+=N+1):(g.push(b),l=v+1)}return g}:function(s){return s.split(/\r\n?|\n/)},Vo=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var l;try{l=s.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=s?!1:l.compareEndPoints("StartToEnd",l)!=0},Xn=function(){var s=Ee("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),on=null;function ai(s){if(on!=null)return on;var l=Ke(s,Ee("span","x")),g=l.getBoundingClientRect(),h=ur(l,0,1).getBoundingClientRect();return on=Math.abs(g.left-h.left)>1}var an={},Oi={};function Wo(s,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),an[s]=l}function Zo(s,l){Oi[s]=l}function ln(s){if(typeof s=="string"&&Oi.hasOwnProperty(s))s=Oi[s];else if(s&&typeof s.name=="string"&&Oi.hasOwnProperty(s.name)){var l=Oi[s.name];typeof l=="string"&&(l={name:l}),s=ts(l,s),s.name=l.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return ln("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return ln("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function Qe(s,l){l=ln(l);var g=an[l.name];if(!g)return Qe(s,"text/plain");var h=g(s,l);if(re.hasOwnProperty(l.name)){var v=re[l.name];for(var b in v)v.hasOwnProperty(b)&&(h.hasOwnProperty(b)&&(h["_"+b]=h[b]),h[b]=v[b])}if(h.name=l.name,l.helperType&&(h.helperType=l.helperType),l.modeProps)for(var N in l.modeProps)h[N]=l.modeProps[N];return h}var re={};function me(s,l){var g=re.hasOwnProperty(s)?re[s]:re[s]={};Rr(l,g)}function we(s,l){if(l===!0)return l;if(s.copyState)return s.copyState(l);var g={};for(var h in l){var v=l[h];v instanceof Array&&(v=v.concat([])),g[h]=v}return g}function Nr(s,l){for(var g;s.innerMode&&(g=s.innerMode(l),!(!g||g.mode==s));)l=g.state,s=g.mode;return g||{mode:s,state:l}}function nt(s,l,g){return s.startState?s.startState(l,g):!0}var rr=function(s,l,g){this.pos=this.start=0,this.string=s,this.tabSize=l||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=g};rr.prototype.eol=function(){return this.pos>=this.string.length},rr.prototype.sol=function(){return this.pos==this.lineStart},rr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},rr.prototype.eat=function(s){var l=this.string.charAt(this.pos),g;if(typeof s=="string"?g=l==s:g=l&&(s.test?s.test(l):s(l)),g)return++this.pos,l},rr.prototype.eatWhile=function(s){for(var l=this.pos;this.eat(s););return this.pos>l},rr.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},rr.prototype.skipToEnd=function(){this.pos=this.string.length},rr.prototype.skipTo=function(s){var l=this.string.indexOf(s,this.pos);if(l>-1)return this.pos=l,!0},rr.prototype.backUp=function(s){this.pos-=s},rr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=dr(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?dr(this.string,this.lineStart,this.tabSize):0)},rr.prototype.indentation=function(){return dr(this.string,null,this.tabSize)-(this.lineStart?dr(this.string,this.lineStart,this.tabSize):0)},rr.prototype.match=function(s,l,g){if(typeof s=="string"){var h=function(N){return g?N.toLowerCase():N},v=this.string.substr(this.pos,s.length);if(h(v)==h(s))return l!==!1&&(this.pos+=s.length),!0}else{var b=this.string.slice(this.pos).match(s);return b&&b.index>0?null:(b&&l!==!1&&(this.pos+=b[0].length),b)}},rr.prototype.current=function(){return this.string.slice(this.start,this.pos)},rr.prototype.hideFirstChars=function(s,l){this.lineStart+=s;try{return l()}finally{this.lineStart-=s}},rr.prototype.lookAhead=function(s){var l=this.lineOracle;return l&&l.lookAhead(s)},rr.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function Ae(s,l){if(l-=s.first,l<0||l>=s.size)throw new Error("There is no line "+(l+s.first)+" in the document.");for(var g=s;!g.lines;)for(var h=0;;++h){var v=g.children[h],b=v.chunkSize();if(l<b){g=v;break}l-=b}return g.lines[l]}function Ct(s,l,g){var h=[],v=l.line;return s.iter(l.line,g.line+1,function(b){var N=b.text;v==g.line&&(N=N.slice(0,g.ch)),v==l.line&&(N=N.slice(l.ch)),h.push(N),++v}),h}function Ii(s,l,g){var h=[];return s.iter(l,g,function(v){h.push(v.text)}),h}function Pt(s,l){var g=l-s.height;if(g)for(var h=s;h;h=h.parent)h.height+=g}function Je(s){if(s.parent==null)return null;for(var l=s.parent,g=Cr(l.lines,s),h=l.parent;h;l=h,h=h.parent)for(var v=0;h.children[v]!=l;++v)g+=h.children[v].chunkSize();return g+l.first}function Ci(s,l){var g=s.first;e:do{for(var h=0;h<s.children.length;++h){var v=s.children[h],b=v.height;if(l<b){s=v;continue e}l-=b,g+=v.chunkSize()}return g}while(!s.lines);for(var N=0;N<s.lines.length;++N){var y=s.lines[N],w=y.height;if(l<w)break;l-=w}return g+N}function ns(s,l){return l>=s.first&&l<s.first+s.size}function Sa(s,l){return String(s.lineNumberFormatter(l+s.firstLineNumber))}function pe(s,l,g){if(g===void 0&&(g=null),!(this instanceof pe))return new pe(s,l,g);this.line=s,this.ch=l,this.sticky=g}function ze(s,l){return s.line-l.line||s.ch-l.ch}function La(s,l){return s.sticky==l.sticky&&ze(s,l)==0}function wa(s){return pe(s.line,s.ch)}function Mo(s,l){return ze(s,l)<0?l:s}function Do(s,l){return ze(s,l)<0?s:l}function ru(s,l){return Math.max(s.first,Math.min(l,s.first+s.size-1))}function $e(s,l){if(l.line<s.first)return pe(s.first,0);var g=s.first+s.size-1;return l.line>g?pe(g,Ae(s,g).text.length):qf(l,Ae(s,l.line).text.length)}function qf(s,l){var g=s.ch;return g==null||g>l?pe(s.line,l):g<0?pe(s.line,0):s}function tu(s,l){for(var g=[],h=0;h<l.length;h++)g[h]=$e(s,l[h]);return g}var Qo=function(s,l){this.state=s,this.lookAhead=l},xi=function(s,l,g,h){this.state=l,this.doc=s,this.line=g,this.maxLookAhead=h||0,this.baseTokens=null,this.baseTokenPos=1};xi.prototype.lookAhead=function(s){var l=this.doc.getLine(this.line+s);return l!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),l},xi.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var l=this.baseTokens[this.baseTokenPos+1];return{type:l&&l.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},xi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xi.fromSaved=function(s,l,g){return l instanceof Qo?new xi(s,we(s.mode,l.state),g,l.lookAhead):new xi(s,we(s.mode,l),g)},xi.prototype.save=function(s){var l=s!==!1?we(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Qo(l,this.maxLookAhead):l};function iu(s,l,g,h){var v=[s.state.modeGen],b={};uu(s,l.text,s.doc.mode,g,function(G,k){return v.push(G,k)},b,h);for(var N=g.state,y=function(G){g.baseTokens=v;var k=s.state.overlays[G],_=1,ie=0;g.state=!0,uu(s,l.text,k.mode,g,function(te,ae){for(var ce=_;ie<te;){var he=v[_];he>te&&v.splice(_,1,te,v[_+1],he),_+=2,ie=Math.min(te,he)}if(ae)if(k.opaque)v.splice(ce,_-ce,te,"overlay "+ae),_=ce+2;else for(;ce<_;ce+=2){var ve=v[ce+1];v[ce+1]=(ve?ve+" ":"")+"overlay "+ae}},b),g.state=N,g.baseTokens=null,g.baseTokenPos=1},w=0;w<s.state.overlays.length;++w)y(w);return{styles:v,classes:b.bgClass||b.textClass?b:null}}function su(s,l,g){if(!l.styles||l.styles[0]!=s.state.modeGen){var h=Pn(s,Je(l)),v=l.text.length>s.options.maxHighlightLength&&we(s.doc.mode,h.state),b=iu(s,l,h);v&&(h.state=v),l.stateAfter=h.save(!v),l.styles=b.styles,b.classes?l.styleClasses=b.classes:l.styleClasses&&(l.styleClasses=null),g===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return l.styles}function Pn(s,l,g){var h=s.doc,v=s.display;if(!h.mode.startState)return new xi(h,!0,l);var b=Kf(s,l,g),N=b>h.first&&Ae(h,b-1).stateAfter,y=N?xi.fromSaved(h,N,b):new xi(h,nt(h.mode),b);return h.iter(b,l,function(w){Yn(s,w.text,y);var G=y.line;w.stateAfter=G==l-1||G%5==0||G>=v.viewFrom&&G<v.viewTo?y.save():null,y.nextLine()}),g&&(h.modeFrontier=y.line),y}function Yn(s,l,g,h){var v=s.doc.mode,b=new rr(l,s.options.tabSize,g);for(b.start=b.pos=h||0,l==""&&nu(v,g.state);!b.eol();)Ga(v,b,g.state),b.start=b.pos}function nu(s,l){if(s.blankLine)return s.blankLine(l);if(s.innerMode){var g=Nr(s,l);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}function Ga(s,l,g,h){for(var v=0;v<10;v++){h&&(h[0]=Nr(s,g).mode);var b=s.token(l,g);if(l.pos>l.start)return b}throw new Error("Mode "+s.name+" failed to advance stream.")}var ou=function(s,l,g){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=l||null,this.state=g};function au(s,l,g,h){var v=s.doc,b=v.mode,N;l=$e(v,l);var y=Ae(v,l.line),w=Pn(s,l.line,g),G=new rr(y.text,s.options.tabSize,w),k;for(h&&(k=[]);(h||G.pos<l.ch)&&!G.eol();)G.start=G.pos,N=Ga(b,G,w.state),h&&k.push(new ou(G,N,we(v.mode,w.state)));return h?k:new ou(G,N,w.state)}function lu(s,l){if(s)for(;;){var g=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!g)break;s=s.slice(0,g.index)+s.slice(g.index+g[0].length);var h=g[1]?"bgClass":"textClass";l[h]==null?l[h]=g[2]:new RegExp("(?:^|\\s)"+g[2]+"(?:$|\\s)").test(l[h])||(l[h]+=" "+g[2])}return s}function uu(s,l,g,h,v,b,N){var y=g.flattenSpans;y==null&&(y=s.options.flattenSpans);var w=0,G=null,k=new rr(l,s.options.tabSize,h),_,ie=s.options.addModeClass&&[null];for(l==""&&lu(nu(g,h.state),b);!k.eol();){if(k.pos>s.options.maxHighlightLength?(y=!1,N&&Yn(s,l,h,k.pos),k.pos=l.length,_=null):_=lu(Ga(g,k,h.state,ie),b),ie){var te=ie[0].name;te&&(_="m-"+(_?te+" "+_:te))}if(!y||G!=_){for(;w<k.start;)w=Math.min(k.start,w+5e3),v(w,G);G=_}k.start=k.pos}for(;w<k.pos;){var ae=Math.min(k.pos,w+5e3);v(ae,G),w=ae}}function Kf(s,l,g){for(var h,v,b=s.doc,N=g?-1:l-(s.doc.mode.innerMode?1e3:100),y=l;y>N;--y){if(y<=b.first)return b.first;var w=Ae(b,y-1),G=w.stateAfter;if(G&&(!g||y+(G instanceof Qo?G.lookAhead:0)<=b.modeFrontier))return y;var k=dr(w.text,null,s.options.tabSize);(v==null||h>k)&&(v=y-1,h=k)}return v}function ec(s,l){if(s.modeFrontier=Math.min(s.modeFrontier,l),!(s.highlightFrontier<l-10)){for(var g=s.first,h=l-1;h>g;h--){var v=Ae(s,h).stateAfter;if(v&&(!(v instanceof Qo)||h+v.lookAhead<l)){g=h+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,g)}}var ko=!1,Vi=!1;function rc(){ko=!0}function zt(){Vi=!0}function un(s,l,g){this.marker=s,this.from=l,this.to=g}function Ts(s,l){if(s)for(var g=0;g<s.length;++g){var h=s[g];if(h.marker==l)return h}}function Ua(s,l){for(var g,h=0;h<s.length;++h)s[h]!=l&&(g||(g=[])).push(s[h]);return g}function Wi(s,l,g){var h=g&&window.WeakSet&&(g.markedSpans||(g.markedSpans=new WeakSet));h&&s.markedSpans&&h.has(s.markedSpans)?s.markedSpans.push(l):(s.markedSpans=s.markedSpans?s.markedSpans.concat([l]):[l],h&&h.add(s.markedSpans)),l.marker.attachLine(s)}function Rs(s,l,g){var h;if(s)for(var v=0;v<s.length;++v){var b=s[v],N=b.marker,y=b.from==null||(N.inclusiveLeft?b.from<=l:b.from<l);if(y||b.from==l&&N.type=="bookmark"&&(!g||!b.marker.insertLeft)){var w=b.to==null||(N.inclusiveRight?b.to>=l:b.to>l);(h||(h=[])).push(new un(N,b.from,w?null:b.to))}}return h}function ys(s,l,g){var h;if(s)for(var v=0;v<s.length;++v){var b=s[v],N=b.marker,y=b.to==null||(N.inclusiveRight?b.to>=l:b.to>l);if(y||b.from==l&&N.type=="bookmark"&&(!g||b.marker.insertLeft)){var w=b.from==null||(N.inclusiveLeft?b.from<=l:b.from<l);(h||(h=[])).push(new un(N,w?null:b.from-l,b.to==null?null:b.to-l))}}return h}function Zi(s,l){if(l.full)return null;var g=ns(s,l.from.line)&&Ae(s,l.from.line).markedSpans,h=ns(s,l.to.line)&&Ae(s,l.to.line).markedSpans;if(!g&&!h)return null;var v=l.from.ch,b=l.to.ch,N=ze(l.from,l.to)==0,y=Rs(g,v,N),w=ys(h,b,N),G=l.text.length==1,k=xe(l.text).length+(G?v:0);if(y)for(var _=0;_<y.length;++_){var ie=y[_];if(ie.to==null){var te=Ts(w,ie.marker);te?G&&(ie.to=te.to==null?null:te.to+k):ie.to=v}}if(w)for(var ae=0;ae<w.length;++ae){var ce=w[ae];if(ce.to!=null&&(ce.to+=k),ce.from==null){var he=Ts(y,ce.marker);he||(ce.from=k,G&&(y||(y=[])).push(ce))}else ce.from+=k,G&&(y||(y=[])).push(ce)}y&&(y=os(y)),w&&w!=y&&(w=os(w));var ve=[y];if(!G){var Ce=l.text.length-2,Ie;if(Ce>0&&y)for(var Re=0;Re<y.length;++Re)y[Re].to==null&&(Ie||(Ie=[])).push(new un(y[Re].marker,null,null));for(var ke=0;ke<Ce;++ke)ve.push(Ie);ve.push(w)}return ve}function os(s){for(var l=0;l<s.length;++l){var g=s[l];g.from!=null&&g.from==g.to&&g.marker.clearWhenEmpty!==!1&&s.splice(l--,1)}return s.length?s:null}function Ss(s,l,g){var h=null;if(s.iter(l.line,g.line+1,function(te){if(te.markedSpans)for(var ae=0;ae<te.markedSpans.length;++ae){var ce=te.markedSpans[ae].marker;ce.readOnly&&(!h||Cr(h,ce)==-1)&&(h||(h=[])).push(ce)}}),!h)return null;for(var v=[{from:l,to:g}],b=0;b<h.length;++b)for(var N=h[b],y=N.find(0),w=0;w<v.length;++w){var G=v[w];if(!(ze(G.to,y.from)<0||ze(G.from,y.to)>0)){var k=[w,1],_=ze(G.from,y.from),ie=ze(G.to,y.to);(_<0||!N.inclusiveLeft&&!_)&&k.push({from:G.from,to:y.from}),(ie>0||!N.inclusiveRight&&!ie)&&k.push({from:y.to,to:G.to}),v.splice.apply(v,k),w+=k.length-3}}return v}function Xo(s){var l=s.markedSpans;if(l){for(var g=0;g<l.length;++g)l[g].marker.detachLine(s);s.markedSpans=null}}function fn(s,l){if(l){for(var g=0;g<l.length;++g)l[g].marker.attachLine(s);s.markedSpans=l}}function cn(s){return s.inclusiveLeft?-1:0}function pn(s){return s.inclusiveRight?1:0}function Fa(s,l){var g=s.lines.length-l.lines.length;if(g!=0)return g;var h=s.find(),v=l.find(),b=ze(h.from,v.from)||cn(s)-cn(l);if(b)return-b;var N=ze(h.to,v.to)||pn(s)-pn(l);return N||l.id-s.id}function fu(s,l){var g=Vi&&s.markedSpans,h;if(g)for(var v=void 0,b=0;b<g.length;++b)v=g[b],v.marker.collapsed&&(l?v.from:v.to)==null&&(!h||Fa(h,v.marker)<0)&&(h=v.marker);return h}function Po(s){return fu(s,!0)}function _e(s){return fu(s,!1)}function Ba(s,l){var g=Vi&&s.markedSpans,h;if(g)for(var v=0;v<g.length;++v){var b=g[v];b.marker.collapsed&&(b.from==null||b.from<l)&&(b.to==null||b.to>l)&&(!h||Fa(h,b.marker)<0)&&(h=b.marker)}return h}function as(s,l,g,h,v){var b=Ae(s,l),N=Vi&&b.markedSpans;if(N)for(var y=0;y<N.length;++y){var w=N[y];if(w.marker.collapsed){var G=w.marker.find(0),k=ze(G.from,g)||cn(w.marker)-cn(v),_=ze(G.to,h)||pn(w.marker)-pn(v);if(!(k>=0&&_<=0||k<=0&&_>=0)&&(k<=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?ze(G.to,g)>=0:ze(G.to,g)>0)||k>=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?ze(G.from,h)<=0:ze(G.from,h)<0)))return!0}}}function li(s){for(var l;l=Po(s);)s=l.find(-1,!0).line;return s}function tc(s){for(var l;l=_e(s);)s=l.find(1,!0).line;return s}function Oa(s){for(var l,g;l=_e(s);)s=l.find(1,!0).line,(g||(g=[])).push(s);return g}function Hn(s,l){var g=Ae(s,l),h=li(g);return g==h?l:Je(h)}function Yo(s,l){if(l>s.lastLine())return l;var g=Ae(s,l),h;if(!bi(s,g))return l;for(;h=_e(g);)g=h.find(1,!0).line;return Je(g)+1}function bi(s,l){var g=Vi&&l.markedSpans;if(g){for(var h=void 0,v=0;v<g.length;++v)if(h=g[v],!!h.marker.collapsed){if(h.from==null)return!0;if(!h.marker.widgetNode&&h.from==0&&h.marker.inclusiveLeft&&Va(s,l,h))return!0}}}function Va(s,l,g){if(g.to==null){var h=g.marker.find(1,!0);return Va(s,h.line,Ts(h.line.markedSpans,g.marker))}if(g.marker.inclusiveRight&&g.to==l.text.length)return!0;for(var v=void 0,b=0;b<l.markedSpans.length;++b)if(v=l.markedSpans[b],v.marker.collapsed&&!v.marker.widgetNode&&v.from==g.to&&(v.to==null||v.to!=g.from)&&(v.marker.inclusiveLeft||g.marker.inclusiveRight)&&Va(s,l,v))return!0}function Mi(s){s=li(s);for(var l=0,g=s.parent,h=0;h<g.lines.length;++h){var v=g.lines[h];if(v==s)break;l+=v.height}for(var b=g.parent;b;g=b,b=g.parent)for(var N=0;N<b.children.length;++N){var y=b.children[N];if(y==g)break;l+=y.height}return l}function Ho(s){if(s.height==0)return 0;for(var l=s.text.length,g,h=s;g=Po(h);){var v=g.find(0,!0);h=v.from.line,l+=v.from.ch-v.to.ch}for(h=s;g=_e(h);){var b=g.find(0,!0);l-=h.text.length-b.from.ch,h=b.to.line,l+=h.text.length-b.to.ch}return l}function Wa(s){var l=s.display,g=s.doc;l.maxLine=Ae(g,g.first),l.maxLineLength=Ho(l.maxLine),l.maxLineChanged=!0,g.iter(function(h){var v=Ho(h);v>l.maxLineLength&&(l.maxLineLength=v,l.maxLine=h)})}var dn=function(s,l,g){this.text=s,fn(this,l),this.height=g?g(this):1};dn.prototype.lineNo=function(){return Je(this)},ss(dn);function ic(s,l,g,h){s.text=l,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Xo(s),fn(s,g);var v=h?h(s):1;v!=s.height&&Pt(s,v)}function sc(s){s.parent=null,Xo(s)}var nc={},oc={};function cu(s,l){if(!s||/^\s*$/.test(s))return null;var g=l.addModeClass?oc:nc;return g[s]||(g[s]=s.replace(/\S+/g,"cm-$&"))}function pu(s,l){var g=Er("span",null,null,M?"padding-right: .1px":null),h={pre:Er("pre",[g],"CodeMirror-line"),content:g,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};l.measure={};for(var v=0;v<=(l.rest?l.rest.length:0);v++){var b=v?l.rest[v-1]:l.line,N=void 0;h.pos=0,h.addToken=lc,Bi(s.display.measure)&&(N=Sr(b,s.doc.direction))&&(h.addToken=fc(h.addToken,N)),h.map=[];var y=l!=s.display.externalMeasured&&Je(b);cc(b,h,su(s,b,y)),b.styleClasses&&(b.styleClasses.bgClass&&(h.bgClass=et(b.styleClasses.bgClass,h.bgClass||"")),b.styleClasses.textClass&&(h.textClass=et(b.styleClasses.textClass,h.textClass||""))),h.map.length==0&&h.map.push(0,0,h.content.appendChild(ya(s.display.measure))),v==0?(l.measure.map=h.map,l.measure.cache={}):((l.measure.maps||(l.measure.maps=[])).push(h.map),(l.measure.caches||(l.measure.caches=[])).push({}))}if(M){var w=h.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(h.content.className="cm-tab-wrap-hack")}return hr(s,"renderLine",s,l.line,h.pre),h.pre.className&&(h.textClass=et(h.pre.className,h.textClass||"")),h}function ac(s){var l=Ee("span","\u2022","cm-invalidchar");return l.title="\\u"+s.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function lc(s,l,g,h,v,b,N){if(l){var y=s.splitSpaces?uc(l,s.trailingSpace):l,w=s.cm.state.specialChars,G=!1,k;if(!w.test(l))s.col+=l.length,k=document.createTextNode(y),s.map.push(s.pos,s.pos+l.length,k),F&&Z<9&&(G=!0),s.pos+=l.length;else{k=document.createDocumentFragment();for(var _=0;;){w.lastIndex=_;var ie=w.exec(l),te=ie?ie.index-_:l.length-_;if(te){var ae=document.createTextNode(y.slice(_,_+te));F&&Z<9?k.appendChild(Ee("span",[ae])):k.appendChild(ae),s.map.push(s.pos,s.pos+te,ae),s.col+=te,s.pos+=te}if(!ie)break;_+=te+1;var ce=void 0;if(ie[0]==" "){var he=s.cm.options.tabSize,ve=he-s.col%he;ce=k.appendChild(Ee("span",ii(ve),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),s.col+=ve}else ie[0]=="\r"||ie[0]==`
5
- `?(ce=k.appendChild(Ee("span",ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ce.setAttribute("cm-text",ie[0]),s.col+=1):(ce=s.cm.options.specialCharPlaceholder(ie[0]),ce.setAttribute("cm-text",ie[0]),F&&Z<9?k.appendChild(Ee("span",[ce])):k.appendChild(ce),s.col+=1);s.map.push(s.pos,s.pos+1,ce),s.pos++}}if(s.trailingSpace=y.charCodeAt(l.length-1)==32,g||h||v||G||b||N){var Ce=g||"";h&&(Ce+=h),v&&(Ce+=v);var Ie=Ee("span",[k],Ce,b);if(N)for(var Re in N)N.hasOwnProperty(Re)&&Re!="style"&&Re!="class"&&Ie.setAttribute(Re,N[Re]);return s.content.appendChild(Ie)}s.content.appendChild(k)}}function uc(s,l){if(s.length>1&&!/ /.test(s))return s;for(var g=l,h="",v=0;v<s.length;v++){var b=s.charAt(v);b==" "&&g&&(v==s.length-1||s.charCodeAt(v+1)==32)&&(b="\xA0"),h+=b,g=b==" "}return h}function fc(s,l){return function(g,h,v,b,N,y,w){v=v?v+" cm-force-border":"cm-force-border";for(var G=g.pos,k=G+h.length;;){for(var _=void 0,ie=0;ie<l.length&&(_=l[ie],!(_.to>G&&_.from<=G));ie++);if(_.to>=k)return s(g,h,v,b,N,y,w);s(g,h.slice(0,_.to-G),v,b,null,y,w),b=null,h=h.slice(_.to-G),G=_.to}}}function du(s,l,g,h){var v=!h&&g.widgetNode;v&&s.map.push(s.pos,s.pos+l,v),!h&&s.cm.display.input.needsContentAttribute&&(v||(v=s.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",g.id)),v&&(s.cm.display.input.setUneditable(v),s.content.appendChild(v)),s.pos+=l,s.trailingSpace=!1}function cc(s,l,g){var h=s.markedSpans,v=s.text,b=0;if(!h){for(var N=1;N<g.length;N+=2)l.addToken(l,v.slice(b,b=g[N]),cu(g[N+1],l.cm.options));return}for(var y=v.length,w=0,G=1,k="",_,ie,te=0,ae,ce,he,ve,Ce;;){if(te==w){ae=ce=he=ie="",Ce=null,ve=null,te=1/0;for(var Ie=[],Re=void 0,ke=0;ke<h.length;++ke){var We=h[ke],tr=We.marker;if(tr.type=="bookmark"&&We.from==w&&tr.widgetNode)Ie.push(tr);else if(We.from<=w&&(We.to==null||We.to>w||tr.collapsed&&We.to==w&&We.from==w)){if(We.to!=null&&We.to!=w&&te>We.to&&(te=We.to,ce=""),tr.className&&(ae+=" "+tr.className),tr.css&&(ie=(ie?ie+";":"")+tr.css),tr.startStyle&&We.from==w&&(he+=" "+tr.startStyle),tr.endStyle&&We.to==te&&(Re||(Re=[])).push(tr.endStyle,We.to),tr.title&&((Ce||(Ce={})).title=tr.title),tr.attributes)for(var Tr in tr.attributes)(Ce||(Ce={}))[Tr]=tr.attributes[Tr];tr.collapsed&&(!ve||Fa(ve.marker,tr)<0)&&(ve=We)}else We.from>w&&te>We.from&&(te=We.from)}if(Re)for(var ut=0;ut<Re.length;ut+=2)Re[ut+1]==te&&(ce+=" "+Re[ut]);if(!ve||ve.from==w)for(var Ur=0;Ur<Ie.length;++Ur)du(l,0,Ie[Ur]);if(ve&&(ve.from||0)==w){if(du(l,(ve.to==null?y+1:ve.to)-w,ve.marker,ve.from==null),ve.to==null)return;ve.to==w&&(ve=!1)}}if(w>=y)break;for(var Jt=Math.min(y,te);;){if(k){var Mt=w+k.length;if(!ve){var jr=Mt>Jt?k.slice(0,Jt-w):k;l.addToken(l,jr,_?_+ae:ae,he,w+jr.length==te?ce:"",ie,Ce)}if(Mt>=Jt){k=k.slice(Jt-w),w=Jt;break}w=Mt,he=""}k=v.slice(b,b=g[G++]),_=cu(g[G++],l.cm.options)}}}function hn(s,l,g){this.line=l,this.rest=Oa(l),this.size=this.rest?Je(xe(this.rest))-g+1:1,this.node=this.text=null,this.hidden=bi(s,l)}function ls(s,l,g){for(var h=[],v,b=l;b<g;b=v){var N=new hn(s.doc,Ae(s.doc,b),b);v=b+N.size,h.push(N)}return h}var Ai=null;function pc(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function dc(s){var l=s.delayedCallbacks,g=0;do{for(;g<l.length;g++)l[g].call(null);for(var h=0;h<s.ops.length;h++){var v=s.ops[h];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(g<l.length)}function hc(s,l){var g=s.ownsGroup;if(g)try{dc(g)}finally{Ai=null,l(g)}}var Jn=null;function ot(s,l){var g=oi(s,l);if(g.length){var h=Array.prototype.slice.call(arguments,2),v;Ai?v=Ai.delayedCallbacks:Jn?v=Jn:(v=Jn=[],setTimeout(xt,0));for(var b=function(y){v.push(function(){return g[y].apply(null,h)})},N=0;N<g.length;++N)b(N)}}function xt(){var s=Jn;Jn=null;for(var l=0;l<s.length;++l)s[l]()}function hu(s,l,g,h){for(var v=0;v<l.changes.length;v++){var b=l.changes[v];b=="text"?_r(s,l):b=="gutter"?us(s,l,g,h):b=="class"?_n(s,l):b=="widget"&&Vt(s,l,h)}l.changes=null}function le(s){return s.node==s.text&&(s.node=Ee("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),F&&Z<8&&(s.node.style.zIndex=2)),s.node}function Ls(s,l){var g=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(g&&(g+=" CodeMirror-linebackground"),l.background)g?l.background.className=g:(l.background.parentNode.removeChild(l.background),l.background=null);else if(g){var h=le(l);l.background=h.insertBefore(Ee("div",null,g),h.firstChild),s.display.input.setUneditable(l.background)}}function ue(s,l){var g=s.display.externalMeasured;return g&&g.line==l.line?(s.display.externalMeasured=null,l.measure=g.measure,g.built):pu(s,l)}function _r(s,l){var g=l.text.className,h=ue(s,l);l.text==l.node&&(l.node=h.pre),l.text.parentNode.replaceChild(h.pre,l.text),l.text=h.pre,h.bgClass!=l.bgClass||h.textClass!=l.textClass?(l.bgClass=h.bgClass,l.textClass=h.textClass,_n(s,l)):g&&(l.text.className=g)}function _n(s,l){Ls(s,l),l.line.wrapClass?le(l).className=l.line.wrapClass:l.node!=l.text&&(l.node.className="");var g=l.textClass?l.textClass+" "+(l.line.textClass||""):l.line.textClass;l.text.className=g||""}function us(s,l,g,h){if(l.gutter&&(l.node.removeChild(l.gutter),l.gutter=null),l.gutterBackground&&(l.node.removeChild(l.gutterBackground),l.gutterBackground=null),l.line.gutterClass){var v=le(l);l.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+l.line.gutterClass,"left: "+(s.options.fixedGutter?h.fixedPos:-h.gutterTotalWidth)+"px; width: "+h.gutterTotalWidth+"px"),s.display.input.setUneditable(l.gutterBackground),v.insertBefore(l.gutterBackground,l.text)}var b=l.line.gutterMarkers;if(s.options.lineNumbers||b){var N=le(l),y=l.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?h.fixedPos:-h.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),s.display.input.setUneditable(y),N.insertBefore(y,l.text),l.line.gutterClass&&(y.className+=" "+l.line.gutterClass),s.options.lineNumbers&&(!b||!b["CodeMirror-linenumbers"])&&(l.lineNumber=y.appendChild(Ee("div",Sa(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+h.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),b)for(var w=0;w<s.display.gutterSpecs.length;++w){var G=s.display.gutterSpecs[w].className,k=b.hasOwnProperty(G)&&b[G];k&&y.appendChild(Ee("div",[k],"CodeMirror-gutter-elt","left: "+h.gutterLeft[G]+"px; width: "+h.gutterWidth[G]+"px"))}}}function Vt(s,l,g){l.alignable&&(l.alignable=null);for(var h=be("CodeMirror-linewidget"),v=l.node.firstChild,b=void 0;v;v=b)b=v.nextSibling,h.test(v.className)&&l.node.removeChild(v);gu(s,l,g)}function Wt(s,l,g,h){var v=ue(s,l);return l.text=l.node=v.pre,v.bgClass&&(l.bgClass=v.bgClass),v.textClass&&(l.textClass=v.textClass),_n(s,l),us(s,l,g,h),gu(s,l,h),l.node}function gu(s,l,g){if(Eu(s,l.line,l,g,!0),l.rest)for(var h=0;h<l.rest.length;h++)Eu(s,l.rest[h],l,g,!1)}function Eu(s,l,g,h,v){if(l.widgets)for(var b=le(g),N=0,y=l.widgets;N<y.length;++N){var w=y[N],G=Ee("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||G.setAttribute("cm-ignore-events","true"),gc(w,G,g,h),s.display.input.setUneditable(G),v&&w.above?b.insertBefore(G,g.gutter||g.text):b.appendChild(G),ot(w,"redraw")}}function gc(s,l,g,h){if(s.noHScroll){(g.alignable||(g.alignable=[])).push(l);var v=h.wrapperWidth;l.style.left=h.fixedPos+"px",s.coverGutter||(v-=h.gutterTotalWidth,l.style.paddingLeft=h.gutterTotalWidth+"px"),l.style.width=v+"px"}s.coverGutter&&(l.style.zIndex=5,l.style.position="relative",s.noHScroll||(l.style.marginLeft=-h.gutterTotalWidth+"px"))}function Di(s){if(s.height!=null)return s.height;var l=s.doc.cm;if(!l)return 0;if(!or(document.body,s.node)){var g="position: relative;";s.coverGutter&&(g+="margin-left: -"+l.display.gutters.offsetWidth+"px;"),s.noHScroll&&(g+="width: "+l.display.wrapper.clientWidth+"px;"),Ke(l.display.measure,Ee("div",[s.node],null,g))}return s.height=s.node.parentNode.offsetHeight}function Qi(s,l){for(var g=rn(l);g!=s.wrapper;g=g.parentNode)if(!g||g.nodeType==1&&g.getAttribute("cm-ignore-events")=="true"||g.parentNode==s.sizer&&g!=s.mover)return!0}function gn(s){return s.lineSpace.offsetTop}function Za(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function mu(s){if(s.cachedPaddingH)return s.cachedPaddingH;var l=Ke(s.measure,Ee("pre","x","CodeMirror-line-like")),g=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,h={left:parseInt(g.paddingLeft),right:parseInt(g.paddingRight)};return!isNaN(h.left)&&!isNaN(h.right)&&(s.cachedPaddingH=h),h}function Ni(s){return ti-s.display.nativeBarWidth}function ws(s){return s.display.scroller.clientWidth-Ni(s)-s.display.barWidth}function Ma(s){return s.display.scroller.clientHeight-Ni(s)-s.display.barHeight}function Ec(s,l,g){var h=s.options.lineWrapping,v=h&&ws(s);if(!l.measure.heights||h&&l.measure.width!=v){var b=l.measure.heights=[];if(h){l.measure.width=v;for(var N=l.text.firstChild.getClientRects(),y=0;y<N.length-1;y++){var w=N[y],G=N[y+1];Math.abs(w.bottom-G.bottom)>2&&b.push((w.bottom+G.top)/2-g.top)}}b.push(g.bottom-g.top)}}function Jo(s,l,g){if(s.line==l)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var h=0;h<s.rest.length;h++)if(s.rest[h]==l)return{map:s.measure.maps[h],cache:s.measure.caches[h]};for(var v=0;v<s.rest.length;v++)if(Je(s.rest[v])>g)return{map:s.measure.maps[v],cache:s.measure.caches[v],before:!0}}}function $t(s,l){l=li(l);var g=Je(l),h=s.display.externalMeasured=new hn(s.doc,l,g);h.lineN=g;var v=h.built=pu(s,h);return h.text=v.pre,Ke(s.display.lineMeasure,v.pre),h}function vu(s,l,g,h){return Ti(s,En(s,l),g,h)}function bt(s,l){if(l>=s.display.viewFrom&&l<s.display.viewTo)return s.display.view[ki(s,l)];var g=s.display.externalMeasured;if(g&&l>=g.lineN&&l<g.lineN+g.size)return g}function En(s,l){var g=Je(l),h=bt(s,g);h&&!h.text?h=null:h&&h.changes&&(hu(s,h,g,Fs(s)),s.curOp.forceUpdate=!0),h||(h=$t(s,l));var v=Jo(h,l,g);return{line:l,view:h,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function Ti(s,l,g,h,v){l.before&&(g=-1);var b=g+(h||""),N;return l.cache.hasOwnProperty(b)?N=l.cache[b]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(Ec(s,l.view,l.rect),l.hasHeights=!0),N=jn(s,l,g,h),N.bogus||(l.cache[b]=N)),{left:N.left,right:N.right,top:v?N.rtop:N.top,bottom:v?N.rbottom:N.bottom}}var Iu={left:0,right:0,top:0,bottom:0};function Cu(s,l,g){for(var h,v,b,N,y,w,G=0;G<s.length;G+=3)if(y=s[G],w=s[G+1],l<y?(v=0,b=1,N="left"):l<w?(v=l-y,b=v+1):(G==s.length-3||l==w&&s[G+3]>l)&&(b=w-y,v=b-1,l>=w&&(N="right")),v!=null){if(h=s[G+2],y==w&&g==(h.insertLeft?"left":"right")&&(N=g),g=="left"&&v==0)for(;G&&s[G-2]==s[G-3]&&s[G-1].insertLeft;)h=s[(G-=3)+2],N="left";if(g=="right"&&v==w-y)for(;G<s.length-3&&s[G+3]==s[G+4]&&!s[G+5].insertLeft;)h=s[(G+=3)+2],N="right";break}return{node:h,start:v,end:b,collapse:N,coverStart:y,coverEnd:w}}function mc(s,l){var g=Iu;if(l=="left")for(var h=0;h<s.length&&(g=s[h]).left==g.right;h++);else for(var v=s.length-1;v>=0&&(g=s[v]).left==g.right;v--);return g}function jn(s,l,g,h){var v=Cu(l.map,g,h),b=v.node,N=v.start,y=v.end,w=v.collapse,G;if(b.nodeType==3){for(var k=0;k<4;k++){for(;N&&dt(l.line.text.charAt(v.coverStart+N));)--N;for(;v.coverStart+y<v.coverEnd&&dt(l.line.text.charAt(v.coverStart+y));)++y;if(F&&Z<9&&N==0&&y==v.coverEnd-v.coverStart?G=b.parentNode.getBoundingClientRect():G=mc(ur(b,N,y).getClientRects(),h),G.left||G.right||N==0)break;y=N,N=N-1,w="right"}F&&Z<11&&(G=vc(s.display.measure,G))}else{N>0&&(w=h="right");var _;s.options.lineWrapping&&(_=b.getClientRects()).length>1?G=_[h=="right"?_.length-1:0]:G=b.getBoundingClientRect()}if(F&&Z<9&&!N&&(!G||!G.left&&!G.right)){var ie=b.parentNode.getClientRects()[0];ie?G={left:ie.left,right:ie.left+cs(s.display),top:ie.top,bottom:ie.bottom}:G=Iu}for(var te=G.top-l.rect.top,ae=G.bottom-l.rect.top,ce=(te+ae)/2,he=l.view.measure.heights,ve=0;ve<he.length-1&&!(ce<he[ve]);ve++);var Ce=ve?he[ve-1]:0,Ie=he[ve],Re={left:(w=="right"?G.right:G.left)-l.rect.left,right:(w=="left"?G.left:G.right)-l.rect.left,top:Ce,bottom:Ie};return!G.left&&!G.right&&(Re.bogus=!0),s.options.singleCursorHeightPerLine||(Re.rtop=te,Re.rbottom=ae),Re}function vc(s,l){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ai(s))return l;var g=screen.logicalXDPI/screen.deviceXDPI,h=screen.logicalYDPI/screen.deviceYDPI;return{left:l.left*g,right:l.right*g,top:l.top*h,bottom:l.bottom*h}}function xu(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var l=0;l<s.rest.length;l++)s.measure.caches[l]={}}function _o(s){s.display.externalMeasure=null,Be(s.display.lineMeasure);for(var l=0;l<s.display.view.length;l++)xu(s.display.view[l])}function Gs(s){_o(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function mn(s){return P&&V?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function bu(s){return P&&V?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Da(s){var l=li(s),g=l.widgets,h=0;if(g)for(var v=0;v<g.length;++v)g[v].above&&(h+=Di(g[v]));return h}function vn(s,l,g,h,v){if(!v){var b=Da(l);g.top+=b,g.bottom+=b}if(h=="line")return g;h||(h="local");var N=Mi(l);if(h=="local"?N+=gn(s.display):N-=s.display.viewOffset,h=="page"||h=="window"){var y=s.display.lineSpace.getBoundingClientRect();N+=y.top+(h=="window"?0:bu(cr(s)));var w=y.left+(h=="window"?0:mn(cr(s)));g.left+=w,g.right+=w}return g.top+=N,g.bottom+=N,g}function fs(s,l,g){if(g=="div")return l;var h=l.left,v=l.top;if(g=="page")h-=mn(cr(s)),v-=bu(cr(s));else if(g=="local"||!g){var b=s.display.sizer.getBoundingClientRect();h+=b.left,v+=b.top}var N=s.display.lineSpace.getBoundingClientRect();return{left:h-N.left,top:v-N.top}}function jo(s,l,g,h,v){return h||(h=Ae(s.doc,l.line)),vn(s,h,vu(s,h,l.ch,v),g)}function er(s,l,g,h,v,b){h=h||Ae(s.doc,l.line),v||(v=En(s,h));function N(ae,ce){var he=Ti(s,v,ae,ce?"right":"left",b);return ce?he.left=he.right:he.right=he.left,vn(s,h,he,g)}var y=Sr(h,s.doc.direction),w=l.ch,G=l.sticky;if(w>=h.text.length?(w=h.text.length,G="before"):w<=0&&(w=0,G="after"),!y)return N(G=="before"?w-1:w,G=="before");function k(ae,ce,he){var ve=y[ce],Ce=ve.level==1;return N(he?ae-1:ae,Ce!=he)}var _=Lt(y,w,G),ie=Bt,te=k(w,_,G=="before");return ie!=null&&(te.other=k(w,ie,G!="before")),te}function Au(s,l){var g=0;l=$e(s.doc,l),s.options.lineWrapping||(g=cs(s.display)*l.ch);var h=Ae(s.doc,l.line),v=Mi(h)+gn(s.display);return{left:g,right:g,top:v,bottom:v+h.height}}function Qa(s,l,g,h,v){var b=pe(s,l,g);return b.xRel=v,h&&(b.outside=h),b}function ka(s,l,g){var h=s.doc;if(g+=s.display.viewOffset,g<0)return Qa(h.first,0,null,-1,-1);var v=Ci(h,g),b=h.first+h.size-1;if(v>b)return Qa(h.first+h.size-1,Ae(h,b).text.length,null,1,1);l<0&&(l=0);for(var N=Ae(h,v);;){var y=Ic(s,N,v,l,g),w=Ba(N,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var G=w.find(1);if(G.line==v)return G;N=Ae(h,v=G.line)}}function Nu(s,l,g,h){h-=Da(l);var v=l.text.length,b=Wr(function(N){return Ti(s,g,N-1).bottom<=h},v,0);return v=Wr(function(N){return Ti(s,g,N).top>h},b,v),{begin:b,end:v}}function Tu(s,l,g,h){g||(g=En(s,l));var v=vn(s,l,Ti(s,g,h),"line").top;return Nu(s,l,g,v)}function zn(s,l,g,h){return s.bottom<=g?!1:s.top>g?!0:(h?s.left:s.right)>l}function Ic(s,l,g,h,v){v-=Mi(l);var b=En(s,l),N=Da(l),y=0,w=l.text.length,G=!0,k=Sr(l,s.doc.direction);if(k){var _=(s.options.lineWrapping?Us:Ye)(s,l,g,b,k,h,v);G=_.level!=1,y=G?_.from:_.to-1,w=G?_.to:_.from-1}var ie=null,te=null,ae=Wr(function(ke){var We=Ti(s,b,ke);return We.top+=N,We.bottom+=N,zn(We,h,v,!1)?(We.top<=v&&We.left<=h&&(ie=ke,te=We),!0):!1},y,w),ce,he,ve=!1;if(te){var Ce=h-te.left<te.right-h,Ie=Ce==G;ae=ie+(Ie?0:1),he=Ie?"after":"before",ce=Ce?te.left:te.right}else{!G&&(ae==w||ae==y)&&ae++,he=ae==0?"after":ae==l.text.length?"before":Ti(s,b,ae-(G?1:0)).bottom+N<=v==G?"after":"before";var Re=er(s,pe(g,ae,he),"line",l,b);ce=Re.left,ve=v<Re.top?-1:v>=Re.bottom?1:0}return ae=nr(l.text,ae,1),Qa(g,ae,he,ve,h-ce)}function Ye(s,l,g,h,v,b,N){var y=Wr(function(_){var ie=v[_],te=ie.level!=1;return zn(er(s,pe(g,te?ie.to:ie.from,te?"before":"after"),"line",l,h),b,N,!0)},0,v.length-1),w=v[y];if(y>0){var G=w.level!=1,k=er(s,pe(g,G?w.from:w.to,G?"after":"before"),"line",l,h);zn(k,b,N,!0)&&k.top>N&&(w=v[y-1])}return w}function Us(s,l,g,h,v,b,N){var y=Nu(s,l,h,N),w=y.begin,G=y.end;/\s/.test(l.text.charAt(G-1))&&G--;for(var k=null,_=null,ie=0;ie<v.length;ie++){var te=v[ie];if(!(te.from>=G||te.to<=w)){var ae=te.level!=1,ce=Ti(s,h,ae?Math.min(G,te.to)-1:Math.max(w,te.from)).right,he=ce<b?b-ce+1e9:ce-b;(!k||_>he)&&(k=te,_=he)}}return k||(k=v[v.length-1]),k.from<w&&(k={from:w,to:k.to,level:k.level}),k.to>G&&(k={from:k.from,to:G,level:k.level}),k}var qt;function Xr(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(qt==null){qt=Ee("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)qt.appendChild(document.createTextNode("x")),qt.appendChild(Ee("br"));qt.appendChild(document.createTextNode("x"))}Ke(s.measure,qt);var g=qt.offsetHeight/50;return g>3&&(s.cachedTextHeight=g),Be(s.measure),g||1}function cs(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var l=Ee("span","xxxxxxxxxx"),g=Ee("pre",[l],"CodeMirror-line-like");Ke(s.measure,g);var h=l.getBoundingClientRect(),v=(h.right-h.left)/10;return v>2&&(s.cachedCharWidth=v),v||10}function Fs(s){for(var l=s.display,g={},h={},v=l.gutters.clientLeft,b=l.gutters.firstChild,N=0;b;b=b.nextSibling,++N){var y=s.display.gutterSpecs[N].className;g[y]=b.offsetLeft+b.clientLeft+v,h[y]=b.clientWidth}return{fixedPos:At(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:h,wrapperWidth:l.wrapper.clientWidth}}function At(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function In(s){var l=Xr(s.display),g=s.options.lineWrapping,h=g&&Math.max(5,s.display.scroller.clientWidth/cs(s.display)-3);return function(v){if(bi(s.doc,v))return 0;var b=0;if(v.widgets)for(var N=0;N<v.widgets.length;N++)v.widgets[N].height&&(b+=v.widgets[N].height);return g?b+(Math.ceil(v.text.length/h)||1)*l:b+l}}function Bs(s){var l=s.doc,g=In(s);l.iter(function(h){var v=g(h);v!=h.height&&Pt(h,v)})}function ui(s,l,g,h){var v=s.display;if(!g&&rn(l).getAttribute("cm-not-content")=="true")return null;var b,N,y=v.lineSpace.getBoundingClientRect();try{b=l.clientX-y.left,N=l.clientY-y.top}catch{return null}var w=ka(s,b,N),G;if(h&&w.xRel>0&&(G=Ae(s.doc,w.line).text).length==w.ch){var k=dr(G,G.length,s.options.tabSize)-G.length;w=pe(w.line,Math.max(0,Math.round((b-mu(s.display).left)/cs(s.display))-k))}return w}function ki(s,l){if(l>=s.display.viewTo||(l-=s.display.viewFrom,l<0))return null;for(var g=s.display.view,h=0;h<g.length;h++)if(l-=g[h].size,l<0)return h}function Nt(s,l,g,h){l==null&&(l=s.doc.first),g==null&&(g=s.doc.first+s.doc.size),h||(h=0);var v=s.display;if(h&&g<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>l)&&(v.updateLineNumbers=l),s.curOp.viewChanged=!0,l>=v.viewTo)Vi&&Hn(s.doc,l)<v.viewTo&&Ri(s);else if(g<=v.viewFrom)Vi&&Yo(s.doc,g+h)>v.viewFrom?Ri(s):(v.viewFrom+=h,v.viewTo+=h);else if(l<=v.viewFrom&&g>=v.viewTo)Ri(s);else if(l<=v.viewFrom){var b=ps(s,g,g+h,1);b?(v.view=v.view.slice(b.index),v.viewFrom=b.lineN,v.viewTo+=h):Ri(s)}else if(g>=v.viewTo){var N=ps(s,l,l,-1);N?(v.view=v.view.slice(0,N.index),v.viewTo=N.lineN):Ri(s)}else{var y=ps(s,l,l,-1),w=ps(s,g,g+h,1);y&&w?(v.view=v.view.slice(0,y.index).concat(ls(s,y.lineN,w.lineN)).concat(v.view.slice(w.index)),v.viewTo+=h):Ri(s)}var G=v.externalMeasured;G&&(g<G.lineN?G.lineN+=h:l<G.lineN+G.size&&(v.externalMeasured=null))}function Yt(s,l,g){s.curOp.viewChanged=!0;var h=s.display,v=s.display.externalMeasured;if(v&&l>=v.lineN&&l<v.lineN+v.size&&(h.externalMeasured=null),!(l<h.viewFrom||l>=h.viewTo)){var b=h.view[ki(s,l)];if(b.node!=null){var N=b.changes||(b.changes=[]);Cr(N,g)==-1&&N.push(g)}}}function Ri(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function ps(s,l,g,h){var v=ki(s,l),b,N=s.display.view;if(!Vi||g==s.doc.first+s.doc.size)return{index:v,lineN:g};for(var y=s.display.viewFrom,w=0;w<v;w++)y+=N[w].size;if(y!=l){if(h>0){if(v==N.length-1)return null;b=y+N[v].size-l,v++}else b=y-l;l+=b,g+=b}for(;Hn(s.doc,g)!=g;){if(v==(h<0?0:N.length-1))return null;g+=h*N[v-(h<0?1:0)].size,v+=h}return{index:v,lineN:g}}function $n(s,l,g){var h=s.display,v=h.view;v.length==0||l>=h.viewTo||g<=h.viewFrom?(h.view=ls(s,l,g),h.viewFrom=l):(h.viewFrom>l?h.view=ls(s,l,h.viewFrom).concat(h.view):h.viewFrom<l&&(h.view=h.view.slice(ki(s,l))),h.viewFrom=l,h.viewTo<g?h.view=h.view.concat(ls(s,h.viewTo,g)):h.viewTo>g&&(h.view=h.view.slice(0,ki(s,g)))),h.viewTo=g}function zo(s){for(var l=s.display.view,g=0,h=0;h<l.length;h++){var v=l[h];!v.hidden&&(!v.node||v.changes)&&++g}return g}function Os(s){s.display.input.showSelection(s.display.input.prepareSelection())}function ds(s,l){l===void 0&&(l=!0);var g=s.doc,h={},v=h.cursors=document.createDocumentFragment(),b=h.selection=document.createDocumentFragment(),N=s.options.$customCursor;N&&(l=!0);for(var y=0;y<g.sel.ranges.length;y++)if(!(!l&&y==g.sel.primIndex)){var w=g.sel.ranges[y];if(!(w.from().line>=s.display.viewTo||w.to().line<s.display.viewFrom)){var G=w.empty();if(N){var k=N(s,w);k&&Vs(s,k,v)}else(G||s.options.showCursorWhenSelecting)&&Vs(s,w.head,v);G||Cc(s,w,b)}}return h}function Vs(s,l,g){var h=er(s,l,"div",null,null,!s.options.singleCursorHeightPerLine),v=g.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(v.style.left=h.left+"px",v.style.top=h.top+"px",v.style.height=Math.max(0,h.bottom-h.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var b=jo(s,l,"div",null,null),N=b.right-b.left;v.style.width=(N>0?N:s.defaultCharWidth())+"px"}if(h.other){var y=g.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=h.other.left+"px",y.style.top=h.other.top+"px",y.style.height=(h.other.bottom-h.other.top)*.85+"px"}}function Pr(s,l){return s.top-l.top||s.left-l.left}function Cc(s,l,g){var h=s.display,v=s.doc,b=document.createDocumentFragment(),N=mu(s.display),y=N.left,w=Math.max(h.sizerWidth,ws(s)-h.sizer.offsetLeft)-N.right,G=v.direction=="ltr";function k(Ie,Re,ke,We){Re<0&&(Re=0),Re=Math.round(Re),We=Math.round(We),b.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+Ie+`px;
5
+ `?(ce=k.appendChild(Ee("span",ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ce.setAttribute("cm-text",ie[0]),s.col+=1):(ce=s.cm.options.specialCharPlaceholder(ie[0]),ce.setAttribute("cm-text",ie[0]),F&&Z<9?k.appendChild(Ee("span",[ce])):k.appendChild(ce),s.col+=1);s.map.push(s.pos,s.pos+1,ce),s.pos++}}if(s.trailingSpace=y.charCodeAt(l.length-1)==32,g||h||v||G||b||N){var Ce=g||"";h&&(Ce+=h),v&&(Ce+=v);var Ie=Ee("span",[k],Ce,b);if(N)for(var Re in N)N.hasOwnProperty(Re)&&Re!="style"&&Re!="class"&&Ie.setAttribute(Re,N[Re]);return s.content.appendChild(Ie)}s.content.appendChild(k)}}function uc(s,l){if(s.length>1&&!/ /.test(s))return s;for(var g=l,h="",v=0;v<s.length;v++){var b=s.charAt(v);b==" "&&g&&(v==s.length-1||s.charCodeAt(v+1)==32)&&(b="\xA0"),h+=b,g=b==" "}return h}function fc(s,l){return function(g,h,v,b,N,y,w){v=v?v+" cm-force-border":"cm-force-border";for(var G=g.pos,k=G+h.length;;){for(var _=void 0,ie=0;ie<l.length&&(_=l[ie],!(_.to>G&&_.from<=G));ie++);if(_.to>=k)return s(g,h,v,b,N,y,w);s(g,h.slice(0,_.to-G),v,b,null,y,w),b=null,h=h.slice(_.to-G),G=_.to}}}function du(s,l,g,h){var v=!h&&g.widgetNode;v&&s.map.push(s.pos,s.pos+l,v),!h&&s.cm.display.input.needsContentAttribute&&(v||(v=s.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",g.id)),v&&(s.cm.display.input.setUneditable(v),s.content.appendChild(v)),s.pos+=l,s.trailingSpace=!1}function cc(s,l,g){var h=s.markedSpans,v=s.text,b=0;if(!h){for(var N=1;N<g.length;N+=2)l.addToken(l,v.slice(b,b=g[N]),cu(g[N+1],l.cm.options));return}for(var y=v.length,w=0,G=1,k="",_,ie,te=0,ae,ce,he,ve,Ce;;){if(te==w){ae=ce=he=ie="",Ce=null,ve=null,te=1/0;for(var Ie=[],Re=void 0,ke=0;ke<h.length;++ke){var We=h[ke],tr=We.marker;if(tr.type=="bookmark"&&We.from==w&&tr.widgetNode)Ie.push(tr);else if(We.from<=w&&(We.to==null||We.to>w||tr.collapsed&&We.to==w&&We.from==w)){if(We.to!=null&&We.to!=w&&te>We.to&&(te=We.to,ce=""),tr.className&&(ae+=" "+tr.className),tr.css&&(ie=(ie?ie+";":"")+tr.css),tr.startStyle&&We.from==w&&(he+=" "+tr.startStyle),tr.endStyle&&We.to==te&&(Re||(Re=[])).push(tr.endStyle,We.to),tr.title&&((Ce||(Ce={})).title=tr.title),tr.attributes)for(var Tr in tr.attributes)(Ce||(Ce={}))[Tr]=tr.attributes[Tr];tr.collapsed&&(!ve||Fa(ve.marker,tr)<0)&&(ve=We)}else We.from>w&&te>We.from&&(te=We.from)}if(Re)for(var ut=0;ut<Re.length;ut+=2)Re[ut+1]==te&&(ce+=" "+Re[ut]);if(!ve||ve.from==w)for(var Ur=0;Ur<Ie.length;++Ur)du(l,0,Ie[Ur]);if(ve&&(ve.from||0)==w){if(du(l,(ve.to==null?y+1:ve.to)-w,ve.marker,ve.from==null),ve.to==null)return;ve.to==w&&(ve=!1)}}if(w>=y)break;for(var Jt=Math.min(y,te);;){if(k){var Mt=w+k.length;if(!ve){var jr=Mt>Jt?k.slice(0,Jt-w):k;l.addToken(l,jr,_?_+ae:ae,he,w+jr.length==te?ce:"",ie,Ce)}if(Mt>=Jt){k=k.slice(Jt-w),w=Jt;break}w=Mt,he=""}k=v.slice(b,b=g[G++]),_=cu(g[G++],l.cm.options)}}}function hn(s,l,g){this.line=l,this.rest=Oa(l),this.size=this.rest?Je(xe(this.rest))-g+1:1,this.node=this.text=null,this.hidden=bi(s,l)}function ls(s,l,g){for(var h=[],v,b=l;b<g;b=v){var N=new hn(s.doc,Ae(s.doc,b),b);v=b+N.size,h.push(N)}return h}var Ai=null;function pc(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function dc(s){var l=s.delayedCallbacks,g=0;do{for(;g<l.length;g++)l[g].call(null);for(var h=0;h<s.ops.length;h++){var v=s.ops[h];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(g<l.length)}function hc(s,l){var g=s.ownsGroup;if(g)try{dc(g)}finally{Ai=null,l(g)}}var Jn=null;function ot(s,l){var g=oi(s,l);if(g.length){var h=Array.prototype.slice.call(arguments,2),v;Ai?v=Ai.delayedCallbacks:Jn?v=Jn:(v=Jn=[],setTimeout(xt,0));for(var b=function(y){v.push(function(){return g[y].apply(null,h)})},N=0;N<g.length;++N)b(N)}}function xt(){var s=Jn;Jn=null;for(var l=0;l<s.length;++l)s[l]()}function hu(s,l,g,h){for(var v=0;v<l.changes.length;v++){var b=l.changes[v];b=="text"?_r(s,l):b=="gutter"?us(s,l,g,h):b=="class"?_n(s,l):b=="widget"&&Vt(s,l,h)}l.changes=null}function le(s){return s.node==s.text&&(s.node=Ee("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),F&&Z<8&&(s.node.style.zIndex=2)),s.node}function Ls(s,l){var g=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(g&&(g+=" CodeMirror-linebackground"),l.background)g?l.background.className=g:(l.background.parentNode.removeChild(l.background),l.background=null);else if(g){var h=le(l);l.background=h.insertBefore(Ee("div",null,g),h.firstChild),s.display.input.setUneditable(l.background)}}function ue(s,l){var g=s.display.externalMeasured;return g&&g.line==l.line?(s.display.externalMeasured=null,l.measure=g.measure,g.built):pu(s,l)}function _r(s,l){var g=l.text.className,h=ue(s,l);l.text==l.node&&(l.node=h.pre),l.text.parentNode.replaceChild(h.pre,l.text),l.text=h.pre,h.bgClass!=l.bgClass||h.textClass!=l.textClass?(l.bgClass=h.bgClass,l.textClass=h.textClass,_n(s,l)):g&&(l.text.className=g)}function _n(s,l){Ls(s,l),l.line.wrapClass?le(l).className=l.line.wrapClass:l.node!=l.text&&(l.node.className="");var g=l.textClass?l.textClass+" "+(l.line.textClass||""):l.line.textClass;l.text.className=g||""}function us(s,l,g,h){if(l.gutter&&(l.node.removeChild(l.gutter),l.gutter=null),l.gutterBackground&&(l.node.removeChild(l.gutterBackground),l.gutterBackground=null),l.line.gutterClass){var v=le(l);l.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+l.line.gutterClass,"left: "+(s.options.fixedGutter?h.fixedPos:-h.gutterTotalWidth)+"px; width: "+h.gutterTotalWidth+"px"),s.display.input.setUneditable(l.gutterBackground),v.insertBefore(l.gutterBackground,l.text)}var b=l.line.gutterMarkers;if(s.options.lineNumbers||b){var N=le(l),y=l.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?h.fixedPos:-h.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),s.display.input.setUneditable(y),N.insertBefore(y,l.text),l.line.gutterClass&&(y.className+=" "+l.line.gutterClass),s.options.lineNumbers&&(!b||!b["CodeMirror-linenumbers"])&&(l.lineNumber=y.appendChild(Ee("div",Sa(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+h.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),b)for(var w=0;w<s.display.gutterSpecs.length;++w){var G=s.display.gutterSpecs[w].className,k=b.hasOwnProperty(G)&&b[G];k&&y.appendChild(Ee("div",[k],"CodeMirror-gutter-elt","left: "+h.gutterLeft[G]+"px; width: "+h.gutterWidth[G]+"px"))}}}function Vt(s,l,g){l.alignable&&(l.alignable=null);for(var h=be("CodeMirror-linewidget"),v=l.node.firstChild,b=void 0;v;v=b)b=v.nextSibling,h.test(v.className)&&l.node.removeChild(v);gu(s,l,g)}function Wt(s,l,g,h){var v=ue(s,l);return l.text=l.node=v.pre,v.bgClass&&(l.bgClass=v.bgClass),v.textClass&&(l.textClass=v.textClass),_n(s,l),us(s,l,g,h),gu(s,l,h),l.node}function gu(s,l,g){if(Eu(s,l.line,l,g,!0),l.rest)for(var h=0;h<l.rest.length;h++)Eu(s,l.rest[h],l,g,!1)}function Eu(s,l,g,h,v){if(l.widgets)for(var b=le(g),N=0,y=l.widgets;N<y.length;++N){var w=y[N],G=Ee("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||G.setAttribute("cm-ignore-events","true"),gc(w,G,g,h),s.display.input.setUneditable(G),v&&w.above?b.insertBefore(G,g.gutter||g.text):b.appendChild(G),ot(w,"redraw")}}function gc(s,l,g,h){if(s.noHScroll){(g.alignable||(g.alignable=[])).push(l);var v=h.wrapperWidth;l.style.left=h.fixedPos+"px",s.coverGutter||(v-=h.gutterTotalWidth,l.style.paddingLeft=h.gutterTotalWidth+"px"),l.style.width=v+"px"}s.coverGutter&&(l.style.zIndex=5,l.style.position="relative",s.noHScroll||(l.style.marginLeft=-h.gutterTotalWidth+"px"))}function Di(s){if(s.height!=null)return s.height;var l=s.doc.cm;if(!l)return 0;if(!or(document.body,s.node)){var g="position: relative;";s.coverGutter&&(g+="margin-left: -"+l.display.gutters.offsetWidth+"px;"),s.noHScroll&&(g+="width: "+l.display.wrapper.clientWidth+"px;"),Ke(l.display.measure,Ee("div",[s.node],null,g))}return s.height=s.node.parentNode.offsetHeight}function Qi(s,l){for(var g=rn(l);g!=s.wrapper;g=g.parentNode)if(!g||g.nodeType==1&&g.getAttribute("cm-ignore-events")=="true"||g.parentNode==s.sizer&&g!=s.mover)return!0}function gn(s){return s.lineSpace.offsetTop}function Za(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function mu(s){if(s.cachedPaddingH)return s.cachedPaddingH;var l=Ke(s.measure,Ee("pre","x","CodeMirror-line-like")),g=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,h={left:parseInt(g.paddingLeft),right:parseInt(g.paddingRight)};return!isNaN(h.left)&&!isNaN(h.right)&&(s.cachedPaddingH=h),h}function Ni(s){return ti-s.display.nativeBarWidth}function ws(s){return s.display.scroller.clientWidth-Ni(s)-s.display.barWidth}function Ma(s){return s.display.scroller.clientHeight-Ni(s)-s.display.barHeight}function Ec(s,l,g){var h=s.options.lineWrapping,v=h&&ws(s);if(!l.measure.heights||h&&l.measure.width!=v){var b=l.measure.heights=[];if(h){l.measure.width=v;for(var N=l.text.firstChild.getClientRects(),y=0;y<N.length-1;y++){var w=N[y],G=N[y+1];Math.abs(w.bottom-G.bottom)>2&&b.push((w.bottom+G.top)/2-g.top)}}b.push(g.bottom-g.top)}}function Jo(s,l,g){if(s.line==l)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var h=0;h<s.rest.length;h++)if(s.rest[h]==l)return{map:s.measure.maps[h],cache:s.measure.caches[h]};for(var v=0;v<s.rest.length;v++)if(Je(s.rest[v])>g)return{map:s.measure.maps[v],cache:s.measure.caches[v],before:!0}}}function $t(s,l){l=li(l);var g=Je(l),h=s.display.externalMeasured=new hn(s.doc,l,g);h.lineN=g;var v=h.built=pu(s,h);return h.text=v.pre,Ke(s.display.lineMeasure,v.pre),h}function vu(s,l,g,h){return Ti(s,En(s,l),g,h)}function bt(s,l){if(l>=s.display.viewFrom&&l<s.display.viewTo)return s.display.view[ki(s,l)];var g=s.display.externalMeasured;if(g&&l>=g.lineN&&l<g.lineN+g.size)return g}function En(s,l){var g=Je(l),h=bt(s,g);h&&!h.text?h=null:h&&h.changes&&(hu(s,h,g,Fs(s)),s.curOp.forceUpdate=!0),h||(h=$t(s,l));var v=Jo(h,l,g);return{line:l,view:h,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function Ti(s,l,g,h,v){l.before&&(g=-1);var b=g+(h||""),N;return l.cache.hasOwnProperty(b)?N=l.cache[b]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(Ec(s,l.view,l.rect),l.hasHeights=!0),N=jn(s,l,g,h),N.bogus||(l.cache[b]=N)),{left:N.left,right:N.right,top:v?N.rtop:N.top,bottom:v?N.rbottom:N.bottom}}var Iu={left:0,right:0,top:0,bottom:0};function Cu(s,l,g){for(var h,v,b,N,y,w,G=0;G<s.length;G+=3)if(y=s[G],w=s[G+1],l<y?(v=0,b=1,N="left"):l<w?(v=l-y,b=v+1):(G==s.length-3||l==w&&s[G+3]>l)&&(b=w-y,v=b-1,l>=w&&(N="right")),v!=null){if(h=s[G+2],y==w&&g==(h.insertLeft?"left":"right")&&(N=g),g=="left"&&v==0)for(;G&&s[G-2]==s[G-3]&&s[G-1].insertLeft;)h=s[(G-=3)+2],N="left";if(g=="right"&&v==w-y)for(;G<s.length-3&&s[G+3]==s[G+4]&&!s[G+5].insertLeft;)h=s[(G+=3)+2],N="right";break}return{node:h,start:v,end:b,collapse:N,coverStart:y,coverEnd:w}}function mc(s,l){var g=Iu;if(l=="left")for(var h=0;h<s.length&&(g=s[h]).left==g.right;h++);else for(var v=s.length-1;v>=0&&(g=s[v]).left==g.right;v--);return g}function jn(s,l,g,h){var v=Cu(l.map,g,h),b=v.node,N=v.start,y=v.end,w=v.collapse,G;if(b.nodeType==3){for(var k=0;k<4;k++){for(;N&&dt(l.line.text.charAt(v.coverStart+N));)--N;for(;v.coverStart+y<v.coverEnd&&dt(l.line.text.charAt(v.coverStart+y));)++y;if(F&&Z<9&&N==0&&y==v.coverEnd-v.coverStart?G=b.parentNode.getBoundingClientRect():G=mc(ur(b,N,y).getClientRects(),h),G.left||G.right||N==0)break;y=N,N=N-1,w="right"}F&&Z<11&&(G=vc(s.display.measure,G))}else{N>0&&(w=h="right");var _;s.options.lineWrapping&&(_=b.getClientRects()).length>1?G=_[h=="right"?_.length-1:0]:G=b.getBoundingClientRect()}if(F&&Z<9&&!N&&(!G||!G.left&&!G.right)){var ie=b.parentNode.getClientRects()[0];ie?G={left:ie.left,right:ie.left+cs(s.display),top:ie.top,bottom:ie.bottom}:G=Iu}for(var te=G.top-l.rect.top,ae=G.bottom-l.rect.top,ce=(te+ae)/2,he=l.view.measure.heights,ve=0;ve<he.length-1&&!(ce<he[ve]);ve++);var Ce=ve?he[ve-1]:0,Ie=he[ve],Re={left:(w=="right"?G.right:G.left)-l.rect.left,right:(w=="left"?G.left:G.right)-l.rect.left,top:Ce,bottom:Ie};return!G.left&&!G.right&&(Re.bogus=!0),s.options.singleCursorHeightPerLine||(Re.rtop=te,Re.rbottom=ae),Re}function vc(s,l){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ai(s))return l;var g=screen.logicalXDPI/screen.deviceXDPI,h=screen.logicalYDPI/screen.deviceYDPI;return{left:l.left*g,right:l.right*g,top:l.top*h,bottom:l.bottom*h}}function xu(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var l=0;l<s.rest.length;l++)s.measure.caches[l]={}}function _o(s){s.display.externalMeasure=null,Be(s.display.lineMeasure);for(var l=0;l<s.display.view.length;l++)xu(s.display.view[l])}function Gs(s){_o(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function mn(s){return X&&V?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function bu(s){return X&&V?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Da(s){var l=li(s),g=l.widgets,h=0;if(g)for(var v=0;v<g.length;++v)g[v].above&&(h+=Di(g[v]));return h}function vn(s,l,g,h,v){if(!v){var b=Da(l);g.top+=b,g.bottom+=b}if(h=="line")return g;h||(h="local");var N=Mi(l);if(h=="local"?N+=gn(s.display):N-=s.display.viewOffset,h=="page"||h=="window"){var y=s.display.lineSpace.getBoundingClientRect();N+=y.top+(h=="window"?0:bu(cr(s)));var w=y.left+(h=="window"?0:mn(cr(s)));g.left+=w,g.right+=w}return g.top+=N,g.bottom+=N,g}function fs(s,l,g){if(g=="div")return l;var h=l.left,v=l.top;if(g=="page")h-=mn(cr(s)),v-=bu(cr(s));else if(g=="local"||!g){var b=s.display.sizer.getBoundingClientRect();h+=b.left,v+=b.top}var N=s.display.lineSpace.getBoundingClientRect();return{left:h-N.left,top:v-N.top}}function jo(s,l,g,h,v){return h||(h=Ae(s.doc,l.line)),vn(s,h,vu(s,h,l.ch,v),g)}function er(s,l,g,h,v,b){h=h||Ae(s.doc,l.line),v||(v=En(s,h));function N(ae,ce){var he=Ti(s,v,ae,ce?"right":"left",b);return ce?he.left=he.right:he.right=he.left,vn(s,h,he,g)}var y=Sr(h,s.doc.direction),w=l.ch,G=l.sticky;if(w>=h.text.length?(w=h.text.length,G="before"):w<=0&&(w=0,G="after"),!y)return N(G=="before"?w-1:w,G=="before");function k(ae,ce,he){var ve=y[ce],Ce=ve.level==1;return N(he?ae-1:ae,Ce!=he)}var _=Lt(y,w,G),ie=Bt,te=k(w,_,G=="before");return ie!=null&&(te.other=k(w,ie,G!="before")),te}function Au(s,l){var g=0;l=$e(s.doc,l),s.options.lineWrapping||(g=cs(s.display)*l.ch);var h=Ae(s.doc,l.line),v=Mi(h)+gn(s.display);return{left:g,right:g,top:v,bottom:v+h.height}}function Qa(s,l,g,h,v){var b=pe(s,l,g);return b.xRel=v,h&&(b.outside=h),b}function ka(s,l,g){var h=s.doc;if(g+=s.display.viewOffset,g<0)return Qa(h.first,0,null,-1,-1);var v=Ci(h,g),b=h.first+h.size-1;if(v>b)return Qa(h.first+h.size-1,Ae(h,b).text.length,null,1,1);l<0&&(l=0);for(var N=Ae(h,v);;){var y=Ic(s,N,v,l,g),w=Ba(N,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var G=w.find(1);if(G.line==v)return G;N=Ae(h,v=G.line)}}function Nu(s,l,g,h){h-=Da(l);var v=l.text.length,b=Wr(function(N){return Ti(s,g,N-1).bottom<=h},v,0);return v=Wr(function(N){return Ti(s,g,N).top>h},b,v),{begin:b,end:v}}function Tu(s,l,g,h){g||(g=En(s,l));var v=vn(s,l,Ti(s,g,h),"line").top;return Nu(s,l,g,v)}function zn(s,l,g,h){return s.bottom<=g?!1:s.top>g?!0:(h?s.left:s.right)>l}function Ic(s,l,g,h,v){v-=Mi(l);var b=En(s,l),N=Da(l),y=0,w=l.text.length,G=!0,k=Sr(l,s.doc.direction);if(k){var _=(s.options.lineWrapping?Us:Ye)(s,l,g,b,k,h,v);G=_.level!=1,y=G?_.from:_.to-1,w=G?_.to:_.from-1}var ie=null,te=null,ae=Wr(function(ke){var We=Ti(s,b,ke);return We.top+=N,We.bottom+=N,zn(We,h,v,!1)?(We.top<=v&&We.left<=h&&(ie=ke,te=We),!0):!1},y,w),ce,he,ve=!1;if(te){var Ce=h-te.left<te.right-h,Ie=Ce==G;ae=ie+(Ie?0:1),he=Ie?"after":"before",ce=Ce?te.left:te.right}else{!G&&(ae==w||ae==y)&&ae++,he=ae==0?"after":ae==l.text.length?"before":Ti(s,b,ae-(G?1:0)).bottom+N<=v==G?"after":"before";var Re=er(s,pe(g,ae,he),"line",l,b);ce=Re.left,ve=v<Re.top?-1:v>=Re.bottom?1:0}return ae=nr(l.text,ae,1),Qa(g,ae,he,ve,h-ce)}function Ye(s,l,g,h,v,b,N){var y=Wr(function(_){var ie=v[_],te=ie.level!=1;return zn(er(s,pe(g,te?ie.to:ie.from,te?"before":"after"),"line",l,h),b,N,!0)},0,v.length-1),w=v[y];if(y>0){var G=w.level!=1,k=er(s,pe(g,G?w.from:w.to,G?"after":"before"),"line",l,h);zn(k,b,N,!0)&&k.top>N&&(w=v[y-1])}return w}function Us(s,l,g,h,v,b,N){var y=Nu(s,l,h,N),w=y.begin,G=y.end;/\s/.test(l.text.charAt(G-1))&&G--;for(var k=null,_=null,ie=0;ie<v.length;ie++){var te=v[ie];if(!(te.from>=G||te.to<=w)){var ae=te.level!=1,ce=Ti(s,h,ae?Math.min(G,te.to)-1:Math.max(w,te.from)).right,he=ce<b?b-ce+1e9:ce-b;(!k||_>he)&&(k=te,_=he)}}return k||(k=v[v.length-1]),k.from<w&&(k={from:w,to:k.to,level:k.level}),k.to>G&&(k={from:k.from,to:G,level:k.level}),k}var qt;function Xr(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(qt==null){qt=Ee("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)qt.appendChild(document.createTextNode("x")),qt.appendChild(Ee("br"));qt.appendChild(document.createTextNode("x"))}Ke(s.measure,qt);var g=qt.offsetHeight/50;return g>3&&(s.cachedTextHeight=g),Be(s.measure),g||1}function cs(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var l=Ee("span","xxxxxxxxxx"),g=Ee("pre",[l],"CodeMirror-line-like");Ke(s.measure,g);var h=l.getBoundingClientRect(),v=(h.right-h.left)/10;return v>2&&(s.cachedCharWidth=v),v||10}function Fs(s){for(var l=s.display,g={},h={},v=l.gutters.clientLeft,b=l.gutters.firstChild,N=0;b;b=b.nextSibling,++N){var y=s.display.gutterSpecs[N].className;g[y]=b.offsetLeft+b.clientLeft+v,h[y]=b.clientWidth}return{fixedPos:At(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:h,wrapperWidth:l.wrapper.clientWidth}}function At(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function In(s){var l=Xr(s.display),g=s.options.lineWrapping,h=g&&Math.max(5,s.display.scroller.clientWidth/cs(s.display)-3);return function(v){if(bi(s.doc,v))return 0;var b=0;if(v.widgets)for(var N=0;N<v.widgets.length;N++)v.widgets[N].height&&(b+=v.widgets[N].height);return g?b+(Math.ceil(v.text.length/h)||1)*l:b+l}}function Bs(s){var l=s.doc,g=In(s);l.iter(function(h){var v=g(h);v!=h.height&&Pt(h,v)})}function ui(s,l,g,h){var v=s.display;if(!g&&rn(l).getAttribute("cm-not-content")=="true")return null;var b,N,y=v.lineSpace.getBoundingClientRect();try{b=l.clientX-y.left,N=l.clientY-y.top}catch{return null}var w=ka(s,b,N),G;if(h&&w.xRel>0&&(G=Ae(s.doc,w.line).text).length==w.ch){var k=dr(G,G.length,s.options.tabSize)-G.length;w=pe(w.line,Math.max(0,Math.round((b-mu(s.display).left)/cs(s.display))-k))}return w}function ki(s,l){if(l>=s.display.viewTo||(l-=s.display.viewFrom,l<0))return null;for(var g=s.display.view,h=0;h<g.length;h++)if(l-=g[h].size,l<0)return h}function Nt(s,l,g,h){l==null&&(l=s.doc.first),g==null&&(g=s.doc.first+s.doc.size),h||(h=0);var v=s.display;if(h&&g<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>l)&&(v.updateLineNumbers=l),s.curOp.viewChanged=!0,l>=v.viewTo)Vi&&Hn(s.doc,l)<v.viewTo&&Ri(s);else if(g<=v.viewFrom)Vi&&Yo(s.doc,g+h)>v.viewFrom?Ri(s):(v.viewFrom+=h,v.viewTo+=h);else if(l<=v.viewFrom&&g>=v.viewTo)Ri(s);else if(l<=v.viewFrom){var b=ps(s,g,g+h,1);b?(v.view=v.view.slice(b.index),v.viewFrom=b.lineN,v.viewTo+=h):Ri(s)}else if(g>=v.viewTo){var N=ps(s,l,l,-1);N?(v.view=v.view.slice(0,N.index),v.viewTo=N.lineN):Ri(s)}else{var y=ps(s,l,l,-1),w=ps(s,g,g+h,1);y&&w?(v.view=v.view.slice(0,y.index).concat(ls(s,y.lineN,w.lineN)).concat(v.view.slice(w.index)),v.viewTo+=h):Ri(s)}var G=v.externalMeasured;G&&(g<G.lineN?G.lineN+=h:l<G.lineN+G.size&&(v.externalMeasured=null))}function Yt(s,l,g){s.curOp.viewChanged=!0;var h=s.display,v=s.display.externalMeasured;if(v&&l>=v.lineN&&l<v.lineN+v.size&&(h.externalMeasured=null),!(l<h.viewFrom||l>=h.viewTo)){var b=h.view[ki(s,l)];if(b.node!=null){var N=b.changes||(b.changes=[]);Cr(N,g)==-1&&N.push(g)}}}function Ri(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function ps(s,l,g,h){var v=ki(s,l),b,N=s.display.view;if(!Vi||g==s.doc.first+s.doc.size)return{index:v,lineN:g};for(var y=s.display.viewFrom,w=0;w<v;w++)y+=N[w].size;if(y!=l){if(h>0){if(v==N.length-1)return null;b=y+N[v].size-l,v++}else b=y-l;l+=b,g+=b}for(;Hn(s.doc,g)!=g;){if(v==(h<0?0:N.length-1))return null;g+=h*N[v-(h<0?1:0)].size,v+=h}return{index:v,lineN:g}}function $n(s,l,g){var h=s.display,v=h.view;v.length==0||l>=h.viewTo||g<=h.viewFrom?(h.view=ls(s,l,g),h.viewFrom=l):(h.viewFrom>l?h.view=ls(s,l,h.viewFrom).concat(h.view):h.viewFrom<l&&(h.view=h.view.slice(ki(s,l))),h.viewFrom=l,h.viewTo<g?h.view=h.view.concat(ls(s,h.viewTo,g)):h.viewTo>g&&(h.view=h.view.slice(0,ki(s,g)))),h.viewTo=g}function zo(s){for(var l=s.display.view,g=0,h=0;h<l.length;h++){var v=l[h];!v.hidden&&(!v.node||v.changes)&&++g}return g}function Os(s){s.display.input.showSelection(s.display.input.prepareSelection())}function ds(s,l){l===void 0&&(l=!0);var g=s.doc,h={},v=h.cursors=document.createDocumentFragment(),b=h.selection=document.createDocumentFragment(),N=s.options.$customCursor;N&&(l=!0);for(var y=0;y<g.sel.ranges.length;y++)if(!(!l&&y==g.sel.primIndex)){var w=g.sel.ranges[y];if(!(w.from().line>=s.display.viewTo||w.to().line<s.display.viewFrom)){var G=w.empty();if(N){var k=N(s,w);k&&Vs(s,k,v)}else(G||s.options.showCursorWhenSelecting)&&Vs(s,w.head,v);G||Cc(s,w,b)}}return h}function Vs(s,l,g){var h=er(s,l,"div",null,null,!s.options.singleCursorHeightPerLine),v=g.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(v.style.left=h.left+"px",v.style.top=h.top+"px",v.style.height=Math.max(0,h.bottom-h.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var b=jo(s,l,"div",null,null),N=b.right-b.left;v.style.width=(N>0?N:s.defaultCharWidth())+"px"}if(h.other){var y=g.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=h.other.left+"px",y.style.top=h.other.top+"px",y.style.height=(h.other.bottom-h.other.top)*.85+"px"}}function Pr(s,l){return s.top-l.top||s.left-l.left}function Cc(s,l,g){var h=s.display,v=s.doc,b=document.createDocumentFragment(),N=mu(s.display),y=N.left,w=Math.max(h.sizerWidth,ws(s)-h.sizer.offsetLeft)-N.right,G=v.direction=="ltr";function k(Ie,Re,ke,We){Re<0&&(Re=0),Re=Math.round(Re),We=Math.round(We),b.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+Ie+`px;
6
6
  top: `+Re+"px; width: "+(ke??w-Ie)+`px;
7
7
  height: `+(We-Re)+"px"))}function _(Ie,Re,ke){var We=Ae(v,Ie),tr=We.text.length,Tr,ut;function Ur(jr,Dt){return jo(s,pe(Ie,jr),"div",We,Dt)}function Jt(jr,Dt,ht){var tt=Tu(s,We,null,jr),zr=Dt=="ltr"==(ht=="after")?"left":"right",Zr=ht=="after"?tt.begin:tt.end-(/\s/.test(We.text.charAt(tt.end-1))?2:1);return Ur(Zr,zr)[zr]}var Mt=Sr(We,v.direction);return vt(Mt,Re||0,ke??tr,function(jr,Dt,ht,tt){var zr=ht=="ltr",Zr=Ur(jr,zr?"left":"right"),Qt=Ur(Dt-1,zr?"right":"left"),Vn=Re==null&&jr==0,Is=ke==null&&Dt==tr,Rt=tt==0,wi=!Mt||tt==Mt.length-1;if(Qt.top-Zr.top<=3){var ft=(G?Vn:Is)&&Rt,cl=(G?Is:Vn)&&wi,Hi=ft?y:(zr?Zr:Qt).left,ks=cl?w:(zr?Qt:Zr).right;k(Hi,Zr.top,ks-Hi,Zr.bottom)}else{var Xs,Gt,Wn,pl;zr?(Xs=G&&Vn&&Rt?y:Zr.left,Gt=G?w:Jt(jr,ht,"before"),Wn=G?y:Jt(Dt,ht,"after"),pl=G&&Is&&wi?w:Qt.right):(Xs=G?Jt(jr,ht,"before"):y,Gt=!G&&Vn&&Rt?w:Zr.right,Wn=!G&&Is&&wi?y:Qt.left,pl=G?Jt(Dt,ht,"after"):w),k(Xs,Zr.top,Gt-Xs,Zr.bottom),Zr.bottom<Qt.top&&k(y,Zr.bottom,null,Qt.top),k(Wn,Qt.top,pl-Wn,Qt.bottom)}(!Tr||Pr(Zr,Tr)<0)&&(Tr=Zr),Pr(Qt,Tr)<0&&(Tr=Qt),(!ut||Pr(Zr,ut)<0)&&(ut=Zr),Pr(Qt,ut)<0&&(ut=Qt)}),{start:Tr,end:ut}}var ie=l.from(),te=l.to();if(ie.line==te.line)_(ie.line,ie.ch,te.ch);else{var ae=Ae(v,ie.line),ce=Ae(v,te.line),he=li(ae)==li(ce),ve=_(ie.line,ie.ch,he?ae.text.length+1:null).end,Ce=_(te.line,he?0:null,te.ch).start;he&&(ve.top<Ce.top-2?(k(ve.right,ve.top,null,ve.bottom),k(y,Ce.top,Ce.left,Ce.bottom)):k(ve.right,ve.top,Ce.left-ve.right,ve.bottom)),ve.bottom<Ce.top&&k(y,ve.bottom,null,Ce.top)}g.appendChild(b)}function Xa(s){if(s.state.focused){var l=s.display;clearInterval(l.blinker);var g=!0;l.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?l.blinker=setInterval(function(){s.hasFocus()||Cn(s),l.cursorDiv.style.visibility=(g=!g)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Ru(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||Ya(s))}function Pa(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&Cn(s))},100)}function Ya(s,l){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(hr(s,"focus",s,l),s.state.focused=!0,je(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),M&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),Xa(s))}function Cn(s,l){s.state.delayingBlurEvent||(s.state.focused&&(hr(s,"blur",s,l),s.state.focused=!1,Ze(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function $o(s){for(var l=s.display,g=l.lineDiv.offsetTop,h=Math.max(0,l.scroller.getBoundingClientRect().top),v=l.lineDiv.getBoundingClientRect().top,b=0,N=0;N<l.view.length;N++){var y=l.view[N],w=s.options.lineWrapping,G=void 0,k=0;if(!y.hidden){if(v+=y.line.height,F&&Z<8){var _=y.node.offsetTop+y.node.offsetHeight;G=_-g,g=_}else{var ie=y.node.getBoundingClientRect();G=ie.bottom-ie.top,!w&&y.text.firstChild&&(k=y.text.firstChild.getBoundingClientRect().right-ie.left-1)}var te=y.line.height-G;if((te>.005||te<-.005)&&(v<h&&(b-=te),Pt(y.line,G),yu(y.line),y.rest))for(var ae=0;ae<y.rest.length;ae++)yu(y.rest[ae]);if(k>s.display.sizerWidth){var ce=Math.ceil(k/cs(s.display));ce>s.display.maxLineLength&&(s.display.maxLineLength=ce,s.display.maxLine=y.line,s.display.maxLineChanged=!0)}}}Math.abs(b)>2&&(l.scroller.scrollTop+=b)}function yu(s){if(s.widgets)for(var l=0;l<s.widgets.length;++l){var g=s.widgets[l],h=g.node.parentNode;h&&(g.height=h.offsetHeight)}}function qo(s,l,g){var h=g&&g.top!=null?Math.max(0,g.top):s.scroller.scrollTop;h=Math.floor(h-gn(s));var v=g&&g.bottom!=null?g.bottom:h+s.wrapper.clientHeight,b=Ci(l,h),N=Ci(l,v);if(g&&g.ensure){var y=g.ensure.from.line,w=g.ensure.to.line;y<b?(b=y,N=Ci(l,Mi(Ae(l,y))+s.wrapper.clientHeight)):Math.min(w,l.lastLine())>=N&&(b=Ci(l,Mi(Ae(l,w))-s.wrapper.clientHeight),N=w)}return{from:b,to:Math.max(N,b+1)}}function xc(s,l){if(!xr(s,"scrollCursorIntoView")){var g=s.display,h=g.sizer.getBoundingClientRect(),v=null,b=g.wrapper.ownerDocument;if(l.top+h.top<0?v=!0:l.bottom+h.top>(b.defaultView.innerHeight||b.documentElement.clientHeight)&&(v=!1),v!=null&&!J){var N=Ee("div","\u200B",null,`position: absolute;
8
8
  top: `+(l.top-g.viewOffset-gn(s.display))+`px;
9
9
  height: `+(l.bottom-l.top+Ni(s)+g.barHeight)+`px;
10
- left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");s.display.lineSpace.appendChild(N),N.scrollIntoView(v),s.display.lineSpace.removeChild(N)}}}function bc(s,l,g,h){h==null&&(h=0);var v;!s.options.lineWrapping&&l==g&&(g=l.sticky=="before"?pe(l.line,l.ch+1,"before"):l,l=l.ch?pe(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var b=0;b<5;b++){var N=!1,y=er(s,l),w=!g||g==l?y:er(s,g);v={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-h,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+h};var G=Ha(s,v),k=s.doc.scrollTop,_=s.doc.scrollLeft;if(G.scrollTop!=null&&(Kn(s,G.scrollTop),Math.abs(s.doc.scrollTop-k)>1&&(N=!0)),G.scrollLeft!=null&&(Ws(s,G.scrollLeft),Math.abs(s.doc.scrollLeft-_)>1&&(N=!0)),!N)break}return v}function Ac(s,l){var g=Ha(s,l);g.scrollTop!=null&&Kn(s,g.scrollTop),g.scrollLeft!=null&&Ws(s,g.scrollLeft)}function Ha(s,l){var g=s.display,h=Xr(s.display);l.top<0&&(l.top=0);var v=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,b=Ma(s),N={};l.bottom-l.top>b&&(l.bottom=l.top+b);var y=s.doc.height+Za(g),w=l.top<h,G=l.bottom>y-h;if(l.top<v)N.scrollTop=w?0:l.top;else if(l.bottom>v+b){var k=Math.min(l.top,(G?y:l.bottom)-b);k!=v&&(N.scrollTop=k)}var _=s.options.fixedGutter?0:g.gutters.offsetWidth,ie=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-_,te=ws(s)-g.gutters.offsetWidth,ae=l.right-l.left>te;return ae&&(l.right=l.left+te),l.left<10?N.scrollLeft=0:l.left<ie?N.scrollLeft=Math.max(0,l.left+_-(ae?0:10)):l.right>te+ie-3&&(N.scrollLeft=l.right+(ae?0:10)-te),N}function Ja(s,l){l!=null&&(Ko(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function xn(s){Ko(s);var l=s.getCursor();s.curOp.scrollToPos={from:l,to:l,margin:s.options.cursorScrollMargin}}function qn(s,l,g){(l!=null||g!=null)&&Ko(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function Nc(s,l){Ko(s),s.curOp.scrollToPos=l}function Ko(s){var l=s.curOp.scrollToPos;if(l){s.curOp.scrollToPos=null;var g=Au(s,l.from),h=Au(s,l.to);Su(s,g,h,l.margin)}}function Su(s,l,g,h){var v=Ha(s,{left:Math.min(l.left,g.left),top:Math.min(l.top,g.top)-h,right:Math.max(l.right,g.right),bottom:Math.max(l.bottom,g.bottom)+h});qn(s,v.scrollLeft,v.scrollTop)}function Kn(s,l){Math.abs(s.doc.scrollTop-l)<2||(e||ja(s,{top:l}),Lu(s,l,!0),e&&ja(s),to(s,100))}function Lu(s,l,g){l=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,l)),!(s.display.scroller.scrollTop==l&&!g)&&(s.doc.scrollTop=l,s.display.scrollbars.setScrollTop(l),s.display.scroller.scrollTop!=l&&(s.display.scroller.scrollTop=l))}function Ws(s,l,g,h){l=Math.max(0,Math.min(l,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((g?l==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-l)<2)&&!h)&&(s.doc.scrollLeft=l,Bu(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function eo(s){var l=s.display,g=l.gutters.offsetWidth,h=Math.round(s.doc.height+Za(s.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:s.options.fixedGutter?g:0,docHeight:h,scrollHeight:h+Ni(s)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:g}}var Zs=function(s,l,g){this.cm=g;var h=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");h.tabIndex=v.tabIndex=-1,s(h),s(v),Oe(h,"scroll",function(){h.clientHeight&&l(h.scrollTop,"vertical")}),Oe(v,"scroll",function(){v.clientWidth&&l(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,F&&Z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Zs.prototype.update=function(s){var l=s.scrollWidth>s.clientWidth+1,g=s.scrollHeight>s.clientHeight+1,h=s.nativeBarWidth;if(g){this.vert.style.display="block",this.vert.style.bottom=l?h+"px":"0";var v=s.viewHeight-(l?h:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+v)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(l){this.horiz.style.display="block",this.horiz.style.right=g?h+"px":"0",this.horiz.style.left=s.barLeft+"px";var b=s.viewWidth-s.barLeft-(g?h:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+b)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(h==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:g?h:0,bottom:l?h:0}},Zs.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Zs.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Zs.prototype.zeroWidthHack=function(){var s=q&&!$?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Hr,this.disableVert=new Hr},Zs.prototype.enableZeroWidthBar=function(s,l,g){s.style.visibility="";function h(){var v=s.getBoundingClientRect(),b=g=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);b!=s?s.style.visibility="hidden":l.set(1e3,h)}l.set(1e3,h)},Zs.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var ro=function(){};ro.prototype.update=function(){return{bottom:0,right:0}},ro.prototype.setScrollLeft=function(){},ro.prototype.setScrollTop=function(){},ro.prototype.clear=function(){};function bn(s,l){l||(l=eo(s));var g=s.display.barWidth,h=s.display.barHeight;wu(s,l);for(var v=0;v<4&&g!=s.display.barWidth||h!=s.display.barHeight;v++)g!=s.display.barWidth&&s.options.lineWrapping&&$o(s),wu(s,eo(s)),g=s.display.barWidth,h=s.display.barHeight}function wu(s,l){var g=s.display,h=g.scrollbars.update(l);g.sizer.style.paddingRight=(g.barWidth=h.right)+"px",g.sizer.style.paddingBottom=(g.barHeight=h.bottom)+"px",g.heightForcer.style.borderBottom=h.bottom+"px solid transparent",h.right&&h.bottom?(g.scrollbarFiller.style.display="block",g.scrollbarFiller.style.height=h.bottom+"px",g.scrollbarFiller.style.width=h.right+"px"):g.scrollbarFiller.style.display="",h.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(g.gutterFiller.style.display="block",g.gutterFiller.style.height=h.bottom+"px",g.gutterFiller.style.width=l.gutterWidth+"px"):g.gutterFiller.style.display=""}var Gu={native:Zs,null:ro};function Uu(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Ze(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new Gu[s.options.scrollbarStyle](function(l){s.display.wrapper.insertBefore(l,s.display.scrollbarFiller),Oe(l,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),l.setAttribute("cm-not-content","true")},function(l,g){g=="horizontal"?Ws(s,l):Kn(s,l)},s),s.display.scrollbars.addClass&&je(s.display.wrapper,s.display.scrollbars.addClass)}var Tc=0;function Ms(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.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:++Tc,markArrays:null},pc(s.curOp)}function Ds(s){var l=s.curOp;l&&hc(l,function(g){for(var h=0;h<g.ops.length;h++)g.ops[h].cm.curOp=null;Rc(g)})}function Rc(s){for(var l=s.ops,g=0;g<l.length;g++)yc(l[g]);for(var h=0;h<l.length;h++)Sc(l[h]);for(var v=0;v<l.length;v++)Lc(l[v]);for(var b=0;b<l.length;b++)wc(l[b]);for(var N=0;N<l.length;N++)Gc(l[N])}function yc(s){var l=s.cm,g=l.display;Fc(l),s.updateMaxLine&&Wa(l),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<g.viewFrom||s.scrollToPos.to.line>=g.viewTo)||g.maxLineChanged&&l.options.lineWrapping,s.update=s.mustUpdate&&new ea(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function Sc(s){s.updatedDisplay=s.mustUpdate&&_a(s.cm,s.update)}function Lc(s){var l=s.cm,g=l.display;s.updatedDisplay&&$o(l),s.barMeasure=eo(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=vu(l,g.maxLine,g.maxLine.text.length).left+3,l.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(g.scroller.clientWidth,g.sizer.offsetLeft+s.adjustWidthTo+Ni(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-ws(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function wc(s){var l=s.cm;s.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<l.doc.scrollLeft&&Ws(l,Math.min(l.display.scroller.scrollLeft,s.maxScrollLeft),!0),l.display.maxLineChanged=!1);var g=s.focus&&s.focus==Or(qe(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&bn(l,s.barMeasure),s.updatedDisplay&&za(l,s.barMeasure),s.selectionChanged&&Xa(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Ru(s.cm)}function Gc(s){var l=s.cm,g=l.display,h=l.doc;if(s.updatedDisplay&&Fu(l,s.update),g.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),s.scrollTop!=null&&Lu(l,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Ws(l,s.scrollLeft,!0,!0),s.scrollToPos){var v=bc(l,$e(h,s.scrollToPos.from),$e(h,s.scrollToPos.to),s.scrollToPos.margin);xc(l,v)}var b=s.maybeHiddenMarkers,N=s.maybeUnhiddenMarkers;if(b)for(var y=0;y<b.length;++y)b[y].lines.length||hr(b[y],"hide");if(N)for(var w=0;w<N.length;++w)N[w].lines.length&&hr(N[w],"unhide");g.wrapper.offsetHeight&&(h.scrollTop=l.display.scroller.scrollTop),s.changeObjs&&hr(l,"changes",l,s.changeObjs),s.update&&s.update.finish()}function Ht(s,l){if(s.curOp)return l();Ms(s);try{return l()}finally{Ds(s)}}function at(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Ms(s);try{return l.apply(s,arguments)}finally{Ds(s)}}}function wt(s){return function(){if(this.curOp)return s.apply(this,arguments);Ms(this);try{return s.apply(this,arguments)}finally{Ds(this)}}}function lt(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Ms(l);try{return s.apply(this,arguments)}finally{Ds(l)}}}function to(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,Me(Uc,s))}function Uc(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,h=Pn(s,l.highlightFrontier),v=[];l.iter(h.line,Math.min(l.first+l.size,s.display.viewTo+500),function(b){if(h.line>=s.display.viewFrom){var N=b.styles,y=b.text.length>s.options.maxHighlightLength?we(l.mode,h.state):null,w=iu(s,b,h,!0);y&&(h.state=y),b.styles=w.styles;var G=b.styleClasses,k=w.classes;k?b.styleClasses=k:G&&(b.styleClasses=null);for(var _=!N||N.length!=b.styles.length||G!=k&&(!G||!k||G.bgClass!=k.bgClass||G.textClass!=k.textClass),ie=0;!_&&ie<N.length;++ie)_=N[ie]!=b.styles[ie];_&&v.push(h.line),b.stateAfter=h.save(),h.nextLine()}else b.text.length<=s.options.maxHighlightLength&&Yn(s,b.text,h),b.stateAfter=h.line%5==0?h.save():null,h.nextLine();if(+new Date>g)return to(s,s.options.workDelay),!0}),l.highlightFrontier=h.line,l.modeFrontier=Math.max(l.modeFrontier,h.line),v.length&&Ht(s,function(){for(var b=0;b<v.length;b++)Yt(s,v[b],"text")})}}var ea=function(s,l,g){var h=s.display;this.viewport=l,this.visible=qo(h,s.doc,l),this.editorIsHidden=!h.wrapper.offsetWidth,this.wrapperHeight=h.wrapper.clientHeight,this.wrapperWidth=h.wrapper.clientWidth,this.oldDisplayWidth=ws(s),this.force=g,this.dims=Fs(s),this.events=[]};ea.prototype.signal=function(s,l){ar(s,l)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var s=0;s<this.events.length;s++)hr.apply(null,this.events[s])};function Fc(s){var l=s.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=Ni(s)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=Ni(s)+"px",l.scrollbarsClipped=!0)}function Bc(s){if(s.hasFocus())return null;var l=Or(qe(s));if(!l||!or(s.display.lineDiv,l))return null;var g={activeElt:l};if(window.getSelection){var h=Ir(s).getSelection();h.anchorNode&&h.extend&&or(s.display.lineDiv,h.anchorNode)&&(g.anchorNode=h.anchorNode,g.anchorOffset=h.anchorOffset,g.focusNode=h.focusNode,g.focusOffset=h.focusOffset)}return g}function Oc(s){if(!(!s||!s.activeElt||s.activeElt==Or(Pe(s.activeElt)))&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&or(document.body,s.anchorNode)&&or(document.body,s.focusNode))){var l=s.activeElt.ownerDocument,g=l.defaultView.getSelection(),h=l.createRange();h.setEnd(s.anchorNode,s.anchorOffset),h.collapse(!1),g.removeAllRanges(),g.addRange(h),g.extend(s.focusNode,s.focusOffset)}}function _a(s,l){var g=s.display,h=s.doc;if(l.editorIsHidden)return Ri(s),!1;if(!l.force&&l.visible.from>=g.viewFrom&&l.visible.to<=g.viewTo&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo)&&g.renderedView==g.view&&zo(s)==0)return!1;Ou(s)&&(Ri(s),l.dims=Fs(s));var v=h.first+h.size,b=Math.max(l.visible.from-s.options.viewportMargin,h.first),N=Math.min(v,l.visible.to+s.options.viewportMargin);g.viewFrom<b&&b-g.viewFrom<20&&(b=Math.max(h.first,g.viewFrom)),g.viewTo>N&&g.viewTo-N<20&&(N=Math.min(v,g.viewTo)),Vi&&(b=Hn(s.doc,b),N=Yo(s.doc,N));var y=b!=g.viewFrom||N!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;$n(s,b,N),g.viewOffset=Mi(Ae(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var w=zo(s);if(!y&&w==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var G=Bc(s);return w>4&&(g.lineDiv.style.display="none"),Vc(s,g.updateLineNumbers,l.dims),w>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Oc(G),Be(g.cursorDiv),Be(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,y&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,to(s,400)),g.updateLineNumbers=null,!0}function Fu(s,l){for(var g=l.viewport,h=!0;;h=!1){if(!h||!s.options.lineWrapping||l.oldDisplayWidth==ws(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Za(s.display)-Ma(s),g.top)}),l.visible=qo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else h&&(l.visible=qo(s.display,s.doc,g));if(!_a(s,l))break;$o(s);var v=eo(s);Os(s),bn(s,v),za(s,v),l.force=!1}l.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(l.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function ja(s,l){var g=new ea(s,l);if(_a(s,g)){$o(s),Fu(s,g);var h=eo(s);Os(s),bn(s,h),za(s,h),g.finish()}}function Vc(s,l,g){var h=s.display,v=s.options.lineNumbers,b=h.lineDiv,N=b.firstChild;function y(ae){var ce=ae.nextSibling;return M&&q&&s.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),ce}for(var w=h.view,G=h.viewFrom,k=0;k<w.length;k++){var _=w[k];if(!_.hidden)if(!_.node||_.node.parentNode!=b){var ie=Wt(s,_,G,g);b.insertBefore(ie,N)}else{for(;N!=_.node;)N=y(N);var te=v&&l!=null&&l<=G&&_.lineNumber;_.changes&&(Cr(_.changes,"gutter")>-1&&(te=!1),hu(s,_,G,g)),te&&(Be(_.lineNumber),_.lineNumber.appendChild(document.createTextNode(Sa(s.options,G)))),N=_.node.nextSibling}G+=_.size}for(;N;)N=y(N)}function io(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",ot(s,"gutterChanged",s)}function za(s,l){s.display.sizer.style.minHeight=l.docHeight+"px",s.display.heightForcer.style.top=l.docHeight+"px",s.display.gutters.style.height=l.docHeight+s.display.barHeight+Ni(s)+"px"}function Bu(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var h=At(l)-l.scroller.scrollLeft+s.doc.scrollLeft,v=l.gutters.offsetWidth,b=h+"px",N=0;N<g.length;N++)if(!g[N].hidden){s.options.fixedGutter&&(g[N].gutter&&(g[N].gutter.style.left=b),g[N].gutterBackground&&(g[N].gutterBackground.style.left=b));var y=g[N].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=b}s.options.fixedGutter&&(l.gutters.style.left=h+v+"px")}}function Ou(s){if(!s.options.lineNumbers)return!1;var l=s.doc,g=Sa(s.options,l.first+l.size-1),h=s.display;if(g.length!=h.lineNumChars){var v=h.measure.appendChild(Ee("div",[Ee("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),b=v.firstChild.offsetWidth,N=v.offsetWidth-b;return h.lineGutter.style.width="",h.lineNumInnerWidth=Math.max(b,h.lineGutter.offsetWidth-N)+1,h.lineNumWidth=h.lineNumInnerWidth+N,h.lineNumChars=h.lineNumInnerWidth?g.length:-1,h.lineGutter.style.width=h.lineNumWidth+"px",io(s.display),!0}return!1}function $a(s,l){for(var g=[],h=!1,v=0;v<s.length;v++){var b=s[v],N=null;if(typeof b!="string"&&(N=b.style,b=b.className),b=="CodeMirror-linenumbers")if(l)h=!0;else continue;g.push({className:b,style:N})}return l&&!h&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function Vu(s){var l=s.gutters,g=s.gutterSpecs;Be(l),s.lineGutter=null;for(var h=0;h<g.length;++h){var v=g[h],b=v.className,N=v.style,y=l.appendChild(Ee("div",null,"CodeMirror-gutter "+b));N&&(y.style.cssText=N),b=="CodeMirror-linenumbers"&&(s.lineGutter=y,y.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",io(s)}function so(s){Vu(s.display),Nt(s),Bu(s)}function Wc(s,l,g,h){var v=this;this.input=g,v.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=Er("div",null,"CodeMirror-code"),v.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=Ee("div",null,"CodeMirror-cursors"),v.measure=Ee("div",null,"CodeMirror-measure"),v.lineMeasure=Ee("div",null,"CodeMirror-measure"),v.lineSpace=Er("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var b=Er("div",[v.lineSpace],"CodeMirror-lines");v.mover=Ee("div",[b],null,"position: relative"),v.sizer=Ee("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=Ee("div",null,null,"position: absolute; height: "+ti+"px; width: 1px;"),v.gutters=Ee("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=Ee("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=Ee("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),P&&D===105&&(v.wrapper.style.clipPath="inset(0px)"),v.wrapper.setAttribute("translate","no"),F&&Z<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!M&&!(e&&H)&&(v.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(v.wrapper):s(v.wrapper)),v.viewFrom=v.viewTo=l.first,v.reportedViewFrom=v.reportedViewTo=l.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=$a(h.gutters,h.lineNumbers),Vu(v),g.init(v)}var ra=0,Xi=null;F?Xi=-.53:e?Xi=15:P?Xi=-.7:W&&(Xi=-1/3);function Wu(s){var l=s.wheelDeltaX,g=s.wheelDeltaY;return l==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(l=s.detail),g==null&&s.detail&&s.axis==s.VERTICAL_AXIS?g=s.detail:g==null&&(g=s.wheelDelta),{x:l,y:g}}function Zc(s){var l=Wu(s);return l.x*=Xi,l.y*=Xi,l}function ta(s,l){P&&D==102&&(s.display.chromeScrollHack==null?s.display.sizer.style.pointerEvents="none":clearTimeout(s.display.chromeScrollHack),s.display.chromeScrollHack=setTimeout(function(){s.display.chromeScrollHack=null,s.display.sizer.style.pointerEvents=""},100));var g=Wu(l),h=g.x,v=g.y,b=Xi;l.deltaMode===0&&(h=l.deltaX,v=l.deltaY,b=1);var N=s.display,y=N.scroller,w=y.scrollWidth>y.clientWidth,G=y.scrollHeight>y.clientHeight;if(h&&w||v&&G){if(v&&q&&M){e:for(var k=l.target,_=N.view;k!=y;k=k.parentNode)for(var ie=0;ie<_.length;ie++)if(_[ie].node==k){s.display.currentWheelTarget=k;break e}}if(h&&!e&&!z&&b!=null){v&&G&&Kn(s,Math.max(0,y.scrollTop+v*b)),Ws(s,Math.max(0,y.scrollLeft+h*b)),(!v||v&&G)&&It(l),N.wheelStartX=null;return}if(v&&b!=null){var te=v*b,ae=s.doc.scrollTop,ce=ae+N.wrapper.clientHeight;te<0?ae=Math.max(0,ae+te-50):ce=Math.min(s.doc.height,ce+te+50),ja(s,{top:ae,bottom:ce})}ra<20&&l.deltaMode!==0&&(N.wheelStartX==null?(N.wheelStartX=y.scrollLeft,N.wheelStartY=y.scrollTop,N.wheelDX=h,N.wheelDY=v,setTimeout(function(){if(N.wheelStartX!=null){var he=y.scrollLeft-N.wheelStartX,ve=y.scrollTop-N.wheelStartY,Ce=ve&&N.wheelDY&&ve/N.wheelDY||he&&N.wheelDX&&he/N.wheelDX;N.wheelStartX=N.wheelStartY=null,Ce&&(Xi=(Xi*ra+Ce)/(ra+1),++ra)}},200)):(N.wheelDX+=h,N.wheelDY+=v))}}var Lr=function(s,l){this.ranges=s,this.primIndex=l};Lr.prototype.primary=function(){return this.ranges[this.primIndex]},Lr.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var g=this.ranges[l],h=s.ranges[l];if(!La(g.anchor,h.anchor)||!La(g.head,h.head))return!1}return!0},Lr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new gr(wa(this.ranges[l].anchor),wa(this.ranges[l].head));return new Lr(s,this.primIndex)},Lr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Lr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var h=this.ranges[g];if(ze(l,h.from())>=0&&ze(s,h.to())<=0)return g}return-1};var gr=function(s,l){this.anchor=s,this.head=l};gr.prototype.from=function(){return Do(this.anchor,this.head)},gr.prototype.to=function(){return Mo(this.anchor,this.head)},gr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xe(s,l,g){var h=s&&s.options.selectionsMayTouch,v=l[g];l.sort(function(ie,te){return ze(ie.from(),te.from())}),g=Cr(l,v);for(var b=1;b<l.length;b++){var N=l[b],y=l[b-1],w=ze(y.to(),N.from());if(h&&!N.empty()?w>0:w>=0){var G=Do(y.from(),N.from()),k=Mo(y.to(),N.to()),_=y.empty()?N.from()==N.head:y.from()==y.head;b<=g&&--g,l.splice(--b,2,new gr(_?k:G,_?G:k))}}return new Lr(l,g)}function yi(s,l){return new Lr([new gr(s,l||s)],0)}function Si(s){return s.text?pe(s.from.line+s.text.length-1,xe(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ia(s,l){if(ze(s,l.from)<0)return s;if(ze(s,l.to)<=0)return Si(l);var g=s.line+l.text.length-(l.to.line-l.from.line)-1,h=s.ch;return s.line==l.to.line&&(h+=Si(l).ch-l.to.ch),pe(g,h)}function Pi(s,l){for(var g=[],h=0;h<s.sel.ranges.length;h++){var v=s.sel.ranges[h];g.push(new gr(ia(v.anchor,l),ia(v.head,l)))}return Xe(s.cm,g,s.sel.primIndex)}function Zu(s,l,g){return s.line==l.line?pe(g.line,s.ch-l.ch+g.ch):pe(g.line+(s.line-l.line),s.ch)}function Mc(s,l,g){for(var h=[],v=pe(s.first,0),b=v,N=0;N<l.length;N++){var y=l[N],w=Zu(y.from,v,b),G=Zu(Si(y),v,b);if(v=y.to,b=G,g=="around"){var k=s.sel.ranges[N],_=ze(k.head,k.anchor)<0;h[N]=new gr(_?G:w,_?w:G)}else h[N]=new gr(w,w)}return new Lr(h,s.sel.primIndex)}function fi(s){s.doc.mode=Qe(s.options,s.doc.modeOption),Qs(s)}function Qs(s){s.doc.iter(function(l){l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,to(s,100),s.state.modeGen++,s.curOp&&Nt(s)}function hs(s,l){return l.from.ch==0&&l.to.ch==0&&xe(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function no(s,l,g,h){function v(Ce){return g?g[Ce]:null}function b(Ce,Ie,Re){ic(Ce,Ie,Re,h),ot(Ce,"change",Ce,l)}function N(Ce,Ie){for(var Re=[],ke=Ce;ke<Ie;++ke)Re.push(new dn(G[ke],v(ke),h));return Re}var y=l.from,w=l.to,G=l.text,k=Ae(s,y.line),_=Ae(s,w.line),ie=xe(G),te=v(G.length-1),ae=w.line-y.line;if(l.full)s.insert(0,N(0,G.length)),s.remove(G.length,s.size-G.length);else if(hs(s,l)){var ce=N(0,G.length-1);b(_,_.text,te),ae&&s.remove(y.line,ae),ce.length&&s.insert(y.line,ce)}else if(k==_)if(G.length==1)b(k,k.text.slice(0,y.ch)+ie+k.text.slice(w.ch),te);else{var he=N(1,G.length-1);he.push(new dn(ie+k.text.slice(w.ch),te,h)),b(k,k.text.slice(0,y.ch)+G[0],v(0)),s.insert(y.line+1,he)}else if(G.length==1)b(k,k.text.slice(0,y.ch)+G[0]+_.text.slice(w.ch),v(0)),s.remove(y.line+1,ae);else{b(k,k.text.slice(0,y.ch)+G[0],v(0)),b(_,ie+_.text.slice(w.ch),te);var ve=N(1,G.length-1);ae>1&&s.remove(y.line+1,ae-1),s.insert(y.line+1,ve)}ot(s,"change",s,l)}function Li(s,l,g){function h(v,b,N){if(v.linked)for(var y=0;y<v.linked.length;++y){var w=v.linked[y];if(w.doc!=b){var G=N&&w.sharedHist;g&&!G||(l(w.doc,G),h(w.doc,v,G))}}}h(s,null,!0)}function sa(s,l){if(l.cm)throw new Error("This document is already in use.");s.doc=l,l.cm=s,Bs(s),fi(s),na(s),s.options.direction=l.direction,s.options.lineWrapping||Wa(s),s.options.mode=l.modeOption,Nt(s)}function na(s){(s.doc.direction=="rtl"?je:Ze)(s.display.lineDiv,"CodeMirror-rtl")}function qa(s){Ht(s,function(){na(s),Nt(s)})}function An(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function oo(s,l){var g={from:wa(l.from),to:Si(l),text:Ct(s,l.from,l.to)};return Du(s,g,l.from.line,l.to.line+1),Li(s,function(h){return Du(h,g,l.from.line,l.to.line+1)},!0),g}function oa(s){for(;s.length;){var l=xe(s);if(l.ranges)s.pop();else break}}function Dc(s,l){if(l)return oa(s.done),xe(s.done);if(s.done.length&&!xe(s.done).ranges)return xe(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),xe(s.done)}function Mu(s,l,g,h){var v=s.history;v.undone.length=0;var b=+new Date,N,y;if((v.lastOp==h||v.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&v.lastModTime>b-(s.cm?s.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(N=Dc(v,v.lastOp==h)))y=xe(N.changes),ze(l.from,l.to)==0&&ze(l.from,y.to)==0?y.to=Si(l):N.changes.push(oo(s,l));else{var w=xe(v.done);for((!w||!w.ranges)&&gs(s.sel,v.done),N={changes:[oo(s,l)],generation:v.generation},v.done.push(N);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(g),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=b,v.lastOp=v.lastSelOp=h,v.lastOrigin=v.lastSelOrigin=l.origin,y||hr(s,"historyAdded")}function Qc(s,l,g,h){var v=l.charAt(0);return v=="*"||v=="+"&&g.ranges.length==h.ranges.length&&g.somethingSelected()==h.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function kc(s,l,g,h){var v=s.history,b=h&&h.origin;g==v.lastSelOp||b&&v.lastSelOrigin==b&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==b||Qc(s,b,xe(v.done),l))?v.done[v.done.length-1]=l:gs(l,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=b,v.lastSelOp=g,h&&h.clearRedo!==!1&&oa(v.undone)}function gs(s,l){var g=xe(l);g&&g.ranges&&g.equals(s)||l.push(s)}function Du(s,l,g,h){var v=l["spans_"+s.id],b=0;s.iter(Math.max(s.first,g),Math.min(s.first+s.size,h),function(N){N.markedSpans&&((v||(v=l["spans_"+s.id]={}))[b]=N.markedSpans),++b})}function Xc(s){if(!s)return null;for(var l,g=0;g<s.length;++g)s[g].marker.explicitlyCleared?l||(l=s.slice(0,g)):l&&l.push(s[g]);return l?l.length?l:null:s}function Pc(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var h=[],v=0;v<l.text.length;++v)h.push(Xc(g[v]));return h}function Qu(s,l){var g=Pc(s,l),h=Zi(s,l);if(!g)return h;if(!h)return g;for(var v=0;v<g.length;++v){var b=g[v],N=h[v];if(b&&N)e:for(var y=0;y<N.length;++y){for(var w=N[y],G=0;G<b.length;++G)if(b[G].marker==w.marker)continue e;b.push(w)}else N&&(g[v]=N)}return g}function Nn(s,l,g){for(var h=[],v=0;v<s.length;++v){var b=s[v];if(b.ranges){h.push(g?Lr.prototype.deepCopy.call(b):b);continue}var N=b.changes,y=[];h.push({changes:y});for(var w=0;w<N.length;++w){var G=N[w],k=void 0;if(y.push({from:G.from,to:G.to,text:G.text}),l)for(var _ in G)(k=_.match(/^spans_(\d+)$/))&&Cr(l,Number(k[1]))>-1&&(xe(y)[_]=G[_],delete G[_])}}return h}function Ka(s,l,g,h){if(h){var v=s.anchor;if(g){var b=ze(l,v)<0;b!=ze(g,v)<0?(v=l,l=g):b!=ze(l,g)<0&&(l=g)}return new gr(v,l)}else return new gr(g||l,l)}function aa(s,l,g,h,v){v==null&&(v=s.cm&&(s.cm.display.shift||s.extend)),Tt(s,new Lr([Ka(s.sel.primary(),l,g,v)],0),h)}function ku(s,l,g){for(var h=[],v=s.cm&&(s.cm.display.shift||s.extend),b=0;b<s.sel.ranges.length;b++)h[b]=Ka(s.sel.ranges[b],l[b],null,v);var N=Xe(s.cm,h,s.sel.primIndex);Tt(s,N,g)}function el(s,l,g,h){var v=s.sel.ranges.slice(0);v[l]=g,Tt(s,Xe(s.cm,v,s.sel.primIndex),h)}function Xu(s,l,g,h){Tt(s,yi(l,g),h)}function Yc(s,l,g){var h={ranges:l.ranges,update:function(v){this.ranges=[];for(var b=0;b<v.length;b++)this.ranges[b]=new gr($e(s,v[b].anchor),$e(s,v[b].head))},origin:g&&g.origin};return hr(s,"beforeSelectionChange",s,h),s.cm&&hr(s.cm,"beforeSelectionChange",s.cm,h),h.ranges!=l.ranges?Xe(s.cm,h.ranges,h.ranges.length-1):l}function Pu(s,l,g){var h=s.history.done,v=xe(h);v&&v.ranges?(h[h.length-1]=l,Tn(s,l,g)):Tt(s,l,g)}function Tt(s,l,g){Tn(s,l,g),kc(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function Tn(s,l,g){(ar(s,"beforeSelectionChange")||s.cm&&ar(s.cm,"beforeSelectionChange"))&&(l=Yc(s,l,g));var h=g&&g.bias||(ze(l.primary().head,s.sel.primary().head)<0?-1:1);Rn(s,Sn(s,l,h,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&xn(s.cm)}function Rn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,is(s.cm)),ot(s,"cursorActivity",s))}function yn(s){Rn(s,Sn(s,s.sel,null,!1))}function Sn(s,l,g,h){for(var v,b=0;b<l.ranges.length;b++){var N=l.ranges[b],y=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[b],w=la(s,N.anchor,y&&y.anchor,g,h),G=N.head==N.anchor?w:la(s,N.head,y&&y.head,g,h);(v||w!=N.anchor||G!=N.head)&&(v||(v=l.ranges.slice(0,b)),v[b]=new gr(w,G))}return v?Xe(s.cm,v,l.primIndex):l}function Es(s,l,g,h,v){var b=Ae(s,l.line);if(b.markedSpans)for(var N=0;N<b.markedSpans.length;++N){var y=b.markedSpans[N],w=y.marker,G="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,k="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(G?y.from<=l.ch:y.from<l.ch))&&(y.to==null||(k?y.to>=l.ch:y.to>l.ch))){if(v&&(hr(w,"beforeCursorEnter"),w.explicitlyCleared))if(b.markedSpans){--N;continue}else break;if(!w.atomic)continue;if(g){var _=w.find(h<0?1:-1),ie=void 0;if((h<0?k:G)&&(_=Yu(s,_,-h,_&&_.line==l.line?b:null)),_&&_.line==l.line&&(ie=ze(_,g))&&(h<0?ie<0:ie>0))return Es(s,_,l,h,v)}var te=w.find(h<0?-1:1);return(h<0?G:k)&&(te=Yu(s,te,h,te.line==l.line?b:null)),te?Es(s,te,l,h,v):null}}return l}function la(s,l,g,h,v){var b=h||1,N=Es(s,l,g,b,v)||!v&&Es(s,l,g,b,!0)||Es(s,l,g,-b,v)||!v&&Es(s,l,g,-b,!0);return N||(s.cantEdit=!0,pe(s.first,0))}function Yu(s,l,g,h){return g<0&&l.ch==0?l.line>s.first?$e(s,pe(l.line-1)):null:g>0&&l.ch==(h||Ae(s,l.line)).text.length?l.line<s.first+s.size-1?pe(l.line+1,0):null:new pe(l.line,l.ch+g)}function Hu(s){s.setSelection(pe(s.firstLine(),0),pe(s.lastLine()),fe)}function Ju(s,l,g){var h={canceled:!1,from:l.from,to:l.to,text:l.text,origin:l.origin,cancel:function(){return h.canceled=!0}};return g&&(h.update=function(v,b,N,y){v&&(h.from=$e(s,v)),b&&(h.to=$e(s,b)),N&&(h.text=N),y!==void 0&&(h.origin=y)}),hr(s,"beforeChange",s,h),s.cm&&hr(s.cm,"beforeChange",s.cm,h),h.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:h.from,to:h.to,text:h.text,origin:h.origin}}function Ln(s,l,g){if(s.cm){if(!s.cm.curOp)return at(s.cm,Ln)(s,l,g);if(s.cm.state.suppressEdits)return}if(!((ar(s,"beforeChange")||s.cm&&ar(s.cm,"beforeChange"))&&(l=Ju(s,l,!0),!l))){var h=ko&&!g&&Ss(s,l.from,l.to);if(h)for(var v=h.length-1;v>=0;--v)_u(s,{from:h[v].from,to:h[v].to,text:v?[""]:l.text,origin:l.origin});else _u(s,l)}}function _u(s,l){if(!(l.text.length==1&&l.text[0]==""&&ze(l.from,l.to)==0)){var g=Pi(s,l);Mu(s,l,g,s.cm?s.cm.curOp.id:NaN),ao(s,l,g,Zi(s,l));var h=[];Li(s,function(v,b){!b&&Cr(h,v.history)==-1&&(qu(v.history,l),h.push(v.history)),ao(v,l,null,Zi(v,l))})}}function ua(s,l,g){var h=s.cm&&s.cm.state.suppressEdits;if(!(h&&!g)){for(var v=s.history,b,N=s.sel,y=l=="undo"?v.done:v.undone,w=l=="undo"?v.undone:v.done,G=0;G<y.length&&(b=y[G],!(g?b.ranges&&!b.equals(s.sel):!b.ranges));G++);if(G!=y.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(b=y.pop(),b.ranges){if(gs(b,w),g&&!b.equals(s.sel)){Tt(s,b,{clearRedo:!1});return}N=b}else if(h){y.push(b);return}else break;var k=[];gs(N,w),w.push({changes:k,generation:v.generation}),v.generation=b.generation||++v.maxGeneration;for(var _=ar(s,"beforeChange")||s.cm&&ar(s.cm,"beforeChange"),ie=function(ce){var he=b.changes[ce];if(he.origin=l,_&&!Ju(s,he,!1))return y.length=0,{};k.push(oo(s,he));var ve=ce?Pi(s,he):xe(y);ao(s,he,ve,Qu(s,he)),!ce&&s.cm&&s.cm.scrollIntoView({from:he.from,to:Si(he)});var Ce=[];Li(s,function(Ie,Re){!Re&&Cr(Ce,Ie.history)==-1&&(qu(Ie.history,he),Ce.push(Ie.history)),ao(Ie,he,null,Qu(Ie,he))})},te=b.changes.length-1;te>=0;--te){var ae=ie(te);if(ae)return ae.v}}}}function ju(s,l){if(l!=0&&(s.first+=l,s.sel=new Lr(Ft(s.sel.ranges,function(v){return new gr(pe(v.anchor.line+l,v.anchor.ch),pe(v.head.line+l,v.head.ch))}),s.sel.primIndex),s.cm)){Nt(s.cm,s.first,s.first-l,l);for(var g=s.cm.display,h=g.viewFrom;h<g.viewTo;h++)Yt(s.cm,h,"gutter")}}function ao(s,l,g,h){if(s.cm&&!s.cm.curOp)return at(s.cm,ao)(s,l,g,h);if(l.to.line<s.first){ju(s,l.text.length-1-(l.to.line-l.from.line));return}if(!(l.from.line>s.lastLine())){if(l.from.line<s.first){var v=l.text.length-1-(s.first-l.from.line);ju(s,v),l={from:pe(s.first,0),to:pe(l.to.line+v,l.to.ch),text:[xe(l.text)],origin:l.origin}}var b=s.lastLine();l.to.line>b&&(l={from:l.from,to:pe(b,Ae(s,b).text.length),text:[l.text[0]],origin:l.origin}),l.removed=Ct(s,l.from,l.to),g||(g=Pi(s,l)),s.cm?Hc(s.cm,l,h):no(s,l,h),Tn(s,g,fe),s.cantEdit&&la(s,pe(s.firstLine(),0))&&(s.cantEdit=!1)}}function Hc(s,l,g){var h=s.doc,v=s.display,b=l.from,N=l.to,y=!1,w=b.line;s.options.lineWrapping||(w=Je(li(Ae(h,b.line))),h.iter(w,N.line+1,function(te){if(te==v.maxLine)return y=!0,!0})),h.sel.contains(l.from,l.to)>-1&&is(s),no(h,l,g,In(s)),s.options.lineWrapping||(h.iter(w,b.line+l.text.length,function(te){var ae=Ho(te);ae>v.maxLineLength&&(v.maxLine=te,v.maxLineLength=ae,v.maxLineChanged=!0,y=!1)}),y&&(s.curOp.updateMaxLine=!0)),ec(h,b.line),to(s,400);var G=l.text.length-(N.line-b.line)-1;l.full?Nt(s):b.line==N.line&&l.text.length==1&&!hs(s.doc,l)?Yt(s,b.line,"text"):Nt(s,b.line,N.line+1,G);var k=ar(s,"changes"),_=ar(s,"change");if(_||k){var ie={from:b,to:N,text:l.text,removed:l.removed,origin:l.origin};_&&ot(s,"change",s,ie),k&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(ie)}s.display.selForContextMenu=null}function wn(s,l,g,h,v){var b;h||(h=g),ze(h,g)<0&&(b=[h,g],g=b[0],h=b[1]),typeof l=="string"&&(l=s.splitLines(l)),Ln(s,{from:g,to:h,text:l,origin:v})}function zu(s,l,g,h){g<s.line?s.line+=h:l<s.line&&(s.line=l,s.ch=0)}function $u(s,l,g,h){for(var v=0;v<s.length;++v){var b=s[v],N=!0;if(b.ranges){b.copied||(b=s[v]=b.deepCopy(),b.copied=!0);for(var y=0;y<b.ranges.length;y++)zu(b.ranges[y].anchor,l,g,h),zu(b.ranges[y].head,l,g,h);continue}for(var w=0;w<b.changes.length;++w){var G=b.changes[w];if(g<G.from.line)G.from=pe(G.from.line+h,G.from.ch),G.to=pe(G.to.line+h,G.to.ch);else if(l<=G.to.line){N=!1;break}}N||(s.splice(0,v+1),v=0)}}function qu(s,l){var g=l.from.line,h=l.to.line,v=l.text.length-(h-g)-1;$u(s.done,g,h,v),$u(s.undone,g,h,v)}function lo(s,l,g,h){var v=l,b=l;return typeof l=="number"?b=Ae(s,ru(s,l)):v=Je(l),v==null?null:(h(b,v)&&s.cm&&Yt(s.cm,v,g),b)}function uo(s){this.lines=s,this.parent=null;for(var l=0,g=0;g<s.length;++g)s[g].parent=this,l+=s[g].height;this.height=l}uo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,l){for(var g=s,h=s+l;g<h;++g){var v=this.lines[g];this.height-=v.height,sc(v),ot(v,"delete")}this.lines.splice(s,l)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,l,g){this.height+=g,this.lines=this.lines.slice(0,s).concat(l).concat(this.lines.slice(s));for(var h=0;h<l.length;++h)l[h].parent=this},iterN:function(s,l,g){for(var h=s+l;s<h;++s)if(g(this.lines[s]))return!0}};function fo(s){this.children=s;for(var l=0,g=0,h=0;h<s.length;++h){var v=s[h];l+=v.chunkSize(),g+=v.height,v.parent=this}this.size=l,this.height=g,this.parent=null}fo.prototype={chunkSize:function(){return this.size},removeInner:function(s,l){this.size-=l;for(var g=0;g<this.children.length;++g){var h=this.children[g],v=h.chunkSize();if(s<v){var b=Math.min(l,v-s),N=h.height;if(h.removeInner(s,b),this.height-=N-h.height,v==b&&(this.children.splice(g--,1),h.parent=null),(l-=b)==0)break;s=0}else s-=v}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof uo))){var y=[];this.collapse(y),this.children=[new uo(y)],this.children[0].parent=this}},collapse:function(s){for(var l=0;l<this.children.length;++l)this.children[l].collapse(s)},insertInner:function(s,l,g){this.size+=l.length,this.height+=g;for(var h=0;h<this.children.length;++h){var v=this.children[h],b=v.chunkSize();if(s<=b){if(v.insertInner(s,l,g),v.lines&&v.lines.length>50){for(var N=v.lines.length%25+25,y=N;y<v.lines.length;){var w=new uo(v.lines.slice(y,y+=25));v.height-=w.height,this.children.splice(++h,0,w),w.parent=this}v.lines=v.lines.slice(0,N),this.maybeSpill()}break}s-=b}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var l=s.children.splice(s.children.length-5,5),g=new fo(l);if(s.parent){s.size-=g.size,s.height-=g.height;var v=Cr(s.parent.children,s);s.parent.children.splice(v+1,0,g)}else{var h=new fo(s.children);h.parent=s,s.children=[h,g],s=h}g.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,l,g){for(var h=0;h<this.children.length;++h){var v=this.children[h],b=v.chunkSize();if(s<b){var N=Math.min(l,b-s);if(v.iterN(s,N,g))return!0;if((l-=N)==0)break;s=0}else s-=b}}};var co=function(s,l,g){if(g)for(var h in g)g.hasOwnProperty(h)&&(this[h]=g[h]);this.doc=s,this.node=l};co.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,h=Je(g);if(!(h==null||!l)){for(var v=0;v<l.length;++v)l[v]==this&&l.splice(v--,1);l.length||(g.widgets=null);var b=Di(this);Pt(g,Math.max(0,g.height-b)),s&&(Ht(s,function(){Ku(s,g,-b),Yt(s,h,"widget")}),ot(s,"lineWidgetCleared",s,this,h))}},co.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,h=this.line;this.height=null;var v=Di(this)-l;v&&(bi(this.doc,h)||Pt(h,h.height+v),g&&Ht(g,function(){g.curOp.forceUpdate=!0,Ku(g,h,v),ot(g,"lineWidgetChanged",g,s,Je(h))}))},ss(co);function Ku(s,l,g){Mi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Ja(s,g)}function Jc(s,l,g,h){var v=new co(s,g,h),b=s.cm;return b&&v.noHScroll&&(b.display.alignWidgets=!0),lo(s,l,"widget",function(N){var y=N.widgets||(N.widgets=[]);if(v.insertAt==null?y.push(v):y.splice(Math.min(y.length,Math.max(0,v.insertAt)),0,v),v.line=N,b&&!bi(s,N)){var w=Mi(N)<s.scrollTop;Pt(N,N.height+Di(v)),w&&Ja(b,v.height),b.curOp.forceUpdate=!0}return!0}),b&&ot(b,"lineWidgetAdded",b,v,typeof l=="number"?l:Je(l)),v}var ef=0,ms=function(s,l){this.lines=[],this.type=l,this.doc=s,this.id=++ef};ms.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,l=s&&!s.curOp;if(l&&Ms(s),ar(this,"clear")){var g=this.find();g&&ot(this,"clear",g.from,g.to)}for(var h=null,v=null,b=0;b<this.lines.length;++b){var N=this.lines[b],y=Ts(N.markedSpans,this);s&&!this.collapsed?Yt(s,Je(N),"text"):s&&(y.to!=null&&(v=Je(N)),y.from!=null&&(h=Je(N))),N.markedSpans=Ua(N.markedSpans,y),y.from==null&&this.collapsed&&!bi(this.doc,N)&&s&&Pt(N,Xr(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var G=li(this.lines[w]),k=Ho(G);k>s.display.maxLineLength&&(s.display.maxLine=G,s.display.maxLineLength=k,s.display.maxLineChanged=!0)}h!=null&&s&&this.collapsed&&Nt(s,h,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&yn(s.doc)),s&&ot(s,"markerCleared",s,this,h,v),l&&Ds(s),this.parent&&this.parent.clear()}},ms.prototype.find=function(s,l){s==null&&this.type=="bookmark"&&(s=1);for(var g,h,v=0;v<this.lines.length;++v){var b=this.lines[v],N=Ts(b.markedSpans,this);if(N.from!=null&&(g=pe(l?b:Je(b),N.from),s==-1))return g;if(N.to!=null&&(h=pe(l?b:Je(b),N.to),s==1))return h}return g&&{from:g,to:h}},ms.prototype.changed=function(){var s=this,l=this.find(-1,!0),g=this,h=this.doc.cm;!l||!h||Ht(h,function(){var v=l.line,b=Je(l.line),N=bt(h,b);if(N&&(xu(N),h.curOp.selectionChanged=h.curOp.forceUpdate=!0),h.curOp.updateMaxLine=!0,!bi(g.doc,v)&&g.height!=null){var y=g.height;g.height=null;var w=Di(g)-y;w&&Pt(v,v.height+w)}ot(h,"markerChanged",h,s)})},ms.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(!l.maybeHiddenMarkers||Cr(l.maybeHiddenMarkers,this)==-1)&&(l.maybeUnhiddenMarkers||(l.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},ms.prototype.detachLine=function(s){if(this.lines.splice(Cr(this.lines,s),1),!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(l.maybeHiddenMarkers||(l.maybeHiddenMarkers=[])).push(this)}},ss(ms);function Gn(s,l,g,h,v){if(h&&h.shared)return _c(s,l,g,h,v);if(s.cm&&!s.cm.curOp)return at(s.cm,Gn)(s,l,g,h,v);var b=new ms(s,v),N=ze(l,g);if(h&&Rr(h,b,!1),N>0||N==0&&b.clearWhenEmpty!==!1)return b;if(b.replacedWith&&(b.collapsed=!0,b.widgetNode=Er("span",[b.replacedWith],"CodeMirror-widget"),h.handleMouseEvents||b.widgetNode.setAttribute("cm-ignore-events","true"),h.insertLeft&&(b.widgetNode.insertLeft=!0)),b.collapsed){if(as(s,l.line,l,g,b)||l.line!=g.line&&as(s,g.line,l,g,b))throw new Error("Inserting collapsed marker partially overlapping an existing one");zt()}b.addToHistory&&Mu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var y=l.line,w=s.cm,G;if(s.iter(y,g.line+1,function(_){w&&b.collapsed&&!w.options.lineWrapping&&li(_)==w.display.maxLine&&(G=!0),b.collapsed&&y!=l.line&&Pt(_,0),Wi(_,new un(b,y==l.line?l.ch:null,y==g.line?g.ch:null),s.cm&&s.cm.curOp),++y}),b.collapsed&&s.iter(l.line,g.line+1,function(_){bi(s,_)&&Pt(_,0)}),b.clearOnEnter&&Oe(b,"beforeCursorEnter",function(){return b.clear()}),b.readOnly&&(rc(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),b.collapsed&&(b.id=++ef,b.atomic=!0),w){if(G&&(w.curOp.updateMaxLine=!0),b.collapsed)Nt(w,l.line,g.line+1);else if(b.className||b.startStyle||b.endStyle||b.css||b.attributes||b.title)for(var k=l.line;k<=g.line;k++)Yt(w,k,"text");b.atomic&&yn(w.doc),ot(w,"markerAdded",w,b)}return b}var po=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};po.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();ot(this,"clear")}},po.prototype.find=function(s,l){return this.primary.find(s,l)},ss(po);function _c(s,l,g,h,v){h=Rr(h),h.shared=!1;var b=[Gn(s,l,g,h,v)],N=b[0],y=h.widgetNode;return Li(s,function(w){y&&(h.widgetNode=y.cloneNode(!0)),b.push(Gn(w,$e(w,l),$e(w,g),h,v));for(var G=0;G<w.linked.length;++G)if(w.linked[G].isParent)return;N=xe(b)}),new po(b,N)}function rf(s){return s.findMarks(pe(s.first,0),s.clipPos(pe(s.lastLine())),function(l){return l.parent})}function jc(s,l){for(var g=0;g<l.length;g++){var h=l[g],v=h.find(),b=s.clipPos(v.from),N=s.clipPos(v.to);if(ze(b,N)){var y=Gn(s,b,N,h.primary,h.primary.type);h.markers.push(y),y.parent=h}}}function zc(s){for(var l=function(h){var v=s[h],b=[v.primary.doc];Li(v.primary.doc,function(w){return b.push(w)});for(var N=0;N<v.markers.length;N++){var y=v.markers[N];Cr(b,y.doc)==-1&&(y.parent=null,v.markers.splice(N--,1))}},g=0;g<s.length;g++)l(g)}var $c=0,Zt=function(s,l,g,h,v){if(!(this instanceof Zt))return new Zt(s,l,g,h,v);g==null&&(g=0),fo.call(this,[new uo([new dn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var b=pe(g,0);this.sel=yi(b),this.history=new An(null),this.id=++$c,this.modeOption=l,this.lineSep=h,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),no(this,{from:b,to:b,text:s}),Tt(this,yi(b),fe)};Zt.prototype=ts(fo.prototype,{constructor:Zt,iter:function(s,l,g){g?this.iterN(s-this.first,l-s,g):this.iterN(this.first,this.first+this.size,s)},insert:function(s,l){for(var g=0,h=0;h<l.length;++h)g+=l[h].height;this.insertInner(s-this.first,l,g)},remove:function(s,l){this.removeInner(s-this.first,l)},getValue:function(s){var l=Ii(this,this.first,this.first+this.size);return s===!1?l:l.join(s||this.lineSeparator())},setValue:lt(function(s){var l=pe(this.first,0),g=this.first+this.size-1;Ln(this,{from:l,to:pe(g,Ae(this,g).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&qn(this.cm,0,0),Tt(this,yi(l),fe)}),replaceRange:function(s,l,g,h){l=$e(this,l),g=g?$e(this,g):l,wn(this,s,l,g,h)},getRange:function(s,l,g){var h=Ct(this,$e(this,s),$e(this,l));return g===!1?h:g===""?h.join(""):h.join(g||this.lineSeparator())},getLine:function(s){var l=this.getLineHandle(s);return l&&l.text},getLineHandle:function(s){if(ns(this,s))return Ae(this,s)},getLineNumber:function(s){return Je(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=Ae(this,s)),li(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return $e(this,s)},getCursor:function(s){var l=this.sel.primary(),g;return s==null||s=="head"?g=l.head:s=="anchor"?g=l.anchor:s=="end"||s=="to"||s===!1?g=l.to():g=l.from(),g},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:lt(function(s,l,g){Xu(this,$e(this,typeof s=="number"?pe(s,l||0):s),null,g)}),setSelection:lt(function(s,l,g){Xu(this,$e(this,s),$e(this,l||s),g)}),extendSelection:lt(function(s,l,g){aa(this,$e(this,s),l&&$e(this,l),g)}),extendSelections:lt(function(s,l){ku(this,tu(this,s),l)}),extendSelectionsBy:lt(function(s,l){var g=Ft(this.sel.ranges,s);ku(this,tu(this,g),l)}),setSelections:lt(function(s,l,g){if(s.length){for(var h=[],v=0;v<s.length;v++)h[v]=new gr($e(this,s[v].anchor),$e(this,s[v].head||s[v].anchor));l==null&&(l=Math.min(s.length-1,this.sel.primIndex)),Tt(this,Xe(this.cm,h,l),g)}}),addSelection:lt(function(s,l,g){var h=this.sel.ranges.slice(0);h.push(new gr($e(this,s),$e(this,l||s))),Tt(this,Xe(this.cm,h,h.length-1),g)}),getSelection:function(s){for(var l=this.sel.ranges,g,h=0;h<l.length;h++){var v=Ct(this,l[h].from(),l[h].to());g=g?g.concat(v):v}return s===!1?g:g.join(s||this.lineSeparator())},getSelections:function(s){for(var l=[],g=this.sel.ranges,h=0;h<g.length;h++){var v=Ct(this,g[h].from(),g[h].to());s!==!1&&(v=v.join(s||this.lineSeparator())),l[h]=v}return l},replaceSelection:function(s,l,g){for(var h=[],v=0;v<this.sel.ranges.length;v++)h[v]=s;this.replaceSelections(h,l,g||"+input")},replaceSelections:lt(function(s,l,g){for(var h=[],v=this.sel,b=0;b<v.ranges.length;b++){var N=v.ranges[b];h[b]={from:N.from(),to:N.to(),text:this.splitLines(s[b]),origin:g}}for(var y=l&&l!="end"&&Mc(this,h,l),w=h.length-1;w>=0;w--)Ln(this,h[w]);y?Pu(this,y):this.cm&&xn(this.cm)}),undo:lt(function(){ua(this,"undo")}),redo:lt(function(){ua(this,"redo")}),undoSelection:lt(function(){ua(this,"undo",!0)}),redoSelection:lt(function(){ua(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,l=0,g=0,h=0;h<s.done.length;h++)s.done[h].ranges||++l;for(var v=0;v<s.undone.length;v++)s.undone[v].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new An(this.history),Li(this,function(l){return l.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:Nn(this.history.done),undone:Nn(this.history.undone)}},setHistory:function(s){var l=this.history=new An(this.history);l.done=Nn(s.done.slice(0),null,!0),l.undone=Nn(s.undone.slice(0),null,!0)},setGutterMarker:lt(function(s,l,g){return lo(this,s,"gutter",function(h){var v=h.gutterMarkers||(h.gutterMarkers={});return v[l]=g,!g&&sr(v)&&(h.gutterMarkers=null),!0})}),clearGutter:lt(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&lo(l,g,"gutter",function(){return g.gutterMarkers[s]=null,sr(g.gutterMarkers)&&(g.gutterMarkers=null),!0})})}),lineInfo:function(s){var l;if(typeof s=="number"){if(!ns(this,s)||(l=s,s=Ae(this,s),!s))return null}else if(l=Je(s),l==null)return null;return{line:l,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:lt(function(s,l,g){return lo(this,s,l=="gutter"?"gutter":"class",function(h){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!h[v])h[v]=g;else{if(be(g).test(h[v]))return!1;h[v]+=" "+g}return!0})}),removeLineClass:lt(function(s,l,g){return lo(this,s,l=="gutter"?"gutter":"class",function(h){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",b=h[v];if(b)if(g==null)h[v]=null;else{var N=b.match(be(g));if(!N)return!1;var y=N.index+N[0].length;h[v]=b.slice(0,N.index)+(!N.index||y==b.length?"":" ")+b.slice(y)||null}else return!1;return!0})}),addLineWidget:lt(function(s,l,g){return Jc(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return Gn(this,$e(this,s),$e(this,l),g,g&&g.type||"range")},setBookmark:function(s,l){var g={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return s=$e(this,s),Gn(this,s,s,g,"bookmark")},findMarksAt:function(s){s=$e(this,s);var l=[],g=Ae(this,s.line).markedSpans;if(g)for(var h=0;h<g.length;++h){var v=g[h];(v.from==null||v.from<=s.ch)&&(v.to==null||v.to>=s.ch)&&l.push(v.marker.parent||v.marker)}return l},findMarks:function(s,l,g){s=$e(this,s),l=$e(this,l);var h=[],v=s.line;return this.iter(s.line,l.line+1,function(b){var N=b.markedSpans;if(N)for(var y=0;y<N.length;y++){var w=N[y];!(w.to!=null&&v==s.line&&s.ch>=w.to||w.from==null&&v!=s.line||w.from!=null&&v==l.line&&w.from>=l.ch)&&(!g||g(w.marker))&&h.push(w.marker.parent||w.marker)}++v}),h},getAllMarks:function(){var s=[];return this.iter(function(l){var g=l.markedSpans;if(g)for(var h=0;h<g.length;++h)g[h].from!=null&&s.push(g[h].marker)}),s},posFromIndex:function(s){var l,g=this.first,h=this.lineSeparator().length;return this.iter(function(v){var b=v.text.length+h;if(b>s)return l=s,!0;s-=b,++g}),$e(this,pe(g,l))},indexFromPos:function(s){s=$e(this,s);var l=s.ch;if(s.line<this.first||s.ch<0)return 0;var g=this.lineSeparator().length;return this.iter(this.first,s.line,function(h){l+=h.text.length+g}),l},copy:function(s){var l=new Zt(Ii(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,s&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(s){s||(s={});var l=this.first,g=this.first+this.size;s.from!=null&&s.from>l&&(l=s.from),s.to!=null&&s.to<g&&(g=s.to);var h=new Zt(Ii(this,l,g),s.mode||this.modeOption,l,this.lineSep,this.direction);return s.sharedHist&&(h.history=this.history),(this.linked||(this.linked=[])).push({doc:h,sharedHist:s.sharedHist}),h.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],jc(h,rf(this)),h},unlinkDoc:function(s){if(s instanceof wr&&(s=s.doc),this.linked)for(var l=0;l<this.linked.length;++l){var g=this.linked[l];if(g.doc==s){this.linked.splice(l,1),s.unlinkDoc(this),zc(rf(this));break}}if(s.history==this.history){var h=[s.id];Li(s,function(v){return h.push(v.id)},!0),s.history=new An(null),s.history.done=Nn(this.history.done,h),s.history.undone=Nn(this.history.undone,h)}},iterLinkedDocs:function(s){Li(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):nn(s)},lineSeparator:function(){return this.lineSep||`
11
- `},setDirection:lt(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(l){return l.order=null}),this.cm&&qa(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var tf=0;function qc(s){var l=this;if(sf(l),!(xr(l,s)||Qi(l.display,s))){It(s),F&&(tf=+new Date);var g=ui(l,s,!0),h=s.dataTransfer.files;if(!(!g||l.isReadOnly()))if(h&&h.length&&window.FileReader&&window.File)for(var v=h.length,b=Array(v),N=0,y=function(){++N==v&&at(l,function(){g=$e(l.doc,g);var te={from:g,to:g,text:l.doc.splitLines(b.filter(function(ae){return ae!=null}).join(l.doc.lineSeparator())),origin:"paste"};Ln(l.doc,te),Pu(l.doc,yi($e(l.doc,g),$e(l.doc,Si(te))))})()},w=function(te,ae){if(l.options.allowDropFileTypes&&Cr(l.options.allowDropFileTypes,te.type)==-1){y();return}var ce=new FileReader;ce.onerror=function(){return y()},ce.onload=function(){var he=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){y();return}b[ae]=he,y()},ce.readAsText(te)},G=0;G<h.length;G++)w(h[G],G);else{if(l.state.draggingText&&l.doc.sel.contains(g)>-1){l.state.draggingText(s),setTimeout(function(){return l.display.input.focus()},20);return}try{var k=s.dataTransfer.getData("Text");if(k){var _;if(l.state.draggingText&&!l.state.draggingText.copy&&(_=l.listSelections()),Tn(l.doc,yi(g,g)),_)for(var ie=0;ie<_.length;++ie)wn(l.doc,"",_[ie].anchor,_[ie].head,"drag");l.replaceSelection(k,"around","paste"),l.display.input.focus()}}catch{}}}}function Kc(s,l){if(F&&(!s.state.draggingText||+new Date-tf<100)){Ns(l);return}if(!(xr(s,l)||Qi(s.display,l))&&(l.dataTransfer.setData("Text",s.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!W)){var g=Ee("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(g.width=g.height=1,s.display.wrapper.appendChild(g),g._top=g.offsetTop),l.dataTransfer.setDragImage(g,0,0),z&&g.parentNode.removeChild(g)}}function ep(s,l){var g=ui(s,l);if(g){var h=document.createDocumentFragment();Vs(s,g,h),s.display.dragCursor||(s.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Ke(s.display.dragCursor,h)}}function sf(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function nf(s){if(document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),g=[],h=0;h<l.length;h++){var v=l[h].CodeMirror;v&&g.push(v)}g.length&&g[0].operation(function(){for(var b=0;b<g.length;b++)s(g[b])})}}var of=!1;function rp(){of||(tp(),of=!0)}function tp(){var s;Oe(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,nf(ip)},100))}),Oe(window,"blur",function(){return nf(Cn)})}function ip(s){var l=s.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,s.setSize()}for(var vs={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"},ho=0;ho<10;ho++)vs[ho+48]=vs[ho+96]=String(ho);for(var fa=65;fa<=90;fa++)vs[fa]=String.fromCharCode(fa);for(var go=1;go<=12;go++)vs[go+111]=vs[go+63235]="F"+go;var Yi={};Yi.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"},Yi.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"},Yi.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"},Yi.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"]},Yi.default=q?Yi.macDefault:Yi.pcDefault;function sp(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,h,v,b,N=0;N<l.length-1;N++){var y=l[N];if(/^(cmd|meta|m)$/i.test(y))b=!0;else if(/^a(lt)?$/i.test(y))g=!0;else if(/^(c|ctrl|control)$/i.test(y))h=!0;else if(/^s(hift)?$/i.test(y))v=!0;else throw new Error("Unrecognized modifier name: "+y)}return g&&(s="Alt-"+s),h&&(s="Ctrl-"+s),b&&(s="Cmd-"+s),v&&(s="Shift-"+s),s}function np(s){var l={};for(var g in s)if(s.hasOwnProperty(g)){var h=s[g];if(/^(name|fallthrough|(de|at)tach)$/.test(g))continue;if(h=="..."){delete s[g];continue}for(var v=Ft(g.split(" "),sp),b=0;b<v.length;b++){var N=void 0,y=void 0;b==v.length-1?(y=v.join(" "),N=h):(y=v.slice(0,b+1).join(" "),N="...");var w=l[y];if(!w)l[y]=N;else if(w!=N)throw new Error("Inconsistent bindings for "+y)}delete s[g]}for(var G in l)s[G]=l[G];return s}function Un(s,l,g,h){l=ca(l);var v=l.call?l.call(s,h):l[s];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&g(v))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return Un(s,l.fallthrough,g,h);for(var b=0;b<l.fallthrough.length;b++){var N=Un(s,l.fallthrough[b],g,h);if(N)return N}}}function af(s){var l=typeof s=="string"?s:vs[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function lf(s,l,g){var h=s;return l.altKey&&h!="Alt"&&(s="Alt-"+s),(de?l.metaKey:l.ctrlKey)&&h!="Ctrl"&&(s="Ctrl-"+s),(de?l.ctrlKey:l.metaKey)&&h!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&h!="Shift"&&(s="Shift-"+s),s}function uf(s,l){if(z&&s.keyCode==34&&s.char)return!1;var g=vs[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),lf(g,s,l))}function ca(s){return typeof s=="string"?Yi[s]:s}function Fn(s,l){for(var g=s.doc.sel.ranges,h=[],v=0;v<g.length;v++){for(var b=l(g[v]);h.length&&ze(b.from,xe(h).to)<=0;){var N=h.pop();if(ze(N.from,b.from)<0){b.from=N.from;break}}h.push(b)}Ht(s,function(){for(var y=h.length-1;y>=0;y--)wn(s.doc,"",h[y].from,h[y].to,"+delete");xn(s)})}function rl(s,l,g){var h=nr(s.text,l+g,g);return h<0||h>s.text.length?null:h}function tl(s,l,g){var h=rl(s,l.ch,g);return h==null?null:new pe(l.line,h,g<0?"after":"before")}function il(s,l,g,h,v){if(s){l.doc.direction=="rtl"&&(v=-v);var b=Sr(g,l.doc.direction);if(b){var N=v<0?xe(b):b[0],y=v<0==(N.level==1),w=y?"after":"before",G;if(N.level>0||l.doc.direction=="rtl"){var k=En(l,g);G=v<0?g.text.length-1:0;var _=Ti(l,k,G).top;G=Wr(function(ie){return Ti(l,k,ie).top==_},v<0==(N.level==1)?N.from:N.to-1,G),w=="before"&&(G=rl(g,G,1))}else G=v<0?N.to:N.from;return new pe(h,G,w)}}return new pe(h,v<0?g.text.length:0,v<0?"before":"after")}function op(s,l,g,h){var v=Sr(l,s.doc.direction);if(!v)return tl(l,g,h);g.ch>=l.text.length?(g.ch=l.text.length,g.sticky="before"):g.ch<=0&&(g.ch=0,g.sticky="after");var b=Lt(v,g.ch,g.sticky),N=v[b];if(s.doc.direction=="ltr"&&N.level%2==0&&(h>0?N.to>g.ch:N.from<g.ch))return tl(l,g,h);var y=function(ve,Ce){return rl(l,ve instanceof pe?ve.ch:ve,Ce)},w,G=function(ve){return s.options.lineWrapping?(w=w||En(s,l),Tu(s,l,w,ve)):{begin:0,end:l.text.length}},k=G(g.sticky=="before"?y(g,-1):g.ch);if(s.doc.direction=="rtl"||N.level==1){var _=N.level==1==h<0,ie=y(g,_?1:-1);if(ie!=null&&(_?ie<=N.to&&ie<=k.end:ie>=N.from&&ie>=k.begin)){var te=_?"before":"after";return new pe(g.line,ie,te)}}var ae=function(ve,Ce,Ie){for(var Re=function(Tr,ut){return ut?new pe(g.line,y(Tr,1),"before"):new pe(g.line,Tr,"after")};ve>=0&&ve<v.length;ve+=Ce){var ke=v[ve],We=Ce>0==(ke.level!=1),tr=We?Ie.begin:y(Ie.end,-1);if(ke.from<=tr&&tr<ke.to||(tr=We?ke.from:y(ke.to,-1),Ie.begin<=tr&&tr<Ie.end))return Re(tr,We)}},ce=ae(b+h,h,k);if(ce)return ce;var he=h>0?k.end:y(k.begin,-1);return he!=null&&!(h>0&&he==l.text.length)&&(ce=ae(h>0?0:v.length-1,h,G(he)),ce)?ce:null}var Eo={selectAll:Hu,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),fe)},killLine:function(s){return Fn(s,function(l){if(l.empty()){var g=Ae(s.doc,l.head.line).text.length;return l.head.ch==g&&l.head.line<s.lastLine()?{from:l.head,to:pe(l.head.line+1,0)}:{from:l.head,to:pe(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return Fn(s,function(l){return{from:pe(l.from().line,0),to:$e(s.doc,pe(l.to().line+1,0))}})},delLineLeft:function(s){return Fn(s,function(l){return{from:pe(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,h=s.coordsChar({left:0,top:g},"div");return{from:h,to:l.from()}})},delWrappedLineRight:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,h=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div");return{from:l.from(),to:h}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(pe(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(pe(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return ff(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return cf(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return ap(s,l.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div")},mr)},goLineLeft:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:0,top:g},"div")},mr)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5,h=s.coordsChar({left:0,top:g},"div");return h.ch<s.getLine(h.line).search(/\S/)?cf(s,l.head):h},mr)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var l=[],g=s.listSelections(),h=s.options.tabSize,v=0;v<g.length;v++){var b=g[v].from(),N=dr(s.getLine(b.line),b.ch,h);l.push(ii(h-N%h))}s.replaceSelections(l)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Ht(s,function(){for(var l=s.listSelections(),g=[],h=0;h<l.length;h++)if(l[h].empty()){var v=l[h].head,b=Ae(s.doc,v.line).text;if(b){if(v.ch==b.length&&(v=new pe(v.line,v.ch-1)),v.ch>0)v=new pe(v.line,v.ch+1),s.replaceRange(b.charAt(v.ch-1)+b.charAt(v.ch-2),pe(v.line,v.ch-2),v,"+transpose");else if(v.line>s.doc.first){var N=Ae(s.doc,v.line-1).text;N&&(v=new pe(v.line,1),s.replaceRange(b.charAt(0)+s.doc.lineSeparator()+N.charAt(N.length-1),pe(v.line-1,N.length-1),v,"+transpose"))}}g.push(new gr(v,v))}s.setSelections(g)})},newlineAndIndent:function(s){return Ht(s,function(){for(var l=s.listSelections(),g=l.length-1;g>=0;g--)s.replaceRange(s.doc.lineSeparator(),l[g].anchor,l[g].head,"+input");l=s.listSelections();for(var h=0;h<l.length;h++)s.indentLine(l[h].from().line,null,!0);xn(s)})},openLine:function(s){return s.replaceSelection(`
12
- `,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function ff(s,l){var g=Ae(s.doc,l),h=li(g);return h!=g&&(l=Je(h)),il(!0,s,h,l,1)}function ap(s,l){var g=Ae(s.doc,l),h=tc(g);return h!=g&&(l=Je(h)),il(!0,s,g,l,-1)}function cf(s,l){var g=ff(s,l.line),h=Ae(s.doc,g.line),v=Sr(h,s.doc.direction);if(!v||v[0].level==0){var b=Math.max(g.ch,h.text.search(/\S/)),N=l.line==g.line&&l.ch<=b&&l.ch;return pe(g.line,N?0:b,g.sticky)}return g}function pa(s,l,g){if(typeof l=="string"&&(l=Eo[l],!l))return!1;s.display.input.ensurePolled();var h=s.display.shift,v=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),g&&(s.display.shift=!1),v=l(s)!=Ge}finally{s.display.shift=h,s.state.suppressEdits=!1}return v}function lp(s,l,g){for(var h=0;h<s.state.keyMaps.length;h++){var v=Un(l,s.state.keyMaps[h],g,s);if(v)return v}return s.options.extraKeys&&Un(l,s.options.extraKeys,g,s)||Un(l,s.options.keyMap,g,s)}var up=new Hr;function mo(s,l,g,h){var v=s.state.keySeq;if(v){if(af(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:up.set(50,function(){s.state.keySeq==v&&(s.state.keySeq=null,s.display.input.reset())}),pf(s,v+" "+l,g,h))return!0}return pf(s,l,g,h)}function pf(s,l,g,h){var v=lp(s,l,h);return v=="multi"&&(s.state.keySeq=l),v=="handled"&&ot(s,"keyHandled",s,l,g),(v=="handled"||v=="multi")&&(It(g),Xa(s)),!!v}function df(s,l){var g=uf(l,!0);return g?l.shiftKey&&!s.state.keySeq?mo(s,"Shift-"+g,l,function(h){return pa(s,h,!0)})||mo(s,g,l,function(h){if(typeof h=="string"?/^go[A-Z]/.test(h):h.motion)return pa(s,h)}):mo(s,g,l,function(h){return pa(s,h)}):!1}function fp(s,l,g){return mo(s,"'"+g+"'",l,function(h){return pa(s,h,!0)})}var sl=null;function hf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&(l.curOp.focus=Or(qe(l)),!xr(l,s))){F&&Z<11&&s.keyCode==27&&(s.returnValue=!1);var g=s.keyCode;l.display.shift=g==16||s.shiftKey;var h=df(l,s);z&&(sl=h?g:null,!h&&g==88&&!Xn&&(q?s.metaKey:s.ctrlKey)&&l.replaceSelection("",null,"cut")),e&&!q&&!h&&g==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&cp(l)}}function cp(s){var l=s.display.lineDiv;je(l,"CodeMirror-crosshair");function g(h){(h.keyCode==18||!h.altKey)&&(Ze(l,"CodeMirror-crosshair"),Jr(document,"keyup",g),Jr(document,"mouseover",g))}Oe(document,"keyup",g),Oe(document,"mouseover",g)}function gf(s){s.keyCode==16&&(this.doc.sel.shift=!1),xr(this,s)}function Ef(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&!(Qi(l.display,s)||xr(l,s)||s.ctrlKey&&!s.altKey||q&&s.metaKey)){var g=s.keyCode,h=s.charCode;if(z&&g==sl){sl=null,It(s);return}if(!(z&&(!s.which||s.which<10)&&df(l,s))){var v=String.fromCharCode(h??g);v!="\b"&&(fp(l,s,v)||l.display.input.onKeyPress(s))}}}var pp=400,nl=function(s,l,g){this.time=s,this.pos=l,this.button=g};nl.prototype.compare=function(s,l,g){return this.time+pp>s&&ze(l,this.pos)==0&&g==this.button};var vo,Io;function dp(s,l){var g=+new Date;return Io&&Io.compare(g,s,l)?(vo=Io=null,"triple"):vo&&vo.compare(g,s,l)?(Io=new nl(g,s,l),vo=null,"double"):(vo=new nl(g,s,l),Io=null,"single")}function mf(s){var l=this,g=l.display;if(!(xr(l,s)||g.activeTouch&&g.input.supportsTouch())){if(g.input.ensurePolled(),g.shift=s.shiftKey,Qi(g,s)){M||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!ol(l,s)){var h=ui(l,s),v=tn(s),b=h?dp(h,v):"single";Ir(l).focus(),v==1&&l.state.selectingText&&l.state.selectingText(s),!(h&&hp(l,v,h,b,s))&&(v==1?h?Ep(l,h,b,s):rn(s)==g.scroller&&It(s):v==2?(h&&aa(l.doc,h),setTimeout(function(){return g.input.focus()},20)):v==3&&(Se?l.display.input.onContextMenu(s):Pa(l)))}}}function hp(s,l,g,h,v){var b="Click";return h=="double"?b="Double"+b:h=="triple"&&(b="Triple"+b),b=(l==1?"Left":l==2?"Middle":"Right")+b,mo(s,lf(b,v),v,function(N){if(typeof N=="string"&&(N=Eo[N]),!N)return!1;var y=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y=N(s,g)!=Ge}finally{s.state.suppressEdits=!1}return y})}function gp(s,l,g){var h=s.getOption("configureMouse"),v=h?h(s,l,g):{};if(v.unit==null){var b=K?g.shiftKey&&g.metaKey:g.altKey;v.unit=b?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(v.extend==null||s.doc.extend)&&(v.extend=s.doc.extend||g.shiftKey),v.addNew==null&&(v.addNew=q?g.metaKey:g.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(q?g.altKey:g.ctrlKey)),v}function Ep(s,l,g,h){F?setTimeout(Me(Ru,s),0):s.curOp.focus=Or(qe(s));var v=gp(s,g,h),b=s.doc.sel,N;s.options.dragDrop&&Oo&&!s.isReadOnly()&&g=="single"&&(N=b.contains(l))>-1&&(ze((N=b.ranges[N]).from(),l)<0||l.xRel>0)&&(ze(N.to(),l)>0||l.xRel<0)?mp(s,h,l,v):vp(s,h,l,v)}function mp(s,l,g,h){var v=s.display,b=!1,N=at(s,function(G){M&&(v.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:Pa(s)),Jr(v.wrapper.ownerDocument,"mouseup",N),Jr(v.wrapper.ownerDocument,"mousemove",y),Jr(v.scroller,"dragstart",w),Jr(v.scroller,"drop",N),b||(It(G),h.addNew||aa(s.doc,g,null,null,h.extend),M&&!W||F&&Z==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),y=function(G){b=b||Math.abs(l.clientX-G.clientX)+Math.abs(l.clientY-G.clientY)>=10},w=function(){return b=!0};M&&(v.scroller.draggable=!0),s.state.draggingText=N,N.copy=!h.moveOnDrag,Oe(v.wrapper.ownerDocument,"mouseup",N),Oe(v.wrapper.ownerDocument,"mousemove",y),Oe(v.scroller,"dragstart",w),Oe(v.scroller,"drop",N),s.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function vf(s,l,g){if(g=="char")return new gr(l,l);if(g=="word")return s.findWordAt(l);if(g=="line")return new gr(pe(l.line,0),$e(s.doc,pe(l.line+1,0)));var h=g(s,l);return new gr(h.from,h.to)}function vp(s,l,g,h){F&&Pa(s);var v=s.display,b=s.doc;It(l);var N,y,w=b.sel,G=w.ranges;if(h.addNew&&!h.extend?(y=b.sel.contains(g),y>-1?N=G[y]:N=new gr(g,g)):(N=b.sel.primary(),y=b.sel.primIndex),h.unit=="rectangle")h.addNew||(N=new gr(g,g)),g=ui(s,l,!0,!0),y=-1;else{var k=vf(s,g,h.unit);h.extend?N=Ka(N,k.anchor,k.head,h.extend):N=k}h.addNew?y==-1?(y=G.length,Tt(b,Xe(s,G.concat([N]),y),{scroll:!1,origin:"*mouse"})):G.length>1&&G[y].empty()&&h.unit=="char"&&!h.extend?(Tt(b,Xe(s,G.slice(0,y).concat(G.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=b.sel):el(b,y,N,Ar):(y=0,Tt(b,new Lr([N],0),Ar),w=b.sel);var _=g;function ie(Ie){if(ze(_,Ie)!=0)if(_=Ie,h.unit=="rectangle"){for(var Re=[],ke=s.options.tabSize,We=dr(Ae(b,g.line).text,g.ch,ke),tr=dr(Ae(b,Ie.line).text,Ie.ch,ke),Tr=Math.min(We,tr),ut=Math.max(We,tr),Ur=Math.min(g.line,Ie.line),Jt=Math.min(s.lastLine(),Math.max(g.line,Ie.line));Ur<=Jt;Ur++){var Mt=Ae(b,Ur).text,jr=Ue(Mt,Tr,ke);Tr==ut?Re.push(new gr(pe(Ur,jr),pe(Ur,jr))):Mt.length>jr&&Re.push(new gr(pe(Ur,jr),pe(Ur,Ue(Mt,ut,ke))))}Re.length||Re.push(new gr(g,g)),Tt(b,Xe(s,w.ranges.slice(0,y).concat(Re),y),{origin:"*mouse",scroll:!1}),s.scrollIntoView(Ie)}else{var Dt=N,ht=vf(s,Ie,h.unit),tt=Dt.anchor,zr;ze(ht.anchor,tt)>0?(zr=ht.head,tt=Do(Dt.from(),ht.anchor)):(zr=ht.anchor,tt=Mo(Dt.to(),ht.head));var Zr=w.ranges.slice(0);Zr[y]=Ip(s,new gr($e(b,tt),zr)),Tt(b,Xe(s,Zr,y),Ar)}}var te=v.wrapper.getBoundingClientRect(),ae=0;function ce(Ie){var Re=++ae,ke=ui(s,Ie,!0,h.unit=="rectangle");if(ke)if(ze(ke,_)!=0){s.curOp.focus=Or(qe(s)),ie(ke);var We=qo(v,b);(ke.line>=We.to||ke.line<We.from)&&setTimeout(at(s,function(){ae==Re&&ce(Ie)}),150)}else{var tr=Ie.clientY<te.top?-20:Ie.clientY>te.bottom?20:0;tr&&setTimeout(at(s,function(){ae==Re&&(v.scroller.scrollTop+=tr,ce(Ie))}),50)}}function he(Ie){s.state.selectingText=!1,ae=1/0,Ie&&(It(Ie),v.input.focus()),Jr(v.wrapper.ownerDocument,"mousemove",ve),Jr(v.wrapper.ownerDocument,"mouseup",Ce),b.history.lastSelOrigin=null}var ve=at(s,function(Ie){Ie.buttons===0||!tn(Ie)?he(Ie):ce(Ie)}),Ce=at(s,he);s.state.selectingText=Ce,Oe(v.wrapper.ownerDocument,"mousemove",ve),Oe(v.wrapper.ownerDocument,"mouseup",Ce)}function Ip(s,l){var g=l.anchor,h=l.head,v=Ae(s.doc,g.line);if(ze(g,h)==0&&g.sticky==h.sticky)return l;var b=Sr(v);if(!b)return l;var N=Lt(b,g.ch,g.sticky),y=b[N];if(y.from!=g.ch&&y.to!=g.ch)return l;var w=N+(y.from==g.ch==(y.level!=1)?0:1);if(w==0||w==b.length)return l;var G;if(h.line!=g.line)G=(h.line-g.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var k=Lt(b,h.ch,h.sticky),_=k-N||(h.ch-g.ch)*(y.level==1?-1:1);k==w-1||k==w?G=_<0:G=_>0}var ie=b[w+(G?-1:0)],te=G==(ie.level==1),ae=te?ie.from:ie.to,ce=te?"after":"before";return g.ch==ae&&g.sticky==ce?l:new gr(new pe(g.line,ae,ce),h)}function If(s,l,g,h){var v,b;if(l.touches)v=l.touches[0].clientX,b=l.touches[0].clientY;else try{v=l.clientX,b=l.clientY}catch{return!1}if(v>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;h&&It(l);var N=s.display,y=N.lineDiv.getBoundingClientRect();if(b>y.bottom||!ar(s,g))return vi(l);b-=y.top-N.viewOffset;for(var w=0;w<s.display.gutterSpecs.length;++w){var G=N.gutters.childNodes[w];if(G&&G.getBoundingClientRect().right>=v){var k=Ci(s.doc,b),_=s.display.gutterSpecs[w];return hr(s,g,s,k,_.className,l),vi(l)}}}function ol(s,l){return If(s,l,"gutterClick",!0)}function Cf(s,l){Qi(s.display,l)||Cp(s,l)||xr(s,l,"contextmenu")||Se||s.display.input.onContextMenu(l)}function Cp(s,l){return ar(s,"gutterContextMenu")?If(s,l,"gutterContextMenu",!1):!1}function xf(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Gs(s)}var Bn={toString:function(){return"CodeMirror.Init"}},bf={},da={};function xp(s){var l=s.optionHandlers;function g(h,v,b,N){s.defaults[h]=v,b&&(l[h]=N?function(y,w,G){G!=Bn&&b(y,w,G)}:b)}s.defineOption=g,s.Init=Bn,g("value","",function(h,v){return h.setValue(v)},!0),g("mode",null,function(h,v){h.doc.modeOption=v,fi(h)},!0),g("indentUnit",2,fi,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(h){Qs(h),Gs(h),Nt(h)},!0),g("lineSeparator",null,function(h,v){if(h.doc.lineSep=v,!!v){var b=[],N=h.doc.first;h.doc.iter(function(w){for(var G=0;;){var k=w.text.indexOf(v,G);if(k==-1)break;G=k+v.length,b.push(pe(N,k))}N++});for(var y=b.length-1;y>=0;y--)wn(h.doc,v,b[y],pe(b[y].line,b[y].ch+v.length))}}),g("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(h,v,b){h.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),b!=Bn&&h.refresh()}),g("specialCharPlaceholder",ac,function(h){return h.refresh()},!0),g("electricChars",!0),g("inputStyle",H?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),g("spellcheck",!1,function(h,v){return h.getInputField().spellcheck=v},!0),g("autocorrect",!1,function(h,v){return h.getInputField().autocorrect=v},!0),g("autocapitalize",!1,function(h,v){return h.getInputField().autocapitalize=v},!0),g("rtlMoveVisually",!ee),g("wholeLineUpdateBefore",!0),g("theme","default",function(h){xf(h),so(h)},!0),g("keyMap","default",function(h,v,b){var N=ca(v),y=b!=Bn&&ca(b);y&&y.detach&&y.detach(h,N),N.attach&&N.attach(h,y||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,Ap,!0),g("gutters",[],function(h,v){h.display.gutterSpecs=$a(v,h.options.lineNumbers),so(h)},!0),g("fixedGutter",!0,function(h,v){h.display.gutters.style.left=v?At(h.display)+"px":"0",h.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(h){return bn(h)},!0),g("scrollbarStyle","native",function(h){Uu(h),bn(h),h.display.scrollbars.setScrollTop(h.doc.scrollTop),h.display.scrollbars.setScrollLeft(h.doc.scrollLeft)},!0),g("lineNumbers",!1,function(h,v){h.display.gutterSpecs=$a(h.options.gutters,v),so(h)},!0),g("firstLineNumber",1,so,!0),g("lineNumberFormatter",function(h){return h},so,!0),g("showCursorWhenSelecting",!1,Os,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(h,v){v=="nocursor"&&(Cn(h),h.display.input.blur()),h.display.input.readOnlyChanged(v)}),g("screenReaderLabel",null,function(h,v){v=v===""?null:v,h.display.input.screenReaderLabelChanged(v)}),g("disableInput",!1,function(h,v){v||h.display.input.reset()},!0),g("dragDrop",!0,bp),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,Os,!0),g("singleCursorHeightPerLine",!0,Os,!0),g("workTime",100),g("workDelay",100),g("flattenSpans",!0,Qs,!0),g("addModeClass",!1,Qs,!0),g("pollInterval",100),g("undoDepth",200,function(h,v){return h.doc.history.undoDepth=v}),g("historyEventDelay",1250),g("viewportMargin",10,function(h){return h.refresh()},!0),g("maxHighlightLength",1e4,Qs,!0),g("moveInputWithCursor",!0,function(h,v){v||h.display.input.resetPosition()}),g("tabindex",null,function(h,v){return h.display.input.getField().tabIndex=v||""}),g("autofocus",null),g("direction","ltr",function(h,v){return h.doc.setDirection(v)},!0),g("phrases",null)}function bp(s,l,g){var h=g&&g!=Bn;if(!l!=!h){var v=s.display.dragFunctions,b=l?Oe:Jr;b(s.display.scroller,"dragstart",v.start),b(s.display.scroller,"dragenter",v.enter),b(s.display.scroller,"dragover",v.over),b(s.display.scroller,"dragleave",v.leave),b(s.display.scroller,"drop",v.drop)}}function Ap(s){s.options.lineWrapping?(je(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Ze(s.display.wrapper,"CodeMirror-wrap"),Wa(s)),Bs(s),Nt(s),Gs(s),setTimeout(function(){return bn(s)},100)}function wr(s,l){var g=this;if(!(this instanceof wr))return new wr(s,l);this.options=l=l?Rr(l):{},Rr(bf,l,!1);var h=l.value;typeof h=="string"?h=new Zt(h,l.mode,null,l.lineSeparator,l.direction):l.mode&&(h.modeOption=l.mode),this.doc=h;var v=new wr.inputStyles[l.inputStyle](this),b=this.display=new Wc(s,h,v,l);b.wrapper.CodeMirror=this,xf(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Uu(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 Hr,keySeq:null,specialChars:null},l.autofocus&&!H&&b.input.focus(),F&&Z<11&&setTimeout(function(){return g.display.input.reset(!0)},20),Np(this),rp(),Ms(this),this.curOp.forceUpdate=!0,sa(this,h),l.autofocus&&!H||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&Ya(g)},20):Cn(this);for(var N in da)da.hasOwnProperty(N)&&da[N](this,l[N],Bn);Ou(this),l.finishInit&&l.finishInit(this);for(var y=0;y<al.length;++y)al[y](this);Ds(this),M&&l.lineWrapping&&getComputedStyle(b.lineDiv).textRendering=="optimizelegibility"&&(b.lineDiv.style.textRendering="auto")}wr.defaults=bf,wr.optionHandlers=da;function Np(s){var l=s.display;Oe(l.scroller,"mousedown",at(s,mf)),F&&Z<11?Oe(l.scroller,"dblclick",at(s,function(w){if(!xr(s,w)){var G=ui(s,w);if(!(!G||ol(s,w)||Qi(s.display,w))){It(w);var k=s.findWordAt(G);aa(s.doc,k.anchor,k.head)}}})):Oe(l.scroller,"dblclick",function(w){return xr(s,w)||It(w)}),Oe(l.scroller,"contextmenu",function(w){return Cf(s,w)}),Oe(l.input.getField(),"contextmenu",function(w){l.scroller.contains(w.target)||Cf(s,w)});var g,h={end:0};function v(){l.activeTouch&&(g=setTimeout(function(){return l.activeTouch=null},1e3),h=l.activeTouch,h.end=+new Date)}function b(w){if(w.touches.length!=1)return!1;var G=w.touches[0];return G.radiusX<=1&&G.radiusY<=1}function N(w,G){if(G.left==null)return!0;var k=G.left-w.left,_=G.top-w.top;return k*k+_*_>20*20}Oe(l.scroller,"touchstart",function(w){if(!xr(s,w)&&!b(w)&&!ol(s,w)){l.input.ensurePolled(),clearTimeout(g);var G=+new Date;l.activeTouch={start:G,moved:!1,prev:G-h.end<=300?h:null},w.touches.length==1&&(l.activeTouch.left=w.touches[0].pageX,l.activeTouch.top=w.touches[0].pageY)}}),Oe(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Oe(l.scroller,"touchend",function(w){var G=l.activeTouch;if(G&&!Qi(l,w)&&G.left!=null&&!G.moved&&new Date-G.start<300){var k=s.coordsChar(l.activeTouch,"page"),_;!G.prev||N(G,G.prev)?_=new gr(k,k):!G.prev.prev||N(G,G.prev.prev)?_=s.findWordAt(k):_=new gr(pe(k.line,0),$e(s.doc,pe(k.line+1,0))),s.setSelection(_.anchor,_.head),s.focus(),It(w)}v()}),Oe(l.scroller,"touchcancel",v),Oe(l.scroller,"scroll",function(){l.scroller.clientHeight&&(Kn(s,l.scroller.scrollTop),Ws(s,l.scroller.scrollLeft,!0),hr(s,"scroll",s))}),Oe(l.scroller,"mousewheel",function(w){return ta(s,w)}),Oe(l.scroller,"DOMMouseScroll",function(w){return ta(s,w)}),Oe(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(w){xr(s,w)||Ns(w)},over:function(w){xr(s,w)||(ep(s,w),Ns(w))},start:function(w){return Kc(s,w)},drop:at(s,qc),leave:function(w){xr(s,w)||sf(s)}};var y=l.input.getField();Oe(y,"keyup",function(w){return gf.call(s,w)}),Oe(y,"keydown",at(s,hf)),Oe(y,"keypress",at(s,Ef)),Oe(y,"focus",function(w){return Ya(s,w)}),Oe(y,"blur",function(w){return Cn(s,w)})}var al=[];wr.defineInitHook=function(s){return al.push(s)};function Co(s,l,g,h){var v=s.doc,b;g==null&&(g="add"),g=="smart"&&(v.mode.indent?b=Pn(s,l).state:g="prev");var N=s.options.tabSize,y=Ae(v,l),w=dr(y.text,null,N);y.stateAfter&&(y.stateAfter=null);var G=y.text.match(/^\s*/)[0],k;if(!h&&!/\S/.test(y.text))k=0,g="not";else if(g=="smart"&&(k=v.mode.indent(b,y.text.slice(G.length),y.text),k==Ge||k>150)){if(!h)return;g="prev"}g=="prev"?l>v.first?k=dr(Ae(v,l-1).text,null,N):k=0:g=="add"?k=w+s.options.indentUnit:g=="subtract"?k=w-s.options.indentUnit:typeof g=="number"&&(k=w+g),k=Math.max(0,k);var _="",ie=0;if(s.options.indentWithTabs)for(var te=Math.floor(k/N);te;--te)ie+=N,_+=" ";if(ie<k&&(_+=ii(k-ie)),_!=G)return wn(v,_,pe(l,0),pe(l,G.length),"+input"),y.stateAfter=null,!0;for(var ae=0;ae<v.sel.ranges.length;ae++){var ce=v.sel.ranges[ae];if(ce.head.line==l&&ce.head.ch<G.length){var he=pe(l,G.length);el(v,ae,new gr(he,he));break}}}var ci=null;function ha(s){ci=s}function ll(s,l,g,h,v){var b=s.doc;s.display.shift=!1,h||(h=b.sel);var N=+new Date-200,y=v=="paste"||s.state.pasteIncoming>N,w=nn(l),G=null;if(y&&h.ranges.length>1)if(ci&&ci.text.join(`
10
+ left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");s.display.lineSpace.appendChild(N),N.scrollIntoView(v),s.display.lineSpace.removeChild(N)}}}function bc(s,l,g,h){h==null&&(h=0);var v;!s.options.lineWrapping&&l==g&&(g=l.sticky=="before"?pe(l.line,l.ch+1,"before"):l,l=l.ch?pe(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var b=0;b<5;b++){var N=!1,y=er(s,l),w=!g||g==l?y:er(s,g);v={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-h,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+h};var G=Ha(s,v),k=s.doc.scrollTop,_=s.doc.scrollLeft;if(G.scrollTop!=null&&(Kn(s,G.scrollTop),Math.abs(s.doc.scrollTop-k)>1&&(N=!0)),G.scrollLeft!=null&&(Ws(s,G.scrollLeft),Math.abs(s.doc.scrollLeft-_)>1&&(N=!0)),!N)break}return v}function Ac(s,l){var g=Ha(s,l);g.scrollTop!=null&&Kn(s,g.scrollTop),g.scrollLeft!=null&&Ws(s,g.scrollLeft)}function Ha(s,l){var g=s.display,h=Xr(s.display);l.top<0&&(l.top=0);var v=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,b=Ma(s),N={};l.bottom-l.top>b&&(l.bottom=l.top+b);var y=s.doc.height+Za(g),w=l.top<h,G=l.bottom>y-h;if(l.top<v)N.scrollTop=w?0:l.top;else if(l.bottom>v+b){var k=Math.min(l.top,(G?y:l.bottom)-b);k!=v&&(N.scrollTop=k)}var _=s.options.fixedGutter?0:g.gutters.offsetWidth,ie=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-_,te=ws(s)-g.gutters.offsetWidth,ae=l.right-l.left>te;return ae&&(l.right=l.left+te),l.left<10?N.scrollLeft=0:l.left<ie?N.scrollLeft=Math.max(0,l.left+_-(ae?0:10)):l.right>te+ie-3&&(N.scrollLeft=l.right+(ae?0:10)-te),N}function Ja(s,l){l!=null&&(Ko(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function xn(s){Ko(s);var l=s.getCursor();s.curOp.scrollToPos={from:l,to:l,margin:s.options.cursorScrollMargin}}function qn(s,l,g){(l!=null||g!=null)&&Ko(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function Nc(s,l){Ko(s),s.curOp.scrollToPos=l}function Ko(s){var l=s.curOp.scrollToPos;if(l){s.curOp.scrollToPos=null;var g=Au(s,l.from),h=Au(s,l.to);Su(s,g,h,l.margin)}}function Su(s,l,g,h){var v=Ha(s,{left:Math.min(l.left,g.left),top:Math.min(l.top,g.top)-h,right:Math.max(l.right,g.right),bottom:Math.max(l.bottom,g.bottom)+h});qn(s,v.scrollLeft,v.scrollTop)}function Kn(s,l){Math.abs(s.doc.scrollTop-l)<2||(e||ja(s,{top:l}),Lu(s,l,!0),e&&ja(s),to(s,100))}function Lu(s,l,g){l=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,l)),!(s.display.scroller.scrollTop==l&&!g)&&(s.doc.scrollTop=l,s.display.scrollbars.setScrollTop(l),s.display.scroller.scrollTop!=l&&(s.display.scroller.scrollTop=l))}function Ws(s,l,g,h){l=Math.max(0,Math.min(l,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((g?l==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-l)<2)&&!h)&&(s.doc.scrollLeft=l,Bu(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function eo(s){var l=s.display,g=l.gutters.offsetWidth,h=Math.round(s.doc.height+Za(s.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:s.options.fixedGutter?g:0,docHeight:h,scrollHeight:h+Ni(s)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:g}}var Zs=function(s,l,g){this.cm=g;var h=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");h.tabIndex=v.tabIndex=-1,s(h),s(v),Oe(h,"scroll",function(){h.clientHeight&&l(h.scrollTop,"vertical")}),Oe(v,"scroll",function(){v.clientWidth&&l(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,F&&Z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Zs.prototype.update=function(s){var l=s.scrollWidth>s.clientWidth+1,g=s.scrollHeight>s.clientHeight+1,h=s.nativeBarWidth;if(g){this.vert.style.display="block",this.vert.style.bottom=l?h+"px":"0";var v=s.viewHeight-(l?h:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+v)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(l){this.horiz.style.display="block",this.horiz.style.right=g?h+"px":"0",this.horiz.style.left=s.barLeft+"px";var b=s.viewWidth-s.barLeft-(g?h:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+b)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(h==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:g?h:0,bottom:l?h:0}},Zs.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Zs.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Zs.prototype.zeroWidthHack=function(){var s=$&&!K?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Hr,this.disableVert=new Hr},Zs.prototype.enableZeroWidthBar=function(s,l,g){s.style.visibility="";function h(){var v=s.getBoundingClientRect(),b=g=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);b!=s?s.style.visibility="hidden":l.set(1e3,h)}l.set(1e3,h)},Zs.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var ro=function(){};ro.prototype.update=function(){return{bottom:0,right:0}},ro.prototype.setScrollLeft=function(){},ro.prototype.setScrollTop=function(){},ro.prototype.clear=function(){};function bn(s,l){l||(l=eo(s));var g=s.display.barWidth,h=s.display.barHeight;wu(s,l);for(var v=0;v<4&&g!=s.display.barWidth||h!=s.display.barHeight;v++)g!=s.display.barWidth&&s.options.lineWrapping&&$o(s),wu(s,eo(s)),g=s.display.barWidth,h=s.display.barHeight}function wu(s,l){var g=s.display,h=g.scrollbars.update(l);g.sizer.style.paddingRight=(g.barWidth=h.right)+"px",g.sizer.style.paddingBottom=(g.barHeight=h.bottom)+"px",g.heightForcer.style.borderBottom=h.bottom+"px solid transparent",h.right&&h.bottom?(g.scrollbarFiller.style.display="block",g.scrollbarFiller.style.height=h.bottom+"px",g.scrollbarFiller.style.width=h.right+"px"):g.scrollbarFiller.style.display="",h.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(g.gutterFiller.style.display="block",g.gutterFiller.style.height=h.bottom+"px",g.gutterFiller.style.width=l.gutterWidth+"px"):g.gutterFiller.style.display=""}var Gu={native:Zs,null:ro};function Uu(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Ze(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new Gu[s.options.scrollbarStyle](function(l){s.display.wrapper.insertBefore(l,s.display.scrollbarFiller),Oe(l,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),l.setAttribute("cm-not-content","true")},function(l,g){g=="horizontal"?Ws(s,l):Kn(s,l)},s),s.display.scrollbars.addClass&&je(s.display.wrapper,s.display.scrollbars.addClass)}var Tc=0;function Ms(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.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:++Tc,markArrays:null},pc(s.curOp)}function Ds(s){var l=s.curOp;l&&hc(l,function(g){for(var h=0;h<g.ops.length;h++)g.ops[h].cm.curOp=null;Rc(g)})}function Rc(s){for(var l=s.ops,g=0;g<l.length;g++)yc(l[g]);for(var h=0;h<l.length;h++)Sc(l[h]);for(var v=0;v<l.length;v++)Lc(l[v]);for(var b=0;b<l.length;b++)wc(l[b]);for(var N=0;N<l.length;N++)Gc(l[N])}function yc(s){var l=s.cm,g=l.display;Fc(l),s.updateMaxLine&&Wa(l),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<g.viewFrom||s.scrollToPos.to.line>=g.viewTo)||g.maxLineChanged&&l.options.lineWrapping,s.update=s.mustUpdate&&new ea(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function Sc(s){s.updatedDisplay=s.mustUpdate&&_a(s.cm,s.update)}function Lc(s){var l=s.cm,g=l.display;s.updatedDisplay&&$o(l),s.barMeasure=eo(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=vu(l,g.maxLine,g.maxLine.text.length).left+3,l.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(g.scroller.clientWidth,g.sizer.offsetLeft+s.adjustWidthTo+Ni(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-ws(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function wc(s){var l=s.cm;s.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<l.doc.scrollLeft&&Ws(l,Math.min(l.display.scroller.scrollLeft,s.maxScrollLeft),!0),l.display.maxLineChanged=!1);var g=s.focus&&s.focus==Or(qe(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&bn(l,s.barMeasure),s.updatedDisplay&&za(l,s.barMeasure),s.selectionChanged&&Xa(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Ru(s.cm)}function Gc(s){var l=s.cm,g=l.display,h=l.doc;if(s.updatedDisplay&&Fu(l,s.update),g.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),s.scrollTop!=null&&Lu(l,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Ws(l,s.scrollLeft,!0,!0),s.scrollToPos){var v=bc(l,$e(h,s.scrollToPos.from),$e(h,s.scrollToPos.to),s.scrollToPos.margin);xc(l,v)}var b=s.maybeHiddenMarkers,N=s.maybeUnhiddenMarkers;if(b)for(var y=0;y<b.length;++y)b[y].lines.length||hr(b[y],"hide");if(N)for(var w=0;w<N.length;++w)N[w].lines.length&&hr(N[w],"unhide");g.wrapper.offsetHeight&&(h.scrollTop=l.display.scroller.scrollTop),s.changeObjs&&hr(l,"changes",l,s.changeObjs),s.update&&s.update.finish()}function Ht(s,l){if(s.curOp)return l();Ms(s);try{return l()}finally{Ds(s)}}function at(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Ms(s);try{return l.apply(s,arguments)}finally{Ds(s)}}}function wt(s){return function(){if(this.curOp)return s.apply(this,arguments);Ms(this);try{return s.apply(this,arguments)}finally{Ds(this)}}}function lt(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Ms(l);try{return s.apply(this,arguments)}finally{Ds(l)}}}function to(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,Me(Uc,s))}function Uc(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,h=Pn(s,l.highlightFrontier),v=[];l.iter(h.line,Math.min(l.first+l.size,s.display.viewTo+500),function(b){if(h.line>=s.display.viewFrom){var N=b.styles,y=b.text.length>s.options.maxHighlightLength?we(l.mode,h.state):null,w=iu(s,b,h,!0);y&&(h.state=y),b.styles=w.styles;var G=b.styleClasses,k=w.classes;k?b.styleClasses=k:G&&(b.styleClasses=null);for(var _=!N||N.length!=b.styles.length||G!=k&&(!G||!k||G.bgClass!=k.bgClass||G.textClass!=k.textClass),ie=0;!_&&ie<N.length;++ie)_=N[ie]!=b.styles[ie];_&&v.push(h.line),b.stateAfter=h.save(),h.nextLine()}else b.text.length<=s.options.maxHighlightLength&&Yn(s,b.text,h),b.stateAfter=h.line%5==0?h.save():null,h.nextLine();if(+new Date>g)return to(s,s.options.workDelay),!0}),l.highlightFrontier=h.line,l.modeFrontier=Math.max(l.modeFrontier,h.line),v.length&&Ht(s,function(){for(var b=0;b<v.length;b++)Yt(s,v[b],"text")})}}var ea=function(s,l,g){var h=s.display;this.viewport=l,this.visible=qo(h,s.doc,l),this.editorIsHidden=!h.wrapper.offsetWidth,this.wrapperHeight=h.wrapper.clientHeight,this.wrapperWidth=h.wrapper.clientWidth,this.oldDisplayWidth=ws(s),this.force=g,this.dims=Fs(s),this.events=[]};ea.prototype.signal=function(s,l){ar(s,l)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var s=0;s<this.events.length;s++)hr.apply(null,this.events[s])};function Fc(s){var l=s.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=Ni(s)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=Ni(s)+"px",l.scrollbarsClipped=!0)}function Bc(s){if(s.hasFocus())return null;var l=Or(qe(s));if(!l||!or(s.display.lineDiv,l))return null;var g={activeElt:l};if(window.getSelection){var h=Ir(s).getSelection();h.anchorNode&&h.extend&&or(s.display.lineDiv,h.anchorNode)&&(g.anchorNode=h.anchorNode,g.anchorOffset=h.anchorOffset,g.focusNode=h.focusNode,g.focusOffset=h.focusOffset)}return g}function Oc(s){if(!(!s||!s.activeElt||s.activeElt==Or(Pe(s.activeElt)))&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&or(document.body,s.anchorNode)&&or(document.body,s.focusNode))){var l=s.activeElt.ownerDocument,g=l.defaultView.getSelection(),h=l.createRange();h.setEnd(s.anchorNode,s.anchorOffset),h.collapse(!1),g.removeAllRanges(),g.addRange(h),g.extend(s.focusNode,s.focusOffset)}}function _a(s,l){var g=s.display,h=s.doc;if(l.editorIsHidden)return Ri(s),!1;if(!l.force&&l.visible.from>=g.viewFrom&&l.visible.to<=g.viewTo&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo)&&g.renderedView==g.view&&zo(s)==0)return!1;Ou(s)&&(Ri(s),l.dims=Fs(s));var v=h.first+h.size,b=Math.max(l.visible.from-s.options.viewportMargin,h.first),N=Math.min(v,l.visible.to+s.options.viewportMargin);g.viewFrom<b&&b-g.viewFrom<20&&(b=Math.max(h.first,g.viewFrom)),g.viewTo>N&&g.viewTo-N<20&&(N=Math.min(v,g.viewTo)),Vi&&(b=Hn(s.doc,b),N=Yo(s.doc,N));var y=b!=g.viewFrom||N!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;$n(s,b,N),g.viewOffset=Mi(Ae(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var w=zo(s);if(!y&&w==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var G=Bc(s);return w>4&&(g.lineDiv.style.display="none"),Vc(s,g.updateLineNumbers,l.dims),w>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Oc(G),Be(g.cursorDiv),Be(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,y&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,to(s,400)),g.updateLineNumbers=null,!0}function Fu(s,l){for(var g=l.viewport,h=!0;;h=!1){if(!h||!s.options.lineWrapping||l.oldDisplayWidth==ws(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Za(s.display)-Ma(s),g.top)}),l.visible=qo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else h&&(l.visible=qo(s.display,s.doc,g));if(!_a(s,l))break;$o(s);var v=eo(s);Os(s),bn(s,v),za(s,v),l.force=!1}l.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(l.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function ja(s,l){var g=new ea(s,l);if(_a(s,g)){$o(s),Fu(s,g);var h=eo(s);Os(s),bn(s,h),za(s,h),g.finish()}}function Vc(s,l,g){var h=s.display,v=s.options.lineNumbers,b=h.lineDiv,N=b.firstChild;function y(ae){var ce=ae.nextSibling;return M&&$&&s.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),ce}for(var w=h.view,G=h.viewFrom,k=0;k<w.length;k++){var _=w[k];if(!_.hidden)if(!_.node||_.node.parentNode!=b){var ie=Wt(s,_,G,g);b.insertBefore(ie,N)}else{for(;N!=_.node;)N=y(N);var te=v&&l!=null&&l<=G&&_.lineNumber;_.changes&&(Cr(_.changes,"gutter")>-1&&(te=!1),hu(s,_,G,g)),te&&(Be(_.lineNumber),_.lineNumber.appendChild(document.createTextNode(Sa(s.options,G)))),N=_.node.nextSibling}G+=_.size}for(;N;)N=y(N)}function io(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",ot(s,"gutterChanged",s)}function za(s,l){s.display.sizer.style.minHeight=l.docHeight+"px",s.display.heightForcer.style.top=l.docHeight+"px",s.display.gutters.style.height=l.docHeight+s.display.barHeight+Ni(s)+"px"}function Bu(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var h=At(l)-l.scroller.scrollLeft+s.doc.scrollLeft,v=l.gutters.offsetWidth,b=h+"px",N=0;N<g.length;N++)if(!g[N].hidden){s.options.fixedGutter&&(g[N].gutter&&(g[N].gutter.style.left=b),g[N].gutterBackground&&(g[N].gutterBackground.style.left=b));var y=g[N].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=b}s.options.fixedGutter&&(l.gutters.style.left=h+v+"px")}}function Ou(s){if(!s.options.lineNumbers)return!1;var l=s.doc,g=Sa(s.options,l.first+l.size-1),h=s.display;if(g.length!=h.lineNumChars){var v=h.measure.appendChild(Ee("div",[Ee("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),b=v.firstChild.offsetWidth,N=v.offsetWidth-b;return h.lineGutter.style.width="",h.lineNumInnerWidth=Math.max(b,h.lineGutter.offsetWidth-N)+1,h.lineNumWidth=h.lineNumInnerWidth+N,h.lineNumChars=h.lineNumInnerWidth?g.length:-1,h.lineGutter.style.width=h.lineNumWidth+"px",io(s.display),!0}return!1}function $a(s,l){for(var g=[],h=!1,v=0;v<s.length;v++){var b=s[v],N=null;if(typeof b!="string"&&(N=b.style,b=b.className),b=="CodeMirror-linenumbers")if(l)h=!0;else continue;g.push({className:b,style:N})}return l&&!h&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function Vu(s){var l=s.gutters,g=s.gutterSpecs;Be(l),s.lineGutter=null;for(var h=0;h<g.length;++h){var v=g[h],b=v.className,N=v.style,y=l.appendChild(Ee("div",null,"CodeMirror-gutter "+b));N&&(y.style.cssText=N),b=="CodeMirror-linenumbers"&&(s.lineGutter=y,y.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",io(s)}function so(s){Vu(s.display),Nt(s),Bu(s)}function Wc(s,l,g,h){var v=this;this.input=g,v.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=Er("div",null,"CodeMirror-code"),v.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=Ee("div",null,"CodeMirror-cursors"),v.measure=Ee("div",null,"CodeMirror-measure"),v.lineMeasure=Ee("div",null,"CodeMirror-measure"),v.lineSpace=Er("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var b=Er("div",[v.lineSpace],"CodeMirror-lines");v.mover=Ee("div",[b],null,"position: relative"),v.sizer=Ee("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=Ee("div",null,null,"position: absolute; height: "+ti+"px; width: 1px;"),v.gutters=Ee("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=Ee("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=Ee("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),X&&D===105&&(v.wrapper.style.clipPath="inset(0px)"),v.wrapper.setAttribute("translate","no"),F&&Z<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!M&&!(e&&H)&&(v.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(v.wrapper):s(v.wrapper)),v.viewFrom=v.viewTo=l.first,v.reportedViewFrom=v.reportedViewTo=l.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=$a(h.gutters,h.lineNumbers),Vu(v),g.init(v)}var ra=0,Xi=null;F?Xi=-.53:e?Xi=15:X?Xi=-.7:W&&(Xi=-1/3);function Wu(s){var l=s.wheelDeltaX,g=s.wheelDeltaY;return l==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(l=s.detail),g==null&&s.detail&&s.axis==s.VERTICAL_AXIS?g=s.detail:g==null&&(g=s.wheelDelta),{x:l,y:g}}function Zc(s){var l=Wu(s);return l.x*=Xi,l.y*=Xi,l}function ta(s,l){X&&D==102&&(s.display.chromeScrollHack==null?s.display.sizer.style.pointerEvents="none":clearTimeout(s.display.chromeScrollHack),s.display.chromeScrollHack=setTimeout(function(){s.display.chromeScrollHack=null,s.display.sizer.style.pointerEvents=""},100));var g=Wu(l),h=g.x,v=g.y,b=Xi;l.deltaMode===0&&(h=l.deltaX,v=l.deltaY,b=1);var N=s.display,y=N.scroller,w=y.scrollWidth>y.clientWidth,G=y.scrollHeight>y.clientHeight;if(h&&w||v&&G){if(v&&$&&M){e:for(var k=l.target,_=N.view;k!=y;k=k.parentNode)for(var ie=0;ie<_.length;ie++)if(_[ie].node==k){s.display.currentWheelTarget=k;break e}}if(h&&!e&&!z&&b!=null){v&&G&&Kn(s,Math.max(0,y.scrollTop+v*b)),Ws(s,Math.max(0,y.scrollLeft+h*b)),(!v||v&&G)&&It(l),N.wheelStartX=null;return}if(v&&b!=null){var te=v*b,ae=s.doc.scrollTop,ce=ae+N.wrapper.clientHeight;te<0?ae=Math.max(0,ae+te-50):ce=Math.min(s.doc.height,ce+te+50),ja(s,{top:ae,bottom:ce})}ra<20&&l.deltaMode!==0&&(N.wheelStartX==null?(N.wheelStartX=y.scrollLeft,N.wheelStartY=y.scrollTop,N.wheelDX=h,N.wheelDY=v,setTimeout(function(){if(N.wheelStartX!=null){var he=y.scrollLeft-N.wheelStartX,ve=y.scrollTop-N.wheelStartY,Ce=ve&&N.wheelDY&&ve/N.wheelDY||he&&N.wheelDX&&he/N.wheelDX;N.wheelStartX=N.wheelStartY=null,Ce&&(Xi=(Xi*ra+Ce)/(ra+1),++ra)}},200)):(N.wheelDX+=h,N.wheelDY+=v))}}var Lr=function(s,l){this.ranges=s,this.primIndex=l};Lr.prototype.primary=function(){return this.ranges[this.primIndex]},Lr.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var g=this.ranges[l],h=s.ranges[l];if(!La(g.anchor,h.anchor)||!La(g.head,h.head))return!1}return!0},Lr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new gr(wa(this.ranges[l].anchor),wa(this.ranges[l].head));return new Lr(s,this.primIndex)},Lr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Lr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var h=this.ranges[g];if(ze(l,h.from())>=0&&ze(s,h.to())<=0)return g}return-1};var gr=function(s,l){this.anchor=s,this.head=l};gr.prototype.from=function(){return Do(this.anchor,this.head)},gr.prototype.to=function(){return Mo(this.anchor,this.head)},gr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xe(s,l,g){var h=s&&s.options.selectionsMayTouch,v=l[g];l.sort(function(ie,te){return ze(ie.from(),te.from())}),g=Cr(l,v);for(var b=1;b<l.length;b++){var N=l[b],y=l[b-1],w=ze(y.to(),N.from());if(h&&!N.empty()?w>0:w>=0){var G=Do(y.from(),N.from()),k=Mo(y.to(),N.to()),_=y.empty()?N.from()==N.head:y.from()==y.head;b<=g&&--g,l.splice(--b,2,new gr(_?k:G,_?G:k))}}return new Lr(l,g)}function yi(s,l){return new Lr([new gr(s,l||s)],0)}function Si(s){return s.text?pe(s.from.line+s.text.length-1,xe(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ia(s,l){if(ze(s,l.from)<0)return s;if(ze(s,l.to)<=0)return Si(l);var g=s.line+l.text.length-(l.to.line-l.from.line)-1,h=s.ch;return s.line==l.to.line&&(h+=Si(l).ch-l.to.ch),pe(g,h)}function Pi(s,l){for(var g=[],h=0;h<s.sel.ranges.length;h++){var v=s.sel.ranges[h];g.push(new gr(ia(v.anchor,l),ia(v.head,l)))}return Xe(s.cm,g,s.sel.primIndex)}function Zu(s,l,g){return s.line==l.line?pe(g.line,s.ch-l.ch+g.ch):pe(g.line+(s.line-l.line),s.ch)}function Mc(s,l,g){for(var h=[],v=pe(s.first,0),b=v,N=0;N<l.length;N++){var y=l[N],w=Zu(y.from,v,b),G=Zu(Si(y),v,b);if(v=y.to,b=G,g=="around"){var k=s.sel.ranges[N],_=ze(k.head,k.anchor)<0;h[N]=new gr(_?G:w,_?w:G)}else h[N]=new gr(w,w)}return new Lr(h,s.sel.primIndex)}function fi(s){s.doc.mode=Qe(s.options,s.doc.modeOption),Qs(s)}function Qs(s){s.doc.iter(function(l){l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,to(s,100),s.state.modeGen++,s.curOp&&Nt(s)}function hs(s,l){return l.from.ch==0&&l.to.ch==0&&xe(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function no(s,l,g,h){function v(Ce){return g?g[Ce]:null}function b(Ce,Ie,Re){ic(Ce,Ie,Re,h),ot(Ce,"change",Ce,l)}function N(Ce,Ie){for(var Re=[],ke=Ce;ke<Ie;++ke)Re.push(new dn(G[ke],v(ke),h));return Re}var y=l.from,w=l.to,G=l.text,k=Ae(s,y.line),_=Ae(s,w.line),ie=xe(G),te=v(G.length-1),ae=w.line-y.line;if(l.full)s.insert(0,N(0,G.length)),s.remove(G.length,s.size-G.length);else if(hs(s,l)){var ce=N(0,G.length-1);b(_,_.text,te),ae&&s.remove(y.line,ae),ce.length&&s.insert(y.line,ce)}else if(k==_)if(G.length==1)b(k,k.text.slice(0,y.ch)+ie+k.text.slice(w.ch),te);else{var he=N(1,G.length-1);he.push(new dn(ie+k.text.slice(w.ch),te,h)),b(k,k.text.slice(0,y.ch)+G[0],v(0)),s.insert(y.line+1,he)}else if(G.length==1)b(k,k.text.slice(0,y.ch)+G[0]+_.text.slice(w.ch),v(0)),s.remove(y.line+1,ae);else{b(k,k.text.slice(0,y.ch)+G[0],v(0)),b(_,ie+_.text.slice(w.ch),te);var ve=N(1,G.length-1);ae>1&&s.remove(y.line+1,ae-1),s.insert(y.line+1,ve)}ot(s,"change",s,l)}function Li(s,l,g){function h(v,b,N){if(v.linked)for(var y=0;y<v.linked.length;++y){var w=v.linked[y];if(w.doc!=b){var G=N&&w.sharedHist;g&&!G||(l(w.doc,G),h(w.doc,v,G))}}}h(s,null,!0)}function sa(s,l){if(l.cm)throw new Error("This document is already in use.");s.doc=l,l.cm=s,Bs(s),fi(s),na(s),s.options.direction=l.direction,s.options.lineWrapping||Wa(s),s.options.mode=l.modeOption,Nt(s)}function na(s){(s.doc.direction=="rtl"?je:Ze)(s.display.lineDiv,"CodeMirror-rtl")}function qa(s){Ht(s,function(){na(s),Nt(s)})}function An(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function oo(s,l){var g={from:wa(l.from),to:Si(l),text:Ct(s,l.from,l.to)};return Du(s,g,l.from.line,l.to.line+1),Li(s,function(h){return Du(h,g,l.from.line,l.to.line+1)},!0),g}function oa(s){for(;s.length;){var l=xe(s);if(l.ranges)s.pop();else break}}function Dc(s,l){if(l)return oa(s.done),xe(s.done);if(s.done.length&&!xe(s.done).ranges)return xe(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),xe(s.done)}function Mu(s,l,g,h){var v=s.history;v.undone.length=0;var b=+new Date,N,y;if((v.lastOp==h||v.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&v.lastModTime>b-(s.cm?s.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(N=Dc(v,v.lastOp==h)))y=xe(N.changes),ze(l.from,l.to)==0&&ze(l.from,y.to)==0?y.to=Si(l):N.changes.push(oo(s,l));else{var w=xe(v.done);for((!w||!w.ranges)&&gs(s.sel,v.done),N={changes:[oo(s,l)],generation:v.generation},v.done.push(N);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(g),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=b,v.lastOp=v.lastSelOp=h,v.lastOrigin=v.lastSelOrigin=l.origin,y||hr(s,"historyAdded")}function Qc(s,l,g,h){var v=l.charAt(0);return v=="*"||v=="+"&&g.ranges.length==h.ranges.length&&g.somethingSelected()==h.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function kc(s,l,g,h){var v=s.history,b=h&&h.origin;g==v.lastSelOp||b&&v.lastSelOrigin==b&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==b||Qc(s,b,xe(v.done),l))?v.done[v.done.length-1]=l:gs(l,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=b,v.lastSelOp=g,h&&h.clearRedo!==!1&&oa(v.undone)}function gs(s,l){var g=xe(l);g&&g.ranges&&g.equals(s)||l.push(s)}function Du(s,l,g,h){var v=l["spans_"+s.id],b=0;s.iter(Math.max(s.first,g),Math.min(s.first+s.size,h),function(N){N.markedSpans&&((v||(v=l["spans_"+s.id]={}))[b]=N.markedSpans),++b})}function Xc(s){if(!s)return null;for(var l,g=0;g<s.length;++g)s[g].marker.explicitlyCleared?l||(l=s.slice(0,g)):l&&l.push(s[g]);return l?l.length?l:null:s}function Pc(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var h=[],v=0;v<l.text.length;++v)h.push(Xc(g[v]));return h}function Qu(s,l){var g=Pc(s,l),h=Zi(s,l);if(!g)return h;if(!h)return g;for(var v=0;v<g.length;++v){var b=g[v],N=h[v];if(b&&N)e:for(var y=0;y<N.length;++y){for(var w=N[y],G=0;G<b.length;++G)if(b[G].marker==w.marker)continue e;b.push(w)}else N&&(g[v]=N)}return g}function Nn(s,l,g){for(var h=[],v=0;v<s.length;++v){var b=s[v];if(b.ranges){h.push(g?Lr.prototype.deepCopy.call(b):b);continue}var N=b.changes,y=[];h.push({changes:y});for(var w=0;w<N.length;++w){var G=N[w],k=void 0;if(y.push({from:G.from,to:G.to,text:G.text}),l)for(var _ in G)(k=_.match(/^spans_(\d+)$/))&&Cr(l,Number(k[1]))>-1&&(xe(y)[_]=G[_],delete G[_])}}return h}function Ka(s,l,g,h){if(h){var v=s.anchor;if(g){var b=ze(l,v)<0;b!=ze(g,v)<0?(v=l,l=g):b!=ze(l,g)<0&&(l=g)}return new gr(v,l)}else return new gr(g||l,l)}function aa(s,l,g,h,v){v==null&&(v=s.cm&&(s.cm.display.shift||s.extend)),Tt(s,new Lr([Ka(s.sel.primary(),l,g,v)],0),h)}function ku(s,l,g){for(var h=[],v=s.cm&&(s.cm.display.shift||s.extend),b=0;b<s.sel.ranges.length;b++)h[b]=Ka(s.sel.ranges[b],l[b],null,v);var N=Xe(s.cm,h,s.sel.primIndex);Tt(s,N,g)}function el(s,l,g,h){var v=s.sel.ranges.slice(0);v[l]=g,Tt(s,Xe(s.cm,v,s.sel.primIndex),h)}function Xu(s,l,g,h){Tt(s,yi(l,g),h)}function Yc(s,l,g){var h={ranges:l.ranges,update:function(v){this.ranges=[];for(var b=0;b<v.length;b++)this.ranges[b]=new gr($e(s,v[b].anchor),$e(s,v[b].head))},origin:g&&g.origin};return hr(s,"beforeSelectionChange",s,h),s.cm&&hr(s.cm,"beforeSelectionChange",s.cm,h),h.ranges!=l.ranges?Xe(s.cm,h.ranges,h.ranges.length-1):l}function Pu(s,l,g){var h=s.history.done,v=xe(h);v&&v.ranges?(h[h.length-1]=l,Tn(s,l,g)):Tt(s,l,g)}function Tt(s,l,g){Tn(s,l,g),kc(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function Tn(s,l,g){(ar(s,"beforeSelectionChange")||s.cm&&ar(s.cm,"beforeSelectionChange"))&&(l=Yc(s,l,g));var h=g&&g.bias||(ze(l.primary().head,s.sel.primary().head)<0?-1:1);Rn(s,Sn(s,l,h,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&xn(s.cm)}function Rn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,is(s.cm)),ot(s,"cursorActivity",s))}function yn(s){Rn(s,Sn(s,s.sel,null,!1))}function Sn(s,l,g,h){for(var v,b=0;b<l.ranges.length;b++){var N=l.ranges[b],y=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[b],w=la(s,N.anchor,y&&y.anchor,g,h),G=N.head==N.anchor?w:la(s,N.head,y&&y.head,g,h);(v||w!=N.anchor||G!=N.head)&&(v||(v=l.ranges.slice(0,b)),v[b]=new gr(w,G))}return v?Xe(s.cm,v,l.primIndex):l}function Es(s,l,g,h,v){var b=Ae(s,l.line);if(b.markedSpans)for(var N=0;N<b.markedSpans.length;++N){var y=b.markedSpans[N],w=y.marker,G="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,k="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(G?y.from<=l.ch:y.from<l.ch))&&(y.to==null||(k?y.to>=l.ch:y.to>l.ch))){if(v&&(hr(w,"beforeCursorEnter"),w.explicitlyCleared))if(b.markedSpans){--N;continue}else break;if(!w.atomic)continue;if(g){var _=w.find(h<0?1:-1),ie=void 0;if((h<0?k:G)&&(_=Yu(s,_,-h,_&&_.line==l.line?b:null)),_&&_.line==l.line&&(ie=ze(_,g))&&(h<0?ie<0:ie>0))return Es(s,_,l,h,v)}var te=w.find(h<0?-1:1);return(h<0?G:k)&&(te=Yu(s,te,h,te.line==l.line?b:null)),te?Es(s,te,l,h,v):null}}return l}function la(s,l,g,h,v){var b=h||1,N=Es(s,l,g,b,v)||!v&&Es(s,l,g,b,!0)||Es(s,l,g,-b,v)||!v&&Es(s,l,g,-b,!0);return N||(s.cantEdit=!0,pe(s.first,0))}function Yu(s,l,g,h){return g<0&&l.ch==0?l.line>s.first?$e(s,pe(l.line-1)):null:g>0&&l.ch==(h||Ae(s,l.line)).text.length?l.line<s.first+s.size-1?pe(l.line+1,0):null:new pe(l.line,l.ch+g)}function Hu(s){s.setSelection(pe(s.firstLine(),0),pe(s.lastLine()),fe)}function Ju(s,l,g){var h={canceled:!1,from:l.from,to:l.to,text:l.text,origin:l.origin,cancel:function(){return h.canceled=!0}};return g&&(h.update=function(v,b,N,y){v&&(h.from=$e(s,v)),b&&(h.to=$e(s,b)),N&&(h.text=N),y!==void 0&&(h.origin=y)}),hr(s,"beforeChange",s,h),s.cm&&hr(s.cm,"beforeChange",s.cm,h),h.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:h.from,to:h.to,text:h.text,origin:h.origin}}function Ln(s,l,g){if(s.cm){if(!s.cm.curOp)return at(s.cm,Ln)(s,l,g);if(s.cm.state.suppressEdits)return}if(!((ar(s,"beforeChange")||s.cm&&ar(s.cm,"beforeChange"))&&(l=Ju(s,l,!0),!l))){var h=ko&&!g&&Ss(s,l.from,l.to);if(h)for(var v=h.length-1;v>=0;--v)_u(s,{from:h[v].from,to:h[v].to,text:v?[""]:l.text,origin:l.origin});else _u(s,l)}}function _u(s,l){if(!(l.text.length==1&&l.text[0]==""&&ze(l.from,l.to)==0)){var g=Pi(s,l);Mu(s,l,g,s.cm?s.cm.curOp.id:NaN),ao(s,l,g,Zi(s,l));var h=[];Li(s,function(v,b){!b&&Cr(h,v.history)==-1&&(qu(v.history,l),h.push(v.history)),ao(v,l,null,Zi(v,l))})}}function ua(s,l,g){var h=s.cm&&s.cm.state.suppressEdits;if(!(h&&!g)){for(var v=s.history,b,N=s.sel,y=l=="undo"?v.done:v.undone,w=l=="undo"?v.undone:v.done,G=0;G<y.length&&(b=y[G],!(g?b.ranges&&!b.equals(s.sel):!b.ranges));G++);if(G!=y.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(b=y.pop(),b.ranges){if(gs(b,w),g&&!b.equals(s.sel)){Tt(s,b,{clearRedo:!1});return}N=b}else if(h){y.push(b);return}else break;var k=[];gs(N,w),w.push({changes:k,generation:v.generation}),v.generation=b.generation||++v.maxGeneration;for(var _=ar(s,"beforeChange")||s.cm&&ar(s.cm,"beforeChange"),ie=function(ce){var he=b.changes[ce];if(he.origin=l,_&&!Ju(s,he,!1))return y.length=0,{};k.push(oo(s,he));var ve=ce?Pi(s,he):xe(y);ao(s,he,ve,Qu(s,he)),!ce&&s.cm&&s.cm.scrollIntoView({from:he.from,to:Si(he)});var Ce=[];Li(s,function(Ie,Re){!Re&&Cr(Ce,Ie.history)==-1&&(qu(Ie.history,he),Ce.push(Ie.history)),ao(Ie,he,null,Qu(Ie,he))})},te=b.changes.length-1;te>=0;--te){var ae=ie(te);if(ae)return ae.v}}}}function ju(s,l){if(l!=0&&(s.first+=l,s.sel=new Lr(Ft(s.sel.ranges,function(v){return new gr(pe(v.anchor.line+l,v.anchor.ch),pe(v.head.line+l,v.head.ch))}),s.sel.primIndex),s.cm)){Nt(s.cm,s.first,s.first-l,l);for(var g=s.cm.display,h=g.viewFrom;h<g.viewTo;h++)Yt(s.cm,h,"gutter")}}function ao(s,l,g,h){if(s.cm&&!s.cm.curOp)return at(s.cm,ao)(s,l,g,h);if(l.to.line<s.first){ju(s,l.text.length-1-(l.to.line-l.from.line));return}if(!(l.from.line>s.lastLine())){if(l.from.line<s.first){var v=l.text.length-1-(s.first-l.from.line);ju(s,v),l={from:pe(s.first,0),to:pe(l.to.line+v,l.to.ch),text:[xe(l.text)],origin:l.origin}}var b=s.lastLine();l.to.line>b&&(l={from:l.from,to:pe(b,Ae(s,b).text.length),text:[l.text[0]],origin:l.origin}),l.removed=Ct(s,l.from,l.to),g||(g=Pi(s,l)),s.cm?Hc(s.cm,l,h):no(s,l,h),Tn(s,g,fe),s.cantEdit&&la(s,pe(s.firstLine(),0))&&(s.cantEdit=!1)}}function Hc(s,l,g){var h=s.doc,v=s.display,b=l.from,N=l.to,y=!1,w=b.line;s.options.lineWrapping||(w=Je(li(Ae(h,b.line))),h.iter(w,N.line+1,function(te){if(te==v.maxLine)return y=!0,!0})),h.sel.contains(l.from,l.to)>-1&&is(s),no(h,l,g,In(s)),s.options.lineWrapping||(h.iter(w,b.line+l.text.length,function(te){var ae=Ho(te);ae>v.maxLineLength&&(v.maxLine=te,v.maxLineLength=ae,v.maxLineChanged=!0,y=!1)}),y&&(s.curOp.updateMaxLine=!0)),ec(h,b.line),to(s,400);var G=l.text.length-(N.line-b.line)-1;l.full?Nt(s):b.line==N.line&&l.text.length==1&&!hs(s.doc,l)?Yt(s,b.line,"text"):Nt(s,b.line,N.line+1,G);var k=ar(s,"changes"),_=ar(s,"change");if(_||k){var ie={from:b,to:N,text:l.text,removed:l.removed,origin:l.origin};_&&ot(s,"change",s,ie),k&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(ie)}s.display.selForContextMenu=null}function wn(s,l,g,h,v){var b;h||(h=g),ze(h,g)<0&&(b=[h,g],g=b[0],h=b[1]),typeof l=="string"&&(l=s.splitLines(l)),Ln(s,{from:g,to:h,text:l,origin:v})}function zu(s,l,g,h){g<s.line?s.line+=h:l<s.line&&(s.line=l,s.ch=0)}function $u(s,l,g,h){for(var v=0;v<s.length;++v){var b=s[v],N=!0;if(b.ranges){b.copied||(b=s[v]=b.deepCopy(),b.copied=!0);for(var y=0;y<b.ranges.length;y++)zu(b.ranges[y].anchor,l,g,h),zu(b.ranges[y].head,l,g,h);continue}for(var w=0;w<b.changes.length;++w){var G=b.changes[w];if(g<G.from.line)G.from=pe(G.from.line+h,G.from.ch),G.to=pe(G.to.line+h,G.to.ch);else if(l<=G.to.line){N=!1;break}}N||(s.splice(0,v+1),v=0)}}function qu(s,l){var g=l.from.line,h=l.to.line,v=l.text.length-(h-g)-1;$u(s.done,g,h,v),$u(s.undone,g,h,v)}function lo(s,l,g,h){var v=l,b=l;return typeof l=="number"?b=Ae(s,ru(s,l)):v=Je(l),v==null?null:(h(b,v)&&s.cm&&Yt(s.cm,v,g),b)}function uo(s){this.lines=s,this.parent=null;for(var l=0,g=0;g<s.length;++g)s[g].parent=this,l+=s[g].height;this.height=l}uo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,l){for(var g=s,h=s+l;g<h;++g){var v=this.lines[g];this.height-=v.height,sc(v),ot(v,"delete")}this.lines.splice(s,l)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,l,g){this.height+=g,this.lines=this.lines.slice(0,s).concat(l).concat(this.lines.slice(s));for(var h=0;h<l.length;++h)l[h].parent=this},iterN:function(s,l,g){for(var h=s+l;s<h;++s)if(g(this.lines[s]))return!0}};function fo(s){this.children=s;for(var l=0,g=0,h=0;h<s.length;++h){var v=s[h];l+=v.chunkSize(),g+=v.height,v.parent=this}this.size=l,this.height=g,this.parent=null}fo.prototype={chunkSize:function(){return this.size},removeInner:function(s,l){this.size-=l;for(var g=0;g<this.children.length;++g){var h=this.children[g],v=h.chunkSize();if(s<v){var b=Math.min(l,v-s),N=h.height;if(h.removeInner(s,b),this.height-=N-h.height,v==b&&(this.children.splice(g--,1),h.parent=null),(l-=b)==0)break;s=0}else s-=v}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof uo))){var y=[];this.collapse(y),this.children=[new uo(y)],this.children[0].parent=this}},collapse:function(s){for(var l=0;l<this.children.length;++l)this.children[l].collapse(s)},insertInner:function(s,l,g){this.size+=l.length,this.height+=g;for(var h=0;h<this.children.length;++h){var v=this.children[h],b=v.chunkSize();if(s<=b){if(v.insertInner(s,l,g),v.lines&&v.lines.length>50){for(var N=v.lines.length%25+25,y=N;y<v.lines.length;){var w=new uo(v.lines.slice(y,y+=25));v.height-=w.height,this.children.splice(++h,0,w),w.parent=this}v.lines=v.lines.slice(0,N),this.maybeSpill()}break}s-=b}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var l=s.children.splice(s.children.length-5,5),g=new fo(l);if(s.parent){s.size-=g.size,s.height-=g.height;var v=Cr(s.parent.children,s);s.parent.children.splice(v+1,0,g)}else{var h=new fo(s.children);h.parent=s,s.children=[h,g],s=h}g.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,l,g){for(var h=0;h<this.children.length;++h){var v=this.children[h],b=v.chunkSize();if(s<b){var N=Math.min(l,b-s);if(v.iterN(s,N,g))return!0;if((l-=N)==0)break;s=0}else s-=b}}};var co=function(s,l,g){if(g)for(var h in g)g.hasOwnProperty(h)&&(this[h]=g[h]);this.doc=s,this.node=l};co.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,h=Je(g);if(!(h==null||!l)){for(var v=0;v<l.length;++v)l[v]==this&&l.splice(v--,1);l.length||(g.widgets=null);var b=Di(this);Pt(g,Math.max(0,g.height-b)),s&&(Ht(s,function(){Ku(s,g,-b),Yt(s,h,"widget")}),ot(s,"lineWidgetCleared",s,this,h))}},co.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,h=this.line;this.height=null;var v=Di(this)-l;v&&(bi(this.doc,h)||Pt(h,h.height+v),g&&Ht(g,function(){g.curOp.forceUpdate=!0,Ku(g,h,v),ot(g,"lineWidgetChanged",g,s,Je(h))}))},ss(co);function Ku(s,l,g){Mi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Ja(s,g)}function Jc(s,l,g,h){var v=new co(s,g,h),b=s.cm;return b&&v.noHScroll&&(b.display.alignWidgets=!0),lo(s,l,"widget",function(N){var y=N.widgets||(N.widgets=[]);if(v.insertAt==null?y.push(v):y.splice(Math.min(y.length,Math.max(0,v.insertAt)),0,v),v.line=N,b&&!bi(s,N)){var w=Mi(N)<s.scrollTop;Pt(N,N.height+Di(v)),w&&Ja(b,v.height),b.curOp.forceUpdate=!0}return!0}),b&&ot(b,"lineWidgetAdded",b,v,typeof l=="number"?l:Je(l)),v}var ef=0,ms=function(s,l){this.lines=[],this.type=l,this.doc=s,this.id=++ef};ms.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,l=s&&!s.curOp;if(l&&Ms(s),ar(this,"clear")){var g=this.find();g&&ot(this,"clear",g.from,g.to)}for(var h=null,v=null,b=0;b<this.lines.length;++b){var N=this.lines[b],y=Ts(N.markedSpans,this);s&&!this.collapsed?Yt(s,Je(N),"text"):s&&(y.to!=null&&(v=Je(N)),y.from!=null&&(h=Je(N))),N.markedSpans=Ua(N.markedSpans,y),y.from==null&&this.collapsed&&!bi(this.doc,N)&&s&&Pt(N,Xr(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var G=li(this.lines[w]),k=Ho(G);k>s.display.maxLineLength&&(s.display.maxLine=G,s.display.maxLineLength=k,s.display.maxLineChanged=!0)}h!=null&&s&&this.collapsed&&Nt(s,h,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&yn(s.doc)),s&&ot(s,"markerCleared",s,this,h,v),l&&Ds(s),this.parent&&this.parent.clear()}},ms.prototype.find=function(s,l){s==null&&this.type=="bookmark"&&(s=1);for(var g,h,v=0;v<this.lines.length;++v){var b=this.lines[v],N=Ts(b.markedSpans,this);if(N.from!=null&&(g=pe(l?b:Je(b),N.from),s==-1))return g;if(N.to!=null&&(h=pe(l?b:Je(b),N.to),s==1))return h}return g&&{from:g,to:h}},ms.prototype.changed=function(){var s=this,l=this.find(-1,!0),g=this,h=this.doc.cm;!l||!h||Ht(h,function(){var v=l.line,b=Je(l.line),N=bt(h,b);if(N&&(xu(N),h.curOp.selectionChanged=h.curOp.forceUpdate=!0),h.curOp.updateMaxLine=!0,!bi(g.doc,v)&&g.height!=null){var y=g.height;g.height=null;var w=Di(g)-y;w&&Pt(v,v.height+w)}ot(h,"markerChanged",h,s)})},ms.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(!l.maybeHiddenMarkers||Cr(l.maybeHiddenMarkers,this)==-1)&&(l.maybeUnhiddenMarkers||(l.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},ms.prototype.detachLine=function(s){if(this.lines.splice(Cr(this.lines,s),1),!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(l.maybeHiddenMarkers||(l.maybeHiddenMarkers=[])).push(this)}},ss(ms);function Gn(s,l,g,h,v){if(h&&h.shared)return _c(s,l,g,h,v);if(s.cm&&!s.cm.curOp)return at(s.cm,Gn)(s,l,g,h,v);var b=new ms(s,v),N=ze(l,g);if(h&&Rr(h,b,!1),N>0||N==0&&b.clearWhenEmpty!==!1)return b;if(b.replacedWith&&(b.collapsed=!0,b.widgetNode=Er("span",[b.replacedWith],"CodeMirror-widget"),h.handleMouseEvents||b.widgetNode.setAttribute("cm-ignore-events","true"),h.insertLeft&&(b.widgetNode.insertLeft=!0)),b.collapsed){if(as(s,l.line,l,g,b)||l.line!=g.line&&as(s,g.line,l,g,b))throw new Error("Inserting collapsed marker partially overlapping an existing one");zt()}b.addToHistory&&Mu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var y=l.line,w=s.cm,G;if(s.iter(y,g.line+1,function(_){w&&b.collapsed&&!w.options.lineWrapping&&li(_)==w.display.maxLine&&(G=!0),b.collapsed&&y!=l.line&&Pt(_,0),Wi(_,new un(b,y==l.line?l.ch:null,y==g.line?g.ch:null),s.cm&&s.cm.curOp),++y}),b.collapsed&&s.iter(l.line,g.line+1,function(_){bi(s,_)&&Pt(_,0)}),b.clearOnEnter&&Oe(b,"beforeCursorEnter",function(){return b.clear()}),b.readOnly&&(rc(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),b.collapsed&&(b.id=++ef,b.atomic=!0),w){if(G&&(w.curOp.updateMaxLine=!0),b.collapsed)Nt(w,l.line,g.line+1);else if(b.className||b.startStyle||b.endStyle||b.css||b.attributes||b.title)for(var k=l.line;k<=g.line;k++)Yt(w,k,"text");b.atomic&&yn(w.doc),ot(w,"markerAdded",w,b)}return b}var po=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};po.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();ot(this,"clear")}},po.prototype.find=function(s,l){return this.primary.find(s,l)},ss(po);function _c(s,l,g,h,v){h=Rr(h),h.shared=!1;var b=[Gn(s,l,g,h,v)],N=b[0],y=h.widgetNode;return Li(s,function(w){y&&(h.widgetNode=y.cloneNode(!0)),b.push(Gn(w,$e(w,l),$e(w,g),h,v));for(var G=0;G<w.linked.length;++G)if(w.linked[G].isParent)return;N=xe(b)}),new po(b,N)}function rf(s){return s.findMarks(pe(s.first,0),s.clipPos(pe(s.lastLine())),function(l){return l.parent})}function jc(s,l){for(var g=0;g<l.length;g++){var h=l[g],v=h.find(),b=s.clipPos(v.from),N=s.clipPos(v.to);if(ze(b,N)){var y=Gn(s,b,N,h.primary,h.primary.type);h.markers.push(y),y.parent=h}}}function zc(s){for(var l=function(h){var v=s[h],b=[v.primary.doc];Li(v.primary.doc,function(w){return b.push(w)});for(var N=0;N<v.markers.length;N++){var y=v.markers[N];Cr(b,y.doc)==-1&&(y.parent=null,v.markers.splice(N--,1))}},g=0;g<s.length;g++)l(g)}var $c=0,Zt=function(s,l,g,h,v){if(!(this instanceof Zt))return new Zt(s,l,g,h,v);g==null&&(g=0),fo.call(this,[new uo([new dn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var b=pe(g,0);this.sel=yi(b),this.history=new An(null),this.id=++$c,this.modeOption=l,this.lineSep=h,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),no(this,{from:b,to:b,text:s}),Tt(this,yi(b),fe)};Zt.prototype=ts(fo.prototype,{constructor:Zt,iter:function(s,l,g){g?this.iterN(s-this.first,l-s,g):this.iterN(this.first,this.first+this.size,s)},insert:function(s,l){for(var g=0,h=0;h<l.length;++h)g+=l[h].height;this.insertInner(s-this.first,l,g)},remove:function(s,l){this.removeInner(s-this.first,l)},getValue:function(s){var l=Ii(this,this.first,this.first+this.size);return s===!1?l:l.join(s||this.lineSeparator())},setValue:lt(function(s){var l=pe(this.first,0),g=this.first+this.size-1;Ln(this,{from:l,to:pe(g,Ae(this,g).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&qn(this.cm,0,0),Tt(this,yi(l),fe)}),replaceRange:function(s,l,g,h){l=$e(this,l),g=g?$e(this,g):l,wn(this,s,l,g,h)},getRange:function(s,l,g){var h=Ct(this,$e(this,s),$e(this,l));return g===!1?h:g===""?h.join(""):h.join(g||this.lineSeparator())},getLine:function(s){var l=this.getLineHandle(s);return l&&l.text},getLineHandle:function(s){if(ns(this,s))return Ae(this,s)},getLineNumber:function(s){return Je(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=Ae(this,s)),li(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return $e(this,s)},getCursor:function(s){var l=this.sel.primary(),g;return s==null||s=="head"?g=l.head:s=="anchor"?g=l.anchor:s=="end"||s=="to"||s===!1?g=l.to():g=l.from(),g},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:lt(function(s,l,g){Xu(this,$e(this,typeof s=="number"?pe(s,l||0):s),null,g)}),setSelection:lt(function(s,l,g){Xu(this,$e(this,s),$e(this,l||s),g)}),extendSelection:lt(function(s,l,g){aa(this,$e(this,s),l&&$e(this,l),g)}),extendSelections:lt(function(s,l){ku(this,tu(this,s),l)}),extendSelectionsBy:lt(function(s,l){var g=Ft(this.sel.ranges,s);ku(this,tu(this,g),l)}),setSelections:lt(function(s,l,g){if(s.length){for(var h=[],v=0;v<s.length;v++)h[v]=new gr($e(this,s[v].anchor),$e(this,s[v].head||s[v].anchor));l==null&&(l=Math.min(s.length-1,this.sel.primIndex)),Tt(this,Xe(this.cm,h,l),g)}}),addSelection:lt(function(s,l,g){var h=this.sel.ranges.slice(0);h.push(new gr($e(this,s),$e(this,l||s))),Tt(this,Xe(this.cm,h,h.length-1),g)}),getSelection:function(s){for(var l=this.sel.ranges,g,h=0;h<l.length;h++){var v=Ct(this,l[h].from(),l[h].to());g=g?g.concat(v):v}return s===!1?g:g.join(s||this.lineSeparator())},getSelections:function(s){for(var l=[],g=this.sel.ranges,h=0;h<g.length;h++){var v=Ct(this,g[h].from(),g[h].to());s!==!1&&(v=v.join(s||this.lineSeparator())),l[h]=v}return l},replaceSelection:function(s,l,g){for(var h=[],v=0;v<this.sel.ranges.length;v++)h[v]=s;this.replaceSelections(h,l,g||"+input")},replaceSelections:lt(function(s,l,g){for(var h=[],v=this.sel,b=0;b<v.ranges.length;b++){var N=v.ranges[b];h[b]={from:N.from(),to:N.to(),text:this.splitLines(s[b]),origin:g}}for(var y=l&&l!="end"&&Mc(this,h,l),w=h.length-1;w>=0;w--)Ln(this,h[w]);y?Pu(this,y):this.cm&&xn(this.cm)}),undo:lt(function(){ua(this,"undo")}),redo:lt(function(){ua(this,"redo")}),undoSelection:lt(function(){ua(this,"undo",!0)}),redoSelection:lt(function(){ua(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,l=0,g=0,h=0;h<s.done.length;h++)s.done[h].ranges||++l;for(var v=0;v<s.undone.length;v++)s.undone[v].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new An(this.history),Li(this,function(l){return l.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:Nn(this.history.done),undone:Nn(this.history.undone)}},setHistory:function(s){var l=this.history=new An(this.history);l.done=Nn(s.done.slice(0),null,!0),l.undone=Nn(s.undone.slice(0),null,!0)},setGutterMarker:lt(function(s,l,g){return lo(this,s,"gutter",function(h){var v=h.gutterMarkers||(h.gutterMarkers={});return v[l]=g,!g&&sr(v)&&(h.gutterMarkers=null),!0})}),clearGutter:lt(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&lo(l,g,"gutter",function(){return g.gutterMarkers[s]=null,sr(g.gutterMarkers)&&(g.gutterMarkers=null),!0})})}),lineInfo:function(s){var l;if(typeof s=="number"){if(!ns(this,s)||(l=s,s=Ae(this,s),!s))return null}else if(l=Je(s),l==null)return null;return{line:l,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:lt(function(s,l,g){return lo(this,s,l=="gutter"?"gutter":"class",function(h){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!h[v])h[v]=g;else{if(be(g).test(h[v]))return!1;h[v]+=" "+g}return!0})}),removeLineClass:lt(function(s,l,g){return lo(this,s,l=="gutter"?"gutter":"class",function(h){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",b=h[v];if(b)if(g==null)h[v]=null;else{var N=b.match(be(g));if(!N)return!1;var y=N.index+N[0].length;h[v]=b.slice(0,N.index)+(!N.index||y==b.length?"":" ")+b.slice(y)||null}else return!1;return!0})}),addLineWidget:lt(function(s,l,g){return Jc(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return Gn(this,$e(this,s),$e(this,l),g,g&&g.type||"range")},setBookmark:function(s,l){var g={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return s=$e(this,s),Gn(this,s,s,g,"bookmark")},findMarksAt:function(s){s=$e(this,s);var l=[],g=Ae(this,s.line).markedSpans;if(g)for(var h=0;h<g.length;++h){var v=g[h];(v.from==null||v.from<=s.ch)&&(v.to==null||v.to>=s.ch)&&l.push(v.marker.parent||v.marker)}return l},findMarks:function(s,l,g){s=$e(this,s),l=$e(this,l);var h=[],v=s.line;return this.iter(s.line,l.line+1,function(b){var N=b.markedSpans;if(N)for(var y=0;y<N.length;y++){var w=N[y];!(w.to!=null&&v==s.line&&s.ch>=w.to||w.from==null&&v!=s.line||w.from!=null&&v==l.line&&w.from>=l.ch)&&(!g||g(w.marker))&&h.push(w.marker.parent||w.marker)}++v}),h},getAllMarks:function(){var s=[];return this.iter(function(l){var g=l.markedSpans;if(g)for(var h=0;h<g.length;++h)g[h].from!=null&&s.push(g[h].marker)}),s},posFromIndex:function(s){var l,g=this.first,h=this.lineSeparator().length;return this.iter(function(v){var b=v.text.length+h;if(b>s)return l=s,!0;s-=b,++g}),$e(this,pe(g,l))},indexFromPos:function(s){s=$e(this,s);var l=s.ch;if(s.line<this.first||s.ch<0)return 0;var g=this.lineSeparator().length;return this.iter(this.first,s.line,function(h){l+=h.text.length+g}),l},copy:function(s){var l=new Zt(Ii(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,s&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(s){s||(s={});var l=this.first,g=this.first+this.size;s.from!=null&&s.from>l&&(l=s.from),s.to!=null&&s.to<g&&(g=s.to);var h=new Zt(Ii(this,l,g),s.mode||this.modeOption,l,this.lineSep,this.direction);return s.sharedHist&&(h.history=this.history),(this.linked||(this.linked=[])).push({doc:h,sharedHist:s.sharedHist}),h.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],jc(h,rf(this)),h},unlinkDoc:function(s){if(s instanceof wr&&(s=s.doc),this.linked)for(var l=0;l<this.linked.length;++l){var g=this.linked[l];if(g.doc==s){this.linked.splice(l,1),s.unlinkDoc(this),zc(rf(this));break}}if(s.history==this.history){var h=[s.id];Li(s,function(v){return h.push(v.id)},!0),s.history=new An(null),s.history.done=Nn(this.history.done,h),s.history.undone=Nn(this.history.undone,h)}},iterLinkedDocs:function(s){Li(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):nn(s)},lineSeparator:function(){return this.lineSep||`
11
+ `},setDirection:lt(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(l){return l.order=null}),this.cm&&qa(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var tf=0;function qc(s){var l=this;if(sf(l),!(xr(l,s)||Qi(l.display,s))){It(s),F&&(tf=+new Date);var g=ui(l,s,!0),h=s.dataTransfer.files;if(!(!g||l.isReadOnly()))if(h&&h.length&&window.FileReader&&window.File)for(var v=h.length,b=Array(v),N=0,y=function(){++N==v&&at(l,function(){g=$e(l.doc,g);var te={from:g,to:g,text:l.doc.splitLines(b.filter(function(ae){return ae!=null}).join(l.doc.lineSeparator())),origin:"paste"};Ln(l.doc,te),Pu(l.doc,yi($e(l.doc,g),$e(l.doc,Si(te))))})()},w=function(te,ae){if(l.options.allowDropFileTypes&&Cr(l.options.allowDropFileTypes,te.type)==-1){y();return}var ce=new FileReader;ce.onerror=function(){return y()},ce.onload=function(){var he=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){y();return}b[ae]=he,y()},ce.readAsText(te)},G=0;G<h.length;G++)w(h[G],G);else{if(l.state.draggingText&&l.doc.sel.contains(g)>-1){l.state.draggingText(s),setTimeout(function(){return l.display.input.focus()},20);return}try{var k=s.dataTransfer.getData("Text");if(k){var _;if(l.state.draggingText&&!l.state.draggingText.copy&&(_=l.listSelections()),Tn(l.doc,yi(g,g)),_)for(var ie=0;ie<_.length;++ie)wn(l.doc,"",_[ie].anchor,_[ie].head,"drag");l.replaceSelection(k,"around","paste"),l.display.input.focus()}}catch{}}}}function Kc(s,l){if(F&&(!s.state.draggingText||+new Date-tf<100)){Ns(l);return}if(!(xr(s,l)||Qi(s.display,l))&&(l.dataTransfer.setData("Text",s.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!W)){var g=Ee("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(g.width=g.height=1,s.display.wrapper.appendChild(g),g._top=g.offsetTop),l.dataTransfer.setDragImage(g,0,0),z&&g.parentNode.removeChild(g)}}function ep(s,l){var g=ui(s,l);if(g){var h=document.createDocumentFragment();Vs(s,g,h),s.display.dragCursor||(s.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Ke(s.display.dragCursor,h)}}function sf(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function nf(s){if(document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),g=[],h=0;h<l.length;h++){var v=l[h].CodeMirror;v&&g.push(v)}g.length&&g[0].operation(function(){for(var b=0;b<g.length;b++)s(g[b])})}}var of=!1;function rp(){of||(tp(),of=!0)}function tp(){var s;Oe(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,nf(ip)},100))}),Oe(window,"blur",function(){return nf(Cn)})}function ip(s){var l=s.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,s.setSize()}for(var vs={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"},ho=0;ho<10;ho++)vs[ho+48]=vs[ho+96]=String(ho);for(var fa=65;fa<=90;fa++)vs[fa]=String.fromCharCode(fa);for(var go=1;go<=12;go++)vs[go+111]=vs[go+63235]="F"+go;var Yi={};Yi.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"},Yi.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"},Yi.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"},Yi.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"]},Yi.default=$?Yi.macDefault:Yi.pcDefault;function sp(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,h,v,b,N=0;N<l.length-1;N++){var y=l[N];if(/^(cmd|meta|m)$/i.test(y))b=!0;else if(/^a(lt)?$/i.test(y))g=!0;else if(/^(c|ctrl|control)$/i.test(y))h=!0;else if(/^s(hift)?$/i.test(y))v=!0;else throw new Error("Unrecognized modifier name: "+y)}return g&&(s="Alt-"+s),h&&(s="Ctrl-"+s),b&&(s="Cmd-"+s),v&&(s="Shift-"+s),s}function np(s){var l={};for(var g in s)if(s.hasOwnProperty(g)){var h=s[g];if(/^(name|fallthrough|(de|at)tach)$/.test(g))continue;if(h=="..."){delete s[g];continue}for(var v=Ft(g.split(" "),sp),b=0;b<v.length;b++){var N=void 0,y=void 0;b==v.length-1?(y=v.join(" "),N=h):(y=v.slice(0,b+1).join(" "),N="...");var w=l[y];if(!w)l[y]=N;else if(w!=N)throw new Error("Inconsistent bindings for "+y)}delete s[g]}for(var G in l)s[G]=l[G];return s}function Un(s,l,g,h){l=ca(l);var v=l.call?l.call(s,h):l[s];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&g(v))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return Un(s,l.fallthrough,g,h);for(var b=0;b<l.fallthrough.length;b++){var N=Un(s,l.fallthrough[b],g,h);if(N)return N}}}function af(s){var l=typeof s=="string"?s:vs[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function lf(s,l,g){var h=s;return l.altKey&&h!="Alt"&&(s="Alt-"+s),(de?l.metaKey:l.ctrlKey)&&h!="Ctrl"&&(s="Ctrl-"+s),(de?l.ctrlKey:l.metaKey)&&h!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&h!="Shift"&&(s="Shift-"+s),s}function uf(s,l){if(z&&s.keyCode==34&&s.char)return!1;var g=vs[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),lf(g,s,l))}function ca(s){return typeof s=="string"?Yi[s]:s}function Fn(s,l){for(var g=s.doc.sel.ranges,h=[],v=0;v<g.length;v++){for(var b=l(g[v]);h.length&&ze(b.from,xe(h).to)<=0;){var N=h.pop();if(ze(N.from,b.from)<0){b.from=N.from;break}}h.push(b)}Ht(s,function(){for(var y=h.length-1;y>=0;y--)wn(s.doc,"",h[y].from,h[y].to,"+delete");xn(s)})}function rl(s,l,g){var h=nr(s.text,l+g,g);return h<0||h>s.text.length?null:h}function tl(s,l,g){var h=rl(s,l.ch,g);return h==null?null:new pe(l.line,h,g<0?"after":"before")}function il(s,l,g,h,v){if(s){l.doc.direction=="rtl"&&(v=-v);var b=Sr(g,l.doc.direction);if(b){var N=v<0?xe(b):b[0],y=v<0==(N.level==1),w=y?"after":"before",G;if(N.level>0||l.doc.direction=="rtl"){var k=En(l,g);G=v<0?g.text.length-1:0;var _=Ti(l,k,G).top;G=Wr(function(ie){return Ti(l,k,ie).top==_},v<0==(N.level==1)?N.from:N.to-1,G),w=="before"&&(G=rl(g,G,1))}else G=v<0?N.to:N.from;return new pe(h,G,w)}}return new pe(h,v<0?g.text.length:0,v<0?"before":"after")}function op(s,l,g,h){var v=Sr(l,s.doc.direction);if(!v)return tl(l,g,h);g.ch>=l.text.length?(g.ch=l.text.length,g.sticky="before"):g.ch<=0&&(g.ch=0,g.sticky="after");var b=Lt(v,g.ch,g.sticky),N=v[b];if(s.doc.direction=="ltr"&&N.level%2==0&&(h>0?N.to>g.ch:N.from<g.ch))return tl(l,g,h);var y=function(ve,Ce){return rl(l,ve instanceof pe?ve.ch:ve,Ce)},w,G=function(ve){return s.options.lineWrapping?(w=w||En(s,l),Tu(s,l,w,ve)):{begin:0,end:l.text.length}},k=G(g.sticky=="before"?y(g,-1):g.ch);if(s.doc.direction=="rtl"||N.level==1){var _=N.level==1==h<0,ie=y(g,_?1:-1);if(ie!=null&&(_?ie<=N.to&&ie<=k.end:ie>=N.from&&ie>=k.begin)){var te=_?"before":"after";return new pe(g.line,ie,te)}}var ae=function(ve,Ce,Ie){for(var Re=function(Tr,ut){return ut?new pe(g.line,y(Tr,1),"before"):new pe(g.line,Tr,"after")};ve>=0&&ve<v.length;ve+=Ce){var ke=v[ve],We=Ce>0==(ke.level!=1),tr=We?Ie.begin:y(Ie.end,-1);if(ke.from<=tr&&tr<ke.to||(tr=We?ke.from:y(ke.to,-1),Ie.begin<=tr&&tr<Ie.end))return Re(tr,We)}},ce=ae(b+h,h,k);if(ce)return ce;var he=h>0?k.end:y(k.begin,-1);return he!=null&&!(h>0&&he==l.text.length)&&(ce=ae(h>0?0:v.length-1,h,G(he)),ce)?ce:null}var Eo={selectAll:Hu,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),fe)},killLine:function(s){return Fn(s,function(l){if(l.empty()){var g=Ae(s.doc,l.head.line).text.length;return l.head.ch==g&&l.head.line<s.lastLine()?{from:l.head,to:pe(l.head.line+1,0)}:{from:l.head,to:pe(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return Fn(s,function(l){return{from:pe(l.from().line,0),to:$e(s.doc,pe(l.to().line+1,0))}})},delLineLeft:function(s){return Fn(s,function(l){return{from:pe(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,h=s.coordsChar({left:0,top:g},"div");return{from:h,to:l.from()}})},delWrappedLineRight:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,h=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div");return{from:l.from(),to:h}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(pe(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(pe(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return ff(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return cf(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return ap(s,l.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div")},mr)},goLineLeft:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:0,top:g},"div")},mr)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5,h=s.coordsChar({left:0,top:g},"div");return h.ch<s.getLine(h.line).search(/\S/)?cf(s,l.head):h},mr)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var l=[],g=s.listSelections(),h=s.options.tabSize,v=0;v<g.length;v++){var b=g[v].from(),N=dr(s.getLine(b.line),b.ch,h);l.push(ii(h-N%h))}s.replaceSelections(l)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Ht(s,function(){for(var l=s.listSelections(),g=[],h=0;h<l.length;h++)if(l[h].empty()){var v=l[h].head,b=Ae(s.doc,v.line).text;if(b){if(v.ch==b.length&&(v=new pe(v.line,v.ch-1)),v.ch>0)v=new pe(v.line,v.ch+1),s.replaceRange(b.charAt(v.ch-1)+b.charAt(v.ch-2),pe(v.line,v.ch-2),v,"+transpose");else if(v.line>s.doc.first){var N=Ae(s.doc,v.line-1).text;N&&(v=new pe(v.line,1),s.replaceRange(b.charAt(0)+s.doc.lineSeparator()+N.charAt(N.length-1),pe(v.line-1,N.length-1),v,"+transpose"))}}g.push(new gr(v,v))}s.setSelections(g)})},newlineAndIndent:function(s){return Ht(s,function(){for(var l=s.listSelections(),g=l.length-1;g>=0;g--)s.replaceRange(s.doc.lineSeparator(),l[g].anchor,l[g].head,"+input");l=s.listSelections();for(var h=0;h<l.length;h++)s.indentLine(l[h].from().line,null,!0);xn(s)})},openLine:function(s){return s.replaceSelection(`
12
+ `,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function ff(s,l){var g=Ae(s.doc,l),h=li(g);return h!=g&&(l=Je(h)),il(!0,s,h,l,1)}function ap(s,l){var g=Ae(s.doc,l),h=tc(g);return h!=g&&(l=Je(h)),il(!0,s,g,l,-1)}function cf(s,l){var g=ff(s,l.line),h=Ae(s.doc,g.line),v=Sr(h,s.doc.direction);if(!v||v[0].level==0){var b=Math.max(g.ch,h.text.search(/\S/)),N=l.line==g.line&&l.ch<=b&&l.ch;return pe(g.line,N?0:b,g.sticky)}return g}function pa(s,l,g){if(typeof l=="string"&&(l=Eo[l],!l))return!1;s.display.input.ensurePolled();var h=s.display.shift,v=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),g&&(s.display.shift=!1),v=l(s)!=Ge}finally{s.display.shift=h,s.state.suppressEdits=!1}return v}function lp(s,l,g){for(var h=0;h<s.state.keyMaps.length;h++){var v=Un(l,s.state.keyMaps[h],g,s);if(v)return v}return s.options.extraKeys&&Un(l,s.options.extraKeys,g,s)||Un(l,s.options.keyMap,g,s)}var up=new Hr;function mo(s,l,g,h){var v=s.state.keySeq;if(v){if(af(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:up.set(50,function(){s.state.keySeq==v&&(s.state.keySeq=null,s.display.input.reset())}),pf(s,v+" "+l,g,h))return!0}return pf(s,l,g,h)}function pf(s,l,g,h){var v=lp(s,l,h);return v=="multi"&&(s.state.keySeq=l),v=="handled"&&ot(s,"keyHandled",s,l,g),(v=="handled"||v=="multi")&&(It(g),Xa(s)),!!v}function df(s,l){var g=uf(l,!0);return g?l.shiftKey&&!s.state.keySeq?mo(s,"Shift-"+g,l,function(h){return pa(s,h,!0)})||mo(s,g,l,function(h){if(typeof h=="string"?/^go[A-Z]/.test(h):h.motion)return pa(s,h)}):mo(s,g,l,function(h){return pa(s,h)}):!1}function fp(s,l,g){return mo(s,"'"+g+"'",l,function(h){return pa(s,h,!0)})}var sl=null;function hf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&(l.curOp.focus=Or(qe(l)),!xr(l,s))){F&&Z<11&&s.keyCode==27&&(s.returnValue=!1);var g=s.keyCode;l.display.shift=g==16||s.shiftKey;var h=df(l,s);z&&(sl=h?g:null,!h&&g==88&&!Xn&&($?s.metaKey:s.ctrlKey)&&l.replaceSelection("",null,"cut")),e&&!$&&!h&&g==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&cp(l)}}function cp(s){var l=s.display.lineDiv;je(l,"CodeMirror-crosshair");function g(h){(h.keyCode==18||!h.altKey)&&(Ze(l,"CodeMirror-crosshair"),Jr(document,"keyup",g),Jr(document,"mouseover",g))}Oe(document,"keyup",g),Oe(document,"mouseover",g)}function gf(s){s.keyCode==16&&(this.doc.sel.shift=!1),xr(this,s)}function Ef(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&!(Qi(l.display,s)||xr(l,s)||s.ctrlKey&&!s.altKey||$&&s.metaKey)){var g=s.keyCode,h=s.charCode;if(z&&g==sl){sl=null,It(s);return}if(!(z&&(!s.which||s.which<10)&&df(l,s))){var v=String.fromCharCode(h??g);v!="\b"&&(fp(l,s,v)||l.display.input.onKeyPress(s))}}}var pp=400,nl=function(s,l,g){this.time=s,this.pos=l,this.button=g};nl.prototype.compare=function(s,l,g){return this.time+pp>s&&ze(l,this.pos)==0&&g==this.button};var vo,Io;function dp(s,l){var g=+new Date;return Io&&Io.compare(g,s,l)?(vo=Io=null,"triple"):vo&&vo.compare(g,s,l)?(Io=new nl(g,s,l),vo=null,"double"):(vo=new nl(g,s,l),Io=null,"single")}function mf(s){var l=this,g=l.display;if(!(xr(l,s)||g.activeTouch&&g.input.supportsTouch())){if(g.input.ensurePolled(),g.shift=s.shiftKey,Qi(g,s)){M||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!ol(l,s)){var h=ui(l,s),v=tn(s),b=h?dp(h,v):"single";Ir(l).focus(),v==1&&l.state.selectingText&&l.state.selectingText(s),!(h&&hp(l,v,h,b,s))&&(v==1?h?Ep(l,h,b,s):rn(s)==g.scroller&&It(s):v==2?(h&&aa(l.doc,h),setTimeout(function(){return g.input.focus()},20)):v==3&&(Se?l.display.input.onContextMenu(s):Pa(l)))}}}function hp(s,l,g,h,v){var b="Click";return h=="double"?b="Double"+b:h=="triple"&&(b="Triple"+b),b=(l==1?"Left":l==2?"Middle":"Right")+b,mo(s,lf(b,v),v,function(N){if(typeof N=="string"&&(N=Eo[N]),!N)return!1;var y=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y=N(s,g)!=Ge}finally{s.state.suppressEdits=!1}return y})}function gp(s,l,g){var h=s.getOption("configureMouse"),v=h?h(s,l,g):{};if(v.unit==null){var b=q?g.shiftKey&&g.metaKey:g.altKey;v.unit=b?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(v.extend==null||s.doc.extend)&&(v.extend=s.doc.extend||g.shiftKey),v.addNew==null&&(v.addNew=$?g.metaKey:g.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!($?g.altKey:g.ctrlKey)),v}function Ep(s,l,g,h){F?setTimeout(Me(Ru,s),0):s.curOp.focus=Or(qe(s));var v=gp(s,g,h),b=s.doc.sel,N;s.options.dragDrop&&Oo&&!s.isReadOnly()&&g=="single"&&(N=b.contains(l))>-1&&(ze((N=b.ranges[N]).from(),l)<0||l.xRel>0)&&(ze(N.to(),l)>0||l.xRel<0)?mp(s,h,l,v):vp(s,h,l,v)}function mp(s,l,g,h){var v=s.display,b=!1,N=at(s,function(G){M&&(v.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:Pa(s)),Jr(v.wrapper.ownerDocument,"mouseup",N),Jr(v.wrapper.ownerDocument,"mousemove",y),Jr(v.scroller,"dragstart",w),Jr(v.scroller,"drop",N),b||(It(G),h.addNew||aa(s.doc,g,null,null,h.extend),M&&!W||F&&Z==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),y=function(G){b=b||Math.abs(l.clientX-G.clientX)+Math.abs(l.clientY-G.clientY)>=10},w=function(){return b=!0};M&&(v.scroller.draggable=!0),s.state.draggingText=N,N.copy=!h.moveOnDrag,Oe(v.wrapper.ownerDocument,"mouseup",N),Oe(v.wrapper.ownerDocument,"mousemove",y),Oe(v.scroller,"dragstart",w),Oe(v.scroller,"drop",N),s.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function vf(s,l,g){if(g=="char")return new gr(l,l);if(g=="word")return s.findWordAt(l);if(g=="line")return new gr(pe(l.line,0),$e(s.doc,pe(l.line+1,0)));var h=g(s,l);return new gr(h.from,h.to)}function vp(s,l,g,h){F&&Pa(s);var v=s.display,b=s.doc;It(l);var N,y,w=b.sel,G=w.ranges;if(h.addNew&&!h.extend?(y=b.sel.contains(g),y>-1?N=G[y]:N=new gr(g,g)):(N=b.sel.primary(),y=b.sel.primIndex),h.unit=="rectangle")h.addNew||(N=new gr(g,g)),g=ui(s,l,!0,!0),y=-1;else{var k=vf(s,g,h.unit);h.extend?N=Ka(N,k.anchor,k.head,h.extend):N=k}h.addNew?y==-1?(y=G.length,Tt(b,Xe(s,G.concat([N]),y),{scroll:!1,origin:"*mouse"})):G.length>1&&G[y].empty()&&h.unit=="char"&&!h.extend?(Tt(b,Xe(s,G.slice(0,y).concat(G.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=b.sel):el(b,y,N,Ar):(y=0,Tt(b,new Lr([N],0),Ar),w=b.sel);var _=g;function ie(Ie){if(ze(_,Ie)!=0)if(_=Ie,h.unit=="rectangle"){for(var Re=[],ke=s.options.tabSize,We=dr(Ae(b,g.line).text,g.ch,ke),tr=dr(Ae(b,Ie.line).text,Ie.ch,ke),Tr=Math.min(We,tr),ut=Math.max(We,tr),Ur=Math.min(g.line,Ie.line),Jt=Math.min(s.lastLine(),Math.max(g.line,Ie.line));Ur<=Jt;Ur++){var Mt=Ae(b,Ur).text,jr=Ue(Mt,Tr,ke);Tr==ut?Re.push(new gr(pe(Ur,jr),pe(Ur,jr))):Mt.length>jr&&Re.push(new gr(pe(Ur,jr),pe(Ur,Ue(Mt,ut,ke))))}Re.length||Re.push(new gr(g,g)),Tt(b,Xe(s,w.ranges.slice(0,y).concat(Re),y),{origin:"*mouse",scroll:!1}),s.scrollIntoView(Ie)}else{var Dt=N,ht=vf(s,Ie,h.unit),tt=Dt.anchor,zr;ze(ht.anchor,tt)>0?(zr=ht.head,tt=Do(Dt.from(),ht.anchor)):(zr=ht.anchor,tt=Mo(Dt.to(),ht.head));var Zr=w.ranges.slice(0);Zr[y]=Ip(s,new gr($e(b,tt),zr)),Tt(b,Xe(s,Zr,y),Ar)}}var te=v.wrapper.getBoundingClientRect(),ae=0;function ce(Ie){var Re=++ae,ke=ui(s,Ie,!0,h.unit=="rectangle");if(ke)if(ze(ke,_)!=0){s.curOp.focus=Or(qe(s)),ie(ke);var We=qo(v,b);(ke.line>=We.to||ke.line<We.from)&&setTimeout(at(s,function(){ae==Re&&ce(Ie)}),150)}else{var tr=Ie.clientY<te.top?-20:Ie.clientY>te.bottom?20:0;tr&&setTimeout(at(s,function(){ae==Re&&(v.scroller.scrollTop+=tr,ce(Ie))}),50)}}function he(Ie){s.state.selectingText=!1,ae=1/0,Ie&&(It(Ie),v.input.focus()),Jr(v.wrapper.ownerDocument,"mousemove",ve),Jr(v.wrapper.ownerDocument,"mouseup",Ce),b.history.lastSelOrigin=null}var ve=at(s,function(Ie){Ie.buttons===0||!tn(Ie)?he(Ie):ce(Ie)}),Ce=at(s,he);s.state.selectingText=Ce,Oe(v.wrapper.ownerDocument,"mousemove",ve),Oe(v.wrapper.ownerDocument,"mouseup",Ce)}function Ip(s,l){var g=l.anchor,h=l.head,v=Ae(s.doc,g.line);if(ze(g,h)==0&&g.sticky==h.sticky)return l;var b=Sr(v);if(!b)return l;var N=Lt(b,g.ch,g.sticky),y=b[N];if(y.from!=g.ch&&y.to!=g.ch)return l;var w=N+(y.from==g.ch==(y.level!=1)?0:1);if(w==0||w==b.length)return l;var G;if(h.line!=g.line)G=(h.line-g.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var k=Lt(b,h.ch,h.sticky),_=k-N||(h.ch-g.ch)*(y.level==1?-1:1);k==w-1||k==w?G=_<0:G=_>0}var ie=b[w+(G?-1:0)],te=G==(ie.level==1),ae=te?ie.from:ie.to,ce=te?"after":"before";return g.ch==ae&&g.sticky==ce?l:new gr(new pe(g.line,ae,ce),h)}function If(s,l,g,h){var v,b;if(l.touches)v=l.touches[0].clientX,b=l.touches[0].clientY;else try{v=l.clientX,b=l.clientY}catch{return!1}if(v>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;h&&It(l);var N=s.display,y=N.lineDiv.getBoundingClientRect();if(b>y.bottom||!ar(s,g))return vi(l);b-=y.top-N.viewOffset;for(var w=0;w<s.display.gutterSpecs.length;++w){var G=N.gutters.childNodes[w];if(G&&G.getBoundingClientRect().right>=v){var k=Ci(s.doc,b),_=s.display.gutterSpecs[w];return hr(s,g,s,k,_.className,l),vi(l)}}}function ol(s,l){return If(s,l,"gutterClick",!0)}function Cf(s,l){Qi(s.display,l)||Cp(s,l)||xr(s,l,"contextmenu")||Se||s.display.input.onContextMenu(l)}function Cp(s,l){return ar(s,"gutterContextMenu")?If(s,l,"gutterContextMenu",!1):!1}function xf(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Gs(s)}var Bn={toString:function(){return"CodeMirror.Init"}},bf={},da={};function xp(s){var l=s.optionHandlers;function g(h,v,b,N){s.defaults[h]=v,b&&(l[h]=N?function(y,w,G){G!=Bn&&b(y,w,G)}:b)}s.defineOption=g,s.Init=Bn,g("value","",function(h,v){return h.setValue(v)},!0),g("mode",null,function(h,v){h.doc.modeOption=v,fi(h)},!0),g("indentUnit",2,fi,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(h){Qs(h),Gs(h),Nt(h)},!0),g("lineSeparator",null,function(h,v){if(h.doc.lineSep=v,!!v){var b=[],N=h.doc.first;h.doc.iter(function(w){for(var G=0;;){var k=w.text.indexOf(v,G);if(k==-1)break;G=k+v.length,b.push(pe(N,k))}N++});for(var y=b.length-1;y>=0;y--)wn(h.doc,v,b[y],pe(b[y].line,b[y].ch+v.length))}}),g("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(h,v,b){h.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),b!=Bn&&h.refresh()}),g("specialCharPlaceholder",ac,function(h){return h.refresh()},!0),g("electricChars",!0),g("inputStyle",H?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),g("spellcheck",!1,function(h,v){return h.getInputField().spellcheck=v},!0),g("autocorrect",!1,function(h,v){return h.getInputField().autocorrect=v},!0),g("autocapitalize",!1,function(h,v){return h.getInputField().autocapitalize=v},!0),g("rtlMoveVisually",!ee),g("wholeLineUpdateBefore",!0),g("theme","default",function(h){xf(h),so(h)},!0),g("keyMap","default",function(h,v,b){var N=ca(v),y=b!=Bn&&ca(b);y&&y.detach&&y.detach(h,N),N.attach&&N.attach(h,y||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,Ap,!0),g("gutters",[],function(h,v){h.display.gutterSpecs=$a(v,h.options.lineNumbers),so(h)},!0),g("fixedGutter",!0,function(h,v){h.display.gutters.style.left=v?At(h.display)+"px":"0",h.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(h){return bn(h)},!0),g("scrollbarStyle","native",function(h){Uu(h),bn(h),h.display.scrollbars.setScrollTop(h.doc.scrollTop),h.display.scrollbars.setScrollLeft(h.doc.scrollLeft)},!0),g("lineNumbers",!1,function(h,v){h.display.gutterSpecs=$a(h.options.gutters,v),so(h)},!0),g("firstLineNumber",1,so,!0),g("lineNumberFormatter",function(h){return h},so,!0),g("showCursorWhenSelecting",!1,Os,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(h,v){v=="nocursor"&&(Cn(h),h.display.input.blur()),h.display.input.readOnlyChanged(v)}),g("screenReaderLabel",null,function(h,v){v=v===""?null:v,h.display.input.screenReaderLabelChanged(v)}),g("disableInput",!1,function(h,v){v||h.display.input.reset()},!0),g("dragDrop",!0,bp),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,Os,!0),g("singleCursorHeightPerLine",!0,Os,!0),g("workTime",100),g("workDelay",100),g("flattenSpans",!0,Qs,!0),g("addModeClass",!1,Qs,!0),g("pollInterval",100),g("undoDepth",200,function(h,v){return h.doc.history.undoDepth=v}),g("historyEventDelay",1250),g("viewportMargin",10,function(h){return h.refresh()},!0),g("maxHighlightLength",1e4,Qs,!0),g("moveInputWithCursor",!0,function(h,v){v||h.display.input.resetPosition()}),g("tabindex",null,function(h,v){return h.display.input.getField().tabIndex=v||""}),g("autofocus",null),g("direction","ltr",function(h,v){return h.doc.setDirection(v)},!0),g("phrases",null)}function bp(s,l,g){var h=g&&g!=Bn;if(!l!=!h){var v=s.display.dragFunctions,b=l?Oe:Jr;b(s.display.scroller,"dragstart",v.start),b(s.display.scroller,"dragenter",v.enter),b(s.display.scroller,"dragover",v.over),b(s.display.scroller,"dragleave",v.leave),b(s.display.scroller,"drop",v.drop)}}function Ap(s){s.options.lineWrapping?(je(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Ze(s.display.wrapper,"CodeMirror-wrap"),Wa(s)),Bs(s),Nt(s),Gs(s),setTimeout(function(){return bn(s)},100)}function wr(s,l){var g=this;if(!(this instanceof wr))return new wr(s,l);this.options=l=l?Rr(l):{},Rr(bf,l,!1);var h=l.value;typeof h=="string"?h=new Zt(h,l.mode,null,l.lineSeparator,l.direction):l.mode&&(h.modeOption=l.mode),this.doc=h;var v=new wr.inputStyles[l.inputStyle](this),b=this.display=new Wc(s,h,v,l);b.wrapper.CodeMirror=this,xf(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Uu(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 Hr,keySeq:null,specialChars:null},l.autofocus&&!H&&b.input.focus(),F&&Z<11&&setTimeout(function(){return g.display.input.reset(!0)},20),Np(this),rp(),Ms(this),this.curOp.forceUpdate=!0,sa(this,h),l.autofocus&&!H||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&Ya(g)},20):Cn(this);for(var N in da)da.hasOwnProperty(N)&&da[N](this,l[N],Bn);Ou(this),l.finishInit&&l.finishInit(this);for(var y=0;y<al.length;++y)al[y](this);Ds(this),M&&l.lineWrapping&&getComputedStyle(b.lineDiv).textRendering=="optimizelegibility"&&(b.lineDiv.style.textRendering="auto")}wr.defaults=bf,wr.optionHandlers=da;function Np(s){var l=s.display;Oe(l.scroller,"mousedown",at(s,mf)),F&&Z<11?Oe(l.scroller,"dblclick",at(s,function(w){if(!xr(s,w)){var G=ui(s,w);if(!(!G||ol(s,w)||Qi(s.display,w))){It(w);var k=s.findWordAt(G);aa(s.doc,k.anchor,k.head)}}})):Oe(l.scroller,"dblclick",function(w){return xr(s,w)||It(w)}),Oe(l.scroller,"contextmenu",function(w){return Cf(s,w)}),Oe(l.input.getField(),"contextmenu",function(w){l.scroller.contains(w.target)||Cf(s,w)});var g,h={end:0};function v(){l.activeTouch&&(g=setTimeout(function(){return l.activeTouch=null},1e3),h=l.activeTouch,h.end=+new Date)}function b(w){if(w.touches.length!=1)return!1;var G=w.touches[0];return G.radiusX<=1&&G.radiusY<=1}function N(w,G){if(G.left==null)return!0;var k=G.left-w.left,_=G.top-w.top;return k*k+_*_>20*20}Oe(l.scroller,"touchstart",function(w){if(!xr(s,w)&&!b(w)&&!ol(s,w)){l.input.ensurePolled(),clearTimeout(g);var G=+new Date;l.activeTouch={start:G,moved:!1,prev:G-h.end<=300?h:null},w.touches.length==1&&(l.activeTouch.left=w.touches[0].pageX,l.activeTouch.top=w.touches[0].pageY)}}),Oe(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Oe(l.scroller,"touchend",function(w){var G=l.activeTouch;if(G&&!Qi(l,w)&&G.left!=null&&!G.moved&&new Date-G.start<300){var k=s.coordsChar(l.activeTouch,"page"),_;!G.prev||N(G,G.prev)?_=new gr(k,k):!G.prev.prev||N(G,G.prev.prev)?_=s.findWordAt(k):_=new gr(pe(k.line,0),$e(s.doc,pe(k.line+1,0))),s.setSelection(_.anchor,_.head),s.focus(),It(w)}v()}),Oe(l.scroller,"touchcancel",v),Oe(l.scroller,"scroll",function(){l.scroller.clientHeight&&(Kn(s,l.scroller.scrollTop),Ws(s,l.scroller.scrollLeft,!0),hr(s,"scroll",s))}),Oe(l.scroller,"mousewheel",function(w){return ta(s,w)}),Oe(l.scroller,"DOMMouseScroll",function(w){return ta(s,w)}),Oe(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(w){xr(s,w)||Ns(w)},over:function(w){xr(s,w)||(ep(s,w),Ns(w))},start:function(w){return Kc(s,w)},drop:at(s,qc),leave:function(w){xr(s,w)||sf(s)}};var y=l.input.getField();Oe(y,"keyup",function(w){return gf.call(s,w)}),Oe(y,"keydown",at(s,hf)),Oe(y,"keypress",at(s,Ef)),Oe(y,"focus",function(w){return Ya(s,w)}),Oe(y,"blur",function(w){return Cn(s,w)})}var al=[];wr.defineInitHook=function(s){return al.push(s)};function Co(s,l,g,h){var v=s.doc,b;g==null&&(g="add"),g=="smart"&&(v.mode.indent?b=Pn(s,l).state:g="prev");var N=s.options.tabSize,y=Ae(v,l),w=dr(y.text,null,N);y.stateAfter&&(y.stateAfter=null);var G=y.text.match(/^\s*/)[0],k;if(!h&&!/\S/.test(y.text))k=0,g="not";else if(g=="smart"&&(k=v.mode.indent(b,y.text.slice(G.length),y.text),k==Ge||k>150)){if(!h)return;g="prev"}g=="prev"?l>v.first?k=dr(Ae(v,l-1).text,null,N):k=0:g=="add"?k=w+s.options.indentUnit:g=="subtract"?k=w-s.options.indentUnit:typeof g=="number"&&(k=w+g),k=Math.max(0,k);var _="",ie=0;if(s.options.indentWithTabs)for(var te=Math.floor(k/N);te;--te)ie+=N,_+=" ";if(ie<k&&(_+=ii(k-ie)),_!=G)return wn(v,_,pe(l,0),pe(l,G.length),"+input"),y.stateAfter=null,!0;for(var ae=0;ae<v.sel.ranges.length;ae++){var ce=v.sel.ranges[ae];if(ce.head.line==l&&ce.head.ch<G.length){var he=pe(l,G.length);el(v,ae,new gr(he,he));break}}}var ci=null;function ha(s){ci=s}function ll(s,l,g,h,v){var b=s.doc;s.display.shift=!1,h||(h=b.sel);var N=+new Date-200,y=v=="paste"||s.state.pasteIncoming>N,w=nn(l),G=null;if(y&&h.ranges.length>1)if(ci&&ci.text.join(`
13
13
  `)==l){if(h.ranges.length%ci.text.length==0){G=[];for(var k=0;k<ci.text.length;k++)G.push(b.splitLines(ci.text[k]))}}else w.length==h.ranges.length&&s.options.pasteLinesPerSelection&&(G=Ft(w,function(ve){return[ve]}));for(var _=s.curOp.updateInput,ie=h.ranges.length-1;ie>=0;ie--){var te=h.ranges[ie],ae=te.from(),ce=te.to();te.empty()&&(g&&g>0?ae=pe(ae.line,ae.ch-g):s.state.overwrite&&!y?ce=pe(ce.line,Math.min(Ae(b,ce.line).text.length,ce.ch+xe(w).length)):y&&ci&&ci.lineWise&&ci.text.join(`
14
14
  `)==w.join(`
15
15
  `)&&(ae=ce=pe(ae.line,0)));var he={from:ae,to:ce,text:G?G[ie%G.length]:w,origin:v||(y?"paste":s.state.cutIncoming>N?"cut":"+input")};Ln(s.doc,he),ot(s,"inputRead",s,he)}l&&!y&&Nf(s,l),xn(s),s.curOp.updateInput<2&&(s.curOp.updateInput=_),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function Af(s,l){var g=s.clipboardData&&s.clipboardData.getData("Text");if(g)return s.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&Ht(l,function(){return ll(l,g,0,null,"paste")}),!0}function Nf(s,l){if(!(!s.options.electricChars||!s.options.smartIndent))for(var g=s.doc.sel,h=g.ranges.length-1;h>=0;h--){var v=g.ranges[h];if(!(v.head.ch>100||h&&g.ranges[h-1].head.line==v.head.line)){var b=s.getModeAt(v.head),N=!1;if(b.electricChars){for(var y=0;y<b.electricChars.length;y++)if(l.indexOf(b.electricChars.charAt(y))>-1){N=Co(s,v.head.line,"smart");break}}else b.electricInput&&b.electricInput.test(Ae(s.doc,v.head.line).text.slice(0,v.head.ch))&&(N=Co(s,v.head.line,"smart"));N&&ot(s,"electricInput",s,v.head.line)}}}function Tf(s){for(var l=[],g=[],h=0;h<s.doc.sel.ranges.length;h++){var v=s.doc.sel.ranges[h].head.line,b={anchor:pe(v,0),head:pe(v+1,0)};g.push(b),l.push(s.getRange(b.anchor,b.head))}return{text:l,ranges:g}}function ul(s,l,g,h){s.setAttribute("autocorrect",g?"on":"off"),s.setAttribute("autocapitalize",h?"on":"off"),s.setAttribute("spellcheck",!!l)}function Rf(){var s=Ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=Ee("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?s.style.width="1000px":s.setAttribute("wrap","off"),O&&(s.style.border="1px solid black"),l}function Tp(s){var l=s.optionHandlers,g=s.helpers={};s.prototype={constructor:s,focus:function(){Ir(this).focus(),this.display.input.focus()},setOption:function(h,v){var b=this.options,N=b[h];b[h]==v&&h!="mode"||(b[h]=v,l.hasOwnProperty(h)&&at(this,l[h])(this,v,N),hr(this,"optionChange",this,h))},getOption:function(h){return this.options[h]},getDoc:function(){return this.doc},addKeyMap:function(h,v){this.state.keyMaps[v?"push":"unshift"](ca(h))},removeKeyMap:function(h){for(var v=this.state.keyMaps,b=0;b<v.length;++b)if(v[b]==h||v[b].name==h)return v.splice(b,1),!0},addOverlay:wt(function(h,v){var b=h.token?h:s.getMode(this.options,h);if(b.startState)throw new Error("Overlays may not be stateful.");gt(this.state.overlays,{mode:b,modeSpec:h,opaque:v&&v.opaque,priority:v&&v.priority||0},function(N){return N.priority}),this.state.modeGen++,Nt(this)}),removeOverlay:wt(function(h){for(var v=this.state.overlays,b=0;b<v.length;++b){var N=v[b].modeSpec;if(N==h||typeof h=="string"&&N.name==h){v.splice(b,1),this.state.modeGen++,Nt(this);return}}}),indentLine:wt(function(h,v,b){typeof v!="string"&&typeof v!="number"&&(v==null?v=this.options.smartIndent?"smart":"prev":v=v?"add":"subtract"),ns(this.doc,h)&&Co(this,h,v,b)}),indentSelection:wt(function(h){for(var v=this.doc.sel.ranges,b=-1,N=0;N<v.length;N++){var y=v[N];if(y.empty())y.head.line>b&&(Co(this,y.head.line,h,!0),b=y.head.line,N==this.doc.sel.primIndex&&xn(this));else{var w=y.from(),G=y.to(),k=Math.max(b,w.line);b=Math.min(this.lastLine(),G.line-(G.ch?0:1))+1;for(var _=k;_<b;++_)Co(this,_,h);var ie=this.doc.sel.ranges;w.ch==0&&v.length==ie.length&&ie[N].from().ch>0&&el(this.doc,N,new gr(w,ie[N].to()),fe)}}}),getTokenAt:function(h,v){return au(this,h,v)},getLineTokens:function(h,v){return au(this,pe(h),v,!0)},getTokenTypeAt:function(h){h=$e(this.doc,h);var v=su(this,Ae(this.doc,h.line)),b=0,N=(v.length-1)/2,y=h.ch,w;if(y==0)w=v[2];else for(;;){var G=b+N>>1;if((G?v[G*2-1]:0)>=y)N=G;else if(v[G*2+1]<y)b=G+1;else{w=v[G*2+2];break}}var k=w?w.indexOf("overlay "):-1;return k<0?w:k==0?null:w.slice(0,k-1)},getModeAt:function(h){var v=this.doc.mode;return v.innerMode?s.innerMode(v,this.getTokenAt(h).state).mode:v},getHelper:function(h,v){return this.getHelpers(h,v)[0]},getHelpers:function(h,v){var b=[];if(!g.hasOwnProperty(v))return b;var N=g[v],y=this.getModeAt(h);if(typeof y[v]=="string")N[y[v]]&&b.push(N[y[v]]);else if(y[v])for(var w=0;w<y[v].length;w++){var G=N[y[v][w]];G&&b.push(G)}else y.helperType&&N[y.helperType]?b.push(N[y.helperType]):N[y.name]&&b.push(N[y.name]);for(var k=0;k<N._global.length;k++){var _=N._global[k];_.pred(y,this)&&Cr(b,_.val)==-1&&b.push(_.val)}return b},getStateAfter:function(h,v){var b=this.doc;return h=ru(b,h??b.first+b.size-1),Pn(this,h+1,v).state},cursorCoords:function(h,v){var b,N=this.doc.sel.primary();return h==null?b=N.head:typeof h=="object"?b=$e(this.doc,h):b=h?N.from():N.to(),er(this,b,v||"page")},charCoords:function(h,v){return jo(this,$e(this.doc,h),v||"page")},coordsChar:function(h,v){return h=fs(this,h,v||"page"),ka(this,h.left,h.top)},lineAtHeight:function(h,v){return h=fs(this,{top:h,left:0},v||"page").top,Ci(this.doc,h+this.display.viewOffset)},heightAtLine:function(h,v,b){var N=!1,y;if(typeof h=="number"){var w=this.doc.first+this.doc.size-1;h<this.doc.first?h=this.doc.first:h>w&&(h=w,N=!0),y=Ae(this.doc,h)}else y=h;return vn(this,y,{top:0,left:0},v||"page",b||N).top+(N?this.doc.height-Mi(y):0)},defaultTextHeight:function(){return Xr(this.display)},defaultCharWidth:function(){return cs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(h,v,b,N,y){var w=this.display;h=er(this,$e(this.doc,h));var G=h.bottom,k=h.left;if(v.style.position="absolute",v.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(v),w.sizer.appendChild(v),N=="over")G=h.top;else if(N=="above"||N=="near"){var _=Math.max(w.wrapper.clientHeight,this.doc.height),ie=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(N=="above"||h.bottom+v.offsetHeight>_)&&h.top>v.offsetHeight?G=h.top-v.offsetHeight:h.bottom+v.offsetHeight<=_&&(G=h.bottom),k+v.offsetWidth>ie&&(k=ie-v.offsetWidth)}v.style.top=G+"px",v.style.left=v.style.right="",y=="right"?(k=w.sizer.clientWidth-v.offsetWidth,v.style.right="0px"):(y=="left"?k=0:y=="middle"&&(k=(w.sizer.clientWidth-v.offsetWidth)/2),v.style.left=k+"px"),b&&Ac(this,{left:k,top:G,right:k+v.offsetWidth,bottom:G+v.offsetHeight})},triggerOnKeyDown:wt(hf),triggerOnKeyPress:wt(Ef),triggerOnKeyUp:gf,triggerOnMouseDown:wt(mf),execCommand:function(h){if(Eo.hasOwnProperty(h))return Eo[h].call(null,this)},triggerElectric:wt(function(h){Nf(this,h)}),findPosH:function(h,v,b,N){var y=1;v<0&&(y=-1,v=-v);for(var w=$e(this.doc,h),G=0;G<v&&(w=fl(this.doc,w,y,b,N),!w.hitSide);++G);return w},moveH:wt(function(h,v){var b=this;this.extendSelectionsBy(function(N){return b.display.shift||b.doc.extend||N.empty()?fl(b.doc,N.head,h,v,b.options.rtlMoveVisually):h<0?N.from():N.to()},mr)}),deleteH:wt(function(h,v){var b=this.doc.sel,N=this.doc;b.somethingSelected()?N.replaceSelection("",null,"+delete"):Fn(this,function(y){var w=fl(N,y.head,h,v,!1);return h<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(h,v,b,N){var y=1,w=N;v<0&&(y=-1,v=-v);for(var G=$e(this.doc,h),k=0;k<v;++k){var _=er(this,G,"div");if(w==null?w=_.left:_.left=w,G=yf(this,_,y,b),G.hitSide)break}return G},moveV:wt(function(h,v){var b=this,N=this.doc,y=[],w=!this.display.shift&&!N.extend&&N.sel.somethingSelected();if(N.extendSelectionsBy(function(k){if(w)return h<0?k.from():k.to();var _=er(b,k.head,"div");k.goalColumn!=null&&(_.left=k.goalColumn),y.push(_.left);var ie=yf(b,_,h,v);return v=="page"&&k==N.sel.primary()&&Ja(b,jo(b,ie,"div").top-_.top),ie},mr),y.length)for(var G=0;G<N.sel.ranges.length;G++)N.sel.ranges[G].goalColumn=y[G]}),findWordAt:function(h){var v=this.doc,b=Ae(v,h.line).text,N=h.ch,y=h.ch;if(b){var w=this.getHelper(h,"wordChars");(h.sticky=="before"||y==b.length)&&N?--N:++y;for(var G=b.charAt(N),k=Le(G,w)?function(_){return Le(_,w)}:/\s/.test(G)?function(_){return/\s/.test(_)}:function(_){return!/\s/.test(_)&&!Le(_)};N>0&&k(b.charAt(N-1));)--N;for(;y<b.length&&k(b.charAt(y));)++y}return new gr(pe(h.line,N),pe(h.line,y))},toggleOverwrite:function(h){h!=null&&h==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):Ze(this.display.cursorDiv,"CodeMirror-overwrite"),hr(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Or(qe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:wt(function(h,v){qn(this,h,v)}),getScrollInfo:function(){var h=this.display.scroller;return{left:h.scrollLeft,top:h.scrollTop,height:h.scrollHeight-Ni(this)-this.display.barHeight,width:h.scrollWidth-Ni(this)-this.display.barWidth,clientHeight:Ma(this),clientWidth:ws(this)}},scrollIntoView:wt(function(h,v){h==null?(h={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof h=="number"?h={from:pe(h,0),to:null}:h.from==null&&(h={from:h,to:null}),h.to||(h.to=h.from),h.margin=v||0,h.from.line!=null?Nc(this,h):Su(this,h.from,h.to,h.margin)}),setSize:wt(function(h,v){var b=this,N=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};h!=null&&(this.display.wrapper.style.width=N(h)),v!=null&&(this.display.wrapper.style.height=N(v)),this.options.lineWrapping&&_o(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(w){if(w.widgets){for(var G=0;G<w.widgets.length;G++)if(w.widgets[G].noHScroll){Yt(b,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,hr(this,"refresh",this)}),operation:function(h){return Ht(this,h)},startOperation:function(){return Ms(this)},endOperation:function(){return Ds(this)},refresh:wt(function(){var h=this.display.cachedTextHeight;Nt(this),this.curOp.forceUpdate=!0,Gs(this),qn(this,this.doc.scrollLeft,this.doc.scrollTop),io(this.display),(h==null||Math.abs(h-Xr(this.display))>.5||this.options.lineWrapping)&&Bs(this),hr(this,"refresh",this)}),swapDoc:wt(function(h){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,h),Gs(this),this.display.input.reset(),qn(this,h.scrollLeft,h.scrollTop),this.curOp.forceScroll=!0,ot(this,"swapDoc",this,v),v}),phrase:function(h){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,h)?v[h]:h},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}},ss(s),s.registerHelper=function(h,v,b){g.hasOwnProperty(h)||(g[h]=s[h]={_global:[]}),g[h][v]=b},s.registerGlobalHelper=function(h,v,b,N){s.registerHelper(h,v,N),g[h]._global.push({pred:b,val:N})}}function fl(s,l,g,h,v){var b=l,N=g,y=Ae(s,l.line),w=v&&s.direction=="rtl"?-g:g;function G(){var Ce=l.line+w;return Ce<s.first||Ce>=s.first+s.size?!1:(l=new pe(Ce,l.ch,l.sticky),y=Ae(s,Ce))}function k(Ce){var Ie;if(h=="codepoint"){var Re=y.text.charCodeAt(l.ch+(g>0?0:-1));if(isNaN(Re))Ie=null;else{var ke=g>0?Re>=55296&&Re<56320:Re>=56320&&Re<57343;Ie=new pe(l.line,Math.max(0,Math.min(y.text.length,l.ch+g*(ke?2:1))),-g)}}else v?Ie=op(s.cm,y,l,g):Ie=tl(y,l,g);if(Ie==null)if(!Ce&&G())l=il(v,s.cm,y,l.line,w);else return!1;else l=Ie;return!0}if(h=="char"||h=="codepoint")k();else if(h=="column")k(!0);else if(h=="word"||h=="group")for(var _=null,ie=h=="group",te=s.cm&&s.cm.getHelper(l,"wordChars"),ae=!0;!(g<0&&!k(!ae));ae=!1){var ce=y.text.charAt(l.ch)||`
16
16
  `,he=Le(ce,te)?"w":ie&&ce==`
17
17
  `?"n":!ie||/\s/.test(ce)?null:"p";if(ie&&!ae&&!he&&(he="s"),_&&_!=he){g<0&&(g=1,k(),l.sticky="after");break}if(he&&(_=he),g>0&&!k(!ae))break}var ve=la(s,l,b,N,!0);return La(b,ve)&&(ve.hitSide=!0),ve}function yf(s,l,g,h){var v=s.doc,b=l.left,N;if(h=="page"){var y=Math.min(s.display.wrapper.clientHeight,Ir(s).innerHeight||v(s).documentElement.clientHeight),w=Math.max(y-.5*Xr(s.display),3);N=(g>0?l.bottom:l.top)+g*w}else h=="line"&&(N=g>0?l.bottom+3:l.top-3);for(var G;G=ka(s,b,N),!!G.outside;){if(g<0?N<=0:N>=v.height){G.hitSide=!0;break}N+=g*5}return G}var br=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Hr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};br.prototype.init=function(s){var l=this,g=this,h=g.cm,v=g.div=s.lineDiv;v.contentEditable=!0,ul(v,h.options.spellcheck,h.options.autocorrect,h.options.autocapitalize);function b(y){for(var w=y.target;w;w=w.parentNode){if(w==v)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}Oe(v,"paste",function(y){!b(y)||xr(h,y)||Af(y,h)||Z<=11&&setTimeout(at(h,function(){return l.updateFromDOM()}),20)}),Oe(v,"compositionstart",function(y){l.composing={data:y.data,done:!1}}),Oe(v,"compositionupdate",function(y){l.composing||(l.composing={data:y.data,done:!1})}),Oe(v,"compositionend",function(y){l.composing&&(y.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),Oe(v,"touchstart",function(){return g.forceCompositionEnd()}),Oe(v,"input",function(){l.composing||l.readFromDOMSoon()});function N(y){if(!(!b(y)||xr(h,y))){if(h.somethingSelected())ha({lineWise:!1,text:h.getSelections()}),y.type=="cut"&&h.replaceSelection("",null,"cut");else if(h.options.lineWiseCopyCut){var w=Tf(h);ha({lineWise:!0,text:w.text}),y.type=="cut"&&h.operation(function(){h.setSelections(w.ranges,0,fe),h.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var G=ci.text.join(`
18
18
  `);if(y.clipboardData.setData("Text",G),y.clipboardData.getData("Text")==G){y.preventDefault();return}}var k=Rf(),_=k.firstChild;ul(_),h.display.lineSpace.insertBefore(k,h.display.lineSpace.firstChild),_.value=ci.text.join(`
19
- `);var ie=Or(Pe(v));rt(_),setTimeout(function(){h.display.lineSpace.removeChild(k),ie.focus(),ie==v&&g.showPrimarySelection()},50)}}Oe(v,"copy",N),Oe(v,"cut",N)},br.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},br.prototype.prepareSelection=function(){var s=ds(this.cm,!1);return s.focus=Or(Pe(this.div))==this.div,s},br.prototype.showSelection=function(s,l){!s||!this.cm.display.view.length||((s.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(s))},br.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},br.prototype.showPrimarySelection=function(){var s=this.getSelection(),l=this.cm,g=l.doc.sel.primary(),h=g.from(),v=g.to();if(l.display.viewTo==l.display.viewFrom||h.line>=l.display.viewTo||v.line<l.display.viewFrom){s.removeAllRanges();return}var b=ga(l,s.anchorNode,s.anchorOffset),N=ga(l,s.focusNode,s.focusOffset);if(!(b&&!b.bad&&N&&!N.bad&&ze(Do(b,N),h)==0&&ze(Mo(b,N),v)==0)){var y=l.display.view,w=h.line>=l.display.viewFrom&&Sf(l,h)||{node:y[0].measure.map[2],offset:0},G=v.line<l.display.viewTo&&Sf(l,v);if(!G){var k=y[y.length-1].measure,_=k.maps?k.maps[k.maps.length-1]:k.map;G={node:_[_.length-1],offset:_[_.length-2]-_[_.length-3]}}if(!w||!G){s.removeAllRanges();return}var ie=s.rangeCount&&s.getRangeAt(0),te;try{te=ur(w.node,w.offset,G.offset,G.node)}catch{}te&&(!e&&l.state.focused?(s.collapse(w.node,w.offset),te.collapsed||(s.removeAllRanges(),s.addRange(te))):(s.removeAllRanges(),s.addRange(te)),ie&&s.anchorNode==null?s.addRange(ie):e&&this.startGracePeriod()),this.rememberSelection()}},br.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},br.prototype.showMultipleSelections=function(s){Ke(this.cm.display.cursorDiv,s.cursors),Ke(this.cm.display.selectionDiv,s.selection)},br.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},br.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var l=s.getRangeAt(0).commonAncestorContainer;return or(this.div,l)},br.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Or(Pe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},br.prototype.blur=function(){this.div.blur()},br.prototype.getField=function(){return this.div},br.prototype.supportsTouch=function(){return!0},br.prototype.receivedFocus=function(){var s=this,l=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):Ht(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function g(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,g))}this.polling.set(this.cm.options.pollInterval,g)},br.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},br.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),l=this.cm;if(V&&P&&this.cm.display.gutterSpecs.length&&Rp(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ga(l,s.anchorNode,s.anchorOffset),h=ga(l,s.focusNode,s.focusOffset);g&&h&&Ht(l,function(){Tt(l.doc,yi(g,h),fe),(g.bad||h.bad)&&(l.curOp.selectionChanged=!0)})}}},br.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,l=s.display,g=s.doc.sel.primary(),h=g.from(),v=g.to();if(h.ch==0&&h.line>s.firstLine()&&(h=pe(h.line-1,Ae(s.doc,h.line-1).length)),v.ch==Ae(s.doc,v.line).text.length&&v.line<s.lastLine()&&(v=pe(v.line+1,0)),h.line<l.viewFrom||v.line>l.viewTo-1)return!1;var b,N,y;h.line==l.viewFrom||(b=ki(s,h.line))==0?(N=Je(l.view[0].line),y=l.view[0].node):(N=Je(l.view[b].line),y=l.view[b-1].node.nextSibling);var w=ki(s,v.line),G,k;if(w==l.view.length-1?(G=l.viewTo-1,k=l.lineDiv.lastChild):(G=Je(l.view[w+1].line)-1,k=l.view[w+1].node.previousSibling),!y)return!1;for(var _=s.doc.splitLines(yp(s,y,k,N,G)),ie=Ct(s.doc,pe(N,0),pe(G,Ae(s.doc,G).text.length));_.length>1&&ie.length>1;)if(xe(_)==xe(ie))_.pop(),ie.pop(),G--;else if(_[0]==ie[0])_.shift(),ie.shift(),N++;else break;for(var te=0,ae=0,ce=_[0],he=ie[0],ve=Math.min(ce.length,he.length);te<ve&&ce.charCodeAt(te)==he.charCodeAt(te);)++te;for(var Ce=xe(_),Ie=xe(ie),Re=Math.min(Ce.length-(_.length==1?te:0),Ie.length-(ie.length==1?te:0));ae<Re&&Ce.charCodeAt(Ce.length-ae-1)==Ie.charCodeAt(Ie.length-ae-1);)++ae;if(_.length==1&&ie.length==1&&N==h.line)for(;te&&te>h.ch&&Ce.charCodeAt(Ce.length-ae-1)==Ie.charCodeAt(Ie.length-ae-1);)te--,ae++;_[_.length-1]=Ce.slice(0,Ce.length-ae).replace(/^\u200b+/,""),_[0]=_[0].slice(te).replace(/\u200b+$/,"");var ke=pe(N,te),We=pe(G,ie.length?xe(ie).length-ae:0);if(_.length>1||_[0]||ze(ke,We))return wn(s.doc,_,ke,We,"+input"),!0},br.prototype.ensurePolled=function(){this.forceCompositionEnd()},br.prototype.reset=function(){this.forceCompositionEnd()},br.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},br.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},br.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Ht(this.cm,function(){return Nt(s.cm)})},br.prototype.setUneditable=function(s){s.contentEditable="false"},br.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||at(this.cm,ll)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},br.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},br.prototype.onContextMenu=function(){},br.prototype.resetPosition=function(){},br.prototype.needsContentAttribute=!0;function Sf(s,l){var g=bt(s,l.line);if(!g||g.hidden)return null;var h=Ae(s.doc,l.line),v=Jo(g,h,l.line),b=Sr(h,s.doc.direction),N="left";if(b){var y=Lt(b,l.ch);N=y%2?"right":"left"}var w=Cu(v.map,l.ch,N);return w.offset=w.collapse=="right"?w.end:w.start,w}function Rp(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function On(s,l){return l&&(s.bad=!0),s}function yp(s,l,g,h,v){var b="",N=!1,y=s.doc.lineSeparator(),w=!1;function G(te){return function(ae){return ae.id==te}}function k(){N&&(b+=y,w&&(b+=y),N=w=!1)}function _(te){te&&(k(),b+=te)}function ie(te){if(te.nodeType==1){var ae=te.getAttribute("cm-text");if(ae){_(ae);return}var ce=te.getAttribute("cm-marker"),he;if(ce){var ve=s.findMarks(pe(h,0),pe(v+1,0),G(+ce));ve.length&&(he=ve[0].find(0))&&_(Ct(s.doc,he.from,he.to).join(y));return}if(te.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;Ce&&k();for(var Ie=0;Ie<te.childNodes.length;Ie++)ie(te.childNodes[Ie]);/^(pre|p)$/i.test(te.nodeName)&&(w=!0),Ce&&(N=!0)}else te.nodeType==3&&_(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ie(l),l!=g;)l=l.nextSibling,w=!1;return b}function ga(s,l,g){var h;if(l==s.display.lineDiv){if(h=s.display.lineDiv.childNodes[g],!h)return On(s.clipPos(pe(s.display.viewTo-1)),!0);l=null,g=0}else for(h=l;;h=h.parentNode){if(!h||h==s.display.lineDiv)return null;if(h.parentNode&&h.parentNode==s.display.lineDiv)break}for(var v=0;v<s.display.view.length;v++){var b=s.display.view[v];if(b.node==h)return Sp(b,l,g)}}function Sp(s,l,g){var h=s.text.firstChild,v=!1;if(!l||!or(h,l))return On(pe(Je(s.line),0),!0);if(l==h&&(v=!0,l=h.childNodes[g],g=0,!l)){var b=s.rest?xe(s.rest):s.line;return On(pe(Je(b),b.text.length),v)}var N=l.nodeType==3?l:null,y=l;for(!N&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(N=l.firstChild,g&&(g=N.nodeValue.length));y.parentNode!=h;)y=y.parentNode;var w=s.measure,G=w.maps;function k(he,ve,Ce){for(var Ie=-1;Ie<(G?G.length:0);Ie++)for(var Re=Ie<0?w.map:G[Ie],ke=0;ke<Re.length;ke+=3){var We=Re[ke+2];if(We==he||We==ve){var tr=Je(Ie<0?s.line:s.rest[Ie]),Tr=Re[ke]+Ce;return(Ce<0||We!=he)&&(Tr=Re[ke+(Ce?1:0)]),pe(tr,Tr)}}}var _=k(N,y,g);if(_)return On(_,v);for(var ie=y.nextSibling,te=N?N.nodeValue.length-g:0;ie;ie=ie.nextSibling){if(_=k(ie,ie.firstChild,0),_)return On(pe(_.line,_.ch-te),v);te+=ie.textContent.length}for(var ae=y.previousSibling,ce=g;ae;ae=ae.previousSibling){if(_=k(ae,ae.firstChild,-1),_)return On(pe(_.line,_.ch+ce),v);ce+=ae.textContent.length}}var Yr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Hr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Yr.prototype.init=function(s){var l=this,g=this,h=this.cm;this.createField(s);var v=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),O&&(v.style.width="0px"),Oe(v,"input",function(){F&&Z>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Oe(v,"paste",function(N){xr(h,N)||Af(N,h)||(h.state.pasteIncoming=+new Date,g.fastPoll())});function b(N){if(!xr(h,N)){if(h.somethingSelected())ha({lineWise:!1,text:h.getSelections()});else if(h.options.lineWiseCopyCut){var y=Tf(h);ha({lineWise:!0,text:y.text}),N.type=="cut"?h.setSelections(y.ranges,null,fe):(g.prevInput="",v.value=y.text.join(`
20
- `),rt(v))}else return;N.type=="cut"&&(h.state.cutIncoming=+new Date)}}Oe(v,"cut",b),Oe(v,"copy",b),Oe(s.scroller,"paste",function(N){if(!(Qi(s,N)||xr(h,N))){if(!v.dispatchEvent){h.state.pasteIncoming=+new Date,g.focus();return}var y=new Event("paste");y.clipboardData=N.clipboardData,v.dispatchEvent(y)}}),Oe(s.lineSpace,"selectstart",function(N){Qi(s,N)||It(N)}),Oe(v,"compositionstart",function(){var N=h.getCursor("from");g.composing&&g.composing.range.clear(),g.composing={start:N,range:h.markText(N,h.getCursor("to"),{className:"CodeMirror-composing"})}}),Oe(v,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Yr.prototype.createField=function(s){this.wrapper=Rf(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;ul(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Yr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Yr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,h=ds(s);if(s.options.moveInputWithCursor){var v=er(s,g.sel.primary().head,"div"),b=l.wrapper.getBoundingClientRect(),N=l.lineDiv.getBoundingClientRect();h.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,v.top+N.top-b.top)),h.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,v.left+N.left-b.left))}return h},Yr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Ke(g.cursorDiv,s.cursors),Ke(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Yr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing&&s)){var l=this.cm;if(this.resetting=!0,l.somethingSelected()){this.prevInput="";var g=l.getSelection();this.textarea.value=g,l.state.focused&&rt(this.textarea),F&&Z>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",F&&Z>=9&&(this.hasSelection=null));this.resetting=!1}},Yr.prototype.getField=function(){return this.textarea},Yr.prototype.supportsTouch=function(){return!1},Yr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!H||Or(Pe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Yr.prototype.blur=function(){this.textarea.blur()},Yr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yr.prototype.receivedFocus=function(){this.slowPoll()},Yr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Yr.prototype.fastPoll=function(){var s=!1,l=this;l.pollingFast=!0;function g(){var h=l.poll();!h&&!s?(s=!0,l.polling.set(60,g)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,g)},Yr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,h=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Vo(g)&&!h&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var v=g.value;if(v==h&&!l.somethingSelected())return!1;if(F&&Z>=9&&this.hasSelection===v||q&&/[\uf700-\uf7ff]/.test(v))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var b=v.charCodeAt(0);if(b==8203&&!h&&(h="\u200B"),b==8666)return this.reset(),this.cm.execCommand("undo")}for(var N=0,y=Math.min(h.length,v.length);N<y&&h.charCodeAt(N)==v.charCodeAt(N);)++N;return Ht(l,function(){ll(l,v.slice(N),h.length-N,null,s.composing?"*compose":null),v.length>1e3||v.indexOf(`
19
+ `);var ie=Or(Pe(v));rt(_),setTimeout(function(){h.display.lineSpace.removeChild(k),ie.focus(),ie==v&&g.showPrimarySelection()},50)}}Oe(v,"copy",N),Oe(v,"cut",N)},br.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},br.prototype.prepareSelection=function(){var s=ds(this.cm,!1);return s.focus=Or(Pe(this.div))==this.div,s},br.prototype.showSelection=function(s,l){!s||!this.cm.display.view.length||((s.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(s))},br.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},br.prototype.showPrimarySelection=function(){var s=this.getSelection(),l=this.cm,g=l.doc.sel.primary(),h=g.from(),v=g.to();if(l.display.viewTo==l.display.viewFrom||h.line>=l.display.viewTo||v.line<l.display.viewFrom){s.removeAllRanges();return}var b=ga(l,s.anchorNode,s.anchorOffset),N=ga(l,s.focusNode,s.focusOffset);if(!(b&&!b.bad&&N&&!N.bad&&ze(Do(b,N),h)==0&&ze(Mo(b,N),v)==0)){var y=l.display.view,w=h.line>=l.display.viewFrom&&Sf(l,h)||{node:y[0].measure.map[2],offset:0},G=v.line<l.display.viewTo&&Sf(l,v);if(!G){var k=y[y.length-1].measure,_=k.maps?k.maps[k.maps.length-1]:k.map;G={node:_[_.length-1],offset:_[_.length-2]-_[_.length-3]}}if(!w||!G){s.removeAllRanges();return}var ie=s.rangeCount&&s.getRangeAt(0),te;try{te=ur(w.node,w.offset,G.offset,G.node)}catch{}te&&(!e&&l.state.focused?(s.collapse(w.node,w.offset),te.collapsed||(s.removeAllRanges(),s.addRange(te))):(s.removeAllRanges(),s.addRange(te)),ie&&s.anchorNode==null?s.addRange(ie):e&&this.startGracePeriod()),this.rememberSelection()}},br.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},br.prototype.showMultipleSelections=function(s){Ke(this.cm.display.cursorDiv,s.cursors),Ke(this.cm.display.selectionDiv,s.selection)},br.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},br.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var l=s.getRangeAt(0).commonAncestorContainer;return or(this.div,l)},br.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Or(Pe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},br.prototype.blur=function(){this.div.blur()},br.prototype.getField=function(){return this.div},br.prototype.supportsTouch=function(){return!0},br.prototype.receivedFocus=function(){var s=this,l=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):Ht(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function g(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,g))}this.polling.set(this.cm.options.pollInterval,g)},br.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},br.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),l=this.cm;if(V&&X&&this.cm.display.gutterSpecs.length&&Rp(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ga(l,s.anchorNode,s.anchorOffset),h=ga(l,s.focusNode,s.focusOffset);g&&h&&Ht(l,function(){Tt(l.doc,yi(g,h),fe),(g.bad||h.bad)&&(l.curOp.selectionChanged=!0)})}}},br.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,l=s.display,g=s.doc.sel.primary(),h=g.from(),v=g.to();if(h.ch==0&&h.line>s.firstLine()&&(h=pe(h.line-1,Ae(s.doc,h.line-1).length)),v.ch==Ae(s.doc,v.line).text.length&&v.line<s.lastLine()&&(v=pe(v.line+1,0)),h.line<l.viewFrom||v.line>l.viewTo-1)return!1;var b,N,y;h.line==l.viewFrom||(b=ki(s,h.line))==0?(N=Je(l.view[0].line),y=l.view[0].node):(N=Je(l.view[b].line),y=l.view[b-1].node.nextSibling);var w=ki(s,v.line),G,k;if(w==l.view.length-1?(G=l.viewTo-1,k=l.lineDiv.lastChild):(G=Je(l.view[w+1].line)-1,k=l.view[w+1].node.previousSibling),!y)return!1;for(var _=s.doc.splitLines(yp(s,y,k,N,G)),ie=Ct(s.doc,pe(N,0),pe(G,Ae(s.doc,G).text.length));_.length>1&&ie.length>1;)if(xe(_)==xe(ie))_.pop(),ie.pop(),G--;else if(_[0]==ie[0])_.shift(),ie.shift(),N++;else break;for(var te=0,ae=0,ce=_[0],he=ie[0],ve=Math.min(ce.length,he.length);te<ve&&ce.charCodeAt(te)==he.charCodeAt(te);)++te;for(var Ce=xe(_),Ie=xe(ie),Re=Math.min(Ce.length-(_.length==1?te:0),Ie.length-(ie.length==1?te:0));ae<Re&&Ce.charCodeAt(Ce.length-ae-1)==Ie.charCodeAt(Ie.length-ae-1);)++ae;if(_.length==1&&ie.length==1&&N==h.line)for(;te&&te>h.ch&&Ce.charCodeAt(Ce.length-ae-1)==Ie.charCodeAt(Ie.length-ae-1);)te--,ae++;_[_.length-1]=Ce.slice(0,Ce.length-ae).replace(/^\u200b+/,""),_[0]=_[0].slice(te).replace(/\u200b+$/,"");var ke=pe(N,te),We=pe(G,ie.length?xe(ie).length-ae:0);if(_.length>1||_[0]||ze(ke,We))return wn(s.doc,_,ke,We,"+input"),!0},br.prototype.ensurePolled=function(){this.forceCompositionEnd()},br.prototype.reset=function(){this.forceCompositionEnd()},br.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},br.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},br.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Ht(this.cm,function(){return Nt(s.cm)})},br.prototype.setUneditable=function(s){s.contentEditable="false"},br.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||at(this.cm,ll)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},br.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},br.prototype.onContextMenu=function(){},br.prototype.resetPosition=function(){},br.prototype.needsContentAttribute=!0;function Sf(s,l){var g=bt(s,l.line);if(!g||g.hidden)return null;var h=Ae(s.doc,l.line),v=Jo(g,h,l.line),b=Sr(h,s.doc.direction),N="left";if(b){var y=Lt(b,l.ch);N=y%2?"right":"left"}var w=Cu(v.map,l.ch,N);return w.offset=w.collapse=="right"?w.end:w.start,w}function Rp(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function On(s,l){return l&&(s.bad=!0),s}function yp(s,l,g,h,v){var b="",N=!1,y=s.doc.lineSeparator(),w=!1;function G(te){return function(ae){return ae.id==te}}function k(){N&&(b+=y,w&&(b+=y),N=w=!1)}function _(te){te&&(k(),b+=te)}function ie(te){if(te.nodeType==1){var ae=te.getAttribute("cm-text");if(ae){_(ae);return}var ce=te.getAttribute("cm-marker"),he;if(ce){var ve=s.findMarks(pe(h,0),pe(v+1,0),G(+ce));ve.length&&(he=ve[0].find(0))&&_(Ct(s.doc,he.from,he.to).join(y));return}if(te.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;Ce&&k();for(var Ie=0;Ie<te.childNodes.length;Ie++)ie(te.childNodes[Ie]);/^(pre|p)$/i.test(te.nodeName)&&(w=!0),Ce&&(N=!0)}else te.nodeType==3&&_(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ie(l),l!=g;)l=l.nextSibling,w=!1;return b}function ga(s,l,g){var h;if(l==s.display.lineDiv){if(h=s.display.lineDiv.childNodes[g],!h)return On(s.clipPos(pe(s.display.viewTo-1)),!0);l=null,g=0}else for(h=l;;h=h.parentNode){if(!h||h==s.display.lineDiv)return null;if(h.parentNode&&h.parentNode==s.display.lineDiv)break}for(var v=0;v<s.display.view.length;v++){var b=s.display.view[v];if(b.node==h)return Sp(b,l,g)}}function Sp(s,l,g){var h=s.text.firstChild,v=!1;if(!l||!or(h,l))return On(pe(Je(s.line),0),!0);if(l==h&&(v=!0,l=h.childNodes[g],g=0,!l)){var b=s.rest?xe(s.rest):s.line;return On(pe(Je(b),b.text.length),v)}var N=l.nodeType==3?l:null,y=l;for(!N&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(N=l.firstChild,g&&(g=N.nodeValue.length));y.parentNode!=h;)y=y.parentNode;var w=s.measure,G=w.maps;function k(he,ve,Ce){for(var Ie=-1;Ie<(G?G.length:0);Ie++)for(var Re=Ie<0?w.map:G[Ie],ke=0;ke<Re.length;ke+=3){var We=Re[ke+2];if(We==he||We==ve){var tr=Je(Ie<0?s.line:s.rest[Ie]),Tr=Re[ke]+Ce;return(Ce<0||We!=he)&&(Tr=Re[ke+(Ce?1:0)]),pe(tr,Tr)}}}var _=k(N,y,g);if(_)return On(_,v);for(var ie=y.nextSibling,te=N?N.nodeValue.length-g:0;ie;ie=ie.nextSibling){if(_=k(ie,ie.firstChild,0),_)return On(pe(_.line,_.ch-te),v);te+=ie.textContent.length}for(var ae=y.previousSibling,ce=g;ae;ae=ae.previousSibling){if(_=k(ae,ae.firstChild,-1),_)return On(pe(_.line,_.ch+ce),v);ce+=ae.textContent.length}}var Yr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Hr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Yr.prototype.init=function(s){var l=this,g=this,h=this.cm;this.createField(s);var v=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),O&&(v.style.width="0px"),Oe(v,"input",function(){F&&Z>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Oe(v,"paste",function(N){xr(h,N)||Af(N,h)||(h.state.pasteIncoming=+new Date,g.fastPoll())});function b(N){if(!xr(h,N)){if(h.somethingSelected())ha({lineWise:!1,text:h.getSelections()});else if(h.options.lineWiseCopyCut){var y=Tf(h);ha({lineWise:!0,text:y.text}),N.type=="cut"?h.setSelections(y.ranges,null,fe):(g.prevInput="",v.value=y.text.join(`
20
+ `),rt(v))}else return;N.type=="cut"&&(h.state.cutIncoming=+new Date)}}Oe(v,"cut",b),Oe(v,"copy",b),Oe(s.scroller,"paste",function(N){if(!(Qi(s,N)||xr(h,N))){if(!v.dispatchEvent){h.state.pasteIncoming=+new Date,g.focus();return}var y=new Event("paste");y.clipboardData=N.clipboardData,v.dispatchEvent(y)}}),Oe(s.lineSpace,"selectstart",function(N){Qi(s,N)||It(N)}),Oe(v,"compositionstart",function(){var N=h.getCursor("from");g.composing&&g.composing.range.clear(),g.composing={start:N,range:h.markText(N,h.getCursor("to"),{className:"CodeMirror-composing"})}}),Oe(v,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Yr.prototype.createField=function(s){this.wrapper=Rf(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;ul(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Yr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Yr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,h=ds(s);if(s.options.moveInputWithCursor){var v=er(s,g.sel.primary().head,"div"),b=l.wrapper.getBoundingClientRect(),N=l.lineDiv.getBoundingClientRect();h.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,v.top+N.top-b.top)),h.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,v.left+N.left-b.left))}return h},Yr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Ke(g.cursorDiv,s.cursors),Ke(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Yr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing&&s)){var l=this.cm;if(this.resetting=!0,l.somethingSelected()){this.prevInput="";var g=l.getSelection();this.textarea.value=g,l.state.focused&&rt(this.textarea),F&&Z>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",F&&Z>=9&&(this.hasSelection=null));this.resetting=!1}},Yr.prototype.getField=function(){return this.textarea},Yr.prototype.supportsTouch=function(){return!1},Yr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!H||Or(Pe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Yr.prototype.blur=function(){this.textarea.blur()},Yr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yr.prototype.receivedFocus=function(){this.slowPoll()},Yr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Yr.prototype.fastPoll=function(){var s=!1,l=this;l.pollingFast=!0;function g(){var h=l.poll();!h&&!s?(s=!0,l.polling.set(60,g)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,g)},Yr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,h=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Vo(g)&&!h&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var v=g.value;if(v==h&&!l.somethingSelected())return!1;if(F&&Z>=9&&this.hasSelection===v||$&&/[\uf700-\uf7ff]/.test(v))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var b=v.charCodeAt(0);if(b==8203&&!h&&(h="\u200B"),b==8666)return this.reset(),this.cm.execCommand("undo")}for(var N=0,y=Math.min(h.length,v.length);N<y&&h.charCodeAt(N)==v.charCodeAt(N);)++N;return Ht(l,function(){ll(l,v.slice(N),h.length-N,null,s.composing?"*compose":null),v.length>1e3||v.indexOf(`
21
21
  `)>-1?g.value=s.prevInput="":s.prevInput=v,s.composing&&(s.composing.range.clear(),s.composing.range=l.markText(s.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yr.prototype.onKeyPress=function(){F&&Z>=9&&(this.hasSelection=null),this.fastPoll()},Yr.prototype.onContextMenu=function(s){var l=this,g=l.cm,h=g.display,v=l.textarea;l.contextMenuPending&&l.contextMenuPending();var b=ui(g,s),N=h.scroller.scrollTop;if(!b||z)return;var y=g.options.resetSelectionOnContextMenu;y&&g.doc.sel.contains(b)==-1&&at(g,Tt)(g.doc,yi(b),fe);var w=v.style.cssText,G=l.wrapper.style.cssText,k=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",v.style.cssText=`position: absolute; width: 30px; height: 30px;
22
22
  top: `+(s.clientY-k.top-5)+"px; left: "+(s.clientX-k.left-5)+`px;
23
23
  z-index: 1000; background: `+(F?"rgba(255, 255, 255, .05)":"transparent")+`;
24
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _;M&&(_=v.ownerDocument.defaultView.scrollY),h.input.focus(),M&&v.ownerDocument.defaultView.scrollTo(null,_),h.input.reset(),g.somethingSelected()||(v.value=l.prevInput=" "),l.contextMenuPending=te,h.selForContextMenu=g.doc.sel,clearTimeout(h.detectingSelectAll);function ie(){if(v.selectionStart!=null){var ce=g.somethingSelected(),he="\u200B"+(ce?v.value:"");v.value="\u21DA",v.value=he,l.prevInput=ce?"":"\u200B",v.selectionStart=1,v.selectionEnd=he.length,h.selForContextMenu=g.doc.sel}}function te(){if(l.contextMenuPending==te&&(l.contextMenuPending=!1,l.wrapper.style.cssText=G,v.style.cssText=w,F&&Z<9&&h.scrollbars.setScrollTop(h.scroller.scrollTop=N),v.selectionStart!=null)){(!F||F&&Z<9)&&ie();var ce=0,he=function(){h.selForContextMenu==g.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&l.prevInput=="\u200B"?at(g,Hu)(g):ce++<10?h.detectingSelectAll=setTimeout(he,500):(h.selForContextMenu=null,h.input.reset())};h.detectingSelectAll=setTimeout(he,200)}}if(F&&Z>=9&&ie(),Se){Ns(s);var ae=function(){Jr(window,"mouseup",ae),setTimeout(te,20)};Oe(window,"mouseup",ae)}else setTimeout(te,50)},Yr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Yr.prototype.setUneditable=function(){},Yr.prototype.needsContentAttribute=!1;function Lp(s,l){if(l=l?Rr(l):{},l.value=s.value,!l.tabindex&&s.tabIndex&&(l.tabindex=s.tabIndex),!l.placeholder&&s.placeholder&&(l.placeholder=s.placeholder),l.autofocus==null){var g=Or(Pe(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function h(){s.value=y.getValue()}var v;if(s.form&&(Oe(s.form,"submit",h),!l.leaveSubmitMethodAlone)){var b=s.form;v=b.submit;try{var N=b.submit=function(){h(),b.submit=v,b.submit(),b.submit=N}}catch{}}l.finishInit=function(w){w.save=h,w.getTextArea=function(){return s},w.toTextArea=function(){w.toTextArea=isNaN,h(),s.parentNode.removeChild(w.getWrapperElement()),s.style.display="",s.form&&(Jr(s.form,"submit",h),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=v))}},s.style.display="none";var y=wr(function(w){return s.parentNode.insertBefore(w,s.nextSibling)},l);return y}function wp(s){s.off=Jr,s.on=Oe,s.wheelEventPixels=Zc,s.Doc=Zt,s.splitLines=nn,s.countColumn=dr,s.findColumn=Ue,s.isWordChar=mt,s.Pass=Ge,s.signal=hr,s.Line=dn,s.changeEnd=Si,s.scrollbarModel=Gu,s.Pos=pe,s.cmpPos=ze,s.modes=an,s.mimeModes=Oi,s.resolveMode=ln,s.getMode=Qe,s.modeExtensions=re,s.extendMode=me,s.copyState=we,s.startState=nt,s.innerMode=Nr,s.commands=Eo,s.keyMap=Yi,s.keyName=uf,s.isModifierKey=af,s.lookupKey=Un,s.normalizeKeyMap=np,s.StringStream=rr,s.SharedTextMarker=po,s.TextMarker=ms,s.LineWidget=co,s.e_preventDefault=It,s.e_stopPropagation=kr,s.e_stop=Ns,s.addClass=je,s.contains=or,s.rmClass=Ze,s.keyNames=vs}xp(wr),Tp(wr);var Gp="iter insert remove copy getEditor constructor".split(" ");for(var Ea in Zt.prototype)Zt.prototype.hasOwnProperty(Ea)&&Cr(Gp,Ea)<0&&(wr.prototype[Ea]=function(s){return function(){return s.apply(this.doc,arguments)}}(Zt.prototype[Ea]));return ss(Zt),wr.inputStyles={textarea:Yr,contenteditable:br},wr.defineMode=function(s){!wr.defaults.mode&&s!="null"&&(wr.defaults.mode=s),Wo.apply(this,arguments)},wr.defineMIME=Zo,wr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),wr.defineMIME("text/plain","null"),wr.defineExtension=function(s,l){wr.prototype[s]=l},wr.defineDocExtension=function(s,l){Zt.prototype[s]=l},wr.fromTextArea=Lp,wp(wr),wr.version="5.65.20",wr})});var Ql=yr((aL,Iv)=>{var im=Ub(),Lb=Fb(),wb=Bb(),Gb=typeof window<"u"?window:global;Iv.exports={assign:im,create:Lb,trim:wb,bind:Ob,slice:sm,each:vv,map:Vb,pluck:nm,isList:om,isFunction:Wb,isObject:Zb,Global:Gb};function Ub(){return Object.assign?Object.assign:function(m,e,A,R){for(var L=1;L<arguments.length;L++)vv(Object(arguments[L]),function(F,Z){m[Z]=F});return m}}function Fb(){if(Object.create)return function(e,A,R,L){var F=sm(arguments,1);return im.apply(this,[Object.create(e)].concat(F))};{let m=function(){};var i=m;return function(A,R,L,F){var Z=sm(arguments,1);return m.prototype=A,im.apply(this,[new m].concat(Z))}}}function Bb(){return String.prototype.trim?function(m){return String.prototype.trim.call(m)}:function(m){return m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Ob(i,m){return function(){return m.apply(i,Array.prototype.slice.call(arguments,0))}}function sm(i,m){return Array.prototype.slice.call(i,m||0)}function vv(i,m){nm(i,function(e,A){return m(e,A),!1})}function Vb(i,m){var e=om(i)?[]:{};return nm(i,function(A,R){return e[R]=m(A,R),!1}),e}function nm(i,m){if(om(i)){for(var e=0;e<i.length;e++)if(m(i[e],e))return i[e]}else for(var A in i)if(i.hasOwnProperty(A)&&m(i[A],A))return i[A]}function om(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function Wb(i){return i&&{}.toString.call(i)==="[object Function]"}function Zb(i){return i&&{}.toString.call(i)==="[object Object]"}});var xv=yr((lL,Cv)=>{var ma=Ql(),Mb=ma.slice,Db=ma.pluck,wf=ma.each,Qb=ma.bind,kb=ma.create,am=ma.isList,lm=ma.isFunction,Xb=ma.isObject;Cv.exports={createStore:um};var Pb={version:"2.0.12",enabled:!1,get:function(i,m){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,m)},set:function(i,m){return m===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(m)),m)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var m=this;this.storage.each(function(e,A){i.call(m,m._deserialize(e),(A||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return um.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return um(this.storage,this.plugins,i)}};function Yb(){var i=typeof console>"u"?null:console;if(i){var m=i.warn?i.warn:i.log;m.apply(i,arguments)}}function um(i,m,e){e||(e=""),i&&!am(i)&&(i=[i]),m&&!am(m)&&(m=[m]);var A=e?"__storejs_"+e+"_":"",R=e?new RegExp("^"+A):null,L=/^[a-zA-Z0-9_\-]*$/;if(!L.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var F={_namespacePrefix:A,_namespaceRegexp:R,_testStorage:function(M){try{var Y="__storejs__test__";M.write(Y,Y);var P=M.read(Y)===Y;return M.remove(Y),P}catch{return!1}},_assignPluginFnProp:function(M,Y){var P=this[Y];this[Y]=function(){var z=Mb(arguments,0),W=this;function $(){if(P)return wf(arguments,function(O,V){z[V]=O}),P.apply(W,z)}var J=[$].concat(z);return M.apply(W,J)}},_serialize:function(M){return JSON.stringify(M)},_deserialize:function(M,Y){if(!M)return Y;var P="";try{P=JSON.parse(M)}catch{P=M}return P!==void 0?P:Y},_addStorage:function(M){this.enabled||this._testStorage(M)&&(this.storage=M,this.enabled=!0)},_addPlugin:function(M){var Y=this;if(am(M)){wf(M,function(z){Y._addPlugin(z)});return}var P=Db(this.plugins,function(z){return M===z});if(!P){if(this.plugins.push(M),!lm(M))throw new Error("Plugins must be function values that return objects");var D=M.call(this);if(!Xb(D))throw new Error("Plugins must return an object of function properties");wf(D,function(z,W){if(!lm(z))throw new Error("Bad plugin property: "+W+" from plugin "+M.name+". Plugins should only return functions.");Y._assignPluginFnProp(z,W)})}},addStorage:function(M){Yb("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(M)}},Z=kb(F,Pb,{plugins:[]});return Z.raw={},wf(Z,function(M,Y){lm(M)&&(Z.raw[Y]=Qb(Z,M))}),wf(i,function(M){Z._addStorage(M)}),wf(m,function(M){Z._addPlugin(M)}),Z}});var Nv=yr((uL,Av)=>{var Hb=Ql(),Jb=Hb.Global;Av.exports={name:"localStorage",read:bv,write:_b,each:jb,remove:zb,clearAll:$b};function Gf(){return Jb.localStorage}function bv(i){return Gf().getItem(i)}function _b(i,m){return Gf().setItem(i,m)}function jb(i){for(var m=Gf().length-1;m>=0;m--){var e=Gf().key(m);i(bv(e),e)}}function zb(i){return Gf().removeItem(i)}function $b(){return Gf().clear()}});var yv=yr((fL,Rv)=>{var qb=Ql(),Kb=qb.Global;Rv.exports={name:"oldFF-globalStorage",read:eA,write:rA,each:Tv,remove:tA,clearAll:iA};var kl=Kb.globalStorage;function eA(i){return kl[i]}function rA(i,m){kl[i]=m}function Tv(i){for(var m=kl.length-1;m>=0;m--){var e=kl.key(m);i(kl[e],e)}}function tA(i){return kl.removeItem(i)}function iA(){Tv(function(i,m){delete kl[i]})}});var wv=yr((cL,Lv)=>{var sA=Ql(),fm=sA.Global;Lv.exports={name:"oldIE-userDataStorage",write:nA,read:oA,each:aA,remove:lA,clearAll:uA};var xd="storejs",Cd=fm.document,bd=cA(),Sv=(fm.navigator?fm.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function nA(i,m){if(!Sv){var e=cm(i);bd(function(A){A.setAttribute(e,m),A.save(xd)})}}function oA(i){if(!Sv){var m=cm(i),e=null;return bd(function(A){e=A.getAttribute(m)}),e}}function aA(i){bd(function(m){for(var e=m.XMLDocument.documentElement.attributes,A=e.length-1;A>=0;A--){var R=e[A];i(m.getAttribute(R.name),R.name)}})}function lA(i){var m=cm(i);bd(function(e){e.removeAttribute(m),e.save(xd)})}function uA(){bd(function(i){var m=i.XMLDocument.documentElement.attributes;i.load(xd);for(var e=m.length-1;e>=0;e--)i.removeAttribute(m[e].name);i.save(xd)})}var fA=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function cm(i){return i.replace(/^\d/,"___$&").replace(fA,"___")}function cA(){if(!Cd||!Cd.documentElement||!Cd.documentElement.addBehavior)return null;var i="script",m,e,A;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),m=e.w.frames[0].document,A=m.createElement("div")}catch{A=Cd.createElement("div"),m=Cd.body}return function(R){var L=[].slice.call(arguments,0);L.unshift(A),m.appendChild(A),A.addBehavior("#default#userData"),A.load(xd),R.apply(this,L),m.removeChild(A)}}});var Vv=yr((pL,Ov)=>{var Gv=Ql(),pA=Gv.Global,dA=Gv.trim;Ov.exports={name:"cookieStorage",read:hA,write:gA,each:Uv,remove:Fv,clearAll:EA};var Ad=pA.document;function hA(i){if(!i||!Bv(i))return null;var m="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ad.cookie.replace(new RegExp(m),"$1"))}function Uv(i){for(var m=Ad.cookie.split(/; ?/g),e=m.length-1;e>=0;e--)if(dA(m[e])){var A=m[e].split("="),R=unescape(A[0]),L=unescape(A[1]);i(L,R)}}function gA(i,m){i&&(Ad.cookie=escape(i)+"="+escape(m)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Fv(i){!i||!Bv(i)||(Ad.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function EA(){Uv(function(i,m){Fv(m)})}function Bv(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ad.cookie)}});var Mv=yr((dL,Zv)=>{var mA=Ql(),vA=mA.Global;Zv.exports={name:"sessionStorage",read:Wv,write:IA,each:CA,remove:xA,clearAll:bA};function Uf(){return vA.sessionStorage}function Wv(i){return Uf().getItem(i)}function IA(i,m){return Uf().setItem(i,m)}function CA(i){for(var m=Uf().length-1;m>=0;m--){var e=Uf().key(m);i(Wv(e),e)}}function xA(i){return Uf().removeItem(i)}function bA(){return Uf().clear()}});var Qv=yr((hL,Dv)=>{Dv.exports={name:"memoryStorage",read:AA,write:NA,each:TA,remove:RA,clearAll:yA};var Xl={};function AA(i){return Xl[i]}function NA(i,m){Xl[i]=m}function TA(i){for(var m in Xl)Xl.hasOwnProperty(m)&&i(Xl[m],m)}function RA(i){delete Xl[i]}function yA(i){Xl={}}});var Xv=yr((gL,kv)=>{kv.exports=[Nv(),yv(),wv(),Vv(),Mv(),Qv()]});var Pv=yr((exports,module)=>{typeof JSON!="object"&&(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;function f(i){return i<10?"0"+i:i}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(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);var gap,indent,meta,rep;function quote(i){return rx_escapable.lastIndex=0,rx_escapable.test(i)?'"'+i.replace(rx_escapable,function(m){var e=meta[m];return typeof e=="string"?e:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,m){var e,A,R,L,F=gap,Z,M=m[i];switch(M&&typeof M=="object"&&typeof M.toJSON=="function"&&(M=M.toJSON(i)),typeof rep=="function"&&(M=rep.call(m,i,M)),typeof M){case"string":return quote(M);case"number":return isFinite(M)?String(M):"null";case"boolean":case"null":return String(M);case"object":if(!M)return"null";if(gap+=indent,Z=[],Object.prototype.toString.apply(M)==="[object Array]"){for(L=M.length,e=0;e<L;e+=1)Z[e]=str(e,M)||"null";return R=Z.length===0?"[]":gap?`[
24
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _;M&&(_=v.ownerDocument.defaultView.scrollY),h.input.focus(),M&&v.ownerDocument.defaultView.scrollTo(null,_),h.input.reset(),g.somethingSelected()||(v.value=l.prevInput=" "),l.contextMenuPending=te,h.selForContextMenu=g.doc.sel,clearTimeout(h.detectingSelectAll);function ie(){if(v.selectionStart!=null){var ce=g.somethingSelected(),he="\u200B"+(ce?v.value:"");v.value="\u21DA",v.value=he,l.prevInput=ce?"":"\u200B",v.selectionStart=1,v.selectionEnd=he.length,h.selForContextMenu=g.doc.sel}}function te(){if(l.contextMenuPending==te&&(l.contextMenuPending=!1,l.wrapper.style.cssText=G,v.style.cssText=w,F&&Z<9&&h.scrollbars.setScrollTop(h.scroller.scrollTop=N),v.selectionStart!=null)){(!F||F&&Z<9)&&ie();var ce=0,he=function(){h.selForContextMenu==g.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&l.prevInput=="\u200B"?at(g,Hu)(g):ce++<10?h.detectingSelectAll=setTimeout(he,500):(h.selForContextMenu=null,h.input.reset())};h.detectingSelectAll=setTimeout(he,200)}}if(F&&Z>=9&&ie(),Se){Ns(s);var ae=function(){Jr(window,"mouseup",ae),setTimeout(te,20)};Oe(window,"mouseup",ae)}else setTimeout(te,50)},Yr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Yr.prototype.setUneditable=function(){},Yr.prototype.needsContentAttribute=!1;function Lp(s,l){if(l=l?Rr(l):{},l.value=s.value,!l.tabindex&&s.tabIndex&&(l.tabindex=s.tabIndex),!l.placeholder&&s.placeholder&&(l.placeholder=s.placeholder),l.autofocus==null){var g=Or(Pe(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function h(){s.value=y.getValue()}var v;if(s.form&&(Oe(s.form,"submit",h),!l.leaveSubmitMethodAlone)){var b=s.form;v=b.submit;try{var N=b.submit=function(){h(),b.submit=v,b.submit(),b.submit=N}}catch{}}l.finishInit=function(w){w.save=h,w.getTextArea=function(){return s},w.toTextArea=function(){w.toTextArea=isNaN,h(),s.parentNode.removeChild(w.getWrapperElement()),s.style.display="",s.form&&(Jr(s.form,"submit",h),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=v))}},s.style.display="none";var y=wr(function(w){return s.parentNode.insertBefore(w,s.nextSibling)},l);return y}function wp(s){s.off=Jr,s.on=Oe,s.wheelEventPixels=Zc,s.Doc=Zt,s.splitLines=nn,s.countColumn=dr,s.findColumn=Ue,s.isWordChar=mt,s.Pass=Ge,s.signal=hr,s.Line=dn,s.changeEnd=Si,s.scrollbarModel=Gu,s.Pos=pe,s.cmpPos=ze,s.modes=an,s.mimeModes=Oi,s.resolveMode=ln,s.getMode=Qe,s.modeExtensions=re,s.extendMode=me,s.copyState=we,s.startState=nt,s.innerMode=Nr,s.commands=Eo,s.keyMap=Yi,s.keyName=uf,s.isModifierKey=af,s.lookupKey=Un,s.normalizeKeyMap=np,s.StringStream=rr,s.SharedTextMarker=po,s.TextMarker=ms,s.LineWidget=co,s.e_preventDefault=It,s.e_stopPropagation=kr,s.e_stop=Ns,s.addClass=je,s.contains=or,s.rmClass=Ze,s.keyNames=vs}xp(wr),Tp(wr);var Gp="iter insert remove copy getEditor constructor".split(" ");for(var Ea in Zt.prototype)Zt.prototype.hasOwnProperty(Ea)&&Cr(Gp,Ea)<0&&(wr.prototype[Ea]=function(s){return function(){return s.apply(this.doc,arguments)}}(Zt.prototype[Ea]));return ss(Zt),wr.inputStyles={textarea:Yr,contenteditable:br},wr.defineMode=function(s){!wr.defaults.mode&&s!="null"&&(wr.defaults.mode=s),Wo.apply(this,arguments)},wr.defineMIME=Zo,wr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),wr.defineMIME("text/plain","null"),wr.defineExtension=function(s,l){wr.prototype[s]=l},wr.defineDocExtension=function(s,l){Zt.prototype[s]=l},wr.fromTextArea=Lp,wp(wr),wr.version="5.65.20",wr})});var Ql=yr((aL,Iv)=>{var im=Ub(),Lb=Fb(),wb=Bb(),Gb=typeof window<"u"?window:global;Iv.exports={assign:im,create:Lb,trim:wb,bind:Ob,slice:sm,each:vv,map:Vb,pluck:nm,isList:om,isFunction:Wb,isObject:Zb,Global:Gb};function Ub(){return Object.assign?Object.assign:function(m,e,A,R){for(var L=1;L<arguments.length;L++)vv(Object(arguments[L]),function(F,Z){m[Z]=F});return m}}function Fb(){if(Object.create)return function(e,A,R,L){var F=sm(arguments,1);return im.apply(this,[Object.create(e)].concat(F))};{let m=function(){};var i=m;return function(A,R,L,F){var Z=sm(arguments,1);return m.prototype=A,im.apply(this,[new m].concat(Z))}}}function Bb(){return String.prototype.trim?function(m){return String.prototype.trim.call(m)}:function(m){return m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Ob(i,m){return function(){return m.apply(i,Array.prototype.slice.call(arguments,0))}}function sm(i,m){return Array.prototype.slice.call(i,m||0)}function vv(i,m){nm(i,function(e,A){return m(e,A),!1})}function Vb(i,m){var e=om(i)?[]:{};return nm(i,function(A,R){return e[R]=m(A,R),!1}),e}function nm(i,m){if(om(i)){for(var e=0;e<i.length;e++)if(m(i[e],e))return i[e]}else for(var A in i)if(i.hasOwnProperty(A)&&m(i[A],A))return i[A]}function om(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function Wb(i){return i&&{}.toString.call(i)==="[object Function]"}function Zb(i){return i&&{}.toString.call(i)==="[object Object]"}});var xv=yr((lL,Cv)=>{var ma=Ql(),Mb=ma.slice,Db=ma.pluck,wf=ma.each,Qb=ma.bind,kb=ma.create,am=ma.isList,lm=ma.isFunction,Xb=ma.isObject;Cv.exports={createStore:um};var Pb={version:"2.0.12",enabled:!1,get:function(i,m){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,m)},set:function(i,m){return m===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(m)),m)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var m=this;this.storage.each(function(e,A){i.call(m,m._deserialize(e),(A||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return um.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return um(this.storage,this.plugins,i)}};function Yb(){var i=typeof console>"u"?null:console;if(i){var m=i.warn?i.warn:i.log;m.apply(i,arguments)}}function um(i,m,e){e||(e=""),i&&!am(i)&&(i=[i]),m&&!am(m)&&(m=[m]);var A=e?"__storejs_"+e+"_":"",R=e?new RegExp("^"+A):null,L=/^[a-zA-Z0-9_\-]*$/;if(!L.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var F={_namespacePrefix:A,_namespaceRegexp:R,_testStorage:function(M){try{var Y="__storejs__test__";M.write(Y,Y);var X=M.read(Y)===Y;return M.remove(Y),X}catch{return!1}},_assignPluginFnProp:function(M,Y){var X=this[Y];this[Y]=function(){var z=Mb(arguments,0),W=this;function K(){if(X)return wf(arguments,function(O,V){z[V]=O}),X.apply(W,z)}var J=[K].concat(z);return M.apply(W,J)}},_serialize:function(M){return JSON.stringify(M)},_deserialize:function(M,Y){if(!M)return Y;var X="";try{X=JSON.parse(M)}catch{X=M}return X!==void 0?X:Y},_addStorage:function(M){this.enabled||this._testStorage(M)&&(this.storage=M,this.enabled=!0)},_addPlugin:function(M){var Y=this;if(am(M)){wf(M,function(z){Y._addPlugin(z)});return}var X=Db(this.plugins,function(z){return M===z});if(!X){if(this.plugins.push(M),!lm(M))throw new Error("Plugins must be function values that return objects");var D=M.call(this);if(!Xb(D))throw new Error("Plugins must return an object of function properties");wf(D,function(z,W){if(!lm(z))throw new Error("Bad plugin property: "+W+" from plugin "+M.name+". Plugins should only return functions.");Y._assignPluginFnProp(z,W)})}},addStorage:function(M){Yb("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(M)}},Z=kb(F,Pb,{plugins:[]});return Z.raw={},wf(Z,function(M,Y){lm(M)&&(Z.raw[Y]=Qb(Z,M))}),wf(i,function(M){Z._addStorage(M)}),wf(m,function(M){Z._addPlugin(M)}),Z}});var Nv=yr((uL,Av)=>{var Hb=Ql(),Jb=Hb.Global;Av.exports={name:"localStorage",read:bv,write:_b,each:jb,remove:zb,clearAll:$b};function Gf(){return Jb.localStorage}function bv(i){return Gf().getItem(i)}function _b(i,m){return Gf().setItem(i,m)}function jb(i){for(var m=Gf().length-1;m>=0;m--){var e=Gf().key(m);i(bv(e),e)}}function zb(i){return Gf().removeItem(i)}function $b(){return Gf().clear()}});var yv=yr((fL,Rv)=>{var qb=Ql(),Kb=qb.Global;Rv.exports={name:"oldFF-globalStorage",read:eA,write:rA,each:Tv,remove:tA,clearAll:iA};var kl=Kb.globalStorage;function eA(i){return kl[i]}function rA(i,m){kl[i]=m}function Tv(i){for(var m=kl.length-1;m>=0;m--){var e=kl.key(m);i(kl[e],e)}}function tA(i){return kl.removeItem(i)}function iA(){Tv(function(i,m){delete kl[i]})}});var wv=yr((cL,Lv)=>{var sA=Ql(),fm=sA.Global;Lv.exports={name:"oldIE-userDataStorage",write:nA,read:oA,each:aA,remove:lA,clearAll:uA};var xd="storejs",Cd=fm.document,bd=cA(),Sv=(fm.navigator?fm.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function nA(i,m){if(!Sv){var e=cm(i);bd(function(A){A.setAttribute(e,m),A.save(xd)})}}function oA(i){if(!Sv){var m=cm(i),e=null;return bd(function(A){e=A.getAttribute(m)}),e}}function aA(i){bd(function(m){for(var e=m.XMLDocument.documentElement.attributes,A=e.length-1;A>=0;A--){var R=e[A];i(m.getAttribute(R.name),R.name)}})}function lA(i){var m=cm(i);bd(function(e){e.removeAttribute(m),e.save(xd)})}function uA(){bd(function(i){var m=i.XMLDocument.documentElement.attributes;i.load(xd);for(var e=m.length-1;e>=0;e--)i.removeAttribute(m[e].name);i.save(xd)})}var fA=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function cm(i){return i.replace(/^\d/,"___$&").replace(fA,"___")}function cA(){if(!Cd||!Cd.documentElement||!Cd.documentElement.addBehavior)return null;var i="script",m,e,A;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),m=e.w.frames[0].document,A=m.createElement("div")}catch{A=Cd.createElement("div"),m=Cd.body}return function(R){var L=[].slice.call(arguments,0);L.unshift(A),m.appendChild(A),A.addBehavior("#default#userData"),A.load(xd),R.apply(this,L),m.removeChild(A)}}});var Vv=yr((pL,Ov)=>{var Gv=Ql(),pA=Gv.Global,dA=Gv.trim;Ov.exports={name:"cookieStorage",read:hA,write:gA,each:Uv,remove:Fv,clearAll:EA};var Ad=pA.document;function hA(i){if(!i||!Bv(i))return null;var m="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ad.cookie.replace(new RegExp(m),"$1"))}function Uv(i){for(var m=Ad.cookie.split(/; ?/g),e=m.length-1;e>=0;e--)if(dA(m[e])){var A=m[e].split("="),R=unescape(A[0]),L=unescape(A[1]);i(L,R)}}function gA(i,m){i&&(Ad.cookie=escape(i)+"="+escape(m)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Fv(i){!i||!Bv(i)||(Ad.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function EA(){Uv(function(i,m){Fv(m)})}function Bv(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ad.cookie)}});var Mv=yr((dL,Zv)=>{var mA=Ql(),vA=mA.Global;Zv.exports={name:"sessionStorage",read:Wv,write:IA,each:CA,remove:xA,clearAll:bA};function Uf(){return vA.sessionStorage}function Wv(i){return Uf().getItem(i)}function IA(i,m){return Uf().setItem(i,m)}function CA(i){for(var m=Uf().length-1;m>=0;m--){var e=Uf().key(m);i(Wv(e),e)}}function xA(i){return Uf().removeItem(i)}function bA(){return Uf().clear()}});var Qv=yr((hL,Dv)=>{Dv.exports={name:"memoryStorage",read:AA,write:NA,each:TA,remove:RA,clearAll:yA};var Xl={};function AA(i){return Xl[i]}function NA(i,m){Xl[i]=m}function TA(i){for(var m in Xl)Xl.hasOwnProperty(m)&&i(Xl[m],m)}function RA(i){delete Xl[i]}function yA(i){Xl={}}});var Xv=yr((gL,kv)=>{kv.exports=[Nv(),yv(),wv(),Vv(),Mv(),Qv()]});var Pv=yr((exports,module)=>{typeof JSON!="object"&&(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;function f(i){return i<10?"0"+i:i}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(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);var gap,indent,meta,rep;function quote(i){return rx_escapable.lastIndex=0,rx_escapable.test(i)?'"'+i.replace(rx_escapable,function(m){var e=meta[m];return typeof e=="string"?e:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,m){var e,A,R,L,F=gap,Z,M=m[i];switch(M&&typeof M=="object"&&typeof M.toJSON=="function"&&(M=M.toJSON(i)),typeof rep=="function"&&(M=rep.call(m,i,M)),typeof M){case"string":return quote(M);case"number":return isFinite(M)?String(M):"null";case"boolean":case"null":return String(M);case"object":if(!M)return"null";if(gap+=indent,Z=[],Object.prototype.toString.apply(M)==="[object Array]"){for(L=M.length,e=0;e<L;e+=1)Z[e]=str(e,M)||"null";return R=Z.length===0?"[]":gap?`[
25
25
  `+gap+Z.join(`,
26
26
  `+gap)+`
27
27
  `+F+"]":"["+Z.join(",")+"]",gap=F,R}if(rep&&typeof rep=="object")for(L=rep.length,e=0;e<L;e+=1)typeof rep[e]=="string"&&(A=rep[e],R=str(A,M),R&&Z.push(quote(A)+(gap?": ":":")+R));else for(A in M)Object.prototype.hasOwnProperty.call(M,A)&&(R=str(A,M),R&&Z.push(quote(A)+(gap?": ":":")+R));return R=Z.length===0?"{}":gap?`{
28
28
  `+gap+Z.join(`,
29
29
  `+gap)+`
30
- `+F+"}":"{"+Z.join(",")+"}",gap=F,R}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,m,e){var A;if(gap="",indent="",typeof e=="number")for(A=0;A<e;A+=1)indent+=" ";else typeof e=="string"&&(indent=e);if(rep=m,m&&typeof m!="function"&&(typeof m!="object"||typeof m.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,m){var e,A,R=i[m];if(R&&typeof R=="object")for(e in R)Object.prototype.hasOwnProperty.call(R,e)&&(A=walk(R,e),A!==void 0?R[e]=A:delete R[e]);return reviver.call(i,m,R)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(i){return"\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Hv=yr((EL,Yv)=>{Yv.exports=SA;function SA(){return Pv(),{}}});var _v=yr((mL,Jv)=>{var LA=xv(),wA=Xv(),GA=[Hv()];Jv.exports=LA.createStore(wA,GA)});var $v=yr((AL,zv)=>{"use strict";zv.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,m=>`%${m.charCodeAt(0).toString(16).toUpperCase()}`)});var t0=yr((NL,r0)=>{"use strict";var e0="%[a-f0-9]{2}",qv=new RegExp("("+e0+")|([^%]+?)","gi"),Kv=new RegExp("("+e0+")+","gi");function pm(i,m){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;m=m||1;var e=i.slice(0,m),A=i.slice(m);return Array.prototype.concat.call([],pm(e),pm(A))}function FA(i){try{return decodeURIComponent(i)}catch{for(var m=i.match(qv)||[],e=1;e<m.length;e++)i=pm(m,e).join(""),m=i.match(qv)||[];return i}}function BA(i){for(var m={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=Kv.exec(i);e;){try{m[e[0]]=decodeURIComponent(e[0])}catch{var A=FA(e[0]);A!==e[0]&&(m[e[0]]=A)}e=Kv.exec(i)}m["%C2"]="\uFFFD";for(var R=Object.keys(m),L=0;L<R.length;L++){var F=R[L];i=i.replace(new RegExp(F,"g"),m[F])}return i}r0.exports=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return BA(i)}}});var s0=yr((TL,i0)=>{"use strict";i0.exports=(i,m)=>{if(!(typeof i=="string"&&typeof m=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(m==="")return[i];let e=i.indexOf(m);return e===-1?[i]:[i.slice(0,e),i.slice(e+m.length)]}});var o0=yr((RL,n0)=>{"use strict";n0.exports=function(i,m){for(var e={},A=Object.keys(i),R=Array.isArray(m),L=0;L<A.length;L++){var F=A[L],Z=i[F];(R?m.indexOf(F)!==-1:m(F,Z,i))&&(e[F]=Z)}return e}});var Zd=yr(Gi=>{"use strict";var OA=$v(),VA=t0(),l0=s0(),WA=o0(),ZA=i=>i==null;function MA(i){switch(i.arrayFormat){case"index":return m=>(e,A)=>{let R=e.length;return A===void 0||i.skipNull&&A===null||i.skipEmptyString&&A===""?e:A===null?[...e,[ri(m,i),"[",R,"]"].join("")]:[...e,[ri(m,i),"[",ri(R,i),"]=",ri(A,i)].join("")]};case"bracket":return m=>(e,A)=>A===void 0||i.skipNull&&A===null||i.skipEmptyString&&A===""?e:A===null?[...e,[ri(m,i),"[]"].join("")]:[...e,[ri(m,i),"[]=",ri(A,i)].join("")];case"comma":case"separator":return m=>(e,A)=>A==null||A.length===0?e:e.length===0?[[ri(m,i),"=",ri(A,i)].join("")]:[[e,ri(A,i)].join(i.arrayFormatSeparator)];default:return m=>(e,A)=>A===void 0||i.skipNull&&A===null||i.skipEmptyString&&A===""?e:A===null?[...e,ri(m,i)]:[...e,[ri(m,i),"=",ri(A,i)].join("")]}}function DA(i){let m;switch(i.arrayFormat){case"index":return(e,A,R)=>{if(m=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!m){R[e]=A;return}R[e]===void 0&&(R[e]={}),R[e][m[1]]=A};case"bracket":return(e,A,R)=>{if(m=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!m){R[e]=A;return}if(R[e]===void 0){R[e]=[A];return}R[e]=[].concat(R[e],A)};case"comma":case"separator":return(e,A,R)=>{let L=typeof A=="string"&&A.includes(i.arrayFormatSeparator),F=typeof A=="string"&&!L&&Yl(A,i).includes(i.arrayFormatSeparator);A=F?Yl(A,i):A;let Z=L||F?A.split(i.arrayFormatSeparator).map(M=>Yl(M,i)):A===null?A:Yl(A,i);R[e]=Z};default:return(e,A,R)=>{if(R[e]===void 0){R[e]=A;return}R[e]=[].concat(R[e],A)}}}function u0(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ri(i,m){return m.encode?m.strict?OA(i):encodeURIComponent(i):i}function Yl(i,m){return m.decode?VA(i):i}function f0(i){return Array.isArray(i)?i.sort():typeof i=="object"?f0(Object.keys(i)).sort((m,e)=>Number(m)-Number(e)).map(m=>i[m]):i}function c0(i){let m=i.indexOf("#");return m!==-1&&(i=i.slice(0,m)),i}function QA(i){let m="",e=i.indexOf("#");return e!==-1&&(m=i.slice(e)),m}function p0(i){i=c0(i);let m=i.indexOf("?");return m===-1?"":i.slice(m+1)}function a0(i,m){return m.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):m.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function d0(i,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),u0(m.arrayFormatSeparator);let e=DA(m),A=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return A;for(let R of i.split("&")){if(R==="")continue;let[L,F]=l0(m.decode?R.replace(/\+/g," "):R,"=");F=F===void 0?null:["comma","separator"].includes(m.arrayFormat)?F:Yl(F,m),e(Yl(L,m),F,A)}for(let R of Object.keys(A)){let L=A[R];if(typeof L=="object"&&L!==null)for(let F of Object.keys(L))L[F]=a0(L[F],m);else A[R]=a0(L,m)}return m.sort===!1?A:(m.sort===!0?Object.keys(A).sort():Object.keys(A).sort(m.sort)).reduce((R,L)=>{let F=A[L];return F&&typeof F=="object"&&!Array.isArray(F)?R[L]=f0(F):R[L]=F,R},Object.create(null))}Gi.extract=p0;Gi.parse=d0;Gi.stringify=(i,m)=>{if(!i)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),u0(m.arrayFormatSeparator);let e=F=>m.skipNull&&ZA(i[F])||m.skipEmptyString&&i[F]==="",A=MA(m),R={};for(let F of Object.keys(i))e(F)||(R[F]=i[F]);let L=Object.keys(R);return m.sort!==!1&&L.sort(m.sort),L.map(F=>{let Z=i[F];return Z===void 0?"":Z===null?ri(F,m):Array.isArray(Z)?Z.reduce(A(F),[]).join("&"):ri(F,m)+"="+ri(Z,m)}).filter(F=>F.length>0).join("&")};Gi.parseUrl=(i,m)=>{m=Object.assign({decode:!0},m);let[e,A]=l0(i,"#");return Object.assign({url:e.split("?")[0]||"",query:d0(p0(i),m)},m&&m.parseFragmentIdentifier&&A?{fragmentIdentifier:Yl(A,m)}:{})};Gi.stringifyUrl=(i,m)=>{m=Object.assign({encode:!0,strict:!0},m);let e=c0(i.url).split("?")[0]||"",A=Gi.extract(i.url),R=Gi.parse(A,{sort:!1}),L=Object.assign(R,i.query),F=Gi.stringify(L,m);F&&(F=`?${F}`);let Z=QA(i.url);return i.fragmentIdentifier&&(Z=`#${ri(i.fragmentIdentifier,m)}`),`${e}${F}${Z}`};Gi.pick=(i,m,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:A,query:R,fragmentIdentifier:L}=Gi.parseUrl(i,e);return Gi.stringifyUrl({url:A,query:WA(R,m),fragmentIdentifier:L},e)};Gi.exclude=(i,m,e)=>{let A=Array.isArray(m)?R=>!m.includes(R):(R,L)=>!m(R,L);return Gi.pick(i,A,e)}});var rx=yr((mZ,Gm)=>{"use strict";var jf=typeof Reflect=="object"?Reflect:null,YC=jf&&typeof jf.apply=="function"?jf.apply:function(m,e,A){return Function.prototype.apply.call(m,e,A)},fh;jf&&typeof jf.ownKeys=="function"?fh=jf.ownKeys:Object.getOwnPropertySymbols?fh=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:fh=function(m){return Object.getOwnPropertyNames(m)};function l1(i){console&&console.warn&&console.warn(i)}var JC=Number.isNaN||function(m){return m!==m};function Fr(){Fr.init.call(this)}Gm.exports=Fr;Gm.exports.once=p1;Fr.EventEmitter=Fr;Fr.prototype._events=void 0;Fr.prototype._eventsCount=0;Fr.prototype._maxListeners=void 0;var HC=10;function ch(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(Fr,"defaultMaxListeners",{enumerable:!0,get:function(){return HC},set:function(i){if(typeof i!="number"||i<0||JC(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");HC=i}});Fr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Fr.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||JC(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function _C(i){return i._maxListeners===void 0?Fr.defaultMaxListeners:i._maxListeners}Fr.prototype.getMaxListeners=function(){return _C(this)};Fr.prototype.emit=function(m){for(var e=[],A=1;A<arguments.length;A++)e.push(arguments[A]);var R=m==="error",L=this._events;if(L!==void 0)R=R&&L.error===void 0;else if(!R)return!1;if(R){var F;if(e.length>0&&(F=e[0]),F instanceof Error)throw F;var Z=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw Z.context=F,Z}var M=L[m];if(M===void 0)return!1;if(typeof M=="function")YC(M,this,e);else for(var Y=M.length,P=KC(M,Y),A=0;A<Y;++A)YC(P[A],this,e);return!0};function jC(i,m,e,A){var R,L,F;if(ch(e),L=i._events,L===void 0?(L=i._events=Object.create(null),i._eventsCount=0):(L.newListener!==void 0&&(i.emit("newListener",m,e.listener?e.listener:e),L=i._events),F=L[m]),F===void 0)F=L[m]=e,++i._eventsCount;else if(typeof F=="function"?F=L[m]=A?[e,F]:[F,e]:A?F.unshift(e):F.push(e),R=_C(i),R>0&&F.length>R&&!F.warned){F.warned=!0;var Z=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");Z.name="MaxListenersExceededWarning",Z.emitter=i,Z.type=m,Z.count=F.length,l1(Z)}return i}Fr.prototype.addListener=function(m,e){return jC(this,m,e,!1)};Fr.prototype.on=Fr.prototype.addListener;Fr.prototype.prependListener=function(m,e){return jC(this,m,e,!0)};function u1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function zC(i,m,e){var A={fired:!1,wrapFn:void 0,target:i,type:m,listener:e},R=u1.bind(A);return R.listener=e,A.wrapFn=R,R}Fr.prototype.once=function(m,e){return ch(e),this.on(m,zC(this,m,e)),this};Fr.prototype.prependOnceListener=function(m,e){return ch(e),this.prependListener(m,zC(this,m,e)),this};Fr.prototype.removeListener=function(m,e){var A,R,L,F,Z;if(ch(e),R=this._events,R===void 0)return this;if(A=R[m],A===void 0)return this;if(A===e||A.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete R[m],R.removeListener&&this.emit("removeListener",m,A.listener||e));else if(typeof A!="function"){for(L=-1,F=A.length-1;F>=0;F--)if(A[F]===e||A[F].listener===e){Z=A[F].listener,L=F;break}if(L<0)return this;L===0?A.shift():f1(A,L),A.length===1&&(R[m]=A[0]),R.removeListener!==void 0&&this.emit("removeListener",m,Z||e)}return this};Fr.prototype.off=Fr.prototype.removeListener;Fr.prototype.removeAllListeners=function(m){var e,A,R;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[m]),this;if(arguments.length===0){var L=Object.keys(A),F;for(R=0;R<L.length;++R)F=L[R],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=A[m],typeof e=="function")this.removeListener(m,e);else if(e!==void 0)for(R=e.length-1;R>=0;R--)this.removeListener(m,e[R]);return this};function $C(i,m,e){var A=i._events;if(A===void 0)return[];var R=A[m];return R===void 0?[]:typeof R=="function"?e?[R.listener||R]:[R]:e?c1(R):KC(R,R.length)}Fr.prototype.listeners=function(m){return $C(this,m,!0)};Fr.prototype.rawListeners=function(m){return $C(this,m,!1)};Fr.listenerCount=function(i,m){return typeof i.listenerCount=="function"?i.listenerCount(m):qC.call(i,m)};Fr.prototype.listenerCount=qC;function qC(i){var m=this._events;if(m!==void 0){var e=m[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}Fr.prototype.eventNames=function(){return this._eventsCount>0?fh(this._events):[]};function KC(i,m){for(var e=new Array(m),A=0;A<m;++A)e[A]=i[A];return e}function f1(i,m){for(;m+1<i.length;m++)i[m]=i[m+1];i.pop()}function c1(i){for(var m=new Array(i.length),e=0;e<m.length;++e)m[e]=i[e].listener||i[e];return m}function p1(i,m){return new Promise(function(e,A){function R(F){i.removeListener(m,L),A(F)}function L(){typeof i.removeListener=="function"&&i.removeListener("error",R),e([].slice.call(arguments))}ex(i,m,L,{once:!0}),m!=="error"&&d1(i,R,{once:!0})})}function d1(i,m,e){typeof i.on=="function"&&ex(i,"error",m,e)}function ex(i,m,e,A){if(typeof i.on=="function")A.once?i.once(m,e):i.on(m,e);else if(typeof i.addEventListener=="function")i.addEventListener(m,function R(L){A.once&&i.removeEventListener(m,R),e(L)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var Om=yr((hx,gx)=>{(function(i){typeof hx=="object"&&typeof gx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(L,F,Z,M){if(Z&&Z.call){var Y=Z;Z=null}else var Y=R(L,Z,"rangeFinder");typeof F=="number"&&(F=i.Pos(F,0));var P=R(L,Z,"minFoldSize");function D(J){var O=Y(L,F);if(!O||O.to.line-O.from.line<P)return null;if(M==="fold")return O;for(var V=L.findMarksAt(O.from),H=0;H<V.length;++H)if(V[H].__isFold){if(!J)return null;O.cleared=!0,V[H].clear()}return O}var z=D(!0);if(R(L,Z,"scanUp"))for(;!z&&F.line>L.firstLine();)F=i.Pos(F.line-1,0),z=D(!1);if(!(!z||z.cleared||M==="unfold")){var W=e(L,Z,z);i.on(W,"mousedown",function(J){$.clear(),i.e_preventDefault(J)});var $=L.markText(z.from,z.to,{replacedWith:W,clearOnEnter:R(L,Z,"clearOnEnter"),__isFold:!0});$.on("clear",function(J,O){i.signal(L,"unfold",L,J,O)}),i.signal(L,"fold",L,z.from,z.to)}}function e(L,F,Z){var M=R(L,F,"widget");if(typeof M=="function"&&(M=M(Z.from,Z.to)),typeof M=="string"){var Y=document.createTextNode(M);M=document.createElement("span"),M.appendChild(Y),M.className="CodeMirror-foldmarker"}else M&&(M=M.cloneNode(!0));return M}i.newFoldFunction=function(L,F){return function(Z,M){m(Z,M,{rangeFinder:L,widget:F})}},i.defineExtension("foldCode",function(L,F,Z){m(this,L,F,Z)}),i.defineExtension("isFolded",function(L){for(var F=this.findMarksAt(L),Z=0;Z<F.length;++Z)if(F[Z].__isFold)return!0}),i.commands.toggleFold=function(L){L.foldCode(L.getCursor())},i.commands.fold=function(L){L.foldCode(L.getCursor(),null,"fold")},i.commands.unfold=function(L){L.foldCode(L.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(L){L.operation(function(){for(var F=L.firstLine(),Z=L.lastLine();F<=Z;F++)L.foldCode(i.Pos(F,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(L){L.operation(function(){for(var F=L.firstLine(),Z=L.lastLine();F<=Z;F++)L.foldCode(i.Pos(F,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var L=Array.prototype.slice.call(arguments,0);return function(F,Z){for(var M=0;M<L.length;++M){var Y=L[M](F,Z);if(Y)return Y}}}),i.registerHelper("fold","auto",function(L,F){for(var Z=L.getHelpers(F,"fold"),M=0;M<Z.length;M++){var Y=Z[M](L,F);if(Y)return Y}});var A={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function R(L,F,Z){if(F&&F[Z]!==void 0)return F[Z];var M=L.options.foldOptions;return M&&M[Z]!==void 0?M[Z]:A[Z]}i.defineExtension("foldOption",function(L,F){return R(this,L,F)})})});var vx=yr((Ex,mx)=>{(function(i){typeof Ex=="object"&&typeof mx=="object"?i(ni(),Om()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function($,J,O){O&&O!=i.Init&&($.clearGutter($.state.foldGutter.options.gutter),$.state.foldGutter=null,$.off("gutterClick",Y),$.off("changes",D),$.off("viewportChange",z),$.off("fold",W),$.off("unfold",W),$.off("swapDoc",D),$.off("optionChange",P)),J&&($.state.foldGutter=new e(A(J)),M($),$.on("gutterClick",Y),$.on("changes",D),$.on("viewportChange",z),$.on("fold",W),$.on("unfold",W),$.on("swapDoc",D),$.on("optionChange",P))});var m=i.Pos;function e($){this.options=$,this.from=this.to=0}function A($){return $===!0&&($={}),$.gutter==null&&($.gutter="CodeMirror-foldgutter"),$.indicatorOpen==null&&($.indicatorOpen="CodeMirror-foldgutter-open"),$.indicatorFolded==null&&($.indicatorFolded="CodeMirror-foldgutter-folded"),$}function R($,J){for(var O=$.findMarks(m(J,0),m(J+1,0)),V=0;V<O.length;++V)if(O[V].__isFold){var H=O[V].find(-1);if(H&&H.line===J)return O[V]}}function L($){if(typeof $=="string"){var J=document.createElement("div");return J.className=$+" CodeMirror-guttermarker-subtle",J}else return $.cloneNode(!0)}function F($,J,O){var V=$.state.foldGutter.options,H=J-1,q=$.foldOption(V,"minFoldSize"),K=$.foldOption(V,"rangeFinder"),ee=typeof V.indicatorFolded=="string"&&Z(V.indicatorFolded),ne=typeof V.indicatorOpen=="string"&&Z(V.indicatorOpen);$.eachLine(J,O,function(de){++H;var Se=null,be=de.gutterMarkers;if(be&&(be=be[V.gutter]),R($,H)){if(ee&&be&&ee.test(be.className))return;Se=L(V.indicatorFolded)}else{var Ze=m(H,0),Be=K&&K($,Ze);if(Be&&Be.to.line-Be.from.line>=q){if(ne&&be&&ne.test(be.className))return;Se=L(V.indicatorOpen)}}!Se&&!be||$.setGutterMarker(de,V.gutter,Se)})}function Z($){return new RegExp("(^|\\s)"+$+"(?:$|\\s)\\s*")}function M($){var J=$.getViewport(),O=$.state.foldGutter;O&&($.operation(function(){F($,J.from,J.to)}),O.from=J.from,O.to=J.to)}function Y($,J,O){var V=$.state.foldGutter;if(V){var H=V.options;if(O==H.gutter){var q=R($,J);q?q.clear():$.foldCode(m(J,0),H)}}}function P($,J){J=="mode"&&D($)}function D($){var J=$.state.foldGutter;if(J){var O=J.options;J.from=J.to=0,clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){M($)},O.foldOnChangeTimeSpan||600)}}function z($){var J=$.state.foldGutter;if(J){var O=J.options;clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){var V=$.getViewport();J.from==J.to||V.from-J.to>20||J.from-V.to>20?M($):$.operation(function(){V.from<J.from&&(F($,V.from,J.from),J.from=V.from),V.to>J.to&&(F($,J.to,V.to),J.to=V.to)})},O.updateViewportTimeSpan||400)}}function W($,J){var O=$.state.foldGutter;if(O){var V=J.line;V>=O.from&&V<O.to&&F($,V,V+1)}}})});var xx=yr((Ix,Cx)=>{(function(i){typeof Ix=="object"&&typeof Cx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(O,V){return O.line-V.line||O.ch-V.ch}var A="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",R=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("<(/?)(["+A+"]["+R+"]*)","g");function F(O,V,H,q){this.line=V,this.ch=H,this.cm=O,this.text=O.getLine(V),this.min=q?Math.max(q.from,O.firstLine()):O.firstLine(),this.max=q?Math.min(q.to-1,O.lastLine()):O.lastLine()}function Z(O,V){var H=O.cm.getTokenTypeAt(m(O.line,V));return H&&/\btag\b/.test(H)}function M(O){if(!(O.line>=O.max))return O.ch=0,O.text=O.cm.getLine(++O.line),!0}function Y(O){if(!(O.line<=O.min))return O.text=O.cm.getLine(--O.line),O.ch=O.text.length,!0}function P(O){for(;;){var V=O.text.indexOf(">",O.ch);if(V==-1){if(M(O))continue;return}if(!Z(O,V+1)){O.ch=V+1;continue}var H=O.text.lastIndexOf("/",V),q=H>-1&&!/\S/.test(O.text.slice(H+1,V));return O.ch=V+1,q?"selfClose":"regular"}}function D(O){for(;;){var V=O.ch?O.text.lastIndexOf("<",O.ch-1):-1;if(V==-1){if(Y(O))continue;return}if(!Z(O,V+1)){O.ch=V;continue}L.lastIndex=V,O.ch=V;var H=L.exec(O.text);if(H&&H.index==V)return H}}function z(O){for(;;){L.lastIndex=O.ch;var V=L.exec(O.text);if(!V){if(M(O))continue;return}if(!Z(O,V.index+1)){O.ch=V.index+1;continue}return O.ch=V.index+V[0].length,V}}function W(O){for(;;){var V=O.ch?O.text.lastIndexOf(">",O.ch-1):-1;if(V==-1){if(Y(O))continue;return}if(!Z(O,V+1)){O.ch=V;continue}var H=O.text.lastIndexOf("/",V),q=H>-1&&!/\S/.test(O.text.slice(H+1,V));return O.ch=V+1,q?"selfClose":"regular"}}function $(O,V){for(var H=[];;){var q=z(O),K,ee=O.line,ne=O.ch-(q?q[0].length:0);if(!q||!(K=P(O)))return;if(K!="selfClose")if(q[1]){for(var de=H.length-1;de>=0;--de)if(H[de]==q[2]){H.length=de;break}if(de<0&&(!V||V==q[2]))return{tag:q[2],from:m(ee,ne),to:m(O.line,O.ch)}}else H.push(q[2])}}function J(O,V){for(var H=[];;){var q=W(O);if(!q)return;if(q=="selfClose"){D(O);continue}var K=O.line,ee=O.ch,ne=D(O);if(!ne)return;if(ne[1])H.push(ne[2]);else{for(var de=H.length-1;de>=0;--de)if(H[de]==ne[2]){H.length=de;break}if(de<0&&(!V||V==ne[2]))return{tag:ne[2],from:m(O.line,O.ch),to:m(K,ee)}}}}i.registerHelper("fold","xml",function(O,V){for(var H=new F(O,V.line,0);;){var q=z(H);if(!q||H.line!=V.line)return;var K=P(H);if(!K)return;if(!q[1]&&K!="selfClose"){var ee=m(H.line,H.ch),ne=$(H,q[2]);return ne&&e(ne.from,ee)>0?{from:ee,to:ne.from}:null}}}),i.findMatchingTag=function(O,V,H){var q=new F(O,V.line,V.ch,H);if(!(q.text.indexOf(">")==-1&&q.text.indexOf("<")==-1)){var K=P(q),ee=K&&m(q.line,q.ch),ne=K&&D(q);if(!(!K||!ne||e(q,V)>0)){var de={from:m(q.line,q.ch),to:ee,tag:ne[2]};return K=="selfClose"?{open:de,close:null,at:"open"}:ne[1]?{open:J(q,ne[2]),close:de,at:"close"}:(q=new F(O,ee.line,ee.ch,H),{open:de,close:$(q,ne[2]),at:"open"})}}},i.findEnclosingTag=function(O,V,H,q){for(var K=new F(O,V.line,V.ch,H);;){var ee=J(K,q);if(!ee)break;var ne=new F(O,V.line,V.ch,H),de=$(ne,ee.tag);if(de)return{open:ee,close:de}}},i.scanForClosingTag=function(O,V,H,q){var K=new F(O,V.line,V.ch,q?{from:0,to:q}:null);return $(K,H)}})});var Nx=yr((bx,Ax)=>{(function(i){typeof bx=="object"&&typeof Ax=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(e){return function(A,R){var L=R.line,F=A.getLine(L);function Z(W){for(var $,J=R.ch,O=0;;){var V=J<=0?-1:F.lastIndexOf(W[0],J-1);if(V==-1){if(O==1)break;O=1,J=F.length;continue}if(O==1&&V<R.ch)break;if($=A.getTokenTypeAt(i.Pos(L,V+1)),!/^(comment|string)/.test($))return{ch:V+1,tokenType:$,pair:W};J=V-1}}function M(W){var $=1,J=A.lastLine(),O,V=W.ch,H;e:for(var q=L;q<=J;++q)for(var K=A.getLine(q),ee=q==L?V:0;;){var ne=K.indexOf(W.pair[0],ee),de=K.indexOf(W.pair[1],ee);if(ne<0&&(ne=K.length),de<0&&(de=K.length),ee=Math.min(ne,de),ee==K.length)break;if(A.getTokenTypeAt(i.Pos(q,ee+1))==W.tokenType){if(ee==ne)++$;else if(!--$){O=q,H=ee;break e}}++ee}return O==null||L==O?null:{from:i.Pos(L,V),to:i.Pos(O,H)}}for(var Y=[],P=0;P<e.length;P++){var D=Z(e[P]);D&&Y.push(D)}Y.sort(function(W,$){return W.ch-$.ch});for(var P=0;P<Y.length;P++){var z=M(Y[P]);if(z)return z}return null}}i.registerHelper("fold","brace",m([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",m([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,A){function R(P){if(P<e.firstLine()||P>e.lastLine())return null;var D=e.getTokenAt(i.Pos(P,1));if(/\S/.test(D.string)||(D=e.getTokenAt(i.Pos(P,D.end+1))),D.type!="keyword"||D.string!="import")return null;for(var z=P,W=Math.min(e.lastLine(),P+10);z<=W;++z){var $=e.getLine(z),J=$.indexOf(";");if(J!=-1)return{startCh:D.end,end:i.Pos(z,J)}}}var L=A.line,F=R(L),Z;if(!F||R(L-1)||(Z=R(L-2))&&Z.end.line==L-1)return null;for(var M=F.end;;){var Y=R(M.line+1);if(Y==null)break;M=Y.end}return{from:e.clipPos(i.Pos(L,F.startCh+1)),to:M}}),i.registerHelper("fold","include",function(e,A){function R(Y){if(Y<e.firstLine()||Y>e.lastLine())return null;var P=e.getTokenAt(i.Pos(Y,1));if(/\S/.test(P.string)||(P=e.getTokenAt(i.Pos(Y,P.end+1))),P.type=="meta"&&P.string.slice(0,8)=="#include")return P.start+8}var L=A.line,F=R(L);if(F==null||R(L-1)!=null)return null;for(var Z=L;;){var M=R(Z+1);if(M==null)break;++Z}return{from:i.Pos(L,F+1),to:e.clipPos(i.Pos(Z))}})})});var yx=yr((Tx,Rx)=>{(function(i){typeof Tx=="object"&&typeof Rx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function(J,O,V){if(!O)return J.showHint(V);V&&V.async&&(O.async=!0);var H={hint:O};if(V)for(var q in V)H[q]=V[q];return J.showHint(H)},i.defineExtension("showHint",function(J){J=F(this,this.getCursor("start"),J);var O=this.listSelections();if(!(O.length>1)){if(this.somethingSelected()){if(!J.hint.supportsSelection)return;for(var V=0;V<O.length;V++)if(O[V].head.line!=O[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var H=this.state.completionActive=new A(this,J);H.options.hint&&(i.signal(this,"startCompletion",this),H.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function A(J,O){if(this.cm=J,this.options=O,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 V=this;J.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var R=window.requestAnimationFrame||function(J){return setTimeout(J,1e3/60)},L=window.cancelAnimationFrame||clearTimeout;A.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&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(J,O){var V=J.list[O],H=this;this.cm.operation(function(){V.hint?V.hint(H.cm,J,V):H.cm.replaceRange(Z(V),V.from||J.from,V.to||J.to,"complete"),i.signal(J,"pick",V),H.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(L(this.debounce),this.debounce=0);var J=this.startPos;this.data&&(J=this.data.from);var O=this.cm.getCursor(),V=this.cm.getLine(O.line);if(O.line!=this.startPos.line||V.length-O.ch!=this.startLen-this.startPos.ch||O.ch<J.ch||this.cm.somethingSelected()||!O.ch||this.options.closeCharacters.test(V.charAt(O.ch-1)))this.close();else{var H=this;this.debounce=R(function(){H.update()}),this.widget&&this.widget.disable()}},update:function(J){if(this.tick!=null){var O=this,V=++this.tick;z(this.options.hint,this.cm,this.options,function(H){O.tick==V&&O.finishUpdate(H,J)})}},finishUpdate:function(J,O){this.data&&i.signal(this.data,"update");var V=this.widget&&this.widget.picked||O&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=J,J&&J.list.length&&(V&&J.list.length==1?this.pick(J,0):(this.widget=new P(this,J),i.signal(J,"shown")))}};function F(J,O,V){var H=J.options.hintOptions,q={};for(var K in $)q[K]=$[K];if(H)for(var K in H)H[K]!==void 0&&(q[K]=H[K]);if(V)for(var K in V)V[K]!==void 0&&(q[K]=V[K]);return q.hint.resolve&&(q.hint=q.hint.resolve(J,O)),q}function Z(J){return typeof J=="string"?J:J.text}function M(J,O){var V={Up:function(){O.moveFocus(-1)},Down:function(){O.moveFocus(1)},PageUp:function(){O.moveFocus(-O.menuSize()+1,!0)},PageDown:function(){O.moveFocus(O.menuSize()-1,!0)},Home:function(){O.setFocus(0)},End:function(){O.setFocus(O.length-1)},Enter:O.pick,Tab:O.pick,Esc:O.close},H=/Mac/.test(navigator.platform);H&&(V["Ctrl-P"]=function(){O.moveFocus(-1)},V["Ctrl-N"]=function(){O.moveFocus(1)});var q=J.options.customKeys,K=q?{}:V;function ee(Se,be){var Ze;typeof be!="string"?Ze=function(Be){return be(Be,O)}:V.hasOwnProperty(be)?Ze=V[be]:Ze=be,K[Se]=Ze}if(q)for(var ne in q)q.hasOwnProperty(ne)&&ee(ne,q[ne]);var de=J.options.extraKeys;if(de)for(var ne in de)de.hasOwnProperty(ne)&&ee(ne,de[ne]);return K}function Y(J,O){for(;O&&O!=J;){if(O.nodeName.toUpperCase()==="LI"&&O.parentNode==J)return O;O=O.parentNode}}function P(J,O){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=J,this.data=O,this.picked=!1;var V=this,H=J.cm,q=H.getInputField().ownerDocument,K=q.defaultView||q.parentWindow,ee=this.hints=q.createElement("ul");ee.setAttribute("role","listbox"),ee.setAttribute("aria-expanded","true"),ee.id=this.id;var ne=J.cm.options.theme;ee.className="CodeMirror-hints "+ne,this.selectedHint=O.selectedHint||0;for(var de=O.list,Se=0;Se<de.length;++Se){var be=ee.appendChild(q.createElement("li")),Ze=de[Se],Be=m+(Se!=this.selectedHint?"":" "+e);Ze.className!=null&&(Be=Ze.className+" "+Be),be.className=Be,Se==this.selectedHint&&be.setAttribute("aria-selected","true"),be.id=this.id+"-"+Se,be.setAttribute("role","option"),Ze.render?Ze.render(be,O,Ze):be.appendChild(q.createTextNode(Ze.displayText||Z(Ze))),be.hintId=Se}var Ke=J.options.container||q.body,Ee=H.cursorCoords(J.options.alignWithWord?O.from:null),Er=Ee.left,ur=Ee.bottom,or=!0,Or=0,je=0;if(Ke!==q.body){var et=["absolute","relative","fixed"].indexOf(K.getComputedStyle(Ke).position)!==-1,rt=et?Ke:Ke.offsetParent,cr=rt.getBoundingClientRect(),qe=q.body.getBoundingClientRect();Or=cr.left-qe.left-rt.scrollLeft,je=cr.top-qe.top-rt.scrollTop}ee.style.left=Er-Or+"px",ee.style.top=ur-je+"px";var Pe=K.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),Ir=K.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);Ke.appendChild(ee),H.getInputField().setAttribute("aria-autocomplete","list"),H.getInputField().setAttribute("aria-owns",this.id),H.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Me=J.options.moveOnOverlap?ee.getBoundingClientRect():new DOMRect,Rr=J.options.paddingForScrollbar?ee.scrollHeight>ee.clientHeight+1:!1,dr;setTimeout(function(){dr=H.getScrollInfo()});var Hr=Me.bottom-Ir;if(Hr>0){var Cr=Me.bottom-Me.top,ti=Me.top-(Ee.bottom-Ee.top)-2;Ir-Me.top<ti?(Cr>ti&&(ee.style.height=(Cr=ti)+"px"),ee.style.top=(ur=Ee.top-Cr)-je+"px",or=!1):ee.style.height=Ir-Me.top-2+"px"}var Ge=Me.right-Pe;if(Rr&&(Ge+=H.display.nativeBarWidth),Ge>0&&(Me.right-Me.left>Pe&&(ee.style.width=Pe-5+"px",Ge-=Me.right-Me.left-Pe),ee.style.left=(Er=Math.max(Ee.left-Ge-Or,0))+"px"),Rr)for(var fe=ee.firstChild;fe;fe=fe.nextSibling)fe.style.paddingRight=H.display.nativeBarWidth+"px";if(H.addKeyMap(this.keyMap=M(J,{moveFocus:function(Ue,Vr){V.changeActive(V.selectedHint+Ue,Vr)},setFocus:function(Ue){V.changeActive(Ue)},menuSize:function(){return V.screenAmount()},length:de.length,close:function(){J.close()},pick:function(){V.pick()},data:O})),J.options.closeOnUnfocus){var Ar;H.on("blur",this.onBlur=function(){Ar=setTimeout(function(){J.close()},100)}),H.on("focus",this.onFocus=function(){clearTimeout(Ar)})}H.on("scroll",this.onScroll=function(){var Ue=H.getScrollInfo(),Vr=H.getWrapperElement().getBoundingClientRect();dr||(dr=H.getScrollInfo());var ii=ur+dr.top-Ue.top,xe=ii-(K.pageYOffset||(q.documentElement||q.body).scrollTop);if(or||(xe+=ee.offsetHeight),xe<=Vr.top||xe>=Vr.bottom)return J.close();ee.style.top=ii+"px",ee.style.left=Er+dr.left-Ue.left+"px"}),i.on(ee,"dblclick",function(Ue){var Vr=Y(ee,Ue.target||Ue.srcElement);Vr&&Vr.hintId!=null&&(V.changeActive(Vr.hintId),V.pick())}),i.on(ee,"click",function(Ue){var Vr=Y(ee,Ue.target||Ue.srcElement);Vr&&Vr.hintId!=null&&(V.changeActive(Vr.hintId),J.options.completeOnSingleClick&&V.pick())}),i.on(ee,"mousedown",function(){setTimeout(function(){H.focus()},20)});var mr=this.getSelectedHintRange();return(mr.from!==0||mr.to!==0)&&this.scrollToActive(),i.signal(O,"select",de[this.selectedHint],ee.childNodes[this.selectedHint]),!0}P.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 J=this.completion.cm.getInputField();J.removeAttribute("aria-activedescendant"),J.removeAttribute("aria-owns");var O=this.completion.cm;this.completion.options.closeOnUnfocus&&(O.off("blur",this.onBlur),O.off("focus",this.onFocus)),O.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var J=this;this.keyMap={Enter:function(){J.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(J,O){if(J>=this.data.list.length?J=O?this.data.list.length-1:0:J<0&&(J=O?0:this.data.list.length-1),this.selectedHint!=J){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+e,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=J],V.className+=" "+e,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var J=this.getSelectedHintRange(),O=this.hints.childNodes[J.from],V=this.hints.childNodes[J.to],H=this.hints.firstChild;O.offsetTop<this.hints.scrollTop?this.hints.scrollTop=O.offsetTop-H.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+H.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var J=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-J),to:Math.min(this.data.list.length-1,this.selectedHint+J)}}};function D(J,O){if(!J.somethingSelected())return O;for(var V=[],H=0;H<O.length;H++)O[H].supportsSelection&&V.push(O[H]);return V}function z(J,O,V,H){if(J.async)J(O,H,V);else{var q=J(O,V);q&&q.then?q.then(H):H(q)}}function W(J,O){var V=J.getHelpers(O,"hint"),H;if(V.length){var q=function(K,ee,ne){var de=D(K,V);function Se(be){if(be==de.length)return ee(null);z(de[be],K,ne,function(Ze){Ze&&Ze.list.length>0?ee(Ze):Se(be+1)})}Se(0)};return q.async=!0,q.supportsSelection=!0,q}else return(H=J.getHelper(J.getCursor(),"hintWords"))?function(K){return i.hint.fromList(K,{words:H})}:i.hint.anyword?function(K,ee){return i.hint.anyword(K,ee)}:function(){}}i.registerHelper("hint","auto",{resolve:W}),i.registerHelper("hint","fromList",function(J,O){var V=J.getCursor(),H=J.getTokenAt(V),q,K=i.Pos(V.line,H.start),ee=V;H.start<V.ch&&/\w/.test(H.string.charAt(V.ch-H.start-1))?q=H.string.substr(0,V.ch-H.start):(q="",K=V);for(var ne=[],de=0;de<O.words.length;de++){var Se=O.words[de];Se.slice(0,q.length)==q&&ne.push(Se)}if(ne.length)return{list:ne,from:K,to:ee}}),i.commands.autocomplete=i.showHint;var $={hint:i.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};i.defineOption("hintOptions",null)})});var Vm=yr((Sx,Lx)=>{(function(i){typeof Sx=="object"&&typeof Lx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(O){var V=O.flags;return V??(O.ignoreCase?"i":"")+(O.global?"g":"")+(O.multiline?"m":"")}function A(O,V){for(var H=e(O),q=H,K=0;K<V.length;K++)q.indexOf(V.charAt(K))==-1&&(q+=V.charAt(K));return H==q?O:new RegExp(O.source,q)}function R(O){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(O.source)}function L(O,V,H){V=A(V,"g");for(var q=H.line,K=H.ch,ee=O.lastLine();q<=ee;q++,K=0){V.lastIndex=K;var ne=O.getLine(q),de=V.exec(ne);if(de)return{from:m(q,de.index),to:m(q,de.index+de[0].length),match:de}}}function F(O,V,H){if(!R(V))return L(O,V,H);V=A(V,"gm");for(var q,K=1,ee=H.line,ne=O.lastLine();ee<=ne;){for(var de=0;de<K&&!(ee>ne);de++){var Se=O.getLine(ee++);q=q==null?Se:q+`
31
- `+Se}K=K*2,V.lastIndex=H.ch;var be=V.exec(q);if(be){var Ze=q.slice(0,be.index).split(`
30
+ `+F+"}":"{"+Z.join(",")+"}",gap=F,R}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,m,e){var A;if(gap="",indent="",typeof e=="number")for(A=0;A<e;A+=1)indent+=" ";else typeof e=="string"&&(indent=e);if(rep=m,m&&typeof m!="function"&&(typeof m!="object"||typeof m.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,m){var e,A,R=i[m];if(R&&typeof R=="object")for(e in R)Object.prototype.hasOwnProperty.call(R,e)&&(A=walk(R,e),A!==void 0?R[e]=A:delete R[e]);return reviver.call(i,m,R)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(i){return"\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Hv=yr((EL,Yv)=>{Yv.exports=SA;function SA(){return Pv(),{}}});var _v=yr((mL,Jv)=>{var LA=xv(),wA=Xv(),GA=[Hv()];Jv.exports=LA.createStore(wA,GA)});var $v=yr((AL,zv)=>{"use strict";zv.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,m=>`%${m.charCodeAt(0).toString(16).toUpperCase()}`)});var t0=yr((NL,r0)=>{"use strict";var e0="%[a-f0-9]{2}",qv=new RegExp("("+e0+")|([^%]+?)","gi"),Kv=new RegExp("("+e0+")+","gi");function pm(i,m){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;m=m||1;var e=i.slice(0,m),A=i.slice(m);return Array.prototype.concat.call([],pm(e),pm(A))}function FA(i){try{return decodeURIComponent(i)}catch{for(var m=i.match(qv)||[],e=1;e<m.length;e++)i=pm(m,e).join(""),m=i.match(qv)||[];return i}}function BA(i){for(var m={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=Kv.exec(i);e;){try{m[e[0]]=decodeURIComponent(e[0])}catch{var A=FA(e[0]);A!==e[0]&&(m[e[0]]=A)}e=Kv.exec(i)}m["%C2"]="\uFFFD";for(var R=Object.keys(m),L=0;L<R.length;L++){var F=R[L];i=i.replace(new RegExp(F,"g"),m[F])}return i}r0.exports=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return BA(i)}}});var s0=yr((TL,i0)=>{"use strict";i0.exports=(i,m)=>{if(!(typeof i=="string"&&typeof m=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(m==="")return[i];let e=i.indexOf(m);return e===-1?[i]:[i.slice(0,e),i.slice(e+m.length)]}});var o0=yr((RL,n0)=>{"use strict";n0.exports=function(i,m){for(var e={},A=Object.keys(i),R=Array.isArray(m),L=0;L<A.length;L++){var F=A[L],Z=i[F];(R?m.indexOf(F)!==-1:m(F,Z,i))&&(e[F]=Z)}return e}});var Zd=yr(Gi=>{"use strict";var OA=$v(),VA=t0(),l0=s0(),WA=o0(),ZA=i=>i==null;function MA(i){switch(i.arrayFormat){case"index":return m=>(e,A)=>{let R=e.length;return A===void 0||i.skipNull&&A===null||i.skipEmptyString&&A===""?e:A===null?[...e,[ri(m,i),"[",R,"]"].join("")]:[...e,[ri(m,i),"[",ri(R,i),"]=",ri(A,i)].join("")]};case"bracket":return m=>(e,A)=>A===void 0||i.skipNull&&A===null||i.skipEmptyString&&A===""?e:A===null?[...e,[ri(m,i),"[]"].join("")]:[...e,[ri(m,i),"[]=",ri(A,i)].join("")];case"comma":case"separator":return m=>(e,A)=>A==null||A.length===0?e:e.length===0?[[ri(m,i),"=",ri(A,i)].join("")]:[[e,ri(A,i)].join(i.arrayFormatSeparator)];default:return m=>(e,A)=>A===void 0||i.skipNull&&A===null||i.skipEmptyString&&A===""?e:A===null?[...e,ri(m,i)]:[...e,[ri(m,i),"=",ri(A,i)].join("")]}}function DA(i){let m;switch(i.arrayFormat){case"index":return(e,A,R)=>{if(m=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!m){R[e]=A;return}R[e]===void 0&&(R[e]={}),R[e][m[1]]=A};case"bracket":return(e,A,R)=>{if(m=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!m){R[e]=A;return}if(R[e]===void 0){R[e]=[A];return}R[e]=[].concat(R[e],A)};case"comma":case"separator":return(e,A,R)=>{let L=typeof A=="string"&&A.includes(i.arrayFormatSeparator),F=typeof A=="string"&&!L&&Yl(A,i).includes(i.arrayFormatSeparator);A=F?Yl(A,i):A;let Z=L||F?A.split(i.arrayFormatSeparator).map(M=>Yl(M,i)):A===null?A:Yl(A,i);R[e]=Z};default:return(e,A,R)=>{if(R[e]===void 0){R[e]=A;return}R[e]=[].concat(R[e],A)}}}function u0(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ri(i,m){return m.encode?m.strict?OA(i):encodeURIComponent(i):i}function Yl(i,m){return m.decode?VA(i):i}function f0(i){return Array.isArray(i)?i.sort():typeof i=="object"?f0(Object.keys(i)).sort((m,e)=>Number(m)-Number(e)).map(m=>i[m]):i}function c0(i){let m=i.indexOf("#");return m!==-1&&(i=i.slice(0,m)),i}function QA(i){let m="",e=i.indexOf("#");return e!==-1&&(m=i.slice(e)),m}function p0(i){i=c0(i);let m=i.indexOf("?");return m===-1?"":i.slice(m+1)}function a0(i,m){return m.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):m.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function d0(i,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),u0(m.arrayFormatSeparator);let e=DA(m),A=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return A;for(let R of i.split("&")){if(R==="")continue;let[L,F]=l0(m.decode?R.replace(/\+/g," "):R,"=");F=F===void 0?null:["comma","separator"].includes(m.arrayFormat)?F:Yl(F,m),e(Yl(L,m),F,A)}for(let R of Object.keys(A)){let L=A[R];if(typeof L=="object"&&L!==null)for(let F of Object.keys(L))L[F]=a0(L[F],m);else A[R]=a0(L,m)}return m.sort===!1?A:(m.sort===!0?Object.keys(A).sort():Object.keys(A).sort(m.sort)).reduce((R,L)=>{let F=A[L];return F&&typeof F=="object"&&!Array.isArray(F)?R[L]=f0(F):R[L]=F,R},Object.create(null))}Gi.extract=p0;Gi.parse=d0;Gi.stringify=(i,m)=>{if(!i)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),u0(m.arrayFormatSeparator);let e=F=>m.skipNull&&ZA(i[F])||m.skipEmptyString&&i[F]==="",A=MA(m),R={};for(let F of Object.keys(i))e(F)||(R[F]=i[F]);let L=Object.keys(R);return m.sort!==!1&&L.sort(m.sort),L.map(F=>{let Z=i[F];return Z===void 0?"":Z===null?ri(F,m):Array.isArray(Z)?Z.reduce(A(F),[]).join("&"):ri(F,m)+"="+ri(Z,m)}).filter(F=>F.length>0).join("&")};Gi.parseUrl=(i,m)=>{m=Object.assign({decode:!0},m);let[e,A]=l0(i,"#");return Object.assign({url:e.split("?")[0]||"",query:d0(p0(i),m)},m&&m.parseFragmentIdentifier&&A?{fragmentIdentifier:Yl(A,m)}:{})};Gi.stringifyUrl=(i,m)=>{m=Object.assign({encode:!0,strict:!0},m);let e=c0(i.url).split("?")[0]||"",A=Gi.extract(i.url),R=Gi.parse(A,{sort:!1}),L=Object.assign(R,i.query),F=Gi.stringify(L,m);F&&(F=`?${F}`);let Z=QA(i.url);return i.fragmentIdentifier&&(Z=`#${ri(i.fragmentIdentifier,m)}`),`${e}${F}${Z}`};Gi.pick=(i,m,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:A,query:R,fragmentIdentifier:L}=Gi.parseUrl(i,e);return Gi.stringifyUrl({url:A,query:WA(R,m),fragmentIdentifier:L},e)};Gi.exclude=(i,m,e)=>{let A=Array.isArray(m)?R=>!m.includes(R):(R,L)=>!m(R,L);return Gi.pick(i,A,e)}});var rx=yr((mZ,Gm)=>{"use strict";var jf=typeof Reflect=="object"?Reflect:null,YC=jf&&typeof jf.apply=="function"?jf.apply:function(m,e,A){return Function.prototype.apply.call(m,e,A)},fh;jf&&typeof jf.ownKeys=="function"?fh=jf.ownKeys:Object.getOwnPropertySymbols?fh=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:fh=function(m){return Object.getOwnPropertyNames(m)};function l1(i){console&&console.warn&&console.warn(i)}var JC=Number.isNaN||function(m){return m!==m};function Fr(){Fr.init.call(this)}Gm.exports=Fr;Gm.exports.once=p1;Fr.EventEmitter=Fr;Fr.prototype._events=void 0;Fr.prototype._eventsCount=0;Fr.prototype._maxListeners=void 0;var HC=10;function ch(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(Fr,"defaultMaxListeners",{enumerable:!0,get:function(){return HC},set:function(i){if(typeof i!="number"||i<0||JC(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");HC=i}});Fr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Fr.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||JC(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function _C(i){return i._maxListeners===void 0?Fr.defaultMaxListeners:i._maxListeners}Fr.prototype.getMaxListeners=function(){return _C(this)};Fr.prototype.emit=function(m){for(var e=[],A=1;A<arguments.length;A++)e.push(arguments[A]);var R=m==="error",L=this._events;if(L!==void 0)R=R&&L.error===void 0;else if(!R)return!1;if(R){var F;if(e.length>0&&(F=e[0]),F instanceof Error)throw F;var Z=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw Z.context=F,Z}var M=L[m];if(M===void 0)return!1;if(typeof M=="function")YC(M,this,e);else for(var Y=M.length,X=KC(M,Y),A=0;A<Y;++A)YC(X[A],this,e);return!0};function jC(i,m,e,A){var R,L,F;if(ch(e),L=i._events,L===void 0?(L=i._events=Object.create(null),i._eventsCount=0):(L.newListener!==void 0&&(i.emit("newListener",m,e.listener?e.listener:e),L=i._events),F=L[m]),F===void 0)F=L[m]=e,++i._eventsCount;else if(typeof F=="function"?F=L[m]=A?[e,F]:[F,e]:A?F.unshift(e):F.push(e),R=_C(i),R>0&&F.length>R&&!F.warned){F.warned=!0;var Z=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");Z.name="MaxListenersExceededWarning",Z.emitter=i,Z.type=m,Z.count=F.length,l1(Z)}return i}Fr.prototype.addListener=function(m,e){return jC(this,m,e,!1)};Fr.prototype.on=Fr.prototype.addListener;Fr.prototype.prependListener=function(m,e){return jC(this,m,e,!0)};function u1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function zC(i,m,e){var A={fired:!1,wrapFn:void 0,target:i,type:m,listener:e},R=u1.bind(A);return R.listener=e,A.wrapFn=R,R}Fr.prototype.once=function(m,e){return ch(e),this.on(m,zC(this,m,e)),this};Fr.prototype.prependOnceListener=function(m,e){return ch(e),this.prependListener(m,zC(this,m,e)),this};Fr.prototype.removeListener=function(m,e){var A,R,L,F,Z;if(ch(e),R=this._events,R===void 0)return this;if(A=R[m],A===void 0)return this;if(A===e||A.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete R[m],R.removeListener&&this.emit("removeListener",m,A.listener||e));else if(typeof A!="function"){for(L=-1,F=A.length-1;F>=0;F--)if(A[F]===e||A[F].listener===e){Z=A[F].listener,L=F;break}if(L<0)return this;L===0?A.shift():f1(A,L),A.length===1&&(R[m]=A[0]),R.removeListener!==void 0&&this.emit("removeListener",m,Z||e)}return this};Fr.prototype.off=Fr.prototype.removeListener;Fr.prototype.removeAllListeners=function(m){var e,A,R;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[m]),this;if(arguments.length===0){var L=Object.keys(A),F;for(R=0;R<L.length;++R)F=L[R],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=A[m],typeof e=="function")this.removeListener(m,e);else if(e!==void 0)for(R=e.length-1;R>=0;R--)this.removeListener(m,e[R]);return this};function $C(i,m,e){var A=i._events;if(A===void 0)return[];var R=A[m];return R===void 0?[]:typeof R=="function"?e?[R.listener||R]:[R]:e?c1(R):KC(R,R.length)}Fr.prototype.listeners=function(m){return $C(this,m,!0)};Fr.prototype.rawListeners=function(m){return $C(this,m,!1)};Fr.listenerCount=function(i,m){return typeof i.listenerCount=="function"?i.listenerCount(m):qC.call(i,m)};Fr.prototype.listenerCount=qC;function qC(i){var m=this._events;if(m!==void 0){var e=m[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}Fr.prototype.eventNames=function(){return this._eventsCount>0?fh(this._events):[]};function KC(i,m){for(var e=new Array(m),A=0;A<m;++A)e[A]=i[A];return e}function f1(i,m){for(;m+1<i.length;m++)i[m]=i[m+1];i.pop()}function c1(i){for(var m=new Array(i.length),e=0;e<m.length;++e)m[e]=i[e].listener||i[e];return m}function p1(i,m){return new Promise(function(e,A){function R(F){i.removeListener(m,L),A(F)}function L(){typeof i.removeListener=="function"&&i.removeListener("error",R),e([].slice.call(arguments))}ex(i,m,L,{once:!0}),m!=="error"&&d1(i,R,{once:!0})})}function d1(i,m,e){typeof i.on=="function"&&ex(i,"error",m,e)}function ex(i,m,e,A){if(typeof i.on=="function")A.once?i.once(m,e):i.on(m,e);else if(typeof i.addEventListener=="function")i.addEventListener(m,function R(L){A.once&&i.removeEventListener(m,R),e(L)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var Om=yr((hx,gx)=>{(function(i){typeof hx=="object"&&typeof gx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(L,F,Z,M){if(Z&&Z.call){var Y=Z;Z=null}else var Y=R(L,Z,"rangeFinder");typeof F=="number"&&(F=i.Pos(F,0));var X=R(L,Z,"minFoldSize");function D(J){var O=Y(L,F);if(!O||O.to.line-O.from.line<X)return null;if(M==="fold")return O;for(var V=L.findMarksAt(O.from),H=0;H<V.length;++H)if(V[H].__isFold){if(!J)return null;O.cleared=!0,V[H].clear()}return O}var z=D(!0);if(R(L,Z,"scanUp"))for(;!z&&F.line>L.firstLine();)F=i.Pos(F.line-1,0),z=D(!1);if(!(!z||z.cleared||M==="unfold")){var W=e(L,Z,z);i.on(W,"mousedown",function(J){K.clear(),i.e_preventDefault(J)});var K=L.markText(z.from,z.to,{replacedWith:W,clearOnEnter:R(L,Z,"clearOnEnter"),__isFold:!0});K.on("clear",function(J,O){i.signal(L,"unfold",L,J,O)}),i.signal(L,"fold",L,z.from,z.to)}}function e(L,F,Z){var M=R(L,F,"widget");if(typeof M=="function"&&(M=M(Z.from,Z.to)),typeof M=="string"){var Y=document.createTextNode(M);M=document.createElement("span"),M.appendChild(Y),M.className="CodeMirror-foldmarker"}else M&&(M=M.cloneNode(!0));return M}i.newFoldFunction=function(L,F){return function(Z,M){m(Z,M,{rangeFinder:L,widget:F})}},i.defineExtension("foldCode",function(L,F,Z){m(this,L,F,Z)}),i.defineExtension("isFolded",function(L){for(var F=this.findMarksAt(L),Z=0;Z<F.length;++Z)if(F[Z].__isFold)return!0}),i.commands.toggleFold=function(L){L.foldCode(L.getCursor())},i.commands.fold=function(L){L.foldCode(L.getCursor(),null,"fold")},i.commands.unfold=function(L){L.foldCode(L.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(L){L.operation(function(){for(var F=L.firstLine(),Z=L.lastLine();F<=Z;F++)L.foldCode(i.Pos(F,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(L){L.operation(function(){for(var F=L.firstLine(),Z=L.lastLine();F<=Z;F++)L.foldCode(i.Pos(F,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var L=Array.prototype.slice.call(arguments,0);return function(F,Z){for(var M=0;M<L.length;++M){var Y=L[M](F,Z);if(Y)return Y}}}),i.registerHelper("fold","auto",function(L,F){for(var Z=L.getHelpers(F,"fold"),M=0;M<Z.length;M++){var Y=Z[M](L,F);if(Y)return Y}});var A={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function R(L,F,Z){if(F&&F[Z]!==void 0)return F[Z];var M=L.options.foldOptions;return M&&M[Z]!==void 0?M[Z]:A[Z]}i.defineExtension("foldOption",function(L,F){return R(this,L,F)})})});var vx=yr((Ex,mx)=>{(function(i){typeof Ex=="object"&&typeof mx=="object"?i(ni(),Om()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function(K,J,O){O&&O!=i.Init&&(K.clearGutter(K.state.foldGutter.options.gutter),K.state.foldGutter=null,K.off("gutterClick",Y),K.off("changes",D),K.off("viewportChange",z),K.off("fold",W),K.off("unfold",W),K.off("swapDoc",D),K.off("optionChange",X)),J&&(K.state.foldGutter=new e(A(J)),M(K),K.on("gutterClick",Y),K.on("changes",D),K.on("viewportChange",z),K.on("fold",W),K.on("unfold",W),K.on("swapDoc",D),K.on("optionChange",X))});var m=i.Pos;function e(K){this.options=K,this.from=this.to=0}function A(K){return K===!0&&(K={}),K.gutter==null&&(K.gutter="CodeMirror-foldgutter"),K.indicatorOpen==null&&(K.indicatorOpen="CodeMirror-foldgutter-open"),K.indicatorFolded==null&&(K.indicatorFolded="CodeMirror-foldgutter-folded"),K}function R(K,J){for(var O=K.findMarks(m(J,0),m(J+1,0)),V=0;V<O.length;++V)if(O[V].__isFold){var H=O[V].find(-1);if(H&&H.line===J)return O[V]}}function L(K){if(typeof K=="string"){var J=document.createElement("div");return J.className=K+" CodeMirror-guttermarker-subtle",J}else return K.cloneNode(!0)}function F(K,J,O){var V=K.state.foldGutter.options,H=J-1,$=K.foldOption(V,"minFoldSize"),q=K.foldOption(V,"rangeFinder"),ee=typeof V.indicatorFolded=="string"&&Z(V.indicatorFolded),ne=typeof V.indicatorOpen=="string"&&Z(V.indicatorOpen);K.eachLine(J,O,function(de){++H;var Se=null,be=de.gutterMarkers;if(be&&(be=be[V.gutter]),R(K,H)){if(ee&&be&&ee.test(be.className))return;Se=L(V.indicatorFolded)}else{var Ze=m(H,0),Be=q&&q(K,Ze);if(Be&&Be.to.line-Be.from.line>=$){if(ne&&be&&ne.test(be.className))return;Se=L(V.indicatorOpen)}}!Se&&!be||K.setGutterMarker(de,V.gutter,Se)})}function Z(K){return new RegExp("(^|\\s)"+K+"(?:$|\\s)\\s*")}function M(K){var J=K.getViewport(),O=K.state.foldGutter;O&&(K.operation(function(){F(K,J.from,J.to)}),O.from=J.from,O.to=J.to)}function Y(K,J,O){var V=K.state.foldGutter;if(V){var H=V.options;if(O==H.gutter){var $=R(K,J);$?$.clear():K.foldCode(m(J,0),H)}}}function X(K,J){J=="mode"&&D(K)}function D(K){var J=K.state.foldGutter;if(J){var O=J.options;J.from=J.to=0,clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){M(K)},O.foldOnChangeTimeSpan||600)}}function z(K){var J=K.state.foldGutter;if(J){var O=J.options;clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){var V=K.getViewport();J.from==J.to||V.from-J.to>20||J.from-V.to>20?M(K):K.operation(function(){V.from<J.from&&(F(K,V.from,J.from),J.from=V.from),V.to>J.to&&(F(K,J.to,V.to),J.to=V.to)})},O.updateViewportTimeSpan||400)}}function W(K,J){var O=K.state.foldGutter;if(O){var V=J.line;V>=O.from&&V<O.to&&F(K,V,V+1)}}})});var xx=yr((Ix,Cx)=>{(function(i){typeof Ix=="object"&&typeof Cx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(O,V){return O.line-V.line||O.ch-V.ch}var A="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",R=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("<(/?)(["+A+"]["+R+"]*)","g");function F(O,V,H,$){this.line=V,this.ch=H,this.cm=O,this.text=O.getLine(V),this.min=$?Math.max($.from,O.firstLine()):O.firstLine(),this.max=$?Math.min($.to-1,O.lastLine()):O.lastLine()}function Z(O,V){var H=O.cm.getTokenTypeAt(m(O.line,V));return H&&/\btag\b/.test(H)}function M(O){if(!(O.line>=O.max))return O.ch=0,O.text=O.cm.getLine(++O.line),!0}function Y(O){if(!(O.line<=O.min))return O.text=O.cm.getLine(--O.line),O.ch=O.text.length,!0}function X(O){for(;;){var V=O.text.indexOf(">",O.ch);if(V==-1){if(M(O))continue;return}if(!Z(O,V+1)){O.ch=V+1;continue}var H=O.text.lastIndexOf("/",V),$=H>-1&&!/\S/.test(O.text.slice(H+1,V));return O.ch=V+1,$?"selfClose":"regular"}}function D(O){for(;;){var V=O.ch?O.text.lastIndexOf("<",O.ch-1):-1;if(V==-1){if(Y(O))continue;return}if(!Z(O,V+1)){O.ch=V;continue}L.lastIndex=V,O.ch=V;var H=L.exec(O.text);if(H&&H.index==V)return H}}function z(O){for(;;){L.lastIndex=O.ch;var V=L.exec(O.text);if(!V){if(M(O))continue;return}if(!Z(O,V.index+1)){O.ch=V.index+1;continue}return O.ch=V.index+V[0].length,V}}function W(O){for(;;){var V=O.ch?O.text.lastIndexOf(">",O.ch-1):-1;if(V==-1){if(Y(O))continue;return}if(!Z(O,V+1)){O.ch=V;continue}var H=O.text.lastIndexOf("/",V),$=H>-1&&!/\S/.test(O.text.slice(H+1,V));return O.ch=V+1,$?"selfClose":"regular"}}function K(O,V){for(var H=[];;){var $=z(O),q,ee=O.line,ne=O.ch-($?$[0].length:0);if(!$||!(q=X(O)))return;if(q!="selfClose")if($[1]){for(var de=H.length-1;de>=0;--de)if(H[de]==$[2]){H.length=de;break}if(de<0&&(!V||V==$[2]))return{tag:$[2],from:m(ee,ne),to:m(O.line,O.ch)}}else H.push($[2])}}function J(O,V){for(var H=[];;){var $=W(O);if(!$)return;if($=="selfClose"){D(O);continue}var q=O.line,ee=O.ch,ne=D(O);if(!ne)return;if(ne[1])H.push(ne[2]);else{for(var de=H.length-1;de>=0;--de)if(H[de]==ne[2]){H.length=de;break}if(de<0&&(!V||V==ne[2]))return{tag:ne[2],from:m(O.line,O.ch),to:m(q,ee)}}}}i.registerHelper("fold","xml",function(O,V){for(var H=new F(O,V.line,0);;){var $=z(H);if(!$||H.line!=V.line)return;var q=X(H);if(!q)return;if(!$[1]&&q!="selfClose"){var ee=m(H.line,H.ch),ne=K(H,$[2]);return ne&&e(ne.from,ee)>0?{from:ee,to:ne.from}:null}}}),i.findMatchingTag=function(O,V,H){var $=new F(O,V.line,V.ch,H);if(!($.text.indexOf(">")==-1&&$.text.indexOf("<")==-1)){var q=X($),ee=q&&m($.line,$.ch),ne=q&&D($);if(!(!q||!ne||e($,V)>0)){var de={from:m($.line,$.ch),to:ee,tag:ne[2]};return q=="selfClose"?{open:de,close:null,at:"open"}:ne[1]?{open:J($,ne[2]),close:de,at:"close"}:($=new F(O,ee.line,ee.ch,H),{open:de,close:K($,ne[2]),at:"open"})}}},i.findEnclosingTag=function(O,V,H,$){for(var q=new F(O,V.line,V.ch,H);;){var ee=J(q,$);if(!ee)break;var ne=new F(O,V.line,V.ch,H),de=K(ne,ee.tag);if(de)return{open:ee,close:de}}},i.scanForClosingTag=function(O,V,H,$){var q=new F(O,V.line,V.ch,$?{from:0,to:$}:null);return K(q,H)}})});var Nx=yr((bx,Ax)=>{(function(i){typeof bx=="object"&&typeof Ax=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(e){return function(A,R){var L=R.line,F=A.getLine(L);function Z(W){for(var K,J=R.ch,O=0;;){var V=J<=0?-1:F.lastIndexOf(W[0],J-1);if(V==-1){if(O==1)break;O=1,J=F.length;continue}if(O==1&&V<R.ch)break;if(K=A.getTokenTypeAt(i.Pos(L,V+1)),!/^(comment|string)/.test(K))return{ch:V+1,tokenType:K,pair:W};J=V-1}}function M(W){var K=1,J=A.lastLine(),O,V=W.ch,H;e:for(var $=L;$<=J;++$)for(var q=A.getLine($),ee=$==L?V:0;;){var ne=q.indexOf(W.pair[0],ee),de=q.indexOf(W.pair[1],ee);if(ne<0&&(ne=q.length),de<0&&(de=q.length),ee=Math.min(ne,de),ee==q.length)break;if(A.getTokenTypeAt(i.Pos($,ee+1))==W.tokenType){if(ee==ne)++K;else if(!--K){O=$,H=ee;break e}}++ee}return O==null||L==O?null:{from:i.Pos(L,V),to:i.Pos(O,H)}}for(var Y=[],X=0;X<e.length;X++){var D=Z(e[X]);D&&Y.push(D)}Y.sort(function(W,K){return W.ch-K.ch});for(var X=0;X<Y.length;X++){var z=M(Y[X]);if(z)return z}return null}}i.registerHelper("fold","brace",m([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",m([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,A){function R(X){if(X<e.firstLine()||X>e.lastLine())return null;var D=e.getTokenAt(i.Pos(X,1));if(/\S/.test(D.string)||(D=e.getTokenAt(i.Pos(X,D.end+1))),D.type!="keyword"||D.string!="import")return null;for(var z=X,W=Math.min(e.lastLine(),X+10);z<=W;++z){var K=e.getLine(z),J=K.indexOf(";");if(J!=-1)return{startCh:D.end,end:i.Pos(z,J)}}}var L=A.line,F=R(L),Z;if(!F||R(L-1)||(Z=R(L-2))&&Z.end.line==L-1)return null;for(var M=F.end;;){var Y=R(M.line+1);if(Y==null)break;M=Y.end}return{from:e.clipPos(i.Pos(L,F.startCh+1)),to:M}}),i.registerHelper("fold","include",function(e,A){function R(Y){if(Y<e.firstLine()||Y>e.lastLine())return null;var X=e.getTokenAt(i.Pos(Y,1));if(/\S/.test(X.string)||(X=e.getTokenAt(i.Pos(Y,X.end+1))),X.type=="meta"&&X.string.slice(0,8)=="#include")return X.start+8}var L=A.line,F=R(L);if(F==null||R(L-1)!=null)return null;for(var Z=L;;){var M=R(Z+1);if(M==null)break;++Z}return{from:i.Pos(L,F+1),to:e.clipPos(i.Pos(Z))}})})});var yx=yr((Tx,Rx)=>{(function(i){typeof Tx=="object"&&typeof Rx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function(J,O,V){if(!O)return J.showHint(V);V&&V.async&&(O.async=!0);var H={hint:O};if(V)for(var $ in V)H[$]=V[$];return J.showHint(H)},i.defineExtension("showHint",function(J){J=F(this,this.getCursor("start"),J);var O=this.listSelections();if(!(O.length>1)){if(this.somethingSelected()){if(!J.hint.supportsSelection)return;for(var V=0;V<O.length;V++)if(O[V].head.line!=O[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var H=this.state.completionActive=new A(this,J);H.options.hint&&(i.signal(this,"startCompletion",this),H.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function A(J,O){if(this.cm=J,this.options=O,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 V=this;J.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var R=window.requestAnimationFrame||function(J){return setTimeout(J,1e3/60)},L=window.cancelAnimationFrame||clearTimeout;A.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&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(J,O){var V=J.list[O],H=this;this.cm.operation(function(){V.hint?V.hint(H.cm,J,V):H.cm.replaceRange(Z(V),V.from||J.from,V.to||J.to,"complete"),i.signal(J,"pick",V),H.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(L(this.debounce),this.debounce=0);var J=this.startPos;this.data&&(J=this.data.from);var O=this.cm.getCursor(),V=this.cm.getLine(O.line);if(O.line!=this.startPos.line||V.length-O.ch!=this.startLen-this.startPos.ch||O.ch<J.ch||this.cm.somethingSelected()||!O.ch||this.options.closeCharacters.test(V.charAt(O.ch-1)))this.close();else{var H=this;this.debounce=R(function(){H.update()}),this.widget&&this.widget.disable()}},update:function(J){if(this.tick!=null){var O=this,V=++this.tick;z(this.options.hint,this.cm,this.options,function(H){O.tick==V&&O.finishUpdate(H,J)})}},finishUpdate:function(J,O){this.data&&i.signal(this.data,"update");var V=this.widget&&this.widget.picked||O&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=J,J&&J.list.length&&(V&&J.list.length==1?this.pick(J,0):(this.widget=new X(this,J),i.signal(J,"shown")))}};function F(J,O,V){var H=J.options.hintOptions,$={};for(var q in K)$[q]=K[q];if(H)for(var q in H)H[q]!==void 0&&($[q]=H[q]);if(V)for(var q in V)V[q]!==void 0&&($[q]=V[q]);return $.hint.resolve&&($.hint=$.hint.resolve(J,O)),$}function Z(J){return typeof J=="string"?J:J.text}function M(J,O){var V={Up:function(){O.moveFocus(-1)},Down:function(){O.moveFocus(1)},PageUp:function(){O.moveFocus(-O.menuSize()+1,!0)},PageDown:function(){O.moveFocus(O.menuSize()-1,!0)},Home:function(){O.setFocus(0)},End:function(){O.setFocus(O.length-1)},Enter:O.pick,Tab:O.pick,Esc:O.close},H=/Mac/.test(navigator.platform);H&&(V["Ctrl-P"]=function(){O.moveFocus(-1)},V["Ctrl-N"]=function(){O.moveFocus(1)});var $=J.options.customKeys,q=$?{}:V;function ee(Se,be){var Ze;typeof be!="string"?Ze=function(Be){return be(Be,O)}:V.hasOwnProperty(be)?Ze=V[be]:Ze=be,q[Se]=Ze}if($)for(var ne in $)$.hasOwnProperty(ne)&&ee(ne,$[ne]);var de=J.options.extraKeys;if(de)for(var ne in de)de.hasOwnProperty(ne)&&ee(ne,de[ne]);return q}function Y(J,O){for(;O&&O!=J;){if(O.nodeName.toUpperCase()==="LI"&&O.parentNode==J)return O;O=O.parentNode}}function X(J,O){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=J,this.data=O,this.picked=!1;var V=this,H=J.cm,$=H.getInputField().ownerDocument,q=$.defaultView||$.parentWindow,ee=this.hints=$.createElement("ul");ee.setAttribute("role","listbox"),ee.setAttribute("aria-expanded","true"),ee.id=this.id;var ne=J.cm.options.theme;ee.className="CodeMirror-hints "+ne,this.selectedHint=O.selectedHint||0;for(var de=O.list,Se=0;Se<de.length;++Se){var be=ee.appendChild($.createElement("li")),Ze=de[Se],Be=m+(Se!=this.selectedHint?"":" "+e);Ze.className!=null&&(Be=Ze.className+" "+Be),be.className=Be,Se==this.selectedHint&&be.setAttribute("aria-selected","true"),be.id=this.id+"-"+Se,be.setAttribute("role","option"),Ze.render?Ze.render(be,O,Ze):be.appendChild($.createTextNode(Ze.displayText||Z(Ze))),be.hintId=Se}var Ke=J.options.container||$.body,Ee=H.cursorCoords(J.options.alignWithWord?O.from:null),Er=Ee.left,ur=Ee.bottom,or=!0,Or=0,je=0;if(Ke!==$.body){var et=["absolute","relative","fixed"].indexOf(q.getComputedStyle(Ke).position)!==-1,rt=et?Ke:Ke.offsetParent,cr=rt.getBoundingClientRect(),qe=$.body.getBoundingClientRect();Or=cr.left-qe.left-rt.scrollLeft,je=cr.top-qe.top-rt.scrollTop}ee.style.left=Er-Or+"px",ee.style.top=ur-je+"px";var Pe=q.innerWidth||Math.max($.body.offsetWidth,$.documentElement.offsetWidth),Ir=q.innerHeight||Math.max($.body.offsetHeight,$.documentElement.offsetHeight);Ke.appendChild(ee),H.getInputField().setAttribute("aria-autocomplete","list"),H.getInputField().setAttribute("aria-owns",this.id),H.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Me=J.options.moveOnOverlap?ee.getBoundingClientRect():new DOMRect,Rr=J.options.paddingForScrollbar?ee.scrollHeight>ee.clientHeight+1:!1,dr;setTimeout(function(){dr=H.getScrollInfo()});var Hr=Me.bottom-Ir;if(Hr>0){var Cr=Me.bottom-Me.top,ti=Me.top-(Ee.bottom-Ee.top)-2;Ir-Me.top<ti?(Cr>ti&&(ee.style.height=(Cr=ti)+"px"),ee.style.top=(ur=Ee.top-Cr)-je+"px",or=!1):ee.style.height=Ir-Me.top-2+"px"}var Ge=Me.right-Pe;if(Rr&&(Ge+=H.display.nativeBarWidth),Ge>0&&(Me.right-Me.left>Pe&&(ee.style.width=Pe-5+"px",Ge-=Me.right-Me.left-Pe),ee.style.left=(Er=Math.max(Ee.left-Ge-Or,0))+"px"),Rr)for(var fe=ee.firstChild;fe;fe=fe.nextSibling)fe.style.paddingRight=H.display.nativeBarWidth+"px";if(H.addKeyMap(this.keyMap=M(J,{moveFocus:function(Ue,Vr){V.changeActive(V.selectedHint+Ue,Vr)},setFocus:function(Ue){V.changeActive(Ue)},menuSize:function(){return V.screenAmount()},length:de.length,close:function(){J.close()},pick:function(){V.pick()},data:O})),J.options.closeOnUnfocus){var Ar;H.on("blur",this.onBlur=function(){Ar=setTimeout(function(){J.close()},100)}),H.on("focus",this.onFocus=function(){clearTimeout(Ar)})}H.on("scroll",this.onScroll=function(){var Ue=H.getScrollInfo(),Vr=H.getWrapperElement().getBoundingClientRect();dr||(dr=H.getScrollInfo());var ii=ur+dr.top-Ue.top,xe=ii-(q.pageYOffset||($.documentElement||$.body).scrollTop);if(or||(xe+=ee.offsetHeight),xe<=Vr.top||xe>=Vr.bottom)return J.close();ee.style.top=ii+"px",ee.style.left=Er+dr.left-Ue.left+"px"}),i.on(ee,"dblclick",function(Ue){var Vr=Y(ee,Ue.target||Ue.srcElement);Vr&&Vr.hintId!=null&&(V.changeActive(Vr.hintId),V.pick())}),i.on(ee,"click",function(Ue){var Vr=Y(ee,Ue.target||Ue.srcElement);Vr&&Vr.hintId!=null&&(V.changeActive(Vr.hintId),J.options.completeOnSingleClick&&V.pick())}),i.on(ee,"mousedown",function(){setTimeout(function(){H.focus()},20)});var mr=this.getSelectedHintRange();return(mr.from!==0||mr.to!==0)&&this.scrollToActive(),i.signal(O,"select",de[this.selectedHint],ee.childNodes[this.selectedHint]),!0}X.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 J=this.completion.cm.getInputField();J.removeAttribute("aria-activedescendant"),J.removeAttribute("aria-owns");var O=this.completion.cm;this.completion.options.closeOnUnfocus&&(O.off("blur",this.onBlur),O.off("focus",this.onFocus)),O.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var J=this;this.keyMap={Enter:function(){J.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(J,O){if(J>=this.data.list.length?J=O?this.data.list.length-1:0:J<0&&(J=O?0:this.data.list.length-1),this.selectedHint!=J){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+e,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=J],V.className+=" "+e,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var J=this.getSelectedHintRange(),O=this.hints.childNodes[J.from],V=this.hints.childNodes[J.to],H=this.hints.firstChild;O.offsetTop<this.hints.scrollTop?this.hints.scrollTop=O.offsetTop-H.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+H.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var J=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-J),to:Math.min(this.data.list.length-1,this.selectedHint+J)}}};function D(J,O){if(!J.somethingSelected())return O;for(var V=[],H=0;H<O.length;H++)O[H].supportsSelection&&V.push(O[H]);return V}function z(J,O,V,H){if(J.async)J(O,H,V);else{var $=J(O,V);$&&$.then?$.then(H):H($)}}function W(J,O){var V=J.getHelpers(O,"hint"),H;if(V.length){var $=function(q,ee,ne){var de=D(q,V);function Se(be){if(be==de.length)return ee(null);z(de[be],q,ne,function(Ze){Ze&&Ze.list.length>0?ee(Ze):Se(be+1)})}Se(0)};return $.async=!0,$.supportsSelection=!0,$}else return(H=J.getHelper(J.getCursor(),"hintWords"))?function(q){return i.hint.fromList(q,{words:H})}:i.hint.anyword?function(q,ee){return i.hint.anyword(q,ee)}:function(){}}i.registerHelper("hint","auto",{resolve:W}),i.registerHelper("hint","fromList",function(J,O){var V=J.getCursor(),H=J.getTokenAt(V),$,q=i.Pos(V.line,H.start),ee=V;H.start<V.ch&&/\w/.test(H.string.charAt(V.ch-H.start-1))?$=H.string.substr(0,V.ch-H.start):($="",q=V);for(var ne=[],de=0;de<O.words.length;de++){var Se=O.words[de];Se.slice(0,$.length)==$&&ne.push(Se)}if(ne.length)return{list:ne,from:q,to:ee}}),i.commands.autocomplete=i.showHint;var K={hint:i.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};i.defineOption("hintOptions",null)})});var Vm=yr((Sx,Lx)=>{(function(i){typeof Sx=="object"&&typeof Lx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(O){var V=O.flags;return V??(O.ignoreCase?"i":"")+(O.global?"g":"")+(O.multiline?"m":"")}function A(O,V){for(var H=e(O),$=H,q=0;q<V.length;q++)$.indexOf(V.charAt(q))==-1&&($+=V.charAt(q));return H==$?O:new RegExp(O.source,$)}function R(O){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(O.source)}function L(O,V,H){V=A(V,"g");for(var $=H.line,q=H.ch,ee=O.lastLine();$<=ee;$++,q=0){V.lastIndex=q;var ne=O.getLine($),de=V.exec(ne);if(de)return{from:m($,de.index),to:m($,de.index+de[0].length),match:de}}}function F(O,V,H){if(!R(V))return L(O,V,H);V=A(V,"gm");for(var $,q=1,ee=H.line,ne=O.lastLine();ee<=ne;){for(var de=0;de<q&&!(ee>ne);de++){var Se=O.getLine(ee++);$=$==null?Se:$+`
31
+ `+Se}q=q*2,V.lastIndex=H.ch;var be=V.exec($);if(be){var Ze=$.slice(0,be.index).split(`
32
32
  `),Be=be[0].split(`
33
- `),Ke=H.line+Ze.length-1,Ee=Ze[Ze.length-1].length;return{from:m(Ke,Ee),to:m(Ke+Be.length-1,Be.length==1?Ee+Be[0].length:Be[Be.length-1].length),match:be}}}}function Z(O,V,H){for(var q,K=0;K<=O.length;){V.lastIndex=K;var ee=V.exec(O);if(!ee)break;var ne=ee.index+ee[0].length;if(ne>O.length-H)break;(!q||ne>q.index+q[0].length)&&(q=ee),K=ee.index+1}return q}function M(O,V,H){V=A(V,"g");for(var q=H.line,K=H.ch,ee=O.firstLine();q>=ee;q--,K=-1){var ne=O.getLine(q),de=Z(ne,V,K<0?0:ne.length-K);if(de)return{from:m(q,de.index),to:m(q,de.index+de[0].length),match:de}}}function Y(O,V,H){if(!R(V))return M(O,V,H);V=A(V,"gm");for(var q,K=1,ee=O.getLine(H.line).length-H.ch,ne=H.line,de=O.firstLine();ne>=de;){for(var Se=0;Se<K&&ne>=de;Se++){var be=O.getLine(ne--);q=q==null?be:be+`
34
- `+q}K*=2;var Ze=Z(q,V,ee);if(Ze){var Be=q.slice(0,Ze.index).split(`
33
+ `),Ke=H.line+Ze.length-1,Ee=Ze[Ze.length-1].length;return{from:m(Ke,Ee),to:m(Ke+Be.length-1,Be.length==1?Ee+Be[0].length:Be[Be.length-1].length),match:be}}}}function Z(O,V,H){for(var $,q=0;q<=O.length;){V.lastIndex=q;var ee=V.exec(O);if(!ee)break;var ne=ee.index+ee[0].length;if(ne>O.length-H)break;(!$||ne>$.index+$[0].length)&&($=ee),q=ee.index+1}return $}function M(O,V,H){V=A(V,"g");for(var $=H.line,q=H.ch,ee=O.firstLine();$>=ee;$--,q=-1){var ne=O.getLine($),de=Z(ne,V,q<0?0:ne.length-q);if(de)return{from:m($,de.index),to:m($,de.index+de[0].length),match:de}}}function Y(O,V,H){if(!R(V))return M(O,V,H);V=A(V,"gm");for(var $,q=1,ee=O.getLine(H.line).length-H.ch,ne=H.line,de=O.firstLine();ne>=de;){for(var Se=0;Se<q&&ne>=de;Se++){var be=O.getLine(ne--);$=$==null?be:be+`
34
+ `+$}q*=2;var Ze=Z($,V,ee);if(Ze){var Be=$.slice(0,Ze.index).split(`
35
35
  `),Ke=Ze[0].split(`
36
- `),Ee=ne+Be.length,Er=Be[Be.length-1].length;return{from:m(Ee,Er),to:m(Ee+Ke.length-1,Ke.length==1?Er+Ke[0].length:Ke[Ke.length-1].length),match:Ze}}}}var P,D;String.prototype.normalize?(P=function(O){return O.normalize("NFD").toLowerCase()},D=function(O){return O.normalize("NFD")}):(P=function(O){return O.toLowerCase()},D=function(O){return O});function z(O,V,H,q){if(O.length==V.length)return H;for(var K=0,ee=H+Math.max(0,O.length-V.length);;){if(K==ee)return K;var ne=K+ee>>1,de=q(O.slice(0,ne)).length;if(de==H)return ne;de>H?ee=ne:K=ne+1}}function W(O,V,H,q){if(!V.length)return null;var K=q?P:D,ee=K(V).split(/\r|\n\r?/);e:for(var ne=H.line,de=H.ch,Se=O.lastLine()+1-ee.length;ne<=Se;ne++,de=0){var be=O.getLine(ne).slice(de),Ze=K(be);if(ee.length==1){var Be=Ze.indexOf(ee[0]);if(Be==-1)continue e;var H=z(be,Ze,Be,K)+de;return{from:m(ne,z(be,Ze,Be,K)+de),to:m(ne,z(be,Ze,Be+ee[0].length,K)+de)}}else{var Ke=Ze.length-ee[0].length;if(Ze.slice(Ke)!=ee[0])continue e;for(var Ee=1;Ee<ee.length-1;Ee++)if(K(O.getLine(ne+Ee))!=ee[Ee])continue e;var Er=O.getLine(ne+ee.length-1),ur=K(Er),or=ee[ee.length-1];if(ur.slice(0,or.length)!=or)continue e;return{from:m(ne,z(be,Ze,Ke,K)+de),to:m(ne+ee.length-1,z(Er,ur,or.length,K))}}}}function $(O,V,H,q){if(!V.length)return null;var K=q?P:D,ee=K(V).split(/\r|\n\r?/);e:for(var ne=H.line,de=H.ch,Se=O.firstLine()-1+ee.length;ne>=Se;ne--,de=-1){var be=O.getLine(ne);de>-1&&(be=be.slice(0,de));var Ze=K(be);if(ee.length==1){var Be=Ze.lastIndexOf(ee[0]);if(Be==-1)continue e;return{from:m(ne,z(be,Ze,Be,K)),to:m(ne,z(be,Ze,Be+ee[0].length,K))}}else{var Ke=ee[ee.length-1];if(Ze.slice(0,Ke.length)!=Ke)continue e;for(var Ee=1,H=ne-ee.length+1;Ee<ee.length-1;Ee++)if(K(O.getLine(H+Ee))!=ee[Ee])continue e;var Er=O.getLine(ne+1-ee.length),ur=K(Er);if(ur.slice(ur.length-ee[0].length)!=ee[0])continue e;return{from:m(ne+1-ee.length,z(Er,ur,Er.length-ee[0].length,K)),to:m(ne,z(be,Ze,Ke.length,K))}}}}function J(O,V,H,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=O,H=H?O.clipPos(H):m(0,0),this.pos={from:H,to:H};var K;typeof q=="object"?K=q.caseFold:(K=q,q=null),typeof V=="string"?(K==null&&(K=!1),this.matches=function(ee,ne){return(ee?$:W)(O,V,ne,K)}):(V=A(V,"gm"),!q||q.multiline!==!1?this.matches=function(ee,ne){return(ee?Y:F)(O,V,ne)}:this.matches=function(ee,ne){return(ee?M:L)(O,V,ne)})}J.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(O){var V=this.doc.clipPos(O?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=m(V.line,V.ch),O?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),i.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var H=this.matches(O,V);if(this.afterEmptyMatch=H&&i.cmpPos(H.from,H.to)==0,H)return this.pos=H,this.atOccurrence=!0,this.pos.match||!0;var q=m(O?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(O,V){if(this.atOccurrence){var H=i.splitLines(O);this.doc.replaceRange(H,this.pos.from,this.pos.to,V),this.pos.to=m(this.pos.from.line+H.length-1,H[H.length-1].length+(H.length==1?this.pos.from.ch:0))}}},i.defineExtension("getSearchCursor",function(O,V,H){return new J(this.doc,O,V,H)}),i.defineDocExtension("getSearchCursor",function(O,V,H){return new J(this,O,V,H)}),i.defineExtension("selectMatches",function(O,V){for(var H=[],q=this.getSearchCursor(O,this.getCursor("from"),V);q.findNext()&&!(i.cmpPos(q.to(),this.getCursor("to"))>0);)H.push({anchor:q.from(),head:q.to()});H.length&&this.setSelections(H,0)})})});var Ux=yr((wx,Gx)=>{(function(i){typeof wx=="object"&&typeof Gx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("annotateScrollbar",function(e){return typeof e=="string"&&(e={className:e}),new m(this,e)}),i.defineOption("scrollButtonHeight",0);function m(e,A){this.cm=e,this.options=A,this.buttonHeight=A.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();function R(F){clearTimeout(L.doRedraw),L.doRedraw=setTimeout(function(){L.redraw()},F)}var L=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(L.doUpdate),L.doUpdate=setTimeout(function(){L.computeScale()&&R(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),A.listenForChanges!==!1&&e.on("changes",this.changeHandler=function(){R(250)})}m.prototype.computeScale=function(){var e=this.cm,A=(e.getWrapperElement().clientHeight-e.display.barHeight-this.buttonHeight*2)/e.getScrollerElement().scrollHeight;if(A!=this.hScale)return this.hScale=A,!0},m.prototype.update=function(e){this.annotations=e,this.redraw()},m.prototype.redraw=function(e){e!==!1&&this.computeScale();var A=this.cm,R=this.hScale,L=document.createDocumentFragment(),F=this.annotations,Z=A.getOption("lineWrapping"),M=Z&&A.defaultTextHeight()*1.5,Y=null,P=null;function D(K,ee){if(Y!=K.line){Y=K.line,P=A.getLineHandle(K.line);var ne=A.getLineHandleVisualStart(P);ne!=P&&(Y=A.getLineNumber(ne),P=ne)}if(P.widgets&&P.widgets.length||Z&&P.height>M)return A.charCoords(K,"local")[ee?"top":"bottom"];var de=A.heightAtLine(P,"local");return de+(ee?0:P.height)}var z=A.lastLine();if(A.display.barWidth)for(var W=0,$;W<F.length;W++){var J=F[W];if(!(J.to.line>z)){for(var O=$||D(J.from,!0)*R,V=D(J.to,!1)*R;W<F.length-1&&!(F[W+1].to.line>z||($=D(F[W+1].from,!0)*R,$>V+.9));)J=F[++W],V=D(J.to,!1)*R;if(V!=O){var H=Math.max(V-O,3),q=L.appendChild(document.createElement("div"));q.style.cssText="position: absolute; right: 0px; width: "+Math.max(A.display.barWidth-1,2)+"px; top: "+(O+this.buttonHeight)+"px; height: "+H+"px",q.className=this.options.className,J.id&&q.setAttribute("annotation-id",J.id)}}}this.div.textContent="",this.div.appendChild(L)},m.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)}})});var Ox=yr((Fx,Bx)=>{(function(i){typeof Fx=="object"&&typeof Bx=="object"?i(ni(),Vm(),Ux()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(R,L,F){return typeof F=="string"&&(F={className:F}),F||(F={}),new m(this,R,L,F)});function m(R,L,F,Z){this.cm=R,this.options=Z;var M={listenForChanges:!1};for(var Y in Z)M[Y]=Z[Y];M.className||(M.className="CodeMirror-search-match"),this.annotation=R.annotateScrollbar(M),this.query=L,this.caseFold=F,this.gap={from:R.firstLine(),to:R.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var P=this;R.on("change",this.changeHandler=function(D,z){P.onChange(z)})}var e=1e3;m.prototype.findMatches=function(){if(this.gap){for(var R=0;R<this.matches.length;R++){var L=this.matches[R];if(L.from.line>=this.gap.to)break;L.to.line>=this.gap.from&&this.matches.splice(R--,1)}for(var F=this.cm.getSearchCursor(this.query,i.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),Z=this.options&&this.options.maxMatches||e;F.findNext();){var L={from:F.from(),to:F.to()};if(L.from.line>=this.gap.to||(this.matches.splice(R++,0,L),this.matches.length>Z))break}this.gap=null}};function A(R,L,F){return R<=L?R:Math.max(L,R+F)}m.prototype.onChange=function(R){var L=R.from.line,F=i.changeEnd(R).line,Z=F-R.to.line;if(this.gap?(this.gap.from=Math.min(A(this.gap.from,L,Z),R.from.line),this.gap.to=Math.max(A(this.gap.to,L,Z),R.from.line)):this.gap={from:R.from.line,to:F+1},Z)for(var M=0;M<this.matches.length;M++){var Y=this.matches[M],P=A(Y.from.line,L,Z);P!=Y.from.line&&(Y.from=i.Pos(P,Y.from.ch));var D=A(Y.to.line,L,Z);D!=Y.to.line&&(Y.to=i.Pos(D,Y.to.ch))}clearTimeout(this.update);var z=this;this.update=setTimeout(function(){z.updateAfterChange()},250)},m.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},m.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var Zx=yr((Vx,Wx)=>{(function(i){typeof Vx=="object"&&typeof Wx=="object"?i(ni(),Ox()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)})(function(i){"use strict";var m={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function e(z){this.options={};for(var W in m)this.options[W]=(z&&z.hasOwnProperty(W)?z:m)[W];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function(z,W,$){if($&&$!=i.Init&&(Z(z),clearTimeout(z.state.matchHighlighter.timeout),z.state.matchHighlighter=null,z.off("cursorActivity",A),z.off("focus",R)),W){var J=z.state.matchHighlighter=new e(W);z.hasFocus()?(J.active=!0,M(z)):z.on("focus",R),z.on("cursorActivity",A)}});function A(z){var W=z.state.matchHighlighter;(W.active||z.hasFocus())&&L(z,W)}function R(z){var W=z.state.matchHighlighter;W.active||(W.active=!0,L(z,W))}function L(z,W){clearTimeout(W.timeout),W.timeout=setTimeout(function(){M(z)},W.options.delay)}function F(z,W,$,J){var O=z.state.matchHighlighter;if(z.addOverlay(O.overlay=D(W,$,J)),O.options.annotateScrollbar&&z.showMatchesOnScrollbar){var V=$?new RegExp((/\w/.test(W.charAt(0))?"\\b":"")+W.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(W.charAt(W.length-1))?"\\b":"")):W;O.matchesonscroll=z.showMatchesOnScrollbar(V,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function Z(z){var W=z.state.matchHighlighter;W.overlay&&(z.removeOverlay(W.overlay),W.overlay=null,W.matchesonscroll&&(W.matchesonscroll.clear(),W.matchesonscroll=null))}function M(z){z.operation(function(){var W=z.state.matchHighlighter;if(Z(z),!z.somethingSelected()&&W.options.showToken){for(var $=W.options.showToken===!0?/[\w$]/:W.options.showToken,J=z.getCursor(),O=z.getLine(J.line),V=J.ch,H=V;V&&$.test(O.charAt(V-1));)--V;for(;H<O.length&&$.test(O.charAt(H));)++H;V<H&&F(z,O.slice(V,H),$,W.options.style);return}var q=z.getCursor("from"),K=z.getCursor("to");if(q.line==K.line&&!(W.options.wordsOnly&&!Y(z,q,K))){var ee=z.getRange(q,K);W.options.trim&&(ee=ee.replace(/^\s+|\s+$/g,"")),ee.length>=W.options.minChars&&F(z,ee,!1,W.options.style)}})}function Y(z,W,$){var J=z.getRange(W,$);if(J.match(/^\w+$/)!==null){if(W.ch>0){var O={line:W.line,ch:W.ch-1},V=z.getRange(O,W);if(V.match(/\W/)===null)return!1}if($.ch<z.getLine(W.line).length){var O={line:$.line,ch:$.ch+1},V=z.getRange($,O);if(V.match(/\W/)===null)return!1}return!0}else return!1}function P(z,W){return(!z.start||!W.test(z.string.charAt(z.start-1)))&&(z.pos==z.string.length||!W.test(z.string.charAt(z.pos)))}function D(z,W,$){return{token:function(J){if(J.match(z)&&(!W||P(J,W)))return $;J.next(),J.skipTo(z.charAt(0))||J.skipToEnd()}}}})});var Qx=yr((Mx,Dx)=>{(function(i){typeof Mx=="object"&&typeof Dx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var m=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,A={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function R(P){return P&&P.bracketRegex||/[(){}[\]]/}function L(P,D,z){var W=P.getLineHandle(D.line),$=D.ch-1,J=z&&z.afterCursor;J==null&&(J=/(^| )cm-fat-cursor($| )/.test(P.getWrapperElement().className));var O=R(z),V=!J&&$>=0&&O.test(W.text.charAt($))&&A[W.text.charAt($)]||O.test(W.text.charAt($+1))&&A[W.text.charAt(++$)];if(!V)return null;var H=V.charAt(1)==">"?1:-1;if(z&&z.strict&&H>0!=($==D.ch))return null;var q=P.getTokenTypeAt(e(D.line,$+1)),K=F(P,e(D.line,$+(H>0?1:0)),H,q,z);return K==null?null:{from:e(D.line,$),to:K&&K.pos,match:K&&K.ch==V.charAt(0),forward:H>0}}function F(P,D,z,W,$){for(var J=$&&$.maxScanLineLength||1e4,O=$&&$.maxScanLines||1e3,V=[],H=R($),q=z>0?Math.min(D.line+O,P.lastLine()+1):Math.max(P.firstLine()-1,D.line-O),K=D.line;K!=q;K+=z){var ee=P.getLine(K);if(ee){var ne=z>0?0:ee.length-1,de=z>0?ee.length:-1;if(!(ee.length>J))for(K==D.line&&(ne=D.ch-(z<0?1:0));ne!=de;ne+=z){var Se=ee.charAt(ne);if(H.test(Se)&&(W===void 0||(P.getTokenTypeAt(e(K,ne+1))||"")==(W||""))){var be=A[Se];if(be&&be.charAt(1)==">"==z>0)V.push(Se);else if(V.length)V.pop();else return{pos:e(K,ne),ch:Se}}}}}return K-z==(z>0?P.lastLine():P.firstLine())?!1:null}function Z(P,D,z){for(var W=P.state.matchBrackets.maxHighlightLineLength||1e3,$=z&&z.highlightNonMatching,J=[],O=P.listSelections(),V=0;V<O.length;V++){var H=O[V].empty()&&L(P,O[V].head,z);if(H&&(H.match||$!==!1)&&P.getLine(H.from.line).length<=W){var q=H.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";J.push(P.markText(H.from,e(H.from.line,H.from.ch+1),{className:q})),H.to&&P.getLine(H.to.line).length<=W&&J.push(P.markText(H.to,e(H.to.line,H.to.ch+1),{className:q}))}}if(J.length){m&&P.state.focused&&P.focus();var K=function(){P.operation(function(){for(var ee=0;ee<J.length;ee++)J[ee].clear()})};if(D)setTimeout(K,800);else return K}}function M(P){P.operation(function(){P.state.matchBrackets.currentlyHighlighted&&(P.state.matchBrackets.currentlyHighlighted(),P.state.matchBrackets.currentlyHighlighted=null),P.state.matchBrackets.currentlyHighlighted=Z(P,!1,P.state.matchBrackets)})}function Y(P){P.state.matchBrackets&&P.state.matchBrackets.currentlyHighlighted&&(P.state.matchBrackets.currentlyHighlighted(),P.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function(P,D,z){z&&z!=i.Init&&(P.off("cursorActivity",M),P.off("focus",M),P.off("blur",Y),Y(P)),D&&(P.state.matchBrackets=typeof D=="object"?D:{},P.on("cursorActivity",M),P.on("focus",M),P.on("blur",Y))}),i.defineExtension("matchBrackets",function(){Z(this,!0)}),i.defineExtension("findMatchingBracket",function(P,D,z){return(z||typeof D=="boolean")&&(z?(z.strict=D,D=z):D=D?{strict:!0}:null),L(this,P,D)}),i.defineExtension("scanForBracket",function(P,D,z,W){return F(this,P,D,z,W)})})});var Px=yr((kx,Xx)=>{(function(i){typeof kx=="object"&&typeof Xx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(m,e,A,R){var L=i.getMode(i.defaults,e),F=R&&R.tabSize||i.defaults.tabSize;if(A.appendChild){var Z=/MSIE \d/.test(navigator.userAgent),M=Z&&(document.documentMode==null||document.documentMode<9),Y=A,P=0;Y.textContent="",A=function(V,H){if(V==`
37
- `){Y.appendChild(document.createTextNode(M?"\r":V)),P=0;return}for(var q="",K=0;;){var ee=V.indexOf(" ",K);if(ee==-1){q+=V.slice(K),P+=V.length-K;break}else{P+=ee-K,q+=V.slice(K,ee);var ne=F-P%F;P+=ne;for(var de=0;de<ne;++de)q+=" ";K=ee+1}}if(H){var Se=Y.appendChild(document.createElement("span"));Se.className="cm-"+H.replace(/ +/g," cm-"),Se.appendChild(document.createTextNode(q))}else Y.appendChild(document.createTextNode(q))}}for(var D=i.splitLines(m),z=R&&R.state||i.startState(L),W=0,$=D.length;W<$;++W){W&&A(`
38
- `);var J=new i.StringStream(D[W],null,{lookAhead:function(V){return D[W+V]},baseToken:function(){}});for(!J.string&&L.blankLine&&L.blankLine(z);!J.eol();){var O=L.token(J,z);A(J.current(),O,W,J.start,z,L),J.start=J.pos}}}})});var q1={};Jm(q1,{Yasqe:()=>$f,default:()=>$1});var hd=jt(ni());function jm(i,m,e){return e||(e=i.getDoc().getCursor()),m||(m=i.getTokenAt(e)),$m(i,zm(i,m,e),e)}function zm(i,m,e){var A=i.getTokenAt({line:e.line,ch:m.start});return(m.type==="punc"||m.type==="error")&&!m.state.possibleFullIri&&!m.state.inPrefixDecl?(m.state.possibleCurrent=m.state.possibleNext,m):A.type==="punc"&&!A.state.possibleFullIri&&!A.state.inPrefixDecl?m:A.type!=null&&A.type!="ws"&&m.type!=null&&m.type!="ws"?(m.start=A.start,m.string=A.string+m.string,zm(i,m,{line:e.line,ch:A.start})):(m.type!=null&&m.type=="ws"&&(m.start=m.start+1,m.string=m.string.substring(1)),m)}function $m(i,m,e){if(m.string.indexOf(" ")>=0){let R=m.string.indexOf(" ");return m.string=m.string.substr(0,R),m.end=m.start+m.string.length,m}if(!m.type)return m;var A=i.getTokenAt({line:e.line,ch:m.end+1});return A.type!=="ws"&&m.state.possibleFullIri&&m.type!==null&&m.type!=="ws"&&A.end!==m.end?(m.end=A.end,m.string=m.string+A.string,$m(i,m,{line:e.line,ch:A.end})):(m.type==="ws"&&(m.end=m.end+1,m.string=m.string.substring(m.string.length-1)),m)}function JE(i,m,e){var A=i.getTokenAt({line:m,ch:e.start});return A!=null&&A.type=="ws"&&(A=JE(i,m,A)),A}function Lf(i,m,e){e==null&&(e=1);var A=i.getTokenAt({line:m,ch:e});if(!(A==null||A==null||A.end<e))return A.type=="ws"?Lf(i,m,A.end+1):A}var Bd="PREFIX ";function qm(i){for(var m=i.getDoc().lastLine(),e=0;e<=m;++e){let A=Km(i,e);if(A!=null&&A>=0)return e}}function Km(i,m,e=0,A){if(A||(A=i.getDoc().getLine(m)),!A)return;A=A.toUpperCase();let R=A.indexOf(Bd,e);if(R>=0&&i.getTokenTypeAt(hd.default.Pos(m,R+1))==="keyword")return R}function ev(i,m){var e=m.line,A=i.getDoc().getLine(e);function R(){for(var V=!1,H=e-1;H>=0;H--)if(i.getDoc().getLine(H).toUpperCase().indexOf(Bd)>=0){V=!0;break}return V}var L=function(V,H){var q=i.getTokenAt(hd.default.Pos(V,H+1));if(!q||q.type!="keyword")return-1;var K=Lf(i,V,q.end+1);if(!K||K.type!="string-2")return-1;var ee=Lf(i,V,K.end+1);return!ee||ee.type!="variable-3"?-1:ee.end};if(!R()){var F=Km(i,e,m.ch,A);if(F!=null){for(var Z="{",M=!1,Y=i.getDoc().lastLine(),P,D=L(e,F),z=e,W=e;W<=Y&&!M;++W)for(var $=i.getDoc().getLine(W),J=W==e?F+1:0;;){!M&&$.indexOf(Z)>=0&&(M=!0);var O=$.toUpperCase().indexOf(Bd,J);if(O>=0)(P=L(W,O))>0&&(D=P,z=W,J=D),J++;else break}return{from:hd.default.Pos(e,F+Bd.length),to:hd.default.Pos(z,D)}}}}function tv(i,m){var e=i.getPrefixesFromQuery();if(typeof m=="string")rv(i,m);else for(var A in m)A in e||rv(i,A+": <"+m[A]+">");i.collapsePrefixes(!1)}function rv(i,m){i.getDoc().replaceRange("PREFIX "+m+`
39
- `,{line:0,ch:0}),i.collapsePrefixes(!1)}function iv(i,m){var e=function(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var A in m)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+A+":\\s*"+e("<"+m[A]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function sv(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:dv,setPrototypeOf:nv,isFrozen:lb,getPrototypeOf:ub,getOwnPropertyDescriptor:fb}=Object,{freeze:di,seal:Cs,create:em}=Object,{apply:rm,construct:tm}=typeof Reflect<"u"&&Reflect;di||(di=function(m){return m});Cs||(Cs=function(m){return m});rm||(rm=function(m,e){for(var A=arguments.length,R=new Array(A>2?A-2:0),L=2;L<A;L++)R[L-2]=arguments[L];return m.apply(e,R)});tm||(tm=function(m){for(var e=arguments.length,A=new Array(e>1?e-1:0),R=1;R<e;R++)A[R-1]=arguments[R];return new m(...A)});var Od=hi(Array.prototype.forEach),cb=hi(Array.prototype.lastIndexOf),ov=hi(Array.prototype.pop),gd=hi(Array.prototype.push),pb=hi(Array.prototype.splice),Wd=hi(String.prototype.toLowerCase),_E=hi(String.prototype.toString),jE=hi(String.prototype.match),Ed=hi(String.prototype.replace),db=hi(String.prototype.indexOf),hb=hi(String.prototype.trim),$s=hi(Object.prototype.hasOwnProperty),pi=hi(RegExp.prototype.test),md=gb(TypeError);function hi(i){return function(m){m instanceof RegExp&&(m.lastIndex=0);for(var e=arguments.length,A=new Array(e>1?e-1:0),R=1;R<e;R++)A[R-1]=arguments[R];return rm(i,m,A)}}function gb(i){return function(){for(var m=arguments.length,e=new Array(m),A=0;A<m;A++)e[A]=arguments[A];return tm(i,e)}}function fr(i,m){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wd;nv&&nv(i,null);let A=m.length;for(;A--;){let R=m[A];if(typeof R=="string"){let L=e(R);L!==R&&(lb(m)||(m[A]=L),R=L)}i[R]=!0}return i}function Eb(i){for(let m=0;m<i.length;m++)$s(i,m)||(i[m]=null);return i}function Zn(i){let m=em(null);for(let[e,A]of dv(i))$s(i,e)&&(Array.isArray(A)?m[e]=Eb(A):A&&typeof A=="object"&&A.constructor===Object?m[e]=Zn(A):m[e]=A);return m}function vd(i,m){for(;i!==null;){let A=fb(i,m);if(A){if(A.get)return hi(A.get);if(typeof A.value=="function")return hi(A.value)}i=ub(i)}function e(){return null}return e}var av=di(["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"]),zE=di(["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"]),$E=di(["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"]),mb=di(["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"]),qE=di(["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"]),vb=di(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),lv=di(["#text"]),uv=di(["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"]),KE=di(["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"]),fv=di(["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"]),Vd=di(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ib=Cs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Cb=Cs(/<%[\w\W]*|[\w\W]*%>/gm),xb=Cs(/\$\{[\w\W]*/gm),bb=Cs(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ab=Cs(/^aria-[\-\w]+$/),hv=Cs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nb=Cs(/^(?:\w+script|data):/i),Tb=Cs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gv=Cs(/^html$/i),Rb=Cs(/^[a-z][.\w]*(-[.\w]+)+$/i),cv=Object.freeze({__proto__:null,ARIA_ATTR:Ab,ATTR_WHITESPACE:Tb,CUSTOM_ELEMENT:Rb,DATA_ATTR:bb,DOCTYPE_NAME:gv,ERB_EXPR:Cb,IS_ALLOWED_URI:hv,IS_SCRIPT_OR_DATA:Nb,MUSTACHE_EXPR:Ib,TMPLIT_EXPR:xb}),Id={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yb=function(){return typeof window>"u"?null:window},Sb=function(m,e){if(typeof m!="object"||typeof m.createPolicy!="function")return null;let A=null,R="data-tt-policy-suffix";e&&e.hasAttribute(R)&&(A=e.getAttribute(R));let L="dompurify"+(A?"#"+A:"");try{return m.createPolicy(L,{createHTML(F){return F},createScriptURL(F){return F}})}catch{return console.warn("TrustedTypes policy "+L+" could not be created."),null}},pv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ev(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yb(),m=Qe=>Ev(Qe);if(m.version="3.3.1",m.removed=[],!i||!i.document||i.document.nodeType!==Id.document||!i.Element)return m.isSupported=!1,m;let{document:e}=i,A=e,R=A.currentScript,{DocumentFragment:L,HTMLTemplateElement:F,Node:Z,Element:M,NodeFilter:Y,NamedNodeMap:P=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:D,DOMParser:z,trustedTypes:W}=i,$=M.prototype,J=vd($,"cloneNode"),O=vd($,"remove"),V=vd($,"nextSibling"),H=vd($,"childNodes"),q=vd($,"parentNode");if(typeof F=="function"){let Qe=e.createElement("template");Qe.content&&Qe.content.ownerDocument&&(e=Qe.content.ownerDocument)}let K,ee="",{implementation:ne,createNodeIterator:de,createDocumentFragment:Se,getElementsByTagName:be}=e,{importNode:Ze}=A,Be=pv();m.isSupported=typeof dv=="function"&&typeof q=="function"&&ne&&ne.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ke,ERB_EXPR:Ee,TMPLIT_EXPR:Er,DATA_ATTR:ur,ARIA_ATTR:or,IS_SCRIPT_OR_DATA:Or,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:et}=cv,{IS_ALLOWED_URI:rt}=cv,cr=null,qe=fr({},[...av,...zE,...$E,...qE,...lv]),Pe=null,Ir=fr({},[...uv,...KE,...fv,...Vd]),Me=Object.seal(em(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}})),Rr=null,dr=null,Hr=Object.seal(em(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Cr=!0,ti=!0,Ge=!1,fe=!0,Ar=!1,mr=!0,Ue=!1,Vr=!1,ii=!1,xe=!1,Ft=!1,gt=!1,Et=!0,ts=!1,De="user-content-",mt=!0,Le=!1,sr={},pt=null,dt=fr({},["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"]),nr=null,Wr=fr({},["audio","video","img","source","image","track"]),vt=null,Bt=fr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",si="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1999/xhtml",Ot=Sr,Oe=!1,oi=null,Jr=fr({},[Lt,si,Sr],_E),hr=fr({},["mi","mo","mn","ms","mtext"]),xr=fr({},["annotation-xml"]),is=fr({},["title","style","font","a","script"]),ar=null,ss=["application/xhtml+xml","text/html"],It="text/html",kr=null,vi=null,Ns=e.createElement("form"),rn=function(re){return re instanceof RegExp||re instanceof Function},tn=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vi&&vi===re)){if((!re||typeof re!="object")&&(re={}),re=Zn(re),ar=ss.indexOf(re.PARSER_MEDIA_TYPE)===-1?It:re.PARSER_MEDIA_TYPE,kr=ar==="application/xhtml+xml"?_E:Wd,cr=$s(re,"ALLOWED_TAGS")?fr({},re.ALLOWED_TAGS,kr):qe,Pe=$s(re,"ALLOWED_ATTR")?fr({},re.ALLOWED_ATTR,kr):Ir,oi=$s(re,"ALLOWED_NAMESPACES")?fr({},re.ALLOWED_NAMESPACES,_E):Jr,vt=$s(re,"ADD_URI_SAFE_ATTR")?fr(Zn(Bt),re.ADD_URI_SAFE_ATTR,kr):Bt,nr=$s(re,"ADD_DATA_URI_TAGS")?fr(Zn(Wr),re.ADD_DATA_URI_TAGS,kr):Wr,pt=$s(re,"FORBID_CONTENTS")?fr({},re.FORBID_CONTENTS,kr):dt,Rr=$s(re,"FORBID_TAGS")?fr({},re.FORBID_TAGS,kr):Zn({}),dr=$s(re,"FORBID_ATTR")?fr({},re.FORBID_ATTR,kr):Zn({}),sr=$s(re,"USE_PROFILES")?re.USE_PROFILES:!1,Cr=re.ALLOW_ARIA_ATTR!==!1,ti=re.ALLOW_DATA_ATTR!==!1,Ge=re.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=re.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ar=re.SAFE_FOR_TEMPLATES||!1,mr=re.SAFE_FOR_XML!==!1,Ue=re.WHOLE_DOCUMENT||!1,xe=re.RETURN_DOM||!1,Ft=re.RETURN_DOM_FRAGMENT||!1,gt=re.RETURN_TRUSTED_TYPE||!1,ii=re.FORCE_BODY||!1,Et=re.SANITIZE_DOM!==!1,ts=re.SANITIZE_NAMED_PROPS||!1,mt=re.KEEP_CONTENT!==!1,Le=re.IN_PLACE||!1,rt=re.ALLOWED_URI_REGEXP||hv,Ot=re.NAMESPACE||Sr,hr=re.MATHML_TEXT_INTEGRATION_POINTS||hr,xr=re.HTML_INTEGRATION_POINTS||xr,Me=re.CUSTOM_ELEMENT_HANDLING||{},re.CUSTOM_ELEMENT_HANDLING&&rn(re.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=re.CUSTOM_ELEMENT_HANDLING.tagNameCheck),re.CUSTOM_ELEMENT_HANDLING&&rn(re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),re.CUSTOM_ELEMENT_HANDLING&&typeof re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ar&&(ti=!1),Ft&&(xe=!0),sr&&(cr=fr({},lv),Pe=[],sr.html===!0&&(fr(cr,av),fr(Pe,uv)),sr.svg===!0&&(fr(cr,zE),fr(Pe,KE),fr(Pe,Vd)),sr.svgFilters===!0&&(fr(cr,$E),fr(Pe,KE),fr(Pe,Vd)),sr.mathMl===!0&&(fr(cr,qE),fr(Pe,fv),fr(Pe,Vd))),re.ADD_TAGS&&(typeof re.ADD_TAGS=="function"?Hr.tagCheck=re.ADD_TAGS:(cr===qe&&(cr=Zn(cr)),fr(cr,re.ADD_TAGS,kr))),re.ADD_ATTR&&(typeof re.ADD_ATTR=="function"?Hr.attributeCheck=re.ADD_ATTR:(Pe===Ir&&(Pe=Zn(Pe)),fr(Pe,re.ADD_ATTR,kr))),re.ADD_URI_SAFE_ATTR&&fr(vt,re.ADD_URI_SAFE_ATTR,kr),re.FORBID_CONTENTS&&(pt===dt&&(pt=Zn(pt)),fr(pt,re.FORBID_CONTENTS,kr)),re.ADD_FORBID_CONTENTS&&(pt===dt&&(pt=Zn(pt)),fr(pt,re.ADD_FORBID_CONTENTS,kr)),mt&&(cr["#text"]=!0),Ue&&fr(cr,["html","head","body"]),cr.table&&(fr(cr,["tbody"]),delete Rr.tbody),re.TRUSTED_TYPES_POLICY){if(typeof re.TRUSTED_TYPES_POLICY.createHTML!="function")throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof re.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=re.TRUSTED_TYPES_POLICY,ee=K.createHTML("")}else K===void 0&&(K=Sb(W,R)),K!==null&&typeof ee=="string"&&(ee=K.createHTML(""));di&&di(re),vi=re}},Oo=fr({},[...zE,...$E,...mb]),sn=fr({},[...qE,...vb]),ya=function(re){let me=q(re);(!me||!me.tagName)&&(me={namespaceURI:Ot,tagName:"template"});let we=Wd(re.tagName),Nr=Wd(me.tagName);return oi[re.namespaceURI]?re.namespaceURI===si?me.namespaceURI===Sr?we==="svg":me.namespaceURI===Lt?we==="svg"&&(Nr==="annotation-xml"||hr[Nr]):!!Oo[we]:re.namespaceURI===Lt?me.namespaceURI===Sr?we==="math":me.namespaceURI===si?we==="math"&&xr[Nr]:!!sn[we]:re.namespaceURI===Sr?me.namespaceURI===si&&!xr[Nr]||me.namespaceURI===Lt&&!hr[Nr]?!1:!sn[we]&&(is[we]||!Oo[we]):!!(ar==="application/xhtml+xml"&&oi[re.namespaceURI]):!1},Xt=function(re){gd(m.removed,{element:re});try{q(re).removeChild(re)}catch{O(re)}},Bi=function(re,me){try{gd(m.removed,{attribute:me.getAttributeNode(re),from:me})}catch{gd(m.removed,{attribute:null,from:me})}if(me.removeAttribute(re),re==="is")if(xe||Ft)try{Xt(me)}catch{}else try{me.setAttribute(re,"")}catch{}},nn=function(re){let me=null,we=null;if(ii)re="<remove></remove>"+re;else{let rr=jE(re,/^[\r\n\t ]+/);we=rr&&rr[0]}ar==="application/xhtml+xml"&&Ot===Sr&&(re='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+re+"</body></html>");let Nr=K?K.createHTML(re):re;if(Ot===Sr)try{me=new z().parseFromString(Nr,ar)}catch{}if(!me||!me.documentElement){me=ne.createDocument(Ot,"template",null);try{me.documentElement.innerHTML=Oe?ee:Nr}catch{}}let nt=me.body||me.documentElement;return re&&we&&nt.insertBefore(e.createTextNode(we),nt.childNodes[0]||null),Ot===Sr?be.call(me,Ue?"html":"body")[0]:Ue?me.documentElement:nt},Vo=function(re){return de.call(re.ownerDocument||re,re,Y.SHOW_ELEMENT|Y.SHOW_COMMENT|Y.SHOW_TEXT|Y.SHOW_PROCESSING_INSTRUCTION|Y.SHOW_CDATA_SECTION,null)},Xn=function(re){return re instanceof D&&(typeof re.nodeName!="string"||typeof re.textContent!="string"||typeof re.removeChild!="function"||!(re.attributes instanceof P)||typeof re.removeAttribute!="function"||typeof re.setAttribute!="function"||typeof re.namespaceURI!="string"||typeof re.insertBefore!="function"||typeof re.hasChildNodes!="function")},on=function(re){return typeof Z=="function"&&re instanceof Z};function ai(Qe,re,me){Od(Qe,we=>{we.call(m,re,me,vi)})}let an=function(re){let me=null;if(ai(Be.beforeSanitizeElements,re,null),Xn(re))return Xt(re),!0;let we=kr(re.nodeName);if(ai(Be.uponSanitizeElement,re,{tagName:we,allowedTags:cr}),mr&&re.hasChildNodes()&&!on(re.firstElementChild)&&pi(/<[/\w!]/g,re.innerHTML)&&pi(/<[/\w!]/g,re.textContent)||re.nodeType===Id.progressingInstruction||mr&&re.nodeType===Id.comment&&pi(/<[/\w]/g,re.data))return Xt(re),!0;if(!(Hr.tagCheck instanceof Function&&Hr.tagCheck(we))&&(!cr[we]||Rr[we])){if(!Rr[we]&&Wo(we)&&(Me.tagNameCheck instanceof RegExp&&pi(Me.tagNameCheck,we)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(we)))return!1;if(mt&&!pt[we]){let Nr=q(re)||re.parentNode,nt=H(re)||re.childNodes;if(nt&&Nr){let rr=nt.length;for(let Ae=rr-1;Ae>=0;--Ae){let Ct=J(nt[Ae],!0);Ct.__removalCount=(re.__removalCount||0)+1,Nr.insertBefore(Ct,V(re))}}}return Xt(re),!0}return re instanceof M&&!ya(re)||(we==="noscript"||we==="noembed"||we==="noframes")&&pi(/<\/no(script|embed|frames)/i,re.innerHTML)?(Xt(re),!0):(Ar&&re.nodeType===Id.text&&(me=re.textContent,Od([Ke,Ee,Er],Nr=>{me=Ed(me,Nr," ")}),re.textContent!==me&&(gd(m.removed,{element:re.cloneNode()}),re.textContent=me)),ai(Be.afterSanitizeElements,re,null),!1)},Oi=function(re,me,we){if(Et&&(me==="id"||me==="name")&&(we in e||we in Ns))return!1;if(!(ti&&!dr[me]&&pi(ur,me))){if(!(Cr&&pi(or,me))){if(!(Hr.attributeCheck instanceof Function&&Hr.attributeCheck(me,re))){if(!Pe[me]||dr[me]){if(!(Wo(re)&&(Me.tagNameCheck instanceof RegExp&&pi(Me.tagNameCheck,re)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(re))&&(Me.attributeNameCheck instanceof RegExp&&pi(Me.attributeNameCheck,me)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(me,re))||me==="is"&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&pi(Me.tagNameCheck,we)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(we))))return!1}else if(!vt[me]){if(!pi(rt,Ed(we,je,""))){if(!((me==="src"||me==="xlink:href"||me==="href")&&re!=="script"&&db(we,"data:")===0&&nr[re])){if(!(Ge&&!pi(Or,Ed(we,je,"")))){if(we)return!1}}}}}}}return!0},Wo=function(re){return re!=="annotation-xml"&&jE(re,et)},Zo=function(re){ai(Be.beforeSanitizeAttributes,re,null);let{attributes:me}=re;if(!me||Xn(re))return;let we={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0},Nr=me.length;for(;Nr--;){let nt=me[Nr],{name:rr,namespaceURI:Ae,value:Ct}=nt,Ii=kr(rr),Pt=Ct,Je=rr==="value"?Pt:hb(Pt);if(we.attrName=Ii,we.attrValue=Je,we.keepAttr=!0,we.forceKeepAttr=void 0,ai(Be.uponSanitizeAttribute,re,we),Je=we.attrValue,ts&&(Ii==="id"||Ii==="name")&&(Bi(rr,re),Je=De+Je),mr&&pi(/((--!?|])>)|<\/(style|title|textarea)/i,Je)){Bi(rr,re);continue}if(Ii==="attributename"&&jE(Je,"href")){Bi(rr,re);continue}if(we.forceKeepAttr)continue;if(!we.keepAttr){Bi(rr,re);continue}if(!fe&&pi(/\/>/i,Je)){Bi(rr,re);continue}Ar&&Od([Ke,Ee,Er],ns=>{Je=Ed(Je,ns," ")});let Ci=kr(re.nodeName);if(!Oi(Ci,Ii,Je)){Bi(rr,re);continue}if(K&&typeof W=="object"&&typeof W.getAttributeType=="function"&&!Ae)switch(W.getAttributeType(Ci,Ii)){case"TrustedHTML":{Je=K.createHTML(Je);break}case"TrustedScriptURL":{Je=K.createScriptURL(Je);break}}if(Je!==Pt)try{Ae?re.setAttributeNS(Ae,rr,Je):re.setAttribute(rr,Je),Xn(re)?Xt(re):ov(m.removed)}catch{Bi(rr,re)}}ai(Be.afterSanitizeAttributes,re,null)},ln=function Qe(re){let me=null,we=Vo(re);for(ai(Be.beforeSanitizeShadowDOM,re,null);me=we.nextNode();)ai(Be.uponSanitizeShadowNode,me,null),an(me),Zo(me),me.content instanceof L&&Qe(me.content);ai(Be.afterSanitizeShadowDOM,re,null)};return m.sanitize=function(Qe){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=null,we=null,Nr=null,nt=null;if(Oe=!Qe,Oe&&(Qe="<!-->"),typeof Qe!="string"&&!on(Qe))if(typeof Qe.toString=="function"){if(Qe=Qe.toString(),typeof Qe!="string")throw md("dirty is not a string, aborting")}else throw md("toString is not a function");if(!m.isSupported)return Qe;if(Vr||tn(re),m.removed=[],typeof Qe=="string"&&(Le=!1),Le){if(Qe.nodeName){let Ct=kr(Qe.nodeName);if(!cr[Ct]||Rr[Ct])throw md("root node is forbidden and cannot be sanitized in-place")}}else if(Qe instanceof Z)me=nn("<!---->"),we=me.ownerDocument.importNode(Qe,!0),we.nodeType===Id.element&&we.nodeName==="BODY"||we.nodeName==="HTML"?me=we:me.appendChild(we);else{if(!xe&&!Ar&&!Ue&&Qe.indexOf("<")===-1)return K&&gt?K.createHTML(Qe):Qe;if(me=nn(Qe),!me)return xe?null:gt?ee:""}me&&ii&&Xt(me.firstChild);let rr=Vo(Le?Qe:me);for(;Nr=rr.nextNode();)an(Nr),Zo(Nr),Nr.content instanceof L&&ln(Nr.content);if(Le)return Qe;if(xe){if(Ft)for(nt=Se.call(me.ownerDocument);me.firstChild;)nt.appendChild(me.firstChild);else nt=me;return(Pe.shadowroot||Pe.shadowrootmode)&&(nt=Ze.call(A,nt,!0)),nt}let Ae=Ue?me.outerHTML:me.innerHTML;return Ue&&cr["!doctype"]&&me.ownerDocument&&me.ownerDocument.doctype&&me.ownerDocument.doctype.name&&pi(gv,me.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+me.ownerDocument.doctype.name+`>
40
- `+Ae),Ar&&Od([Ke,Ee,Er],Ct=>{Ae=Ed(Ae,Ct," ")}),K&&gt?K.createHTML(Ae):Ae},m.setConfig=function(){let Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tn(Qe),Vr=!0},m.clearConfig=function(){vi=null,Vr=!1},m.isValidAttribute=function(Qe,re,me){vi||tn({});let we=kr(Qe),Nr=kr(re);return Oi(we,Nr,me)},m.addHook=function(Qe,re){typeof re=="function"&&gd(Be[Qe],re)},m.removeHook=function(Qe,re){if(re!==void 0){let me=cb(Be[Qe],re);return me===-1?void 0:pb(Be[Qe],me,1)[0]}return ov(Be[Qe])},m.removeHooks=function(Qe){Be[Qe]=[]},m.removeAllHooks=function(){Be=pv()},m}var mv=Ev();var qs=jt(_v()),Pl=class{constructor(m){this.namespace=m}set(m,e,A,R){if(qs.default.enabled&&(this.removeExpiredKeys(),m&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{qs.default.set(m,{namespace:this.namespace,val:e,exp:A,time:new Date().getTime()/1e3})}catch(L){if(L instanceof Error){let F=L;if(F.quotaExceeded=UA(L),F.quotaExceeded&&R)R(L);else throw F}throw L}}}remove(m){qs.default.enabled&&m&&qs.default.remove(m)}removeExpiredKeys(){qs.default.enabled&&qs.default.each((m,e)=>{m&&m.exp&&new Date().getTime()/1e3-m.time>m.exp&&this.remove(e)})}removeAll(){qs.default.enabled}removeNamespace(){qs.default.each((m,e)=>{m.namespace&&m.namespace===this.namespace&&this.remove(e)})}get(m){if(qs.default.enabled&&m)if(this.removeExpiredKeys(),m){var e=qs.default.get(m);return e?e.val:void 0}else return}};function UA(i){var m=!1;if(i)if(i.code)switch(i.code){case 22:m=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(m=!0);break}else i.number===-2147024882&&(m=!0);return m}var{sanitize:CL}=mv;function jv(i,m){if(i)return i.classList?i.classList.contains(m):!!i.className.match(new RegExp("(\\s|^)"+m+"(\\s|$)"))}function Ne(i,...m){if(i)for(let e of m)i.classList?i.classList.add(e):jv(i,e)||(i.className+=" "+e)}function Ki(i,m){if(i){if(i.classList)i.classList.remove(m);else if(jv(i,m)){var e=new RegExp("(\\s|^)"+m+"(\\s|$)");i.className=i.className.replace(e," ")}}}var bh=jt(Zd());function Ff(i,m,e){var A;m.onmouseover=function(){A||(A=document.createElement("div"),A.className="yasqe_tooltip"),A.style.display="block",A.innerHTML=e,m.appendChild(A)},m.onmouseout=function(){A&&(A.style.display="none"),A.innerHTML=e}}var wm={};Jm(wm,{base64EncodeUnicode:()=>kC,executeQuery:()=>Nm,getAcceptHeader:()=>PC,getAjaxConfig:()=>$l,getAsCurlString:()=>ym,getAsPowerShellString:()=>Sm,getAsWgetString:()=>Lm,getUrlArguments:()=>XC,hasAuthenticationCredentials:()=>Rm});var kA=typeof global=="object"&&global&&global.Object===Object&&global,Md=kA;var XA=typeof self=="object"&&self&&self.Object===Object&&self,PA=Md||XA||Function("return this")(),Ut=PA;var YA=Ut.Symbol,gi=YA;var h0=Object.prototype,HA=h0.hasOwnProperty,JA=h0.toString,Nd=gi?gi.toStringTag:void 0;function _A(i){var m=HA.call(i,Nd),e=i[Nd];try{i[Nd]=void 0;var A=!0}catch{}var R=JA.call(i);return A&&(m?i[Nd]=e:delete i[Nd]),R}var g0=_A;var jA=Object.prototype,zA=jA.toString;function $A(i){return zA.call(i)}var E0=$A;var qA="[object Null]",KA="[object Undefined]",m0=gi?gi.toStringTag:void 0;function eN(i){return i==null?i===void 0?KA:qA:m0&&m0 in Object(i)?g0(i):E0(i)}var es=eN;function rN(i){return i!=null&&typeof i=="object"}var Ei=rN;var tN="[object Symbol]";function iN(i){return typeof i=="symbol"||Ei(i)&&es(i)==tN}var Ks=iN;function sN(i,m){for(var e=-1,A=i==null?0:i.length,R=Array(A);++e<A;)R[e]=m(i[e],e,i);return R}var Bf=sN;var nN=Array.isArray,it=nN;var oN=1/0,v0=gi?gi.prototype:void 0,I0=v0?v0.toString:void 0;function C0(i){if(typeof i=="string")return i;if(it(i))return Bf(i,C0)+"";if(Ks(i))return I0?I0.call(i):"";var m=i+"";return m=="0"&&1/i==-oN?"-0":m}var x0=C0;var aN=/\s/;function lN(i){for(var m=i.length;m--&&aN.test(i.charAt(m)););return m}var b0=lN;var uN=/^\s+/;function fN(i){return i&&i.slice(0,b0(i)+1).replace(uN,"")}var A0=fN;function cN(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}var kt=cN;var N0=NaN,pN=/^[-+]0x[0-9a-f]+$/i,dN=/^0b[01]+$/i,hN=/^0o[0-7]+$/i,gN=parseInt;function EN(i){if(typeof i=="number")return i;if(Ks(i))return N0;if(kt(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=kt(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=A0(i);var e=dN.test(i);return e||hN.test(i)?gN(i.slice(2),e?2:8):pN.test(i)?N0:+i}var T0=EN;var R0=1/0,mN=17976931348623157e292;function vN(i){if(!i)return i===0?i:0;if(i=T0(i),i===R0||i===-R0){var m=i<0?-1:1;return m*mN}return i===i?i:0}var y0=vN;function IN(i){var m=y0(i),e=m%1;return m===m?e?m-e:m:0}var S0=IN;function CN(i){return i}var va=CN;var xN="[object AsyncFunction]",bN="[object Function]",AN="[object GeneratorFunction]",NN="[object Proxy]";function TN(i){if(!kt(i))return!1;var m=es(i);return m==bN||m==AN||m==xN||m==NN}var st=TN;var RN=Ut["__core-js_shared__"],Dd=RN;var L0=function(){var i=/[^.]+$/.exec(Dd&&Dd.keys&&Dd.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function yN(i){return!!L0&&L0 in i}var w0=yN;var SN=Function.prototype,LN=SN.toString;function wN(i){if(i!=null){try{return LN.call(i)}catch{}try{return i+""}catch{}}return""}var wo=wN;var GN=/[\\^$.*+?()[\]{}|]/g,UN=/^\[object .+?Constructor\]$/,FN=Function.prototype,BN=Object.prototype,ON=FN.toString,VN=BN.hasOwnProperty,WN=RegExp("^"+ON.call(VN).replace(GN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZN(i){if(!kt(i)||w0(i))return!1;var m=st(i)?WN:UN;return m.test(wo(i))}var G0=ZN;function MN(i,m){return i?.[m]}var U0=MN;function DN(i,m){var e=U0(i,m);return G0(e)?e:void 0}var Ui=DN;var QN=Ui(Ut,"WeakMap"),Qd=QN;var F0=Object.create,kN=function(){function i(){}return function(m){if(!kt(m))return{};if(F0)return F0(m);i.prototype=m;var e=new i;return i.prototype=void 0,e}}(),B0=kN;function XN(i,m,e){switch(e.length){case 0:return i.call(m);case 1:return i.call(m,e[0]);case 2:return i.call(m,e[0],e[1]);case 3:return i.call(m,e[0],e[1],e[2])}return i.apply(m,e)}var O0=XN;function PN(i,m){var e=-1,A=i.length;for(m||(m=Array(A));++e<A;)m[e]=i[e];return m}var V0=PN;var YN=800,HN=16,JN=Date.now;function _N(i){var m=0,e=0;return function(){var A=JN(),R=HN-(A-e);if(e=A,R>0){if(++m>=YN)return arguments[0]}else m=0;return i.apply(void 0,arguments)}}var W0=_N;function jN(i){return function(){return i}}var Z0=jN;var zN=function(){try{var i=Ui(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Of=zN;var $N=Of?function(i,m){return Of(i,"toString",{configurable:!0,enumerable:!1,value:Z0(m),writable:!0})}:va,M0=$N;var qN=W0(M0),D0=qN;var KN=9007199254740991,eT=/^(?:0|[1-9]\d*)$/;function rT(i,m){var e=typeof i;return m=m??KN,!!m&&(e=="number"||e!="symbol"&&eT.test(i))&&i>-1&&i%1==0&&i<m}var Vf=rT;function tT(i,m,e){m=="__proto__"&&Of?Of(i,m,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[m]=e}var Wf=tT;function iT(i,m){return i===m||i!==i&&m!==m}var Mn=iT;var sT=Object.prototype,nT=sT.hasOwnProperty;function oT(i,m,e){var A=i[m];(!(nT.call(i,m)&&Mn(A,e))||e===void 0&&!(m in i))&&Wf(i,m,e)}var Q0=oT;function aT(i,m,e,A){var R=!e;e||(e={});for(var L=-1,F=m.length;++L<F;){var Z=m[L],M=A?A(e[Z],i[Z],Z,e,i):void 0;M===void 0&&(M=i[Z]),R?Wf(e,Z,M):Q0(e,Z,M)}return e}var k0=aT;var X0=Math.max;function lT(i,m,e){return m=X0(m===void 0?i.length-1:m,0),function(){for(var A=arguments,R=-1,L=X0(A.length-m,0),F=Array(L);++R<L;)F[R]=A[m+R];R=-1;for(var Z=Array(m+1);++R<m;)Z[R]=A[R];return Z[m]=e(F),O0(i,this,Z)}}var P0=lT;function uT(i,m){return D0(P0(i,m,va),i+"")}var kd=uT;var fT=9007199254740991;function cT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=fT}var Zf=cT;function pT(i){return i!=null&&Zf(i.length)&&!st(i)}var xs=pT;function dT(i,m,e){if(!kt(e))return!1;var A=typeof m;return(A=="number"?xs(e)&&Vf(m,e.length):A=="string"&&m in e)?Mn(e[m],i):!1}var Td=dT;function hT(i){return kd(function(m,e){var A=-1,R=e.length,L=R>1?e[R-1]:void 0,F=R>2?e[2]:void 0;for(L=i.length>3&&typeof L=="function"?(R--,L):void 0,F&&Td(e[0],e[1],F)&&(L=R<3?void 0:L,R=1),m=Object(m);++A<R;){var Z=e[A];Z&&i(m,Z,A,L)}return m})}var Xd=hT;var gT=Object.prototype;function ET(i){var m=i&&i.constructor,e=typeof m=="function"&&m.prototype||gT;return i===e}var Mf=ET;function mT(i,m){for(var e=-1,A=Array(i);++e<i;)A[e]=m(e);return A}var Y0=mT;var vT="[object Arguments]";function IT(i){return Ei(i)&&es(i)==vT}var dm=IT;var H0=Object.prototype,CT=H0.hasOwnProperty,xT=H0.propertyIsEnumerable,bT=dm(function(){return arguments}())?dm:function(i){return Ei(i)&&CT.call(i,"callee")&&!xT.call(i,"callee")},Go=bT;function AT(){return!1}var J0=AT;var z0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_0=z0&&typeof module=="object"&&module&&!module.nodeType&&module,NT=_0&&_0.exports===z0,j0=NT?Ut.Buffer:void 0,TT=j0?j0.isBuffer:void 0,RT=TT||J0,Hl=RT;var yT="[object Arguments]",ST="[object Array]",LT="[object Boolean]",wT="[object Date]",GT="[object Error]",UT="[object Function]",FT="[object Map]",BT="[object Number]",OT="[object Object]",VT="[object RegExp]",WT="[object Set]",ZT="[object String]",MT="[object WeakMap]",DT="[object ArrayBuffer]",QT="[object DataView]",kT="[object Float32Array]",XT="[object Float64Array]",PT="[object Int8Array]",YT="[object Int16Array]",HT="[object Int32Array]",JT="[object Uint8Array]",_T="[object Uint8ClampedArray]",jT="[object Uint16Array]",zT="[object Uint32Array]",Kr={};Kr[kT]=Kr[XT]=Kr[PT]=Kr[YT]=Kr[HT]=Kr[JT]=Kr[_T]=Kr[jT]=Kr[zT]=!0;Kr[yT]=Kr[ST]=Kr[DT]=Kr[LT]=Kr[QT]=Kr[wT]=Kr[GT]=Kr[UT]=Kr[FT]=Kr[BT]=Kr[OT]=Kr[VT]=Kr[WT]=Kr[ZT]=Kr[MT]=!1;function $T(i){return Ei(i)&&Zf(i.length)&&!!Kr[es(i)]}var $0=$T;function qT(i){return function(m){return i(m)}}var Pd=qT;var q0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rd=q0&&typeof module=="object"&&module&&!module.nodeType&&module,KT=Rd&&Rd.exports===q0,hm=KT&&Md.process,eR=function(){try{var i=Rd&&Rd.require&&Rd.require("util").types;return i||hm&&hm.binding&&hm.binding("util")}catch{}}(),gm=eR;var K0=gm&&gm.isTypedArray,rR=K0?Pd(K0):$0,Df=rR;var tR=Object.prototype,iR=tR.hasOwnProperty;function sR(i,m){var e=it(i),A=!e&&Go(i),R=!e&&!A&&Hl(i),L=!e&&!A&&!R&&Df(i),F=e||A||R||L,Z=F?Y0(i.length,String):[],M=Z.length;for(var Y in i)(m||iR.call(i,Y))&&!(F&&(Y=="length"||R&&(Y=="offset"||Y=="parent")||L&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||Vf(Y,M)))&&Z.push(Y);return Z}var Yd=sR;function nR(i,m){return function(e){return i(m(e))}}var Hd=nR;var oR=Hd(Object.keys,Object),eI=oR;var aR=Object.prototype,lR=aR.hasOwnProperty;function uR(i){if(!Mf(i))return eI(i);var m=[];for(var e in Object(i))lR.call(i,e)&&e!="constructor"&&m.push(e);return m}var rI=uR;function fR(i){return xs(i)?Yd(i):rI(i)}var Qf=fR;function cR(i){var m=[];if(i!=null)for(var e in Object(i))m.push(e);return m}var tI=cR;var pR=Object.prototype,dR=pR.hasOwnProperty;function hR(i){if(!kt(i))return tI(i);var m=Mf(i),e=[];for(var A in i)A=="constructor"&&(m||!dR.call(i,A))||e.push(A);return e}var iI=hR;function gR(i){return xs(i)?Yd(i,!0):iI(i)}var Jd=gR;var ER=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mR=/^\w*$/;function vR(i,m){if(it(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||Ks(i)?!0:mR.test(i)||!ER.test(i)||m!=null&&i in Object(m)}var kf=vR;var IR=Ui(Object,"create"),Uo=IR;function CR(){this.__data__=Uo?Uo(null):{},this.size=0}var sI=CR;function xR(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}var nI=xR;var bR="__lodash_hash_undefined__",AR=Object.prototype,NR=AR.hasOwnProperty;function TR(i){var m=this.__data__;if(Uo){var e=m[i];return e===bR?void 0:e}return NR.call(m,i)?m[i]:void 0}var oI=TR;var RR=Object.prototype,yR=RR.hasOwnProperty;function SR(i){var m=this.__data__;return Uo?m[i]!==void 0:yR.call(m,i)}var aI=SR;var LR="__lodash_hash_undefined__";function wR(i,m){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=Uo&&m===void 0?LR:m,this}var lI=wR;function Xf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var A=i[m];this.set(A[0],A[1])}}Xf.prototype.clear=sI;Xf.prototype.delete=nI;Xf.prototype.get=oI;Xf.prototype.has=aI;Xf.prototype.set=lI;var Em=Xf;function GR(){this.__data__=[],this.size=0}var uI=GR;function UR(i,m){for(var e=i.length;e--;)if(Mn(i[e][0],m))return e;return-1}var Ia=UR;var FR=Array.prototype,BR=FR.splice;function OR(i){var m=this.__data__,e=Ia(m,i);if(e<0)return!1;var A=m.length-1;return e==A?m.pop():BR.call(m,e,1),--this.size,!0}var fI=OR;function VR(i){var m=this.__data__,e=Ia(m,i);return e<0?void 0:m[e][1]}var cI=VR;function WR(i){return Ia(this.__data__,i)>-1}var pI=WR;function ZR(i,m){var e=this.__data__,A=Ia(e,i);return A<0?(++this.size,e.push([i,m])):e[A][1]=m,this}var dI=ZR;function Pf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var A=i[m];this.set(A[0],A[1])}}Pf.prototype.clear=uI;Pf.prototype.delete=fI;Pf.prototype.get=cI;Pf.prototype.has=pI;Pf.prototype.set=dI;var Ca=Pf;var MR=Ui(Ut,"Map"),xa=MR;function DR(){this.size=0,this.__data__={hash:new Em,map:new(xa||Ca),string:new Em}}var hI=DR;function QR(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}var gI=QR;function kR(i,m){var e=i.__data__;return gI(m)?e[typeof m=="string"?"string":"hash"]:e.map}var ba=kR;function XR(i){var m=ba(this,i).delete(i);return this.size-=m?1:0,m}var EI=XR;function PR(i){return ba(this,i).get(i)}var mI=PR;function YR(i){return ba(this,i).has(i)}var vI=YR;function HR(i,m){var e=ba(this,i),A=e.size;return e.set(i,m),this.size+=e.size==A?0:1,this}var II=HR;function Yf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var A=i[m];this.set(A[0],A[1])}}Yf.prototype.clear=hI;Yf.prototype.delete=EI;Yf.prototype.get=mI;Yf.prototype.has=vI;Yf.prototype.set=II;var Jl=Yf;var JR="Expected a function";function mm(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new TypeError(JR);var e=function(){var A=arguments,R=m?m.apply(this,A):A[0],L=e.cache;if(L.has(R))return L.get(R);var F=i.apply(this,A);return e.cache=L.set(R,F)||L,F};return e.cache=new(mm.Cache||Jl),e}mm.Cache=Jl;var CI=mm;var _R=500;function jR(i){var m=CI(i,function(A){return e.size===_R&&e.clear(),A}),e=m.cache;return m}var xI=jR;var zR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$R=/\\(\\)?/g,qR=xI(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(zR,function(e,A,R,L){m.push(R?L.replace($R,"$1"):A||e)}),m}),bI=qR;function KR(i){return i==null?"":x0(i)}var _d=KR;function ey(i,m){return it(i)?i:kf(i,m)?[i]:bI(_d(i))}var jd=ey;var ry=1/0;function ty(i){if(typeof i=="string"||Ks(i))return i;var m=i+"";return m=="0"&&1/i==-ry?"-0":m}var Aa=ty;function iy(i,m){m=jd(m,i);for(var e=0,A=m.length;i!=null&&e<A;)i=i[Aa(m[e++])];return e&&e==A?i:void 0}var Hf=iy;function sy(i,m,e){var A=i==null?void 0:Hf(i,m);return A===void 0?e:A}var AI=sy;function ny(i,m){for(var e=-1,A=m.length,R=i.length;++e<A;)i[R+e]=m[e];return i}var zd=ny;var NI=gi?gi.isConcatSpreadable:void 0;function oy(i){return it(i)||Go(i)||!!(NI&&i&&i[NI])}var TI=oy;function RI(i,m,e,A,R){var L=-1,F=i.length;for(e||(e=TI),R||(R=[]);++L<F;){var Z=i[L];m>0&&e(Z)?m>1?RI(Z,m-1,e,A,R):zd(R,Z):A||(R[R.length]=Z)}return R}var yI=RI;var ay=Hd(Object.getPrototypeOf,Object),$d=ay;var ly="[object Object]",uy=Function.prototype,fy=Object.prototype,SI=uy.toString,cy=fy.hasOwnProperty,py=SI.call(Object);function dy(i){if(!Ei(i)||es(i)!=ly)return!1;var m=$d(i);if(m===null)return!0;var e=cy.call(m,"constructor")&&m.constructor;return typeof e=="function"&&e instanceof e&&SI.call(e)==py}var LI=dy;function hy(i,m,e){var A=-1,R=i.length;m<0&&(m=-m>R?0:R+m),e=e>R?R:e,e<0&&(e+=R),R=m>e?0:e-m>>>0,m>>>=0;for(var L=Array(R);++A<R;)L[A]=i[A+m];return L}var wI=hy;function gy(i){return function(m){return i?.[m]}}var GI=gy;function Ey(){this.__data__=new Ca,this.size=0}var UI=Ey;function my(i){var m=this.__data__,e=m.delete(i);return this.size=m.size,e}var FI=my;function vy(i){return this.__data__.get(i)}var BI=vy;function Iy(i){return this.__data__.has(i)}var OI=Iy;var Cy=200;function xy(i,m){var e=this.__data__;if(e instanceof Ca){var A=e.__data__;if(!xa||A.length<Cy-1)return A.push([i,m]),this.size=++e.size,this;e=this.__data__=new Jl(A)}return e.set(i,m),this.size=e.size,this}var VI=xy;function Jf(i){var m=this.__data__=new Ca(i);this.size=m.size}Jf.prototype.clear=UI;Jf.prototype.delete=FI;Jf.prototype.get=BI;Jf.prototype.has=OI;Jf.prototype.set=VI;var Na=Jf;var DI=typeof exports=="object"&&exports&&!exports.nodeType&&exports,WI=DI&&typeof module=="object"&&module&&!module.nodeType&&module,by=WI&&WI.exports===DI,ZI=by?Ut.Buffer:void 0,MI=ZI?ZI.allocUnsafe:void 0;function Ay(i,m){if(m)return i.slice();var e=i.length,A=MI?MI(e):new i.constructor(e);return i.copy(A),A}var QI=Ay;function Ny(i,m){for(var e=-1,A=i==null?0:i.length,R=0,L=[];++e<A;){var F=i[e];m(F,e,i)&&(L[R++]=F)}return L}var kI=Ny;function Ty(){return[]}var XI=Ty;var Ry=Object.prototype,yy=Ry.propertyIsEnumerable,PI=Object.getOwnPropertySymbols,Sy=PI?function(i){return i==null?[]:(i=Object(i),kI(PI(i),function(m){return yy.call(i,m)}))}:XI,YI=Sy;function Ly(i,m,e){var A=m(i);return it(i)?A:zd(A,e(i))}var HI=Ly;function wy(i){return HI(i,Qf,YI)}var vm=wy;var Gy=Ui(Ut,"DataView"),qd=Gy;var Uy=Ui(Ut,"Promise"),Kd=Uy;var Fy=Ui(Ut,"Set"),eh=Fy;var JI="[object Map]",By="[object Object]",_I="[object Promise]",jI="[object Set]",zI="[object WeakMap]",$I="[object DataView]",Oy=wo(qd),Vy=wo(xa),Wy=wo(Kd),Zy=wo(eh),My=wo(Qd),_l=es;(qd&&_l(new qd(new ArrayBuffer(1)))!=$I||xa&&_l(new xa)!=JI||Kd&&_l(Kd.resolve())!=_I||eh&&_l(new eh)!=jI||Qd&&_l(new Qd)!=zI)&&(_l=function(i){var m=es(i),e=m==By?i.constructor:void 0,A=e?wo(e):"";if(A)switch(A){case Oy:return $I;case Vy:return JI;case Wy:return _I;case Zy:return jI;case My:return zI}return m});var Im=_l;var Dy=Ut.Uint8Array,_f=Dy;function Qy(i){var m=new i.constructor(i.byteLength);return new _f(m).set(new _f(i)),m}var qI=Qy;function ky(i,m){var e=m?qI(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var KI=ky;function Xy(i){return typeof i.constructor=="function"&&!Mf(i)?B0($d(i)):{}}var eC=Xy;var Py="__lodash_hash_undefined__";function Yy(i){return this.__data__.set(i,Py),this}var rC=Yy;function Hy(i){return this.__data__.has(i)}var tC=Hy;function rh(i){var m=-1,e=i==null?0:i.length;for(this.__data__=new Jl;++m<e;)this.add(i[m])}rh.prototype.add=rh.prototype.push=rC;rh.prototype.has=tC;var iC=rh;function Jy(i,m){for(var e=-1,A=i==null?0:i.length;++e<A;)if(m(i[e],e,i))return!0;return!1}var sC=Jy;function _y(i,m){return i.has(m)}var nC=_y;var jy=1,zy=2;function $y(i,m,e,A,R,L){var F=e&jy,Z=i.length,M=m.length;if(Z!=M&&!(F&&M>Z))return!1;var Y=L.get(i),P=L.get(m);if(Y&&P)return Y==m&&P==i;var D=-1,z=!0,W=e&zy?new iC:void 0;for(L.set(i,m),L.set(m,i);++D<Z;){var $=i[D],J=m[D];if(A)var O=F?A(J,$,D,m,i,L):A($,J,D,i,m,L);if(O!==void 0){if(O)continue;z=!1;break}if(W){if(!sC(m,function(V,H){if(!nC(W,H)&&($===V||R($,V,e,A,L)))return W.push(H)})){z=!1;break}}else if(!($===J||R($,J,e,A,L))){z=!1;break}}return L.delete(i),L.delete(m),z}var th=$y;function qy(i){var m=-1,e=Array(i.size);return i.forEach(function(A,R){e[++m]=[R,A]}),e}var oC=qy;function Ky(i){var m=-1,e=Array(i.size);return i.forEach(function(A){e[++m]=A}),e}var aC=Ky;var eS=1,rS=2,tS="[object Boolean]",iS="[object Date]",sS="[object Error]",nS="[object Map]",oS="[object Number]",aS="[object RegExp]",lS="[object Set]",uS="[object String]",fS="[object Symbol]",cS="[object ArrayBuffer]",pS="[object DataView]",lC=gi?gi.prototype:void 0,Cm=lC?lC.valueOf:void 0;function dS(i,m,e,A,R,L,F){switch(e){case pS:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case cS:return!(i.byteLength!=m.byteLength||!L(new _f(i),new _f(m)));case tS:case iS:case oS:return Mn(+i,+m);case sS:return i.name==m.name&&i.message==m.message;case aS:case uS:return i==m+"";case nS:var Z=oC;case lS:var M=A&eS;if(Z||(Z=aC),i.size!=m.size&&!M)return!1;var Y=F.get(i);if(Y)return Y==m;A|=rS,F.set(i,m);var P=th(Z(i),Z(m),A,R,L,F);return F.delete(i),P;case fS:if(Cm)return Cm.call(i)==Cm.call(m)}return!1}var uC=dS;var hS=1,gS=Object.prototype,ES=gS.hasOwnProperty;function mS(i,m,e,A,R,L){var F=e&hS,Z=vm(i),M=Z.length,Y=vm(m),P=Y.length;if(M!=P&&!F)return!1;for(var D=M;D--;){var z=Z[D];if(!(F?z in m:ES.call(m,z)))return!1}var W=L.get(i),$=L.get(m);if(W&&$)return W==m&&$==i;var J=!0;L.set(i,m),L.set(m,i);for(var O=F;++D<M;){z=Z[D];var V=i[z],H=m[z];if(A)var q=F?A(H,V,z,m,i,L):A(V,H,z,i,m,L);if(!(q===void 0?V===H||R(V,H,e,A,L):q)){J=!1;break}O||(O=z=="constructor")}if(J&&!O){var K=i.constructor,ee=m.constructor;K!=ee&&"constructor"in i&&"constructor"in m&&!(typeof K=="function"&&K instanceof K&&typeof ee=="function"&&ee instanceof ee)&&(J=!1)}return L.delete(i),L.delete(m),J}var fC=mS;var vS=1,cC="[object Arguments]",pC="[object Array]",ih="[object Object]",IS=Object.prototype,dC=IS.hasOwnProperty;function CS(i,m,e,A,R,L){var F=it(i),Z=it(m),M=F?pC:Im(i),Y=Z?pC:Im(m);M=M==cC?ih:M,Y=Y==cC?ih:Y;var P=M==ih,D=Y==ih,z=M==Y;if(z&&Hl(i)){if(!Hl(m))return!1;F=!0,P=!1}if(z&&!P)return L||(L=new Na),F||Df(i)?th(i,m,e,A,R,L):uC(i,m,M,e,A,R,L);if(!(e&vS)){var W=P&&dC.call(i,"__wrapped__"),$=D&&dC.call(m,"__wrapped__");if(W||$){var J=W?i.value():i,O=$?m.value():m;return L||(L=new Na),R(J,O,e,A,L)}}return z?(L||(L=new Na),fC(i,m,e,A,R,L)):!1}var hC=CS;function gC(i,m,e,A,R){return i===m?!0:i==null||m==null||!Ei(i)&&!Ei(m)?i!==i&&m!==m:hC(i,m,e,A,gC,R)}var sh=gC;var xS=1,bS=2;function AS(i,m,e,A){var R=e.length,L=R,F=!A;if(i==null)return!L;for(i=Object(i);R--;){var Z=e[R];if(F&&Z[2]?Z[1]!==i[Z[0]]:!(Z[0]in i))return!1}for(;++R<L;){Z=e[R];var M=Z[0],Y=i[M],P=Z[1];if(F&&Z[2]){if(Y===void 0&&!(M in i))return!1}else{var D=new Na;if(A)var z=A(Y,P,M,i,m,D);if(!(z===void 0?sh(P,Y,xS|bS,A,D):z))return!1}}return!0}var EC=AS;function NS(i){return i===i&&!kt(i)}var nh=NS;function TS(i){for(var m=Qf(i),e=m.length;e--;){var A=m[e],R=i[A];m[e]=[A,R,nh(R)]}return m}var mC=TS;function RS(i,m){return function(e){return e==null?!1:e[i]===m&&(m!==void 0||i in Object(e))}}var oh=RS;function yS(i){var m=mC(i);return m.length==1&&m[0][2]?oh(m[0][0],m[0][1]):function(e){return e===i||EC(e,i,m)}}var vC=yS;function SS(i,m){return i!=null&&m in Object(i)}var IC=SS;function LS(i,m,e){m=jd(m,i);for(var A=-1,R=m.length,L=!1;++A<R;){var F=Aa(m[A]);if(!(L=i!=null&&e(i,F)))break;i=i[F]}return L||++A!=R?L:(R=i==null?0:i.length,!!R&&Zf(R)&&Vf(F,R)&&(it(i)||Go(i)))}var CC=LS;function wS(i,m){return i!=null&&CC(i,m,IC)}var xC=wS;var GS=1,US=2;function FS(i,m){return kf(i)&&nh(m)?oh(Aa(i),m):function(e){var A=AI(e,i);return A===void 0&&A===m?xC(e,i):sh(m,A,GS|US)}}var bC=FS;function BS(i){return function(m){return m?.[i]}}var AC=BS;function OS(i){return function(m){return Hf(m,i)}}var NC=OS;function VS(i){return kf(i)?AC(Aa(i)):NC(i)}var TC=VS;function WS(i){return typeof i=="function"?i:i==null?va:typeof i=="object"?it(i)?bC(i[0],i[1]):vC(i):TC(i)}var RC=WS;function ZS(i){return function(m,e,A){for(var R=-1,L=Object(m),F=A(m),Z=F.length;Z--;){var M=F[i?Z:++R];if(e(L[M],M,L)===!1)break}return m}}var yC=ZS;var MS=yC(),ah=MS;function DS(i,m){return i&&ah(i,m,Qf)}var SC=DS;function QS(i,m){return function(e,A){if(e==null)return e;if(!xs(e))return i(e,A);for(var R=e.length,L=m?R:-1,F=Object(e);(m?L--:++L<R)&&A(F[L],L,F)!==!1;);return e}}var LC=QS;var kS=LC(SC),wC=kS;function XS(i,m,e){(e!==void 0&&!Mn(i[m],e)||e===void 0&&!(m in i))&&Wf(i,m,e)}var yd=XS;function PS(i){return Ei(i)&&xs(i)}var GC=PS;function YS(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Sd=YS;function HS(i){return k0(i,Jd(i))}var UC=HS;function JS(i,m,e,A,R,L,F){var Z=Sd(i,e),M=Sd(m,e),Y=F.get(M);if(Y){yd(i,e,Y);return}var P=L?L(Z,M,e+"",i,m,F):void 0,D=P===void 0;if(D){var z=it(M),W=!z&&Hl(M),$=!z&&!W&&Df(M);P=M,z||W||$?it(Z)?P=Z:GC(Z)?P=V0(Z):W?(D=!1,P=QI(M,!0)):$?(D=!1,P=KI(M,!0)):P=[]:LI(M)||Go(M)?(P=Z,Go(Z)?P=UC(Z):(!kt(Z)||st(Z))&&(P=eC(M))):D=!1}D&&(F.set(M,P),R(P,M,A,L,F),F.delete(M)),yd(i,e,P)}var FC=JS;function BC(i,m,e,A,R){i!==m&&ah(m,function(L,F){if(R||(R=new Na),kt(L))FC(i,m,F,e,BC,A,R);else{var Z=A?A(Sd(i,F),L,F+"",i,m,R):void 0;Z===void 0&&(Z=L),yd(i,F,Z)}},Jd)}var lh=BC;var _S=Xd(function(i,m,e,A){lh(i,m,e,A)}),xm=_S;var jS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zS=GI(jS),OC=zS;var VC=/[&<>"']/g,$S=RegExp(VC.source);function qS(i){return i=_d(i),i&&$S.test(i)?i.replace(VC,OC):i}var Ld=qS;function KS(i,m){var e=-1,A=xs(i)?Array(i.length):[];return wC(i,function(R,L,F){A[++e]=m(R,L,F)}),A}var WC=KS;var e1=Xd(function(i,m,e){lh(i,m,e)}),uh=e1;function r1(i,m){var e=i.length;for(i.sort(m);e--;)i[e]=i[e].value;return i}var ZC=r1;function t1(i,m){if(i!==m){var e=i!==void 0,A=i===null,R=i===i,L=Ks(i),F=m!==void 0,Z=m===null,M=m===m,Y=Ks(m);if(!Z&&!Y&&!L&&i>m||L&&F&&M&&!Z&&!Y||A&&F&&M||!e&&M||!R)return 1;if(!A&&!L&&!Y&&i<m||Y&&e&&R&&!A&&!L||Z&&e&&R||!F&&R||!M)return-1}return 0}var MC=t1;function i1(i,m,e){for(var A=-1,R=i.criteria,L=m.criteria,F=R.length,Z=e.length;++A<F;){var M=MC(R[A],L[A]);if(M){if(A>=Z)return M;var Y=e[A];return M*(Y=="desc"?-1:1)}}return i.index-m.index}var DC=i1;function s1(i,m,e){m.length?m=Bf(m,function(L){return it(L)?function(F){return Hf(F,L.length===1?L[0]:L)}:L}):m=[va];var A=-1;m=Bf(m,Pd(RC));var R=WC(i,function(L,F,Z){var M=Bf(m,function(Y){return Y(L)});return{criteria:M,index:++A,value:L}});return ZC(R,function(L,F){return DC(L,F,e)})}var QC=s1;var n1=kd(function(i,m){if(i==null)return[];var e=m.length;return e>1&&Td(i,m[0],m[1])?m=[]:e>2&&Td(m[0],m[1],m[2])&&(m=[m[0]]),QC(i,yI(m,1),[])}),bm=n1;function o1(i,m,e){return i&&i.length?(m=e||m===void 0?1:S0(m),wI(i,0,m<0?0:m)):[]}var Am=o1;var Dn=jt(Zd());function zl(i,m){return st(m)?m(i):m??{}}function a1(i,m){let e=`${i}:${m}`;return`Basic ${kC(e)}`}function kC(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let m=new window.TextEncoder().encode(i),e="";for(let A=0;A<m.length;A++)e+=String.fromCharCode(m[A]);return btoa(e)}else if(typeof TextEncoder<"u"){let m=new TextEncoder().encode(i),e="";for(let A=0;A<m.length;A++)e+=String.fromCharCode(m[A]);return btoa(e)}else try{return btoa(i)}catch{throw new Error("Basic authentication credentials contain unsupported Unicode characters. Please use a modern browser or restrict credentials to Latin1 characters.")}}function $l(i,m={}){let e=uh({},zl(i,i.config.requestConfig),zl(i,m));if(!e.endpoint||e.endpoint.length==0)return;var A=i.getQueryMode();let R=st(e.endpoint)?e.endpoint(i):e.endpoint;var L=A=="update"?"POST":st(e.method)?e.method(i):e.method;let F=st(e.headers)?e.headers(i):e.headers,Z=st(e.withCredentials)?e.withCredentials(i):e.withCredentials,M={...F},Y=!1;try{let P=st(e.oauth2Auth)?e.oauth2Auth(i):e.oauth2Auth,D=P?.idToken||P?.accessToken,z=D?D.trim():"";P&&z.length>0&&(Y=!0,M.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping OAuth 2.0 Auth header to avoid overwrite."):M.Authorization=`Bearer ${z}`);let W=st(e.bearerAuth)?e.bearerAuth(i):e.bearerAuth,$=W&&W.token?W.token.trim():"";W&&$.length>0&&(Y=!0,M.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Bearer Auth header to avoid overwrite."):M.Authorization=`Bearer ${$}`);let J=st(e.apiKeyAuth)?e.apiKeyAuth(i):e.apiKeyAuth,O=J&&J.headerName?J.headerName.trim():"",V=J&&J.apiKey?J.apiKey.trim():"";J&&O.length>0&&V.length>0&&(Y=!0,M[O]!==void 0?console.warn(`Header "${O}" already exists in request headers; skipping API Key header to avoid overwrite.`):M[O]=V);let H=st(e.basicAuth)?e.basicAuth(i):e.basicAuth;H&&H.username&&H.password&&(Y=!0,M.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):M.Authorization=a1(H.username,H.password))}catch(P){console.warn("Failed to configure authentication:",P)}return Y&&(Z=!0),{reqMethod:L,url:R,args:XC(i,e),headers:M,accept:PC(i,e),withCredentials:Z??!1}}async function Nm(i,m,e){let A=Date.now();try{i.emit("queryBefore",i,m);let R=$l(i,m);if(!R)return;let L=new AbortController,F=e?.customAccept||R.accept,Z={method:R.reqMethod,headers:{Accept:F,...R.headers||{}},credentials:R.withCredentials?"include":"same-origin",signal:L.signal,mode:"cors"};Z?.headers&&R.reqMethod==="POST"&&(Z.headers["Content-Type"]="application/x-www-form-urlencoded");let M=new URLSearchParams,Y=($,J=[])=>{for(let O in $)if(!J.includes(O)){let V=$[O];Array.isArray(V)?V.forEach(H=>M.append(O,H)):M.append(O,V)}},P=$=>$.query!==void 0?"query":$.update!==void 0?"update":"query";if(e?.customQuery){let $=P(R.args);M.append($,e.customQuery),Y(R.args,["query","update"])}else Y(R.args);if(R.reqMethod==="POST")Z.body=M.toString();else{let $=new URL(R.url);M.forEach((J,O)=>{$.searchParams.append(O,J)}),R.url=$.toString()}let D=new Request(R.url,Z);i.emit("query",D,L);let z=await fetch(D),W={ok:z.ok,status:z.status,statusText:z.statusText,headers:z.headers,type:z.type,content:await z.text()};if(!z.ok){let $=new Error(W.content||z.statusText);throw $.status=z.status,$.statusText=z.statusText,$.response=W,$}return i.emit("queryResponse",W,Date.now()-A),i.emit("queryResults",W.content,Date.now()-A),W}catch(R){if(!(R instanceof Error&&R.message==="Aborted"))if(R instanceof Error&&!("status"in R)){let L=R;(R.message.includes("Failed to fetch")||R.message.includes("NetworkError"))&&(L.message=`${R.message}. The server may have returned an error response (check browser dev tools), but CORS headers are preventing JavaScript from accessing it. Ensure the endpoint returns proper CORS headers even for error responses (Access-Control-Allow-Origin, etc.).`),i.emit("queryResponse",L,Date.now()-A)}else i.emit("queryResponse",R,Date.now()-A);throw i.emit("error",R),R}}function XC(i,m){var e=i.getQueryMode(),A={};let R=zl(i,m);var L=st(R.queryArgument)?R.queryArgument(i):R.queryArgument;L||(L=i.getQueryMode()),A[L]=R.adjustQueryBeforeRequest?R.adjustQueryBeforeRequest(i):i.getValue();let F=st(R.namedGraphs)?R.namedGraphs(i):R.namedGraphs;if(F&&F.length>0){let Y=e==="query"?"named-graph-uri":"using-named-graph-uri ";A[Y]=F}let Z=st(R.defaultGraphs)?R.defaultGraphs(i):R.defaultGraphs;if(Z&&Z.length>0){let Y=e=="query"?"default-graph-uri":"using-graph-uri ";A[Y]=Z}let M=st(R.args)?R.args(i):R.args;return M&&M.length>0&&uh(A,M.reduce((Y,P)=>(Y[P.name]?Y[P.name].push(P.value):Y[P.name]=[P.value],Y),{})),A}function PC(i,m){let e=zl(i,m);var A=null;if(i.getQueryMode()=="update")A=st(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var R=i.getQueryType();R=="DESCRIBE"||R=="CONSTRUCT"?A=st(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:A=st(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return A}function Tm(i){if(i.indexOf("http")!==0){let m=`${window.location.protocol}//${window.location.host}`;if(i.indexOf("/")===0)m+=i;else{let e=window.location.pathname;if(!e.endsWith("/")){let A=e.lastIndexOf("/");e=A>=0?e.substring(0,A+1):"/"}m+=e+i}return m}return i}function Rm(i){if(!i)return!1;if(i.headers&&i.headers.Authorization)return!0;if(i.headers)for(let m in i.headers){let e=m.toLowerCase();if(e.startsWith("x-api-key")||e.startsWith("x-auth-")||e==="apikey"||e==="api-key"||e.endsWith("-token")&&e.startsWith("x-")||e.includes("-auth-")&&e.includes("token"))return!0}return!1}function mi(i){return i.replace(/'/g,"'\\''")}function ym(i,m){let e=$l(i,zl(i,m));if(!e)return"";let A=Tm(e.url),R=["curl"];if(e.reqMethod==="GET")A+=`?${Dn.stringify(e.args)}`,R.push(`'${mi(A)}'`);else if(e.reqMethod==="POST"){R.push(`'${mi(A)}'`);let L=Dn.stringify(e.args);R.push("--data",`'${mi(L)}'`)}else console.warn("Unexpected request-method",e.reqMethod),R.push(`'${mi(A)}'`);R.push("-X",e.reqMethod),e.accept&&R.push("-H",`'Accept: ${mi(e.accept)}'`);for(let L in e.headers)R.push("-H",`'${mi(L)}: ${mi(e.headers[L])}'`);return R.join(` \\
36
+ `),Ee=ne+Be.length,Er=Be[Be.length-1].length;return{from:m(Ee,Er),to:m(Ee+Ke.length-1,Ke.length==1?Er+Ke[0].length:Ke[Ke.length-1].length),match:Ze}}}}var X,D;String.prototype.normalize?(X=function(O){return O.normalize("NFD").toLowerCase()},D=function(O){return O.normalize("NFD")}):(X=function(O){return O.toLowerCase()},D=function(O){return O});function z(O,V,H,$){if(O.length==V.length)return H;for(var q=0,ee=H+Math.max(0,O.length-V.length);;){if(q==ee)return q;var ne=q+ee>>1,de=$(O.slice(0,ne)).length;if(de==H)return ne;de>H?ee=ne:q=ne+1}}function W(O,V,H,$){if(!V.length)return null;var q=$?X:D,ee=q(V).split(/\r|\n\r?/);e:for(var ne=H.line,de=H.ch,Se=O.lastLine()+1-ee.length;ne<=Se;ne++,de=0){var be=O.getLine(ne).slice(de),Ze=q(be);if(ee.length==1){var Be=Ze.indexOf(ee[0]);if(Be==-1)continue e;var H=z(be,Ze,Be,q)+de;return{from:m(ne,z(be,Ze,Be,q)+de),to:m(ne,z(be,Ze,Be+ee[0].length,q)+de)}}else{var Ke=Ze.length-ee[0].length;if(Ze.slice(Ke)!=ee[0])continue e;for(var Ee=1;Ee<ee.length-1;Ee++)if(q(O.getLine(ne+Ee))!=ee[Ee])continue e;var Er=O.getLine(ne+ee.length-1),ur=q(Er),or=ee[ee.length-1];if(ur.slice(0,or.length)!=or)continue e;return{from:m(ne,z(be,Ze,Ke,q)+de),to:m(ne+ee.length-1,z(Er,ur,or.length,q))}}}}function K(O,V,H,$){if(!V.length)return null;var q=$?X:D,ee=q(V).split(/\r|\n\r?/);e:for(var ne=H.line,de=H.ch,Se=O.firstLine()-1+ee.length;ne>=Se;ne--,de=-1){var be=O.getLine(ne);de>-1&&(be=be.slice(0,de));var Ze=q(be);if(ee.length==1){var Be=Ze.lastIndexOf(ee[0]);if(Be==-1)continue e;return{from:m(ne,z(be,Ze,Be,q)),to:m(ne,z(be,Ze,Be+ee[0].length,q))}}else{var Ke=ee[ee.length-1];if(Ze.slice(0,Ke.length)!=Ke)continue e;for(var Ee=1,H=ne-ee.length+1;Ee<ee.length-1;Ee++)if(q(O.getLine(H+Ee))!=ee[Ee])continue e;var Er=O.getLine(ne+1-ee.length),ur=q(Er);if(ur.slice(ur.length-ee[0].length)!=ee[0])continue e;return{from:m(ne+1-ee.length,z(Er,ur,Er.length-ee[0].length,q)),to:m(ne,z(be,Ze,Ke.length,q))}}}}function J(O,V,H,$){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=O,H=H?O.clipPos(H):m(0,0),this.pos={from:H,to:H};var q;typeof $=="object"?q=$.caseFold:(q=$,$=null),typeof V=="string"?(q==null&&(q=!1),this.matches=function(ee,ne){return(ee?K:W)(O,V,ne,q)}):(V=A(V,"gm"),!$||$.multiline!==!1?this.matches=function(ee,ne){return(ee?Y:F)(O,V,ne)}:this.matches=function(ee,ne){return(ee?M:L)(O,V,ne)})}J.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(O){var V=this.doc.clipPos(O?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=m(V.line,V.ch),O?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),i.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var H=this.matches(O,V);if(this.afterEmptyMatch=H&&i.cmpPos(H.from,H.to)==0,H)return this.pos=H,this.atOccurrence=!0,this.pos.match||!0;var $=m(O?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:$,to:$},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(O,V){if(this.atOccurrence){var H=i.splitLines(O);this.doc.replaceRange(H,this.pos.from,this.pos.to,V),this.pos.to=m(this.pos.from.line+H.length-1,H[H.length-1].length+(H.length==1?this.pos.from.ch:0))}}},i.defineExtension("getSearchCursor",function(O,V,H){return new J(this.doc,O,V,H)}),i.defineDocExtension("getSearchCursor",function(O,V,H){return new J(this,O,V,H)}),i.defineExtension("selectMatches",function(O,V){for(var H=[],$=this.getSearchCursor(O,this.getCursor("from"),V);$.findNext()&&!(i.cmpPos($.to(),this.getCursor("to"))>0);)H.push({anchor:$.from(),head:$.to()});H.length&&this.setSelections(H,0)})})});var Ux=yr((wx,Gx)=>{(function(i){typeof wx=="object"&&typeof Gx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("annotateScrollbar",function(e){return typeof e=="string"&&(e={className:e}),new m(this,e)}),i.defineOption("scrollButtonHeight",0);function m(e,A){this.cm=e,this.options=A,this.buttonHeight=A.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();function R(F){clearTimeout(L.doRedraw),L.doRedraw=setTimeout(function(){L.redraw()},F)}var L=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(L.doUpdate),L.doUpdate=setTimeout(function(){L.computeScale()&&R(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),A.listenForChanges!==!1&&e.on("changes",this.changeHandler=function(){R(250)})}m.prototype.computeScale=function(){var e=this.cm,A=(e.getWrapperElement().clientHeight-e.display.barHeight-this.buttonHeight*2)/e.getScrollerElement().scrollHeight;if(A!=this.hScale)return this.hScale=A,!0},m.prototype.update=function(e){this.annotations=e,this.redraw()},m.prototype.redraw=function(e){e!==!1&&this.computeScale();var A=this.cm,R=this.hScale,L=document.createDocumentFragment(),F=this.annotations,Z=A.getOption("lineWrapping"),M=Z&&A.defaultTextHeight()*1.5,Y=null,X=null;function D(q,ee){if(Y!=q.line){Y=q.line,X=A.getLineHandle(q.line);var ne=A.getLineHandleVisualStart(X);ne!=X&&(Y=A.getLineNumber(ne),X=ne)}if(X.widgets&&X.widgets.length||Z&&X.height>M)return A.charCoords(q,"local")[ee?"top":"bottom"];var de=A.heightAtLine(X,"local");return de+(ee?0:X.height)}var z=A.lastLine();if(A.display.barWidth)for(var W=0,K;W<F.length;W++){var J=F[W];if(!(J.to.line>z)){for(var O=K||D(J.from,!0)*R,V=D(J.to,!1)*R;W<F.length-1&&!(F[W+1].to.line>z||(K=D(F[W+1].from,!0)*R,K>V+.9));)J=F[++W],V=D(J.to,!1)*R;if(V!=O){var H=Math.max(V-O,3),$=L.appendChild(document.createElement("div"));$.style.cssText="position: absolute; right: 0px; width: "+Math.max(A.display.barWidth-1,2)+"px; top: "+(O+this.buttonHeight)+"px; height: "+H+"px",$.className=this.options.className,J.id&&$.setAttribute("annotation-id",J.id)}}}this.div.textContent="",this.div.appendChild(L)},m.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)}})});var Ox=yr((Fx,Bx)=>{(function(i){typeof Fx=="object"&&typeof Bx=="object"?i(ni(),Vm(),Ux()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(R,L,F){return typeof F=="string"&&(F={className:F}),F||(F={}),new m(this,R,L,F)});function m(R,L,F,Z){this.cm=R,this.options=Z;var M={listenForChanges:!1};for(var Y in Z)M[Y]=Z[Y];M.className||(M.className="CodeMirror-search-match"),this.annotation=R.annotateScrollbar(M),this.query=L,this.caseFold=F,this.gap={from:R.firstLine(),to:R.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var X=this;R.on("change",this.changeHandler=function(D,z){X.onChange(z)})}var e=1e3;m.prototype.findMatches=function(){if(this.gap){for(var R=0;R<this.matches.length;R++){var L=this.matches[R];if(L.from.line>=this.gap.to)break;L.to.line>=this.gap.from&&this.matches.splice(R--,1)}for(var F=this.cm.getSearchCursor(this.query,i.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),Z=this.options&&this.options.maxMatches||e;F.findNext();){var L={from:F.from(),to:F.to()};if(L.from.line>=this.gap.to||(this.matches.splice(R++,0,L),this.matches.length>Z))break}this.gap=null}};function A(R,L,F){return R<=L?R:Math.max(L,R+F)}m.prototype.onChange=function(R){var L=R.from.line,F=i.changeEnd(R).line,Z=F-R.to.line;if(this.gap?(this.gap.from=Math.min(A(this.gap.from,L,Z),R.from.line),this.gap.to=Math.max(A(this.gap.to,L,Z),R.from.line)):this.gap={from:R.from.line,to:F+1},Z)for(var M=0;M<this.matches.length;M++){var Y=this.matches[M],X=A(Y.from.line,L,Z);X!=Y.from.line&&(Y.from=i.Pos(X,Y.from.ch));var D=A(Y.to.line,L,Z);D!=Y.to.line&&(Y.to=i.Pos(D,Y.to.ch))}clearTimeout(this.update);var z=this;this.update=setTimeout(function(){z.updateAfterChange()},250)},m.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},m.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var Zx=yr((Vx,Wx)=>{(function(i){typeof Vx=="object"&&typeof Wx=="object"?i(ni(),Ox()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)})(function(i){"use strict";var m={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function e(z){this.options={};for(var W in m)this.options[W]=(z&&z.hasOwnProperty(W)?z:m)[W];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function(z,W,K){if(K&&K!=i.Init&&(Z(z),clearTimeout(z.state.matchHighlighter.timeout),z.state.matchHighlighter=null,z.off("cursorActivity",A),z.off("focus",R)),W){var J=z.state.matchHighlighter=new e(W);z.hasFocus()?(J.active=!0,M(z)):z.on("focus",R),z.on("cursorActivity",A)}});function A(z){var W=z.state.matchHighlighter;(W.active||z.hasFocus())&&L(z,W)}function R(z){var W=z.state.matchHighlighter;W.active||(W.active=!0,L(z,W))}function L(z,W){clearTimeout(W.timeout),W.timeout=setTimeout(function(){M(z)},W.options.delay)}function F(z,W,K,J){var O=z.state.matchHighlighter;if(z.addOverlay(O.overlay=D(W,K,J)),O.options.annotateScrollbar&&z.showMatchesOnScrollbar){var V=K?new RegExp((/\w/.test(W.charAt(0))?"\\b":"")+W.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(W.charAt(W.length-1))?"\\b":"")):W;O.matchesonscroll=z.showMatchesOnScrollbar(V,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function Z(z){var W=z.state.matchHighlighter;W.overlay&&(z.removeOverlay(W.overlay),W.overlay=null,W.matchesonscroll&&(W.matchesonscroll.clear(),W.matchesonscroll=null))}function M(z){z.operation(function(){var W=z.state.matchHighlighter;if(Z(z),!z.somethingSelected()&&W.options.showToken){for(var K=W.options.showToken===!0?/[\w$]/:W.options.showToken,J=z.getCursor(),O=z.getLine(J.line),V=J.ch,H=V;V&&K.test(O.charAt(V-1));)--V;for(;H<O.length&&K.test(O.charAt(H));)++H;V<H&&F(z,O.slice(V,H),K,W.options.style);return}var $=z.getCursor("from"),q=z.getCursor("to");if($.line==q.line&&!(W.options.wordsOnly&&!Y(z,$,q))){var ee=z.getRange($,q);W.options.trim&&(ee=ee.replace(/^\s+|\s+$/g,"")),ee.length>=W.options.minChars&&F(z,ee,!1,W.options.style)}})}function Y(z,W,K){var J=z.getRange(W,K);if(J.match(/^\w+$/)!==null){if(W.ch>0){var O={line:W.line,ch:W.ch-1},V=z.getRange(O,W);if(V.match(/\W/)===null)return!1}if(K.ch<z.getLine(W.line).length){var O={line:K.line,ch:K.ch+1},V=z.getRange(K,O);if(V.match(/\W/)===null)return!1}return!0}else return!1}function X(z,W){return(!z.start||!W.test(z.string.charAt(z.start-1)))&&(z.pos==z.string.length||!W.test(z.string.charAt(z.pos)))}function D(z,W,K){return{token:function(J){if(J.match(z)&&(!W||X(J,W)))return K;J.next(),J.skipTo(z.charAt(0))||J.skipToEnd()}}}})});var Qx=yr((Mx,Dx)=>{(function(i){typeof Mx=="object"&&typeof Dx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var m=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,A={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function R(X){return X&&X.bracketRegex||/[(){}[\]]/}function L(X,D,z){var W=X.getLineHandle(D.line),K=D.ch-1,J=z&&z.afterCursor;J==null&&(J=/(^| )cm-fat-cursor($| )/.test(X.getWrapperElement().className));var O=R(z),V=!J&&K>=0&&O.test(W.text.charAt(K))&&A[W.text.charAt(K)]||O.test(W.text.charAt(K+1))&&A[W.text.charAt(++K)];if(!V)return null;var H=V.charAt(1)==">"?1:-1;if(z&&z.strict&&H>0!=(K==D.ch))return null;var $=X.getTokenTypeAt(e(D.line,K+1)),q=F(X,e(D.line,K+(H>0?1:0)),H,$,z);return q==null?null:{from:e(D.line,K),to:q&&q.pos,match:q&&q.ch==V.charAt(0),forward:H>0}}function F(X,D,z,W,K){for(var J=K&&K.maxScanLineLength||1e4,O=K&&K.maxScanLines||1e3,V=[],H=R(K),$=z>0?Math.min(D.line+O,X.lastLine()+1):Math.max(X.firstLine()-1,D.line-O),q=D.line;q!=$;q+=z){var ee=X.getLine(q);if(ee){var ne=z>0?0:ee.length-1,de=z>0?ee.length:-1;if(!(ee.length>J))for(q==D.line&&(ne=D.ch-(z<0?1:0));ne!=de;ne+=z){var Se=ee.charAt(ne);if(H.test(Se)&&(W===void 0||(X.getTokenTypeAt(e(q,ne+1))||"")==(W||""))){var be=A[Se];if(be&&be.charAt(1)==">"==z>0)V.push(Se);else if(V.length)V.pop();else return{pos:e(q,ne),ch:Se}}}}}return q-z==(z>0?X.lastLine():X.firstLine())?!1:null}function Z(X,D,z){for(var W=X.state.matchBrackets.maxHighlightLineLength||1e3,K=z&&z.highlightNonMatching,J=[],O=X.listSelections(),V=0;V<O.length;V++){var H=O[V].empty()&&L(X,O[V].head,z);if(H&&(H.match||K!==!1)&&X.getLine(H.from.line).length<=W){var $=H.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";J.push(X.markText(H.from,e(H.from.line,H.from.ch+1),{className:$})),H.to&&X.getLine(H.to.line).length<=W&&J.push(X.markText(H.to,e(H.to.line,H.to.ch+1),{className:$}))}}if(J.length){m&&X.state.focused&&X.focus();var q=function(){X.operation(function(){for(var ee=0;ee<J.length;ee++)J[ee].clear()})};if(D)setTimeout(q,800);else return q}}function M(X){X.operation(function(){X.state.matchBrackets.currentlyHighlighted&&(X.state.matchBrackets.currentlyHighlighted(),X.state.matchBrackets.currentlyHighlighted=null),X.state.matchBrackets.currentlyHighlighted=Z(X,!1,X.state.matchBrackets)})}function Y(X){X.state.matchBrackets&&X.state.matchBrackets.currentlyHighlighted&&(X.state.matchBrackets.currentlyHighlighted(),X.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function(X,D,z){z&&z!=i.Init&&(X.off("cursorActivity",M),X.off("focus",M),X.off("blur",Y),Y(X)),D&&(X.state.matchBrackets=typeof D=="object"?D:{},X.on("cursorActivity",M),X.on("focus",M),X.on("blur",Y))}),i.defineExtension("matchBrackets",function(){Z(this,!0)}),i.defineExtension("findMatchingBracket",function(X,D,z){return(z||typeof D=="boolean")&&(z?(z.strict=D,D=z):D=D?{strict:!0}:null),L(this,X,D)}),i.defineExtension("scanForBracket",function(X,D,z,W){return F(this,X,D,z,W)})})});var Px=yr((kx,Xx)=>{(function(i){typeof kx=="object"&&typeof Xx=="object"?i(ni()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(m,e,A,R){var L=i.getMode(i.defaults,e),F=R&&R.tabSize||i.defaults.tabSize;if(A.appendChild){var Z=/MSIE \d/.test(navigator.userAgent),M=Z&&(document.documentMode==null||document.documentMode<9),Y=A,X=0;Y.textContent="",A=function(V,H){if(V==`
37
+ `){Y.appendChild(document.createTextNode(M?"\r":V)),X=0;return}for(var $="",q=0;;){var ee=V.indexOf(" ",q);if(ee==-1){$+=V.slice(q),X+=V.length-q;break}else{X+=ee-q,$+=V.slice(q,ee);var ne=F-X%F;X+=ne;for(var de=0;de<ne;++de)$+=" ";q=ee+1}}if(H){var Se=Y.appendChild(document.createElement("span"));Se.className="cm-"+H.replace(/ +/g," cm-"),Se.appendChild(document.createTextNode($))}else Y.appendChild(document.createTextNode($))}}for(var D=i.splitLines(m),z=R&&R.state||i.startState(L),W=0,K=D.length;W<K;++W){W&&A(`
38
+ `);var J=new i.StringStream(D[W],null,{lookAhead:function(V){return D[W+V]},baseToken:function(){}});for(!J.string&&L.blankLine&&L.blankLine(z);!J.eol();){var O=L.token(J,z);A(J.current(),O,W,J.start,z,L),J.start=J.pos}}}})});var q1={};Jm(q1,{Yasqe:()=>$f,default:()=>$1});var hd=jt(ni());function jm(i,m,e){return e||(e=i.getDoc().getCursor()),m||(m=i.getTokenAt(e)),$m(i,zm(i,m,e),e)}function zm(i,m,e){var A=i.getTokenAt({line:e.line,ch:m.start});return(m.type==="punc"||m.type==="error")&&!m.state.possibleFullIri&&!m.state.inPrefixDecl?(m.state.possibleCurrent=m.state.possibleNext,m):A.type==="punc"&&!A.state.possibleFullIri&&!A.state.inPrefixDecl?m:A.type!=null&&A.type!="ws"&&m.type!=null&&m.type!="ws"?(m.start=A.start,m.string=A.string+m.string,zm(i,m,{line:e.line,ch:A.start})):(m.type!=null&&m.type=="ws"&&(m.start=m.start+1,m.string=m.string.substring(1)),m)}function $m(i,m,e){if(m.string.indexOf(" ")>=0){let R=m.string.indexOf(" ");return m.string=m.string.substr(0,R),m.end=m.start+m.string.length,m}if(!m.type)return m;var A=i.getTokenAt({line:e.line,ch:m.end+1});return A.type!=="ws"&&m.state.possibleFullIri&&m.type!==null&&m.type!=="ws"&&A.end!==m.end?(m.end=A.end,m.string=m.string+A.string,$m(i,m,{line:e.line,ch:A.end})):(m.type==="ws"&&(m.end=m.end+1,m.string=m.string.substring(m.string.length-1)),m)}function JE(i,m,e){var A=i.getTokenAt({line:m,ch:e.start});return A!=null&&A.type=="ws"&&(A=JE(i,m,A)),A}function Lf(i,m,e){e==null&&(e=1);var A=i.getTokenAt({line:m,ch:e});if(!(A==null||A==null||A.end<e))return A.type=="ws"?Lf(i,m,A.end+1):A}var Bd="PREFIX ";function qm(i){for(var m=i.getDoc().lastLine(),e=0;e<=m;++e){let A=Km(i,e);if(A!=null&&A>=0)return e}}function Km(i,m,e=0,A){if(A||(A=i.getDoc().getLine(m)),!A)return;A=A.toUpperCase();let R=A.indexOf(Bd,e);if(R>=0&&i.getTokenTypeAt(hd.default.Pos(m,R+1))==="keyword")return R}function ev(i,m){var e=m.line,A=i.getDoc().getLine(e);function R(){for(var V=!1,H=e-1;H>=0;H--)if(i.getDoc().getLine(H).toUpperCase().indexOf(Bd)>=0){V=!0;break}return V}var L=function(V,H){var $=i.getTokenAt(hd.default.Pos(V,H+1));if(!$||$.type!="keyword")return-1;var q=Lf(i,V,$.end+1);if(!q||q.type!="string-2")return-1;var ee=Lf(i,V,q.end+1);return!ee||ee.type!="variable-3"?-1:ee.end};if(!R()){var F=Km(i,e,m.ch,A);if(F!=null){for(var Z="{",M=!1,Y=i.getDoc().lastLine(),X,D=L(e,F),z=e,W=e;W<=Y&&!M;++W)for(var K=i.getDoc().getLine(W),J=W==e?F+1:0;;){!M&&K.indexOf(Z)>=0&&(M=!0);var O=K.toUpperCase().indexOf(Bd,J);if(O>=0)(X=L(W,O))>0&&(D=X,z=W,J=D),J++;else break}return{from:hd.default.Pos(e,F+Bd.length),to:hd.default.Pos(z,D)}}}}function tv(i,m){var e=i.getPrefixesFromQuery();if(typeof m=="string")rv(i,m);else for(var A in m)A in e||rv(i,A+": <"+m[A]+">");i.collapsePrefixes(!1)}function rv(i,m){i.getDoc().replaceRange("PREFIX "+m+`
39
+ `,{line:0,ch:0}),i.collapsePrefixes(!1)}function iv(i,m){var e=function(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var A in m)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+A+":\\s*"+e("<"+m[A]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function sv(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:dv,setPrototypeOf:nv,isFrozen:lb,getPrototypeOf:ub,getOwnPropertyDescriptor:fb}=Object,{freeze:di,seal:Cs,create:em}=Object,{apply:rm,construct:tm}=typeof Reflect<"u"&&Reflect;di||(di=function(m){return m});Cs||(Cs=function(m){return m});rm||(rm=function(m,e){for(var A=arguments.length,R=new Array(A>2?A-2:0),L=2;L<A;L++)R[L-2]=arguments[L];return m.apply(e,R)});tm||(tm=function(m){for(var e=arguments.length,A=new Array(e>1?e-1:0),R=1;R<e;R++)A[R-1]=arguments[R];return new m(...A)});var Od=hi(Array.prototype.forEach),cb=hi(Array.prototype.lastIndexOf),ov=hi(Array.prototype.pop),gd=hi(Array.prototype.push),pb=hi(Array.prototype.splice),Wd=hi(String.prototype.toLowerCase),_E=hi(String.prototype.toString),jE=hi(String.prototype.match),Ed=hi(String.prototype.replace),db=hi(String.prototype.indexOf),hb=hi(String.prototype.trim),$s=hi(Object.prototype.hasOwnProperty),pi=hi(RegExp.prototype.test),md=gb(TypeError);function hi(i){return function(m){m instanceof RegExp&&(m.lastIndex=0);for(var e=arguments.length,A=new Array(e>1?e-1:0),R=1;R<e;R++)A[R-1]=arguments[R];return rm(i,m,A)}}function gb(i){return function(){for(var m=arguments.length,e=new Array(m),A=0;A<m;A++)e[A]=arguments[A];return tm(i,e)}}function fr(i,m){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wd;nv&&nv(i,null);let A=m.length;for(;A--;){let R=m[A];if(typeof R=="string"){let L=e(R);L!==R&&(lb(m)||(m[A]=L),R=L)}i[R]=!0}return i}function Eb(i){for(let m=0;m<i.length;m++)$s(i,m)||(i[m]=null);return i}function Zn(i){let m=em(null);for(let[e,A]of dv(i))$s(i,e)&&(Array.isArray(A)?m[e]=Eb(A):A&&typeof A=="object"&&A.constructor===Object?m[e]=Zn(A):m[e]=A);return m}function vd(i,m){for(;i!==null;){let A=fb(i,m);if(A){if(A.get)return hi(A.get);if(typeof A.value=="function")return hi(A.value)}i=ub(i)}function e(){return null}return e}var av=di(["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"]),zE=di(["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"]),$E=di(["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"]),mb=di(["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"]),qE=di(["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"]),vb=di(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),lv=di(["#text"]),uv=di(["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"]),KE=di(["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"]),fv=di(["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"]),Vd=di(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ib=Cs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Cb=Cs(/<%[\w\W]*|[\w\W]*%>/gm),xb=Cs(/\$\{[\w\W]*/gm),bb=Cs(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ab=Cs(/^aria-[\-\w]+$/),hv=Cs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nb=Cs(/^(?:\w+script|data):/i),Tb=Cs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gv=Cs(/^html$/i),Rb=Cs(/^[a-z][.\w]*(-[.\w]+)+$/i),cv=Object.freeze({__proto__:null,ARIA_ATTR:Ab,ATTR_WHITESPACE:Tb,CUSTOM_ELEMENT:Rb,DATA_ATTR:bb,DOCTYPE_NAME:gv,ERB_EXPR:Cb,IS_ALLOWED_URI:hv,IS_SCRIPT_OR_DATA:Nb,MUSTACHE_EXPR:Ib,TMPLIT_EXPR:xb}),Id={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yb=function(){return typeof window>"u"?null:window},Sb=function(m,e){if(typeof m!="object"||typeof m.createPolicy!="function")return null;let A=null,R="data-tt-policy-suffix";e&&e.hasAttribute(R)&&(A=e.getAttribute(R));let L="dompurify"+(A?"#"+A:"");try{return m.createPolicy(L,{createHTML(F){return F},createScriptURL(F){return F}})}catch{return console.warn("TrustedTypes policy "+L+" could not be created."),null}},pv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ev(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yb(),m=Qe=>Ev(Qe);if(m.version="3.3.1",m.removed=[],!i||!i.document||i.document.nodeType!==Id.document||!i.Element)return m.isSupported=!1,m;let{document:e}=i,A=e,R=A.currentScript,{DocumentFragment:L,HTMLTemplateElement:F,Node:Z,Element:M,NodeFilter:Y,NamedNodeMap:X=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:D,DOMParser:z,trustedTypes:W}=i,K=M.prototype,J=vd(K,"cloneNode"),O=vd(K,"remove"),V=vd(K,"nextSibling"),H=vd(K,"childNodes"),$=vd(K,"parentNode");if(typeof F=="function"){let Qe=e.createElement("template");Qe.content&&Qe.content.ownerDocument&&(e=Qe.content.ownerDocument)}let q,ee="",{implementation:ne,createNodeIterator:de,createDocumentFragment:Se,getElementsByTagName:be}=e,{importNode:Ze}=A,Be=pv();m.isSupported=typeof dv=="function"&&typeof $=="function"&&ne&&ne.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ke,ERB_EXPR:Ee,TMPLIT_EXPR:Er,DATA_ATTR:ur,ARIA_ATTR:or,IS_SCRIPT_OR_DATA:Or,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:et}=cv,{IS_ALLOWED_URI:rt}=cv,cr=null,qe=fr({},[...av,...zE,...$E,...qE,...lv]),Pe=null,Ir=fr({},[...uv,...KE,...fv,...Vd]),Me=Object.seal(em(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}})),Rr=null,dr=null,Hr=Object.seal(em(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Cr=!0,ti=!0,Ge=!1,fe=!0,Ar=!1,mr=!0,Ue=!1,Vr=!1,ii=!1,xe=!1,Ft=!1,gt=!1,Et=!0,ts=!1,De="user-content-",mt=!0,Le=!1,sr={},pt=null,dt=fr({},["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"]),nr=null,Wr=fr({},["audio","video","img","source","image","track"]),vt=null,Bt=fr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",si="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1999/xhtml",Ot=Sr,Oe=!1,oi=null,Jr=fr({},[Lt,si,Sr],_E),hr=fr({},["mi","mo","mn","ms","mtext"]),xr=fr({},["annotation-xml"]),is=fr({},["title","style","font","a","script"]),ar=null,ss=["application/xhtml+xml","text/html"],It="text/html",kr=null,vi=null,Ns=e.createElement("form"),rn=function(re){return re instanceof RegExp||re instanceof Function},tn=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vi&&vi===re)){if((!re||typeof re!="object")&&(re={}),re=Zn(re),ar=ss.indexOf(re.PARSER_MEDIA_TYPE)===-1?It:re.PARSER_MEDIA_TYPE,kr=ar==="application/xhtml+xml"?_E:Wd,cr=$s(re,"ALLOWED_TAGS")?fr({},re.ALLOWED_TAGS,kr):qe,Pe=$s(re,"ALLOWED_ATTR")?fr({},re.ALLOWED_ATTR,kr):Ir,oi=$s(re,"ALLOWED_NAMESPACES")?fr({},re.ALLOWED_NAMESPACES,_E):Jr,vt=$s(re,"ADD_URI_SAFE_ATTR")?fr(Zn(Bt),re.ADD_URI_SAFE_ATTR,kr):Bt,nr=$s(re,"ADD_DATA_URI_TAGS")?fr(Zn(Wr),re.ADD_DATA_URI_TAGS,kr):Wr,pt=$s(re,"FORBID_CONTENTS")?fr({},re.FORBID_CONTENTS,kr):dt,Rr=$s(re,"FORBID_TAGS")?fr({},re.FORBID_TAGS,kr):Zn({}),dr=$s(re,"FORBID_ATTR")?fr({},re.FORBID_ATTR,kr):Zn({}),sr=$s(re,"USE_PROFILES")?re.USE_PROFILES:!1,Cr=re.ALLOW_ARIA_ATTR!==!1,ti=re.ALLOW_DATA_ATTR!==!1,Ge=re.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=re.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ar=re.SAFE_FOR_TEMPLATES||!1,mr=re.SAFE_FOR_XML!==!1,Ue=re.WHOLE_DOCUMENT||!1,xe=re.RETURN_DOM||!1,Ft=re.RETURN_DOM_FRAGMENT||!1,gt=re.RETURN_TRUSTED_TYPE||!1,ii=re.FORCE_BODY||!1,Et=re.SANITIZE_DOM!==!1,ts=re.SANITIZE_NAMED_PROPS||!1,mt=re.KEEP_CONTENT!==!1,Le=re.IN_PLACE||!1,rt=re.ALLOWED_URI_REGEXP||hv,Ot=re.NAMESPACE||Sr,hr=re.MATHML_TEXT_INTEGRATION_POINTS||hr,xr=re.HTML_INTEGRATION_POINTS||xr,Me=re.CUSTOM_ELEMENT_HANDLING||{},re.CUSTOM_ELEMENT_HANDLING&&rn(re.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=re.CUSTOM_ELEMENT_HANDLING.tagNameCheck),re.CUSTOM_ELEMENT_HANDLING&&rn(re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),re.CUSTOM_ELEMENT_HANDLING&&typeof re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ar&&(ti=!1),Ft&&(xe=!0),sr&&(cr=fr({},lv),Pe=[],sr.html===!0&&(fr(cr,av),fr(Pe,uv)),sr.svg===!0&&(fr(cr,zE),fr(Pe,KE),fr(Pe,Vd)),sr.svgFilters===!0&&(fr(cr,$E),fr(Pe,KE),fr(Pe,Vd)),sr.mathMl===!0&&(fr(cr,qE),fr(Pe,fv),fr(Pe,Vd))),re.ADD_TAGS&&(typeof re.ADD_TAGS=="function"?Hr.tagCheck=re.ADD_TAGS:(cr===qe&&(cr=Zn(cr)),fr(cr,re.ADD_TAGS,kr))),re.ADD_ATTR&&(typeof re.ADD_ATTR=="function"?Hr.attributeCheck=re.ADD_ATTR:(Pe===Ir&&(Pe=Zn(Pe)),fr(Pe,re.ADD_ATTR,kr))),re.ADD_URI_SAFE_ATTR&&fr(vt,re.ADD_URI_SAFE_ATTR,kr),re.FORBID_CONTENTS&&(pt===dt&&(pt=Zn(pt)),fr(pt,re.FORBID_CONTENTS,kr)),re.ADD_FORBID_CONTENTS&&(pt===dt&&(pt=Zn(pt)),fr(pt,re.ADD_FORBID_CONTENTS,kr)),mt&&(cr["#text"]=!0),Ue&&fr(cr,["html","head","body"]),cr.table&&(fr(cr,["tbody"]),delete Rr.tbody),re.TRUSTED_TYPES_POLICY){if(typeof re.TRUSTED_TYPES_POLICY.createHTML!="function")throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof re.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');q=re.TRUSTED_TYPES_POLICY,ee=q.createHTML("")}else q===void 0&&(q=Sb(W,R)),q!==null&&typeof ee=="string"&&(ee=q.createHTML(""));di&&di(re),vi=re}},Oo=fr({},[...zE,...$E,...mb]),sn=fr({},[...qE,...vb]),ya=function(re){let me=$(re);(!me||!me.tagName)&&(me={namespaceURI:Ot,tagName:"template"});let we=Wd(re.tagName),Nr=Wd(me.tagName);return oi[re.namespaceURI]?re.namespaceURI===si?me.namespaceURI===Sr?we==="svg":me.namespaceURI===Lt?we==="svg"&&(Nr==="annotation-xml"||hr[Nr]):!!Oo[we]:re.namespaceURI===Lt?me.namespaceURI===Sr?we==="math":me.namespaceURI===si?we==="math"&&xr[Nr]:!!sn[we]:re.namespaceURI===Sr?me.namespaceURI===si&&!xr[Nr]||me.namespaceURI===Lt&&!hr[Nr]?!1:!sn[we]&&(is[we]||!Oo[we]):!!(ar==="application/xhtml+xml"&&oi[re.namespaceURI]):!1},Xt=function(re){gd(m.removed,{element:re});try{$(re).removeChild(re)}catch{O(re)}},Bi=function(re,me){try{gd(m.removed,{attribute:me.getAttributeNode(re),from:me})}catch{gd(m.removed,{attribute:null,from:me})}if(me.removeAttribute(re),re==="is")if(xe||Ft)try{Xt(me)}catch{}else try{me.setAttribute(re,"")}catch{}},nn=function(re){let me=null,we=null;if(ii)re="<remove></remove>"+re;else{let rr=jE(re,/^[\r\n\t ]+/);we=rr&&rr[0]}ar==="application/xhtml+xml"&&Ot===Sr&&(re='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+re+"</body></html>");let Nr=q?q.createHTML(re):re;if(Ot===Sr)try{me=new z().parseFromString(Nr,ar)}catch{}if(!me||!me.documentElement){me=ne.createDocument(Ot,"template",null);try{me.documentElement.innerHTML=Oe?ee:Nr}catch{}}let nt=me.body||me.documentElement;return re&&we&&nt.insertBefore(e.createTextNode(we),nt.childNodes[0]||null),Ot===Sr?be.call(me,Ue?"html":"body")[0]:Ue?me.documentElement:nt},Vo=function(re){return de.call(re.ownerDocument||re,re,Y.SHOW_ELEMENT|Y.SHOW_COMMENT|Y.SHOW_TEXT|Y.SHOW_PROCESSING_INSTRUCTION|Y.SHOW_CDATA_SECTION,null)},Xn=function(re){return re instanceof D&&(typeof re.nodeName!="string"||typeof re.textContent!="string"||typeof re.removeChild!="function"||!(re.attributes instanceof X)||typeof re.removeAttribute!="function"||typeof re.setAttribute!="function"||typeof re.namespaceURI!="string"||typeof re.insertBefore!="function"||typeof re.hasChildNodes!="function")},on=function(re){return typeof Z=="function"&&re instanceof Z};function ai(Qe,re,me){Od(Qe,we=>{we.call(m,re,me,vi)})}let an=function(re){let me=null;if(ai(Be.beforeSanitizeElements,re,null),Xn(re))return Xt(re),!0;let we=kr(re.nodeName);if(ai(Be.uponSanitizeElement,re,{tagName:we,allowedTags:cr}),mr&&re.hasChildNodes()&&!on(re.firstElementChild)&&pi(/<[/\w!]/g,re.innerHTML)&&pi(/<[/\w!]/g,re.textContent)||re.nodeType===Id.progressingInstruction||mr&&re.nodeType===Id.comment&&pi(/<[/\w]/g,re.data))return Xt(re),!0;if(!(Hr.tagCheck instanceof Function&&Hr.tagCheck(we))&&(!cr[we]||Rr[we])){if(!Rr[we]&&Wo(we)&&(Me.tagNameCheck instanceof RegExp&&pi(Me.tagNameCheck,we)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(we)))return!1;if(mt&&!pt[we]){let Nr=$(re)||re.parentNode,nt=H(re)||re.childNodes;if(nt&&Nr){let rr=nt.length;for(let Ae=rr-1;Ae>=0;--Ae){let Ct=J(nt[Ae],!0);Ct.__removalCount=(re.__removalCount||0)+1,Nr.insertBefore(Ct,V(re))}}}return Xt(re),!0}return re instanceof M&&!ya(re)||(we==="noscript"||we==="noembed"||we==="noframes")&&pi(/<\/no(script|embed|frames)/i,re.innerHTML)?(Xt(re),!0):(Ar&&re.nodeType===Id.text&&(me=re.textContent,Od([Ke,Ee,Er],Nr=>{me=Ed(me,Nr," ")}),re.textContent!==me&&(gd(m.removed,{element:re.cloneNode()}),re.textContent=me)),ai(Be.afterSanitizeElements,re,null),!1)},Oi=function(re,me,we){if(Et&&(me==="id"||me==="name")&&(we in e||we in Ns))return!1;if(!(ti&&!dr[me]&&pi(ur,me))){if(!(Cr&&pi(or,me))){if(!(Hr.attributeCheck instanceof Function&&Hr.attributeCheck(me,re))){if(!Pe[me]||dr[me]){if(!(Wo(re)&&(Me.tagNameCheck instanceof RegExp&&pi(Me.tagNameCheck,re)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(re))&&(Me.attributeNameCheck instanceof RegExp&&pi(Me.attributeNameCheck,me)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(me,re))||me==="is"&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&pi(Me.tagNameCheck,we)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(we))))return!1}else if(!vt[me]){if(!pi(rt,Ed(we,je,""))){if(!((me==="src"||me==="xlink:href"||me==="href")&&re!=="script"&&db(we,"data:")===0&&nr[re])){if(!(Ge&&!pi(Or,Ed(we,je,"")))){if(we)return!1}}}}}}}return!0},Wo=function(re){return re!=="annotation-xml"&&jE(re,et)},Zo=function(re){ai(Be.beforeSanitizeAttributes,re,null);let{attributes:me}=re;if(!me||Xn(re))return;let we={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0},Nr=me.length;for(;Nr--;){let nt=me[Nr],{name:rr,namespaceURI:Ae,value:Ct}=nt,Ii=kr(rr),Pt=Ct,Je=rr==="value"?Pt:hb(Pt);if(we.attrName=Ii,we.attrValue=Je,we.keepAttr=!0,we.forceKeepAttr=void 0,ai(Be.uponSanitizeAttribute,re,we),Je=we.attrValue,ts&&(Ii==="id"||Ii==="name")&&(Bi(rr,re),Je=De+Je),mr&&pi(/((--!?|])>)|<\/(style|title|textarea)/i,Je)){Bi(rr,re);continue}if(Ii==="attributename"&&jE(Je,"href")){Bi(rr,re);continue}if(we.forceKeepAttr)continue;if(!we.keepAttr){Bi(rr,re);continue}if(!fe&&pi(/\/>/i,Je)){Bi(rr,re);continue}Ar&&Od([Ke,Ee,Er],ns=>{Je=Ed(Je,ns," ")});let Ci=kr(re.nodeName);if(!Oi(Ci,Ii,Je)){Bi(rr,re);continue}if(q&&typeof W=="object"&&typeof W.getAttributeType=="function"&&!Ae)switch(W.getAttributeType(Ci,Ii)){case"TrustedHTML":{Je=q.createHTML(Je);break}case"TrustedScriptURL":{Je=q.createScriptURL(Je);break}}if(Je!==Pt)try{Ae?re.setAttributeNS(Ae,rr,Je):re.setAttribute(rr,Je),Xn(re)?Xt(re):ov(m.removed)}catch{Bi(rr,re)}}ai(Be.afterSanitizeAttributes,re,null)},ln=function Qe(re){let me=null,we=Vo(re);for(ai(Be.beforeSanitizeShadowDOM,re,null);me=we.nextNode();)ai(Be.uponSanitizeShadowNode,me,null),an(me),Zo(me),me.content instanceof L&&Qe(me.content);ai(Be.afterSanitizeShadowDOM,re,null)};return m.sanitize=function(Qe){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=null,we=null,Nr=null,nt=null;if(Oe=!Qe,Oe&&(Qe="<!-->"),typeof Qe!="string"&&!on(Qe))if(typeof Qe.toString=="function"){if(Qe=Qe.toString(),typeof Qe!="string")throw md("dirty is not a string, aborting")}else throw md("toString is not a function");if(!m.isSupported)return Qe;if(Vr||tn(re),m.removed=[],typeof Qe=="string"&&(Le=!1),Le){if(Qe.nodeName){let Ct=kr(Qe.nodeName);if(!cr[Ct]||Rr[Ct])throw md("root node is forbidden and cannot be sanitized in-place")}}else if(Qe instanceof Z)me=nn("<!---->"),we=me.ownerDocument.importNode(Qe,!0),we.nodeType===Id.element&&we.nodeName==="BODY"||we.nodeName==="HTML"?me=we:me.appendChild(we);else{if(!xe&&!Ar&&!Ue&&Qe.indexOf("<")===-1)return q&&gt?q.createHTML(Qe):Qe;if(me=nn(Qe),!me)return xe?null:gt?ee:""}me&&ii&&Xt(me.firstChild);let rr=Vo(Le?Qe:me);for(;Nr=rr.nextNode();)an(Nr),Zo(Nr),Nr.content instanceof L&&ln(Nr.content);if(Le)return Qe;if(xe){if(Ft)for(nt=Se.call(me.ownerDocument);me.firstChild;)nt.appendChild(me.firstChild);else nt=me;return(Pe.shadowroot||Pe.shadowrootmode)&&(nt=Ze.call(A,nt,!0)),nt}let Ae=Ue?me.outerHTML:me.innerHTML;return Ue&&cr["!doctype"]&&me.ownerDocument&&me.ownerDocument.doctype&&me.ownerDocument.doctype.name&&pi(gv,me.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+me.ownerDocument.doctype.name+`>
40
+ `+Ae),Ar&&Od([Ke,Ee,Er],Ct=>{Ae=Ed(Ae,Ct," ")}),q&&gt?q.createHTML(Ae):Ae},m.setConfig=function(){let Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tn(Qe),Vr=!0},m.clearConfig=function(){vi=null,Vr=!1},m.isValidAttribute=function(Qe,re,me){vi||tn({});let we=kr(Qe),Nr=kr(re);return Oi(we,Nr,me)},m.addHook=function(Qe,re){typeof re=="function"&&gd(Be[Qe],re)},m.removeHook=function(Qe,re){if(re!==void 0){let me=cb(Be[Qe],re);return me===-1?void 0:pb(Be[Qe],me,1)[0]}return ov(Be[Qe])},m.removeHooks=function(Qe){Be[Qe]=[]},m.removeAllHooks=function(){Be=pv()},m}var mv=Ev();var qs=jt(_v()),Pl=class{constructor(m){this.namespace=m}set(m,e,A,R){if(qs.default.enabled&&(this.removeExpiredKeys(),m&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{qs.default.set(m,{namespace:this.namespace,val:e,exp:A,time:new Date().getTime()/1e3})}catch(L){if(L instanceof Error){let F=L;if(F.quotaExceeded=UA(L),F.quotaExceeded&&R)R(L);else throw F}throw L}}}remove(m){qs.default.enabled&&m&&qs.default.remove(m)}removeExpiredKeys(){qs.default.enabled&&qs.default.each((m,e)=>{m&&m.exp&&new Date().getTime()/1e3-m.time>m.exp&&this.remove(e)})}removeAll(){qs.default.enabled}removeNamespace(){qs.default.each((m,e)=>{m.namespace&&m.namespace===this.namespace&&this.remove(e)})}get(m){if(qs.default.enabled&&m)if(this.removeExpiredKeys(),m){var e=qs.default.get(m);return e?e.val:void 0}else return}};function UA(i){var m=!1;if(i)if(i.code)switch(i.code){case 22:m=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(m=!0);break}else i.number===-2147024882&&(m=!0);return m}var{sanitize:CL}=mv;function jv(i,m){if(i)return i.classList?i.classList.contains(m):!!i.className.match(new RegExp("(\\s|^)"+m+"(\\s|$)"))}function Ne(i,...m){if(i)for(let e of m)i.classList?i.classList.add(e):jv(i,e)||(i.className+=" "+e)}function Ki(i,m){if(i){if(i.classList)i.classList.remove(m);else if(jv(i,m)){var e=new RegExp("(\\s|^)"+m+"(\\s|$)");i.className=i.className.replace(e," ")}}}var bh=jt(Zd());function Ff(i,m,e){var A;m.onmouseover=function(){A||(A=document.createElement("div"),A.className="yasqe_tooltip"),A.style.display="block",A.innerHTML=e,m.appendChild(A)},m.onmouseout=function(){A&&(A.style.display="none"),A.innerHTML=e}}var wm={};Jm(wm,{base64EncodeUnicode:()=>kC,executeQuery:()=>Nm,getAcceptHeader:()=>PC,getAjaxConfig:()=>$l,getAsCurlString:()=>ym,getAsPowerShellString:()=>Sm,getAsWgetString:()=>Lm,getUrlArguments:()=>XC,hasAuthenticationCredentials:()=>Rm});var kA=typeof global=="object"&&global&&global.Object===Object&&global,Md=kA;var XA=typeof self=="object"&&self&&self.Object===Object&&self,PA=Md||XA||Function("return this")(),Ut=PA;var YA=Ut.Symbol,gi=YA;var h0=Object.prototype,HA=h0.hasOwnProperty,JA=h0.toString,Nd=gi?gi.toStringTag:void 0;function _A(i){var m=HA.call(i,Nd),e=i[Nd];try{i[Nd]=void 0;var A=!0}catch{}var R=JA.call(i);return A&&(m?i[Nd]=e:delete i[Nd]),R}var g0=_A;var jA=Object.prototype,zA=jA.toString;function $A(i){return zA.call(i)}var E0=$A;var qA="[object Null]",KA="[object Undefined]",m0=gi?gi.toStringTag:void 0;function eN(i){return i==null?i===void 0?KA:qA:m0&&m0 in Object(i)?g0(i):E0(i)}var es=eN;function rN(i){return i!=null&&typeof i=="object"}var Ei=rN;var tN="[object Symbol]";function iN(i){return typeof i=="symbol"||Ei(i)&&es(i)==tN}var Ks=iN;function sN(i,m){for(var e=-1,A=i==null?0:i.length,R=Array(A);++e<A;)R[e]=m(i[e],e,i);return R}var Bf=sN;var nN=Array.isArray,it=nN;var oN=1/0,v0=gi?gi.prototype:void 0,I0=v0?v0.toString:void 0;function C0(i){if(typeof i=="string")return i;if(it(i))return Bf(i,C0)+"";if(Ks(i))return I0?I0.call(i):"";var m=i+"";return m=="0"&&1/i==-oN?"-0":m}var x0=C0;var aN=/\s/;function lN(i){for(var m=i.length;m--&&aN.test(i.charAt(m)););return m}var b0=lN;var uN=/^\s+/;function fN(i){return i&&i.slice(0,b0(i)+1).replace(uN,"")}var A0=fN;function cN(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}var kt=cN;var N0=NaN,pN=/^[-+]0x[0-9a-f]+$/i,dN=/^0b[01]+$/i,hN=/^0o[0-7]+$/i,gN=parseInt;function EN(i){if(typeof i=="number")return i;if(Ks(i))return N0;if(kt(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=kt(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=A0(i);var e=dN.test(i);return e||hN.test(i)?gN(i.slice(2),e?2:8):pN.test(i)?N0:+i}var T0=EN;var R0=1/0,mN=17976931348623157e292;function vN(i){if(!i)return i===0?i:0;if(i=T0(i),i===R0||i===-R0){var m=i<0?-1:1;return m*mN}return i===i?i:0}var y0=vN;function IN(i){var m=y0(i),e=m%1;return m===m?e?m-e:m:0}var S0=IN;function CN(i){return i}var va=CN;var xN="[object AsyncFunction]",bN="[object Function]",AN="[object GeneratorFunction]",NN="[object Proxy]";function TN(i){if(!kt(i))return!1;var m=es(i);return m==bN||m==AN||m==xN||m==NN}var st=TN;var RN=Ut["__core-js_shared__"],Dd=RN;var L0=function(){var i=/[^.]+$/.exec(Dd&&Dd.keys&&Dd.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function yN(i){return!!L0&&L0 in i}var w0=yN;var SN=Function.prototype,LN=SN.toString;function wN(i){if(i!=null){try{return LN.call(i)}catch{}try{return i+""}catch{}}return""}var wo=wN;var GN=/[\\^$.*+?()[\]{}|]/g,UN=/^\[object .+?Constructor\]$/,FN=Function.prototype,BN=Object.prototype,ON=FN.toString,VN=BN.hasOwnProperty,WN=RegExp("^"+ON.call(VN).replace(GN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZN(i){if(!kt(i)||w0(i))return!1;var m=st(i)?WN:UN;return m.test(wo(i))}var G0=ZN;function MN(i,m){return i?.[m]}var U0=MN;function DN(i,m){var e=U0(i,m);return G0(e)?e:void 0}var Ui=DN;var QN=Ui(Ut,"WeakMap"),Qd=QN;var F0=Object.create,kN=function(){function i(){}return function(m){if(!kt(m))return{};if(F0)return F0(m);i.prototype=m;var e=new i;return i.prototype=void 0,e}}(),B0=kN;function XN(i,m,e){switch(e.length){case 0:return i.call(m);case 1:return i.call(m,e[0]);case 2:return i.call(m,e[0],e[1]);case 3:return i.call(m,e[0],e[1],e[2])}return i.apply(m,e)}var O0=XN;function PN(i,m){var e=-1,A=i.length;for(m||(m=Array(A));++e<A;)m[e]=i[e];return m}var V0=PN;var YN=800,HN=16,JN=Date.now;function _N(i){var m=0,e=0;return function(){var A=JN(),R=HN-(A-e);if(e=A,R>0){if(++m>=YN)return arguments[0]}else m=0;return i.apply(void 0,arguments)}}var W0=_N;function jN(i){return function(){return i}}var Z0=jN;var zN=function(){try{var i=Ui(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Of=zN;var $N=Of?function(i,m){return Of(i,"toString",{configurable:!0,enumerable:!1,value:Z0(m),writable:!0})}:va,M0=$N;var qN=W0(M0),D0=qN;var KN=9007199254740991,eT=/^(?:0|[1-9]\d*)$/;function rT(i,m){var e=typeof i;return m=m??KN,!!m&&(e=="number"||e!="symbol"&&eT.test(i))&&i>-1&&i%1==0&&i<m}var Vf=rT;function tT(i,m,e){m=="__proto__"&&Of?Of(i,m,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[m]=e}var Wf=tT;function iT(i,m){return i===m||i!==i&&m!==m}var Mn=iT;var sT=Object.prototype,nT=sT.hasOwnProperty;function oT(i,m,e){var A=i[m];(!(nT.call(i,m)&&Mn(A,e))||e===void 0&&!(m in i))&&Wf(i,m,e)}var Q0=oT;function aT(i,m,e,A){var R=!e;e||(e={});for(var L=-1,F=m.length;++L<F;){var Z=m[L],M=A?A(e[Z],i[Z],Z,e,i):void 0;M===void 0&&(M=i[Z]),R?Wf(e,Z,M):Q0(e,Z,M)}return e}var k0=aT;var X0=Math.max;function lT(i,m,e){return m=X0(m===void 0?i.length-1:m,0),function(){for(var A=arguments,R=-1,L=X0(A.length-m,0),F=Array(L);++R<L;)F[R]=A[m+R];R=-1;for(var Z=Array(m+1);++R<m;)Z[R]=A[R];return Z[m]=e(F),O0(i,this,Z)}}var P0=lT;function uT(i,m){return D0(P0(i,m,va),i+"")}var kd=uT;var fT=9007199254740991;function cT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=fT}var Zf=cT;function pT(i){return i!=null&&Zf(i.length)&&!st(i)}var xs=pT;function dT(i,m,e){if(!kt(e))return!1;var A=typeof m;return(A=="number"?xs(e)&&Vf(m,e.length):A=="string"&&m in e)?Mn(e[m],i):!1}var Td=dT;function hT(i){return kd(function(m,e){var A=-1,R=e.length,L=R>1?e[R-1]:void 0,F=R>2?e[2]:void 0;for(L=i.length>3&&typeof L=="function"?(R--,L):void 0,F&&Td(e[0],e[1],F)&&(L=R<3?void 0:L,R=1),m=Object(m);++A<R;){var Z=e[A];Z&&i(m,Z,A,L)}return m})}var Xd=hT;var gT=Object.prototype;function ET(i){var m=i&&i.constructor,e=typeof m=="function"&&m.prototype||gT;return i===e}var Mf=ET;function mT(i,m){for(var e=-1,A=Array(i);++e<i;)A[e]=m(e);return A}var Y0=mT;var vT="[object Arguments]";function IT(i){return Ei(i)&&es(i)==vT}var dm=IT;var H0=Object.prototype,CT=H0.hasOwnProperty,xT=H0.propertyIsEnumerable,bT=dm(function(){return arguments}())?dm:function(i){return Ei(i)&&CT.call(i,"callee")&&!xT.call(i,"callee")},Go=bT;function AT(){return!1}var J0=AT;var z0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_0=z0&&typeof module=="object"&&module&&!module.nodeType&&module,NT=_0&&_0.exports===z0,j0=NT?Ut.Buffer:void 0,TT=j0?j0.isBuffer:void 0,RT=TT||J0,Hl=RT;var yT="[object Arguments]",ST="[object Array]",LT="[object Boolean]",wT="[object Date]",GT="[object Error]",UT="[object Function]",FT="[object Map]",BT="[object Number]",OT="[object Object]",VT="[object RegExp]",WT="[object Set]",ZT="[object String]",MT="[object WeakMap]",DT="[object ArrayBuffer]",QT="[object DataView]",kT="[object Float32Array]",XT="[object Float64Array]",PT="[object Int8Array]",YT="[object Int16Array]",HT="[object Int32Array]",JT="[object Uint8Array]",_T="[object Uint8ClampedArray]",jT="[object Uint16Array]",zT="[object Uint32Array]",Kr={};Kr[kT]=Kr[XT]=Kr[PT]=Kr[YT]=Kr[HT]=Kr[JT]=Kr[_T]=Kr[jT]=Kr[zT]=!0;Kr[yT]=Kr[ST]=Kr[DT]=Kr[LT]=Kr[QT]=Kr[wT]=Kr[GT]=Kr[UT]=Kr[FT]=Kr[BT]=Kr[OT]=Kr[VT]=Kr[WT]=Kr[ZT]=Kr[MT]=!1;function $T(i){return Ei(i)&&Zf(i.length)&&!!Kr[es(i)]}var $0=$T;function qT(i){return function(m){return i(m)}}var Pd=qT;var q0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rd=q0&&typeof module=="object"&&module&&!module.nodeType&&module,KT=Rd&&Rd.exports===q0,hm=KT&&Md.process,eR=function(){try{var i=Rd&&Rd.require&&Rd.require("util").types;return i||hm&&hm.binding&&hm.binding("util")}catch{}}(),gm=eR;var K0=gm&&gm.isTypedArray,rR=K0?Pd(K0):$0,Df=rR;var tR=Object.prototype,iR=tR.hasOwnProperty;function sR(i,m){var e=it(i),A=!e&&Go(i),R=!e&&!A&&Hl(i),L=!e&&!A&&!R&&Df(i),F=e||A||R||L,Z=F?Y0(i.length,String):[],M=Z.length;for(var Y in i)(m||iR.call(i,Y))&&!(F&&(Y=="length"||R&&(Y=="offset"||Y=="parent")||L&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||Vf(Y,M)))&&Z.push(Y);return Z}var Yd=sR;function nR(i,m){return function(e){return i(m(e))}}var Hd=nR;var oR=Hd(Object.keys,Object),eI=oR;var aR=Object.prototype,lR=aR.hasOwnProperty;function uR(i){if(!Mf(i))return eI(i);var m=[];for(var e in Object(i))lR.call(i,e)&&e!="constructor"&&m.push(e);return m}var rI=uR;function fR(i){return xs(i)?Yd(i):rI(i)}var Qf=fR;function cR(i){var m=[];if(i!=null)for(var e in Object(i))m.push(e);return m}var tI=cR;var pR=Object.prototype,dR=pR.hasOwnProperty;function hR(i){if(!kt(i))return tI(i);var m=Mf(i),e=[];for(var A in i)A=="constructor"&&(m||!dR.call(i,A))||e.push(A);return e}var iI=hR;function gR(i){return xs(i)?Yd(i,!0):iI(i)}var Jd=gR;var ER=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mR=/^\w*$/;function vR(i,m){if(it(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||Ks(i)?!0:mR.test(i)||!ER.test(i)||m!=null&&i in Object(m)}var kf=vR;var IR=Ui(Object,"create"),Uo=IR;function CR(){this.__data__=Uo?Uo(null):{},this.size=0}var sI=CR;function xR(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}var nI=xR;var bR="__lodash_hash_undefined__",AR=Object.prototype,NR=AR.hasOwnProperty;function TR(i){var m=this.__data__;if(Uo){var e=m[i];return e===bR?void 0:e}return NR.call(m,i)?m[i]:void 0}var oI=TR;var RR=Object.prototype,yR=RR.hasOwnProperty;function SR(i){var m=this.__data__;return Uo?m[i]!==void 0:yR.call(m,i)}var aI=SR;var LR="__lodash_hash_undefined__";function wR(i,m){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=Uo&&m===void 0?LR:m,this}var lI=wR;function Xf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var A=i[m];this.set(A[0],A[1])}}Xf.prototype.clear=sI;Xf.prototype.delete=nI;Xf.prototype.get=oI;Xf.prototype.has=aI;Xf.prototype.set=lI;var Em=Xf;function GR(){this.__data__=[],this.size=0}var uI=GR;function UR(i,m){for(var e=i.length;e--;)if(Mn(i[e][0],m))return e;return-1}var Ia=UR;var FR=Array.prototype,BR=FR.splice;function OR(i){var m=this.__data__,e=Ia(m,i);if(e<0)return!1;var A=m.length-1;return e==A?m.pop():BR.call(m,e,1),--this.size,!0}var fI=OR;function VR(i){var m=this.__data__,e=Ia(m,i);return e<0?void 0:m[e][1]}var cI=VR;function WR(i){return Ia(this.__data__,i)>-1}var pI=WR;function ZR(i,m){var e=this.__data__,A=Ia(e,i);return A<0?(++this.size,e.push([i,m])):e[A][1]=m,this}var dI=ZR;function Pf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var A=i[m];this.set(A[0],A[1])}}Pf.prototype.clear=uI;Pf.prototype.delete=fI;Pf.prototype.get=cI;Pf.prototype.has=pI;Pf.prototype.set=dI;var Ca=Pf;var MR=Ui(Ut,"Map"),xa=MR;function DR(){this.size=0,this.__data__={hash:new Em,map:new(xa||Ca),string:new Em}}var hI=DR;function QR(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}var gI=QR;function kR(i,m){var e=i.__data__;return gI(m)?e[typeof m=="string"?"string":"hash"]:e.map}var ba=kR;function XR(i){var m=ba(this,i).delete(i);return this.size-=m?1:0,m}var EI=XR;function PR(i){return ba(this,i).get(i)}var mI=PR;function YR(i){return ba(this,i).has(i)}var vI=YR;function HR(i,m){var e=ba(this,i),A=e.size;return e.set(i,m),this.size+=e.size==A?0:1,this}var II=HR;function Yf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var A=i[m];this.set(A[0],A[1])}}Yf.prototype.clear=hI;Yf.prototype.delete=EI;Yf.prototype.get=mI;Yf.prototype.has=vI;Yf.prototype.set=II;var Jl=Yf;var JR="Expected a function";function mm(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new TypeError(JR);var e=function(){var A=arguments,R=m?m.apply(this,A):A[0],L=e.cache;if(L.has(R))return L.get(R);var F=i.apply(this,A);return e.cache=L.set(R,F)||L,F};return e.cache=new(mm.Cache||Jl),e}mm.Cache=Jl;var CI=mm;var _R=500;function jR(i){var m=CI(i,function(A){return e.size===_R&&e.clear(),A}),e=m.cache;return m}var xI=jR;var zR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$R=/\\(\\)?/g,qR=xI(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(zR,function(e,A,R,L){m.push(R?L.replace($R,"$1"):A||e)}),m}),bI=qR;function KR(i){return i==null?"":x0(i)}var _d=KR;function ey(i,m){return it(i)?i:kf(i,m)?[i]:bI(_d(i))}var jd=ey;var ry=1/0;function ty(i){if(typeof i=="string"||Ks(i))return i;var m=i+"";return m=="0"&&1/i==-ry?"-0":m}var Aa=ty;function iy(i,m){m=jd(m,i);for(var e=0,A=m.length;i!=null&&e<A;)i=i[Aa(m[e++])];return e&&e==A?i:void 0}var Hf=iy;function sy(i,m,e){var A=i==null?void 0:Hf(i,m);return A===void 0?e:A}var AI=sy;function ny(i,m){for(var e=-1,A=m.length,R=i.length;++e<A;)i[R+e]=m[e];return i}var zd=ny;var NI=gi?gi.isConcatSpreadable:void 0;function oy(i){return it(i)||Go(i)||!!(NI&&i&&i[NI])}var TI=oy;function RI(i,m,e,A,R){var L=-1,F=i.length;for(e||(e=TI),R||(R=[]);++L<F;){var Z=i[L];m>0&&e(Z)?m>1?RI(Z,m-1,e,A,R):zd(R,Z):A||(R[R.length]=Z)}return R}var yI=RI;var ay=Hd(Object.getPrototypeOf,Object),$d=ay;var ly="[object Object]",uy=Function.prototype,fy=Object.prototype,SI=uy.toString,cy=fy.hasOwnProperty,py=SI.call(Object);function dy(i){if(!Ei(i)||es(i)!=ly)return!1;var m=$d(i);if(m===null)return!0;var e=cy.call(m,"constructor")&&m.constructor;return typeof e=="function"&&e instanceof e&&SI.call(e)==py}var LI=dy;function hy(i,m,e){var A=-1,R=i.length;m<0&&(m=-m>R?0:R+m),e=e>R?R:e,e<0&&(e+=R),R=m>e?0:e-m>>>0,m>>>=0;for(var L=Array(R);++A<R;)L[A]=i[A+m];return L}var wI=hy;function gy(i){return function(m){return i?.[m]}}var GI=gy;function Ey(){this.__data__=new Ca,this.size=0}var UI=Ey;function my(i){var m=this.__data__,e=m.delete(i);return this.size=m.size,e}var FI=my;function vy(i){return this.__data__.get(i)}var BI=vy;function Iy(i){return this.__data__.has(i)}var OI=Iy;var Cy=200;function xy(i,m){var e=this.__data__;if(e instanceof Ca){var A=e.__data__;if(!xa||A.length<Cy-1)return A.push([i,m]),this.size=++e.size,this;e=this.__data__=new Jl(A)}return e.set(i,m),this.size=e.size,this}var VI=xy;function Jf(i){var m=this.__data__=new Ca(i);this.size=m.size}Jf.prototype.clear=UI;Jf.prototype.delete=FI;Jf.prototype.get=BI;Jf.prototype.has=OI;Jf.prototype.set=VI;var Na=Jf;var DI=typeof exports=="object"&&exports&&!exports.nodeType&&exports,WI=DI&&typeof module=="object"&&module&&!module.nodeType&&module,by=WI&&WI.exports===DI,ZI=by?Ut.Buffer:void 0,MI=ZI?ZI.allocUnsafe:void 0;function Ay(i,m){if(m)return i.slice();var e=i.length,A=MI?MI(e):new i.constructor(e);return i.copy(A),A}var QI=Ay;function Ny(i,m){for(var e=-1,A=i==null?0:i.length,R=0,L=[];++e<A;){var F=i[e];m(F,e,i)&&(L[R++]=F)}return L}var kI=Ny;function Ty(){return[]}var XI=Ty;var Ry=Object.prototype,yy=Ry.propertyIsEnumerable,PI=Object.getOwnPropertySymbols,Sy=PI?function(i){return i==null?[]:(i=Object(i),kI(PI(i),function(m){return yy.call(i,m)}))}:XI,YI=Sy;function Ly(i,m,e){var A=m(i);return it(i)?A:zd(A,e(i))}var HI=Ly;function wy(i){return HI(i,Qf,YI)}var vm=wy;var Gy=Ui(Ut,"DataView"),qd=Gy;var Uy=Ui(Ut,"Promise"),Kd=Uy;var Fy=Ui(Ut,"Set"),eh=Fy;var JI="[object Map]",By="[object Object]",_I="[object Promise]",jI="[object Set]",zI="[object WeakMap]",$I="[object DataView]",Oy=wo(qd),Vy=wo(xa),Wy=wo(Kd),Zy=wo(eh),My=wo(Qd),_l=es;(qd&&_l(new qd(new ArrayBuffer(1)))!=$I||xa&&_l(new xa)!=JI||Kd&&_l(Kd.resolve())!=_I||eh&&_l(new eh)!=jI||Qd&&_l(new Qd)!=zI)&&(_l=function(i){var m=es(i),e=m==By?i.constructor:void 0,A=e?wo(e):"";if(A)switch(A){case Oy:return $I;case Vy:return JI;case Wy:return _I;case Zy:return jI;case My:return zI}return m});var Im=_l;var Dy=Ut.Uint8Array,_f=Dy;function Qy(i){var m=new i.constructor(i.byteLength);return new _f(m).set(new _f(i)),m}var qI=Qy;function ky(i,m){var e=m?qI(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var KI=ky;function Xy(i){return typeof i.constructor=="function"&&!Mf(i)?B0($d(i)):{}}var eC=Xy;var Py="__lodash_hash_undefined__";function Yy(i){return this.__data__.set(i,Py),this}var rC=Yy;function Hy(i){return this.__data__.has(i)}var tC=Hy;function rh(i){var m=-1,e=i==null?0:i.length;for(this.__data__=new Jl;++m<e;)this.add(i[m])}rh.prototype.add=rh.prototype.push=rC;rh.prototype.has=tC;var iC=rh;function Jy(i,m){for(var e=-1,A=i==null?0:i.length;++e<A;)if(m(i[e],e,i))return!0;return!1}var sC=Jy;function _y(i,m){return i.has(m)}var nC=_y;var jy=1,zy=2;function $y(i,m,e,A,R,L){var F=e&jy,Z=i.length,M=m.length;if(Z!=M&&!(F&&M>Z))return!1;var Y=L.get(i),X=L.get(m);if(Y&&X)return Y==m&&X==i;var D=-1,z=!0,W=e&zy?new iC:void 0;for(L.set(i,m),L.set(m,i);++D<Z;){var K=i[D],J=m[D];if(A)var O=F?A(J,K,D,m,i,L):A(K,J,D,i,m,L);if(O!==void 0){if(O)continue;z=!1;break}if(W){if(!sC(m,function(V,H){if(!nC(W,H)&&(K===V||R(K,V,e,A,L)))return W.push(H)})){z=!1;break}}else if(!(K===J||R(K,J,e,A,L))){z=!1;break}}return L.delete(i),L.delete(m),z}var th=$y;function qy(i){var m=-1,e=Array(i.size);return i.forEach(function(A,R){e[++m]=[R,A]}),e}var oC=qy;function Ky(i){var m=-1,e=Array(i.size);return i.forEach(function(A){e[++m]=A}),e}var aC=Ky;var eS=1,rS=2,tS="[object Boolean]",iS="[object Date]",sS="[object Error]",nS="[object Map]",oS="[object Number]",aS="[object RegExp]",lS="[object Set]",uS="[object String]",fS="[object Symbol]",cS="[object ArrayBuffer]",pS="[object DataView]",lC=gi?gi.prototype:void 0,Cm=lC?lC.valueOf:void 0;function dS(i,m,e,A,R,L,F){switch(e){case pS:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case cS:return!(i.byteLength!=m.byteLength||!L(new _f(i),new _f(m)));case tS:case iS:case oS:return Mn(+i,+m);case sS:return i.name==m.name&&i.message==m.message;case aS:case uS:return i==m+"";case nS:var Z=oC;case lS:var M=A&eS;if(Z||(Z=aC),i.size!=m.size&&!M)return!1;var Y=F.get(i);if(Y)return Y==m;A|=rS,F.set(i,m);var X=th(Z(i),Z(m),A,R,L,F);return F.delete(i),X;case fS:if(Cm)return Cm.call(i)==Cm.call(m)}return!1}var uC=dS;var hS=1,gS=Object.prototype,ES=gS.hasOwnProperty;function mS(i,m,e,A,R,L){var F=e&hS,Z=vm(i),M=Z.length,Y=vm(m),X=Y.length;if(M!=X&&!F)return!1;for(var D=M;D--;){var z=Z[D];if(!(F?z in m:ES.call(m,z)))return!1}var W=L.get(i),K=L.get(m);if(W&&K)return W==m&&K==i;var J=!0;L.set(i,m),L.set(m,i);for(var O=F;++D<M;){z=Z[D];var V=i[z],H=m[z];if(A)var $=F?A(H,V,z,m,i,L):A(V,H,z,i,m,L);if(!($===void 0?V===H||R(V,H,e,A,L):$)){J=!1;break}O||(O=z=="constructor")}if(J&&!O){var q=i.constructor,ee=m.constructor;q!=ee&&"constructor"in i&&"constructor"in m&&!(typeof q=="function"&&q instanceof q&&typeof ee=="function"&&ee instanceof ee)&&(J=!1)}return L.delete(i),L.delete(m),J}var fC=mS;var vS=1,cC="[object Arguments]",pC="[object Array]",ih="[object Object]",IS=Object.prototype,dC=IS.hasOwnProperty;function CS(i,m,e,A,R,L){var F=it(i),Z=it(m),M=F?pC:Im(i),Y=Z?pC:Im(m);M=M==cC?ih:M,Y=Y==cC?ih:Y;var X=M==ih,D=Y==ih,z=M==Y;if(z&&Hl(i)){if(!Hl(m))return!1;F=!0,X=!1}if(z&&!X)return L||(L=new Na),F||Df(i)?th(i,m,e,A,R,L):uC(i,m,M,e,A,R,L);if(!(e&vS)){var W=X&&dC.call(i,"__wrapped__"),K=D&&dC.call(m,"__wrapped__");if(W||K){var J=W?i.value():i,O=K?m.value():m;return L||(L=new Na),R(J,O,e,A,L)}}return z?(L||(L=new Na),fC(i,m,e,A,R,L)):!1}var hC=CS;function gC(i,m,e,A,R){return i===m?!0:i==null||m==null||!Ei(i)&&!Ei(m)?i!==i&&m!==m:hC(i,m,e,A,gC,R)}var sh=gC;var xS=1,bS=2;function AS(i,m,e,A){var R=e.length,L=R,F=!A;if(i==null)return!L;for(i=Object(i);R--;){var Z=e[R];if(F&&Z[2]?Z[1]!==i[Z[0]]:!(Z[0]in i))return!1}for(;++R<L;){Z=e[R];var M=Z[0],Y=i[M],X=Z[1];if(F&&Z[2]){if(Y===void 0&&!(M in i))return!1}else{var D=new Na;if(A)var z=A(Y,X,M,i,m,D);if(!(z===void 0?sh(X,Y,xS|bS,A,D):z))return!1}}return!0}var EC=AS;function NS(i){return i===i&&!kt(i)}var nh=NS;function TS(i){for(var m=Qf(i),e=m.length;e--;){var A=m[e],R=i[A];m[e]=[A,R,nh(R)]}return m}var mC=TS;function RS(i,m){return function(e){return e==null?!1:e[i]===m&&(m!==void 0||i in Object(e))}}var oh=RS;function yS(i){var m=mC(i);return m.length==1&&m[0][2]?oh(m[0][0],m[0][1]):function(e){return e===i||EC(e,i,m)}}var vC=yS;function SS(i,m){return i!=null&&m in Object(i)}var IC=SS;function LS(i,m,e){m=jd(m,i);for(var A=-1,R=m.length,L=!1;++A<R;){var F=Aa(m[A]);if(!(L=i!=null&&e(i,F)))break;i=i[F]}return L||++A!=R?L:(R=i==null?0:i.length,!!R&&Zf(R)&&Vf(F,R)&&(it(i)||Go(i)))}var CC=LS;function wS(i,m){return i!=null&&CC(i,m,IC)}var xC=wS;var GS=1,US=2;function FS(i,m){return kf(i)&&nh(m)?oh(Aa(i),m):function(e){var A=AI(e,i);return A===void 0&&A===m?xC(e,i):sh(m,A,GS|US)}}var bC=FS;function BS(i){return function(m){return m?.[i]}}var AC=BS;function OS(i){return function(m){return Hf(m,i)}}var NC=OS;function VS(i){return kf(i)?AC(Aa(i)):NC(i)}var TC=VS;function WS(i){return typeof i=="function"?i:i==null?va:typeof i=="object"?it(i)?bC(i[0],i[1]):vC(i):TC(i)}var RC=WS;function ZS(i){return function(m,e,A){for(var R=-1,L=Object(m),F=A(m),Z=F.length;Z--;){var M=F[i?Z:++R];if(e(L[M],M,L)===!1)break}return m}}var yC=ZS;var MS=yC(),ah=MS;function DS(i,m){return i&&ah(i,m,Qf)}var SC=DS;function QS(i,m){return function(e,A){if(e==null)return e;if(!xs(e))return i(e,A);for(var R=e.length,L=m?R:-1,F=Object(e);(m?L--:++L<R)&&A(F[L],L,F)!==!1;);return e}}var LC=QS;var kS=LC(SC),wC=kS;function XS(i,m,e){(e!==void 0&&!Mn(i[m],e)||e===void 0&&!(m in i))&&Wf(i,m,e)}var yd=XS;function PS(i){return Ei(i)&&xs(i)}var GC=PS;function YS(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Sd=YS;function HS(i){return k0(i,Jd(i))}var UC=HS;function JS(i,m,e,A,R,L,F){var Z=Sd(i,e),M=Sd(m,e),Y=F.get(M);if(Y){yd(i,e,Y);return}var X=L?L(Z,M,e+"",i,m,F):void 0,D=X===void 0;if(D){var z=it(M),W=!z&&Hl(M),K=!z&&!W&&Df(M);X=M,z||W||K?it(Z)?X=Z:GC(Z)?X=V0(Z):W?(D=!1,X=QI(M,!0)):K?(D=!1,X=KI(M,!0)):X=[]:LI(M)||Go(M)?(X=Z,Go(Z)?X=UC(Z):(!kt(Z)||st(Z))&&(X=eC(M))):D=!1}D&&(F.set(M,X),R(X,M,A,L,F),F.delete(M)),yd(i,e,X)}var FC=JS;function BC(i,m,e,A,R){i!==m&&ah(m,function(L,F){if(R||(R=new Na),kt(L))FC(i,m,F,e,BC,A,R);else{var Z=A?A(Sd(i,F),L,F+"",i,m,R):void 0;Z===void 0&&(Z=L),yd(i,F,Z)}},Jd)}var lh=BC;var _S=Xd(function(i,m,e,A){lh(i,m,e,A)}),xm=_S;var jS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zS=GI(jS),OC=zS;var VC=/[&<>"']/g,$S=RegExp(VC.source);function qS(i){return i=_d(i),i&&$S.test(i)?i.replace(VC,OC):i}var Ld=qS;function KS(i,m){var e=-1,A=xs(i)?Array(i.length):[];return wC(i,function(R,L,F){A[++e]=m(R,L,F)}),A}var WC=KS;var e1=Xd(function(i,m,e){lh(i,m,e)}),uh=e1;function r1(i,m){var e=i.length;for(i.sort(m);e--;)i[e]=i[e].value;return i}var ZC=r1;function t1(i,m){if(i!==m){var e=i!==void 0,A=i===null,R=i===i,L=Ks(i),F=m!==void 0,Z=m===null,M=m===m,Y=Ks(m);if(!Z&&!Y&&!L&&i>m||L&&F&&M&&!Z&&!Y||A&&F&&M||!e&&M||!R)return 1;if(!A&&!L&&!Y&&i<m||Y&&e&&R&&!A&&!L||Z&&e&&R||!F&&R||!M)return-1}return 0}var MC=t1;function i1(i,m,e){for(var A=-1,R=i.criteria,L=m.criteria,F=R.length,Z=e.length;++A<F;){var M=MC(R[A],L[A]);if(M){if(A>=Z)return M;var Y=e[A];return M*(Y=="desc"?-1:1)}}return i.index-m.index}var DC=i1;function s1(i,m,e){m.length?m=Bf(m,function(L){return it(L)?function(F){return Hf(F,L.length===1?L[0]:L)}:L}):m=[va];var A=-1;m=Bf(m,Pd(RC));var R=WC(i,function(L,F,Z){var M=Bf(m,function(Y){return Y(L)});return{criteria:M,index:++A,value:L}});return ZC(R,function(L,F){return DC(L,F,e)})}var QC=s1;var n1=kd(function(i,m){if(i==null)return[];var e=m.length;return e>1&&Td(i,m[0],m[1])?m=[]:e>2&&Td(m[0],m[1],m[2])&&(m=[m[0]]),QC(i,yI(m,1),[])}),bm=n1;function o1(i,m,e){return i&&i.length?(m=e||m===void 0?1:S0(m),wI(i,0,m<0?0:m)):[]}var Am=o1;var Dn=jt(Zd());function zl(i,m){return st(m)?m(i):m??{}}function a1(i,m){let e=`${i}:${m}`;return`Basic ${kC(e)}`}function kC(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let m=new window.TextEncoder().encode(i),e="";for(let A=0;A<m.length;A++)e+=String.fromCharCode(m[A]);return btoa(e)}else if(typeof TextEncoder<"u"){let m=new TextEncoder().encode(i),e="";for(let A=0;A<m.length;A++)e+=String.fromCharCode(m[A]);return btoa(e)}else try{return btoa(i)}catch{throw new Error("Basic authentication credentials contain unsupported Unicode characters. Please use a modern browser or restrict credentials to Latin1 characters.")}}function $l(i,m={}){let e=uh({},zl(i,i.config.requestConfig),zl(i,m));if(!e.endpoint||e.endpoint.length==0)return;var A=i.getQueryMode();let R=st(e.endpoint)?e.endpoint(i):e.endpoint;var L=A=="update"?"POST":st(e.method)?e.method(i):e.method;let F=st(e.headers)?e.headers(i):e.headers,Z=st(e.withCredentials)?e.withCredentials(i):e.withCredentials,M={...F},Y=!1;try{let X=st(e.oauth2Auth)?e.oauth2Auth(i):e.oauth2Auth,D=X?.idToken||X?.accessToken,z=D?D.trim():"";X&&z.length>0&&(Y=!0,M.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping OAuth 2.0 Auth header to avoid overwrite."):M.Authorization=`Bearer ${z}`);let W=st(e.bearerAuth)?e.bearerAuth(i):e.bearerAuth,K=W&&W.token?W.token.trim():"";W&&K.length>0&&(Y=!0,M.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Bearer Auth header to avoid overwrite."):M.Authorization=`Bearer ${K}`);let J=st(e.apiKeyAuth)?e.apiKeyAuth(i):e.apiKeyAuth,O=J&&J.headerName?J.headerName.trim():"",V=J&&J.apiKey?J.apiKey.trim():"";J&&O.length>0&&V.length>0&&(Y=!0,M[O]!==void 0?console.warn(`Header "${O}" already exists in request headers; skipping API Key header to avoid overwrite.`):M[O]=V);let H=st(e.basicAuth)?e.basicAuth(i):e.basicAuth;H&&H.username&&H.password&&(Y=!0,M.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):M.Authorization=a1(H.username,H.password))}catch(X){console.warn("Failed to configure authentication:",X)}return Y&&(Z=!0),{reqMethod:L,url:R,args:XC(i,e),headers:M,accept:PC(i,e),withCredentials:Z??!1}}async function Nm(i,m,e){let A=Date.now(),R=!!e?.silent;try{R||i.emit("queryBefore",i,m);let L=$l(i,m);if(!L)return;let F=new AbortController;e?.signal&&(e.signal.aborted?F.abort():e.signal.addEventListener("abort",()=>F.abort(),{once:!0}));let Z=e?.customAccept||L.accept,M={method:L.reqMethod,headers:{Accept:Z,...L.headers||{}},credentials:L.withCredentials?"include":"same-origin",signal:F.signal,mode:"cors"};M?.headers&&L.reqMethod==="POST"&&(M.headers["Content-Type"]="application/x-www-form-urlencoded");let Y=new URLSearchParams,X=(O,V=[])=>{for(let H in O)if(!V.includes(H)){let $=O[H];Array.isArray($)?$.forEach(q=>Y.append(H,q)):Y.append(H,$)}},D=O=>O.query!==void 0?"query":O.update!==void 0?"update":"query";if(e?.customQuery){let O=D(L.args);Y.append(O,e.customQuery),X(L.args,["query","update"])}else X(L.args);if(L.reqMethod==="POST")M.body=Y.toString();else{let O=new URL(L.url);Y.forEach((V,H)=>{O.searchParams.append(H,V)}),L.url=O.toString()}let z=new Request(L.url,M);R||i.emit("query",z,F);let W=await fetch(z),K=await W.text(),J={ok:W.ok,status:W.status,statusText:W.statusText,headers:W.headers,type:W.type,content:K,data:K,json:async()=>JSON.parse(K),text:async()=>K};if(!W.ok){let O=new Error(J.content||W.statusText);throw O.status=W.status,O.statusText=W.statusText,O.response=J,O}return R||(i.emit("queryResponse",J,Date.now()-A),i.emit("queryResults",J.content,Date.now()-A)),J}catch(L){if(!(L instanceof Error&&L.message==="Aborted"))if(L instanceof Error&&!("status"in L)){let F=L;(L.message.includes("Failed to fetch")||L.message.includes("NetworkError"))&&(F.message=`${L.message}. The server may have returned an error response (check browser dev tools), but CORS headers are preventing JavaScript from accessing it. Ensure the endpoint returns proper CORS headers even for error responses (Access-Control-Allow-Origin, etc.).`),R||i.emit("queryResponse",F,Date.now()-A)}else R||i.emit("queryResponse",L,Date.now()-A);throw R||i.emit("error",L),L}}function XC(i,m){var e=i.getQueryMode(),A={};let R=zl(i,m);var L=st(R.queryArgument)?R.queryArgument(i):R.queryArgument;L||(L=i.getQueryMode()),A[L]=R.adjustQueryBeforeRequest?R.adjustQueryBeforeRequest(i):i.getValue();let F=st(R.namedGraphs)?R.namedGraphs(i):R.namedGraphs;if(F&&F.length>0){let Y=e==="query"?"named-graph-uri":"using-named-graph-uri ";A[Y]=F}let Z=st(R.defaultGraphs)?R.defaultGraphs(i):R.defaultGraphs;if(Z&&Z.length>0){let Y=e=="query"?"default-graph-uri":"using-graph-uri ";A[Y]=Z}let M=st(R.args)?R.args(i):R.args;return M&&M.length>0&&uh(A,M.reduce((Y,X)=>(Y[X.name]?Y[X.name].push(X.value):Y[X.name]=[X.value],Y),{})),A}function PC(i,m){let e=zl(i,m);var A=null;if(i.getQueryMode()=="update")A=st(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var R=i.getQueryType();R=="DESCRIBE"||R=="CONSTRUCT"?A=st(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:A=st(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return A}function Tm(i){if(i.indexOf("http")!==0){let m=`${window.location.protocol}//${window.location.host}`;if(i.indexOf("/")===0)m+=i;else{let e=window.location.pathname;if(!e.endsWith("/")){let A=e.lastIndexOf("/");e=A>=0?e.substring(0,A+1):"/"}m+=e+i}return m}return i}function Rm(i){if(!i)return!1;if(i.headers&&i.headers.Authorization)return!0;if(i.headers)for(let m in i.headers){let e=m.toLowerCase();if(e.startsWith("x-api-key")||e.startsWith("x-auth-")||e==="apikey"||e==="api-key"||e.endsWith("-token")&&e.startsWith("x-")||e.includes("-auth-")&&e.includes("token"))return!0}return!1}function mi(i){return i.replace(/'/g,"'\\''")}function ym(i,m){let e=$l(i,zl(i,m));if(!e)return"";let A=Tm(e.url),R=["curl"];if(e.reqMethod==="GET")A+=`?${Dn.stringify(e.args)}`,R.push(`'${mi(A)}'`);else if(e.reqMethod==="POST"){R.push(`'${mi(A)}'`);let L=Dn.stringify(e.args);R.push("--data",`'${mi(L)}'`)}else console.warn("Unexpected request-method",e.reqMethod),R.push(`'${mi(A)}'`);R.push("-X",e.reqMethod),e.accept&&R.push("-H",`'Accept: ${mi(e.accept)}'`);for(let L in e.headers)R.push("-H",`'${mi(L)}: ${mi(e.headers[L])}'`);return R.join(` \\
41
41
  `)}function jl(i){return i.replace(/`/g,"``").replace(/"/g,'`"').replace(/\$/g,"`$")}function Sm(i,m){let e=$l(i,zl(i,m));if(!e)return"";let A=Tm(e.url),R=[],L=e.accept,F="json";L&&(L.includes("text/turtle")||L.includes("application/x-turtle")?F="ttl":L.includes("application/rdf+xml")?F="xml":L.includes("application/n-triples")?F="nt":L.includes("application/ld+json")?F="jsonld":L.includes("text/csv")?F="csv":L.includes("text/tab-separated-values")&&(F="tsv"));let Z=[];L&&Z.push(` "Accept" = "${jl(L)}"`);for(let M in e.headers)Z.push(` "${jl(M)}" = "${jl(e.headers[M])}"`);if(e.reqMethod==="GET")A+=`?${Dn.stringify(e.args)}`,R.push("$params = @{"),R.push(` Uri = "${jl(A)}"`),R.push(' Method = "Get"'),Z.length>0&&(R.push(" Headers = @{"),R.push(Z.join(`
42
- `)),R.push(" }")),R.push(` OutFile = "sparql-generated.${F}"`),R.push("}");else if(e.reqMethod==="POST"){let M=e.args.query!==void 0?"query":"update",Y=e.args[M],P={};for(let W in e.args)W!=="query"&&W!=="update"&&(P[W]=e.args[W]);if(Y){let W=Array.isArray(Y)?Y[0]:Y;R.push(`$${M} = @"`),R.push(W),R.push('"@'),R.push("")}let D,z=`[System.Net.WebUtility]::UrlEncode($${M})`;if(Y&&Object.keys(P).length>0){let W=Dn.stringify(P);D=`"${M}=$(${z})&${jl(W)}"`}else if(Y)D=`"${M}=$(${z})"`;else{let W=Dn.stringify(P);D=`"${jl(W)}"`}R.push("$params = @{"),R.push(` Uri = "${jl(A)}"`),R.push(' Method = "Post"'),Z.length>0&&(R.push(" Headers = @{"),R.push(Z.join(`
42
+ `)),R.push(" }")),R.push(` OutFile = "sparql-generated.${F}"`),R.push("}");else if(e.reqMethod==="POST"){let M=e.args.query!==void 0?"query":"update",Y=e.args[M],X={};for(let W in e.args)W!=="query"&&W!=="update"&&(X[W]=e.args[W]);if(Y){let W=Array.isArray(Y)?Y[0]:Y;R.push(`$${M} = @"`),R.push(W),R.push('"@'),R.push("")}let D,z=`[System.Net.WebUtility]::UrlEncode($${M})`;if(Y&&Object.keys(X).length>0){let W=Dn.stringify(X);D=`"${M}=$(${z})&${jl(W)}"`}else if(Y)D=`"${M}=$(${z})"`;else{let W=Dn.stringify(X);D=`"${jl(W)}"`}R.push("$params = @{"),R.push(` Uri = "${jl(A)}"`),R.push(' Method = "Post"'),Z.length>0&&(R.push(" Headers = @{"),R.push(Z.join(`
43
43
  `)),R.push(" }")),R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = ${D}`),R.push(` OutFile = "sparql-generated.${F}"`),R.push("}")}else{console.warn("Unexpected request-method for PowerShell",e.reqMethod);let M=Dn.stringify(e.args);R.push("$params = @{"),R.push(` Uri = "${A}"`),R.push(` Method = "${e.reqMethod}"`),Z.length>0&&(R.push(" Headers = @{"),R.push(Z.join(`
44
44
  `)),R.push(" }")),M&&(R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = "${M.replace(/"/g,'`"')}"`)),R.push(` OutFile = "sparql-generated.${F}"`),R.push("}")}return R.push(""),R.push("Invoke-WebRequest @params"),R.join(`
45
45
  `)}function Lm(i,m){let e=$l(i,zl(i,m));if(!e)return"";let A=Tm(e.url),R=["wget"];if(e.reqMethod==="GET")A+=`?${Dn.stringify(e.args)}`,R.push(`'${mi(A)}'`);else if(e.reqMethod==="POST"){R.push(`'${mi(A)}'`);let L=Dn.stringify(e.args);R.push("--post-data",`'${mi(L)}'`)}else{console.warn("Unexpected request-method for wget",e.reqMethod),R.push(`'${mi(A)}'`);let L=Dn.stringify(e.args);L&&R.push("--post-data",`'${mi(L)}'`)}e.reqMethod!=="GET"&&R.push("--method",e.reqMethod),e.accept&&R.push("--header",`'Accept: ${mi(e.accept)}'`);for(let L in e.headers)R.push("--header",`'${mi(L)}: ${mi(e.headers[L])}'`);return R.push("-O -"),R.join(` \\
@@ -57,25 +57,25 @@ SELECT * WHERE {
57
57
  ?s ?p ?o .
58
58
  }`,group:"Query Types"},{label:"FILTER",code:"FILTER (?var > 100)",group:"Patterns"},{label:"OPTIONAL",code:`OPTIONAL {
59
59
  ?s ?p ?o .
60
- }`,group:"Patterns"}],showSnippetsBar:!0},requestConfig:{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,basicAuth:void 0,bearerAuth:void 0,apiKeyAuth:void 0,oauth2Auth:void 0}}}var vh=jt(ni());var ux={"*[&&,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"]}},fx=/^(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,cx=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,mh="sparql11",px=!0;function dx(i){let m=ux,e='<[^<>"`|{}^\\\0- ]*>',A="[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]",R=A+"|_",L="("+R+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",F="("+R+"|[0-9])("+R+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",Z="\\?"+F,M="\\$"+F,Y="("+A+")((("+L+")|\\.)*("+L+"))?",P="[0-9A-Fa-f]",W="("+("(%"+P+P+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",$="("+R+"|:|[0-9]|"+W+")(("+L+"|\\.|:|"+W+")*("+L+"|:|"+W+"))?",J="_:("+R+"|[0-9])(("+L+"|\\.)*"+L+")?",O="("+Y+")?:",V=O+$,H="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",q="[eE][\\+-]?[0-9]+",K="[0-9]+",ee="[0-9]*\\.[0-9]+",ne="(([0-9]+\\.[0-9]*"+q+")|(\\.[0-9]+"+q+")|([0-9]+"+q+"))",de="\\+"+K,Se="\\+"+ee,be="\\+"+ne,Ze="-"+K,Be="-"+ee,Ke="-"+ne,Ee=`\\\\[tbnrf\\\\"']`,Er=P+"{4}",ur="(\\\\u"+Er+"|\\\\U00(10|0"+P+")"+Er+")",or="'(([^\\x27\\x5C\\x0A\\x0D])|"+Ee+"|"+ur+")*'",Or='"(([^\\x22\\x5C\\x0A\\x0D])|'+Ee+"|"+ur+')*"',je={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+Ee+"|"+ur+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+Ee+"|"+ur+"))*"}};for(let Ge in je)je[Ge].COMPLETE=je[Ge].QUOTES+je[Ge].CONTENTS+je[Ge].QUOTES;var et={};for(let Ge in je)et[Ge]={complete:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].CONTENTS+je[Ge].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Ge,regex:new RegExp("^"+je[Ge].QUOTES),style:"string"}};let rt="[\\x20\\x09\\x0D\\x0A]",cr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",qe="("+rt+"|("+cr+"))*",Pe="\\("+qe+"\\)",Ir="\\["+qe+"\\]",Me=[{name:"WS",regex:new RegExp("^"+rt+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+cr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+Z),style:"atom"},{name:"VAR2",regex:new RegExp("^"+M),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+H),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+ne),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ee),style:"number"},{name:"INTEGER",regex:new RegExp("^"+K),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+be),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+Se),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+de),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Ke),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Be),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+Ze),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+or),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+Or),style:"string"},{name:"NIL",regex:new RegExp("^"+Pe),style:"punc"},{name:"ANON",regex:new RegExp("^"+Ir),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+V),style:"string"},{name:"PNAME_NS",regex:new RegExp("^"+O),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+J),style:"string-2"}];function Rr(Ge){var fe=[],Ar=m[Ge];if(Ar!=null)for(let mr in Ar)fe.push(mr.toString());else fe.push(Ge);return fe}function dr(Ge,fe){if(fe.pendingToken){let Le=fe.pendingToken;return fe.pendingToken=void 0,Ge.pos+=Le.string.length,Le.style}function Ar(){let Le;if(fe.inLiteral){var sr=!1;if(Le=Ge.match(et[fe.inLiteral].contents.regex,!0,!1),Le&&Le[0].length==0&&(Le=Ge.match(et[fe.inLiteral].closing.regex,!0,!1),sr=!0),Le&&Le[0].length>0){let nr={quotePos:sr?"end":"content",cat:je[fe.inLiteral].CAT,style:et[fe.inLiteral].complete.style,string:Le[0],start:Ge.start};return sr&&(fe.inLiteral=void 0),nr}}for(let nr in et)if(Le=Ge.match(et[nr].quotes.regex,!0,!1),Le){var pt;return fe.inLiteral?(fe.inLiteral=void 0,pt="end"):(fe.inLiteral=nr,pt="start"),{cat:je[nr].CAT,style:et[nr].quotes.style,string:Le[0],quotePos:pt,start:Ge.start}}for(var dt=0;dt<Me.length;++dt)if(Le=Ge.match(Me[dt].regex,!0,!1),Le){if(Me[dt].name==="PNAME_LN"){let nr=Le[0],Wr=nr.indexOf(":");if(Wr>=0){let vt=nr.substring(0,Wr+1),Bt=nr.substring(Wr+1);if(Bt.length>0)return fe.pendingToken={cat:"PNAME_LN_LOCAL",style:"string",string:Bt,start:Ge.start+vt.length,quotePos:void 0},Ge.pos=Ge.start+vt.length,{cat:"PNAME_LN_PREFIX",style:"string-2",string:vt,start:Ge.start,quotePos:void 0}}}return{cat:Me[dt].name,style:Me[dt].style,string:Le[0],start:Ge.start,quotePos:void 0}}if(Le=Ge.match(fx,!0,!1),Le)return{cat:Ge.current().toUpperCase(),style:"keyword",string:Le[0],start:Ge.start,quotePos:void 0};if(Le=Ge.match(cx,!0,!1),Le){let nr=Le[0],Wr="punc";if(nr==="{")fe.bracketStack.push({type:nr,level:fe.bracketLevel}),Wr="bracket bracket-level-"+fe.bracketLevel%4,fe.bracketLevel++;else if(nr==="}")if(fe.bracketStack.length>0){let vt=fe.bracketStack.pop();vt&&(fe.bracketLevel=vt.level,Wr="bracket bracket-level-"+vt.level%4)}else Wr="bracket bracket-mismatch";else(nr==="["||nr==="("||nr==="]"||nr===")")&&(Wr="bracket bracket-paren");return{cat:Ge.current(),style:Wr,string:Le[0],start:Ge.start,quotePos:void 0}}return Le=Ge.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Le[0],start:Ge.start,quotePos:void 0}}function mr(){let Le=Ge.column();fe.errorStartPos=Le,fe.errorEndPos=Le+xe.string.length}function Ue(Le){if(fe.queryType==null)switch(Le){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":fe.queryType=Le}}function Vr(Le){switch(Le==="prefixDecl"?fe.inPrefixDecl=!0:fe.inPrefixDecl=!1,Le){case"disallowVars":fe.allowVars=!1;break;case"allowVars":fe.allowVars=!0;break;case"disallowBnodes":fe.allowBnodes=!1;break;case"allowBnodes":fe.allowBnodes=!0;break;case"storeProperty":fe.storeProperty=!0;break;case"constructTemplate":fe.inConstructTemplate=!0;break;case"whereClause":fe.inConstructTemplate=!1,fe.seenWhereClause=!0;break}}function ii(Le){return(fe.allowVars||Le!="var")&&(fe.allowBnodes||Le!="blankNode"&&Le!="blankNodePropertyList"&&Le!="blankNodePropertyListPath")}Ge.pos==0&&(fe.possibleCurrent=fe.possibleNext);let xe=Ar();if(xe.cat==="PNAME_LN_LOCAL")return fe.possibleCurrent=fe.possibleNext,xe.style;if(xe.cat=="<invalid_token>")return fe.OK==!0&&(fe.OK=!1,mr()),fe.complete=!1,xe.style;if(xe.cat==="WS"||xe.cat==="COMMENT"||xe.quotePos&&xe.quotePos!="end")return fe.possibleCurrent=fe.possibleNext,fe.possibleFullIri=!1,xe.style;var Ft=!1,gt;let Et=xe.cat==="PNAME_LN_PREFIX"?"PNAME_LN":xe.cat;if(fe.possibleFullIri&&xe.string===">"&&(fe.possibleFullIri=!1),!fe.possibleFullIri&&xe.string==="<"&&(fe.possibleFullIri=!0),!xe.quotePos||xe.quotePos=="end")for(;fe.stack.length>0&&Et&&fe.OK&&!Ft;)if(gt=fe.stack.pop(),gt==="var"&&xe.string&&(fe.variables[xe.string]=xe.string,fe.queryType==="CONSTRUCT"&&(fe.inConstructTemplate?fe.constructVariables[xe.string]=xe.string:fe.seenWhereClause&&(fe.whereVariables[xe.string]=xe.string))),m[gt]){let Le=m[gt][Et];if(Le!=null&&ii(gt)){for(var mt=Le.length-1;mt>=0;--mt)fe.stack.push(Le[mt]);Vr(gt)}else fe.OK=!1,fe.complete=!1,mr(),fe.stack.push(gt)}else if(gt==Et){fe.inPrefixDecl&&(gt==="PNAME_NS"&&xe.string.length>0?fe.currentPnameNs=xe.string.slice(0,-1):typeof fe.currentPnameNs=="string"&&xe.string.length>1&&(fe.prefixes[fe.currentPnameNs]=xe.string.slice(1,-1),fe.currentPnameNs=void 0)),Ft=!0,Ue(gt);for(var ts=!0,De=fe.stack.length;De>0;--De){let Le=m[fe.stack[De-1]];(!Le||!Le.$)&&(ts=!1)}if(fe.complete=ts,fe.storeProperty&&Et!="punc"?(fe.lastProperty=xe.string,fe.lastPropertyIndex=xe.start,fe.storeProperty=!1):(Et==="."||Et===";")&&(fe.lastProperty="",fe.lastPropertyIndex=0),!fe.inPrefixDecl&&(Et==="PNAME_NS"||Et==="PNAME_LN"||Et==="PNAME_LN_PREFIX")){let Le=xe.string.indexOf(":");if(Le>=0){let sr=xe.string.slice(0,Le);fe.prefixes[sr]===void 0&&(fe.OK=!1,mr(),fe.errorMsg="Prefix '"+sr+"' is not defined")}}}else fe.OK=!1,fe.complete=!1,mr();if(!Ft&&fe.OK&&(fe.OK=!1,fe.complete=!1,mr()),fe.possibleNext.indexOf("a")>=0){let Le=Ge.string;for(let sr=xe.start;sr>=0;sr--)if(Le[sr-1]!==" "){Le[sr-1]==="|"||Le[sr-1]==="/"||xe.style==="punc"||(fe.lastPredicateOffset=xe.start);break}}return fe.possibleCurrent=fe.possibleNext,fe.possibleNext=Rr(fe.stack[fe.stack.length-1]),xe.style}let Hr={"*[,, 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},Cr={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function ti(Ge,fe){if(Ge.inLiteral)return 0;if(Ge.lastPredicateOffset!==void 0&&Ge.stack.length&&Ge.stack[Ge.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Ge.lastPredicateOffset;var Ar=0,mr=Ge.stack.length-1;if(/^[\}\]\)]/.test(fe)){let Ue=fe.substr(0,1);for(;mr>=0;--mr)if(Ge.stack[mr]==Ue){--mr;break}}else{let Ue=Hr[Ge.stack[mr]];Ue&&(Ar+=Ue,--mr)}for(;mr>=0;--mr){let Ue=Cr[Ge.stack[mr]];Ue&&(Ar+=Ue)}return Ar*(i.indentUnit??2)}return{token:dr,startState:function(){return{tokenize:dr,OK:!0,complete:px,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:Rr(mh),possibleNext:Rr(mh),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[mh],lastPredicateOffset:i.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1,inConstructTemplate:!1,seenWhereClause:!1,constructVariables:{},whereVariables:{},pendingToken:void 0,bracketStack:[],bracketLevel:0}},indent:ti,electricChars:"}])"}}var DZ=jt(Om()),QZ=jt(vx()),kZ=jt(xx()),XZ=jt(Nx()),PZ=jt(yx()),YZ=jt(Vm()),HZ=jt(Zx()),JZ=jt(Qx()),_Z=jt(Px());vh.default.registerHelper("fold","prefix",ev);vh.default.defineMode("sparql11",dx);var b1=vh.default,Ta=b1;function A1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function ql(i,m,e,A){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,ql.prototype),R.expected=m,R.found=e,R.location=A,R.name="SyntaxError",R}A1(ql,Error);function Wm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}ql.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,A;for(A=0;A<i.length;A++)if(i[A].source===this.location.source){e=i[A].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,F=this.location.source+":"+L.line+":"+L.column;if(e){var Z=this.location.end,M=Wm("",L.line.toString().length," "),Y=e[R.line-1],P=R.line===Z.line?Z.column:Y.length+1,D=P-R.column||1;m+=`
60
+ }`,group:"Patterns"}],showSnippetsBar:!0},requestConfig:{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,basicAuth:void 0,bearerAuth:void 0,apiKeyAuth:void 0,oauth2Auth:void 0}}}var vh=jt(ni());var ux={"*[&&,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"]}},fx=/^(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,cx=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,mh="sparql11",px=!0;function dx(i){let m=ux,e='<[^<>"`|{}^\\\0- ]*>',A="[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]",R=A+"|_",L="("+R+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",F="("+R+"|[0-9])("+R+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",Z="\\?"+F,M="\\$"+F,Y="("+A+")((("+L+")|\\.)*("+L+"))?",X="[0-9A-Fa-f]",W="("+("(%"+X+X+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",K="("+R+"|:|[0-9]|"+W+")(("+L+"|\\.|:|"+W+")*("+L+"|:|"+W+"))?",J="_:("+R+"|[0-9])(("+L+"|\\.)*"+L+")?",O="("+Y+")?:",V=O+K,H="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",$="[eE][\\+-]?[0-9]+",q="[0-9]+",ee="[0-9]*\\.[0-9]+",ne="(([0-9]+\\.[0-9]*"+$+")|(\\.[0-9]+"+$+")|([0-9]+"+$+"))",de="\\+"+q,Se="\\+"+ee,be="\\+"+ne,Ze="-"+q,Be="-"+ee,Ke="-"+ne,Ee=`\\\\[tbnrf\\\\"']`,Er=X+"{4}",ur="(\\\\u"+Er+"|\\\\U00(10|0"+X+")"+Er+")",or="'(([^\\x27\\x5C\\x0A\\x0D])|"+Ee+"|"+ur+")*'",Or='"(([^\\x22\\x5C\\x0A\\x0D])|'+Ee+"|"+ur+')*"',je={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+Ee+"|"+ur+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+Ee+"|"+ur+"))*"}};for(let Ge in je)je[Ge].COMPLETE=je[Ge].QUOTES+je[Ge].CONTENTS+je[Ge].QUOTES;var et={};for(let Ge in je)et[Ge]={complete:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].CONTENTS+je[Ge].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Ge,regex:new RegExp("^"+je[Ge].QUOTES),style:"string"}};let rt="[\\x20\\x09\\x0D\\x0A]",cr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",qe="("+rt+"|("+cr+"))*",Pe="\\("+qe+"\\)",Ir="\\["+qe+"\\]",Me=[{name:"WS",regex:new RegExp("^"+rt+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+cr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+Z),style:"atom"},{name:"VAR2",regex:new RegExp("^"+M),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+H),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+ne),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ee),style:"number"},{name:"INTEGER",regex:new RegExp("^"+q),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+be),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+Se),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+de),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Ke),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Be),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+Ze),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+or),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+Or),style:"string"},{name:"NIL",regex:new RegExp("^"+Pe),style:"punc"},{name:"ANON",regex:new RegExp("^"+Ir),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+V),style:"string"},{name:"PNAME_NS",regex:new RegExp("^"+O),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+J),style:"string-2"}];function Rr(Ge){var fe=[],Ar=m[Ge];if(Ar!=null)for(let mr in Ar)fe.push(mr.toString());else fe.push(Ge);return fe}function dr(Ge,fe){if(fe.pendingToken){let Le=fe.pendingToken;return fe.pendingToken=void 0,Ge.pos+=Le.string.length,Le.style}function Ar(){let Le;if(fe.inLiteral){var sr=!1;if(Le=Ge.match(et[fe.inLiteral].contents.regex,!0,!1),Le&&Le[0].length==0&&(Le=Ge.match(et[fe.inLiteral].closing.regex,!0,!1),sr=!0),Le&&Le[0].length>0){let nr={quotePos:sr?"end":"content",cat:je[fe.inLiteral].CAT,style:et[fe.inLiteral].complete.style,string:Le[0],start:Ge.start};return sr&&(fe.inLiteral=void 0),nr}}for(let nr in et)if(Le=Ge.match(et[nr].quotes.regex,!0,!1),Le){var pt;return fe.inLiteral?(fe.inLiteral=void 0,pt="end"):(fe.inLiteral=nr,pt="start"),{cat:je[nr].CAT,style:et[nr].quotes.style,string:Le[0],quotePos:pt,start:Ge.start}}for(var dt=0;dt<Me.length;++dt)if(Le=Ge.match(Me[dt].regex,!0,!1),Le){if(Me[dt].name==="PNAME_LN"){let nr=Le[0],Wr=nr.indexOf(":");if(Wr>=0){let vt=nr.substring(0,Wr+1),Bt=nr.substring(Wr+1);if(Bt.length>0)return fe.pendingToken={cat:"PNAME_LN_LOCAL",style:"string",string:Bt,start:Ge.start+vt.length,quotePos:void 0},Ge.pos=Ge.start+vt.length,{cat:"PNAME_LN_PREFIX",style:"string-2",string:vt,start:Ge.start,quotePos:void 0}}}return{cat:Me[dt].name,style:Me[dt].style,string:Le[0],start:Ge.start,quotePos:void 0}}if(Le=Ge.match(fx,!0,!1),Le)return{cat:Ge.current().toUpperCase(),style:"keyword",string:Le[0],start:Ge.start,quotePos:void 0};if(Le=Ge.match(cx,!0,!1),Le){let nr=Le[0],Wr="punc";if(nr==="{")fe.bracketStack.push({type:nr,level:fe.bracketLevel}),Wr="bracket bracket-level-"+fe.bracketLevel%4,fe.bracketLevel++;else if(nr==="}")if(fe.bracketStack.length>0){let vt=fe.bracketStack.pop();vt&&(fe.bracketLevel=vt.level,Wr="bracket bracket-level-"+vt.level%4)}else Wr="bracket bracket-mismatch";else(nr==="["||nr==="("||nr==="]"||nr===")")&&(Wr="bracket bracket-paren");return{cat:Ge.current(),style:Wr,string:Le[0],start:Ge.start,quotePos:void 0}}return Le=Ge.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Le[0],start:Ge.start,quotePos:void 0}}function mr(){let Le=Ge.column();fe.errorStartPos=Le,fe.errorEndPos=Le+xe.string.length}function Ue(Le){if(fe.queryType==null)switch(Le){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":fe.queryType=Le}}function Vr(Le){switch(Le==="prefixDecl"?fe.inPrefixDecl=!0:fe.inPrefixDecl=!1,Le){case"disallowVars":fe.allowVars=!1;break;case"allowVars":fe.allowVars=!0;break;case"disallowBnodes":fe.allowBnodes=!1;break;case"allowBnodes":fe.allowBnodes=!0;break;case"storeProperty":fe.storeProperty=!0;break;case"constructTemplate":fe.inConstructTemplate=!0;break;case"whereClause":fe.inConstructTemplate=!1,fe.seenWhereClause=!0;break}}function ii(Le){return(fe.allowVars||Le!="var")&&(fe.allowBnodes||Le!="blankNode"&&Le!="blankNodePropertyList"&&Le!="blankNodePropertyListPath")}Ge.pos==0&&(fe.possibleCurrent=fe.possibleNext);let xe=Ar();if(xe.cat==="PNAME_LN_LOCAL")return fe.possibleCurrent=fe.possibleNext,xe.style;if(xe.cat=="<invalid_token>")return fe.OK==!0&&(fe.OK=!1,mr()),fe.complete=!1,xe.style;if(xe.cat==="WS"||xe.cat==="COMMENT"||xe.quotePos&&xe.quotePos!="end")return fe.possibleCurrent=fe.possibleNext,fe.possibleFullIri=!1,xe.style;var Ft=!1,gt;let Et=xe.cat==="PNAME_LN_PREFIX"?"PNAME_LN":xe.cat;if(fe.possibleFullIri&&xe.string===">"&&(fe.possibleFullIri=!1),!fe.possibleFullIri&&xe.string==="<"&&(fe.possibleFullIri=!0),!xe.quotePos||xe.quotePos=="end")for(;fe.stack.length>0&&Et&&fe.OK&&!Ft;)if(gt=fe.stack.pop(),gt==="var"&&xe.string&&(fe.variables[xe.string]=xe.string,fe.queryType==="CONSTRUCT"&&(fe.inConstructTemplate?fe.constructVariables[xe.string]=xe.string:fe.seenWhereClause&&(fe.whereVariables[xe.string]=xe.string))),m[gt]){let Le=m[gt][Et];if(Le!=null&&ii(gt)){for(var mt=Le.length-1;mt>=0;--mt)fe.stack.push(Le[mt]);Vr(gt)}else fe.OK=!1,fe.complete=!1,mr(),fe.stack.push(gt)}else if(gt==Et){fe.inPrefixDecl&&(gt==="PNAME_NS"&&xe.string.length>0?fe.currentPnameNs=xe.string.slice(0,-1):typeof fe.currentPnameNs=="string"&&xe.string.length>1&&(fe.prefixes[fe.currentPnameNs]=xe.string.slice(1,-1),fe.currentPnameNs=void 0)),Ft=!0,Ue(gt);for(var ts=!0,De=fe.stack.length;De>0;--De){let Le=m[fe.stack[De-1]];(!Le||!Le.$)&&(ts=!1)}if(fe.complete=ts,fe.storeProperty&&Et!="punc"?(fe.lastProperty=xe.string,fe.lastPropertyIndex=xe.start,fe.storeProperty=!1):(Et==="."||Et===";")&&(fe.lastProperty="",fe.lastPropertyIndex=0),!fe.inPrefixDecl&&(Et==="PNAME_NS"||Et==="PNAME_LN"||Et==="PNAME_LN_PREFIX")){let Le=xe.string.indexOf(":");if(Le>=0){let sr=xe.string.slice(0,Le);fe.prefixes[sr]===void 0&&(fe.OK=!1,mr(),fe.errorMsg="Prefix '"+sr+"' is not defined")}}}else fe.OK=!1,fe.complete=!1,mr();if(!Ft&&fe.OK&&(fe.OK=!1,fe.complete=!1,mr()),fe.possibleNext.indexOf("a")>=0){let Le=Ge.string;for(let sr=xe.start;sr>=0;sr--)if(Le[sr-1]!==" "){Le[sr-1]==="|"||Le[sr-1]==="/"||xe.style==="punc"||(fe.lastPredicateOffset=xe.start);break}}return fe.possibleCurrent=fe.possibleNext,fe.possibleNext=Rr(fe.stack[fe.stack.length-1]),xe.style}let Hr={"*[,, 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},Cr={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function ti(Ge,fe){if(Ge.inLiteral)return 0;if(Ge.lastPredicateOffset!==void 0&&Ge.stack.length&&Ge.stack[Ge.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Ge.lastPredicateOffset;var Ar=0,mr=Ge.stack.length-1;if(/^[\}\]\)]/.test(fe)){let Ue=fe.substr(0,1);for(;mr>=0;--mr)if(Ge.stack[mr]==Ue){--mr;break}}else{let Ue=Hr[Ge.stack[mr]];Ue&&(Ar+=Ue,--mr)}for(;mr>=0;--mr){let Ue=Cr[Ge.stack[mr]];Ue&&(Ar+=Ue)}return Ar*(i.indentUnit??2)}return{token:dr,startState:function(){return{tokenize:dr,OK:!0,complete:px,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:Rr(mh),possibleNext:Rr(mh),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[mh],lastPredicateOffset:i.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1,inConstructTemplate:!1,seenWhereClause:!1,constructVariables:{},whereVariables:{},pendingToken:void 0,bracketStack:[],bracketLevel:0}},indent:ti,electricChars:"}])"}}var DZ=jt(Om()),QZ=jt(vx()),kZ=jt(xx()),XZ=jt(Nx()),PZ=jt(yx()),YZ=jt(Vm()),HZ=jt(Zx()),JZ=jt(Qx()),_Z=jt(Px());vh.default.registerHelper("fold","prefix",ev);vh.default.defineMode("sparql11",dx);var b1=vh.default,Ta=b1;function A1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function ql(i,m,e,A){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,ql.prototype),R.expected=m,R.found=e,R.location=A,R.name="SyntaxError",R}A1(ql,Error);function Wm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}ql.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,A;for(A=0;A<i.length;A++)if(i[A].source===this.location.source){e=i[A].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,F=this.location.source+":"+L.line+":"+L.column;if(e){var Z=this.location.end,M=Wm("",L.line.toString().length," "),Y=e[R.line-1],X=R.line===Z.line?Z.column:Y.length+1,D=X-R.column||1;m+=`
61
61
  --> `+F+`
62
62
  `+M+` |
63
63
  `+L.line+" | "+Y+`
64
64
  `+M+" | "+Wm("",R.column-1," ")+Wm("",D,"^")}else m+=`
65
- at `+F}return m};ql.buildMessage=function(i,m){var e={literal:function(Y){return'"'+R(Y.text)+'"'},class:function(Y){var P=Y.parts.map(function(D){return Array.isArray(D)?L(D[0])+"-"+L(D[1]):L(D)});return"["+(Y.inverted?"^":"")+P.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(Y){return Y.description}};function A(Y){return Y.charCodeAt(0).toString(16).toUpperCase()}function R(Y){return Y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(P){return"\\x0"+A(P)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(P){return"\\x"+A(P)})}function L(Y){return Y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(P){return"\\x0"+A(P)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(P){return"\\x"+A(P)})}function F(Y){return e[Y.type](Y)}function Z(Y){var P=Y.map(F),D,z;if(P.sort(),P.length>0){for(D=1,z=1;D<P.length;D++)P[D-1]!==P[D]&&(P[z]=P[D],z++);P.length=z}switch(P.length){case 1:return P[0];case 2:return P[0]+" or "+P[1];default:return P.slice(0,-1).join(", ")+", or "+P[P.length-1]}}function M(Y){return Y?'"'+R(Y)+'"':"end of input"}return"Expected "+Z(i)+" but "+M(m)+" found."};function Gd(i,m){m=m!==void 0?m:{};var e={},A=m.grammarSource,R={DOCUMENT:Bp},L=Bp,F="base",Z="prefix",M="select",Y="distinct",P="reduced",D="(",z="as",W=")",$="*",J="construct",O="where",V="{",H="}",q="describe",K="ask",ee="from",ne="named",de="group",Se="by",be="having",Ze="order",Be="asc",Ke="desc",Ee="limit",Er="offset",ur="values",or=";",Or="load",je="silent",et="into",rt="clear",cr="drop",qe="create",Pe="add",Ir="to",Me="move",Rr="copy",dr="insert",Hr="data",Cr="delete",ti="with",Ge="using",fe="default",Ar="graph",mr="all",Ue=".",Vr="optional",ii="service",xe="bind",Ft="UNDEF",gt="minus",Et="union",ts="filter",De=",",mt="a",Le="|",sr="/",pt="^",dt="?",nr="+",Wr="!",vt="[",Bt="]",Lt="||",si="&&",Sr="=",Ot="!=",Oe="<",oi=">",Jr="<=",hr=">=",xr="in",is="not",ar="-",ss="str",It="lang",kr="langmatches",vi="datatype",Ns="bound",rn="iri",tn="uri",Oo="bnode",sn="rand",ya="abs",Xt="ceil",Bi="floor",nn="round",Vo="concat",Xn="strlen",on="ucase",ai="lcase",an="encode_for_uri",Oi="contains",Wo="strbefore",Zo="strstarts",ln="strends",Qe="strafter",re="year",me="month",we="day",Nr="hours",nt="minutes",rr="seconds",Ae="timezone",Ct="tz",Ii="now",Pt="uuid",Je="struuid",Ci="md5",ns="sha1",Sa="sha256",pe="sha384",ze="sha512",La="coalesce",wa="if",Mo="strlang",Do="strdt",ru="sameterm",$e="isuri",qf="isiri",tu="isblank",Qo="isliteral",xi="isnumeric",iu="regex",su="substr",Pn="replace",Yn="exists",nu="count",Ga="sum",ou="min",au="max",lu="avg",uu="sample",Kf="group_concat",ec="separator",ko="^^",Vi="true",rc="false",zt=":",un="_:",Ts="$",Ua="@",Wi="'",Rs='"',ys="'''",Zi="''",os='"""',Ss='""',Xo="\\",fn="#",cn="_",pn="%",Fa="~",fu="&",Po=/^[^<>"{}|\^`\\\0- ]/,_e=/^[0-9]/,Ba=/^[a-zA-Z]/,as=/^[a-zA-Z0-9]/,li=/^[eE]/,tc=/^[+\-]/,Oa=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Yo=/^[^'\\]/,bi=/^[^"\\]/,Va=/^[tbnrf\\"']/,Mi=/^[ \t]/,Ho=/^[\r\n]/,Wa=/^[^\r\n]/,dn=/^[A-Z]/,ic=/^[a-z]/,sc=/^[\xC0-\xD6]/,nc=/^[\xD8-\xF6]/,oc=/^[\xF8-\u02FF]/,cu=/^[\u0370-\u037D]/,pu=/^[\u037F-\u1FFF]/,ac=/^[\u200C-\u200D]/,lc=/^[\u2070-\u218F]/,uc=/^[\u2C00-\u2FEF]/,fc=/^[\u3001-\uD7FF]/,du=/^[\uF900-\uFDCF]/,cc=/^[\uFDF0-\uFFFD]/,hn=/^[\xB7]/,ls=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,pc=/^[A-F]/,dc=/^[a-f]/,hc=Q("BASE",!0),Jn=Q("PREFIX",!0),ot=Q("SELECT",!0),xt=Q("DISTINCT",!0),hu=Q("REDUCED",!0),le=Q("(",!1),Ls=Q("AS",!0),ue=Q(")",!1),_r=Q("*",!1),_n=Q("CONSTRUCT",!0),us=Q("WHERE",!0),Vt=Q("{",!1),Wt=Q("}",!1),gu=Q("DESCRIBE",!0),Eu=Q("ASK",!0),gc=Q("FROM",!0),Di=Q("NAMED",!0),Qi=Q("GROUP",!0),gn=Q("BY",!0),Za=Q("HAVING",!0),mu=Q("ORDER",!0),Ni=Q("ASC",!0),ws=Q("DESC",!0),Ma=Q("LIMIT",!0),Ec=Q("OFFSET",!0),Jo=Q("VALUES",!0),$t=Q(";",!1),vu=Q("LOAD",!0),bt=Q("SILENT",!0),En=Q("INTO",!0),Ti=Q("CLEAR",!0),Iu=Q("DROP",!0),Cu=Q("CREATE",!0),mc=Q("ADD",!0),jn=Q("TO",!0),vc=Q("MOVE",!0),xu=Q("COPY",!0),_o=Q("INSERT",!0),Gs=Q("DATA",!0),mn=Q("DELETE",!0),bu=Q("WITH",!0),Da=Q("USING",!0),vn=Q("DEFAULT",!0),fs=Q("GRAPH",!0),jo=Q("ALL",!0),er=Q(".",!1),Au=Q("OPTIONAL",!0),Qa=Q("SERVICE",!0),ka=Q("BIND",!0),Nu=Q("UNDEF",!1),Tu=Q("MINUS",!0),zn=Q("UNION",!0),Ic=Q("FILTER",!0),Ye=Q(",",!1),Us=Q("a",!1),qt=Q("|",!1),Xr=Q("/",!1),cs=Q("^",!1),Fs=Q("?",!1),At=Q("+",!1),In=Q("!",!1),Bs=Q("[",!1),ui=Q("]",!1),ki=Q("||",!1),Nt=Q("&&",!1),Yt=Q("=",!1),Ri=Q("!=",!1),ps=Q("<",!1),$n=Q(">",!1),zo=Q("<=",!1),Os=Q(">=",!1),ds=Q("IN",!0),Vs=Q("NOT",!0),Pr=Q("-",!1),Cc=Q("STR",!0),Xa=Q("LANG",!0),Ru=Q("LANGMATCHES",!0),Pa=Q("DATATYPE",!0),Ya=Q("BOUND",!0),Cn=Q("IRI",!0),$o=Q("URI",!0),yu=Q("BNODE",!0),qo=Q("RAND",!0),xc=Q("ABS",!0),bc=Q("CEIL",!0),Ac=Q("FLOOR",!0),Ha=Q("ROUND",!0),Ja=Q("CONCAT",!0),xn=Q("STRLEN",!0),qn=Q("UCASE",!0),Nc=Q("LCASE",!0),Ko=Q("ENCODE_FOR_URI",!0),Su=Q("CONTAINS",!0),Kn=Q("STRBEFORE",!0),Lu=Q("STRSTARTS",!0),Ws=Q("STRENDS",!0),eo=Q("STRAFTER",!0),Zs=Q("YEAR",!0),ro=Q("MONTH",!0),bn=Q("DAY",!0),wu=Q("HOURS",!0),Gu=Q("MINUTES",!0),Uu=Q("SECONDS",!0),Tc=Q("TIMEZONE",!0),Ms=Q("TZ",!0),Ds=Q("NOW",!0),Rc=Q("UUID",!0),yc=Q("STRUUID",!0),Sc=Q("MD5",!0),Lc=Q("SHA1",!0),wc=Q("SHA256",!0),Gc=Q("SHA384",!0),Ht=Q("SHA512",!0),at=Q("COALESCE",!0),wt=Q("IF",!0),lt=Q("STRLANG",!0),to=Q("STRDT",!0),Uc=Q("sameTerm",!0),ea=Q("isURI",!0),Fc=Q("isIRI",!0),Bc=Q("isBLANK",!0),Oc=Q("isLITERAL",!0),_a=Q("isNUMERIC",!0),Fu=Q("REGEX",!0),ja=Q("SUBSTR",!0),Vc=Q("REPLACE",!0),io=Q("EXISTS",!0),za=Q("COUNT",!0),Bu=Q("SUM",!0),Ou=Q("MIN",!0),$a=Q("MAX",!0),Vu=Q("AVG",!0),so=Q("SAMPLE",!0),Wc=Q("GROUP_CONCAT",!0),ra=Q("SEPARATOR",!0),Xi=Q("^^",!1),Wu=Q("true",!0),Zc=Q("false",!0),ta=Ve(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Lr=Q(":",!1),gr=Q("_:",!1),Xe=Ve([["0","9"]],!1,!1),yi=Q("$",!1),Si=Q("@",!1),ia=Ve([["a","z"],["A","Z"]],!1,!1),Pi=Ve([["a","z"],["A","Z"],["0","9"]],!1,!1),Zu=Ve(["e","E"],!1,!1),Mc=Ve(["+","-"],!1,!1),fi=Q("'",!1),Qs=Ve(["'","\\",`
65
+ at `+F}return m};ql.buildMessage=function(i,m){var e={literal:function(Y){return'"'+R(Y.text)+'"'},class:function(Y){var X=Y.parts.map(function(D){return Array.isArray(D)?L(D[0])+"-"+L(D[1]):L(D)});return"["+(Y.inverted?"^":"")+X.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(Y){return Y.description}};function A(Y){return Y.charCodeAt(0).toString(16).toUpperCase()}function R(Y){return Y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(X){return"\\x0"+A(X)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(X){return"\\x"+A(X)})}function L(Y){return Y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(X){return"\\x0"+A(X)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(X){return"\\x"+A(X)})}function F(Y){return e[Y.type](Y)}function Z(Y){var X=Y.map(F),D,z;if(X.sort(),X.length>0){for(D=1,z=1;D<X.length;D++)X[D-1]!==X[D]&&(X[z]=X[D],z++);X.length=z}switch(X.length){case 1:return X[0];case 2:return X[0]+" or "+X[1];default:return X.slice(0,-1).join(", ")+", or "+X[X.length-1]}}function M(Y){return Y?'"'+R(Y)+'"':"end of input"}return"Expected "+Z(i)+" but "+M(m)+" found."};function Gd(i,m){m=m!==void 0?m:{};var e={},A=m.grammarSource,R={DOCUMENT:Bp},L=Bp,F="base",Z="prefix",M="select",Y="distinct",X="reduced",D="(",z="as",W=")",K="*",J="construct",O="where",V="{",H="}",$="describe",q="ask",ee="from",ne="named",de="group",Se="by",be="having",Ze="order",Be="asc",Ke="desc",Ee="limit",Er="offset",ur="values",or=";",Or="load",je="silent",et="into",rt="clear",cr="drop",qe="create",Pe="add",Ir="to",Me="move",Rr="copy",dr="insert",Hr="data",Cr="delete",ti="with",Ge="using",fe="default",Ar="graph",mr="all",Ue=".",Vr="optional",ii="service",xe="bind",Ft="UNDEF",gt="minus",Et="union",ts="filter",De=",",mt="a",Le="|",sr="/",pt="^",dt="?",nr="+",Wr="!",vt="[",Bt="]",Lt="||",si="&&",Sr="=",Ot="!=",Oe="<",oi=">",Jr="<=",hr=">=",xr="in",is="not",ar="-",ss="str",It="lang",kr="langmatches",vi="datatype",Ns="bound",rn="iri",tn="uri",Oo="bnode",sn="rand",ya="abs",Xt="ceil",Bi="floor",nn="round",Vo="concat",Xn="strlen",on="ucase",ai="lcase",an="encode_for_uri",Oi="contains",Wo="strbefore",Zo="strstarts",ln="strends",Qe="strafter",re="year",me="month",we="day",Nr="hours",nt="minutes",rr="seconds",Ae="timezone",Ct="tz",Ii="now",Pt="uuid",Je="struuid",Ci="md5",ns="sha1",Sa="sha256",pe="sha384",ze="sha512",La="coalesce",wa="if",Mo="strlang",Do="strdt",ru="sameterm",$e="isuri",qf="isiri",tu="isblank",Qo="isliteral",xi="isnumeric",iu="regex",su="substr",Pn="replace",Yn="exists",nu="count",Ga="sum",ou="min",au="max",lu="avg",uu="sample",Kf="group_concat",ec="separator",ko="^^",Vi="true",rc="false",zt=":",un="_:",Ts="$",Ua="@",Wi="'",Rs='"',ys="'''",Zi="''",os='"""',Ss='""',Xo="\\",fn="#",cn="_",pn="%",Fa="~",fu="&",Po=/^[^<>"{}|\^`\\\0- ]/,_e=/^[0-9]/,Ba=/^[a-zA-Z]/,as=/^[a-zA-Z0-9]/,li=/^[eE]/,tc=/^[+\-]/,Oa=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Yo=/^[^'\\]/,bi=/^[^"\\]/,Va=/^[tbnrf\\"']/,Mi=/^[ \t]/,Ho=/^[\r\n]/,Wa=/^[^\r\n]/,dn=/^[A-Z]/,ic=/^[a-z]/,sc=/^[\xC0-\xD6]/,nc=/^[\xD8-\xF6]/,oc=/^[\xF8-\u02FF]/,cu=/^[\u0370-\u037D]/,pu=/^[\u037F-\u1FFF]/,ac=/^[\u200C-\u200D]/,lc=/^[\u2070-\u218F]/,uc=/^[\u2C00-\u2FEF]/,fc=/^[\u3001-\uD7FF]/,du=/^[\uF900-\uFDCF]/,cc=/^[\uFDF0-\uFFFD]/,hn=/^[\xB7]/,ls=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,pc=/^[A-F]/,dc=/^[a-f]/,hc=Q("BASE",!0),Jn=Q("PREFIX",!0),ot=Q("SELECT",!0),xt=Q("DISTINCT",!0),hu=Q("REDUCED",!0),le=Q("(",!1),Ls=Q("AS",!0),ue=Q(")",!1),_r=Q("*",!1),_n=Q("CONSTRUCT",!0),us=Q("WHERE",!0),Vt=Q("{",!1),Wt=Q("}",!1),gu=Q("DESCRIBE",!0),Eu=Q("ASK",!0),gc=Q("FROM",!0),Di=Q("NAMED",!0),Qi=Q("GROUP",!0),gn=Q("BY",!0),Za=Q("HAVING",!0),mu=Q("ORDER",!0),Ni=Q("ASC",!0),ws=Q("DESC",!0),Ma=Q("LIMIT",!0),Ec=Q("OFFSET",!0),Jo=Q("VALUES",!0),$t=Q(";",!1),vu=Q("LOAD",!0),bt=Q("SILENT",!0),En=Q("INTO",!0),Ti=Q("CLEAR",!0),Iu=Q("DROP",!0),Cu=Q("CREATE",!0),mc=Q("ADD",!0),jn=Q("TO",!0),vc=Q("MOVE",!0),xu=Q("COPY",!0),_o=Q("INSERT",!0),Gs=Q("DATA",!0),mn=Q("DELETE",!0),bu=Q("WITH",!0),Da=Q("USING",!0),vn=Q("DEFAULT",!0),fs=Q("GRAPH",!0),jo=Q("ALL",!0),er=Q(".",!1),Au=Q("OPTIONAL",!0),Qa=Q("SERVICE",!0),ka=Q("BIND",!0),Nu=Q("UNDEF",!1),Tu=Q("MINUS",!0),zn=Q("UNION",!0),Ic=Q("FILTER",!0),Ye=Q(",",!1),Us=Q("a",!1),qt=Q("|",!1),Xr=Q("/",!1),cs=Q("^",!1),Fs=Q("?",!1),At=Q("+",!1),In=Q("!",!1),Bs=Q("[",!1),ui=Q("]",!1),ki=Q("||",!1),Nt=Q("&&",!1),Yt=Q("=",!1),Ri=Q("!=",!1),ps=Q("<",!1),$n=Q(">",!1),zo=Q("<=",!1),Os=Q(">=",!1),ds=Q("IN",!0),Vs=Q("NOT",!0),Pr=Q("-",!1),Cc=Q("STR",!0),Xa=Q("LANG",!0),Ru=Q("LANGMATCHES",!0),Pa=Q("DATATYPE",!0),Ya=Q("BOUND",!0),Cn=Q("IRI",!0),$o=Q("URI",!0),yu=Q("BNODE",!0),qo=Q("RAND",!0),xc=Q("ABS",!0),bc=Q("CEIL",!0),Ac=Q("FLOOR",!0),Ha=Q("ROUND",!0),Ja=Q("CONCAT",!0),xn=Q("STRLEN",!0),qn=Q("UCASE",!0),Nc=Q("LCASE",!0),Ko=Q("ENCODE_FOR_URI",!0),Su=Q("CONTAINS",!0),Kn=Q("STRBEFORE",!0),Lu=Q("STRSTARTS",!0),Ws=Q("STRENDS",!0),eo=Q("STRAFTER",!0),Zs=Q("YEAR",!0),ro=Q("MONTH",!0),bn=Q("DAY",!0),wu=Q("HOURS",!0),Gu=Q("MINUTES",!0),Uu=Q("SECONDS",!0),Tc=Q("TIMEZONE",!0),Ms=Q("TZ",!0),Ds=Q("NOW",!0),Rc=Q("UUID",!0),yc=Q("STRUUID",!0),Sc=Q("MD5",!0),Lc=Q("SHA1",!0),wc=Q("SHA256",!0),Gc=Q("SHA384",!0),Ht=Q("SHA512",!0),at=Q("COALESCE",!0),wt=Q("IF",!0),lt=Q("STRLANG",!0),to=Q("STRDT",!0),Uc=Q("sameTerm",!0),ea=Q("isURI",!0),Fc=Q("isIRI",!0),Bc=Q("isBLANK",!0),Oc=Q("isLITERAL",!0),_a=Q("isNUMERIC",!0),Fu=Q("REGEX",!0),ja=Q("SUBSTR",!0),Vc=Q("REPLACE",!0),io=Q("EXISTS",!0),za=Q("COUNT",!0),Bu=Q("SUM",!0),Ou=Q("MIN",!0),$a=Q("MAX",!0),Vu=Q("AVG",!0),so=Q("SAMPLE",!0),Wc=Q("GROUP_CONCAT",!0),ra=Q("SEPARATOR",!0),Xi=Q("^^",!1),Wu=Q("true",!0),Zc=Q("false",!0),ta=Ve(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Lr=Q(":",!1),gr=Q("_:",!1),Xe=Ve([["0","9"]],!1,!1),yi=Q("$",!1),Si=Q("@",!1),ia=Ve([["a","z"],["A","Z"]],!1,!1),Pi=Ve([["a","z"],["A","Z"],["0","9"]],!1,!1),Zu=Ve(["e","E"],!1,!1),Mc=Ve(["+","-"],!1,!1),fi=Q("'",!1),Qs=Ve(["'","\\",`
66
66
  `,"\r"],!0,!1),hs=Q('"',!1),no=Ve(['"',"\\",`
67
67
  `,"\r"],!0,!1),Li=Q("'''",!1),sa=Q("''",!1),na=Ve(["'","\\"],!0,!1),qa=Q('"""',!1),An=Q('""',!1),oo=Ve(['"',"\\"],!0,!1),oa=Q("\\",!1),Dc=Ve(["t","b","n","r","f","\\",'"',"'"],!1,!1),Mu=Ve([" "," "],!1,!1),Qc=Ve(["\r",`
68
68
  `],!1,!1),kc=Ve(["\r",`
69
- `],!0,!1),gs=Q("#",!1),Du=Ve([["A","Z"]],!1,!1),Xc=Ve([["a","z"]],!1,!1),Pc=Ve([["\xC0","\xD6"]],!1,!1),Qu=Ve([["\xD8","\xF6"]],!1,!1),Nn=Ve([["\xF8","\u02FF"]],!1,!1),Ka=Ve([["\u0370","\u037D"]],!1,!1),aa=Ve([["\u037F","\u1FFF"]],!1,!1),ku=Ve([["\u200C","\u200D"]],!1,!1),el=Ve([["\u2070","\u218F"]],!1,!1),Xu=Ve([["\u2C00","\u2FEF"]],!1,!1),Yc=Ve([["\u3001","\uD7FF"]],!1,!1),Pu=Ve([["\uF900","\uFDCF"]],!1,!1),Tt=Ve([["\uFDF0","\uFFFD"]],!1,!1),Tn=Q("_",!1),Rn=Ve(["\xB7"],!1,!1),yn=Ve([["\u0300","\u036F"]],!1,!1),Sn=Ve([["\u203F","\u2040"]],!1,!1),Es=Q("%",!1),la=Ve([["A","F"]],!1,!1),Yu=Ve([["a","f"]],!1,!1),Hu=Q("~",!1),Ju=Q("&",!1),Ln=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(dd).map(([a,p])=>({pos:parseInt(a),text:p}));return o.length&&(u.comments=o),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},_u=function(n,t,u){let o={type:"Query"};return n&&(o.prologue=n),t.type==="SelectQuery"?o.selectQuery=t:t.type==="ConstructQuery"?o.constructQuery=t:t.type==="DescribeQuery"?o.describeQuery=t:t.type==="AskQuery"&&(o.askQuery=t),u&&(o.values=u),o},ua=function(n){if(n.length)return{type:"Prologue",decl:n}},ju=function(n){return{type:"BaseDecl",iriref:n}},ao=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Hc=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},wn=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:ye()};return o&&(a.values=o),a},zu=function(n,t){let u;t==="*"?u=["*"]:u=t.map(a=>a.length===2?a[1]:{expression:a[3],as:a[7]});let o={var:u};if(n){let a=n.toUpperCase();a==="DISTINCT"?o.distinct=!0:a==="REDUCED"&&(o.reduced=!0)}return o.location=ye(),o},$u=function(n,t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,template:n,where:u,...o,location:ye()},a},qu=function(n,t,u){let o={type:"ConstructQuery"};return n.length&&(o.from=n),o={...o,where:[t],...u,location:ye()},o},lo=function(n,t,u,o){let a={type:"DescribeQuery"};return t.length&&(a.from=t),a.describe=n,u&&(a.where=u),a={...a,...o,location:ye()},a},uo=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:ye()},o},fo=function(n){return n},co=function(n){return{graph:n,location:ye()}},Ku=function(n){return{namedGraph:n,location:ye()}},Jc=function(n){return n.graphPattern||n},ef=function(n,t,u,o){let a={};return n&&(a.group=n),t&&(a.having=t),u&&(a.orderBy=u),o&&(a.limitOffset=o),a},ms=function(n){return n},Gn=function(n){return n},po=function(n){return n},_c=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:ye()}:{bracketted:!0,...n}},rf=function(n){return n},jc=function(n){return n},zc=function(n){return n},$c=function(n){return n},Zt=function(n,t){let u={};return n.toUpperCase()==="ASC"?u={asc:!0,...t}:n.toUpperCase()==="DESC"&&(u={desc:!0,...t}),u},tf=function(n){return n},qc=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},Kc=function(n){return{limit:parseInt(n.literal)}},ep=function(n){return{offset:parseInt(n.literal)}},sf=function(n){return n?n[1]:null},nf=function(n,t){let u={type:"Update"};n&&(u.prologue=n);let o=[];return t&&(o=[t[1]],t[2]&&(o=o.concat(t[2][3].update))),u.update=o,u},of=function(n,t,u){let o={type:"load",silent:n,sourceGraph:t};return u&&(o.destinyGraph=u[2]),o},rp=function(n,t){return{type:"clear",silent:n,destinyGraph:t}},tp=function(n,t){return{type:"drop",silent:n,destinyGraph:t}},ip=function(n,t){return{type:"create",silent:n,destinyGraph:t}},vs=function(n,t,u){return{type:"add",silent:n,graphs:[t,u]}},ho=function(n,t,u){return{type:"move",silent:n,graphs:[t,u]}},fa=function(n,t,u){return{type:"copy",silent:n,graphs:[t,u]}},go=function(n){return{type:"insertdata",insert:n}},Yi=function(n){return{type:"deletedata",delete:n}},sp=function(n){return{type:"deletewhere",delete:n}},np=function(n,t,u,o){let a={type:"modify"};return n&&(a.with=n[2]),t.length===3?(a.delete=t[0],t[2]&&(a.insert=t[2])):a.insert=t,u.length&&(a.using=u),a.where=o.graphPattern,a},Un=function(n){return n},af=function(n){return n},lf=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},uf=function(){return"default"},ca=function(n){return n},Fn=function(n){return n},rl=function(n){return n},tl=function(){return"default"},il=function(){return"named"},op=function(){return"all"},Eo=function(n){return n},ff=function(n){return n},ap=function(n,t){let u=[];return n&&(u=u.concat(n)),t.forEach(o=>{u=u.concat(o[0]),o[2]&&(u=u.concat(o[2]))}),u},cf=function(n,t){return{graph:n,...t}},pa=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:ye()}},lp=function(n){return n},up=function(n,t){let u=[];return n&&u.push(n),t.forEach(o=>{u.push(o[0]),o[4]&&u.push(o[4])}),{graphPattern:u,location:ye()}},mo=function(n,t){let u=[];return t&&t[3]?u=[n].concat(t[3].triplePattern):u=[n],{type:"TriplesBlock",triplePattern:u,location:ye()}},pf=function(n){return{type:"OptionalGraphPattern",optional:n.graphPattern||n,location:ye()}},df=function(n,t){return{type:"GraphGraphPattern",graph:n,...t}},fp=function(n,t,u){let o={type:"ServiceGraphPattern",service:t,pattern:u.graphPattern||u};return n&&(o.silent=!0),o.location=ye(),o},sl=function(n,t){return{type:"Bind",bind:n,as:t,location:ye()}},hf=function(n){return n},cp=function(n,t){return{oneVar:n,data:t,location:ye()}},gf=function(n,t){return{variables:n,data:t,location:ye()}},Ef=function(n){return n},pp=function(n){return n},nl=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:ye()}},vo=function(n,t){return t.length?{union:[n,...t],location:ye()}:n},Io=function(n){return{type:"Filter",filter:n,location:ye()}},dp=function(n,t){return{functionRef:n,args:t.list,location:ye()}},mf=function(){return{list:[]}},hp=function(n,t,u){return{distinct:!!n,list:[t,...u]}},gp=function(){return[]},Ep=function(n,t){return[n,...t]},mp=function(n){return n},vf=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:ye()}},vp=function(n,t){return{subject:n,properties:t}},Ip=function(n,t){return{subject:n,properties:t}},If=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},ol=function(){return{a:!0,location:ye()}},Cf=function(n,t){return[n,...t]},Cp=function(n,t){return{subject:n,properties:t}},xf=function(n,t){return{subject:n,properties:t}},Bn=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},bf=function(n,t){return[n,...t]},da=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{alternative:u,location:ye()}}else return n},xp=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{sequence:u,location:ye()}}else return n},bp=function(n,t){return t&&(n.modifier=t),n},Ap=function(n){return n.inverse=!0,n},wr=function(){return{a:!0,location:ye()}},Np=function(n){return{bracketted:!0,...n}},al=function(n){return{collection:n,location:ye()}},Co=function(n){return{blankNodeProperties:n,location:ye()}},ci=function(n){return{collection:n,location:ye()}},ha=function(n){return{blankNodeProperties:n,location:ye()}},ll=function(n){return n},Af=function(n){return n},Nf=function(n){return n},Tf=function(n){return n},ul=function(n){return{...n,location:ye()}},Rf=function(n,t){return t.length?{expressionType:"conditionalor",operands:[n,...t]}:n},Tp=function(n,t){return t.length?{expressionType:"conditionaland",operands:[n,...t]}:n},fl=function(n,t){if(t.length){let u=n,o=t[0][1].toUpperCase(),a=t[0][3];return o==="NOT"&&(o+=" "+t[0][3].toUpperCase(),a=t[0][5]),{expressionType:"relationalexpression",operator:o,op1:u,op2:a}}else return n},yf=function(n,t){if(t.length===0)return n;let u=[];return t.forEach(o=>{o.length==4&&u.push({operator:o[1],expression:o[3]})}),{expressionType:"additiveexpression",op1:n,ops:u}},br=function(n,t){return t.length?{expressionType:"multiplicativeexpression",first:n,rest:t.map(u=>({operator:u[1],expression:u[3]}))}:n},Sf=function(n){return{expressionType:"unaryexpression",unaryexpression:"!",expression:n}},Rp=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},On=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},yp=function(n){return{expressionType:"atomic",value:n}},ga=function(n){return{expressionType:"atomic",value:n}},Sp=function(n){return{expressionType:"atomic",value:n}},Yr=function(n){return{expressionType:"atomic",value:n}},Lp=function(n){return{bracketted:!0,...n}},wp=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},Gp=function(n){return{expressionType:"builtincall",builtincall:"lang",args:[n]}},Ea=function(n,t){return{expressionType:"builtincall",builtincall:"langMatches",args:[n,t]}},s=function(n){return{expressionType:"builtincall",builtincall:"datatype",args:[n]}},l=function(n){return{expressionType:"builtincall",builtincall:"bound",args:[n]}},g=function(n){return{expressionType:"builtincall",builtincall:"IRI",args:[n]}},h=function(n){return{expressionType:"builtincall",builtincall:"URI",args:[n]}},v=function(n){let t={expressionType:"builtincall",builtincall:"BNODE",args:null};return n.length===5&&(t.args=[n[2]]),t},b=function(){return{expressionType:"builtincall",builtincall:"rand"}},N=function(n){return{expressionType:"builtincall",builtincall:"abs",args:[n]}},y=function(n){return{expressionType:"builtincall",builtincall:"ceil",args:[n]}},w=function(n){return{expressionType:"builtincall",builtincall:"floor",args:[n]}},G=function(n){return{expressionType:"builtincall",builtincall:"round",args:[n]}},k=function(n){return{expressionType:"builtincall",builtincall:"CONCAT",args:n}},_=function(n){return{expressionType:"builtincall",builtincall:"STRLEN",args:[n]}},ie=function(n){return{expressionType:"builtincall",builtincall:"UCASE",args:[n]}},te=function(n){return{expressionType:"builtincall",builtincall:"LCASE",args:[n]}},ae=function(n){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[n]}},ce=function(n,t){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[n,t]}},he=function(n,t){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[n,t]}},ve=function(n,t){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[n,t]}},Ce=function(n,t){return{expressionType:"builtincall",builtincall:"STRENDS",args:[n,t]}},Ie=function(n,t){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[n,t]}},Re=function(n){return{expressionType:"builtincall",builtincall:"year",args:[n]}},ke=function(n){return{expressionType:"builtincall",builtincall:"month",args:[n]}},We=function(n){return{expressionType:"builtincall",builtincall:"day",args:[n]}},tr=function(n){return{expressionType:"builtincall",builtincall:"hours",args:[n]}},Tr=function(n){return{expressionType:"builtincall",builtincall:"minutes",args:[n]}},ut=function(n){return{expressionType:"builtincall",builtincall:"seconds",args:[n]}},Ur=function(n){return{expressionType:"builtincall",builtincall:"timezone",args:[n]}},Jt=function(n){return{expressionType:"builtincall",builtincall:"tz",args:[n]}},Mt=function(){return{expressionType:"builtincall",builtincall:"now"}},jr=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ht=function(n){return{expressionType:"builtincall",builtincall:"MD5",args:[n]}},tt=function(n){return{expressionType:"builtincall",builtincall:"SHA1",args:[n]}},zr=function(n){return{expressionType:"builtincall",builtincall:"SHA256",args:[n]}},Zr=function(n){return{expressionType:"builtincall",builtincall:"SHA384",args:[n]}},Qt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Vn=function(n){return{expressionType:"builtincall",builtincall:"COALESCE",args:n}},Is=function(n,t,u){return{expressionType:"builtincall",builtincall:"IF",args:[n,t,u]}},Rt=function(n,t){return{expressionType:"builtincall",builtincall:"STRLANG",args:[n,t]}},wi=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},ft=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},cl=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Hi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},ks=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},Xs=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},Gt=function(n,t,u){let o={expressionType:"regex",text:n,pattern:t};return u&&(o.flags=u[2]),o},Wn=function(n,t,u){let o=[n,t];return u&&o.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:o}},pl=function(n,t,u,o){let a=[n,t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"replace",args:a}},Ah=function(n){return{exists:n.graphPattern||n}},Nh=function(n){return{notexists:n.graphPattern||n}},Th=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},Rh=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},yh=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},Sh=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},Lh=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},wh=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Gh=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},Uh=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Fh=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=ye(),n},Bh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Oh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Vh=function(n){return{type:"IRIref",iriref:n,location:ye()}},Wh=function(n){return n},Zh=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:ye()}},Mh=function(n){return{type:"PrefixedName",pn_prefix:n,location:ye()}},Dh=function(n){return{blankNode:n,location:ye()}},Qh=function(){return{blankNode:"[]",location:ye()}},kh=function(n){return n.join("")},Xh=function(n){return n||""},Ph=function(n,t){return{pn_prefix:n,pn_local:t}},Yh=function(){return $r()},Hh=function(n){return{type:"Var",varType:"VAR1",varname:n}},Jh=function(n){return{type:"Var",varType:"VAR2",varname:n}},_h=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},jh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:$r()}},zh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:$r()}},$h=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},qh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},Kh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},eg=function(n){return n.literal="+"+n.literal,n},rg=function(n){return n.literal="+"+n.literal,n},tg=function(n){return n.literal="+"+n.literal,n},ig=function(n){return n.literal="-"+n.literal,n},sg=function(n){return n.literal="-"+n.literal,n},ng=function(n){return n.literal="-"+n.literal,n},og=function(n){return{quote:"'",literal:n.join("")}},ag=function(n){return{quote:'"',literal:n.join("")}},lg=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},ug=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},fg=function(){return $r()},cg=function(){return $r()},pg=function(){return dd[ye().start.offset]=$r(),""},dg=function(){return $r()},hg=function(){return $r()},gg=function(){return $r()},r=0,U=0,xo=[{line:1,column:1}],yt=0,dl=[],x=0,bo;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function $r(){return i.substring(U,r)}function zx(){return U}function $x(){return{source:A,start:U,end:r}}function ye(){return Ps(U,r)}function qx(n,t){throw t=t!==void 0?t:Ps(U,r),Fp([mg(n)],i.substring(U,r),t)}function Kx(n,t){throw t=t!==void 0?t:Ps(U,r),vg(n,t)}function Q(n,t){return{type:"literal",text:n,ignoreCase:t}}function Ve(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function eb(){return{type:"any"}}function Eg(){return{type:"end"}}function mg(n){return{type:"other",description:n}}function Up(n){var t=xo[n],u;if(t)return t;for(u=n-1;!xo[u];)u--;for(t=xo[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return xo[n]=t,t}function Ps(n,t,u){var o=Up(n),a=Up(t),p={source:A,start:{offset:n,line:o.line,column:o.column},end:{offset:t,line:a.line,column:a.column}};return u&&A&&typeof A.offset=="function"&&(p.start=A.offset(p.start),p.end=A.offset(p.end)),p}function C(n){r<yt||(r>yt&&(yt=r,dl=[]),dl.push(n))}function vg(n,t){return new ql(n,null,null,t)}function Fp(n,t,u){return new ql(ql.buildMessage(n,t),n,t,u)}function Bp(){var n,t,u,o,a,p;for(n=r,t=[],u=ud();u!==e;)t.push(u),u=ud();for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Ig(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=Ln(t,o)}else r=n,n=e;return n}function Ig(){var n;return n=Cg(),n===e&&(n=Yp()),n}function Cg(){var n,t,u,o,a;for(n=r,t=Op(),u=[],o=c();o!==e;)u.push(o),o=c();return o=xg(),o===e&&(o=Ag(),o===e&&(o=Ng(),o===e&&(o=Tg()))),o!==e?(a=Pp(),U=n,n=_u(t,o,a)):(r=n,n=e),n}function Op(){var n,t,u;for(n=r,t=[],u=Vp(),u===e&&(u=Wp());u!==e;)t.push(u),u=Vp(),u===e&&(u=Wp());return U=n,t=ua(t),n=t,n}function Vp(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===F?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(hc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Fl(),a!==e?(U=n,n=ju(a)):(r=n,n=e)}else r=n,n=e;return n}function Wp(){var n,t,u,o,a,p,d;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===Z?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Jn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Bl(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Fl(),d!==e?(U=n,n=ao(a,d)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function xg(){var n,t,u,o,a,p,d,E;if(n=r,t=Zp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=St();a!==e;)o.push(a),a=St();for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ys(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Ji(),U=n,n=Hc(t,o,p,E)}else r=n,n=e}else r=n,n=e;return n}function bg(){var n,t,u,o,a,p,d;if(n=r,t=Zp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Ys(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Ji(),d=Pp(),U=n,n=wn(t,o,p,d)}else r=n,n=e}else r=n,n=e;return n}function Zp(){var n,t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te,Fe;if(n=r,i.substr(r,6).toLowerCase()===M?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(ot)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===Y?(o=i.substr(r,8),r+=8):(o=e,x===0&&C(xt)),o===e&&(i.substr(r,7).toLowerCase()===P?(o=i.substr(r,7),r+=7):(o=e,x===0&&C(hu))),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(I=pr(),I!==e?(E=[E,I],d=E):(r=d,d=e),d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===40?(I=D,r++):(I=e,x===0&&C(le)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();if(i.substr(r,2).toLowerCase()===z?(X=i.substr(r,2),r+=2):(X=e,x===0&&C(Ls)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=pr(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();i.charCodeAt(r)===41?(Fe=W,r++):(Fe=e,x===0&&C(ue)),Fe!==e?(E=[E,I,T,S,B,X,oe,ge,Te,Fe],d=E):(r=d,d=e)}else r=d,d=e}else r=d,d=e}else r=d,d=e}else r=d,d=e}if(d!==e)for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(I=pr(),I!==e?(E=[E,I],d=E):(r=d,d=e),d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===40?(I=D,r++):(I=e,x===0&&C(le)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();if(i.substr(r,2).toLowerCase()===z?(X=i.substr(r,2),r+=2):(X=e,x===0&&C(Ls)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=pr(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();i.charCodeAt(r)===41?(Fe=W,r++):(Fe=e,x===0&&C(ue)),Fe!==e?(E=[E,I,T,S,B,X,oe,ge,Te,Fe],d=E):(r=d,d=e)}else r=d,d=e}else r=d,d=e}else r=d,d=e}else r=d,d=e}}else p=e;p===e&&(i.charCodeAt(r)===42?(p=$,r++):(p=e,x===0&&C(_r))),p!==e?(U=n,n=zu(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Ag(){var n,t,u,o,a,p,d,E,I,T,S,B,X,oe;if(n=r,i.substr(r,9).toLowerCase()===J?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(_n)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=tE(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=St();d!==e;)p.push(d),d=St();for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=Ys(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=Ji(),U=n,n=$u(o,p,E,T)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,9).toLowerCase()===J?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(_n)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=St();a!==e;)o.push(a),a=St();for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===O?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(us)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,x===0&&C(Vt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();for(T=ji(),T===e&&(T=null),S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===125?(B=H,r++):(B=e,x===0&&C(Wt)),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();oe=Ji(),U=n,n=qu(o,T,oe)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Ng(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,8).toLowerCase()===q?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(gu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=$i(),a!==e)for(;a!==e;)o.push(a),a=$i();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=$,r++):(o=e,x===0&&C(_r))),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=St();d!==e;)p.push(d),d=St();for(d=[],E=c();E!==e;)d.push(E),E=c();for(E=Ys(),E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();T=Ji(),U=n,n=lo(o,p,E,T)}else r=n,n=e}else r=n,n=e;return n}function Tg(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,3).toLowerCase()===K?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Eu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=St();p!==e;)a.push(p),p=St();for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=Ys(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Ji(),U=n,n=uo(a,d,I)}else r=n,n=e}else r=n,n=e;return n}function St(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===ee?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rg(),o===e&&(o=yg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=fo(o)}else r=n,n=e}else r=n,n=e;return n}function Rg(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=vr(),u!==e?(U=n,n=co(u)):(r=n,n=e),n}function yg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ne?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Di)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=vr(),o!==e?(U=n,n=Ku(o)):(r=n,n=e)}else r=n,n=e;return n}function Ys(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===O?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(us)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();return o=ct(),o!==e?(U=n,n=Jc(o)):(r=n,n=e),n}function Ji(){var n,t,u,o,a;return n=r,t=Sg(),t===e&&(t=null),u=Lg(),u===e&&(u=null),o=wg(),o===e&&(o=null),a=Gg(),a===e&&(a=null),U=n,n=ef(t,u,o,a),n}function Sg(){var n,t,u,o,a,p,d;if(n=r,i.substr(r,5).toLowerCase()===de?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Qi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===Se?(o=i.substr(r,2),r+=2):(o=e,x===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Mp(),d!==e)for(;d!==e;)p.push(d),d=Mp();else p=e;p!==e?(U=n,n=ms(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Mp(){var n,t,u,o,a,p,d,E,I,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=yl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=Gn(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=rd(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=po(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=r,i.substr(r,2).toLowerCase()===z?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(Ls)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=pr(),T!==e?(E=[E,I,T],d=E):(r=d,d=e)}else r=d,d=e;for(d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();U=n,n=_c(a,d)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=pr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=rf(u)}else r=n,n=e}}}return n}function Lg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===be?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Za)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=Dp(),a!==e)for(;a!==e;)o.push(a),a=Dp();else o=e;o!==e?(U=n,n=jc(o)):(r=n,n=e)}else r=n,n=e;return n}function Dp(){var n,t,u,o;if(n=r,t=El(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();U=n,n=zc(t)}else r=n,n=e;return n}function wg(){var n,t,u,o,a,p,d,E;if(n=r,i.substr(r,5).toLowerCase()===Ze?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(mu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===Se?(o=i.substr(r,2),r+=2):(o=e,x===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Qp(),d!==e)for(;d!==e;)p.push(d),d=Qp();else p=e;if(p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();U=n,n=$c(p)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Qp(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===Be?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Ni)),t===e&&(i.substr(r,4).toLowerCase()===Ke?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(ws))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=Zt(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=El(),t===e&&(t=pr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();U=n,n=tf(t)}else r=n,n=e;return n}function Gg(){var n,t,u,o;return n=r,t=r,u=kp(),u!==e?(o=Xp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=Xp(),u!==e?(o=kp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(U=n,t=qc(t)),n=t,n}function kp(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===Ee?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ma)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=js(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=Kc(o)}else r=n,n=e}else r=n,n=e;return n}function Xp(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===Er?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Ec)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=js(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=ep(o)}else r=n,n=e}else r=n,n=e;return n}function Pp(){var n,t,u,o;return n=r,t=r,i.substr(r,6).toLowerCase()===ur?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Jo)),u!==e?(o=Kp(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),U=n,t=sf(t),n=t,n}function Yp(){var n,t,u,o,a,p,d,E,I,T;for(n=r,t=Op(),u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ug(),a!==e){for(p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=Yp(),d=[d,E,I,T],p=d}else r=p,p=e;p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;for(u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return U=n,n=nf(t,u),n}function Ug(){var n;return n=Fg(),n===e&&(n=Bg(),n===e&&(n=Og(),n===e&&(n=Wg(),n===e&&(n=Zg(),n===e&&(n=Mg(),n===e&&(n=Vg(),n===e&&(n=Dg(),n===e&&(n=Qg(),n===e&&(n=kg(),n===e&&(n=Xg())))))))))),n}function Fg(){var n,t,u,o,a,p,d,E,I,T,S;if(n=r,i.substr(r,4).toLowerCase()===Or?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(vu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=vr(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=r,i.substr(r,4).toLowerCase()===et?(I=i.substr(r,4),r+=4):(I=e,x===0&&C(En)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=hl(),S!==e?(I=[I,T,S],E=I):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),U=n,n=of(o,p,E)}else r=n,n=e}else r=n,n=e;return n}function Bg(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===rt?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ti)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=_p(),p!==e?(U=n,n=rp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Og(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===cr?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Iu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=_p(),p!==e?(U=n,n=tp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Vg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===qe?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Cu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=hl(),p!==e?(U=n,n=ip(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Wg(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,3).toLowerCase()===Pe?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(mc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=_i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===Ir?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(jn)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=_i(),T!==e?(U=n,n=vs(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zg(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,4).toLowerCase()===Me?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=_i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===Ir?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(jn)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=_i(),T!==e?(U=n,n=ho(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Mg(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,4).toLowerCase()===Rr?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(xu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=_i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===Ir?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(jn)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=_i(),T!==e?(U=n,n=fa(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Dg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===dr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(_o)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Hr?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(Gs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=jp(),p!==e?(U=n,n=go(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Qg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===Cr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.substr(r,4).toLowerCase()===Hr?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(Gs)),o!==e?(a=jp(),a!==e?(U=n,n=Yi(a)):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;return n}function kg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===Cr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===O?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=gl(),p!==e?(U=n,n=sp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Xg(){var n,t,u,o,a,p,d,E,I,T,S;if(n=r,t=r,i.substr(r,4).toLowerCase()===ti?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=vr(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();u=[u,o,a,p],t=u}else r=t,t=e}else r=t,t=e;if(t===e&&(t=null),u=r,o=Pg(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Hp(),p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;if(u===e&&(u=Hp()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=Jp();p!==e;)a.push(p),p=Jp();for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===O?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(us)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=ct(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();U=n,n=np(t,u,a,I)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Pg(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Cr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(mn)),t!==e?(u=gl(),u!==e?(U=n,n=Un(u)):(r=n,n=e)):(r=n,n=e),n}function Hp(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===dr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(_o)),t!==e?(u=gl(),u!==e?(U=n,n=af(u)):(r=n,n=e)):(r=n,n=e),n}function Jp(){var n,t,u,o,a,p,d,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Ge?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Da)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=vr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===ne?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(Di)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=vr(),E!==e?(p=[p,d,E],a=p):(r=a,a=e)}else r=a,a=e;a!==e?(U=n,n=lf(a)):(r=n,n=e)}else r=n,n=e;return n}function _i(){var n,t,u,o;if(n=r,i.substr(r,7).toLowerCase()===fe?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(vn)),t!==e&&(U=n,t=uf()),n=t,n===e){for(n=r,i.substr(r,5).toLowerCase()===Ar?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(fs)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();o=vr(),o!==e?(U=n,n=ca(o)):(r=n,n=e)}return n}function hl(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===Ar?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(fs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=vr(),o!==e?(U=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;return n}function _p(){var n,t;return n=r,t=hl(),t!==e&&(U=n,t=rl(t)),n=t,n===e&&(n=r,i.substr(r,7).toLowerCase()===fe?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(vn)),t!==e&&(U=n,t=tl()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ne?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Di)),t!==e&&(U=n,t=il()),n=t,n===e&&(n=r,i.substr(r,3).toLowerCase()===mr?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(jo)),t!==e&&(U=n,t=op()),n=t))),n}function gl(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=zp(),p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=Eo(a)}else r=n,n=e}else r=n,n=e;return n}function jp(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=zp(),p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=ff(a)}else r=n,n=e}else r=n,n=e;return n}function zp(){var n,t,u,o,a,p,d;for(n=r,t=ji(),t===e&&(t=null),u=[],o=r,a=$p(),a!==e?(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p===e&&(p=null),d=ji(),d===e&&(d=null),a=[a,p,d],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=$p(),a!==e?(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p===e&&(p=null),d=ji(),d===e&&(d=null),a=[a,p,d],o=a):(r=o,o=e);return U=n,n=ap(t,u),n}function $p(){var n,t,u,o,a,p,d,E,I,T,S,B,X;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$i(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===123?(d=V,r++):(d=e,x===0&&C(Vt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();for(I=ji(),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===125?(S=H,r++):(S=e,x===0&&C(Wt)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=n,n=cf(a,I)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function ji(){var n,t,u,o,a,p,d;if(n=r,t=sd(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=ji(),d===e&&(d=null),o=[o,a,p,d],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=pa(t,u)}else r=n,n=e;return n}function ct(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,x===0&&C(Vt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=bg(),o===e&&(o=Yg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=H,r++):(p=e,x===0&&C(Wt)),p!==e?(U=n,n=lp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Yg(){var n,t,u,o,a,p,d,E,I,T;for(n=r,t=Ao(),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=r,p=qp(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();for(i.charCodeAt(r)===46?(E=Ue,r++):(E=e,x===0&&C(er)),E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,d,E,I,T],a=p}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,p=qp(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();for(i.charCodeAt(r)===46?(E=Ue,r++):(E=e,x===0&&C(er)),E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,d,E,I,T],a=p}else r=a,a=e;return U=n,n=up(t,o),n}function Ao(){var n,t,u,o,a,p,d;if(n=r,t=sE(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Ao(),d===e&&(d=null),o=[o,a,p,d],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=mo(t,u)}else r=n,n=e;return n}function qp(){var n;return n=eE(),n===e&&(n=Hg(),n===e&&(n=Kg(),n===e&&(n=Jg(),n===e&&(n=_g(),n===e&&(n=rE(),n===e&&(n=jg(),n===e&&(n=zg()))))))),n}function Hg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,8).toLowerCase()===Vr?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Au)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ct(),a!==e?(U=n,n=pf(a)):(r=n,n=e)}else r=n,n=e;return n}function Jg(){var n,t,u,o,a,p,d;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$i(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=ct(),d!==e?(U=n,n=df(a,d)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function _g(){var n,t,u,o,a,p,d,E;if(n=r,i.substr(r,7).toLowerCase()===ii?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Qa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=$i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?(U=n,n=fp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function jg(){var n,t,u,o,a,p,d,E,I,T,S,B,X;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===xe?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(ka)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===z?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(Ls)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=pr(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=n,n=sl(d,S)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function zg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===ur?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Kp(),a!==e?(U=n,n=hf(a)):(r=n,n=e)}else r=n,n=e;return n}function Kp(){var n;return n=$g(),n===e&&(n=qg()),n}function $g(){var n,t,u,o,a,p,d,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=pr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===123?(a=V,r++):(a=e,x===0&&C(Vt)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=No();E!==e;)d.push(E),E=No();i.charCodeAt(r)===125?(E=H,r++):(E=e,x===0&&C(Wt)),E!==e?(U=n,n=cp(u,d)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function qg(){var n,t,u,o,a,p,d,E,I,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=pr();p!==e;)a.push(p),p=pr();if(i.charCodeAt(r)===41?(p=W,r++):(p=e,x===0&&C(ue)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,x===0&&C(Vt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();for(T=[],S=ed();S!==e;)T.push(S),S=ed();i.charCodeAt(r)===125?(S=H,r++):(S=e,x===0&&C(Wt)),S!==e?(U=n,n=gf(a,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function ed(){var n,t,u,o,a,p,d;if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=No();a!==e;)o.push(a),a=No();if(i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=n,n=Ef(o)}else r=n,n=e}else r=n,n=e;return n}function No(){var n,t,u,o;if(n=r,t=vr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(i.substr(r,5)===Ft?(t=Ft,r+=5):(t=e,x===0&&C(Nu)))))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();U=n,n=pp(t)}else r=n,n=e;return n}function Kg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===gt?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Tu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ct(),o!==e?(U=n,n=nl(o)):(r=n,n=e)}else r=n,n=e;return n}function eE(){var n,t,u,o,a,p,d,E;if(n=r,t=ct(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Et?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(zn)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Et?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(zn)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=vo(t,u)}else r=n,n=e;return n}function rE(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===ts?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ic)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=El(),a!==e?(U=n,n=Io(a)):(r=n,n=e)}else r=n,n=e;return n}function El(){var n;return n=Rl(),n===e&&(n=yl(),n===e&&(n=rd())),n}function rd(){var n,t,u,o;if(n=r,t=vr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=td(),o!==e?(U=n,n=dp(t,o)):(r=n,n=e)}else r=n,n=e;return n}function td(){var n,t,u,o,a,p,d,E,I,T,S,B;if(n=r,t=ei(),t!==e&&(U=n,t=mf()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===Y?(o=i.substr(r,8),r+=8):(o=e,x===0&&C(xt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=[],I=r,i.charCodeAt(r)===44?(T=De,r++):(T=e,x===0&&C(Ye)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=se(),B!==e?I=B:(r=I,I=e)}else r=I,I=e;for(;I!==e;)if(E.push(I),I=r,i.charCodeAt(r)===44?(T=De,r++):(T=e,x===0&&C(Ye)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=se(),B!==e?I=B:(r=I,I=e)}else r=I,I=e;i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=n,n=hp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function zi(){var n,t,u,o,a,p,d,E,I,T,S,B;if(n=r,t=ei(),t!==e&&(U=n,t=gp()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=r,i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();d=T}else r=d,d=e}else r=d,d=e;for(;d!==e;)if(p.push(d),d=r,i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();d=T}else r=d,d=e}else r=d,d=e;i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e?(U=n,n=Ep(o,p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function tE(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,x===0&&C(Vt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=id(),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=H,r++):(p=e,x===0&&C(Wt)),p!==e?(U=n,n=mp(o)):(r=n,n=e)}else r=n,n=e;return n}function id(){var n,t,u,o,a,p,d;if(n=r,t=sd(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=id(),d===e&&(d=null),o=[o,a,p,d],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=vf(t,u)}else r=n,n=e;return n}function sd(){var n,t,u,o,a;if(n=r,t=yo(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ml(),o!==e?(U=n,n=vp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=od(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=iE(),U=n,n=Ip(u,a)}else r=n,n=e}return n}function iE(){var n;return n=ml(),n===e&&(n=null),n}function ml(){var n,t,u,o,a,p,d,E,I,T,S,B,X;if(n=r,t=vl(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Il(),o!==e){for(a=[],p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=vl(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();X=Il(),X!==e?(S=[S,B,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=vl(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();X=Il(),X!==e?(S=[S,B,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e}U=n,n=If(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function vl(){var n,t;return n=$i(),n===e&&(n=r,i.charCodeAt(r)===97?(t=mt,r++):(t=e,x===0&&C(Us)),t!==e&&(U=n,t=ol()),n=t),n}function Il(){var n,t,u,o,a,p,d,E;if(n=r,t=Hs(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Cf(t,u)}else r=n,n=e;return n}function sE(){var n,t,u,o,a;if(n=r,t=yo(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=Cl(),o!==e?(U=n,n=Cp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=ad(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=nE(),U=n,n=xf(u,a)}else r=n,n=e}return n}function nE(){var n;return n=Cl(),n===e&&(n=null),n}function Cl(){var n,t,u,o,a,p,d,E,I,T,S,B,X;if(n=r,t=To(),t===e&&(t=pr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=xl(),o!==e){for(a=[],p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=To(),S===e&&(S=pr()),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();X=xl(),X!==e?(S=[S,B,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=To(),S===e&&(S=pr()),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();X=xl(),X!==e?(S=[S,B,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e}U=n,n=Bn(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function xl(){var n,t,u,o,a,p,d,E;if(n=r,t=Js(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Js(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Js(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=bf(t,u)}else r=n,n=e;return n}function To(){var n,t,u,o,a,p,d,E;if(n=r,t=bl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Le,r++):(p=e,x===0&&C(qt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=bl(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Le,r++):(p=e,x===0&&C(qt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=bl(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}U=n,n=da(t,u)}else r=n,n=e;return n}function bl(){var n,t,u,o,a,p,d,E;if(n=r,t=Al(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Al(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Al(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}U=n,n=xp(t,u)}else r=n,n=e;return n}function nd(){var n,t,u;return n=r,t=aE(),t!==e?(u=oE(),u===e&&(u=null),U=n,n=bp(t,u)):(r=n,n=e),n}function Al(){var n,t,u;return n=nd(),n===e&&(n=r,i.charCodeAt(r)===94?(t=pt,r++):(t=e,x===0&&C(cs)),t!==e?(u=nd(),u!==e?(U=n,n=Ap(u)):(r=n,n=e)):(r=n,n=e)),n}function oE(){var n;return i.charCodeAt(r)===63?(n=dt,r++):(n=e,x===0&&C(Fs)),n===e&&(i.charCodeAt(r)===42?(n=$,r++):(n=e,x===0&&C(_r)),n===e&&(i.charCodeAt(r)===43?(n=nr,r++):(n=e,x===0&&C(At)))),n}function aE(){var n,t,u,o;return n=vr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=mt,r++):(t=e,x===0&&C(Us)),t!==e&&(U=n,t=wr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=Wr,r++):(t=e,x===0&&C(In)),t!==e?(u=lE(),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e?(u=To(),u!==e?(i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o!==e?(U=n,n=Np(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function lE(){var n,t,u,o,a,p,d,E;if(n=Ro(),n===e)if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){if(u=r,o=Ro(),o!==e){for(a=[],p=r,i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e?(E=Ro(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e);p!==e;)a.push(p),p=r,i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e?(E=Ro(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e);o=[o,a],u=o}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function Ro(){var n,t,u;return n=vr(),n===e&&(i.charCodeAt(r)===97?(n=mt,r++):(n=e,x===0&&C(Us)),n===e&&(n=r,i.charCodeAt(r)===94?(t=pt,r++):(t=e,x===0&&C(cs)),t!==e?(u=vr(),u===e&&(i.charCodeAt(r)===97?(u=mt,r++):(u=e,x===0&&C(Us))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function od(){var n,t;return n=r,t=cE(),t!==e&&(U=n,t=al(t)),n=t,n===e&&(n=uE()),n}function uE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=vt,r++):(u=e,x===0&&C(Bs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ml(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===93?(d=Bt,r++):(d=e,x===0&&C(ui)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=Co(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function ad(){var n,t;return n=r,t=pE(),t!==e&&(U=n,t=ci(t)),n=t,n===e&&(n=fE()),n}function fE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=vt,r++):(u=e,x===0&&C(Bs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Cl(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===93?(d=Bt,r++):(d=e,x===0&&C(ui)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=ha(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function cE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Hs(),p!==e)for(;p!==e;)a.push(p),p=Hs();else a=e;if(a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=ll(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function pE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Js(),p!==e)for(;p!==e;)a.push(p),p=Js();else a=e;if(a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=Af(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Hs(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=yo(),u===e&&(u=od()),u!==e?(U=n,n=Nf(u)):(r=n,n=e),n}function Js(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=yo(),u===e&&(u=ad()),u!==e?(U=n,n=Tf(u)):(r=n,n=e),n}function yo(){var n;return n=pr(),n===e&&(n=dE()),n}function $i(){var n;return n=pr(),n===e&&(n=vr()),n}function pr(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=RE(),u===e&&(u=yE()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=ul(u)}else r=n,n=e;return n}function dE(){var n;return n=vr(),n===e&&(n=Sl(),n===e&&(n=Ll(),n===e&&(n=Ul(),n===e&&(n=AE(),n===e&&(n=ei()))))),n}function se(){var n,t,u,o,a,p,d,E;if(n=r,t=Nl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Lt?(p=Lt,r+=2):(p=e,x===0&&C(ki)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Lt?(p=Lt,r+=2):(p=e,x===0&&C(ki)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Rf(t,u)}else r=n,n=e;return n}function Nl(){var n,t,u,o,a,p,d,E;if(n=r,t=Tl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===si?(p=si,r+=2):(p=e,x===0&&C(Nt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===si?(p=si,r+=2):(p=e,x===0&&C(Nt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Tp(t,u)}else r=n,n=e;return n}function Tl(){var n,t,u,o,a,p,d,E,I,T;if(n=r,t=Mr(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Sr,r++):(p=e,x===0&&C(Yt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ot?(p=Ot,r+=2):(p=e,x===0&&C(Ri)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Oe,r++):(p=e,x===0&&C(ps)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=oi,r++):(p=e,x===0&&C($n)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Jr?(p=Jr,r+=2):(p=e,x===0&&C(zo)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===hr?(p=hr,r+=2):(p=e,x===0&&C(Os)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===xr?(p=i.substr(r,2),r+=2):(p=e,x===0&&C(ds)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=zi(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===is?(p=i.substr(r,3),r+=3):(p=e,x===0&&C(Vs)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===xr?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(ds)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=zi(),T!==e?(a=[a,p,d,E,I,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Sr,r++):(p=e,x===0&&C(Yt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ot?(p=Ot,r+=2):(p=e,x===0&&C(Ri)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Oe,r++):(p=e,x===0&&C(ps)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=oi,r++):(p=e,x===0&&C($n)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Jr?(p=Jr,r+=2):(p=e,x===0&&C(zo)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===hr?(p=hr,r+=2):(p=e,x===0&&C(Os)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===xr?(p=i.substr(r,2),r+=2):(p=e,x===0&&C(ds)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=zi(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===is?(p=i.substr(r,3),r+=3):(p=e,x===0&&C(Vs)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===xr?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(ds)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=zi(),T!==e?(a=[a,p,d,E,I,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}U=n,n=fl(t,u)}else r=n,n=e;return n}function Mr(){var n,t,u,o,a,p,d,E,I,T,S;if(n=r,t=_s(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=nr,r++):(p=e,x===0&&C(At)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Gl()),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=$,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=$,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}}a=[a,p],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=nr,r++):(p=e,x===0&&C(At)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Gl()),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=$,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=$,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}}a=[a,p],o=a}else r=o,o=e}}U=n,n=yf(t,u)}else r=n,n=e;return n}function _s(){var n,t,u,o,a,p,d,E;if(n=r,t=Dr(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=$,r++):(p=e,x===0&&C(_r)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=$,r++):(p=e,x===0&&C(_r)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}}U=n,n=br(t,u)}else r=n,n=e;return n}function Dr(){var n,t,u,o;if(n=r,i.charCodeAt(r)===33?(t=Wr,r++):(t=e,x===0&&C(In)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=So(),o!==e?(U=n,n=Sf(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=So(),o!==e?(U=n,n=Rp(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=So(),o!==e?(U=n,n=On(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=So())}}return n}function So(){var n,t;return n=Rl(),n===e&&(n=yl(),n===e&&(n=CE(),n===e&&(n=r,t=Sl(),t!==e&&(U=n,t=yp(t)),n=t,n===e&&(n=r,t=Ll(),t!==e&&(U=n,t=ga(t)),n=t,n===e&&(n=r,t=Ul(),t!==e&&(U=n,t=Sp(t)),n=t,n===e&&(n=r,t=pr(),t!==e&&(U=n,t=Yr(t)),n=t)))))),n}function Rl(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===41?(p=W,r++):(p=e,x===0&&C(ue)),p!==e?(U=n,n=Lp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function yl(){var n,t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te;if(n=IE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===ss?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Cc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=wp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===It?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Xa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Gp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,11).toLowerCase()===kr?(t=i.substr(r,11),r+=11):(t=e,x===0&&C(Ru)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Ea(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===vi?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Pa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=s(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Ns?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ya)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=pr(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=l(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===rn?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Cn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=g(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===tn?(t=i.substr(r,3),r+=3):(t=e,x===0&&C($o)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=h(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Oo?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(yu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=r,i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(a=[a,p,d,E,I],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e;o===e&&(o=ei()),o!==e?(U=n,n=v(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===sn?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(qo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=b()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ya?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(xc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=N(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Xt?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=y(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Bi?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ac)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=w(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===nn?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ha)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=G(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Vo?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(U=n,n=k(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=gE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===Xn?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(xn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=_(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=EE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===on?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(qn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ie(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===ai?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Nc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=te(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,14).toLowerCase()===an?(t=i.substr(r,14),r+=14):(t=e,x===0&&C(Ko)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ae(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Oi?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Su)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Wo?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(Kn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=he(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Zo?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(Lu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=ve(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ln?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Ws)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Qe?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(eo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Ie(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===re?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Zs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Re(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===me?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(ro)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ke(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===we?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(bn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=We(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Nr?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(wu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=tr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===nt?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Gu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Tr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===rr?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Uu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ut(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Ae?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Tc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Ur(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===Ct?(t=i.substr(r,2),r+=2):(t=e,x===0&&C(Ms)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Jt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ii?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Ds)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=Mt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Pt?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Rc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=jr()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Je?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(yc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=Dt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ci?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Sc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ht(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ns?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Lc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=tt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Sa?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=zr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===pe?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Zr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===ze?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Ht)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Qt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===La?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(at)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(U=n,n=Vn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===wa?(t=i.substr(r,2),r+=2):(t=e,x===0&&C(wt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===44?(B=De,r++):(B=e,x===0&&C(Ye)),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();if(oe=se(),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();i.charCodeAt(r)===41?(Te=W,r++):(Te=e,x===0&&C(ue)),Te!==e?(U=n,n=Is(p,T,oe)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Mo?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(lt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Rt(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Do?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(to)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=wi(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===ru?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Uc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=ft(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===$e?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(ea)),t===e&&(i.substr(r,5).toLowerCase()===qf?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Fc))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=cl(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===tu?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Hi(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Qo?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(Oc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ks(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===xi?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(_a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Xs(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=hE(),n===e&&(n=mE(),n===e&&(n=vE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function hE(){var n,t,u,o,a,p,d,E,I,T,S,B,X,oe,ge;if(n=r,i.substr(r,5).toLowerCase()===iu?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Fu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=r,i.charCodeAt(r)===44?(X=De,r++):(X=e,x===0&&C(Ye)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();ge=se(),ge!==e?(X=[X,oe,ge],B=X):(r=B,B=e)}else r=B,B=e;for(B===e&&(B=null),X=[],oe=c();oe!==e;)X.push(oe),oe=c();i.charCodeAt(r)===41?(oe=W,r++):(oe=e,x===0&&C(ue)),oe!==e?(U=n,n=Gt(p,T,B)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function gE(){var n,t,u,o,a,p,d,E,I,T,S,B,X,oe,ge;if(n=r,i.substr(r,6).toLowerCase()===su?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=r,i.charCodeAt(r)===44?(X=De,r++):(X=e,x===0&&C(Ye)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();ge=se(),ge!==e?(X=[X,oe,ge],B=X):(r=B,B=e)}else r=B,B=e;for(B===e&&(B=null),X=[],oe=c();oe!==e;)X.push(oe),oe=c();i.charCodeAt(r)===41?(oe=W,r++):(oe=e,x===0&&C(ue)),oe!==e?(U=n,n=Wn(p,T,B)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function EE(){var n,t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te,Fe,ir,_t;if(n=r,i.substr(r,7).toLowerCase()===Pn?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===44?(B=De,r++):(B=e,x===0&&C(Ye)),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();if(oe=se(),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(Te=r,i.charCodeAt(r)===44?(Fe=De,r++):(Fe=e,x===0&&C(Ye)),Fe!==e){for(ir=[],_t=c();_t!==e;)ir.push(_t),_t=c();_t=se(),_t!==e?(Fe=[Fe,ir,_t],Te=Fe):(r=Te,Te=e)}else r=Te,Te=e;for(Te===e&&(Te=null),Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();i.charCodeAt(r)===41?(ir=W,r++):(ir=e,x===0&&C(ue)),ir!==e?(U=n,n=pl(p,T,oe,Te)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function mE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===Yn?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(io)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ct(),o!==e?(U=n,n=Ah(o)):(r=n,n=e)}else r=n,n=e;return n}function vE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===is?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Vs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Yn?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(io)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ct(),p!==e?(U=n,n=Nh(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function IE(){var n,t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te,Fe;if(n=r,i.substr(r,5).toLowerCase()===nu?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(za)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===42?(E=$,r++):(E=e,x===0&&C(_r)),E===e&&(E=se()),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Th(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ga?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Rh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ou?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Ou)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=yh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===au?(t=i.substr(r,3),r+=3):(t=e,x===0&&C($a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Sh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===lu?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Vu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Lh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===uu?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(so)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=wh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,12).toLowerCase()===Kf?(t=i.substr(r,12),r+=12):(t=e,x===0&&C(Wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=r,T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===59?(S=or,r++):(S=e,x===0&&C($t)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();if(i.substr(r,9).toLowerCase()===ec?(X=i.substr(r,9),r+=9):(X=e,x===0&&C(ra)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(i.charCodeAt(r)===61?(ge=Sr,r++):(ge=e,x===0&&C(Yt)),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();Fe=ld(),Fe!==e?(T=[T,S,B,X,oe,ge,Te,Fe],I=T):(r=I,I=e)}else r=I,I=e}else r=I,I=e}else r=I,I=e;for(I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=n,n=Gh(p,E,I)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}}}}}return n}function CE(){var n,t,u,o;if(n=r,t=vr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=td(),o===e&&(o=null),U=n,n=Uh(t,o)}else r=n,n=e;return n}function Sl(){var n,t,u,o,a;return n=r,t=ld(),t!==e?(u=SE(),u===e&&(u=r,i.substr(r,2)===ko?(o=ko,r+=2):(o=e,x===0&&C(Xi)),o!==e?(a=vr(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),U=n,n=Fh(t,u)):(r=n,n=e),n}function Ll(){var n;return n=xE(),n===e&&(n=wl(),n===e&&(n=Gl())),n}function xE(){var n;return n=Vl(),n===e&&(n=Ol(),n===e&&(n=js())),n}function wl(){var n;return n=GE(),n===e&&(n=wE(),n===e&&(n=LE())),n}function Gl(){var n;return n=BE(),n===e&&(n=FE(),n===e&&(n=UE())),n}function Ul(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Vi?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Wu)),t!==e&&(U=n,t=Bh()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===rc?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Zc)),t!==e&&(U=n,t=Oh()),n=t),n}function ld(){var n;return n=WE(),n===e&&(n=ZE(),n===e&&(n=OE(),n===e&&(n=VE()))),n}function vr(){var n,t;return n=r,t=Fl(),t!==e&&(U=n,t=Vh(t)),n=t,n===e&&(n=r,t=bE(),t!==e&&(U=n,t=Wh(t)),n=t),n}function bE(){var n,t;return n=r,t=NE(),t!==e&&(U=n,t=Zh(t)),n=t,n===e&&(n=r,t=Bl(),t!==e&&(U=n,t=Mh(t)),n=t),n}function AE(){var n,t;return n=r,t=TE(),t!==e&&(U=n,t=Dh(t)),n=t,n===e&&(n=r,t=DE(),t!==e&&(U=n,t=Qh()),n=t),n}function Fl(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Oe,r++):(t=e,x===0&&C(ps)),t!==e){for(u=[],Po.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ta));o!==e;)u.push(o),Po.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ta));i.charCodeAt(r)===62?(o=oi,r++):(o=e,x===0&&C($n)),o!==e?(U=n,n=kh(u)):(r=n,n=e)}else r=n,n=e;return n}function Bl(){var n,t,u;return n=r,t=QE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=zt,r++):(u=e,x===0&&C(Lr)),u!==e?(U=n,n=Xh(t)):(r=n,n=e),n}function NE(){var n,t,u;return n=r,t=Bl(),t!==e?(u=kE(),u!==e?(U=n,n=Ph(t,u)):(r=n,n=e)):(r=n,n=e),n}function TE(){var n,t,u,o,a,p,d;if(n=r,i.substr(r,2)===un?(t=un,r+=2):(t=e,x===0&&C(gr)),t!==e)if(u=qi(),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe))),u!==e){for(o=[],a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));U=n,n=Yh()}else r=n,n=e;else r=n,n=e;return n}function RE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=dt,r++):(t=e,x===0&&C(Fs)),t!==e?(u=cd(),u!==e?(U=n,n=Hh(u)):(r=n,n=e)):(r=n,n=e),n}function yE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ts,r++):(t=e,x===0&&C(yi)),t!==e?(u=cd(),u!==e?(U=n,n=Jh(u)):(r=n,n=e)):(r=n,n=e),n}function SE(){var n,t,u,o,a,p,d,E;if(n=r,i.charCodeAt(r)===64?(t=Ua,r++):(t=e,x===0&&C(Si)),t!==e){if(u=[],Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ia)),o!==e)for(;o!==e;)u.push(o),Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ia));else u=e;if(u!==e){if(o=[],a=r,i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){if(d=[],as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi)),E!==e)for(;E!==e;)d.push(E),as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi));else d=e;d!==e?(p=[p,d],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){if(d=[],as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi)),E!==e)for(;E!==e;)d.push(E),as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi));else d=e;d!==e?(p=[p,d],a=p):(r=a,a=e)}else r=a,a=e;U=n,n=_h(u,o)}else r=n,n=e}else r=n,n=e;return n}function js(){var n,t,u;if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));else t=e;return t!==e&&(U=n,t=jh()),n=t,n}function Ol(){var n,t,u,o,a;for(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));if(i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u!==e){if(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));else o=e;o!==e?(U=n,n=zh()):(r=n,n=e)}else r=n,n=e;return n}function Vl(){var n,t,u,o,a;if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u!==e){for(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));a=Wl(),a!==e?(U=n,n=$h()):(r=n,n=e)}else r=n,n=e;else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===46?(t=Ue,r++):(t=e,x===0&&C(er)),t!==e){if(u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;u!==e?(o=Wl(),o!==e?(U=n,n=qh()):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));else t=e;t!==e?(u=Wl(),u!==e?(U=n,n=Kh()):(r=n,n=e)):(r=n,n=e)}}return n}function LE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e?(u=js(),u!==e?(U=n,n=eg(u)):(r=n,n=e)):(r=n,n=e),n}function wE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e?(u=Ol(),u!==e?(U=n,n=rg(u)):(r=n,n=e)):(r=n,n=e),n}function GE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e?(u=Vl(),u!==e?(U=n,n=tg(u)):(r=n,n=e)):(r=n,n=e),n}function UE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e?(u=js(),u!==e?(U=n,n=ig(u)):(r=n,n=e)):(r=n,n=e),n}function FE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e?(u=Ol(),u!==e?(U=n,n=sg(u)):(r=n,n=e)):(r=n,n=e),n}function BE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e?(u=Vl(),u!==e?(U=n,n=ng(u)):(r=n,n=e)):(r=n,n=e),n}function Wl(){var n,t,u,o,a;if(n=r,li.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Zu)),t!==e){if(tc.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Mc)),u===e&&(u=null),o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));else o=e;o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function OE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Wi,r++):(t=e,x===0&&C(fi)),t!==e){for(u=[],Oa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Qs)),o===e&&(o=Kt());o!==e;)u.push(o),Oa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Qs)),o===e&&(o=Kt());i.charCodeAt(r)===39?(o=Wi,r++):(o=e,x===0&&C(fi)),o!==e?(U=n,n=og(u)):(r=n,n=e)}else r=n,n=e;return n}function VE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===34?(t=Rs,r++):(t=e,x===0&&C(hs)),t!==e){for(u=[],Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(no)),o===e&&(o=Kt());o!==e;)u.push(o),Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(no)),o===e&&(o=Kt());i.charCodeAt(r)===34?(o=Rs,r++):(o=e,x===0&&C(hs)),o!==e?(U=n,n=ag(u)):(r=n,n=e)}else r=n,n=e;return n}function WE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ys?(t=ys,r+=3):(t=e,x===0&&C(Li)),t!==e){for(u=[],o=r,i.substr(r,2)===Zi?(a=Zi,r+=2):(a=e,x===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Wi,r++):(a=e,x===0&&C(fi))),a===e&&(a=null),Yo.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(na)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Zi?(a=Zi,r+=2):(a=e,x===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Wi,r++):(a=e,x===0&&C(fi))),a===e&&(a=null),Yo.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(na)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ys?(o=ys,r+=3):(o=e,x===0&&C(Li)),o!==e?(U=n,n=lg(u)):(r=n,n=e)}else r=n,n=e;return n}function ZE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===os?(t=os,r+=3):(t=e,x===0&&C(qa)),t!==e){for(u=[],o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,x===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,x===0&&C(hs))),a===e&&(a=null),bi.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(oo)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,x===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,x===0&&C(hs))),a===e&&(a=null),bi.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(oo)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===os?(o=os,r+=3):(o=e,x===0&&C(qa)),o!==e?(U=n,n=ug(u)):(r=n,n=e)}else r=n,n=e;return n}function Kt(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Xo,r++):(t=e,x===0&&C(oa)),t!==e?(Va.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Dc)),u!==e?(U=n,n=fg()):(r=n,n=e)):(r=n,n=e),n}function ei(){var n,t,u,o;if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function c(){var n;return n=ME(),n===e&&(n=Zl(),n===e&&(n=Ml())),n}function Zl(){var n;return Mi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Mu)),n}function Ml(){var n;return Ho.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Qc)),n}function Lo(){var n;return Wa.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(kc)),n}function ud(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=fn,r++):(t=e,x===0&&C(gs)),t!==e){for(u=[],o=Lo();o!==e;)u.push(o),o=Lo();o=Ml(),o!==e?(U=n,n=cg()):(r=n,n=e)}else r=n,n=e;return n}function ME(){var n,t,u,o,a,p;for(n=r,t=Ml(),t===e&&(t=null),u=[],o=Zl();o!==e;)u.push(o),o=Zl();if(i.charCodeAt(r)===35?(o=fn,r++):(o=e,x===0&&C(gs)),o!==e){for(a=[],p=Lo();p!==e;)a.push(p),p=Lo();U=n,n=pg()}else r=n,n=e;return n}function DE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===91?(t=vt,r++):(t=e,x===0&&C(Bs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===93?(o=Bt,r++):(o=e,x===0&&C(ui)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function fd(){var n;return dn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Du)),n===e&&(ic.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xc)),n===e&&(sc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Pc)),n===e&&(nc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Qu)),n===e&&(oc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Nn)),n===e&&(cu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Ka)),n===e&&(pu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(aa)),n===e&&(ac.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(ku)),n===e&&(lc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(el)),n===e&&(uc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xu)),n===e&&(fc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Yc)),n===e&&(du.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Pu)),n===e&&(cc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Tt)))))))))))))),n}function qi(){var n;return n=fd(),n===e&&(i.charCodeAt(r)===95?(n=cn,r++):(n=e,x===0&&C(Tn))),n}function cd(){var n,t,u,o;if(n=r,t=qi(),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe))),t!==e){for(u=[],o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o===e&&(hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Rn)),o===e&&(ls.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Sn))))));o!==e;)u.push(o),o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o===e&&(hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Rn)),o===e&&(ls.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Sn))))));U=n,n=dg()}else r=n,n=e;return n}function qr(){var n;return n=qi(),n===e&&(i.charCodeAt(r)===45?(n=ar,r++):(n=e,x===0&&C(Pr)),n===e&&(_e.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xe)),n===e&&(hn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Rn)),n===e&&(ls.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(yn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Sn))))))),n}function QE(){var n,t,u,o,a,p;if(n=r,t=fd(),t!==e){for(u=[],o=qr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=qr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=hg()}else r=n,n=e;return n}function kE(){var n,t,u,o,a,p;if(n=r,t=qi(),t===e&&(i.charCodeAt(r)===58?(t=zt,r++):(t=e,x===0&&C(Lr)),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe)),t===e&&(t=zs()))),t!==e){for(u=[],o=qr(),o===e&&(i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p===e&&(i.charCodeAt(r)===58?(p=zt,r++):(p=e,x===0&&C(Lr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=qr(),o===e&&(i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p===e&&(i.charCodeAt(r)===58?(p=zt,r++):(p=e,x===0&&C(Lr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=gg()}else r=n,n=e;return n}function zs(){var n;return n=XE(),n===e&&(n=PE()),n}function XE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=pn,r++):(t=e,x===0&&C(Es)),t!==e?(u=pd(),u!==e?(o=pd(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function pd(){var n;return _e.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xe)),n===e&&(pc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(la)),n===e&&(dc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Yu)))),n}function PE(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Xo,r++):(t=e,x===0&&C(oa)),t!==e?(i.charCodeAt(r)===95?(u=cn,r++):(u=e,x===0&&C(Tn)),u===e&&(i.charCodeAt(r)===126?(u=Fa,r++):(u=e,x===0&&C(Hu)),u===e&&(i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u===e&&(i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u===e&&(i.charCodeAt(r)===33?(u=Wr,r++):(u=e,x===0&&C(In)),u===e&&(i.charCodeAt(r)===36?(u=Ts,r++):(u=e,x===0&&C(yi)),u===e&&(i.charCodeAt(r)===38?(u=fu,r++):(u=e,x===0&&C(Ju)),u===e&&(i.charCodeAt(r)===39?(u=Wi,r++):(u=e,x===0&&C(fi)),u===e&&(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u===e&&(i.charCodeAt(r)===41?(u=W,r++):(u=e,x===0&&C(ue)),u===e&&(i.charCodeAt(r)===42?(u=$,r++):(u=e,x===0&&C(_r)),u===e&&(i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u===e&&(i.charCodeAt(r)===44?(u=De,r++):(u=e,x===0&&C(Ye)),u===e&&(i.charCodeAt(r)===59?(u=or,r++):(u=e,x===0&&C($t)),u===e&&(i.charCodeAt(r)===58?(u=zt,r++):(u=e,x===0&&C(Lr)),u===e&&(i.charCodeAt(r)===61?(u=Sr,r++):(u=e,x===0&&C(Yt)),u===e&&(i.charCodeAt(r)===47?(u=sr,r++):(u=e,x===0&&C(Xr)),u===e&&(i.charCodeAt(r)===63?(u=dt,r++):(u=e,x===0&&C(Fs)),u===e&&(i.charCodeAt(r)===35?(u=fn,r++):(u=e,x===0&&C(gs)),u===e&&(i.charCodeAt(r)===64?(u=Ua,r++):(u=e,x===0&&C(Si)),u===e&&(i.charCodeAt(r)===37?(u=pn,r++):(u=e,x===0&&C(Es)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let dd={};if(bo=L(),bo!==e&&r===i.length)return bo;throw bo!==e&&r<i.length&&C(Eg()),Fp(dl,yt<i.length?i.charAt(yt):null,yt<i.length?Ps(yt,yt+1):Ps(yt,yt))}function N1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function Kl(i,m,e,A){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,Kl.prototype),R.expected=m,R.found=e,R.location=A,R.name="SyntaxError",R}N1(Kl,Error);function Zm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}Kl.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,A;for(A=0;A<i.length;A++)if(i[A].source===this.location.source){e=i[A].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,F=this.location.source+":"+L.line+":"+L.column;if(e){var Z=this.location.end,M=Zm("",L.line.toString().length," "),Y=e[R.line-1],P=R.line===Z.line?Z.column:Y.length+1,D=P-R.column||1;m+=`
69
+ `],!0,!1),gs=Q("#",!1),Du=Ve([["A","Z"]],!1,!1),Xc=Ve([["a","z"]],!1,!1),Pc=Ve([["\xC0","\xD6"]],!1,!1),Qu=Ve([["\xD8","\xF6"]],!1,!1),Nn=Ve([["\xF8","\u02FF"]],!1,!1),Ka=Ve([["\u0370","\u037D"]],!1,!1),aa=Ve([["\u037F","\u1FFF"]],!1,!1),ku=Ve([["\u200C","\u200D"]],!1,!1),el=Ve([["\u2070","\u218F"]],!1,!1),Xu=Ve([["\u2C00","\u2FEF"]],!1,!1),Yc=Ve([["\u3001","\uD7FF"]],!1,!1),Pu=Ve([["\uF900","\uFDCF"]],!1,!1),Tt=Ve([["\uFDF0","\uFFFD"]],!1,!1),Tn=Q("_",!1),Rn=Ve(["\xB7"],!1,!1),yn=Ve([["\u0300","\u036F"]],!1,!1),Sn=Ve([["\u203F","\u2040"]],!1,!1),Es=Q("%",!1),la=Ve([["A","F"]],!1,!1),Yu=Ve([["a","f"]],!1,!1),Hu=Q("~",!1),Ju=Q("&",!1),Ln=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(dd).map(([a,p])=>({pos:parseInt(a),text:p}));return o.length&&(u.comments=o),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},_u=function(n,t,u){let o={type:"Query"};return n&&(o.prologue=n),t.type==="SelectQuery"?o.selectQuery=t:t.type==="ConstructQuery"?o.constructQuery=t:t.type==="DescribeQuery"?o.describeQuery=t:t.type==="AskQuery"&&(o.askQuery=t),u&&(o.values=u),o},ua=function(n){if(n.length)return{type:"Prologue",decl:n}},ju=function(n){return{type:"BaseDecl",iriref:n}},ao=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Hc=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},wn=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:ye()};return o&&(a.values=o),a},zu=function(n,t){let u;t==="*"?u=["*"]:u=t.map(a=>a.length===2?a[1]:{expression:a[3],as:a[7]});let o={var:u};if(n){let a=n.toUpperCase();a==="DISTINCT"?o.distinct=!0:a==="REDUCED"&&(o.reduced=!0)}return o.location=ye(),o},$u=function(n,t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,template:n,where:u,...o,location:ye()},a},qu=function(n,t,u){let o={type:"ConstructQuery"};return n.length&&(o.from=n),o={...o,where:[t],...u,location:ye()},o},lo=function(n,t,u,o){let a={type:"DescribeQuery"};return t.length&&(a.from=t),a.describe=n,u&&(a.where=u),a={...a,...o,location:ye()},a},uo=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:ye()},o},fo=function(n){return n},co=function(n){return{graph:n,location:ye()}},Ku=function(n){return{namedGraph:n,location:ye()}},Jc=function(n){return n.graphPattern||n},ef=function(n,t,u,o){let a={};return n&&(a.group=n),t&&(a.having=t),u&&(a.orderBy=u),o&&(a.limitOffset=o),a},ms=function(n){return n},Gn=function(n){return n},po=function(n){return n},_c=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:ye()}:{bracketted:!0,...n}},rf=function(n){return n},jc=function(n){return n},zc=function(n){return n},$c=function(n){return n},Zt=function(n,t){let u={};return n.toUpperCase()==="ASC"?u={asc:!0,...t}:n.toUpperCase()==="DESC"&&(u={desc:!0,...t}),u},tf=function(n){return n},qc=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},Kc=function(n){return{limit:parseInt(n.literal)}},ep=function(n){return{offset:parseInt(n.literal)}},sf=function(n){return n?n[1]:null},nf=function(n,t){let u={type:"Update"};n&&(u.prologue=n);let o=[];return t&&(o=[t[1]],t[2]&&(o=o.concat(t[2][3].update))),u.update=o,u},of=function(n,t,u){let o={type:"load",silent:n,sourceGraph:t};return u&&(o.destinyGraph=u[2]),o},rp=function(n,t){return{type:"clear",silent:n,destinyGraph:t}},tp=function(n,t){return{type:"drop",silent:n,destinyGraph:t}},ip=function(n,t){return{type:"create",silent:n,destinyGraph:t}},vs=function(n,t,u){return{type:"add",silent:n,graphs:[t,u]}},ho=function(n,t,u){return{type:"move",silent:n,graphs:[t,u]}},fa=function(n,t,u){return{type:"copy",silent:n,graphs:[t,u]}},go=function(n){return{type:"insertdata",insert:n}},Yi=function(n){return{type:"deletedata",delete:n}},sp=function(n){return{type:"deletewhere",delete:n}},np=function(n,t,u,o){let a={type:"modify"};return n&&(a.with=n[2]),t.length===3?(a.delete=t[0],t[2]&&(a.insert=t[2])):a.insert=t,u.length&&(a.using=u),a.where=o.graphPattern,a},Un=function(n){return n},af=function(n){return n},lf=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},uf=function(){return"default"},ca=function(n){return n},Fn=function(n){return n},rl=function(n){return n},tl=function(){return"default"},il=function(){return"named"},op=function(){return"all"},Eo=function(n){return n},ff=function(n){return n},ap=function(n,t){let u=[];return n&&(u=u.concat(n)),t.forEach(o=>{u=u.concat(o[0]),o[2]&&(u=u.concat(o[2]))}),u},cf=function(n,t){return{graph:n,...t}},pa=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:ye()}},lp=function(n){return n},up=function(n,t){let u=[];return n&&u.push(n),t.forEach(o=>{u.push(o[0]),o[4]&&u.push(o[4])}),{graphPattern:u,location:ye()}},mo=function(n,t){let u=[];return t&&t[3]?u=[n].concat(t[3].triplePattern):u=[n],{type:"TriplesBlock",triplePattern:u,location:ye()}},pf=function(n){return{type:"OptionalGraphPattern",optional:n.graphPattern||n,location:ye()}},df=function(n,t){return{type:"GraphGraphPattern",graph:n,...t}},fp=function(n,t,u){let o={type:"ServiceGraphPattern",service:t,pattern:u.graphPattern||u};return n&&(o.silent=!0),o.location=ye(),o},sl=function(n,t){return{type:"Bind",bind:n,as:t,location:ye()}},hf=function(n){return n},cp=function(n,t){return{oneVar:n,data:t,location:ye()}},gf=function(n,t){return{variables:n,data:t,location:ye()}},Ef=function(n){return n},pp=function(n){return n},nl=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:ye()}},vo=function(n,t){return t.length?{union:[n,...t],location:ye()}:n},Io=function(n){return{type:"Filter",filter:n,location:ye()}},dp=function(n,t){return{functionRef:n,args:t.list,location:ye()}},mf=function(){return{list:[]}},hp=function(n,t,u){return{distinct:!!n,list:[t,...u]}},gp=function(){return[]},Ep=function(n,t){return[n,...t]},mp=function(n){return n},vf=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:ye()}},vp=function(n,t){return{subject:n,properties:t}},Ip=function(n,t){return{subject:n,properties:t}},If=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},ol=function(){return{a:!0,location:ye()}},Cf=function(n,t){return[n,...t]},Cp=function(n,t){return{subject:n,properties:t}},xf=function(n,t){return{subject:n,properties:t}},Bn=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},bf=function(n,t){return[n,...t]},da=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{alternative:u,location:ye()}}else return n},xp=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{sequence:u,location:ye()}}else return n},bp=function(n,t){return t&&(n.modifier=t),n},Ap=function(n){return n.inverse=!0,n},wr=function(){return{a:!0,location:ye()}},Np=function(n){return{bracketted:!0,...n}},al=function(n){return{collection:n,location:ye()}},Co=function(n){return{blankNodeProperties:n,location:ye()}},ci=function(n){return{collection:n,location:ye()}},ha=function(n){return{blankNodeProperties:n,location:ye()}},ll=function(n){return n},Af=function(n){return n},Nf=function(n){return n},Tf=function(n){return n},ul=function(n){return{...n,location:ye()}},Rf=function(n,t){return t.length?{expressionType:"conditionalor",operands:[n,...t]}:n},Tp=function(n,t){return t.length?{expressionType:"conditionaland",operands:[n,...t]}:n},fl=function(n,t){if(t.length){let u=n,o=t[0][1].toUpperCase(),a=t[0][3];return o==="NOT"&&(o+=" "+t[0][3].toUpperCase(),a=t[0][5]),{expressionType:"relationalexpression",operator:o,op1:u,op2:a}}else return n},yf=function(n,t){if(t.length===0)return n;let u=[];return t.forEach(o=>{o.length==4&&u.push({operator:o[1],expression:o[3]})}),{expressionType:"additiveexpression",op1:n,ops:u}},br=function(n,t){return t.length?{expressionType:"multiplicativeexpression",first:n,rest:t.map(u=>({operator:u[1],expression:u[3]}))}:n},Sf=function(n){return{expressionType:"unaryexpression",unaryexpression:"!",expression:n}},Rp=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},On=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},yp=function(n){return{expressionType:"atomic",value:n}},ga=function(n){return{expressionType:"atomic",value:n}},Sp=function(n){return{expressionType:"atomic",value:n}},Yr=function(n){return{expressionType:"atomic",value:n}},Lp=function(n){return{bracketted:!0,...n}},wp=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},Gp=function(n){return{expressionType:"builtincall",builtincall:"lang",args:[n]}},Ea=function(n,t){return{expressionType:"builtincall",builtincall:"langMatches",args:[n,t]}},s=function(n){return{expressionType:"builtincall",builtincall:"datatype",args:[n]}},l=function(n){return{expressionType:"builtincall",builtincall:"bound",args:[n]}},g=function(n){return{expressionType:"builtincall",builtincall:"IRI",args:[n]}},h=function(n){return{expressionType:"builtincall",builtincall:"URI",args:[n]}},v=function(n){let t={expressionType:"builtincall",builtincall:"BNODE",args:null};return n.length===5&&(t.args=[n[2]]),t},b=function(){return{expressionType:"builtincall",builtincall:"rand"}},N=function(n){return{expressionType:"builtincall",builtincall:"abs",args:[n]}},y=function(n){return{expressionType:"builtincall",builtincall:"ceil",args:[n]}},w=function(n){return{expressionType:"builtincall",builtincall:"floor",args:[n]}},G=function(n){return{expressionType:"builtincall",builtincall:"round",args:[n]}},k=function(n){return{expressionType:"builtincall",builtincall:"CONCAT",args:n}},_=function(n){return{expressionType:"builtincall",builtincall:"STRLEN",args:[n]}},ie=function(n){return{expressionType:"builtincall",builtincall:"UCASE",args:[n]}},te=function(n){return{expressionType:"builtincall",builtincall:"LCASE",args:[n]}},ae=function(n){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[n]}},ce=function(n,t){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[n,t]}},he=function(n,t){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[n,t]}},ve=function(n,t){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[n,t]}},Ce=function(n,t){return{expressionType:"builtincall",builtincall:"STRENDS",args:[n,t]}},Ie=function(n,t){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[n,t]}},Re=function(n){return{expressionType:"builtincall",builtincall:"year",args:[n]}},ke=function(n){return{expressionType:"builtincall",builtincall:"month",args:[n]}},We=function(n){return{expressionType:"builtincall",builtincall:"day",args:[n]}},tr=function(n){return{expressionType:"builtincall",builtincall:"hours",args:[n]}},Tr=function(n){return{expressionType:"builtincall",builtincall:"minutes",args:[n]}},ut=function(n){return{expressionType:"builtincall",builtincall:"seconds",args:[n]}},Ur=function(n){return{expressionType:"builtincall",builtincall:"timezone",args:[n]}},Jt=function(n){return{expressionType:"builtincall",builtincall:"tz",args:[n]}},Mt=function(){return{expressionType:"builtincall",builtincall:"now"}},jr=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ht=function(n){return{expressionType:"builtincall",builtincall:"MD5",args:[n]}},tt=function(n){return{expressionType:"builtincall",builtincall:"SHA1",args:[n]}},zr=function(n){return{expressionType:"builtincall",builtincall:"SHA256",args:[n]}},Zr=function(n){return{expressionType:"builtincall",builtincall:"SHA384",args:[n]}},Qt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Vn=function(n){return{expressionType:"builtincall",builtincall:"COALESCE",args:n}},Is=function(n,t,u){return{expressionType:"builtincall",builtincall:"IF",args:[n,t,u]}},Rt=function(n,t){return{expressionType:"builtincall",builtincall:"STRLANG",args:[n,t]}},wi=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},ft=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},cl=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Hi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},ks=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},Xs=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},Gt=function(n,t,u){let o={expressionType:"regex",text:n,pattern:t};return u&&(o.flags=u[2]),o},Wn=function(n,t,u){let o=[n,t];return u&&o.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:o}},pl=function(n,t,u,o){let a=[n,t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"replace",args:a}},Ah=function(n){return{exists:n.graphPattern||n}},Nh=function(n){return{notexists:n.graphPattern||n}},Th=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},Rh=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},yh=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},Sh=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},Lh=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},wh=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Gh=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},Uh=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Fh=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=ye(),n},Bh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Oh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Vh=function(n){return{type:"IRIref",iriref:n,location:ye()}},Wh=function(n){return n},Zh=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:ye()}},Mh=function(n){return{type:"PrefixedName",pn_prefix:n,location:ye()}},Dh=function(n){return{blankNode:n,location:ye()}},Qh=function(){return{blankNode:"[]",location:ye()}},kh=function(n){return n.join("")},Xh=function(n){return n||""},Ph=function(n,t){return{pn_prefix:n,pn_local:t}},Yh=function(){return $r()},Hh=function(n){return{type:"Var",varType:"VAR1",varname:n}},Jh=function(n){return{type:"Var",varType:"VAR2",varname:n}},_h=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},jh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:$r()}},zh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:$r()}},$h=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},qh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},Kh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},eg=function(n){return n.literal="+"+n.literal,n},rg=function(n){return n.literal="+"+n.literal,n},tg=function(n){return n.literal="+"+n.literal,n},ig=function(n){return n.literal="-"+n.literal,n},sg=function(n){return n.literal="-"+n.literal,n},ng=function(n){return n.literal="-"+n.literal,n},og=function(n){return{quote:"'",literal:n.join("")}},ag=function(n){return{quote:'"',literal:n.join("")}},lg=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},ug=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},fg=function(){return $r()},cg=function(){return $r()},pg=function(){return dd[ye().start.offset]=$r(),""},dg=function(){return $r()},hg=function(){return $r()},gg=function(){return $r()},r=0,U=0,xo=[{line:1,column:1}],yt=0,dl=[],x=0,bo;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function $r(){return i.substring(U,r)}function zx(){return U}function $x(){return{source:A,start:U,end:r}}function ye(){return Ps(U,r)}function qx(n,t){throw t=t!==void 0?t:Ps(U,r),Fp([mg(n)],i.substring(U,r),t)}function Kx(n,t){throw t=t!==void 0?t:Ps(U,r),vg(n,t)}function Q(n,t){return{type:"literal",text:n,ignoreCase:t}}function Ve(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function eb(){return{type:"any"}}function Eg(){return{type:"end"}}function mg(n){return{type:"other",description:n}}function Up(n){var t=xo[n],u;if(t)return t;for(u=n-1;!xo[u];)u--;for(t=xo[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return xo[n]=t,t}function Ps(n,t,u){var o=Up(n),a=Up(t),p={source:A,start:{offset:n,line:o.line,column:o.column},end:{offset:t,line:a.line,column:a.column}};return u&&A&&typeof A.offset=="function"&&(p.start=A.offset(p.start),p.end=A.offset(p.end)),p}function C(n){r<yt||(r>yt&&(yt=r,dl=[]),dl.push(n))}function vg(n,t){return new ql(n,null,null,t)}function Fp(n,t,u){return new ql(ql.buildMessage(n,t),n,t,u)}function Bp(){var n,t,u,o,a,p;for(n=r,t=[],u=ud();u!==e;)t.push(u),u=ud();for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Ig(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=Ln(t,o)}else r=n,n=e;return n}function Ig(){var n;return n=Cg(),n===e&&(n=Yp()),n}function Cg(){var n,t,u,o,a;for(n=r,t=Op(),u=[],o=c();o!==e;)u.push(o),o=c();return o=xg(),o===e&&(o=Ag(),o===e&&(o=Ng(),o===e&&(o=Tg()))),o!==e?(a=Pp(),U=n,n=_u(t,o,a)):(r=n,n=e),n}function Op(){var n,t,u;for(n=r,t=[],u=Vp(),u===e&&(u=Wp());u!==e;)t.push(u),u=Vp(),u===e&&(u=Wp());return U=n,t=ua(t),n=t,n}function Vp(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===F?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(hc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Fl(),a!==e?(U=n,n=ju(a)):(r=n,n=e)}else r=n,n=e;return n}function Wp(){var n,t,u,o,a,p,d;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===Z?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Jn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Bl(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Fl(),d!==e?(U=n,n=ao(a,d)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function xg(){var n,t,u,o,a,p,d,E;if(n=r,t=Zp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=St();a!==e;)o.push(a),a=St();for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ys(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Ji(),U=n,n=Hc(t,o,p,E)}else r=n,n=e}else r=n,n=e;return n}function bg(){var n,t,u,o,a,p,d;if(n=r,t=Zp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Ys(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Ji(),d=Pp(),U=n,n=wn(t,o,p,d)}else r=n,n=e}else r=n,n=e;return n}function Zp(){var n,t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te,Fe;if(n=r,i.substr(r,6).toLowerCase()===M?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(ot)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===Y?(o=i.substr(r,8),r+=8):(o=e,x===0&&C(xt)),o===e&&(i.substr(r,7).toLowerCase()===X?(o=i.substr(r,7),r+=7):(o=e,x===0&&C(hu))),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(I=pr(),I!==e?(E=[E,I],d=E):(r=d,d=e),d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===40?(I=D,r++):(I=e,x===0&&C(le)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();if(i.substr(r,2).toLowerCase()===z?(P=i.substr(r,2),r+=2):(P=e,x===0&&C(Ls)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=pr(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();i.charCodeAt(r)===41?(Fe=W,r++):(Fe=e,x===0&&C(ue)),Fe!==e?(E=[E,I,T,S,B,P,oe,ge,Te,Fe],d=E):(r=d,d=e)}else r=d,d=e}else r=d,d=e}else r=d,d=e}else r=d,d=e}if(d!==e)for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(I=pr(),I!==e?(E=[E,I],d=E):(r=d,d=e),d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===40?(I=D,r++):(I=e,x===0&&C(le)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();if(i.substr(r,2).toLowerCase()===z?(P=i.substr(r,2),r+=2):(P=e,x===0&&C(Ls)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=pr(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();i.charCodeAt(r)===41?(Fe=W,r++):(Fe=e,x===0&&C(ue)),Fe!==e?(E=[E,I,T,S,B,P,oe,ge,Te,Fe],d=E):(r=d,d=e)}else r=d,d=e}else r=d,d=e}else r=d,d=e}else r=d,d=e}}else p=e;p===e&&(i.charCodeAt(r)===42?(p=K,r++):(p=e,x===0&&C(_r))),p!==e?(U=n,n=zu(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Ag(){var n,t,u,o,a,p,d,E,I,T,S,B,P,oe;if(n=r,i.substr(r,9).toLowerCase()===J?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(_n)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=tE(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=St();d!==e;)p.push(d),d=St();for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=Ys(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=Ji(),U=n,n=$u(o,p,E,T)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,9).toLowerCase()===J?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(_n)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=St();a!==e;)o.push(a),a=St();for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===O?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(us)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,x===0&&C(Vt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();for(T=ji(),T===e&&(T=null),S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===125?(B=H,r++):(B=e,x===0&&C(Wt)),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();oe=Ji(),U=n,n=qu(o,T,oe)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Ng(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,8).toLowerCase()===$?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(gu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=$i(),a!==e)for(;a!==e;)o.push(a),a=$i();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=K,r++):(o=e,x===0&&C(_r))),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=St();d!==e;)p.push(d),d=St();for(d=[],E=c();E!==e;)d.push(E),E=c();for(E=Ys(),E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();T=Ji(),U=n,n=lo(o,p,E,T)}else r=n,n=e}else r=n,n=e;return n}function Tg(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,3).toLowerCase()===q?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Eu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=St();p!==e;)a.push(p),p=St();for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=Ys(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Ji(),U=n,n=uo(a,d,I)}else r=n,n=e}else r=n,n=e;return n}function St(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===ee?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rg(),o===e&&(o=yg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=fo(o)}else r=n,n=e}else r=n,n=e;return n}function Rg(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=vr(),u!==e?(U=n,n=co(u)):(r=n,n=e),n}function yg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ne?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Di)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=vr(),o!==e?(U=n,n=Ku(o)):(r=n,n=e)}else r=n,n=e;return n}function Ys(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===O?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(us)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();return o=ct(),o!==e?(U=n,n=Jc(o)):(r=n,n=e),n}function Ji(){var n,t,u,o,a;return n=r,t=Sg(),t===e&&(t=null),u=Lg(),u===e&&(u=null),o=wg(),o===e&&(o=null),a=Gg(),a===e&&(a=null),U=n,n=ef(t,u,o,a),n}function Sg(){var n,t,u,o,a,p,d;if(n=r,i.substr(r,5).toLowerCase()===de?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Qi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===Se?(o=i.substr(r,2),r+=2):(o=e,x===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Mp(),d!==e)for(;d!==e;)p.push(d),d=Mp();else p=e;p!==e?(U=n,n=ms(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Mp(){var n,t,u,o,a,p,d,E,I,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=yl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=Gn(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=rd(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=po(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=r,i.substr(r,2).toLowerCase()===z?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(Ls)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=pr(),T!==e?(E=[E,I,T],d=E):(r=d,d=e)}else r=d,d=e;for(d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();U=n,n=_c(a,d)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=pr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=rf(u)}else r=n,n=e}}}return n}function Lg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===be?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Za)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=Dp(),a!==e)for(;a!==e;)o.push(a),a=Dp();else o=e;o!==e?(U=n,n=jc(o)):(r=n,n=e)}else r=n,n=e;return n}function Dp(){var n,t,u,o;if(n=r,t=El(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();U=n,n=zc(t)}else r=n,n=e;return n}function wg(){var n,t,u,o,a,p,d,E;if(n=r,i.substr(r,5).toLowerCase()===Ze?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(mu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===Se?(o=i.substr(r,2),r+=2):(o=e,x===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Qp(),d!==e)for(;d!==e;)p.push(d),d=Qp();else p=e;if(p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();U=n,n=$c(p)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Qp(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===Be?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Ni)),t===e&&(i.substr(r,4).toLowerCase()===Ke?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(ws))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=Zt(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=El(),t===e&&(t=pr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();U=n,n=tf(t)}else r=n,n=e;return n}function Gg(){var n,t,u,o;return n=r,t=r,u=kp(),u!==e?(o=Xp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=Xp(),u!==e?(o=kp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(U=n,t=qc(t)),n=t,n}function kp(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===Ee?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ma)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=js(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=Kc(o)}else r=n,n=e}else r=n,n=e;return n}function Xp(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===Er?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Ec)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=js(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=n,n=ep(o)}else r=n,n=e}else r=n,n=e;return n}function Pp(){var n,t,u,o;return n=r,t=r,i.substr(r,6).toLowerCase()===ur?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Jo)),u!==e?(o=Kp(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),U=n,t=sf(t),n=t,n}function Yp(){var n,t,u,o,a,p,d,E,I,T;for(n=r,t=Op(),u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ug(),a!==e){for(p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=Yp(),d=[d,E,I,T],p=d}else r=p,p=e;p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;for(u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return U=n,n=nf(t,u),n}function Ug(){var n;return n=Fg(),n===e&&(n=Bg(),n===e&&(n=Og(),n===e&&(n=Wg(),n===e&&(n=Zg(),n===e&&(n=Mg(),n===e&&(n=Vg(),n===e&&(n=Dg(),n===e&&(n=Qg(),n===e&&(n=kg(),n===e&&(n=Xg())))))))))),n}function Fg(){var n,t,u,o,a,p,d,E,I,T,S;if(n=r,i.substr(r,4).toLowerCase()===Or?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(vu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=vr(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=r,i.substr(r,4).toLowerCase()===et?(I=i.substr(r,4),r+=4):(I=e,x===0&&C(En)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=hl(),S!==e?(I=[I,T,S],E=I):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),U=n,n=of(o,p,E)}else r=n,n=e}else r=n,n=e;return n}function Bg(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===rt?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ti)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=_p(),p!==e?(U=n,n=rp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Og(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===cr?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Iu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=_p(),p!==e?(U=n,n=tp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Vg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===qe?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Cu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=hl(),p!==e?(U=n,n=ip(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Wg(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,3).toLowerCase()===Pe?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(mc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=_i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===Ir?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(jn)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=_i(),T!==e?(U=n,n=vs(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zg(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,4).toLowerCase()===Me?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=_i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===Ir?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(jn)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=_i(),T!==e?(U=n,n=ho(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Mg(){var n,t,u,o,a,p,d,E,I,T;if(n=r,i.substr(r,4).toLowerCase()===Rr?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(xu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=_i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===Ir?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(jn)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=_i(),T!==e?(U=n,n=fa(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Dg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===dr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(_o)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Hr?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(Gs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=jp(),p!==e?(U=n,n=go(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Qg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===Cr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.substr(r,4).toLowerCase()===Hr?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(Gs)),o!==e?(a=jp(),a!==e?(U=n,n=Yi(a)):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;return n}function kg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===Cr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===O?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=gl(),p!==e?(U=n,n=sp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Xg(){var n,t,u,o,a,p,d,E,I,T,S;if(n=r,t=r,i.substr(r,4).toLowerCase()===ti?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=vr(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();u=[u,o,a,p],t=u}else r=t,t=e}else r=t,t=e;if(t===e&&(t=null),u=r,o=Pg(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Hp(),p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;if(u===e&&(u=Hp()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=Jp();p!==e;)a.push(p),p=Jp();for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===O?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(us)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=ct(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();U=n,n=np(t,u,a,I)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Pg(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Cr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(mn)),t!==e?(u=gl(),u!==e?(U=n,n=Un(u)):(r=n,n=e)):(r=n,n=e),n}function Hp(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===dr?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(_o)),t!==e?(u=gl(),u!==e?(U=n,n=af(u)):(r=n,n=e)):(r=n,n=e),n}function Jp(){var n,t,u,o,a,p,d,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Ge?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Da)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=vr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===ne?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(Di)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=vr(),E!==e?(p=[p,d,E],a=p):(r=a,a=e)}else r=a,a=e;a!==e?(U=n,n=lf(a)):(r=n,n=e)}else r=n,n=e;return n}function _i(){var n,t,u,o;if(n=r,i.substr(r,7).toLowerCase()===fe?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(vn)),t!==e&&(U=n,t=uf()),n=t,n===e){for(n=r,i.substr(r,5).toLowerCase()===Ar?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(fs)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();o=vr(),o!==e?(U=n,n=ca(o)):(r=n,n=e)}return n}function hl(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===Ar?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(fs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=vr(),o!==e?(U=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;return n}function _p(){var n,t;return n=r,t=hl(),t!==e&&(U=n,t=rl(t)),n=t,n===e&&(n=r,i.substr(r,7).toLowerCase()===fe?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(vn)),t!==e&&(U=n,t=tl()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ne?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Di)),t!==e&&(U=n,t=il()),n=t,n===e&&(n=r,i.substr(r,3).toLowerCase()===mr?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(jo)),t!==e&&(U=n,t=op()),n=t))),n}function gl(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=zp(),p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=Eo(a)}else r=n,n=e}else r=n,n=e;return n}function jp(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=zp(),p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=ff(a)}else r=n,n=e}else r=n,n=e;return n}function zp(){var n,t,u,o,a,p,d;for(n=r,t=ji(),t===e&&(t=null),u=[],o=r,a=$p(),a!==e?(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p===e&&(p=null),d=ji(),d===e&&(d=null),a=[a,p,d],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=$p(),a!==e?(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p===e&&(p=null),d=ji(),d===e&&(d=null),a=[a,p,d],o=a):(r=o,o=e);return U=n,n=ap(t,u),n}function $p(){var n,t,u,o,a,p,d,E,I,T,S,B,P;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$i(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===123?(d=V,r++):(d=e,x===0&&C(Vt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();for(I=ji(),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===125?(S=H,r++):(S=e,x===0&&C(Wt)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=n,n=cf(a,I)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function ji(){var n,t,u,o,a,p,d;if(n=r,t=sd(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=ji(),d===e&&(d=null),o=[o,a,p,d],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=pa(t,u)}else r=n,n=e;return n}function ct(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,x===0&&C(Vt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=bg(),o===e&&(o=Yg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=H,r++):(p=e,x===0&&C(Wt)),p!==e?(U=n,n=lp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Yg(){var n,t,u,o,a,p,d,E,I,T;for(n=r,t=Ao(),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=r,p=qp(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();for(i.charCodeAt(r)===46?(E=Ue,r++):(E=e,x===0&&C(er)),E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,d,E,I,T],a=p}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,p=qp(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();for(i.charCodeAt(r)===46?(E=Ue,r++):(E=e,x===0&&C(er)),E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,d,E,I,T],a=p}else r=a,a=e;return U=n,n=up(t,o),n}function Ao(){var n,t,u,o,a,p,d;if(n=r,t=sE(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Ao(),d===e&&(d=null),o=[o,a,p,d],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=mo(t,u)}else r=n,n=e;return n}function qp(){var n;return n=eE(),n===e&&(n=Hg(),n===e&&(n=Kg(),n===e&&(n=Jg(),n===e&&(n=_g(),n===e&&(n=rE(),n===e&&(n=jg(),n===e&&(n=zg()))))))),n}function Hg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,8).toLowerCase()===Vr?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Au)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ct(),a!==e?(U=n,n=pf(a)):(r=n,n=e)}else r=n,n=e;return n}function Jg(){var n,t,u,o,a,p,d;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$i(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=ct(),d!==e?(U=n,n=df(a,d)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function _g(){var n,t,u,o,a,p,d,E;if(n=r,i.substr(r,7).toLowerCase()===ii?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Qa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(bt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=$i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?(U=n,n=fp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function jg(){var n,t,u,o,a,p,d,E,I,T,S,B,P;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===xe?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(ka)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===z?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(Ls)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=pr(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=n,n=sl(d,S)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function zg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===ur?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Kp(),a!==e?(U=n,n=hf(a)):(r=n,n=e)}else r=n,n=e;return n}function Kp(){var n;return n=$g(),n===e&&(n=qg()),n}function $g(){var n,t,u,o,a,p,d,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=pr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===123?(a=V,r++):(a=e,x===0&&C(Vt)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=No();E!==e;)d.push(E),E=No();i.charCodeAt(r)===125?(E=H,r++):(E=e,x===0&&C(Wt)),E!==e?(U=n,n=cp(u,d)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function qg(){var n,t,u,o,a,p,d,E,I,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=pr();p!==e;)a.push(p),p=pr();if(i.charCodeAt(r)===41?(p=W,r++):(p=e,x===0&&C(ue)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,x===0&&C(Vt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();for(T=[],S=ed();S!==e;)T.push(S),S=ed();i.charCodeAt(r)===125?(S=H,r++):(S=e,x===0&&C(Wt)),S!==e?(U=n,n=gf(a,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function ed(){var n,t,u,o,a,p,d;if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=No();a!==e;)o.push(a),a=No();if(i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=n,n=Ef(o)}else r=n,n=e}else r=n,n=e;return n}function No(){var n,t,u,o;if(n=r,t=vr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(i.substr(r,5)===Ft?(t=Ft,r+=5):(t=e,x===0&&C(Nu)))))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();U=n,n=pp(t)}else r=n,n=e;return n}function Kg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===gt?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Tu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ct(),o!==e?(U=n,n=nl(o)):(r=n,n=e)}else r=n,n=e;return n}function eE(){var n,t,u,o,a,p,d,E;if(n=r,t=ct(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Et?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(zn)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Et?(p=i.substr(r,5),r+=5):(p=e,x===0&&C(zn)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=vo(t,u)}else r=n,n=e;return n}function rE(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===ts?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ic)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=El(),a!==e?(U=n,n=Io(a)):(r=n,n=e)}else r=n,n=e;return n}function El(){var n;return n=Rl(),n===e&&(n=yl(),n===e&&(n=rd())),n}function rd(){var n,t,u,o;if(n=r,t=vr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=td(),o!==e?(U=n,n=dp(t,o)):(r=n,n=e)}else r=n,n=e;return n}function td(){var n,t,u,o,a,p,d,E,I,T,S,B;if(n=r,t=ei(),t!==e&&(U=n,t=mf()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===Y?(o=i.substr(r,8),r+=8):(o=e,x===0&&C(xt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=[],I=r,i.charCodeAt(r)===44?(T=De,r++):(T=e,x===0&&C(Ye)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=se(),B!==e?I=B:(r=I,I=e)}else r=I,I=e;for(;I!==e;)if(E.push(I),I=r,i.charCodeAt(r)===44?(T=De,r++):(T=e,x===0&&C(Ye)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=se(),B!==e?I=B:(r=I,I=e)}else r=I,I=e;i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=n,n=hp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function zi(){var n,t,u,o,a,p,d,E,I,T,S,B;if(n=r,t=ei(),t!==e&&(U=n,t=gp()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=r,i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();d=T}else r=d,d=e}else r=d,d=e;for(;d!==e;)if(p.push(d),d=r,i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();d=T}else r=d,d=e}else r=d,d=e;i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e?(U=n,n=Ep(o,p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function tE(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,x===0&&C(Vt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=id(),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=H,r++):(p=e,x===0&&C(Wt)),p!==e?(U=n,n=mp(o)):(r=n,n=e)}else r=n,n=e;return n}function id(){var n,t,u,o,a,p,d;if(n=r,t=sd(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=id(),d===e&&(d=null),o=[o,a,p,d],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=vf(t,u)}else r=n,n=e;return n}function sd(){var n,t,u,o,a;if(n=r,t=yo(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ml(),o!==e?(U=n,n=vp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=od(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=iE(),U=n,n=Ip(u,a)}else r=n,n=e}return n}function iE(){var n;return n=ml(),n===e&&(n=null),n}function ml(){var n,t,u,o,a,p,d,E,I,T,S,B,P;if(n=r,t=vl(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Il(),o!==e){for(a=[],p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=vl(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();P=Il(),P!==e?(S=[S,B,P],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=vl(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();P=Il(),P!==e?(S=[S,B,P],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e}U=n,n=If(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function vl(){var n,t;return n=$i(),n===e&&(n=r,i.charCodeAt(r)===97?(t=mt,r++):(t=e,x===0&&C(Us)),t!==e&&(U=n,t=ol()),n=t),n}function Il(){var n,t,u,o,a,p,d,E;if(n=r,t=Hs(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Cf(t,u)}else r=n,n=e;return n}function sE(){var n,t,u,o,a;if(n=r,t=yo(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=Cl(),o!==e?(U=n,n=Cp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=ad(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=nE(),U=n,n=xf(u,a)}else r=n,n=e}return n}function nE(){var n;return n=Cl(),n===e&&(n=null),n}function Cl(){var n,t,u,o,a,p,d,E,I,T,S,B,P;if(n=r,t=To(),t===e&&(t=pr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=xl(),o!==e){for(a=[],p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=To(),S===e&&(S=pr()),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();P=xl(),P!==e?(S=[S,B,P],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===59?(E=or,r++):(E=e,x===0&&C($t)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=r,S=To(),S===e&&(S=pr()),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();P=xl(),P!==e?(S=[S,B,P],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),d=[d,E,I,T],p=d}else r=p,p=e}U=n,n=Bn(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function xl(){var n,t,u,o,a,p,d,E;if(n=r,t=Js(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Js(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=De,r++):(p=e,x===0&&C(Ye)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Js(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=bf(t,u)}else r=n,n=e;return n}function To(){var n,t,u,o,a,p,d,E;if(n=r,t=bl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Le,r++):(p=e,x===0&&C(qt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=bl(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Le,r++):(p=e,x===0&&C(qt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=bl(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}U=n,n=da(t,u)}else r=n,n=e;return n}function bl(){var n,t,u,o,a,p,d,E;if(n=r,t=Al(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Al(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Al(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}U=n,n=xp(t,u)}else r=n,n=e;return n}function nd(){var n,t,u;return n=r,t=aE(),t!==e?(u=oE(),u===e&&(u=null),U=n,n=bp(t,u)):(r=n,n=e),n}function Al(){var n,t,u;return n=nd(),n===e&&(n=r,i.charCodeAt(r)===94?(t=pt,r++):(t=e,x===0&&C(cs)),t!==e?(u=nd(),u!==e?(U=n,n=Ap(u)):(r=n,n=e)):(r=n,n=e)),n}function oE(){var n;return i.charCodeAt(r)===63?(n=dt,r++):(n=e,x===0&&C(Fs)),n===e&&(i.charCodeAt(r)===42?(n=K,r++):(n=e,x===0&&C(_r)),n===e&&(i.charCodeAt(r)===43?(n=nr,r++):(n=e,x===0&&C(At)))),n}function aE(){var n,t,u,o;return n=vr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=mt,r++):(t=e,x===0&&C(Us)),t!==e&&(U=n,t=wr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=Wr,r++):(t=e,x===0&&C(In)),t!==e?(u=lE(),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e?(u=To(),u!==e?(i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o!==e?(U=n,n=Np(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function lE(){var n,t,u,o,a,p,d,E;if(n=Ro(),n===e)if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){if(u=r,o=Ro(),o!==e){for(a=[],p=r,i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e?(E=Ro(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e);p!==e;)a.push(p),p=r,i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e?(E=Ro(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e);o=[o,a],u=o}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function Ro(){var n,t,u;return n=vr(),n===e&&(i.charCodeAt(r)===97?(n=mt,r++):(n=e,x===0&&C(Us)),n===e&&(n=r,i.charCodeAt(r)===94?(t=pt,r++):(t=e,x===0&&C(cs)),t!==e?(u=vr(),u===e&&(i.charCodeAt(r)===97?(u=mt,r++):(u=e,x===0&&C(Us))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function od(){var n,t;return n=r,t=cE(),t!==e&&(U=n,t=al(t)),n=t,n===e&&(n=uE()),n}function uE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=vt,r++):(u=e,x===0&&C(Bs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ml(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===93?(d=Bt,r++):(d=e,x===0&&C(ui)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=Co(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function ad(){var n,t;return n=r,t=pE(),t!==e&&(U=n,t=ci(t)),n=t,n===e&&(n=fE()),n}function fE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=vt,r++):(u=e,x===0&&C(Bs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Cl(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===93?(d=Bt,r++):(d=e,x===0&&C(ui)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=ha(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function cE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Hs(),p!==e)for(;p!==e;)a.push(p),p=Hs();else a=e;if(a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=ll(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function pE(){var n,t,u,o,a,p,d,E,I;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Js(),p!==e)for(;p!==e;)a.push(p),p=Js();else a=e;if(a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=n,n=Af(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Hs(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=yo(),u===e&&(u=od()),u!==e?(U=n,n=Nf(u)):(r=n,n=e),n}function Js(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=yo(),u===e&&(u=ad()),u!==e?(U=n,n=Tf(u)):(r=n,n=e),n}function yo(){var n;return n=pr(),n===e&&(n=dE()),n}function $i(){var n;return n=pr(),n===e&&(n=vr()),n}function pr(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=RE(),u===e&&(u=yE()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=n,n=ul(u)}else r=n,n=e;return n}function dE(){var n;return n=vr(),n===e&&(n=Sl(),n===e&&(n=Ll(),n===e&&(n=Ul(),n===e&&(n=AE(),n===e&&(n=ei()))))),n}function se(){var n,t,u,o,a,p,d,E;if(n=r,t=Nl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Lt?(p=Lt,r+=2):(p=e,x===0&&C(ki)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Lt?(p=Lt,r+=2):(p=e,x===0&&C(ki)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Rf(t,u)}else r=n,n=e;return n}function Nl(){var n,t,u,o,a,p,d,E;if(n=r,t=Tl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===si?(p=si,r+=2):(p=e,x===0&&C(Nt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===si?(p=si,r+=2):(p=e,x===0&&C(Nt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Tp(t,u)}else r=n,n=e;return n}function Tl(){var n,t,u,o,a,p,d,E,I,T;if(n=r,t=Mr(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Sr,r++):(p=e,x===0&&C(Yt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ot?(p=Ot,r+=2):(p=e,x===0&&C(Ri)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Oe,r++):(p=e,x===0&&C(ps)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=oi,r++):(p=e,x===0&&C($n)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Jr?(p=Jr,r+=2):(p=e,x===0&&C(zo)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===hr?(p=hr,r+=2):(p=e,x===0&&C(Os)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===xr?(p=i.substr(r,2),r+=2):(p=e,x===0&&C(ds)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=zi(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===is?(p=i.substr(r,3),r+=3):(p=e,x===0&&C(Vs)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===xr?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(ds)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=zi(),T!==e?(a=[a,p,d,E,I,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Sr,r++):(p=e,x===0&&C(Yt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ot?(p=Ot,r+=2):(p=e,x===0&&C(Ri)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Oe,r++):(p=e,x===0&&C(ps)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=oi,r++):(p=e,x===0&&C($n)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Jr?(p=Jr,r+=2):(p=e,x===0&&C(zo)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===hr?(p=hr,r+=2):(p=e,x===0&&C(Os)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Mr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===xr?(p=i.substr(r,2),r+=2):(p=e,x===0&&C(ds)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=zi(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===is?(p=i.substr(r,3),r+=3):(p=e,x===0&&C(Vs)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,2).toLowerCase()===xr?(E=i.substr(r,2),r+=2):(E=e,x===0&&C(ds)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=zi(),T!==e?(a=[a,p,d,E,I,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}U=n,n=fl(t,u)}else r=n,n=e;return n}function Mr(){var n,t,u,o,a,p,d,E,I,T,S;if(n=r,t=_s(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=nr,r++):(p=e,x===0&&C(At)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Gl()),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=K,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=K,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}}a=[a,p],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=nr,r++):(p=e,x===0&&C(At)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=_s(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Gl()),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=K,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=K,r++):(I=e,x===0&&C(_r)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e;if(d===e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===47?(I=sr,r++):(I=e,x===0&&C(Xr)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Dr(),S!==e?(E=[E,I,T,S],d=E):(r=d,d=e)}else r=d,d=e}}a=[a,p],o=a}else r=o,o=e}}U=n,n=yf(t,u)}else r=n,n=e;return n}function _s(){var n,t,u,o,a,p,d,E;if(n=r,t=Dr(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=K,r++):(p=e,x===0&&C(_r)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=K,r++):(p=e,x===0&&C(_r)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=sr,r++):(p=e,x===0&&C(Xr)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Dr(),E!==e?(a=[a,p,d,E],o=a):(r=o,o=e)}else r=o,o=e}}U=n,n=br(t,u)}else r=n,n=e;return n}function Dr(){var n,t,u,o;if(n=r,i.charCodeAt(r)===33?(t=Wr,r++):(t=e,x===0&&C(In)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=So(),o!==e?(U=n,n=Sf(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=So(),o!==e?(U=n,n=Rp(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=So(),o!==e?(U=n,n=On(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=So())}}return n}function So(){var n,t;return n=Rl(),n===e&&(n=yl(),n===e&&(n=CE(),n===e&&(n=r,t=Sl(),t!==e&&(U=n,t=yp(t)),n=t,n===e&&(n=r,t=Ll(),t!==e&&(U=n,t=ga(t)),n=t,n===e&&(n=r,t=Ul(),t!==e&&(U=n,t=Sp(t)),n=t,n===e&&(n=r,t=pr(),t!==e&&(U=n,t=Yr(t)),n=t)))))),n}function Rl(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===41?(p=W,r++):(p=e,x===0&&C(ue)),p!==e?(U=n,n=Lp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function yl(){var n,t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te;if(n=IE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===ss?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Cc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=wp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===It?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Xa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Gp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,11).toLowerCase()===kr?(t=i.substr(r,11),r+=11):(t=e,x===0&&C(Ru)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Ea(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===vi?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Pa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=s(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Ns?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ya)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=pr(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=l(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===rn?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Cn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=g(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===tn?(t=i.substr(r,3),r+=3):(t=e,x===0&&C($o)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=h(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Oo?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(yu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=r,i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(a=[a,p,d,E,I],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e;o===e&&(o=ei()),o!==e?(U=n,n=v(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===sn?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(qo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=b()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ya?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(xc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=N(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Xt?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=y(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Bi?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ac)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=w(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===nn?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Ha)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=G(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Vo?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(U=n,n=k(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=gE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===Xn?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(xn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=_(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=EE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===on?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(qn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ie(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===ai?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Nc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=te(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,14).toLowerCase()===an?(t=i.substr(r,14),r+=14):(t=e,x===0&&C(Ko)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ae(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Oi?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Su)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Wo?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(Kn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=he(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Zo?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(Lu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=ve(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ln?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Ws)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Qe?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(eo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Ie(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===re?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Zs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Re(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===me?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(ro)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ke(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===we?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(bn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=We(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Nr?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(wu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=tr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===nt?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Gu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Tr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===rr?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Uu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ut(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Ae?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Tc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Ur(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===Ct?(t=i.substr(r,2),r+=2):(t=e,x===0&&C(Ms)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Jt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ii?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Ds)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=Mt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Pt?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Rc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=jr()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Je?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(yc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ei(),o!==e?(U=n,n=Dt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ci?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Sc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ht(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ns?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Lc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=tt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Sa?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=zr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===pe?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Zr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===ze?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(Ht)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Qt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===La?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(at)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(U=n,n=Vn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===wa?(t=i.substr(r,2),r+=2):(t=e,x===0&&C(wt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===44?(B=De,r++):(B=e,x===0&&C(Ye)),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();if(oe=se(),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();i.charCodeAt(r)===41?(Te=W,r++):(Te=e,x===0&&C(ue)),Te!==e?(U=n,n=Is(p,T,oe)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Mo?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(lt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=Rt(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Do?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(to)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=wi(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===ru?(t=i.substr(r,8),r+=8):(t=e,x===0&&C(Uc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e?(U=n,n=ft(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===$e?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(ea)),t===e&&(i.substr(r,5).toLowerCase()===qf?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Fc))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=cl(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===tu?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Hi(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Qo?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(Oc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=ks(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===xi?(t=i.substr(r,9),r+=9):(t=e,x===0&&C(_a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=n,n=Xs(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=hE(),n===e&&(n=mE(),n===e&&(n=vE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function hE(){var n,t,u,o,a,p,d,E,I,T,S,B,P,oe,ge;if(n=r,i.substr(r,5).toLowerCase()===iu?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Fu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=r,i.charCodeAt(r)===44?(P=De,r++):(P=e,x===0&&C(Ye)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();ge=se(),ge!==e?(P=[P,oe,ge],B=P):(r=B,B=e)}else r=B,B=e;for(B===e&&(B=null),P=[],oe=c();oe!==e;)P.push(oe),oe=c();i.charCodeAt(r)===41?(oe=W,r++):(oe=e,x===0&&C(ue)),oe!==e?(U=n,n=Gt(p,T,B)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function gE(){var n,t,u,o,a,p,d,E,I,T,S,B,P,oe,ge;if(n=r,i.substr(r,6).toLowerCase()===su?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=r,i.charCodeAt(r)===44?(P=De,r++):(P=e,x===0&&C(Ye)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();ge=se(),ge!==e?(P=[P,oe,ge],B=P):(r=B,B=e)}else r=B,B=e;for(B===e&&(B=null),P=[],oe=c();oe!==e;)P.push(oe),oe=c();i.charCodeAt(r)===41?(oe=W,r++):(oe=e,x===0&&C(ue)),oe!==e?(U=n,n=Wn(p,T,B)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function EE(){var n,t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te,Fe,ir,_t;if(n=r,i.substr(r,7).toLowerCase()===Pn?(t=i.substr(r,7),r+=7):(t=e,x===0&&C(Vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===44?(E=De,r++):(E=e,x===0&&C(Ye)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=se(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===44?(B=De,r++):(B=e,x===0&&C(Ye)),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();if(oe=se(),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(Te=r,i.charCodeAt(r)===44?(Fe=De,r++):(Fe=e,x===0&&C(Ye)),Fe!==e){for(ir=[],_t=c();_t!==e;)ir.push(_t),_t=c();_t=se(),_t!==e?(Fe=[Fe,ir,_t],Te=Fe):(r=Te,Te=e)}else r=Te,Te=e;for(Te===e&&(Te=null),Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();i.charCodeAt(r)===41?(ir=W,r++):(ir=e,x===0&&C(ue)),ir!==e?(U=n,n=pl(p,T,oe,Te)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function mE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===Yn?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(io)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ct(),o!==e?(U=n,n=Ah(o)):(r=n,n=e)}else r=n,n=e;return n}function vE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===is?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Vs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Yn?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(io)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ct(),p!==e?(U=n,n=Nh(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function IE(){var n,t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te,Fe;if(n=r,i.substr(r,5).toLowerCase()===nu?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(za)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===42?(E=K,r++):(E=e,x===0&&C(_r)),E===e&&(E=se()),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Th(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ga?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Rh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ou?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Ou)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=yh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===au?(t=i.substr(r,3),r+=3):(t=e,x===0&&C($a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Sh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===lu?(t=i.substr(r,3),r+=3):(t=e,x===0&&C(Vu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=Lh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===uu?(t=i.substr(r,6),r+=6):(t=e,x===0&&C(so)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=n,n=wh(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,12).toLowerCase()===Kf?(t=i.substr(r,12),r+=12):(t=e,x===0&&C(Wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===Y?(p=i.substr(r,8),r+=8):(p=e,x===0&&C(xt)),p===e&&(p=null),d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=r,T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===59?(S=or,r++):(S=e,x===0&&C($t)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();if(i.substr(r,9).toLowerCase()===ec?(P=i.substr(r,9),r+=9):(P=e,x===0&&C(ra)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(i.charCodeAt(r)===61?(ge=Sr,r++):(ge=e,x===0&&C(Yt)),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();Fe=ld(),Fe!==e?(T=[T,S,B,P,oe,ge,Te,Fe],I=T):(r=I,I=e)}else r=I,I=e}else r=I,I=e}else r=I,I=e;for(I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=n,n=Gh(p,E,I)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}}}}}return n}function CE(){var n,t,u,o;if(n=r,t=vr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=td(),o===e&&(o=null),U=n,n=Uh(t,o)}else r=n,n=e;return n}function Sl(){var n,t,u,o,a;return n=r,t=ld(),t!==e?(u=SE(),u===e&&(u=r,i.substr(r,2)===ko?(o=ko,r+=2):(o=e,x===0&&C(Xi)),o!==e?(a=vr(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),U=n,n=Fh(t,u)):(r=n,n=e),n}function Ll(){var n;return n=xE(),n===e&&(n=wl(),n===e&&(n=Gl())),n}function xE(){var n;return n=Vl(),n===e&&(n=Ol(),n===e&&(n=js())),n}function wl(){var n;return n=GE(),n===e&&(n=wE(),n===e&&(n=LE())),n}function Gl(){var n;return n=BE(),n===e&&(n=FE(),n===e&&(n=UE())),n}function Ul(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Vi?(t=i.substr(r,4),r+=4):(t=e,x===0&&C(Wu)),t!==e&&(U=n,t=Bh()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===rc?(t=i.substr(r,5),r+=5):(t=e,x===0&&C(Zc)),t!==e&&(U=n,t=Oh()),n=t),n}function ld(){var n;return n=WE(),n===e&&(n=ZE(),n===e&&(n=OE(),n===e&&(n=VE()))),n}function vr(){var n,t;return n=r,t=Fl(),t!==e&&(U=n,t=Vh(t)),n=t,n===e&&(n=r,t=bE(),t!==e&&(U=n,t=Wh(t)),n=t),n}function bE(){var n,t;return n=r,t=NE(),t!==e&&(U=n,t=Zh(t)),n=t,n===e&&(n=r,t=Bl(),t!==e&&(U=n,t=Mh(t)),n=t),n}function AE(){var n,t;return n=r,t=TE(),t!==e&&(U=n,t=Dh(t)),n=t,n===e&&(n=r,t=DE(),t!==e&&(U=n,t=Qh()),n=t),n}function Fl(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Oe,r++):(t=e,x===0&&C(ps)),t!==e){for(u=[],Po.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ta));o!==e;)u.push(o),Po.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ta));i.charCodeAt(r)===62?(o=oi,r++):(o=e,x===0&&C($n)),o!==e?(U=n,n=kh(u)):(r=n,n=e)}else r=n,n=e;return n}function Bl(){var n,t,u;return n=r,t=QE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=zt,r++):(u=e,x===0&&C(Lr)),u!==e?(U=n,n=Xh(t)):(r=n,n=e),n}function NE(){var n,t,u;return n=r,t=Bl(),t!==e?(u=kE(),u!==e?(U=n,n=Ph(t,u)):(r=n,n=e)):(r=n,n=e),n}function TE(){var n,t,u,o,a,p,d;if(n=r,i.substr(r,2)===un?(t=un,r+=2):(t=e,x===0&&C(gr)),t!==e)if(u=qi(),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe))),u!==e){for(o=[],a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));U=n,n=Yh()}else r=n,n=e;else r=n,n=e;return n}function RE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=dt,r++):(t=e,x===0&&C(Fs)),t!==e?(u=cd(),u!==e?(U=n,n=Hh(u)):(r=n,n=e)):(r=n,n=e),n}function yE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ts,r++):(t=e,x===0&&C(yi)),t!==e?(u=cd(),u!==e?(U=n,n=Jh(u)):(r=n,n=e)):(r=n,n=e),n}function SE(){var n,t,u,o,a,p,d,E;if(n=r,i.charCodeAt(r)===64?(t=Ua,r++):(t=e,x===0&&C(Si)),t!==e){if(u=[],Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ia)),o!==e)for(;o!==e;)u.push(o),Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(ia));else u=e;if(u!==e){if(o=[],a=r,i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){if(d=[],as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi)),E!==e)for(;E!==e;)d.push(E),as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi));else d=e;d!==e?(p=[p,d],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(p=ar,r++):(p=e,x===0&&C(Pr)),p!==e){if(d=[],as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi)),E!==e)for(;E!==e;)d.push(E),as.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,x===0&&C(Pi));else d=e;d!==e?(p=[p,d],a=p):(r=a,a=e)}else r=a,a=e;U=n,n=_h(u,o)}else r=n,n=e}else r=n,n=e;return n}function js(){var n,t,u;if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));else t=e;return t!==e&&(U=n,t=jh()),n=t,n}function Ol(){var n,t,u,o,a;for(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));if(i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u!==e){if(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));else o=e;o!==e?(U=n,n=zh()):(r=n,n=e)}else r=n,n=e;return n}function Vl(){var n,t,u,o,a;if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u!==e){for(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));a=Wl(),a!==e?(U=n,n=$h()):(r=n,n=e)}else r=n,n=e;else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===46?(t=Ue,r++):(t=e,x===0&&C(er)),t!==e){if(u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;u!==e?(o=Wl(),o!==e?(U=n,n=qh()):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe));else t=e;t!==e?(u=Wl(),u!==e?(U=n,n=Kh()):(r=n,n=e)):(r=n,n=e)}}return n}function LE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e?(u=js(),u!==e?(U=n,n=eg(u)):(r=n,n=e)):(r=n,n=e),n}function wE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e?(u=Ol(),u!==e?(U=n,n=rg(u)):(r=n,n=e)):(r=n,n=e),n}function GE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)),t!==e?(u=Vl(),u!==e?(U=n,n=tg(u)):(r=n,n=e)):(r=n,n=e),n}function UE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e?(u=js(),u!==e?(U=n,n=ig(u)):(r=n,n=e)):(r=n,n=e),n}function FE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e?(u=Ol(),u!==e?(U=n,n=sg(u)):(r=n,n=e)):(r=n,n=e),n}function BE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t!==e?(u=Vl(),u!==e?(U=n,n=ng(u)):(r=n,n=e)):(r=n,n=e),n}function Wl(){var n,t,u,o,a;if(n=r,li.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Zu)),t!==e){if(tc.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Mc)),u===e&&(u=null),o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));else o=e;o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function OE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Wi,r++):(t=e,x===0&&C(fi)),t!==e){for(u=[],Oa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Qs)),o===e&&(o=Kt());o!==e;)u.push(o),Oa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Qs)),o===e&&(o=Kt());i.charCodeAt(r)===39?(o=Wi,r++):(o=e,x===0&&C(fi)),o!==e?(U=n,n=og(u)):(r=n,n=e)}else r=n,n=e;return n}function VE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===34?(t=Rs,r++):(t=e,x===0&&C(hs)),t!==e){for(u=[],Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(no)),o===e&&(o=Kt());o!==e;)u.push(o),Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(no)),o===e&&(o=Kt());i.charCodeAt(r)===34?(o=Rs,r++):(o=e,x===0&&C(hs)),o!==e?(U=n,n=ag(u)):(r=n,n=e)}else r=n,n=e;return n}function WE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ys?(t=ys,r+=3):(t=e,x===0&&C(Li)),t!==e){for(u=[],o=r,i.substr(r,2)===Zi?(a=Zi,r+=2):(a=e,x===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Wi,r++):(a=e,x===0&&C(fi))),a===e&&(a=null),Yo.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(na)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Zi?(a=Zi,r+=2):(a=e,x===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Wi,r++):(a=e,x===0&&C(fi))),a===e&&(a=null),Yo.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(na)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ys?(o=ys,r+=3):(o=e,x===0&&C(Li)),o!==e?(U=n,n=lg(u)):(r=n,n=e)}else r=n,n=e;return n}function ZE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===os?(t=os,r+=3):(t=e,x===0&&C(qa)),t!==e){for(u=[],o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,x===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,x===0&&C(hs))),a===e&&(a=null),bi.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(oo)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,x===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,x===0&&C(hs))),a===e&&(a=null),bi.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(oo)),p===e&&(p=Kt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===os?(o=os,r+=3):(o=e,x===0&&C(qa)),o!==e?(U=n,n=ug(u)):(r=n,n=e)}else r=n,n=e;return n}function Kt(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Xo,r++):(t=e,x===0&&C(oa)),t!==e?(Va.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Dc)),u!==e?(U=n,n=fg()):(r=n,n=e)):(r=n,n=e),n}function ei(){var n,t,u,o;if(n=r,i.charCodeAt(r)===40?(t=D,r++):(t=e,x===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function c(){var n;return n=ME(),n===e&&(n=Zl(),n===e&&(n=Ml())),n}function Zl(){var n;return Mi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Mu)),n}function Ml(){var n;return Ho.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Qc)),n}function Lo(){var n;return Wa.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(kc)),n}function ud(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=fn,r++):(t=e,x===0&&C(gs)),t!==e){for(u=[],o=Lo();o!==e;)u.push(o),o=Lo();o=Ml(),o!==e?(U=n,n=cg()):(r=n,n=e)}else r=n,n=e;return n}function ME(){var n,t,u,o,a,p;for(n=r,t=Ml(),t===e&&(t=null),u=[],o=Zl();o!==e;)u.push(o),o=Zl();if(i.charCodeAt(r)===35?(o=fn,r++):(o=e,x===0&&C(gs)),o!==e){for(a=[],p=Lo();p!==e;)a.push(p),p=Lo();U=n,n=pg()}else r=n,n=e;return n}function DE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===91?(t=vt,r++):(t=e,x===0&&C(Bs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===93?(o=Bt,r++):(o=e,x===0&&C(ui)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function fd(){var n;return dn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Du)),n===e&&(ic.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xc)),n===e&&(sc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Pc)),n===e&&(nc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Qu)),n===e&&(oc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Nn)),n===e&&(cu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Ka)),n===e&&(pu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(aa)),n===e&&(ac.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(ku)),n===e&&(lc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(el)),n===e&&(uc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xu)),n===e&&(fc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Yc)),n===e&&(du.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Pu)),n===e&&(cc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Tt)))))))))))))),n}function qi(){var n;return n=fd(),n===e&&(i.charCodeAt(r)===95?(n=cn,r++):(n=e,x===0&&C(Tn))),n}function cd(){var n,t,u,o;if(n=r,t=qi(),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe))),t!==e){for(u=[],o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o===e&&(hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Rn)),o===e&&(ls.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Sn))))));o!==e;)u.push(o),o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o===e&&(hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Rn)),o===e&&(ls.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Sn))))));U=n,n=dg()}else r=n,n=e;return n}function qr(){var n;return n=qi(),n===e&&(i.charCodeAt(r)===45?(n=ar,r++):(n=e,x===0&&C(Pr)),n===e&&(_e.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xe)),n===e&&(hn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Rn)),n===e&&(ls.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(yn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Sn))))))),n}function QE(){var n,t,u,o,a,p;if(n=r,t=fd(),t!==e){for(u=[],o=qr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=qr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=hg()}else r=n,n=e;return n}function kE(){var n,t,u,o,a,p;if(n=r,t=qi(),t===e&&(i.charCodeAt(r)===58?(t=zt,r++):(t=e,x===0&&C(Lr)),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe)),t===e&&(t=zs()))),t!==e){for(u=[],o=qr(),o===e&&(i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p===e&&(i.charCodeAt(r)===58?(p=zt,r++):(p=e,x===0&&C(Lr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=qr(),o===e&&(i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Ue,r++):(a=e,x===0&&C(er)),a!==e?(p=qr(),p===e&&(i.charCodeAt(r)===58?(p=zt,r++):(p=e,x===0&&C(Lr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=gg()}else r=n,n=e;return n}function zs(){var n;return n=XE(),n===e&&(n=PE()),n}function XE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=pn,r++):(t=e,x===0&&C(Es)),t!==e?(u=pd(),u!==e?(o=pd(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function pd(){var n;return _e.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Xe)),n===e&&(pc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(la)),n===e&&(dc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,x===0&&C(Yu)))),n}function PE(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Xo,r++):(t=e,x===0&&C(oa)),t!==e?(i.charCodeAt(r)===95?(u=cn,r++):(u=e,x===0&&C(Tn)),u===e&&(i.charCodeAt(r)===126?(u=Fa,r++):(u=e,x===0&&C(Hu)),u===e&&(i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u===e&&(i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u===e&&(i.charCodeAt(r)===33?(u=Wr,r++):(u=e,x===0&&C(In)),u===e&&(i.charCodeAt(r)===36?(u=Ts,r++):(u=e,x===0&&C(yi)),u===e&&(i.charCodeAt(r)===38?(u=fu,r++):(u=e,x===0&&C(Ju)),u===e&&(i.charCodeAt(r)===39?(u=Wi,r++):(u=e,x===0&&C(fi)),u===e&&(i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u===e&&(i.charCodeAt(r)===41?(u=W,r++):(u=e,x===0&&C(ue)),u===e&&(i.charCodeAt(r)===42?(u=K,r++):(u=e,x===0&&C(_r)),u===e&&(i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u===e&&(i.charCodeAt(r)===44?(u=De,r++):(u=e,x===0&&C(Ye)),u===e&&(i.charCodeAt(r)===59?(u=or,r++):(u=e,x===0&&C($t)),u===e&&(i.charCodeAt(r)===58?(u=zt,r++):(u=e,x===0&&C(Lr)),u===e&&(i.charCodeAt(r)===61?(u=Sr,r++):(u=e,x===0&&C(Yt)),u===e&&(i.charCodeAt(r)===47?(u=sr,r++):(u=e,x===0&&C(Xr)),u===e&&(i.charCodeAt(r)===63?(u=dt,r++):(u=e,x===0&&C(Fs)),u===e&&(i.charCodeAt(r)===35?(u=fn,r++):(u=e,x===0&&C(gs)),u===e&&(i.charCodeAt(r)===64?(u=Ua,r++):(u=e,x===0&&C(Si)),u===e&&(i.charCodeAt(r)===37?(u=pn,r++):(u=e,x===0&&C(Es)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let dd={};if(bo=L(),bo!==e&&r===i.length)return bo;throw bo!==e&&r<i.length&&C(Eg()),Fp(dl,yt<i.length?i.charAt(yt):null,yt<i.length?Ps(yt,yt+1):Ps(yt,yt))}function N1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function Kl(i,m,e,A){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,Kl.prototype),R.expected=m,R.found=e,R.location=A,R.name="SyntaxError",R}N1(Kl,Error);function Zm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}Kl.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,A;for(A=0;A<i.length;A++)if(i[A].source===this.location.source){e=i[A].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,F=this.location.source+":"+L.line+":"+L.column;if(e){var Z=this.location.end,M=Zm("",L.line.toString().length," "),Y=e[R.line-1],X=R.line===Z.line?Z.column:Y.length+1,D=X-R.column||1;m+=`
70
70
  --> `+F+`
71
71
  `+M+` |
72
72
  `+L.line+" | "+Y+`
73
73
  `+M+" | "+Zm("",R.column-1," ")+Zm("",D,"^")}else m+=`
74
- at `+F}return m};Kl.buildMessage=function(i,m){var e={literal:function(Y){return'"'+R(Y.text)+'"'},class:function(Y){var P=Y.parts.map(function(D){return Array.isArray(D)?L(D[0])+"-"+L(D[1]):L(D)});return"["+(Y.inverted?"^":"")+P.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(Y){return Y.description}};function A(Y){return Y.charCodeAt(0).toString(16).toUpperCase()}function R(Y){return Y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(P){return"\\x0"+A(P)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(P){return"\\x"+A(P)})}function L(Y){return Y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(P){return"\\x0"+A(P)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(P){return"\\x"+A(P)})}function F(Y){return e[Y.type](Y)}function Z(Y){var P=Y.map(F),D,z;if(P.sort(),P.length>0){for(D=1,z=1;D<P.length;D++)P[D-1]!==P[D]&&(P[z]=P[D],z++);P.length=z}switch(P.length){case 1:return P[0];case 2:return P[0]+" or "+P[1];default:return P.slice(0,-1).join(", ")+", or "+P[P.length-1]}}function M(Y){return Y?'"'+R(Y)+'"':"end of input"}return"Expected "+Z(i)+" but "+M(m)+" found."};function Mm(i,m){m=m!==void 0?m:{};var e={},A=m.grammarSource,R={DOCUMENT:Bp},L=Bp,F="base",Z="prefix",M="select",Y="distinct",P="reduced",D="(",z="as",W=")",$="*",J="construct",O="where",V="{",H="}",q="describe",K="ask",ee="from",ne="named",de="group",Se="by",be="having",Ze="order",Be="asc",Ke="desc",Ee="limit",Er="offset",ur="values",or=";",Or="load",je="silent",et="into",rt="clear",cr="drop",qe="create",Pe="add",Ir="to",Me="move",Rr="copy",dr="insert",Hr="data",Cr="delete",ti="with",Ge="using",fe="default",Ar="graph",mr="all",Ue=".",Vr="optional",ii="service",xe="bind",Ft="UNDEF",gt="minus",Et="union",ts="filter",De=",",mt="a",Le="|",sr="/",pt="^",dt="?",nr="+",Wr="!",vt="[",Bt="]",Lt="||",si="&&",Sr="=",Ot="!=",Oe="<",oi=">",Jr="<=",hr=">=",xr="in",is="not",ar="-",ss="str",It="lang",kr="langmatches",vi="datatype",Ns="bound",rn="iri",tn="uri",Oo="bnode",sn="rand",ya="abs",Xt="ceil",Bi="floor",nn="round",Vo="concat",Xn="strlen",on="ucase",ai="lcase",an="encode_for_uri",Oi="contains",Wo="strbefore",Zo="strstarts",ln="strends",Qe="strafter",re="year",me="month",we="day",Nr="hours",nt="minutes",rr="seconds",Ae="timezone",Ct="tz",Ii="now",Pt="uuid",Je="struuid",Ci="md5",ns="sha1",Sa="sha256",pe="sha384",ze="sha512",La="coalesce",wa="if",Mo="strlang",Do="strdt",ru="sameterm",$e="isuri",qf="isiri",tu="isblank",Qo="isliteral",xi="isnumeric",iu="regex",su="substr",Pn="replace",Yn="exists",nu="count",Ga="sum",ou="min",au="max",lu="avg",uu="sample",Kf="group_concat",ec="separator",ko="^^",Vi="true",rc="false",zt=":",un="_:",Ts="$",Ua="@",Wi="'",Rs='"',ys="'''",Zi="''",os='"""',Ss='""',Xo="\\",fn="#",cn="_",pn="%",Fa="~",fu="&",Po=/^[^<>"{}|\^`\\\0- ]/,_e=/^[0-9]/,Ba=/^[a-zA-Z]/,as=/^[a-zA-Z0-9]/,li=/^[eE]/,tc=/^[+\-]/,Oa=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Yo=/^[^'\\]/,bi=/^[^"\\]/,Va=/^[tbnrf\\"']/,Mi=/^[ \t]/,Ho=/^[\r\n]/,Wa=/^[^\r\n]/,dn=/^[A-Z]/,ic=/^[a-z]/,sc=/^[\xC0-\xD6]/,nc=/^[\xD8-\xF6]/,oc=/^[\xF8-\u02FF]/,cu=/^[\u0370-\u037D]/,pu=/^[\u037F-\u1FFF]/,ac=/^[\u200C-\u200D]/,lc=/^[\u2070-\u218F]/,uc=/^[\u2C00-\u2FEF]/,fc=/^[\u3001-\uD7FF]/,du=/^[\uF900-\uFDCF]/,cc=/^[\uFDF0-\uFFFD]/,hn=/^[\xB7]/,ls=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,pc=/^[A-F]/,dc=/^[a-f]/,hc=Q("BASE",!0),Jn=Q("PREFIX",!0),ot=Q("SELECT",!0),xt=Q("DISTINCT",!0),hu=Q("REDUCED",!0),le=Q("(",!1),Ls=Q("AS",!0),ue=Q(")",!1),_r=Q("*",!1),_n=Q("CONSTRUCT",!0),us=Q("WHERE",!0),Vt=Q("{",!1),Wt=Q("}",!1),gu=Q("DESCRIBE",!0),Eu=Q("ASK",!0),gc=Q("FROM",!0),Di=Q("NAMED",!0),Qi=Q("GROUP",!0),gn=Q("BY",!0),Za=Q("HAVING",!0),mu=Q("ORDER",!0),Ni=Q("ASC",!0),ws=Q("DESC",!0),Ma=Q("LIMIT",!0),Ec=Q("OFFSET",!0),Jo=Q("VALUES",!0),$t=Q(";",!1),vu=Q("LOAD",!0),bt=Q("SILENT",!0),En=Q("INTO",!0),Ti=Q("CLEAR",!0),Iu=Q("DROP",!0),Cu=Q("CREATE",!0),mc=Q("ADD",!0),jn=Q("TO",!0),vc=Q("MOVE",!0),xu=Q("COPY",!0),_o=Q("INSERT",!0),Gs=Q("DATA",!0),mn=Q("DELETE",!0),bu=Q("WITH",!0),Da=Q("USING",!0),vn=Q("DEFAULT",!0),fs=Q("GRAPH",!0),jo=Q("ALL",!0),er=Q(".",!1),Au=Q("OPTIONAL",!0),Qa=Q("SERVICE",!0),ka=Q("BIND",!0),Nu=Q("UNDEF",!1),Tu=Q("MINUS",!0),zn=Q("UNION",!0),Ic=Q("FILTER",!0),Ye=Q(",",!1),Us=Q("a",!1),qt=Q("|",!1),Xr=Q("/",!1),cs=Q("^",!1),Fs=Q("?",!1),At=Q("+",!1),In=Q("!",!1),Bs=Q("[",!1),ui=Q("]",!1),ki=Q("||",!1),Nt=Q("&&",!1),Yt=Q("=",!1),Ri=Q("!=",!1),ps=Q("<",!1),$n=Q(">",!1),zo=Q("<=",!1),Os=Q(">=",!1),ds=Q("IN",!0),Vs=Q("NOT",!0),Pr=Q("-",!1),Cc=Q("STR",!0),Xa=Q("LANG",!0),Ru=Q("LANGMATCHES",!0),Pa=Q("DATATYPE",!0),Ya=Q("BOUND",!0),Cn=Q("IRI",!0),$o=Q("URI",!0),yu=Q("BNODE",!0),qo=Q("RAND",!0),xc=Q("ABS",!0),bc=Q("CEIL",!0),Ac=Q("FLOOR",!0),Ha=Q("ROUND",!0),Ja=Q("CONCAT",!0),xn=Q("STRLEN",!0),qn=Q("UCASE",!0),Nc=Q("LCASE",!0),Ko=Q("ENCODE_FOR_URI",!0),Su=Q("CONTAINS",!0),Kn=Q("STRBEFORE",!0),Lu=Q("STRSTARTS",!0),Ws=Q("STRENDS",!0),eo=Q("STRAFTER",!0),Zs=Q("YEAR",!0),ro=Q("MONTH",!0),bn=Q("DAY",!0),wu=Q("HOURS",!0),Gu=Q("MINUTES",!0),Uu=Q("SECONDS",!0),Tc=Q("TIMEZONE",!0),Ms=Q("TZ",!0),Ds=Q("NOW",!0),Rc=Q("UUID",!0),yc=Q("STRUUID",!0),Sc=Q("MD5",!0),Lc=Q("SHA1",!0),wc=Q("SHA256",!0),Gc=Q("SHA384",!0),Ht=Q("SHA512",!0),at=Q("COALESCE",!0),wt=Q("IF",!0),lt=Q("STRLANG",!0),to=Q("STRDT",!0),Uc=Q("sameTerm",!0),ea=Q("isURI",!0),Fc=Q("isIRI",!0),Bc=Q("isBLANK",!0),Oc=Q("isLITERAL",!0),_a=Q("isNUMERIC",!0),Fu=Q("REGEX",!0),ja=Q("SUBSTR",!0),Vc=Q("REPLACE",!0),io=Q("EXISTS",!0),za=Q("COUNT",!0),Bu=Q("SUM",!0),Ou=Q("MIN",!0),$a=Q("MAX",!0),Vu=Q("AVG",!0),so=Q("SAMPLE",!0),Wc=Q("GROUP_CONCAT",!0),ra=Q("SEPARATOR",!0),Xi=Q("^^",!1),Wu=Q("true",!0),Zc=Q("false",!0),ta=Ve(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Lr=Q(":",!1),gr=Q("_:",!1),Xe=Ve([["0","9"]],!1,!1),yi=Q("$",!1),Si=Q("@",!1),ia=Ve([["a","z"],["A","Z"]],!1,!1),Pi=Ve([["a","z"],["A","Z"],["0","9"]],!1,!1),Zu=Ve(["e","E"],!1,!1),Mc=Ve(["+","-"],!1,!1),fi=Q("'",!1),Qs=Ve(["'","\\",`
74
+ at `+F}return m};Kl.buildMessage=function(i,m){var e={literal:function(Y){return'"'+R(Y.text)+'"'},class:function(Y){var X=Y.parts.map(function(D){return Array.isArray(D)?L(D[0])+"-"+L(D[1]):L(D)});return"["+(Y.inverted?"^":"")+X.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(Y){return Y.description}};function A(Y){return Y.charCodeAt(0).toString(16).toUpperCase()}function R(Y){return Y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(X){return"\\x0"+A(X)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(X){return"\\x"+A(X)})}function L(Y){return Y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(X){return"\\x0"+A(X)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(X){return"\\x"+A(X)})}function F(Y){return e[Y.type](Y)}function Z(Y){var X=Y.map(F),D,z;if(X.sort(),X.length>0){for(D=1,z=1;D<X.length;D++)X[D-1]!==X[D]&&(X[z]=X[D],z++);X.length=z}switch(X.length){case 1:return X[0];case 2:return X[0]+" or "+X[1];default:return X.slice(0,-1).join(", ")+", or "+X[X.length-1]}}function M(Y){return Y?'"'+R(Y)+'"':"end of input"}return"Expected "+Z(i)+" but "+M(m)+" found."};function Mm(i,m){m=m!==void 0?m:{};var e={},A=m.grammarSource,R={DOCUMENT:Bp},L=Bp,F="base",Z="prefix",M="select",Y="distinct",X="reduced",D="(",z="as",W=")",K="*",J="construct",O="where",V="{",H="}",$="describe",q="ask",ee="from",ne="named",de="group",Se="by",be="having",Ze="order",Be="asc",Ke="desc",Ee="limit",Er="offset",ur="values",or=";",Or="load",je="silent",et="into",rt="clear",cr="drop",qe="create",Pe="add",Ir="to",Me="move",Rr="copy",dr="insert",Hr="data",Cr="delete",ti="with",Ge="using",fe="default",Ar="graph",mr="all",Ue=".",Vr="optional",ii="service",xe="bind",Ft="UNDEF",gt="minus",Et="union",ts="filter",De=",",mt="a",Le="|",sr="/",pt="^",dt="?",nr="+",Wr="!",vt="[",Bt="]",Lt="||",si="&&",Sr="=",Ot="!=",Oe="<",oi=">",Jr="<=",hr=">=",xr="in",is="not",ar="-",ss="str",It="lang",kr="langmatches",vi="datatype",Ns="bound",rn="iri",tn="uri",Oo="bnode",sn="rand",ya="abs",Xt="ceil",Bi="floor",nn="round",Vo="concat",Xn="strlen",on="ucase",ai="lcase",an="encode_for_uri",Oi="contains",Wo="strbefore",Zo="strstarts",ln="strends",Qe="strafter",re="year",me="month",we="day",Nr="hours",nt="minutes",rr="seconds",Ae="timezone",Ct="tz",Ii="now",Pt="uuid",Je="struuid",Ci="md5",ns="sha1",Sa="sha256",pe="sha384",ze="sha512",La="coalesce",wa="if",Mo="strlang",Do="strdt",ru="sameterm",$e="isuri",qf="isiri",tu="isblank",Qo="isliteral",xi="isnumeric",iu="regex",su="substr",Pn="replace",Yn="exists",nu="count",Ga="sum",ou="min",au="max",lu="avg",uu="sample",Kf="group_concat",ec="separator",ko="^^",Vi="true",rc="false",zt=":",un="_:",Ts="$",Ua="@",Wi="'",Rs='"',ys="'''",Zi="''",os='"""',Ss='""',Xo="\\",fn="#",cn="_",pn="%",Fa="~",fu="&",Po=/^[^<>"{}|\^`\\\0- ]/,_e=/^[0-9]/,Ba=/^[a-zA-Z]/,as=/^[a-zA-Z0-9]/,li=/^[eE]/,tc=/^[+\-]/,Oa=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Yo=/^[^'\\]/,bi=/^[^"\\]/,Va=/^[tbnrf\\"']/,Mi=/^[ \t]/,Ho=/^[\r\n]/,Wa=/^[^\r\n]/,dn=/^[A-Z]/,ic=/^[a-z]/,sc=/^[\xC0-\xD6]/,nc=/^[\xD8-\xF6]/,oc=/^[\xF8-\u02FF]/,cu=/^[\u0370-\u037D]/,pu=/^[\u037F-\u1FFF]/,ac=/^[\u200C-\u200D]/,lc=/^[\u2070-\u218F]/,uc=/^[\u2C00-\u2FEF]/,fc=/^[\u3001-\uD7FF]/,du=/^[\uF900-\uFDCF]/,cc=/^[\uFDF0-\uFFFD]/,hn=/^[\xB7]/,ls=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,pc=/^[A-F]/,dc=/^[a-f]/,hc=Q("BASE",!0),Jn=Q("PREFIX",!0),ot=Q("SELECT",!0),xt=Q("DISTINCT",!0),hu=Q("REDUCED",!0),le=Q("(",!1),Ls=Q("AS",!0),ue=Q(")",!1),_r=Q("*",!1),_n=Q("CONSTRUCT",!0),us=Q("WHERE",!0),Vt=Q("{",!1),Wt=Q("}",!1),gu=Q("DESCRIBE",!0),Eu=Q("ASK",!0),gc=Q("FROM",!0),Di=Q("NAMED",!0),Qi=Q("GROUP",!0),gn=Q("BY",!0),Za=Q("HAVING",!0),mu=Q("ORDER",!0),Ni=Q("ASC",!0),ws=Q("DESC",!0),Ma=Q("LIMIT",!0),Ec=Q("OFFSET",!0),Jo=Q("VALUES",!0),$t=Q(";",!1),vu=Q("LOAD",!0),bt=Q("SILENT",!0),En=Q("INTO",!0),Ti=Q("CLEAR",!0),Iu=Q("DROP",!0),Cu=Q("CREATE",!0),mc=Q("ADD",!0),jn=Q("TO",!0),vc=Q("MOVE",!0),xu=Q("COPY",!0),_o=Q("INSERT",!0),Gs=Q("DATA",!0),mn=Q("DELETE",!0),bu=Q("WITH",!0),Da=Q("USING",!0),vn=Q("DEFAULT",!0),fs=Q("GRAPH",!0),jo=Q("ALL",!0),er=Q(".",!1),Au=Q("OPTIONAL",!0),Qa=Q("SERVICE",!0),ka=Q("BIND",!0),Nu=Q("UNDEF",!1),Tu=Q("MINUS",!0),zn=Q("UNION",!0),Ic=Q("FILTER",!0),Ye=Q(",",!1),Us=Q("a",!1),qt=Q("|",!1),Xr=Q("/",!1),cs=Q("^",!1),Fs=Q("?",!1),At=Q("+",!1),In=Q("!",!1),Bs=Q("[",!1),ui=Q("]",!1),ki=Q("||",!1),Nt=Q("&&",!1),Yt=Q("=",!1),Ri=Q("!=",!1),ps=Q("<",!1),$n=Q(">",!1),zo=Q("<=",!1),Os=Q(">=",!1),ds=Q("IN",!0),Vs=Q("NOT",!0),Pr=Q("-",!1),Cc=Q("STR",!0),Xa=Q("LANG",!0),Ru=Q("LANGMATCHES",!0),Pa=Q("DATATYPE",!0),Ya=Q("BOUND",!0),Cn=Q("IRI",!0),$o=Q("URI",!0),yu=Q("BNODE",!0),qo=Q("RAND",!0),xc=Q("ABS",!0),bc=Q("CEIL",!0),Ac=Q("FLOOR",!0),Ha=Q("ROUND",!0),Ja=Q("CONCAT",!0),xn=Q("STRLEN",!0),qn=Q("UCASE",!0),Nc=Q("LCASE",!0),Ko=Q("ENCODE_FOR_URI",!0),Su=Q("CONTAINS",!0),Kn=Q("STRBEFORE",!0),Lu=Q("STRSTARTS",!0),Ws=Q("STRENDS",!0),eo=Q("STRAFTER",!0),Zs=Q("YEAR",!0),ro=Q("MONTH",!0),bn=Q("DAY",!0),wu=Q("HOURS",!0),Gu=Q("MINUTES",!0),Uu=Q("SECONDS",!0),Tc=Q("TIMEZONE",!0),Ms=Q("TZ",!0),Ds=Q("NOW",!0),Rc=Q("UUID",!0),yc=Q("STRUUID",!0),Sc=Q("MD5",!0),Lc=Q("SHA1",!0),wc=Q("SHA256",!0),Gc=Q("SHA384",!0),Ht=Q("SHA512",!0),at=Q("COALESCE",!0),wt=Q("IF",!0),lt=Q("STRLANG",!0),to=Q("STRDT",!0),Uc=Q("sameTerm",!0),ea=Q("isURI",!0),Fc=Q("isIRI",!0),Bc=Q("isBLANK",!0),Oc=Q("isLITERAL",!0),_a=Q("isNUMERIC",!0),Fu=Q("REGEX",!0),ja=Q("SUBSTR",!0),Vc=Q("REPLACE",!0),io=Q("EXISTS",!0),za=Q("COUNT",!0),Bu=Q("SUM",!0),Ou=Q("MIN",!0),$a=Q("MAX",!0),Vu=Q("AVG",!0),so=Q("SAMPLE",!0),Wc=Q("GROUP_CONCAT",!0),ra=Q("SEPARATOR",!0),Xi=Q("^^",!1),Wu=Q("true",!0),Zc=Q("false",!0),ta=Ve(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Lr=Q(":",!1),gr=Q("_:",!1),Xe=Ve([["0","9"]],!1,!1),yi=Q("$",!1),Si=Q("@",!1),ia=Ve([["a","z"],["A","Z"]],!1,!1),Pi=Ve([["a","z"],["A","Z"],["0","9"]],!1,!1),Zu=Ve(["e","E"],!1,!1),Mc=Ve(["+","-"],!1,!1),fi=Q("'",!1),Qs=Ve(["'","\\",`
75
75
  `,"\r"],!0,!1),hs=Q('"',!1),no=Ve(['"',"\\",`
76
76
  `,"\r"],!0,!1),Li=Q("'''",!1),sa=Q("''",!1),na=Ve(["'","\\"],!0,!1),qa=Q('"""',!1),An=Q('""',!1),oo=Ve(['"',"\\"],!0,!1),oa=Q("\\",!1),Dc=Ve(["t","b","n","r","f","\\",'"',"'"],!1,!1),Mu=Ve([" "," "],!1,!1),Qc=Ve(["\r",`
77
77
  `],!1,!1),kc=Ve(["\r",`
78
- `],!0,!1),gs=Q("#",!1),Du=Ve([["A","Z"]],!1,!1),Xc=Ve([["a","z"]],!1,!1),Pc=Ve([["\xC0","\xD6"]],!1,!1),Qu=Ve([["\xD8","\xF6"]],!1,!1),Nn=Ve([["\xF8","\u02FF"]],!1,!1),Ka=Ve([["\u0370","\u037D"]],!1,!1),aa=Ve([["\u037F","\u1FFF"]],!1,!1),ku=Ve([["\u200C","\u200D"]],!1,!1),el=Ve([["\u2070","\u218F"]],!1,!1),Xu=Ve([["\u2C00","\u2FEF"]],!1,!1),Yc=Ve([["\u3001","\uD7FF"]],!1,!1),Pu=Ve([["\uF900","\uFDCF"]],!1,!1),Tt=Ve([["\uFDF0","\uFFFD"]],!1,!1),Tn=Q("_",!1),Rn=Ve(["\xB7"],!1,!1),yn=Ve([["\u0300","\u036F"]],!1,!1),Sn=Ve([["\u203F","\u2040"]],!1,!1),Es=Q("%",!1),la=Ve([["A","F"]],!1,!1),Yu=Ve([["a","f"]],!1,!1),Hu=Q("~",!1),Ju=Q("&",!1),Ln=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(dd).map(([p,d])=>({pos:parseInt(p),text:d}));return a.length&&(o.comments=a),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...o}},_u=function(t,u,o){let a={type:"Query"};return t&&(a.prologue=t),u.type==="SelectQuery"?a.selectQuery=u:u.type==="ConstructQuery"?a.constructQuery=u:u.type==="DescribeQuery"?a.describeQuery=u:u.type==="AskQuery"&&(a.askQuery=u),o&&(a.values=o),a},ua=function(t){if(t.length)return{type:"Prologue",decl:t}},ju=function(t){return{type:"BaseDecl",iriref:t}},ao=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Hc=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},wn=function(t,u,o,a){let p={type:"SubSelect",selectClause:t,whereClause:u,...o,location:ye()};return a&&(p.values=a),p},zu=function(t,u){let o;u==="*"?o=["*"]:o=u.map(p=>p.length===2?p[1]:{expression:p[3],as:p[7]});let a={var:o};if(t){let p=t.toUpperCase();p==="DISTINCT"?a.distinct=!0:p==="REDUCED"&&(a.reduced=!0)}return a.location=ye(),a},$u=function(t,u,o,a){let p={type:"ConstructQuery"};return u.length&&(p.from=u),p={...p,template:t,where:o,...a,location:ye()},p},qu=function(t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,where:[u],...o,location:ye()},a},lo=function(t,u,o,a){let p={type:"DescribeQuery"};return u.length&&(p.from=u),p.describe=t,o&&(p.where=o),p={...p,...a,location:ye()},p},uo=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:ye()},a},fo=function(t){return t},co=function(t){return{graph:t,location:ye()}},Ku=function(t){return{namedGraph:t,location:ye()}},Jc=function(t){return t.graphPattern||t},ef=function(t,u,o,a){let p={};return t&&(p.group=t),u&&(p.having=u),o&&(p.orderBy=o),a&&(p.limitOffset=a),p},ms=function(t){return t},Gn=function(t){return t},po=function(t){return t},_c=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:ye()}:{bracketted:!0,...t}},rf=function(t){return t},jc=function(t){return t},zc=function(t){return t},$c=function(t){return t},Zt=function(t,u){let o={};return t.toUpperCase()==="ASC"?o={asc:!0,...u}:t.toUpperCase()==="DESC"&&(o={desc:!0,...u}),o},tf=function(t){return t},qc=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},Kc=function(t){return{limit:parseInt(t.literal)}},ep=function(t){return{offset:parseInt(t.literal)}},sf=function(t){return t?t[1]:null},nf=function(t,u){let o={type:"Update"};t&&(o.prologue=t);let a=[];return u&&(a=[u[1]],u[2]&&(a=a.concat(u[2][3].update))),o.update=a,o},of=function(t,u,o){let a={type:"load",silent:t,sourceGraph:u};return o&&(a.destinyGraph=o[2]),a},rp=function(t,u){return{type:"clear",silent:t,destinyGraph:u}},tp=function(t,u){return{type:"drop",silent:t,destinyGraph:u}},ip=function(t,u){return{type:"create",silent:t,destinyGraph:u}},vs=function(t,u,o){return{type:"add",silent:t,graphs:[u,o]}},ho=function(t,u,o){return{type:"move",silent:t,graphs:[u,o]}},fa=function(t,u,o){return{type:"copy",silent:t,graphs:[u,o]}},go=function(t){return{type:"insertdata",insert:t}},Yi=function(t){return{type:"deletedata",delete:t}},sp=function(t){return{type:"deletewhere",delete:t}},np=function(t,u,o,a){let p={type:"modify"};return t&&(p.with=t[2]),u.length===3?(p.delete=u[0],u[2]&&(p.insert=u[2])):p.insert=u,o.length&&(p.using=o),p.where=a.graphPattern,p},Un=function(t){return t},af=function(t){return t},lf=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},uf=function(){return"default"},ca=function(t){return t},Fn=function(t){return t},rl=function(t){return t},tl=function(){return"default"},il=function(){return"named"},op=function(){return"all"},Eo=function(t){return t},ff=function(t){return t},ap=function(t,u){let o=[];return t&&(o=o.concat(t)),u.forEach(a=>{o=o.concat(a[0]),a[2]&&(o=o.concat(a[2]))}),o},cf=function(t,u){return{graph:t,...u}},pa=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:ye()}},lp=function(t){return t},up=function(t,u){let o=[];return t&&o.push(t),u.forEach(a=>{o.push(a[0]),a[4]&&o.push(a[4])}),{graphPattern:o,location:ye()}},mo=function(t,u){let o=[];if(u&&u[3])if(n(t.subject,u[3].triplePattern[0].subject)){o=JSON.parse(JSON.stringify(u[3].triplePattern));let a=t.properties.length-1;if(n(t.properties[a].predicate,u[3].triplePattern[0].properties[0].predicate)){o[0].properties=t.properties;let p=o[0].properties[a].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(d=>{n(t.properties[a].objects[p],d)||o[0].properties[a].objects.push(d)}),o[0].properties.push(...u[3].triplePattern[0].properties.slice(1))}else o[0].properties=t.properties.concat(u[3].triplePattern[0].properties)}else o=[t].concat(u[3].triplePattern);else o=[t];return{type:"TriplesBlock",triplePattern:o,location:ye()}},pf=function(t){return{type:"OptionalGraphPattern",optional:t.graphPattern||t,location:ye()}},df=function(t,u){return{type:"GraphGraphPattern",graph:t,...u}},fp=function(t,u,o){let a={type:"ServiceGraphPattern",service:u,pattern:o.graphPattern||o};return t&&(a.silent=!0),a.location=ye(),a},sl=function(t,u){return{type:"Bind",bind:t,as:u,location:ye()}},hf=function(t){return t},cp=function(t,u){return{oneVar:t,data:u,location:ye()}},gf=function(t,u){return{variables:t,data:u,location:ye()}},Ef=function(t){return t},pp=function(t){return t},nl=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:ye()}},vo=function(t,u){return u.length?{union:[t,...u],location:ye()}:t},Io=function(t){return{type:"Filter",filter:t,location:ye()}},dp=function(t,u){return{functionRef:t,args:u.list,location:ye()}},mf=function(){return{list:[]}},hp=function(t,u,o){return{distinct:!!t,list:[u,...o]}},gp=function(){return[]},Ep=function(t,u){return[t,...u]},mp=function(t){return t},vf=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:ye()}},vp=function(t,u){return{subject:t,properties:u}},Ip=function(t,u){return{subject:t,properties:u}},If=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{p[3]&&a.push({predicate:p[3][0],objects:p[3][2]})}),a},ol=function(){return{a:!0,location:ye()}},Cf=function(t,u){return[t,...u]},Cp=function(t,u){return{subject:t,properties:u}},xf=function(t,u){return{subject:t,properties:u}},Bn=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{if(p[3]){let d=a.length-1,E=a[d].objects.length-1;n(a[d].predicate,p[3][0])?p[3][2].forEach(I=>{n(a[d].objects[E],I)||a[d].objects.push(I)}):a.push({predicate:p[3][0],objects:p[3][2]})}}),a},bf=function(t,u){return[t,...u]},da=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{alternative:o,location:ye()}}else return t},xp=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{sequence:o,location:ye()}}else return t},bp=function(t,u){return u&&(t.modifier=u),t},Ap=function(t){return t.inverse=!0,t},wr=function(){return{a:!0,location:ye()}},Np=function(t){return{bracketted:!0,...t}},al=function(t){return{collection:t,location:ye()}},Co=function(t){return{blankNodeProperties:t,location:ye()}},ci=function(t){return{collection:t,location:ye()}},ha=function(t){return{blankNodeProperties:t,location:ye()}},ll=function(t){return t},Af=function(t){return t},Nf=function(t){return t},Tf=function(t){return t},ul=function(t){return{...t,location:ye()}},Rf=function(t,u){return u.length?{expressionType:"conditionalor",operands:[t,...u]}:t},Tp=function(t,u){return u.length?{expressionType:"conditionaland",operands:[t,...u]}:t},fl=function(t,u){if(u.length){let o=t,a=u[0][1].toUpperCase(),p=u[0][3];return a==="NOT"&&(a+=" "+u[0][3].toUpperCase(),p=u[0][5]),{expressionType:"relationalexpression",operator:a,op1:o,op2:p}}else return t},yf=function(t,u){if(u.length===0)return t;let o=[];return u.forEach(a=>{a.length==4&&o.push({operator:a[1],expression:a[3]})}),{expressionType:"additiveexpression",op1:t,ops:o}},br=function(t,u){return u.length?{expressionType:"multiplicativeexpression",first:t,rest:u.map(o=>({operator:o[1],expression:o[3]}))}:t},Sf=function(t){return{expressionType:"unaryexpression",unaryexpression:"!",expression:t}},Rp=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},On=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},yp=function(t){return{expressionType:"atomic",value:t}},ga=function(t){return{expressionType:"atomic",value:t}},Sp=function(t){return{expressionType:"atomic",value:t}},Yr=function(t){return{expressionType:"atomic",value:t}},Lp=function(t){return{bracketted:!0,...t}},wp=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},Gp=function(t){return{expressionType:"builtincall",builtincall:"lang",args:[t]}},Ea=function(t,u){return{expressionType:"builtincall",builtincall:"langMatches",args:[t,u]}},s=function(t){return{expressionType:"builtincall",builtincall:"datatype",args:[t]}},l=function(t){return{expressionType:"builtincall",builtincall:"bound",args:[t]}},g=function(t){return{expressionType:"builtincall",builtincall:"IRI",args:[t]}},h=function(t){return{expressionType:"builtincall",builtincall:"URI",args:[t]}},v=function(t){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return t.length===5&&(u.args=[t[2]]),u},b=function(){return{expressionType:"builtincall",builtincall:"rand"}},N=function(t){return{expressionType:"builtincall",builtincall:"abs",args:[t]}},y=function(t){return{expressionType:"builtincall",builtincall:"ceil",args:[t]}},w=function(t){return{expressionType:"builtincall",builtincall:"floor",args:[t]}},G=function(t){return{expressionType:"builtincall",builtincall:"round",args:[t]}},k=function(t){return{expressionType:"builtincall",builtincall:"CONCAT",args:t}},_=function(t){return{expressionType:"builtincall",builtincall:"STRLEN",args:[t]}},ie=function(t){return{expressionType:"builtincall",builtincall:"UCASE",args:[t]}},te=function(t){return{expressionType:"builtincall",builtincall:"LCASE",args:[t]}},ae=function(t){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[t]}},ce=function(t,u){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[t,u]}},he=function(t,u){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[t,u]}},ve=function(t,u){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[t,u]}},Ce=function(t,u){return{expressionType:"builtincall",builtincall:"STRENDS",args:[t,u]}},Ie=function(t,u){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[t,u]}},Re=function(t){return{expressionType:"builtincall",builtincall:"year",args:[t]}},ke=function(t){return{expressionType:"builtincall",builtincall:"month",args:[t]}},We=function(t){return{expressionType:"builtincall",builtincall:"day",args:[t]}},tr=function(t){return{expressionType:"builtincall",builtincall:"hours",args:[t]}},Tr=function(t){return{expressionType:"builtincall",builtincall:"minutes",args:[t]}},ut=function(t){return{expressionType:"builtincall",builtincall:"seconds",args:[t]}},Ur=function(t){return{expressionType:"builtincall",builtincall:"timezone",args:[t]}},Jt=function(t){return{expressionType:"builtincall",builtincall:"tz",args:[t]}},Mt=function(){return{expressionType:"builtincall",builtincall:"now"}},jr=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ht=function(t){return{expressionType:"builtincall",builtincall:"MD5",args:[t]}},tt=function(t){return{expressionType:"builtincall",builtincall:"SHA1",args:[t]}},zr=function(t){return{expressionType:"builtincall",builtincall:"SHA256",args:[t]}},Zr=function(t){return{expressionType:"builtincall",builtincall:"SHA384",args:[t]}},Qt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Vn=function(t){return{expressionType:"builtincall",builtincall:"COALESCE",args:t}},Is=function(t,u,o){return{expressionType:"builtincall",builtincall:"IF",args:[t,u,o]}},Rt=function(t,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[t,u]}},wi=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},ft=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},cl=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Hi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},ks=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},Xs=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},Gt=function(t,u,o){let a={expressionType:"regex",text:t,pattern:u};return o&&(a.flags=o[2]),a},Wn=function(t,u,o){let a=[t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"substr",args:a}},pl=function(t,u,o,a){let p=[t,u,o];return a&&p.push(a[2]),{expressionType:"builtincall",builtincall:"replace",args:p}},Ah=function(t){return{exists:t.graphPattern||t}},Nh=function(t){return{notexists:t.graphPattern||t}},Th=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},Rh=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},yh=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},Sh=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},Lh=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},wh=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Gh=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},Uh=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Fh=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=ye(),t},Bh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Oh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Vh=function(t){return{type:"IRIref",iriref:t,location:ye()}},Wh=function(t){return t},Zh=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:ye()}},Mh=function(t){return{type:"PrefixedName",pn_prefix:t,location:ye()}},Dh=function(t){return{blankNode:t,location:ye()}},Qh=function(){return{blankNode:"[]",location:ye()}},kh=function(t){return t.join("")},Xh=function(t){return t||""},Ph=function(t,u){return{pn_prefix:t,pn_local:u}},Yh=function(){return $r()},Hh=function(t){return{type:"Var",varType:"VAR1",varname:t}},Jh=function(t){return{type:"Var",varType:"VAR2",varname:t}},_h=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},jh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:$r()}},zh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:$r()}},$h=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},qh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},Kh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},eg=function(t){return t.literal="+"+t.literal,t},rg=function(t){return t.literal="+"+t.literal,t},tg=function(t){return t.literal="+"+t.literal,t},ig=function(t){return t.literal="-"+t.literal,t},sg=function(t){return t.literal="-"+t.literal,t},ng=function(t){return t.literal="-"+t.literal,t},og=function(t){return{quote:"'",literal:t.join("")}},ag=function(t){return{quote:'"',literal:t.join("")}},lg=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},ug=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},fg=function(){return $r()},cg=function(){return $r()},pg=function(){return dd[ye().start.offset]=$r(),""},dg=function(){return $r()},hg=function(){return $r()},gg=function(){return $r()},r=0,U=0,xo=[{line:1,column:1}],yt=0,dl=[],x=0,bo;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function $r(){return i.substring(U,r)}function zx(){return U}function $x(){return{source:A,start:U,end:r}}function ye(){return Ps(U,r)}function qx(t,u){throw u=u!==void 0?u:Ps(U,r),Fp([mg(t)],i.substring(U,r),u)}function Kx(t,u){throw u=u!==void 0?u:Ps(U,r),vg(t,u)}function Q(t,u){return{type:"literal",text:t,ignoreCase:u}}function Ve(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function eb(){return{type:"any"}}function Eg(){return{type:"end"}}function mg(t){return{type:"other",description:t}}function Up(t){var u=xo[t],o;if(u)return u;for(o=t-1;!xo[o];)o--;for(u=xo[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return xo[t]=u,u}function Ps(t,u,o){var a=Up(t),p=Up(u),d={source:A,start:{offset:t,line:a.line,column:a.column},end:{offset:u,line:p.line,column:p.column}};return o&&A&&typeof A.offset=="function"&&(d.start=A.offset(d.start),d.end=A.offset(d.end)),d}function C(t){r<yt||(r>yt&&(yt=r,dl=[]),dl.push(t))}function vg(t,u){return new Kl(t,null,null,u)}function Fp(t,u,o){return new Kl(Kl.buildMessage(t,u),t,u,o)}function Bp(){var t,u,o,a,p,d;for(t=r,u=[],o=ud();o!==e;)u.push(o),o=ud();for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ig(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=Ln(u,a)}else r=t,t=e;return t}function Ig(){var t;return t=Cg(),t===e&&(t=Yp()),t}function Cg(){var t,u,o,a,p;for(t=r,u=Op(),o=[],a=c();a!==e;)o.push(a),a=c();return a=xg(),a===e&&(a=Ag(),a===e&&(a=Ng(),a===e&&(a=Tg()))),a!==e?(p=Pp(),U=t,t=_u(u,a,p)):(r=t,t=e),t}function Op(){var t,u,o;for(t=r,u=[],o=Vp(),o===e&&(o=Wp());o!==e;)u.push(o),o=Vp(),o===e&&(o=Wp());return U=t,u=ua(u),t=u,t}function Vp(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===F?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(hc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Fl(),p!==e?(U=t,t=ju(p)):(r=t,t=e)}else r=t,t=e;return t}function Wp(){var t,u,o,a,p,d,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Z?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Jn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Bl(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Fl(),E!==e?(U=t,t=ao(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function xg(){var t,u,o,a,p,d,E,I;if(t=r,u=Zp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=St();p!==e;)a.push(p),p=St();for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=Ys(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Ji(),U=t,t=Hc(u,a,d,I)}else r=t,t=e}else r=t,t=e;return t}function bg(){var t,u,o,a,p,d,E;if(t=r,u=Zp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ys(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Ji(),E=Pp(),U=t,t=wn(u,a,d,E)}else r=t,t=e}else r=t,t=e;return t}function Zp(){var t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te,Fe,ir;if(t=r,i.substr(r,6).toLowerCase()===M?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(ot)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===Y?(a=i.substr(r,8),r+=8):(a=e,x===0&&C(xt)),a===e&&(i.substr(r,7).toLowerCase()===P?(a=i.substr(r,7),r+=7):(a=e,x===0&&C(hu))),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(T=pr(),T!==e?(I=[I,T],E=I):(r=E,E=e),E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===40?(T=D,r++):(T=e,x===0&&C(le)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=se(),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();if(i.substr(r,2).toLowerCase()===z?(oe=i.substr(r,2),r+=2):(oe=e,x===0&&C(Ls)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(Te=pr(),Te!==e){for(Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();i.charCodeAt(r)===41?(ir=W,r++):(ir=e,x===0&&C(ue)),ir!==e?(I=[I,T,S,B,X,oe,ge,Te,Fe,ir],E=I):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}if(E!==e)for(;E!==e;){for(d.push(E),E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(T=pr(),T!==e?(I=[I,T],E=I):(r=E,E=e),E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===40?(T=D,r++):(T=e,x===0&&C(le)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=se(),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();if(i.substr(r,2).toLowerCase()===z?(oe=i.substr(r,2),r+=2):(oe=e,x===0&&C(Ls)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(Te=pr(),Te!==e){for(Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();i.charCodeAt(r)===41?(ir=W,r++):(ir=e,x===0&&C(ue)),ir!==e?(I=[I,T,S,B,X,oe,ge,Te,Fe,ir],E=I):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}}else d=e;d===e&&(i.charCodeAt(r)===42?(d=$,r++):(d=e,x===0&&C(_r))),d!==e?(U=t,t=zu(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Ag(){var t,u,o,a,p,d,E,I,T,S,B,X,oe,ge;if(t=r,i.substr(r,9).toLowerCase()===J?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(_n)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=tE(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=St();E!==e;)d.push(E),E=St();for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=Ys(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),U=t,t=$u(a,d,I,S)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,9).toLowerCase()===J?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(_n)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=St();p!==e;)a.push(p),p=St();for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===O?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(us)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===123?(I=V,r++):(I=e,x===0&&C(Vt)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=ji(),S===e&&(S=null),B=[],X=c();X!==e;)B.push(X),X=c();if(i.charCodeAt(r)===125?(X=H,r++):(X=e,x===0&&C(Wt)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();ge=Ji(),U=t,t=qu(a,S,ge)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Ng(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,8).toLowerCase()===q?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=$i(),p!==e)for(;p!==e;)a.push(p),p=$i();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=$,r++):(a=e,x===0&&C(_r))),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=St();E!==e;)d.push(E),E=St();for(E=[],I=c();I!==e;)E.push(I),I=c();for(I=Ys(),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),U=t,t=lo(a,d,I,S)}else r=t,t=e}else r=t,t=e;return t}function Tg(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,3).toLowerCase()===K?(o=i.substr(r,3),r+=3):(o=e,x===0&&C(Eu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=St();d!==e;)p.push(d),d=St();for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=Ys(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=Ji(),U=t,t=uo(p,E,T)}else r=t,t=e}else r=t,t=e;return t}function St(){var t,u,o,a,p,d;if(t=r,i.substr(r,4).toLowerCase()===ee?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rg(),a===e&&(a=yg()),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=fo(a)}else r=t,t=e}else r=t,t=e;return t}function Rg(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=vr(),o!==e?(U=t,t=co(o)):(r=t,t=e),t}function yg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ne?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Di)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=vr(),a!==e?(U=t,t=Ku(a)):(r=t,t=e)}else r=t,t=e;return t}function Ys(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===O?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(us)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return a=ct(),a!==e?(U=t,t=Jc(a)):(r=t,t=e),t}function Ji(){var t,u,o,a,p;return t=r,u=Sg(),u===e&&(u=null),o=Lg(),o===e&&(o=null),a=wg(),a===e&&(a=null),p=Gg(),p===e&&(p=null),U=t,t=ef(u,o,a,p),t}function Sg(){var t,u,o,a,p,d,E;if(t=r,i.substr(r,5).toLowerCase()===de?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Qi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===Se?(a=i.substr(r,2),r+=2):(a=e,x===0&&C(gn)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=[],E=Mp(),E!==e)for(;E!==e;)d.push(E),E=Mp();else d=e;d!==e?(U=t,t=ms(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Mp(){var t,u,o,a,p,d,E,I,T,S,B;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=yl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=Gn(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=rd(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=po(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=r,i.substr(r,2).toLowerCase()===z?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(Ls)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=pr(),S!==e?(I=[I,T,S],E=I):(r=E,E=e)}else r=E,E=e;for(E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=t,t=_c(p,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=pr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=rf(o)}else r=t,t=e}}}return t}function Lg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===be?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Dp(),p!==e)for(;p!==e;)a.push(p),p=Dp();else a=e;a!==e?(U=t,t=jc(a)):(r=t,t=e)}else r=t,t=e;return t}function Dp(){var t,u,o,a;if(t=r,u=El(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=t,t=zc(u)}else r=t,t=e;return t}function wg(){var t,u,o,a,p,d,E,I;if(t=r,i.substr(r,5).toLowerCase()===Ze?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(mu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===Se?(a=i.substr(r,2),r+=2):(a=e,x===0&&C(gn)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=[],E=Qp(),E!==e)for(;E!==e;)d.push(E),E=Qp();else d=e;if(d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=t,t=$c(d)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Qp(){var t,u,o,a,p,d;if(t=r,i.substr(r,3).toLowerCase()===Be?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Ni)),u===e&&(i.substr(r,4).toLowerCase()===Ke?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(ws))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rl(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=Zt(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=El(),u===e&&(u=pr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=t,t=tf(u)}else r=t,t=e;return t}function Gg(){var t,u,o,a;return t=r,u=r,o=kp(),o!==e?(a=Xp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=Xp(),o!==e?(a=kp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(U=t,u=qc(u)),t=u,t}function kp(){var t,u,o,a,p,d;if(t=r,i.substr(r,5).toLowerCase()===Ee?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ma)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=js(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=Kc(a)}else r=t,t=e}else r=t,t=e;return t}function Xp(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===Er?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ec)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=js(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=ep(a)}else r=t,t=e}else r=t,t=e;return t}function Pp(){var t,u,o,a;return t=r,u=r,i.substr(r,6).toLowerCase()===ur?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Jo)),o!==e?(a=Kp(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),U=t,u=sf(u),t=u,t}function Yp(){var t,u,o,a,p,d,E,I,T,S;for(t=r,u=Op(),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ug(),p!==e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Yp(),E=[E,I,T,S],d=E}else r=d,d=e;d===e&&(d=null),a=[a,p,d],o=a}else r=o,o=e;for(o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();return U=t,t=nf(u,o),t}function Ug(){var t;return t=Fg(),t===e&&(t=Bg(),t===e&&(t=Og(),t===e&&(t=Wg(),t===e&&(t=Zg(),t===e&&(t=Mg(),t===e&&(t=Vg(),t===e&&(t=Dg(),t===e&&(t=Qg(),t===e&&(t=kg(),t===e&&(t=Xg())))))))))),t}function Fg(){var t,u,o,a,p,d,E,I,T,S,B;if(t=r,i.substr(r,4).toLowerCase()===Or?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(vu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=vr(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=r,i.substr(r,4).toLowerCase()===et?(T=i.substr(r,4),r+=4):(T=e,x===0&&C(En)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=hl(),B!==e?(T=[T,S,B],I=T):(r=I,I=e)}else r=I,I=e;I===e&&(I=null),U=t,t=of(a,d,I)}else r=t,t=e}else r=t,t=e;return t}function Bg(){var t,u,o,a,p,d;if(t=r,i.substr(r,5).toLowerCase()===rt?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ti)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();d=_p(),d!==e?(U=t,t=rp(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Og(){var t,u,o,a,p,d;if(t=r,i.substr(r,4).toLowerCase()===cr?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Iu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();d=_p(),d!==e?(U=t,t=tp(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Vg(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===qe?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Cu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();d=hl(),d!==e?(U=t,t=ip(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Wg(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,3).toLowerCase()===Pe?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(mc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=_i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===Ir?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(jn)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),S!==e?(U=t,t=vs(a,d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zg(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,4).toLowerCase()===Me?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=_i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===Ir?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(jn)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),S!==e?(U=t,t=ho(a,d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Mg(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,4).toLowerCase()===Rr?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(xu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=_i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===Ir?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(jn)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),S!==e?(U=t,t=fa(a,d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Dg(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===dr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(_o)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,4).toLowerCase()===Hr?(a=i.substr(r,4),r+=4):(a=e,x===0&&C(Gs)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=jp(),d!==e?(U=t,t=go(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Qg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.substr(r,4).toLowerCase()===Hr?(a=i.substr(r,4),r+=4):(a=e,x===0&&C(Gs)),a!==e?(p=jp(),p!==e?(U=t,t=Yi(p)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function kg(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,5).toLowerCase()===O?(a=i.substr(r,5),r+=5):(a=e,x===0&&C(us)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=gl(),d!==e?(U=t,t=sp(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Xg(){var t,u,o,a,p,d,E,I,T,S,B;if(t=r,u=r,i.substr(r,4).toLowerCase()===ti?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(bu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=vr(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();o=[o,a,p,d],u=o}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),o=r,a=Pg(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Hp(),d===e&&(d=null),a=[a,p,d],o=a}else r=o,o=e;if(o===e&&(o=Hp()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=Jp();d!==e;)p.push(d),d=Jp();for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,5).toLowerCase()===O?(E=i.substr(r,5),r+=5):(E=e,x===0&&C(us)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=ct(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=t,t=np(u,o,p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Pg(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(mn)),u!==e?(o=gl(),o!==e?(U=t,t=Un(o)):(r=t,t=e)):(r=t,t=e),t}function Hp(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===dr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(_o)),u!==e?(o=gl(),o!==e?(U=t,t=af(o)):(r=t,t=e)):(r=t,t=e),t}function Jp(){var t,u,o,a,p,d,E,I;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Ge?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(Da)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=vr(),p===e)if(p=r,i.substr(r,5).toLowerCase()===ne?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(Di)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=vr(),I!==e?(d=[d,E,I],p=d):(r=p,p=e)}else r=p,p=e;p!==e?(U=t,t=lf(p)):(r=t,t=e)}else r=t,t=e;return t}function _i(){var t,u,o,a;if(t=r,i.substr(r,7).toLowerCase()===fe?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(vn)),u!==e&&(U=t,u=uf()),t=u,t===e){for(t=r,i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();a=vr(),a!==e?(U=t,t=ca(a)):(r=t,t=e)}return t}function hl(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=vr(),a!==e?(U=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;return t}function _p(){var t,u;return t=r,u=hl(),u!==e&&(U=t,u=rl(u)),t=u,t===e&&(t=r,i.substr(r,7).toLowerCase()===fe?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(vn)),u!==e&&(U=t,u=tl()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ne?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Di)),u!==e&&(U=t,u=il()),t=u,t===e&&(t=r,i.substr(r,3).toLowerCase()===mr?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(jo)),u!==e&&(U=t,u=op()),t=u))),t}function gl(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,x===0&&C(Vt)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=zp(),d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===125?(E=H,r++):(E=e,x===0&&C(Wt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=Eo(p)}else r=t,t=e}else r=t,t=e;return t}function jp(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,x===0&&C(Vt)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=zp(),d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===125?(E=H,r++):(E=e,x===0&&C(Wt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=ff(p)}else r=t,t=e}else r=t,t=e;return t}function zp(){var t,u,o,a,p,d,E;for(t=r,u=ji(),u===e&&(u=null),o=[],a=r,p=$p(),p!==e?(i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d===e&&(d=null),E=ji(),E===e&&(E=null),p=[p,d,E],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,p=$p(),p!==e?(i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d===e&&(d=null),E=ji(),E===e&&(E=null),p=[p,d,E],a=p):(r=a,a=e);return U=t,t=ap(u,o),t}function $p(){var t,u,o,a,p,d,E,I,T,S,B,X,oe;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Ar?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(fs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=$i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,x===0&&C(Vt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();for(T=ji(),T===e&&(T=null),S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===125?(B=H,r++):(B=e,x===0&&C(Wt)),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();U=t,t=cf(p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function ji(){var t,u,o,a,p,d,E;if(t=r,u=sd(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ji(),E===e&&(E=null),a=[a,p,d,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=pa(u,o)}else r=t,t=e;return t}function ct(){var t,u,o,a,p,d;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=bg(),a===e&&(a=Yg()),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e?(U=t,t=lp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Yg(){var t,u,o,a,p,d,E,I,T,S;for(t=r,u=Ao(),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=r,d=qp(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();for(i.charCodeAt(r)===46?(I=Ue,r++):(I=e,x===0&&C(er)),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),d=[d,E,I,T,S],p=d}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,d=qp(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();for(i.charCodeAt(r)===46?(I=Ue,r++):(I=e,x===0&&C(er)),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),d=[d,E,I,T,S],p=d}else r=p,p=e;return U=t,t=up(u,a),t}function Ao(){var t,u,o,a,p,d,E;if(t=r,u=sE(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Ao(),E===e&&(E=null),a=[a,p,d,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=mo(u,o)}else r=t,t=e;return t}function qp(){var t;return t=eE(),t===e&&(t=Hg(),t===e&&(t=Kg(),t===e&&(t=Jg(),t===e&&(t=_g(),t===e&&(t=rE(),t===e&&(t=jg(),t===e&&(t=zg()))))))),t}function Hg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,8).toLowerCase()===Vr?(o=i.substr(r,8),r+=8):(o=e,x===0&&C(Au)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ct(),p!==e?(U=t,t=pf(p)):(r=t,t=e)}else r=t,t=e;return t}function Jg(){var t,u,o,a,p,d,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Ar?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(fs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=$i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?(U=t,t=df(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function _g(){var t,u,o,a,p,d,E,I;if(t=r,i.substr(r,7).toLowerCase()===ii?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Qa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=$i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=ct(),I!==e?(U=t,t=fp(a,d,I)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function jg(){var t,u,o,a,p,d,E,I,T,S,B,X,oe;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===xe?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(ka)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===40?(p=D,r++):(p=e,x===0&&C(le)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.substr(r,2).toLowerCase()===z?(T=i.substr(r,2),r+=2):(T=e,x===0&&C(Ls)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=pr(),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();i.charCodeAt(r)===41?(oe=W,r++):(oe=e,x===0&&C(ue)),oe!==e?(U=t,t=sl(E,B)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function zg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===ur?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Jo)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Kp(),p!==e?(U=t,t=hf(p)):(r=t,t=e)}else r=t,t=e;return t}function Kp(){var t;return t=$g(),t===e&&(t=qg()),t}function $g(){var t,u,o,a,p,d,E,I;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=pr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===123?(p=V,r++):(p=e,x===0&&C(Vt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();for(E=[],I=No();I!==e;)E.push(I),I=No();i.charCodeAt(r)===125?(I=H,r++):(I=e,x===0&&C(Wt)),I!==e?(U=t,t=cp(o,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function qg(){var t,u,o,a,p,d,E,I,T,S,B;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=pr();d!==e;)p.push(d),d=pr();if(i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===123?(I=V,r++):(I=e,x===0&&C(Vt)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=[],B=ed();B!==e;)S.push(B),B=ed();i.charCodeAt(r)===125?(B=H,r++):(B=e,x===0&&C(Wt)),B!==e?(U=t,t=gf(p,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function ed(){var t,u,o,a,p,d,E;if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=No();p!==e;)a.push(p),p=No();if(i.charCodeAt(r)===41?(p=W,r++):(p=e,x===0&&C(ue)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();U=t,t=Ef(a)}else r=t,t=e}else r=t,t=e;return t}function No(){var t,u,o,a;if(t=r,u=vr(),u===e&&(u=Sl(),u===e&&(u=Ll(),u===e&&(u=Ul(),u===e&&(i.substr(r,5)===Ft?(u=Ft,r+=5):(u=e,x===0&&C(Nu)))))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=t,t=pp(u)}else r=t,t=e;return t}function Kg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===gt?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Tu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ct(),a!==e?(U=t,t=nl(a)):(r=t,t=e)}else r=t,t=e;return t}function eE(){var t,u,o,a,p,d,E,I;if(t=r,u=ct(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===Et?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(zn)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=ct(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===Et?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(zn)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=ct(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=vo(u,o)}else r=t,t=e;return t}function rE(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===ts?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Ic)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=El(),p!==e?(U=t,t=Io(p)):(r=t,t=e)}else r=t,t=e;return t}function El(){var t;return t=Rl(),t===e&&(t=yl(),t===e&&(t=rd())),t}function rd(){var t,u,o,a;if(t=r,u=vr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=td(),a!==e?(U=t,t=dp(u,a)):(r=t,t=e)}else r=t,t=e;return t}function td(){var t,u,o,a,p,d,E,I,T,S,B,X;if(t=r,u=ei(),u!==e&&(U=t,u=mf()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===Y?(a=i.substr(r,8),r+=8):(a=e,x===0&&C(xt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=[],T=r,i.charCodeAt(r)===44?(S=De,r++):(S=e,x===0&&C(Ye)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();X=se(),X!==e?T=X:(r=T,T=e)}else r=T,T=e;for(;T!==e;)if(I.push(T),T=r,i.charCodeAt(r)===44?(S=De,r++):(S=e,x===0&&C(Ye)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();X=se(),X!==e?T=X:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e?(U=t,t=hp(a,d,I)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zi(){var t,u,o,a,p,d,E,I,T,S,B,X;if(t=r,u=ei(),u!==e&&(U=t,u=gp()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=[],E=r,i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();E=S}else r=E,E=e}else r=E,E=e;for(;E!==e;)if(d.push(E),E=r,i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=t,t=Ep(a,d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function tE(){var t,u,o,a,p,d;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=id(),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e?(U=t,t=mp(a)):(r=t,t=e)}else r=t,t=e;return t}function id(){var t,u,o,a,p,d,E;if(t=r,u=sd(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=id(),E===e&&(E=null),a=[a,p,d,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=vf(u,o)}else r=t,t=e;return t}function sd(){var t,u,o,a,p;if(t=r,u=yo(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ml(),a!==e?(U=t,t=vp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=od(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=iE(),U=t,t=Ip(o,p)}else r=t,t=e}return t}function iE(){var t;return t=ml(),t===e&&(t=null),t}function ml(){var t,u,o,a,p,d,E,I,T,S,B,X,oe;if(t=r,u=vl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Il(),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=vl(),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();oe=Il(),oe!==e?(B=[B,X,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e;for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=vl(),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();oe=Il(),oe!==e?(B=[B,X,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e}U=t,t=If(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function vl(){var t,u;return t=$i(),t===e&&(t=r,i.charCodeAt(r)===97?(u=mt,r++):(u=e,x===0&&C(Us)),u!==e&&(U=t,u=ol()),t=u),t}function Il(){var t,u,o,a,p,d,E,I;if(t=r,u=Hs(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Hs(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Hs(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=Cf(u,o)}else r=t,t=e;return t}function sE(){var t,u,o,a,p;if(t=r,u=yo(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Cl(),a!==e?(U=t,t=Cp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=ad(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=nE(),U=t,t=xf(o,p)}else r=t,t=e}return t}function nE(){var t;return t=Cl(),t===e&&(t=null),t}function Cl(){var t,u,o,a,p,d,E,I,T,S,B,X,oe;if(t=r,u=To(),u===e&&(u=pr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=xl(),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=To(),B===e&&(B=pr()),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();oe=xl(),oe!==e?(B=[B,X,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e;for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=To(),B===e&&(B=pr()),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();oe=xl(),oe!==e?(B=[B,X,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e}U=t,t=Bn(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function xl(){var t,u,o,a,p,d,E,I;if(t=r,u=Js(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Js(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Js(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=bf(u,o)}else r=t,t=e;return t}function To(){var t,u,o,a,p,d,E,I;if(t=r,u=bl(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=bl(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=bl(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}U=t,t=da(u,o)}else r=t,t=e;return t}function bl(){var t,u,o,a,p,d,E,I;if(t=r,u=Al(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Al(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Al(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}U=t,t=xp(u,o)}else r=t,t=e;return t}function nd(){var t,u,o;return t=r,u=aE(),u!==e?(o=oE(),o===e&&(o=null),U=t,t=bp(u,o)):(r=t,t=e),t}function Al(){var t,u,o;return t=nd(),t===e&&(t=r,i.charCodeAt(r)===94?(u=pt,r++):(u=e,x===0&&C(cs)),u!==e?(o=nd(),o!==e?(U=t,t=Ap(o)):(r=t,t=e)):(r=t,t=e)),t}function oE(){var t;return i.charCodeAt(r)===63?(t=dt,r++):(t=e,x===0&&C(Fs)),t===e&&(i.charCodeAt(r)===42?(t=$,r++):(t=e,x===0&&C(_r)),t===e&&(i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)))),t}function aE(){var t,u,o,a;return t=vr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=mt,r++):(u=e,x===0&&C(Us)),u!==e&&(U=t,u=wr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=Wr,r++):(u=e,x===0&&C(In)),u!==e?(o=lE(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e?(o=To(),o!==e?(i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e?(U=t,t=Np(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function lE(){var t,u,o,a,p,d,E,I;if(t=Ro(),t===e)if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){if(o=r,a=Ro(),a!==e){for(p=[],d=r,i.charCodeAt(r)===124?(E=Le,r++):(E=e,x===0&&C(qt)),E!==e?(I=Ro(),I!==e?(E=[E,I],d=E):(r=d,d=e)):(r=d,d=e);d!==e;)p.push(d),d=r,i.charCodeAt(r)===124?(E=Le,r++):(E=e,x===0&&C(qt)),E!==e?(I=Ro(),I!==e?(E=[E,I],d=E):(r=d,d=e)):(r=d,d=e);a=[a,p],o=a}else r=o,o=e;o===e&&(o=null),i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function Ro(){var t,u,o;return t=vr(),t===e&&(i.charCodeAt(r)===97?(t=mt,r++):(t=e,x===0&&C(Us)),t===e&&(t=r,i.charCodeAt(r)===94?(u=pt,r++):(u=e,x===0&&C(cs)),u!==e?(o=vr(),o===e&&(i.charCodeAt(r)===97?(o=mt,r++):(o=e,x===0&&C(Us))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function od(){var t,u;return t=r,u=cE(),u!==e&&(U=t,u=al(u)),t=u,t===e&&(t=uE()),t}function uE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=vt,r++):(o=e,x===0&&C(Bs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ml(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===93?(E=Bt,r++):(E=e,x===0&&C(ui)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=Co(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function ad(){var t,u;return t=r,u=pE(),u!==e&&(U=t,u=ci(u)),t=u,t===e&&(t=fE()),t}function fE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=vt,r++):(o=e,x===0&&C(Bs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Cl(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===93?(E=Bt,r++):(E=e,x===0&&C(ui)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=ha(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function cE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Hs(),d!==e)for(;d!==e;)p.push(d),d=Hs();else p=e;if(p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=ll(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function pE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Js(),d!==e)for(;d!==e;)p.push(d),d=Js();else p=e;if(p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=Af(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Hs(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=yo(),o===e&&(o=od()),o!==e?(U=t,t=Nf(o)):(r=t,t=e),t}function Js(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=yo(),o===e&&(o=ad()),o!==e?(U=t,t=Tf(o)):(r=t,t=e),t}function yo(){var t;return t=pr(),t===e&&(t=dE()),t}function $i(){var t;return t=pr(),t===e&&(t=vr()),t}function pr(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=RE(),o===e&&(o=yE()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=ul(o)}else r=t,t=e;return t}function dE(){var t;return t=vr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(t=AE(),t===e&&(t=ei()))))),t}function se(){var t,u,o,a,p,d,E,I;if(t=r,u=Nl(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Lt?(d=Lt,r+=2):(d=e,x===0&&C(ki)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Nl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Lt?(d=Lt,r+=2):(d=e,x===0&&C(ki)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Nl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=Rf(u,o)}else r=t,t=e;return t}function Nl(){var t,u,o,a,p,d,E,I;if(t=r,u=Tl(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===si?(d=si,r+=2):(d=e,x===0&&C(Nt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Tl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===si?(d=si,r+=2):(d=e,x===0&&C(Nt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Tl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=Tp(u,o)}else r=t,t=e;return t}function Tl(){var t,u,o,a,p,d,E,I,T,S;if(t=r,u=Mr(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===61?(d=Sr,r++):(d=e,x===0&&C(Yt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Ot?(d=Ot,r+=2):(d=e,x===0&&C(Ri)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===60?(d=Oe,r++):(d=e,x===0&&C(ps)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===62?(d=oi,r++):(d=e,x===0&&C($n)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Jr?(d=Jr,r+=2):(d=e,x===0&&C(zo)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===hr?(d=hr,r+=2):(d=e,x===0&&C(Os)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2).toLowerCase()===xr?(d=i.substr(r,2),r+=2):(d=e,x===0&&C(ds)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=zi(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,3).toLowerCase()===is?(d=i.substr(r,3),r+=3):(d=e,x===0&&C(Vs)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===xr?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(ds)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,d,E,I,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===61?(d=Sr,r++):(d=e,x===0&&C(Yt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Ot?(d=Ot,r+=2):(d=e,x===0&&C(Ri)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===60?(d=Oe,r++):(d=e,x===0&&C(ps)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===62?(d=oi,r++):(d=e,x===0&&C($n)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Jr?(d=Jr,r+=2):(d=e,x===0&&C(zo)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===hr?(d=hr,r+=2):(d=e,x===0&&C(Os)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2).toLowerCase()===xr?(d=i.substr(r,2),r+=2):(d=e,x===0&&C(ds)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=zi(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,3).toLowerCase()===is?(d=i.substr(r,3),r+=3):(d=e,x===0&&C(Vs)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===xr?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(ds)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,d,E,I,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}U=t,t=fl(u,o)}else r=t,t=e;return t}function Mr(){var t,u,o,a,p,d,E,I,T,S,B;if(t=r,u=_s(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===43?(d=nr,r++):(d=e,x===0&&C(At)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Gl()),p!==e){for(d=[],E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=$,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(d.push(E),E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=$,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}}p=[p,d],a=p}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===43?(d=nr,r++):(d=e,x===0&&C(At)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Gl()),p!==e){for(d=[],E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=$,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(d.push(E),E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=$,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}}p=[p,d],a=p}else r=a,a=e}}U=t,t=yf(u,o)}else r=t,t=e;return t}function _s(){var t,u,o,a,p,d,E,I;if(t=r,u=Dr(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===42?(d=$,r++):(d=e,x===0&&C(_r)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===42?(d=$,r++):(d=e,x===0&&C(_r)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}}U=t,t=br(u,o)}else r=t,t=e;return t}function Dr(){var t,u,o,a;if(t=r,i.charCodeAt(r)===33?(u=Wr,r++):(u=e,x===0&&C(In)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=So(),a!==e?(U=t,t=Sf(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=So(),a!==e?(U=t,t=Rp(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=So(),a!==e?(U=t,t=On(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=So())}}return t}function So(){var t,u;return t=Rl(),t===e&&(t=yl(),t===e&&(t=CE(),t===e&&(t=r,u=Sl(),u!==e&&(U=t,u=yp(u)),t=u,t===e&&(t=r,u=Ll(),u!==e&&(U=t,u=ga(u)),t=u,t===e&&(t=r,u=Ul(),u!==e&&(U=t,u=Sp(u)),t=u,t===e&&(t=r,u=pr(),u!==e&&(U=t,u=Yr(u)),t=u)))))),t}function Rl(){var t,u,o,a,p,d;if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e?(U=t,t=Lp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function yl(){var t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te,Fe;if(t=IE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===ss?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Cc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=wp(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===It?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Xa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Gp(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,11).toLowerCase()===kr?(u=i.substr(r,11),r+=11):(u=e,x===0&&C(Ru)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=Ea(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===vi?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Pa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=s(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Ns?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ya)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=pr(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=l(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===rn?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Cn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=g(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===tn?(u=i.substr(r,3),r+=3):(u=e,x===0&&C($o)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=h(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Oo?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(yu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=r,i.charCodeAt(r)===40?(p=D,r++):(p=e,x===0&&C(le)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e?(p=[p,d,E,I,T],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=ei()),a!==e?(U=t,t=v(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===sn?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(qo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=b()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ya?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(xc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=N(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Xt?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=y(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Bi?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ac)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=w(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===nn?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ha)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=G(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Vo?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(U=t,t=k(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=gE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===Xn?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(xn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=_(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e&&(t=EE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===on?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(qn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ie(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===ai?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Nc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=te(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,14).toLowerCase()===an?(u=i.substr(r,14),r+=14):(u=e,x===0&&C(Ko)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ae(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Oi?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Su)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=ce(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Wo?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(Kn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=he(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Zo?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(Lu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=ve(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ln?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Ws)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=Ce(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Qe?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(eo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=Ie(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===re?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Zs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Re(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===me?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(ro)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ke(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===we?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(bn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=We(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Nr?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(wu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=tr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===nt?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Tr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===rr?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Uu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ut(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Ae?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Tc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Ur(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===Ct?(u=i.substr(r,2),r+=2):(u=e,x===0&&C(Ms)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Jt(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ii?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Ds)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=Mt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Pt?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Rc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=jr()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Je?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(yc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=Dt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ci?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Sc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ht(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ns?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Lc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=tt(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Sa?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=zr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===pe?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Zr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===ze?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ht)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Qt(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===La?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(at)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(U=t,t=Vn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===wa?(u=i.substr(r,2),r+=2):(u=e,x===0&&C(wt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();if(i.charCodeAt(r)===44?(X=De,r++):(X=e,x===0&&C(Ye)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=se(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();i.charCodeAt(r)===41?(Fe=W,r++):(Fe=e,x===0&&C(ue)),Fe!==e?(U=t,t=Is(d,S,ge)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Mo?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(lt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=Rt(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Do?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(to)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=wi(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===ru?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Uc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();i.charCodeAt(r)===41?(X=W,r++):(X=e,x===0&&C(ue)),X!==e?(U=t,t=ft(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===$e?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(ea)),u===e&&(i.substr(r,5).toLowerCase()===qf?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Fc))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=cl(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===tu?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Hi(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Qo?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(Oc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ks(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===xi?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(_a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Xs(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;t===e&&(t=hE(),t===e&&(t=mE(),t===e&&(t=vE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function hE(){var t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te;if(t=r,i.substr(r,5).toLowerCase()===iu?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Fu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();if(X=r,i.charCodeAt(r)===44?(oe=De,r++):(oe=e,x===0&&C(Ye)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();Te=se(),Te!==e?(oe=[oe,ge,Te],X=oe):(r=X,X=e)}else r=X,X=e;for(X===e&&(X=null),oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();i.charCodeAt(r)===41?(ge=W,r++):(ge=e,x===0&&C(ue)),ge!==e?(U=t,t=Gt(d,S,X)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function gE(){var t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te;if(t=r,i.substr(r,6).toLowerCase()===su?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();if(X=r,i.charCodeAt(r)===44?(oe=De,r++):(oe=e,x===0&&C(Ye)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();Te=se(),Te!==e?(oe=[oe,ge,Te],X=oe):(r=X,X=e)}else r=X,X=e;for(X===e&&(X=null),oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();i.charCodeAt(r)===41?(ge=W,r++):(ge=e,x===0&&C(ue)),ge!==e?(U=t,t=Wn(d,S,X)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function EE(){var t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te,Fe,ir,_t,Dl;if(t=r,i.substr(r,7).toLowerCase()===Pn?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();if(i.charCodeAt(r)===44?(X=De,r++):(X=e,x===0&&C(Ye)),X!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=se(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();if(Fe=r,i.charCodeAt(r)===44?(ir=De,r++):(ir=e,x===0&&C(Ye)),ir!==e){for(_t=[],Dl=c();Dl!==e;)_t.push(Dl),Dl=c();Dl=se(),Dl!==e?(ir=[ir,_t,Dl],Fe=ir):(r=Fe,Fe=e)}else r=Fe,Fe=e;for(Fe===e&&(Fe=null),ir=[],_t=c();_t!==e;)ir.push(_t),_t=c();i.charCodeAt(r)===41?(_t=W,r++):(_t=e,x===0&&C(ue)),_t!==e?(U=t,t=pl(d,S,ge,Fe)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function mE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===Yn?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(io)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ct(),a!==e?(U=t,t=Ah(a)):(r=t,t=e)}else r=t,t=e;return t}function vE(){var t,u,o,a,p,d;if(t=r,i.substr(r,3).toLowerCase()===is?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Vs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,6).toLowerCase()===Yn?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(io)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=ct(),d!==e?(U=t,t=Nh(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function IE(){var t,u,o,a,p,d,E,I,T,S,B,X,oe,ge,Te,Fe,ir;if(t=r,i.substr(r,5).toLowerCase()===nu?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=$,r++):(I=e,x===0&&C(_r)),I===e&&(I=se()),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=t,t=Th(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ga?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=t,t=Rh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ou?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Ou)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=t,t=yh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===au?(u=i.substr(r,3),r+=3):(u=e,x===0&&C($a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=t,t=Sh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===lu?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Vu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=t,t=Lh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===uu?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(so)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],X=c();X!==e;)B.push(X),X=c();U=t,t=wh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,12).toLowerCase()===Kf?(u=i.substr(r,12),r+=12):(u=e,x===0&&C(Wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=r,S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===59?(B=or,r++):(B=e,x===0&&C($t)),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();if(i.substr(r,9).toLowerCase()===ec?(oe=i.substr(r,9),r+=9):(oe=e,x===0&&C(ra)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(i.charCodeAt(r)===61?(Te=Sr,r++):(Te=e,x===0&&C(Yt)),Te!==e){for(Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();ir=ld(),ir!==e?(S=[S,B,X,oe,ge,Te,Fe,ir],T=S):(r=T,T=e)}else r=T,T=e}else r=T,T=e}else r=T,T=e;for(T===e&&(T=null),S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e){for(X=[],oe=c();oe!==e;)X.push(oe),oe=c();U=t,t=Gh(d,I,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}}}}}return t}function CE(){var t,u,o,a;if(t=r,u=vr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=td(),a===e&&(a=null),U=t,t=Uh(u,a)}else r=t,t=e;return t}function Sl(){var t,u,o,a,p;return t=r,u=ld(),u!==e?(o=SE(),o===e&&(o=r,i.substr(r,2)===ko?(a=ko,r+=2):(a=e,x===0&&C(Xi)),a!==e?(p=vr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e)),o===e&&(o=null),U=t,t=Fh(u,o)):(r=t,t=e),t}function Ll(){var t;return t=xE(),t===e&&(t=wl(),t===e&&(t=Gl())),t}function xE(){var t;return t=Vl(),t===e&&(t=Ol(),t===e&&(t=js())),t}function wl(){var t;return t=GE(),t===e&&(t=wE(),t===e&&(t=LE())),t}function Gl(){var t;return t=BE(),t===e&&(t=FE(),t===e&&(t=UE())),t}function Ul(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Vi?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Wu)),u!==e&&(U=t,u=Bh()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===rc?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Zc)),u!==e&&(U=t,u=Oh()),t=u),t}function ld(){var t;return t=WE(),t===e&&(t=ZE(),t===e&&(t=OE(),t===e&&(t=VE()))),t}function vr(){var t,u;return t=r,u=Fl(),u!==e&&(U=t,u=Vh(u)),t=u,t===e&&(t=r,u=bE(),u!==e&&(U=t,u=Wh(u)),t=u),t}function bE(){var t,u;return t=r,u=NE(),u!==e&&(U=t,u=Zh(u)),t=u,t===e&&(t=r,u=Bl(),u!==e&&(U=t,u=Mh(u)),t=u),t}function AE(){var t,u;return t=r,u=TE(),u!==e&&(U=t,u=Dh(u)),t=u,t===e&&(t=r,u=DE(),u!==e&&(U=t,u=Qh()),t=u),t}function Fl(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Oe,r++):(u=e,x===0&&C(ps)),u!==e){for(o=[],Po.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ta));a!==e;)o.push(a),Po.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ta));i.charCodeAt(r)===62?(a=oi,r++):(a=e,x===0&&C($n)),a!==e?(U=t,t=kh(o)):(r=t,t=e)}else r=t,t=e;return t}function Bl(){var t,u,o;return t=r,u=QE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o!==e?(U=t,t=Xh(u)):(r=t,t=e),t}function NE(){var t,u,o;return t=r,u=Bl(),u!==e?(o=kE(),o!==e?(U=t,t=Ph(u,o)):(r=t,t=e)):(r=t,t=e),t}function TE(){var t,u,o,a,p,d,E;if(t=r,i.substr(r,2)===un?(u=un,r+=2):(u=e,x===0&&C(gr)),u!==e)if(o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe))),o!==e){for(a=[],p=qr(),p===e&&(p=r,i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d!==e?(E=qr(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e));p!==e;)a.push(p),p=qr(),p===e&&(p=r,i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d!==e?(E=qr(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e));U=t,t=Yh()}else r=t,t=e;else r=t,t=e;return t}function RE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=dt,r++):(u=e,x===0&&C(Fs)),u!==e?(o=cd(),o!==e?(U=t,t=Hh(o)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ts,r++):(u=e,x===0&&C(yi)),u!==e?(o=cd(),o!==e?(U=t,t=Jh(o)):(r=t,t=e)):(r=t,t=e),t}function SE(){var t,u,o,a,p,d,E,I;if(t=r,i.charCodeAt(r)===64?(u=Ua,r++):(u=e,x===0&&C(Si)),u!==e){if(o=[],Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ia)),a!==e)for(;a!==e;)o.push(a),Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ia));else o=e;if(o!==e){if(a=[],p=r,i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){if(E=[],as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi)),I!==e)for(;I!==e;)E.push(I),as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi));else E=e;E!==e?(d=[d,E],p=d):(r=p,p=e)}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){if(E=[],as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi)),I!==e)for(;I!==e;)E.push(I),as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi));else E=e;E!==e?(d=[d,E],p=d):(r=p,p=e)}else r=p,p=e;U=t,t=_h(o,a)}else r=t,t=e}else r=t,t=e;return t}function js(){var t,u,o;if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;return u!==e&&(U=t,u=jh()),t=u,t}function Ol(){var t,u,o,a,p;for(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));if(i.charCodeAt(r)===46?(o=Ue,r++):(o=e,x===0&&C(er)),o!==e){if(a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe)),p!==e)for(;p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));else a=e;a!==e?(U=t,t=zh()):(r=t,t=e)}else r=t,t=e;return t}function Vl(){var t,u,o,a,p;if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=Ue,r++):(o=e,x===0&&C(er)),o!==e){for(a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));p=Wl(),p!==e?(U=t,t=$h()):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u!==e){if(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));else o=e;o!==e?(a=Wl(),a!==e?(U=t,t=qh()):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;u!==e?(o=Wl(),o!==e?(U=t,t=Kh()):(r=t,t=e)):(r=t,t=e)}}return t}function LE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e?(o=js(),o!==e?(U=t,t=eg(o)):(r=t,t=e)):(r=t,t=e),t}function wE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e?(o=Ol(),o!==e?(U=t,t=rg(o)):(r=t,t=e)):(r=t,t=e),t}function GE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e?(o=Vl(),o!==e?(U=t,t=tg(o)):(r=t,t=e)):(r=t,t=e),t}function UE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e?(o=js(),o!==e?(U=t,t=ig(o)):(r=t,t=e)):(r=t,t=e),t}function FE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e?(o=Ol(),o!==e?(U=t,t=sg(o)):(r=t,t=e)):(r=t,t=e),t}function BE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e?(o=Vl(),o!==e?(U=t,t=ng(o)):(r=t,t=e)):(r=t,t=e),t}function Wl(){var t,u,o,a,p;if(t=r,li.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Zu)),u!==e){if(tc.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Mc)),o===e&&(o=null),a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe)),p!==e)for(;p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));else a=e;a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function OE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Wi,r++):(u=e,x===0&&C(fi)),u!==e){for(o=[],Oa.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Qs)),a===e&&(a=Kt());a!==e;)o.push(a),Oa.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Qs)),a===e&&(a=Kt());i.charCodeAt(r)===39?(a=Wi,r++):(a=e,x===0&&C(fi)),a!==e?(U=t,t=og(o)):(r=t,t=e)}else r=t,t=e;return t}function VE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===34?(u=Rs,r++):(u=e,x===0&&C(hs)),u!==e){for(o=[],Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(no)),a===e&&(a=Kt());a!==e;)o.push(a),Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(no)),a===e&&(a=Kt());i.charCodeAt(r)===34?(a=Rs,r++):(a=e,x===0&&C(hs)),a!==e?(U=t,t=ag(o)):(r=t,t=e)}else r=t,t=e;return t}function WE(){var t,u,o,a,p,d;if(t=r,i.substr(r,3)===ys?(u=ys,r+=3):(u=e,x===0&&C(Li)),u!==e){for(o=[],a=r,i.substr(r,2)===Zi?(p=Zi,r+=2):(p=e,x===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Wi,r++):(p=e,x===0&&C(fi))),p===e&&(p=null),Yo.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(na)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Zi?(p=Zi,r+=2):(p=e,x===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Wi,r++):(p=e,x===0&&C(fi))),p===e&&(p=null),Yo.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(na)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);i.substr(r,3)===ys?(a=ys,r+=3):(a=e,x===0&&C(Li)),a!==e?(U=t,t=lg(o)):(r=t,t=e)}else r=t,t=e;return t}function ZE(){var t,u,o,a,p,d;if(t=r,i.substr(r,3)===os?(u=os,r+=3):(u=e,x===0&&C(qa)),u!==e){for(o=[],a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,x===0&&C(An)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,x===0&&C(hs))),p===e&&(p=null),bi.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(oo)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,x===0&&C(An)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,x===0&&C(hs))),p===e&&(p=null),bi.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(oo)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);i.substr(r,3)===os?(a=os,r+=3):(a=e,x===0&&C(qa)),a!==e?(U=t,t=ug(o)):(r=t,t=e)}else r=t,t=e;return t}function Kt(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Xo,r++):(u=e,x===0&&C(oa)),u!==e?(Va.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Dc)),o!==e?(U=t,t=fg()):(r=t,t=e)):(r=t,t=e),t}function ei(){var t,u,o,a;if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function c(){var t;return t=ME(),t===e&&(t=Zl(),t===e&&(t=Ml())),t}function Zl(){var t;return Mi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Mu)),t}function Ml(){var t;return Ho.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Qc)),t}function Lo(){var t;return Wa.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(kc)),t}function ud(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=fn,r++):(u=e,x===0&&C(gs)),u!==e){for(o=[],a=Lo();a!==e;)o.push(a),a=Lo();a=Ml(),a!==e?(U=t,t=cg()):(r=t,t=e)}else r=t,t=e;return t}function ME(){var t,u,o,a,p,d;for(t=r,u=Ml(),u===e&&(u=null),o=[],a=Zl();a!==e;)o.push(a),a=Zl();if(i.charCodeAt(r)===35?(a=fn,r++):(a=e,x===0&&C(gs)),a!==e){for(p=[],d=Lo();d!==e;)p.push(d),d=Lo();U=t,t=pg()}else r=t,t=e;return t}function DE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===91?(u=vt,r++):(u=e,x===0&&C(Bs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===93?(a=Bt,r++):(a=e,x===0&&C(ui)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function fd(){var t;return dn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Du)),t===e&&(ic.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xc)),t===e&&(sc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Pc)),t===e&&(nc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Qu)),t===e&&(oc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Nn)),t===e&&(cu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Ka)),t===e&&(pu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(aa)),t===e&&(ac.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(ku)),t===e&&(lc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(el)),t===e&&(uc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xu)),t===e&&(fc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Yc)),t===e&&(du.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Pu)),t===e&&(cc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Tt)))))))))))))),t}function qi(){var t;return t=fd(),t===e&&(i.charCodeAt(r)===95?(t=cn,r++):(t=e,x===0&&C(Tn))),t}function cd(){var t,u,o,a;if(t=r,u=qi(),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe))),u!==e){for(o=[],a=qi(),a===e&&(_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a===e&&(hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Rn)),a===e&&(ls.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Sn))))));a!==e;)o.push(a),a=qi(),a===e&&(_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a===e&&(hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Rn)),a===e&&(ls.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Sn))))));U=t,t=dg()}else r=t,t=e;return t}function qr(){var t;return t=qi(),t===e&&(i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe)),t===e&&(hn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Rn)),t===e&&(ls.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(yn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Sn))))))),t}function QE(){var t,u,o,a,p,d;if(t=r,u=fd(),u!==e){for(o=[],a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));U=t,t=hg()}else r=t,t=e;return t}function kE(){var t,u,o,a,p,d;if(t=r,u=qi(),u===e&&(i.charCodeAt(r)===58?(u=zt,r++):(u=e,x===0&&C(Lr)),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u===e&&(u=zs()))),u!==e){for(o=[],a=qr(),a===e&&(i.charCodeAt(r)===58?(a=zt,r++):(a=e,x===0&&C(Lr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d===e&&(i.charCodeAt(r)===58?(d=zt,r++):(d=e,x===0&&C(Lr)),d===e&&(d=zs())),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=qr(),a===e&&(i.charCodeAt(r)===58?(a=zt,r++):(a=e,x===0&&C(Lr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d===e&&(i.charCodeAt(r)===58?(d=zt,r++):(d=e,x===0&&C(Lr)),d===e&&(d=zs())),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));U=t,t=gg()}else r=t,t=e;return t}function zs(){var t;return t=XE(),t===e&&(t=PE()),t}function XE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=pn,r++):(u=e,x===0&&C(Es)),u!==e?(o=pd(),o!==e?(a=pd(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function pd(){var t;return _e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe)),t===e&&(pc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(la)),t===e&&(dc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Yu)))),t}function PE(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Xo,r++):(u=e,x===0&&C(oa)),u!==e?(i.charCodeAt(r)===95?(o=cn,r++):(o=e,x===0&&C(Tn)),o===e&&(i.charCodeAt(r)===126?(o=Fa,r++):(o=e,x===0&&C(Hu)),o===e&&(i.charCodeAt(r)===46?(o=Ue,r++):(o=e,x===0&&C(er)),o===e&&(i.charCodeAt(r)===45?(o=ar,r++):(o=e,x===0&&C(Pr)),o===e&&(i.charCodeAt(r)===33?(o=Wr,r++):(o=e,x===0&&C(In)),o===e&&(i.charCodeAt(r)===36?(o=Ts,r++):(o=e,x===0&&C(yi)),o===e&&(i.charCodeAt(r)===38?(o=fu,r++):(o=e,x===0&&C(Ju)),o===e&&(i.charCodeAt(r)===39?(o=Wi,r++):(o=e,x===0&&C(fi)),o===e&&(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o===e&&(i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o===e&&(i.charCodeAt(r)===42?(o=$,r++):(o=e,x===0&&C(_r)),o===e&&(i.charCodeAt(r)===43?(o=nr,r++):(o=e,x===0&&C(At)),o===e&&(i.charCodeAt(r)===44?(o=De,r++):(o=e,x===0&&C(Ye)),o===e&&(i.charCodeAt(r)===59?(o=or,r++):(o=e,x===0&&C($t)),o===e&&(i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o===e&&(i.charCodeAt(r)===61?(o=Sr,r++):(o=e,x===0&&C(Yt)),o===e&&(i.charCodeAt(r)===47?(o=sr,r++):(o=e,x===0&&C(Xr)),o===e&&(i.charCodeAt(r)===63?(o=dt,r++):(o=e,x===0&&C(Fs)),o===e&&(i.charCodeAt(r)===35?(o=fn,r++):(o=e,x===0&&C(gs)),o===e&&(i.charCodeAt(r)===64?(o=Ua,r++):(o=e,x===0&&C(Si)),o===e&&(i.charCodeAt(r)===37?(o=pn,r++):(o=e,x===0&&C(Es)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let dd={};function n(t,u){return!!(t.type==="Var"&&t.varType===u.varType&&t.varname===u.varname||t.iriref&&t.iriref===u.iriref||t.type==="PrefixedName"&&t.pn_prefix===u.pn_prefix&&t.pn_local===u.pn_local)}if(bo=L(),bo!==e&&r===i.length)return bo;throw bo!==e&&r<i.length&&C(Eg()),Fp(dl,yt<i.length?i.charAt(yt):null,yt<i.length?Ps(yt,yt+1):Ps(yt,yt))}var Fo,Ra,kn,Qm=" ",Ih=0;function xh(i,m=2){if(Qm=" ".repeat(m),Fo=[],Ra=i.comments,kn="",i.headers&&He(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?He(`BASE <${e.iriref}>`):He(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),He("")),i.selectQuery)L1(i.selectQuery);else if(i.constructQuery)w1(i.constructQuery);else if(i.askQuery)T1(i.askQuery);else if(i.describeQuery)R1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Fo[Fo.length-1]+=` ;
78
+ `],!0,!1),gs=Q("#",!1),Du=Ve([["A","Z"]],!1,!1),Xc=Ve([["a","z"]],!1,!1),Pc=Ve([["\xC0","\xD6"]],!1,!1),Qu=Ve([["\xD8","\xF6"]],!1,!1),Nn=Ve([["\xF8","\u02FF"]],!1,!1),Ka=Ve([["\u0370","\u037D"]],!1,!1),aa=Ve([["\u037F","\u1FFF"]],!1,!1),ku=Ve([["\u200C","\u200D"]],!1,!1),el=Ve([["\u2070","\u218F"]],!1,!1),Xu=Ve([["\u2C00","\u2FEF"]],!1,!1),Yc=Ve([["\u3001","\uD7FF"]],!1,!1),Pu=Ve([["\uF900","\uFDCF"]],!1,!1),Tt=Ve([["\uFDF0","\uFFFD"]],!1,!1),Tn=Q("_",!1),Rn=Ve(["\xB7"],!1,!1),yn=Ve([["\u0300","\u036F"]],!1,!1),Sn=Ve([["\u203F","\u2040"]],!1,!1),Es=Q("%",!1),la=Ve([["A","F"]],!1,!1),Yu=Ve([["a","f"]],!1,!1),Hu=Q("~",!1),Ju=Q("&",!1),Ln=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(dd).map(([p,d])=>({pos:parseInt(p),text:d}));return a.length&&(o.comments=a),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...o}},_u=function(t,u,o){let a={type:"Query"};return t&&(a.prologue=t),u.type==="SelectQuery"?a.selectQuery=u:u.type==="ConstructQuery"?a.constructQuery=u:u.type==="DescribeQuery"?a.describeQuery=u:u.type==="AskQuery"&&(a.askQuery=u),o&&(a.values=o),a},ua=function(t){if(t.length)return{type:"Prologue",decl:t}},ju=function(t){return{type:"BaseDecl",iriref:t}},ao=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Hc=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},wn=function(t,u,o,a){let p={type:"SubSelect",selectClause:t,whereClause:u,...o,location:ye()};return a&&(p.values=a),p},zu=function(t,u){let o;u==="*"?o=["*"]:o=u.map(p=>p.length===2?p[1]:{expression:p[3],as:p[7]});let a={var:o};if(t){let p=t.toUpperCase();p==="DISTINCT"?a.distinct=!0:p==="REDUCED"&&(a.reduced=!0)}return a.location=ye(),a},$u=function(t,u,o,a){let p={type:"ConstructQuery"};return u.length&&(p.from=u),p={...p,template:t,where:o,...a,location:ye()},p},qu=function(t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,where:[u],...o,location:ye()},a},lo=function(t,u,o,a){let p={type:"DescribeQuery"};return u.length&&(p.from=u),p.describe=t,o&&(p.where=o),p={...p,...a,location:ye()},p},uo=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:ye()},a},fo=function(t){return t},co=function(t){return{graph:t,location:ye()}},Ku=function(t){return{namedGraph:t,location:ye()}},Jc=function(t){return t.graphPattern||t},ef=function(t,u,o,a){let p={};return t&&(p.group=t),u&&(p.having=u),o&&(p.orderBy=o),a&&(p.limitOffset=a),p},ms=function(t){return t},Gn=function(t){return t},po=function(t){return t},_c=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:ye()}:{bracketted:!0,...t}},rf=function(t){return t},jc=function(t){return t},zc=function(t){return t},$c=function(t){return t},Zt=function(t,u){let o={};return t.toUpperCase()==="ASC"?o={asc:!0,...u}:t.toUpperCase()==="DESC"&&(o={desc:!0,...u}),o},tf=function(t){return t},qc=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},Kc=function(t){return{limit:parseInt(t.literal)}},ep=function(t){return{offset:parseInt(t.literal)}},sf=function(t){return t?t[1]:null},nf=function(t,u){let o={type:"Update"};t&&(o.prologue=t);let a=[];return u&&(a=[u[1]],u[2]&&(a=a.concat(u[2][3].update))),o.update=a,o},of=function(t,u,o){let a={type:"load",silent:t,sourceGraph:u};return o&&(a.destinyGraph=o[2]),a},rp=function(t,u){return{type:"clear",silent:t,destinyGraph:u}},tp=function(t,u){return{type:"drop",silent:t,destinyGraph:u}},ip=function(t,u){return{type:"create",silent:t,destinyGraph:u}},vs=function(t,u,o){return{type:"add",silent:t,graphs:[u,o]}},ho=function(t,u,o){return{type:"move",silent:t,graphs:[u,o]}},fa=function(t,u,o){return{type:"copy",silent:t,graphs:[u,o]}},go=function(t){return{type:"insertdata",insert:t}},Yi=function(t){return{type:"deletedata",delete:t}},sp=function(t){return{type:"deletewhere",delete:t}},np=function(t,u,o,a){let p={type:"modify"};return t&&(p.with=t[2]),u.length===3?(p.delete=u[0],u[2]&&(p.insert=u[2])):p.insert=u,o.length&&(p.using=o),p.where=a.graphPattern,p},Un=function(t){return t},af=function(t){return t},lf=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},uf=function(){return"default"},ca=function(t){return t},Fn=function(t){return t},rl=function(t){return t},tl=function(){return"default"},il=function(){return"named"},op=function(){return"all"},Eo=function(t){return t},ff=function(t){return t},ap=function(t,u){let o=[];return t&&(o=o.concat(t)),u.forEach(a=>{o=o.concat(a[0]),a[2]&&(o=o.concat(a[2]))}),o},cf=function(t,u){return{graph:t,...u}},pa=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:ye()}},lp=function(t){return t},up=function(t,u){let o=[];return t&&o.push(t),u.forEach(a=>{o.push(a[0]),a[4]&&o.push(a[4])}),{graphPattern:o,location:ye()}},mo=function(t,u){let o=[];if(u&&u[3])if(n(t.subject,u[3].triplePattern[0].subject)){o=JSON.parse(JSON.stringify(u[3].triplePattern));let a=t.properties.length-1;if(n(t.properties[a].predicate,u[3].triplePattern[0].properties[0].predicate)){o[0].properties=t.properties;let p=o[0].properties[a].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(d=>{n(t.properties[a].objects[p],d)||o[0].properties[a].objects.push(d)}),o[0].properties.push(...u[3].triplePattern[0].properties.slice(1))}else o[0].properties=t.properties.concat(u[3].triplePattern[0].properties)}else o=[t].concat(u[3].triplePattern);else o=[t];return{type:"TriplesBlock",triplePattern:o,location:ye()}},pf=function(t){return{type:"OptionalGraphPattern",optional:t.graphPattern||t,location:ye()}},df=function(t,u){return{type:"GraphGraphPattern",graph:t,...u}},fp=function(t,u,o){let a={type:"ServiceGraphPattern",service:u,pattern:o.graphPattern||o};return t&&(a.silent=!0),a.location=ye(),a},sl=function(t,u){return{type:"Bind",bind:t,as:u,location:ye()}},hf=function(t){return t},cp=function(t,u){return{oneVar:t,data:u,location:ye()}},gf=function(t,u){return{variables:t,data:u,location:ye()}},Ef=function(t){return t},pp=function(t){return t},nl=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:ye()}},vo=function(t,u){return u.length?{union:[t,...u],location:ye()}:t},Io=function(t){return{type:"Filter",filter:t,location:ye()}},dp=function(t,u){return{functionRef:t,args:u.list,location:ye()}},mf=function(){return{list:[]}},hp=function(t,u,o){return{distinct:!!t,list:[u,...o]}},gp=function(){return[]},Ep=function(t,u){return[t,...u]},mp=function(t){return t},vf=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:ye()}},vp=function(t,u){return{subject:t,properties:u}},Ip=function(t,u){return{subject:t,properties:u}},If=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{p[3]&&a.push({predicate:p[3][0],objects:p[3][2]})}),a},ol=function(){return{a:!0,location:ye()}},Cf=function(t,u){return[t,...u]},Cp=function(t,u){return{subject:t,properties:u}},xf=function(t,u){return{subject:t,properties:u}},Bn=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{if(p[3]){let d=a.length-1,E=a[d].objects.length-1;n(a[d].predicate,p[3][0])?p[3][2].forEach(I=>{n(a[d].objects[E],I)||a[d].objects.push(I)}):a.push({predicate:p[3][0],objects:p[3][2]})}}),a},bf=function(t,u){return[t,...u]},da=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{alternative:o,location:ye()}}else return t},xp=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{sequence:o,location:ye()}}else return t},bp=function(t,u){return u&&(t.modifier=u),t},Ap=function(t){return t.inverse=!0,t},wr=function(){return{a:!0,location:ye()}},Np=function(t){return{bracketted:!0,...t}},al=function(t){return{collection:t,location:ye()}},Co=function(t){return{blankNodeProperties:t,location:ye()}},ci=function(t){return{collection:t,location:ye()}},ha=function(t){return{blankNodeProperties:t,location:ye()}},ll=function(t){return t},Af=function(t){return t},Nf=function(t){return t},Tf=function(t){return t},ul=function(t){return{...t,location:ye()}},Rf=function(t,u){return u.length?{expressionType:"conditionalor",operands:[t,...u]}:t},Tp=function(t,u){return u.length?{expressionType:"conditionaland",operands:[t,...u]}:t},fl=function(t,u){if(u.length){let o=t,a=u[0][1].toUpperCase(),p=u[0][3];return a==="NOT"&&(a+=" "+u[0][3].toUpperCase(),p=u[0][5]),{expressionType:"relationalexpression",operator:a,op1:o,op2:p}}else return t},yf=function(t,u){if(u.length===0)return t;let o=[];return u.forEach(a=>{a.length==4&&o.push({operator:a[1],expression:a[3]})}),{expressionType:"additiveexpression",op1:t,ops:o}},br=function(t,u){return u.length?{expressionType:"multiplicativeexpression",first:t,rest:u.map(o=>({operator:o[1],expression:o[3]}))}:t},Sf=function(t){return{expressionType:"unaryexpression",unaryexpression:"!",expression:t}},Rp=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},On=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},yp=function(t){return{expressionType:"atomic",value:t}},ga=function(t){return{expressionType:"atomic",value:t}},Sp=function(t){return{expressionType:"atomic",value:t}},Yr=function(t){return{expressionType:"atomic",value:t}},Lp=function(t){return{bracketted:!0,...t}},wp=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},Gp=function(t){return{expressionType:"builtincall",builtincall:"lang",args:[t]}},Ea=function(t,u){return{expressionType:"builtincall",builtincall:"langMatches",args:[t,u]}},s=function(t){return{expressionType:"builtincall",builtincall:"datatype",args:[t]}},l=function(t){return{expressionType:"builtincall",builtincall:"bound",args:[t]}},g=function(t){return{expressionType:"builtincall",builtincall:"IRI",args:[t]}},h=function(t){return{expressionType:"builtincall",builtincall:"URI",args:[t]}},v=function(t){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return t.length===5&&(u.args=[t[2]]),u},b=function(){return{expressionType:"builtincall",builtincall:"rand"}},N=function(t){return{expressionType:"builtincall",builtincall:"abs",args:[t]}},y=function(t){return{expressionType:"builtincall",builtincall:"ceil",args:[t]}},w=function(t){return{expressionType:"builtincall",builtincall:"floor",args:[t]}},G=function(t){return{expressionType:"builtincall",builtincall:"round",args:[t]}},k=function(t){return{expressionType:"builtincall",builtincall:"CONCAT",args:t}},_=function(t){return{expressionType:"builtincall",builtincall:"STRLEN",args:[t]}},ie=function(t){return{expressionType:"builtincall",builtincall:"UCASE",args:[t]}},te=function(t){return{expressionType:"builtincall",builtincall:"LCASE",args:[t]}},ae=function(t){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[t]}},ce=function(t,u){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[t,u]}},he=function(t,u){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[t,u]}},ve=function(t,u){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[t,u]}},Ce=function(t,u){return{expressionType:"builtincall",builtincall:"STRENDS",args:[t,u]}},Ie=function(t,u){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[t,u]}},Re=function(t){return{expressionType:"builtincall",builtincall:"year",args:[t]}},ke=function(t){return{expressionType:"builtincall",builtincall:"month",args:[t]}},We=function(t){return{expressionType:"builtincall",builtincall:"day",args:[t]}},tr=function(t){return{expressionType:"builtincall",builtincall:"hours",args:[t]}},Tr=function(t){return{expressionType:"builtincall",builtincall:"minutes",args:[t]}},ut=function(t){return{expressionType:"builtincall",builtincall:"seconds",args:[t]}},Ur=function(t){return{expressionType:"builtincall",builtincall:"timezone",args:[t]}},Jt=function(t){return{expressionType:"builtincall",builtincall:"tz",args:[t]}},Mt=function(){return{expressionType:"builtincall",builtincall:"now"}},jr=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ht=function(t){return{expressionType:"builtincall",builtincall:"MD5",args:[t]}},tt=function(t){return{expressionType:"builtincall",builtincall:"SHA1",args:[t]}},zr=function(t){return{expressionType:"builtincall",builtincall:"SHA256",args:[t]}},Zr=function(t){return{expressionType:"builtincall",builtincall:"SHA384",args:[t]}},Qt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Vn=function(t){return{expressionType:"builtincall",builtincall:"COALESCE",args:t}},Is=function(t,u,o){return{expressionType:"builtincall",builtincall:"IF",args:[t,u,o]}},Rt=function(t,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[t,u]}},wi=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},ft=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},cl=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Hi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},ks=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},Xs=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},Gt=function(t,u,o){let a={expressionType:"regex",text:t,pattern:u};return o&&(a.flags=o[2]),a},Wn=function(t,u,o){let a=[t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"substr",args:a}},pl=function(t,u,o,a){let p=[t,u,o];return a&&p.push(a[2]),{expressionType:"builtincall",builtincall:"replace",args:p}},Ah=function(t){return{exists:t.graphPattern||t}},Nh=function(t){return{notexists:t.graphPattern||t}},Th=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},Rh=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},yh=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},Sh=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},Lh=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},wh=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Gh=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},Uh=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Fh=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=ye(),t},Bh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Oh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Vh=function(t){return{type:"IRIref",iriref:t,location:ye()}},Wh=function(t){return t},Zh=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:ye()}},Mh=function(t){return{type:"PrefixedName",pn_prefix:t,location:ye()}},Dh=function(t){return{blankNode:t,location:ye()}},Qh=function(){return{blankNode:"[]",location:ye()}},kh=function(t){return t.join("")},Xh=function(t){return t||""},Ph=function(t,u){return{pn_prefix:t,pn_local:u}},Yh=function(){return $r()},Hh=function(t){return{type:"Var",varType:"VAR1",varname:t}},Jh=function(t){return{type:"Var",varType:"VAR2",varname:t}},_h=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},jh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:$r()}},zh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:$r()}},$h=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},qh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},Kh=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:$r()}},eg=function(t){return t.literal="+"+t.literal,t},rg=function(t){return t.literal="+"+t.literal,t},tg=function(t){return t.literal="+"+t.literal,t},ig=function(t){return t.literal="-"+t.literal,t},sg=function(t){return t.literal="-"+t.literal,t},ng=function(t){return t.literal="-"+t.literal,t},og=function(t){return{quote:"'",literal:t.join("")}},ag=function(t){return{quote:'"',literal:t.join("")}},lg=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},ug=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},fg=function(){return $r()},cg=function(){return $r()},pg=function(){return dd[ye().start.offset]=$r(),""},dg=function(){return $r()},hg=function(){return $r()},gg=function(){return $r()},r=0,U=0,xo=[{line:1,column:1}],yt=0,dl=[],x=0,bo;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function $r(){return i.substring(U,r)}function zx(){return U}function $x(){return{source:A,start:U,end:r}}function ye(){return Ps(U,r)}function qx(t,u){throw u=u!==void 0?u:Ps(U,r),Fp([mg(t)],i.substring(U,r),u)}function Kx(t,u){throw u=u!==void 0?u:Ps(U,r),vg(t,u)}function Q(t,u){return{type:"literal",text:t,ignoreCase:u}}function Ve(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function eb(){return{type:"any"}}function Eg(){return{type:"end"}}function mg(t){return{type:"other",description:t}}function Up(t){var u=xo[t],o;if(u)return u;for(o=t-1;!xo[o];)o--;for(u=xo[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return xo[t]=u,u}function Ps(t,u,o){var a=Up(t),p=Up(u),d={source:A,start:{offset:t,line:a.line,column:a.column},end:{offset:u,line:p.line,column:p.column}};return o&&A&&typeof A.offset=="function"&&(d.start=A.offset(d.start),d.end=A.offset(d.end)),d}function C(t){r<yt||(r>yt&&(yt=r,dl=[]),dl.push(t))}function vg(t,u){return new Kl(t,null,null,u)}function Fp(t,u,o){return new Kl(Kl.buildMessage(t,u),t,u,o)}function Bp(){var t,u,o,a,p,d;for(t=r,u=[],o=ud();o!==e;)u.push(o),o=ud();for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ig(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=Ln(u,a)}else r=t,t=e;return t}function Ig(){var t;return t=Cg(),t===e&&(t=Yp()),t}function Cg(){var t,u,o,a,p;for(t=r,u=Op(),o=[],a=c();a!==e;)o.push(a),a=c();return a=xg(),a===e&&(a=Ag(),a===e&&(a=Ng(),a===e&&(a=Tg()))),a!==e?(p=Pp(),U=t,t=_u(u,a,p)):(r=t,t=e),t}function Op(){var t,u,o;for(t=r,u=[],o=Vp(),o===e&&(o=Wp());o!==e;)u.push(o),o=Vp(),o===e&&(o=Wp());return U=t,u=ua(u),t=u,t}function Vp(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===F?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(hc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Fl(),p!==e?(U=t,t=ju(p)):(r=t,t=e)}else r=t,t=e;return t}function Wp(){var t,u,o,a,p,d,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Z?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Jn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Bl(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Fl(),E!==e?(U=t,t=ao(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function xg(){var t,u,o,a,p,d,E,I;if(t=r,u=Zp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=St();p!==e;)a.push(p),p=St();for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=Ys(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Ji(),U=t,t=Hc(u,a,d,I)}else r=t,t=e}else r=t,t=e;return t}function bg(){var t,u,o,a,p,d,E;if(t=r,u=Zp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ys(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Ji(),E=Pp(),U=t,t=wn(u,a,d,E)}else r=t,t=e}else r=t,t=e;return t}function Zp(){var t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te,Fe,ir;if(t=r,i.substr(r,6).toLowerCase()===M?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(ot)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===Y?(a=i.substr(r,8),r+=8):(a=e,x===0&&C(xt)),a===e&&(i.substr(r,7).toLowerCase()===X?(a=i.substr(r,7),r+=7):(a=e,x===0&&C(hu))),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(T=pr(),T!==e?(I=[I,T],E=I):(r=E,E=e),E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===40?(T=D,r++):(T=e,x===0&&C(le)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=se(),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();if(i.substr(r,2).toLowerCase()===z?(oe=i.substr(r,2),r+=2):(oe=e,x===0&&C(Ls)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(Te=pr(),Te!==e){for(Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();i.charCodeAt(r)===41?(ir=W,r++):(ir=e,x===0&&C(ue)),ir!==e?(I=[I,T,S,B,P,oe,ge,Te,Fe,ir],E=I):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}if(E!==e)for(;E!==e;){for(d.push(E),E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(T=pr(),T!==e?(I=[I,T],E=I):(r=E,E=e),E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===40?(T=D,r++):(T=e,x===0&&C(le)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=se(),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();if(i.substr(r,2).toLowerCase()===z?(oe=i.substr(r,2),r+=2):(oe=e,x===0&&C(Ls)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(Te=pr(),Te!==e){for(Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();i.charCodeAt(r)===41?(ir=W,r++):(ir=e,x===0&&C(ue)),ir!==e?(I=[I,T,S,B,P,oe,ge,Te,Fe,ir],E=I):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}}else d=e;d===e&&(i.charCodeAt(r)===42?(d=K,r++):(d=e,x===0&&C(_r))),d!==e?(U=t,t=zu(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Ag(){var t,u,o,a,p,d,E,I,T,S,B,P,oe,ge;if(t=r,i.substr(r,9).toLowerCase()===J?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(_n)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=tE(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=St();E!==e;)d.push(E),E=St();for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=Ys(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),U=t,t=$u(a,d,I,S)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,9).toLowerCase()===J?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(_n)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=St();p!==e;)a.push(p),p=St();for(p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===O?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(us)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===123?(I=V,r++):(I=e,x===0&&C(Vt)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=ji(),S===e&&(S=null),B=[],P=c();P!==e;)B.push(P),P=c();if(i.charCodeAt(r)===125?(P=H,r++):(P=e,x===0&&C(Wt)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();ge=Ji(),U=t,t=qu(a,S,ge)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Ng(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,8).toLowerCase()===$?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=$i(),p!==e)for(;p!==e;)a.push(p),p=$i();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=K,r++):(a=e,x===0&&C(_r))),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(d=[],E=St();E!==e;)d.push(E),E=St();for(E=[],I=c();I!==e;)E.push(I),I=c();for(I=Ys(),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),U=t,t=lo(a,d,I,S)}else r=t,t=e}else r=t,t=e;return t}function Tg(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,3).toLowerCase()===q?(o=i.substr(r,3),r+=3):(o=e,x===0&&C(Eu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=St();d!==e;)p.push(d),d=St();for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=Ys(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();T=Ji(),U=t,t=uo(p,E,T)}else r=t,t=e}else r=t,t=e;return t}function St(){var t,u,o,a,p,d;if(t=r,i.substr(r,4).toLowerCase()===ee?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rg(),a===e&&(a=yg()),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=fo(a)}else r=t,t=e}else r=t,t=e;return t}function Rg(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=vr(),o!==e?(U=t,t=co(o)):(r=t,t=e),t}function yg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ne?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Di)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=vr(),a!==e?(U=t,t=Ku(a)):(r=t,t=e)}else r=t,t=e;return t}function Ys(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===O?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(us)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return a=ct(),a!==e?(U=t,t=Jc(a)):(r=t,t=e),t}function Ji(){var t,u,o,a,p;return t=r,u=Sg(),u===e&&(u=null),o=Lg(),o===e&&(o=null),a=wg(),a===e&&(a=null),p=Gg(),p===e&&(p=null),U=t,t=ef(u,o,a,p),t}function Sg(){var t,u,o,a,p,d,E;if(t=r,i.substr(r,5).toLowerCase()===de?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Qi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===Se?(a=i.substr(r,2),r+=2):(a=e,x===0&&C(gn)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=[],E=Mp(),E!==e)for(;E!==e;)d.push(E),E=Mp();else d=e;d!==e?(U=t,t=ms(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Mp(){var t,u,o,a,p,d,E,I,T,S,B;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=yl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=Gn(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=rd(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=po(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=r,i.substr(r,2).toLowerCase()===z?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(Ls)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=pr(),S!==e?(I=[I,T,S],E=I):(r=E,E=e)}else r=E,E=e;for(E===e&&(E=null),I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=t,t=_c(p,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=pr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=rf(o)}else r=t,t=e}}}return t}function Lg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===be?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Dp(),p!==e)for(;p!==e;)a.push(p),p=Dp();else a=e;a!==e?(U=t,t=jc(a)):(r=t,t=e)}else r=t,t=e;return t}function Dp(){var t,u,o,a;if(t=r,u=El(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=t,t=zc(u)}else r=t,t=e;return t}function wg(){var t,u,o,a,p,d,E,I;if(t=r,i.substr(r,5).toLowerCase()===Ze?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(mu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===Se?(a=i.substr(r,2),r+=2):(a=e,x===0&&C(gn)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=[],E=Qp(),E!==e)for(;E!==e;)d.push(E),E=Qp();else d=e;if(d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();U=t,t=$c(d)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Qp(){var t,u,o,a,p,d;if(t=r,i.substr(r,3).toLowerCase()===Be?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Ni)),u===e&&(i.substr(r,4).toLowerCase()===Ke?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(ws))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rl(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=Zt(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=El(),u===e&&(u=pr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=t,t=tf(u)}else r=t,t=e;return t}function Gg(){var t,u,o,a;return t=r,u=r,o=kp(),o!==e?(a=Xp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=Xp(),o!==e?(a=kp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(U=t,u=qc(u)),t=u,t}function kp(){var t,u,o,a,p,d;if(t=r,i.substr(r,5).toLowerCase()===Ee?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ma)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=js(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=Kc(a)}else r=t,t=e}else r=t,t=e;return t}function Xp(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===Er?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ec)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=js(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();U=t,t=ep(a)}else r=t,t=e}else r=t,t=e;return t}function Pp(){var t,u,o,a;return t=r,u=r,i.substr(r,6).toLowerCase()===ur?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Jo)),o!==e?(a=Kp(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),U=t,u=sf(u),t=u,t}function Yp(){var t,u,o,a,p,d,E,I,T,S;for(t=r,u=Op(),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ug(),p!==e){for(d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Yp(),E=[E,I,T,S],d=E}else r=d,d=e;d===e&&(d=null),a=[a,p,d],o=a}else r=o,o=e;for(o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();return U=t,t=nf(u,o),t}function Ug(){var t;return t=Fg(),t===e&&(t=Bg(),t===e&&(t=Og(),t===e&&(t=Wg(),t===e&&(t=Zg(),t===e&&(t=Mg(),t===e&&(t=Vg(),t===e&&(t=Dg(),t===e&&(t=Qg(),t===e&&(t=kg(),t===e&&(t=Xg())))))))))),t}function Fg(){var t,u,o,a,p,d,E,I,T,S,B;if(t=r,i.substr(r,4).toLowerCase()===Or?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(vu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=vr(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=r,i.substr(r,4).toLowerCase()===et?(T=i.substr(r,4),r+=4):(T=e,x===0&&C(En)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=hl(),B!==e?(T=[T,S,B],I=T):(r=I,I=e)}else r=I,I=e;I===e&&(I=null),U=t,t=of(a,d,I)}else r=t,t=e}else r=t,t=e;return t}function Bg(){var t,u,o,a,p,d;if(t=r,i.substr(r,5).toLowerCase()===rt?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ti)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();d=_p(),d!==e?(U=t,t=rp(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Og(){var t,u,o,a,p,d;if(t=r,i.substr(r,4).toLowerCase()===cr?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Iu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();d=_p(),d!==e?(U=t,t=tp(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Vg(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===qe?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Cu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();d=hl(),d!==e?(U=t,t=ip(a,d)):(r=t,t=e)}else r=t,t=e;return t}function Wg(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,3).toLowerCase()===Pe?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(mc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=_i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===Ir?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(jn)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),S!==e?(U=t,t=vs(a,d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zg(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,4).toLowerCase()===Me?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=_i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===Ir?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(jn)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),S!==e?(U=t,t=ho(a,d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Mg(){var t,u,o,a,p,d,E,I,T,S;if(t=r,i.substr(r,4).toLowerCase()===Rr?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(xu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=_i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===Ir?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(jn)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),S!==e?(U=t,t=fa(a,d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Dg(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===dr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(_o)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,4).toLowerCase()===Hr?(a=i.substr(r,4),r+=4):(a=e,x===0&&C(Gs)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=jp(),d!==e?(U=t,t=go(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Qg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.substr(r,4).toLowerCase()===Hr?(a=i.substr(r,4),r+=4):(a=e,x===0&&C(Gs)),a!==e?(p=jp(),p!==e?(U=t,t=Yi(p)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function kg(){var t,u,o,a,p,d;if(t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,5).toLowerCase()===O?(a=i.substr(r,5),r+=5):(a=e,x===0&&C(us)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=gl(),d!==e?(U=t,t=sp(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Xg(){var t,u,o,a,p,d,E,I,T,S,B;if(t=r,u=r,i.substr(r,4).toLowerCase()===ti?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(bu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=vr(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();o=[o,a,p,d],u=o}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),o=r,a=Pg(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=Hp(),d===e&&(d=null),a=[a,p,d],o=a}else r=o,o=e;if(o===e&&(o=Hp()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=Jp();d!==e;)p.push(d),d=Jp();for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.substr(r,5).toLowerCase()===O?(E=i.substr(r,5),r+=5):(E=e,x===0&&C(us)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(T=ct(),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();U=t,t=np(u,o,p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Pg(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(mn)),u!==e?(o=gl(),o!==e?(U=t,t=Un(o)):(r=t,t=e)):(r=t,t=e),t}function Hp(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===dr?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(_o)),u!==e?(o=gl(),o!==e?(U=t,t=af(o)):(r=t,t=e)):(r=t,t=e),t}function Jp(){var t,u,o,a,p,d,E,I;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Ge?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(Da)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=vr(),p===e)if(p=r,i.substr(r,5).toLowerCase()===ne?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(Di)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=vr(),I!==e?(d=[d,E,I],p=d):(r=p,p=e)}else r=p,p=e;p!==e?(U=t,t=lf(p)):(r=t,t=e)}else r=t,t=e;return t}function _i(){var t,u,o,a;if(t=r,i.substr(r,7).toLowerCase()===fe?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(vn)),u!==e&&(U=t,u=uf()),t=u,t===e){for(t=r,i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();a=vr(),a!==e?(U=t,t=ca(a)):(r=t,t=e)}return t}function hl(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===Ar?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=vr(),a!==e?(U=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;return t}function _p(){var t,u;return t=r,u=hl(),u!==e&&(U=t,u=rl(u)),t=u,t===e&&(t=r,i.substr(r,7).toLowerCase()===fe?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(vn)),u!==e&&(U=t,u=tl()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ne?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Di)),u!==e&&(U=t,u=il()),t=u,t===e&&(t=r,i.substr(r,3).toLowerCase()===mr?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(jo)),u!==e&&(U=t,u=op()),t=u))),t}function gl(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,x===0&&C(Vt)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=zp(),d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===125?(E=H,r++):(E=e,x===0&&C(Wt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=Eo(p)}else r=t,t=e}else r=t,t=e;return t}function jp(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,x===0&&C(Vt)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=zp(),d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===125?(E=H,r++):(E=e,x===0&&C(Wt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=ff(p)}else r=t,t=e}else r=t,t=e;return t}function zp(){var t,u,o,a,p,d,E;for(t=r,u=ji(),u===e&&(u=null),o=[],a=r,p=$p(),p!==e?(i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d===e&&(d=null),E=ji(),E===e&&(E=null),p=[p,d,E],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,p=$p(),p!==e?(i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d===e&&(d=null),E=ji(),E===e&&(E=null),p=[p,d,E],a=p):(r=a,a=e);return U=t,t=ap(u,o),t}function $p(){var t,u,o,a,p,d,E,I,T,S,B,P,oe;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Ar?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(fs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=$i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,x===0&&C(Vt)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();for(T=ji(),T===e&&(T=null),S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===125?(B=H,r++):(B=e,x===0&&C(Wt)),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();U=t,t=cf(p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function ji(){var t,u,o,a,p,d,E;if(t=r,u=sd(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ji(),E===e&&(E=null),a=[a,p,d,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=pa(u,o)}else r=t,t=e;return t}function ct(){var t,u,o,a,p,d;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=bg(),a===e&&(a=Yg()),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e?(U=t,t=lp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Yg(){var t,u,o,a,p,d,E,I,T,S;for(t=r,u=Ao(),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=r,d=qp(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();for(i.charCodeAt(r)===46?(I=Ue,r++):(I=e,x===0&&C(er)),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),d=[d,E,I,T,S],p=d}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,d=qp(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();for(i.charCodeAt(r)===46?(I=Ue,r++):(I=e,x===0&&C(er)),I===e&&(I=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),d=[d,E,I,T,S],p=d}else r=p,p=e;return U=t,t=up(u,a),t}function Ao(){var t,u,o,a,p,d,E;if(t=r,u=sE(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=Ao(),E===e&&(E=null),a=[a,p,d,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=mo(u,o)}else r=t,t=e;return t}function qp(){var t;return t=eE(),t===e&&(t=Hg(),t===e&&(t=Kg(),t===e&&(t=Jg(),t===e&&(t=_g(),t===e&&(t=rE(),t===e&&(t=jg(),t===e&&(t=zg()))))))),t}function Hg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,8).toLowerCase()===Vr?(o=i.substr(r,8),r+=8):(o=e,x===0&&C(Au)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ct(),p!==e?(U=t,t=pf(p)):(r=t,t=e)}else r=t,t=e;return t}function Jg(){var t,u,o,a,p,d,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Ar?(o=i.substr(r,5),r+=5):(o=e,x===0&&C(fs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=$i(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=ct(),E!==e?(U=t,t=df(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function _g(){var t,u,o,a,p,d,E,I;if(t=r,i.substr(r,7).toLowerCase()===ii?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Qa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(bt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=$i(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=ct(),I!==e?(U=t,t=fp(a,d,I)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function jg(){var t,u,o,a,p,d,E,I,T,S,B,P,oe;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===xe?(o=i.substr(r,4),r+=4):(o=e,x===0&&C(ka)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===40?(p=D,r++):(p=e,x===0&&C(le)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();if(i.substr(r,2).toLowerCase()===z?(T=i.substr(r,2),r+=2):(T=e,x===0&&C(Ls)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();if(B=pr(),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();i.charCodeAt(r)===41?(oe=W,r++):(oe=e,x===0&&C(ue)),oe!==e?(U=t,t=sl(E,B)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function zg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===ur?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Jo)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Kp(),p!==e?(U=t,t=hf(p)):(r=t,t=e)}else r=t,t=e;return t}function Kp(){var t;return t=$g(),t===e&&(t=qg()),t}function $g(){var t,u,o,a,p,d,E,I;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=pr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===123?(p=V,r++):(p=e,x===0&&C(Vt)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();for(E=[],I=No();I!==e;)E.push(I),I=No();i.charCodeAt(r)===125?(I=H,r++):(I=e,x===0&&C(Wt)),I!==e?(U=t,t=cp(o,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function qg(){var t,u,o,a,p,d,E,I,T,S,B;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],d=pr();d!==e;)p.push(d),d=pr();if(i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===123?(I=V,r++):(I=e,x===0&&C(Vt)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=[],B=ed();B!==e;)S.push(B),B=ed();i.charCodeAt(r)===125?(B=H,r++):(B=e,x===0&&C(Wt)),B!==e?(U=t,t=gf(p,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function ed(){var t,u,o,a,p,d,E;if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=No();p!==e;)a.push(p),p=No();if(i.charCodeAt(r)===41?(p=W,r++):(p=e,x===0&&C(ue)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();U=t,t=Ef(a)}else r=t,t=e}else r=t,t=e;return t}function No(){var t,u,o,a;if(t=r,u=vr(),u===e&&(u=Sl(),u===e&&(u=Ll(),u===e&&(u=Ul(),u===e&&(i.substr(r,5)===Ft?(u=Ft,r+=5):(u=e,x===0&&C(Nu)))))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();U=t,t=pp(u)}else r=t,t=e;return t}function Kg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===gt?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Tu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ct(),a!==e?(U=t,t=nl(a)):(r=t,t=e)}else r=t,t=e;return t}function eE(){var t,u,o,a,p,d,E,I;if(t=r,u=ct(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===Et?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(zn)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=ct(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,5).toLowerCase()===Et?(d=i.substr(r,5),r+=5):(d=e,x===0&&C(zn)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=ct(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=vo(u,o)}else r=t,t=e;return t}function rE(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===ts?(o=i.substr(r,6),r+=6):(o=e,x===0&&C(Ic)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=El(),p!==e?(U=t,t=Io(p)):(r=t,t=e)}else r=t,t=e;return t}function El(){var t;return t=Rl(),t===e&&(t=yl(),t===e&&(t=rd())),t}function rd(){var t,u,o,a;if(t=r,u=vr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=td(),a!==e?(U=t,t=dp(u,a)):(r=t,t=e)}else r=t,t=e;return t}function td(){var t,u,o,a,p,d,E,I,T,S,B,P;if(t=r,u=ei(),u!==e&&(U=t,u=mf()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===Y?(a=i.substr(r,8),r+=8):(a=e,x===0&&C(xt)),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(I=[],T=r,i.charCodeAt(r)===44?(S=De,r++):(S=e,x===0&&C(Ye)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();P=se(),P!==e?T=P:(r=T,T=e)}else r=T,T=e;for(;T!==e;)if(I.push(T),T=r,i.charCodeAt(r)===44?(S=De,r++):(S=e,x===0&&C(Ye)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();P=se(),P!==e?T=P:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e?(U=t,t=hp(a,d,I)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zi(){var t,u,o,a,p,d,E,I,T,S,B,P;if(t=r,u=ei(),u!==e&&(U=t,u=gp()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=[],E=r,i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();E=S}else r=E,E=e}else r=E,E=e;for(;E!==e;)if(d.push(E),E=r,i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e?(U=t,t=Ep(a,d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function tE(){var t,u,o,a,p,d;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,x===0&&C(Vt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=id(),a===e&&(a=null),p=[],d=c();d!==e;)p.push(d),d=c();i.charCodeAt(r)===125?(d=H,r++):(d=e,x===0&&C(Wt)),d!==e?(U=t,t=mp(a)):(r=t,t=e)}else r=t,t=e;return t}function id(){var t,u,o,a,p,d,E;if(t=r,u=sd(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();E=id(),E===e&&(E=null),a=[a,p,d,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=vf(u,o)}else r=t,t=e;return t}function sd(){var t,u,o,a,p;if(t=r,u=yo(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ml(),a!==e?(U=t,t=vp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=od(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=iE(),U=t,t=Ip(o,p)}else r=t,t=e}return t}function iE(){var t;return t=ml(),t===e&&(t=null),t}function ml(){var t,u,o,a,p,d,E,I,T,S,B,P,oe;if(t=r,u=vl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Il(),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=vl(),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();oe=Il(),oe!==e?(B=[B,P,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e;for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=vl(),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();oe=Il(),oe!==e?(B=[B,P,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e}U=t,t=If(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function vl(){var t,u;return t=$i(),t===e&&(t=r,i.charCodeAt(r)===97?(u=mt,r++):(u=e,x===0&&C(Us)),u!==e&&(U=t,u=ol()),t=u),t}function Il(){var t,u,o,a,p,d,E,I;if(t=r,u=Hs(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Hs(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Hs(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=Cf(u,o)}else r=t,t=e;return t}function sE(){var t,u,o,a,p;if(t=r,u=yo(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Cl(),a!==e?(U=t,t=Cp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=ad(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=nE(),U=t,t=xf(o,p)}else r=t,t=e}return t}function nE(){var t;return t=Cl(),t===e&&(t=null),t}function Cl(){var t,u,o,a,p,d,E,I,T,S,B,P,oe;if(t=r,u=To(),u===e&&(u=pr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=xl(),a!==e){for(p=[],d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=To(),B===e&&(B=pr()),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();oe=xl(),oe!==e?(B=[B,P,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e;for(;d!==e;){for(p.push(d),d=r,E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===59?(I=or,r++):(I=e,x===0&&C($t)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,B=To(),B===e&&(B=pr()),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();oe=xl(),oe!==e?(B=[B,P,oe],S=B):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,I,T,S],d=E}else r=d,d=e}U=t,t=Bn(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function xl(){var t,u,o,a,p,d,E,I;if(t=r,u=Js(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Js(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===44?(d=De,r++):(d=e,x===0&&C(Ye)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Js(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=bf(u,o)}else r=t,t=e;return t}function To(){var t,u,o,a,p,d,E,I;if(t=r,u=bl(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=bl(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===124?(d=Le,r++):(d=e,x===0&&C(qt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=bl(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}U=t,t=da(u,o)}else r=t,t=e;return t}function bl(){var t,u,o,a,p,d,E,I;if(t=r,u=Al(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Al(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Al(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}U=t,t=xp(u,o)}else r=t,t=e;return t}function nd(){var t,u,o;return t=r,u=aE(),u!==e?(o=oE(),o===e&&(o=null),U=t,t=bp(u,o)):(r=t,t=e),t}function Al(){var t,u,o;return t=nd(),t===e&&(t=r,i.charCodeAt(r)===94?(u=pt,r++):(u=e,x===0&&C(cs)),u!==e?(o=nd(),o!==e?(U=t,t=Ap(o)):(r=t,t=e)):(r=t,t=e)),t}function oE(){var t;return i.charCodeAt(r)===63?(t=dt,r++):(t=e,x===0&&C(Fs)),t===e&&(i.charCodeAt(r)===42?(t=K,r++):(t=e,x===0&&C(_r)),t===e&&(i.charCodeAt(r)===43?(t=nr,r++):(t=e,x===0&&C(At)))),t}function aE(){var t,u,o,a;return t=vr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=mt,r++):(u=e,x===0&&C(Us)),u!==e&&(U=t,u=wr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=Wr,r++):(u=e,x===0&&C(In)),u!==e?(o=lE(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e?(o=To(),o!==e?(i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e?(U=t,t=Np(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function lE(){var t,u,o,a,p,d,E,I;if(t=Ro(),t===e)if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){if(o=r,a=Ro(),a!==e){for(p=[],d=r,i.charCodeAt(r)===124?(E=Le,r++):(E=e,x===0&&C(qt)),E!==e?(I=Ro(),I!==e?(E=[E,I],d=E):(r=d,d=e)):(r=d,d=e);d!==e;)p.push(d),d=r,i.charCodeAt(r)===124?(E=Le,r++):(E=e,x===0&&C(qt)),E!==e?(I=Ro(),I!==e?(E=[E,I],d=E):(r=d,d=e)):(r=d,d=e);a=[a,p],o=a}else r=o,o=e;o===e&&(o=null),i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function Ro(){var t,u,o;return t=vr(),t===e&&(i.charCodeAt(r)===97?(t=mt,r++):(t=e,x===0&&C(Us)),t===e&&(t=r,i.charCodeAt(r)===94?(u=pt,r++):(u=e,x===0&&C(cs)),u!==e?(o=vr(),o===e&&(i.charCodeAt(r)===97?(o=mt,r++):(o=e,x===0&&C(Us))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function od(){var t,u;return t=r,u=cE(),u!==e&&(U=t,u=al(u)),t=u,t===e&&(t=uE()),t}function uE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=vt,r++):(o=e,x===0&&C(Bs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ml(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===93?(E=Bt,r++):(E=e,x===0&&C(ui)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=Co(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function ad(){var t,u;return t=r,u=pE(),u!==e&&(U=t,u=ci(u)),t=u,t===e&&(t=fE()),t}function fE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=vt,r++):(o=e,x===0&&C(Bs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Cl(),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===93?(E=Bt,r++):(E=e,x===0&&C(ui)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=ha(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function cE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Hs(),d!==e)for(;d!==e;)p.push(d),d=Hs();else p=e;if(p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=ll(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function pE(){var t,u,o,a,p,d,E,I,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],d=Js(),d!==e)for(;d!==e;)p.push(d),d=Js();else p=e;if(p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(i.charCodeAt(r)===41?(E=W,r++):(E=e,x===0&&C(ue)),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();U=t,t=Af(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Hs(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=yo(),o===e&&(o=od()),o!==e?(U=t,t=Nf(o)):(r=t,t=e),t}function Js(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=yo(),o===e&&(o=ad()),o!==e?(U=t,t=Tf(o)):(r=t,t=e),t}function yo(){var t;return t=pr(),t===e&&(t=dE()),t}function $i(){var t;return t=pr(),t===e&&(t=vr()),t}function pr(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=RE(),o===e&&(o=yE()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();U=t,t=ul(o)}else r=t,t=e;return t}function dE(){var t;return t=vr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(t=AE(),t===e&&(t=ei()))))),t}function se(){var t,u,o,a,p,d,E,I;if(t=r,u=Nl(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Lt?(d=Lt,r+=2):(d=e,x===0&&C(ki)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Nl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Lt?(d=Lt,r+=2):(d=e,x===0&&C(ki)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Nl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=Rf(u,o)}else r=t,t=e;return t}function Nl(){var t,u,o,a,p,d,E,I;if(t=r,u=Tl(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===si?(d=si,r+=2):(d=e,x===0&&C(Nt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Tl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===si?(d=si,r+=2):(d=e,x===0&&C(Nt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Tl(),I!==e?a=I:(r=a,a=e)}else r=a,a=e}U=t,t=Tp(u,o)}else r=t,t=e;return t}function Tl(){var t,u,o,a,p,d,E,I,T,S;if(t=r,u=Mr(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===61?(d=Sr,r++):(d=e,x===0&&C(Yt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Ot?(d=Ot,r+=2):(d=e,x===0&&C(Ri)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===60?(d=Oe,r++):(d=e,x===0&&C(ps)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===62?(d=oi,r++):(d=e,x===0&&C($n)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Jr?(d=Jr,r+=2):(d=e,x===0&&C(zo)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===hr?(d=hr,r+=2):(d=e,x===0&&C(Os)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2).toLowerCase()===xr?(d=i.substr(r,2),r+=2):(d=e,x===0&&C(ds)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=zi(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,3).toLowerCase()===is?(d=i.substr(r,3),r+=3):(d=e,x===0&&C(Vs)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===xr?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(ds)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,d,E,I,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===61?(d=Sr,r++):(d=e,x===0&&C(Yt)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Ot?(d=Ot,r+=2):(d=e,x===0&&C(Ri)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===60?(d=Oe,r++):(d=e,x===0&&C(ps)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===62?(d=oi,r++):(d=e,x===0&&C($n)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===Jr?(d=Jr,r+=2):(d=e,x===0&&C(zo)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2)===hr?(d=hr,r+=2):(d=e,x===0&&C(Os)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Mr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,2).toLowerCase()===xr?(d=i.substr(r,2),r+=2):(d=e,x===0&&C(ds)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=zi(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.substr(r,3).toLowerCase()===is?(d=i.substr(r,3),r+=3):(d=e,x===0&&C(Vs)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.substr(r,2).toLowerCase()===xr?(I=i.substr(r,2),r+=2):(I=e,x===0&&C(ds)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,d,E,I,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}U=t,t=fl(u,o)}else r=t,t=e;return t}function Mr(){var t,u,o,a,p,d,E,I,T,S,B;if(t=r,u=_s(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===43?(d=nr,r++):(d=e,x===0&&C(At)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Gl()),p!==e){for(d=[],E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=K,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(d.push(E),E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=K,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}}p=[p,d],a=p}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===43?(d=nr,r++):(d=e,x===0&&C(At)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=_s(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Gl()),p!==e){for(d=[],E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=K,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(d.push(E),E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===42?(T=K,r++):(T=e,x===0&&C(_r)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,I=[],T=c();T!==e;)I.push(T),T=c();if(i.charCodeAt(r)===47?(T=sr,r++):(T=e,x===0&&C(Xr)),T!==e){for(S=[],B=c();B!==e;)S.push(B),B=c();B=Dr(),B!==e?(I=[I,T,S,B],E=I):(r=E,E=e)}else r=E,E=e}}p=[p,d],a=p}else r=a,a=e}}U=t,t=yf(u,o)}else r=t,t=e;return t}function _s(){var t,u,o,a,p,d,E,I;if(t=r,u=Dr(),u!==e){for(o=[],a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===42?(d=K,r++):(d=e,x===0&&C(_r)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===42?(d=K,r++):(d=e,x===0&&C(_r)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],d=c();d!==e;)p.push(d),d=c();if(i.charCodeAt(r)===47?(d=sr,r++):(d=e,x===0&&C(Xr)),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();I=Dr(),I!==e?(p=[p,d,E,I],a=p):(r=a,a=e)}else r=a,a=e}}U=t,t=br(u,o)}else r=t,t=e;return t}function Dr(){var t,u,o,a;if(t=r,i.charCodeAt(r)===33?(u=Wr,r++):(u=e,x===0&&C(In)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=So(),a!==e?(U=t,t=Sf(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=So(),a!==e?(U=t,t=Rp(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=So(),a!==e?(U=t,t=On(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=So())}}return t}function So(){var t,u;return t=Rl(),t===e&&(t=yl(),t===e&&(t=CE(),t===e&&(t=r,u=Sl(),u!==e&&(U=t,u=yp(u)),t=u,t===e&&(t=r,u=Ll(),u!==e&&(U=t,u=ga(u)),t=u,t===e&&(t=r,u=Ul(),u!==e&&(U=t,u=Sp(u)),t=u,t===e&&(t=r,u=pr(),u!==e&&(U=t,u=Yr(u)),t=u)))))),t}function Rl(){var t,u,o,a,p,d;if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();i.charCodeAt(r)===41?(d=W,r++):(d=e,x===0&&C(ue)),d!==e?(U=t,t=Lp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function yl(){var t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te,Fe;if(t=IE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===ss?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Cc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=wp(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===It?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Xa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Gp(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,11).toLowerCase()===kr?(u=i.substr(r,11),r+=11):(u=e,x===0&&C(Ru)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=Ea(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===vi?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Pa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=s(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Ns?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ya)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=pr(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=l(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===rn?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Cn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=g(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===tn?(u=i.substr(r,3),r+=3):(u=e,x===0&&C($o)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=h(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Oo?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(yu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=r,i.charCodeAt(r)===40?(p=D,r++):(p=e,x===0&&C(le)),p!==e){for(d=[],E=c();E!==e;)d.push(E),E=c();if(E=se(),E!==e){for(I=[],T=c();T!==e;)I.push(T),T=c();i.charCodeAt(r)===41?(T=W,r++):(T=e,x===0&&C(ue)),T!==e?(p=[p,d,E,I,T],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=ei()),a!==e?(U=t,t=v(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===sn?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(qo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=b()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ya?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(xc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=N(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Xt?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=y(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Bi?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ac)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=w(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===nn?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Ha)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=G(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Vo?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(U=t,t=k(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=gE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===Xn?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(xn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=_(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e&&(t=EE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===on?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(qn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ie(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===ai?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Nc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=te(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,14).toLowerCase()===an?(u=i.substr(r,14),r+=14):(u=e,x===0&&C(Ko)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ae(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Oi?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Su)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=ce(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Wo?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(Kn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=he(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Zo?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(Lu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=ve(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ln?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Ws)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=Ce(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Qe?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(eo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=Ie(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===re?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Zs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Re(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===me?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(ro)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ke(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===we?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(bn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=We(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Nr?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(wu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=tr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===nt?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Tr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===rr?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Uu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ut(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Ae?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Tc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Ur(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===Ct?(u=i.substr(r,2),r+=2):(u=e,x===0&&C(Ms)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Jt(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ii?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Ds)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=Mt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Pt?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Rc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=jr()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Je?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(yc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ei(),a!==e?(U=t,t=Dt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ci?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Sc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ht(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ns?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Lc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=tt(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Sa?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=zr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===pe?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Zr(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===ze?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(Ht)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Qt(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===La?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(at)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(U=t,t=Vn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===wa?(u=i.substr(r,2),r+=2):(u=e,x===0&&C(wt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();if(i.charCodeAt(r)===44?(P=De,r++):(P=e,x===0&&C(Ye)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=se(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();i.charCodeAt(r)===41?(Fe=W,r++):(Fe=e,x===0&&C(ue)),Fe!==e?(U=t,t=Is(d,S,ge)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Mo?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(lt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=Rt(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Do?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(to)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=wi(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===ru?(u=i.substr(r,8),r+=8):(u=e,x===0&&C(Uc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();i.charCodeAt(r)===41?(P=W,r++):(P=e,x===0&&C(ue)),P!==e?(U=t,t=ft(d,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===$e?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(ea)),u===e&&(i.substr(r,5).toLowerCase()===qf?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Fc))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=cl(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===tu?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Hi(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Qo?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(Oc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=ks(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===xi?(u=i.substr(r,9),r+=9):(u=e,x===0&&C(_a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();i.charCodeAt(r)===41?(I=W,r++):(I=e,x===0&&C(ue)),I!==e?(U=t,t=Xs(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;t===e&&(t=hE(),t===e&&(t=mE(),t===e&&(t=vE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function hE(){var t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te;if(t=r,i.substr(r,5).toLowerCase()===iu?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Fu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();if(P=r,i.charCodeAt(r)===44?(oe=De,r++):(oe=e,x===0&&C(Ye)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();Te=se(),Te!==e?(oe=[oe,ge,Te],P=oe):(r=P,P=e)}else r=P,P=e;for(P===e&&(P=null),oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();i.charCodeAt(r)===41?(ge=W,r++):(ge=e,x===0&&C(ue)),ge!==e?(U=t,t=Gt(d,S,P)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function gE(){var t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te;if(t=r,i.substr(r,6).toLowerCase()===su?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();if(P=r,i.charCodeAt(r)===44?(oe=De,r++):(oe=e,x===0&&C(Ye)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();Te=se(),Te!==e?(oe=[oe,ge,Te],P=oe):(r=P,P=e)}else r=P,P=e;for(P===e&&(P=null),oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();i.charCodeAt(r)===41?(ge=W,r++):(ge=e,x===0&&C(ue)),ge!==e?(U=t,t=Wn(d,S,P)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function EE(){var t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te,Fe,ir,_t,Dl;if(t=r,i.substr(r,7).toLowerCase()===Pn?(u=i.substr(r,7),r+=7):(u=e,x===0&&C(Vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();if(d=se(),d!==e){for(E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===44?(I=De,r++):(I=e,x===0&&C(Ye)),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();if(i.charCodeAt(r)===44?(P=De,r++):(P=e,x===0&&C(Ye)),P!==e){for(oe=[],ge=c();ge!==e;)oe.push(ge),ge=c();if(ge=se(),ge!==e){for(Te=[],Fe=c();Fe!==e;)Te.push(Fe),Fe=c();if(Fe=r,i.charCodeAt(r)===44?(ir=De,r++):(ir=e,x===0&&C(Ye)),ir!==e){for(_t=[],Dl=c();Dl!==e;)_t.push(Dl),Dl=c();Dl=se(),Dl!==e?(ir=[ir,_t,Dl],Fe=ir):(r=Fe,Fe=e)}else r=Fe,Fe=e;for(Fe===e&&(Fe=null),ir=[],_t=c();_t!==e;)ir.push(_t),_t=c();i.charCodeAt(r)===41?(_t=W,r++):(_t=e,x===0&&C(ue)),_t!==e?(U=t,t=pl(d,S,ge,Fe)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function mE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===Yn?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(io)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ct(),a!==e?(U=t,t=Ah(a)):(r=t,t=e)}else r=t,t=e;return t}function vE(){var t,u,o,a,p,d;if(t=r,i.substr(r,3).toLowerCase()===is?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Vs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,6).toLowerCase()===Yn?(a=i.substr(r,6),r+=6):(a=e,x===0&&C(io)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();d=ct(),d!==e?(U=t,t=Nh(d)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function IE(){var t,u,o,a,p,d,E,I,T,S,B,P,oe,ge,Te,Fe,ir;if(t=r,i.substr(r,5).toLowerCase()===nu?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(i.charCodeAt(r)===42?(I=K,r++):(I=e,x===0&&C(_r)),I===e&&(I=se()),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=t,t=Th(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ga?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=t,t=Rh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ou?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Ou)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=t,t=yh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===au?(u=i.substr(r,3),r+=3):(u=e,x===0&&C($a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=t,t=Sh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===lu?(u=i.substr(r,3),r+=3):(u=e,x===0&&C(Vu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=t,t=Lh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===uu?(u=i.substr(r,6),r+=6):(u=e,x===0&&C(so)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=W,r++):(S=e,x===0&&C(ue)),S!==e){for(B=[],P=c();P!==e;)B.push(P),P=c();U=t,t=wh(d,I)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,12).toLowerCase()===Kf?(u=i.substr(r,12),r+=12):(u=e,x===0&&C(Wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=D,r++):(a=e,x===0&&C(le)),a!==e){for(p=[],d=c();d!==e;)p.push(d),d=c();for(i.substr(r,8).toLowerCase()===Y?(d=i.substr(r,8),r+=8):(d=e,x===0&&C(xt)),d===e&&(d=null),E=[],I=c();I!==e;)E.push(I),I=c();if(I=se(),I!==e){for(T=r,S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===59?(B=or,r++):(B=e,x===0&&C($t)),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();if(i.substr(r,9).toLowerCase()===ec?(oe=i.substr(r,9),r+=9):(oe=e,x===0&&C(ra)),oe!==e){for(ge=[],Te=c();Te!==e;)ge.push(Te),Te=c();if(i.charCodeAt(r)===61?(Te=Sr,r++):(Te=e,x===0&&C(Yt)),Te!==e){for(Fe=[],ir=c();ir!==e;)Fe.push(ir),ir=c();ir=ld(),ir!==e?(S=[S,B,P,oe,ge,Te,Fe,ir],T=S):(r=T,T=e)}else r=T,T=e}else r=T,T=e}else r=T,T=e;for(T===e&&(T=null),S=[],B=c();B!==e;)S.push(B),B=c();if(i.charCodeAt(r)===41?(B=W,r++):(B=e,x===0&&C(ue)),B!==e){for(P=[],oe=c();oe!==e;)P.push(oe),oe=c();U=t,t=Gh(d,I,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}}}}}return t}function CE(){var t,u,o,a;if(t=r,u=vr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=td(),a===e&&(a=null),U=t,t=Uh(u,a)}else r=t,t=e;return t}function Sl(){var t,u,o,a,p;return t=r,u=ld(),u!==e?(o=SE(),o===e&&(o=r,i.substr(r,2)===ko?(a=ko,r+=2):(a=e,x===0&&C(Xi)),a!==e?(p=vr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e)),o===e&&(o=null),U=t,t=Fh(u,o)):(r=t,t=e),t}function Ll(){var t;return t=xE(),t===e&&(t=wl(),t===e&&(t=Gl())),t}function xE(){var t;return t=Vl(),t===e&&(t=Ol(),t===e&&(t=js())),t}function wl(){var t;return t=GE(),t===e&&(t=wE(),t===e&&(t=LE())),t}function Gl(){var t;return t=BE(),t===e&&(t=FE(),t===e&&(t=UE())),t}function Ul(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Vi?(u=i.substr(r,4),r+=4):(u=e,x===0&&C(Wu)),u!==e&&(U=t,u=Bh()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===rc?(u=i.substr(r,5),r+=5):(u=e,x===0&&C(Zc)),u!==e&&(U=t,u=Oh()),t=u),t}function ld(){var t;return t=WE(),t===e&&(t=ZE(),t===e&&(t=OE(),t===e&&(t=VE()))),t}function vr(){var t,u;return t=r,u=Fl(),u!==e&&(U=t,u=Vh(u)),t=u,t===e&&(t=r,u=bE(),u!==e&&(U=t,u=Wh(u)),t=u),t}function bE(){var t,u;return t=r,u=NE(),u!==e&&(U=t,u=Zh(u)),t=u,t===e&&(t=r,u=Bl(),u!==e&&(U=t,u=Mh(u)),t=u),t}function AE(){var t,u;return t=r,u=TE(),u!==e&&(U=t,u=Dh(u)),t=u,t===e&&(t=r,u=DE(),u!==e&&(U=t,u=Qh()),t=u),t}function Fl(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Oe,r++):(u=e,x===0&&C(ps)),u!==e){for(o=[],Po.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ta));a!==e;)o.push(a),Po.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ta));i.charCodeAt(r)===62?(a=oi,r++):(a=e,x===0&&C($n)),a!==e?(U=t,t=kh(o)):(r=t,t=e)}else r=t,t=e;return t}function Bl(){var t,u,o;return t=r,u=QE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o!==e?(U=t,t=Xh(u)):(r=t,t=e),t}function NE(){var t,u,o;return t=r,u=Bl(),u!==e?(o=kE(),o!==e?(U=t,t=Ph(u,o)):(r=t,t=e)):(r=t,t=e),t}function TE(){var t,u,o,a,p,d,E;if(t=r,i.substr(r,2)===un?(u=un,r+=2):(u=e,x===0&&C(gr)),u!==e)if(o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe))),o!==e){for(a=[],p=qr(),p===e&&(p=r,i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d!==e?(E=qr(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e));p!==e;)a.push(p),p=qr(),p===e&&(p=r,i.charCodeAt(r)===46?(d=Ue,r++):(d=e,x===0&&C(er)),d!==e?(E=qr(),E!==e?(d=[d,E],p=d):(r=p,p=e)):(r=p,p=e));U=t,t=Yh()}else r=t,t=e;else r=t,t=e;return t}function RE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=dt,r++):(u=e,x===0&&C(Fs)),u!==e?(o=cd(),o!==e?(U=t,t=Hh(o)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ts,r++):(u=e,x===0&&C(yi)),u!==e?(o=cd(),o!==e?(U=t,t=Jh(o)):(r=t,t=e)):(r=t,t=e),t}function SE(){var t,u,o,a,p,d,E,I;if(t=r,i.charCodeAt(r)===64?(u=Ua,r++):(u=e,x===0&&C(Si)),u!==e){if(o=[],Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ia)),a!==e)for(;a!==e;)o.push(a),Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(ia));else o=e;if(o!==e){if(a=[],p=r,i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){if(E=[],as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi)),I!==e)for(;I!==e;)E.push(I),as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi));else E=e;E!==e?(d=[d,E],p=d):(r=p,p=e)}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,i.charCodeAt(r)===45?(d=ar,r++):(d=e,x===0&&C(Pr)),d!==e){if(E=[],as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi)),I!==e)for(;I!==e;)E.push(I),as.test(i.charAt(r))?(I=i.charAt(r),r++):(I=e,x===0&&C(Pi));else E=e;E!==e?(d=[d,E],p=d):(r=p,p=e)}else r=p,p=e;U=t,t=_h(o,a)}else r=t,t=e}else r=t,t=e;return t}function js(){var t,u,o;if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;return u!==e&&(U=t,u=jh()),t=u,t}function Ol(){var t,u,o,a,p;for(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));if(i.charCodeAt(r)===46?(o=Ue,r++):(o=e,x===0&&C(er)),o!==e){if(a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe)),p!==e)for(;p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));else a=e;a!==e?(U=t,t=zh()):(r=t,t=e)}else r=t,t=e;return t}function Vl(){var t,u,o,a,p;if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=Ue,r++):(o=e,x===0&&C(er)),o!==e){for(a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));p=Wl(),p!==e?(U=t,t=$h()):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===46?(u=Ue,r++):(u=e,x===0&&C(er)),u!==e){if(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe));else o=e;o!==e?(a=Wl(),a!==e?(U=t,t=qh()):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Xe));else u=e;u!==e?(o=Wl(),o!==e?(U=t,t=Kh()):(r=t,t=e)):(r=t,t=e)}}return t}function LE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e?(o=js(),o!==e?(U=t,t=eg(o)):(r=t,t=e)):(r=t,t=e),t}function wE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e?(o=Ol(),o!==e?(U=t,t=rg(o)):(r=t,t=e)):(r=t,t=e),t}function GE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=nr,r++):(u=e,x===0&&C(At)),u!==e?(o=Vl(),o!==e?(U=t,t=tg(o)):(r=t,t=e)):(r=t,t=e),t}function UE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e?(o=js(),o!==e?(U=t,t=ig(o)):(r=t,t=e)):(r=t,t=e),t}function FE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e?(o=Ol(),o!==e?(U=t,t=sg(o)):(r=t,t=e)):(r=t,t=e),t}function BE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ar,r++):(u=e,x===0&&C(Pr)),u!==e?(o=Vl(),o!==e?(U=t,t=ng(o)):(r=t,t=e)):(r=t,t=e),t}function Wl(){var t,u,o,a,p;if(t=r,li.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Zu)),u!==e){if(tc.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Mc)),o===e&&(o=null),a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe)),p!==e)for(;p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,x===0&&C(Xe));else a=e;a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function OE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Wi,r++):(u=e,x===0&&C(fi)),u!==e){for(o=[],Oa.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Qs)),a===e&&(a=Kt());a!==e;)o.push(a),Oa.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Qs)),a===e&&(a=Kt());i.charCodeAt(r)===39?(a=Wi,r++):(a=e,x===0&&C(fi)),a!==e?(U=t,t=og(o)):(r=t,t=e)}else r=t,t=e;return t}function VE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===34?(u=Rs,r++):(u=e,x===0&&C(hs)),u!==e){for(o=[],Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(no)),a===e&&(a=Kt());a!==e;)o.push(a),Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(no)),a===e&&(a=Kt());i.charCodeAt(r)===34?(a=Rs,r++):(a=e,x===0&&C(hs)),a!==e?(U=t,t=ag(o)):(r=t,t=e)}else r=t,t=e;return t}function WE(){var t,u,o,a,p,d;if(t=r,i.substr(r,3)===ys?(u=ys,r+=3):(u=e,x===0&&C(Li)),u!==e){for(o=[],a=r,i.substr(r,2)===Zi?(p=Zi,r+=2):(p=e,x===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Wi,r++):(p=e,x===0&&C(fi))),p===e&&(p=null),Yo.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(na)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Zi?(p=Zi,r+=2):(p=e,x===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Wi,r++):(p=e,x===0&&C(fi))),p===e&&(p=null),Yo.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(na)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);i.substr(r,3)===ys?(a=ys,r+=3):(a=e,x===0&&C(Li)),a!==e?(U=t,t=lg(o)):(r=t,t=e)}else r=t,t=e;return t}function ZE(){var t,u,o,a,p,d;if(t=r,i.substr(r,3)===os?(u=os,r+=3):(u=e,x===0&&C(qa)),u!==e){for(o=[],a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,x===0&&C(An)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,x===0&&C(hs))),p===e&&(p=null),bi.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(oo)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,x===0&&C(An)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,x===0&&C(hs))),p===e&&(p=null),bi.test(i.charAt(r))?(d=i.charAt(r),r++):(d=e,x===0&&C(oo)),d===e&&(d=Kt()),d!==e?(p=[p,d],a=p):(r=a,a=e);i.substr(r,3)===os?(a=os,r+=3):(a=e,x===0&&C(qa)),a!==e?(U=t,t=ug(o)):(r=t,t=e)}else r=t,t=e;return t}function Kt(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Xo,r++):(u=e,x===0&&C(oa)),u!==e?(Va.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,x===0&&C(Dc)),o!==e?(U=t,t=fg()):(r=t,t=e)):(r=t,t=e),t}function ei(){var t,u,o,a;if(t=r,i.charCodeAt(r)===40?(u=D,r++):(u=e,x===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===41?(a=W,r++):(a=e,x===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function c(){var t;return t=ME(),t===e&&(t=Zl(),t===e&&(t=Ml())),t}function Zl(){var t;return Mi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Mu)),t}function Ml(){var t;return Ho.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Qc)),t}function Lo(){var t;return Wa.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(kc)),t}function ud(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=fn,r++):(u=e,x===0&&C(gs)),u!==e){for(o=[],a=Lo();a!==e;)o.push(a),a=Lo();a=Ml(),a!==e?(U=t,t=cg()):(r=t,t=e)}else r=t,t=e;return t}function ME(){var t,u,o,a,p,d;for(t=r,u=Ml(),u===e&&(u=null),o=[],a=Zl();a!==e;)o.push(a),a=Zl();if(i.charCodeAt(r)===35?(a=fn,r++):(a=e,x===0&&C(gs)),a!==e){for(p=[],d=Lo();d!==e;)p.push(d),d=Lo();U=t,t=pg()}else r=t,t=e;return t}function DE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===91?(u=vt,r++):(u=e,x===0&&C(Bs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===93?(a=Bt,r++):(a=e,x===0&&C(ui)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function fd(){var t;return dn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Du)),t===e&&(ic.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xc)),t===e&&(sc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Pc)),t===e&&(nc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Qu)),t===e&&(oc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Nn)),t===e&&(cu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Ka)),t===e&&(pu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(aa)),t===e&&(ac.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(ku)),t===e&&(lc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(el)),t===e&&(uc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xu)),t===e&&(fc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Yc)),t===e&&(du.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Pu)),t===e&&(cc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Tt)))))))))))))),t}function qi(){var t;return t=fd(),t===e&&(i.charCodeAt(r)===95?(t=cn,r++):(t=e,x===0&&C(Tn))),t}function cd(){var t,u,o,a;if(t=r,u=qi(),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe))),u!==e){for(o=[],a=qi(),a===e&&(_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a===e&&(hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Rn)),a===e&&(ls.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Sn))))));a!==e;)o.push(a),a=qi(),a===e&&(_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Xe)),a===e&&(hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Rn)),a===e&&(ls.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,x===0&&C(Sn))))));U=t,t=dg()}else r=t,t=e;return t}function qr(){var t;return t=qi(),t===e&&(i.charCodeAt(r)===45?(t=ar,r++):(t=e,x===0&&C(Pr)),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe)),t===e&&(hn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Rn)),t===e&&(ls.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(yn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Sn))))))),t}function QE(){var t,u,o,a,p,d;if(t=r,u=fd(),u!==e){for(o=[],a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=qr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));U=t,t=hg()}else r=t,t=e;return t}function kE(){var t,u,o,a,p,d;if(t=r,u=qi(),u===e&&(i.charCodeAt(r)===58?(u=zt,r++):(u=e,x===0&&C(Lr)),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,x===0&&C(Xe)),u===e&&(u=zs()))),u!==e){for(o=[],a=qr(),a===e&&(i.charCodeAt(r)===58?(a=zt,r++):(a=e,x===0&&C(Lr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d===e&&(i.charCodeAt(r)===58?(d=zt,r++):(d=e,x===0&&C(Lr)),d===e&&(d=zs())),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=qr(),a===e&&(i.charCodeAt(r)===58?(a=zt,r++):(a=e,x===0&&C(Lr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=Ue,r++):(p=e,x===0&&C(er)),p!==e?(d=qr(),d===e&&(i.charCodeAt(r)===58?(d=zt,r++):(d=e,x===0&&C(Lr)),d===e&&(d=zs())),d!==e?(p=[p,d],a=p):(r=a,a=e)):(r=a,a=e));U=t,t=gg()}else r=t,t=e;return t}function zs(){var t;return t=XE(),t===e&&(t=PE()),t}function XE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=pn,r++):(u=e,x===0&&C(Es)),u!==e?(o=pd(),o!==e?(a=pd(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function pd(){var t;return _e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Xe)),t===e&&(pc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(la)),t===e&&(dc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,x===0&&C(Yu)))),t}function PE(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Xo,r++):(u=e,x===0&&C(oa)),u!==e?(i.charCodeAt(r)===95?(o=cn,r++):(o=e,x===0&&C(Tn)),o===e&&(i.charCodeAt(r)===126?(o=Fa,r++):(o=e,x===0&&C(Hu)),o===e&&(i.charCodeAt(r)===46?(o=Ue,r++):(o=e,x===0&&C(er)),o===e&&(i.charCodeAt(r)===45?(o=ar,r++):(o=e,x===0&&C(Pr)),o===e&&(i.charCodeAt(r)===33?(o=Wr,r++):(o=e,x===0&&C(In)),o===e&&(i.charCodeAt(r)===36?(o=Ts,r++):(o=e,x===0&&C(yi)),o===e&&(i.charCodeAt(r)===38?(o=fu,r++):(o=e,x===0&&C(Ju)),o===e&&(i.charCodeAt(r)===39?(o=Wi,r++):(o=e,x===0&&C(fi)),o===e&&(i.charCodeAt(r)===40?(o=D,r++):(o=e,x===0&&C(le)),o===e&&(i.charCodeAt(r)===41?(o=W,r++):(o=e,x===0&&C(ue)),o===e&&(i.charCodeAt(r)===42?(o=K,r++):(o=e,x===0&&C(_r)),o===e&&(i.charCodeAt(r)===43?(o=nr,r++):(o=e,x===0&&C(At)),o===e&&(i.charCodeAt(r)===44?(o=De,r++):(o=e,x===0&&C(Ye)),o===e&&(i.charCodeAt(r)===59?(o=or,r++):(o=e,x===0&&C($t)),o===e&&(i.charCodeAt(r)===58?(o=zt,r++):(o=e,x===0&&C(Lr)),o===e&&(i.charCodeAt(r)===61?(o=Sr,r++):(o=e,x===0&&C(Yt)),o===e&&(i.charCodeAt(r)===47?(o=sr,r++):(o=e,x===0&&C(Xr)),o===e&&(i.charCodeAt(r)===63?(o=dt,r++):(o=e,x===0&&C(Fs)),o===e&&(i.charCodeAt(r)===35?(o=fn,r++):(o=e,x===0&&C(gs)),o===e&&(i.charCodeAt(r)===64?(o=Ua,r++):(o=e,x===0&&C(Si)),o===e&&(i.charCodeAt(r)===37?(o=pn,r++):(o=e,x===0&&C(Es)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let dd={};function n(t,u){return!!(t.type==="Var"&&t.varType===u.varType&&t.varname===u.varname||t.iriref&&t.iriref===u.iriref||t.type==="PrefixedName"&&t.pn_prefix===u.pn_prefix&&t.pn_local===u.pn_local)}if(bo=L(),bo!==e&&r===i.length)return bo;throw bo!==e&&r<i.length&&C(Eg()),Fp(dl,yt<i.length?i.charAt(yt):null,yt<i.length?Ps(yt,yt+1):Ps(yt,yt))}var Fo,Ra,kn,Qm=" ",Ih=0;function xh(i,m=2){if(Qm=" ".repeat(m),Fo=[],Ra=i.comments,kn="",i.headers&&He(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?He(`BASE <${e.iriref}>`):He(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),He("")),i.selectQuery)L1(i.selectQuery);else if(i.constructQuery)w1(i.constructQuery);else if(i.askQuery)T1(i.askQuery);else if(i.describeQuery)R1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Fo[Fo.length-1]+=` ;
79
79
  `),y1(i.update[e]);for(i.values&&Xm(i.values);Ra&&Ra.length;)Fo[Fo.length-1]+=Ra.shift().text;return Fo.join(`
80
80
  `)}var bs=(i=1)=>{kn+=Qm.repeat(i)},As=(i=1)=>{kn=kn.substr(0,kn.length-Qm.length*i)},He=i=>{Fo.push(kn+i)},Br=(i,m)=>{for(;Ra&&Ra.length&&Ra[0].pos<m;)Fo[Fo.length-1]+=Ra.shift().text;He(i)},T1=i=>{He("ASK {");let m=Fi(i.where);Br("}",m+1),Ud(i)},R1=i=>{let m=i.describe.map(lr).join(" ");if(He(`DESCRIBE ${m}`),km(i.from),i.where){He("WHERE {");let e=Fi(i.where);Br("}",e+1)}Ud(i)},y1=i=>{if(i.type==="insertdata")He("INSERT DATA {"),bs(),Bo(i.insert),As(),He("}");else if(i.type==="deletedata")He("DELETE DATA {"),bs(),Bo(i.delete),As(),He("}");else if(i.type==="deletewhere")He("DELETE WHERE {"),bs(),Bo(i.delete),As(),He("}");else if(i.type==="modify"){i.with&&He(`WITH ${lr(i.with)}`),i.delete&&(He("DELETE {"),bs(),Bo(i.delete),As(),He("}")),i.insert&&(He("INSERT {"),bs(),Bo(i.insert),As(),He("}")),i.using&&i.using.forEach(e=>{He(`USING ${S1(e)}`)}),He("WHERE {");let m=Fi(i.where);Br("}",m+1)}else if(i.type==="add"){let m=zf(i.graphs[0]),e=zf(i.graphs[1]),A=" ";i.silent&&(A=" SILENT "),He(`ADD${A}${m} TO ${e}`)}else if(i.type==="move"){let m=zf(i.graphs[0]),e=zf(i.graphs[1]),A=" ";i.silent&&(A=" SILENT "),He(`MOVE${A}${m} TO ${e}`)}else if(i.type==="copy"){let m=zf(i.graphs[0]),e=zf(i.graphs[1]),A=" ";i.silent&&(A=" SILENT "),He(`COPY${A}${m} TO ${e}`)}else if(i.type==="load"){let m=" ";i.silent&&(m=" SILENT "),He(`LOAD${m}${rs(i.sourceGraph)}`)}else if(i.type==="clear"){let m=" ";i.silent&&(m=" SILENT "),He(`CLEAR${m}${Yx(i.destinyGraph)}`)}else if(i.type==="drop"){let m=" ";i.silent&&(m=" SILENT "),He(`DROP${m}${Yx(i.destinyGraph)}`)}else if(i.type==="create"){let m=" ";i.silent&&(m=" SILENT "),He(`CREATE${m}GRAPH ${rs(i.destinyGraph)}`)}},S1=i=>i.named?`NAMED ${rs(i.iri)}`:rs(i.iri),zf=i=>i==="default"?"DEFAULT":rs(i),Yx=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${rs(i)}`,Fi=(i,m=0)=>(bs(),i.type==="SubSelect"?(Dm(i),m=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{Hx(e),m=e.location.end.offset}):i.forEach(e=>{Hx(e),m=e.location.end.offset}),As(),m),L1=i=>{let m=i.selectClause.location.start.offset;Br(Jx(i.selectClause),m);let e=i.selectClause.location.end.offset,A=km(i.selectClause.from);A>e&&(e=A),Br("WHERE {",e+1),e=Fi(i.whereClause,e),Br("}",e+1),Ud(i)},Dm=i=>{let m=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;Br(Jx(i.selectClause),m),Br("WHERE {",e+1),e=Fi(i.whereClause,e),Br("}",e+1),i.values&&Xm(i.values),Ud(i)},km=i=>{if(i){let m;return i.forEach(e=>{e.graph?m=G1(e.graph):e.namedGraph&&(m=U1(e.namedGraph))}),m}},Ud=i=>{i.group&&He(F1(i.group)),i.having&&He(`HAVING ${Gr(i.having[0])}`),i.orderBy&&He("ORDER BY "+B1(i.orderBy)),i.limitOffset?.forEach(m=>{m.limit?He(`LIMIT ${m.limit}`):m.offset&&He(`OFFSET ${m.offset}`)})},w1=i=>{i.template?(Br("CONSTRUCT {",i.location.start.offset),bs(),Bo(i.template.triplePattern),As(),He("}")):He("CONSTRUCT"),km(i.from),He("WHERE {");let m=Fi(i.where);Br("}",m+1),Ud(i)},G1=i=>{let m=rs(i);if(m!=null){let e=i.location.start.offset,A=i.location.end.offset;return Br("FROM "+m,e),A}},U1=i=>{let m=rs(i);if(m!=null){let e=i.location.start.offset,A=i.location.end.offset;return Br("FROM NAMED "+m,e),A}},Hx=i=>{if(Ih=i.location.start.offset,i.type==="SubSelect"){He("{"),bs(),Dm(i),As(),He("}");return}if(i.graphPattern&&i.graph){Br(`GRAPH ${lr(i.graph)} {`,Ih);let m=Fi(i);Br("}",m+1);return}if(i.graphPattern){He("{");let m=Fi(i);Br("}",m+1);return}if(i.data){Xm(i);return}if(i.triplePattern){Bo(i.triplePattern);return}if(i.union){for(let m=0;m<i.union.length;m++)m>0&&He("UNION"),He("{"),Fi(i.union[m]),Br("}",i.union[m].location.end.offset+2);return}if(i.optional){Br("OPTIONAL {",Ih);let m=Fi(i.optional);Br("}",m+1);return}if(i.minus){Br("MINUS {",Ih);let m=Fi(i.minus);Br("}",m+1);return}if(i.filter){V1(i);return}if(i.bind){He(`BIND (${Gr(i.bind)} AS ${eu(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let m=" ";i.silent&&(m=" SILENT "),He(`SERVICE${m}${lr(i.service)} {`),i.pattern.type==="SubSelect"?(bs(),Dm(i.pattern),As()):Fi(i.pattern),He("}");return}if(i.functionRef){let m=i.args.map(Gr).join(", ");He(rs(i.functionRef)+`(${m})`)}},F1=i=>{let m=["GROUP BY"],e=0;return i.forEach(A=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=lr(A)}),m.join(`
81
81
  `)},B1=i=>{let m=[];return i.forEach(e=>{let A;e.type==="Var"?A=eu(e):A=Gr(e),e.asc?m.push(`ASC${A}`):e.desc?m.push(`DESC${A}`):m.push(A)}),m.join(" ")},Jx=i=>{let m=[];m[0]="SELECT",i.distinct&&(m[0]+=" DISTINCT"),i.reduced&&(m[0]+=" REDUCED");let e=0;return i.var.forEach(A=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=O1(A)}),m.join(`
@@ -95,16 +95,16 @@ ${kn}`,m},Q1=i=>{let m=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){l
95
95
  `+e.join(en+`], [
96
96
  `)+en+"]"}else return en+`:${i} [
97
97
  `+Pm(m)+`
98
- `+en+"]"}var X1=(i=1)=>{en+=Ym.repeat(i)},P1=(i=1)=>{en=en.substr(0,en.length-Ym.length*i)};var Y1=(i,m="default",e=2)=>{switch(m){case"default":return xh(Gd(i),e);case"compact":return xh(Mm(i),e);case"turtle":return jx(Gd(i),e);case"jsonld":return JSON.stringify(Gd(i),H1,e);default:throw new Error(`Unsupported formatting mode: ${m}`)}};function H1(i,m){if(i!=="location")return m}var Hm={parseSparql:Gd,parseSparqlAsCompact:Mm,formatAst:xh,format:Y1};typeof window<"u"&&(window.spfmt=Hm);var J1=3e3,_1=4e3,j1=500,z1=300,Qr=class Qr extends Ta{constructor(e,A={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",e.appendChild(this.rootEl),this.config=xm({},Qr.defaults,A,(F,Z)=>{if(Array.isArray(Z))return Z});let R=Ta(this.rootEl,this.config);for(let F of Object.getOwnPropertyNames(Qr.prototype))R[F]=Qr.prototype[F].bind(this);Object.assign(this,Ta.prototype,R),this.storage=new Pl(Qr.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let L=this.getStorageId();if(L){let F=this.storage.get(L);F&&typeof F=="string"?this.persistentConfig={query:F,editorHeight:this.config.editorHeight}:this.persistentConfig=F,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}else this.persistentConfig?typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0):this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight,autoformatOnQuery:!0};this.config.autocompleters.forEach(F=>this.enableCompleter(F).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.checkConstructVariables(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let e=this.getDoc().getCursor(),A=this.getTokenAt(e);A&&A.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(e,A,R){this.req=A,this.abortController=R,this.updateQueryButton()}handleQueryResponse(e,A,R){this.lastQueryDuration=R,this.req=void 0,this.updateQueryButton()}handleQueryAbort(e,A){this.req=void 0,this.updateQueryButton()}registerEventListeners(){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)}unregisterEventListeners(){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)}emit(e,...A){Ta.signal(this,e,this,...A)}getStorageId(e){let A=e||this.config.persistenceId;if(A)return typeof A=="string"?A:A(this)}drawButtons(){let e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){let K=this.config.pluginButtons();if(!K)return;if(Array.isArray(K))for(let ee of K)e.append(ee);else e.appendChild(K)}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Ne(this.queryBtn,"yasqe_queryButton");let K=document.createElement("i");Ne(K,"fas"),Ne(K,"fa-play"),Ne(K,"queryIcon"),Ne(K,"queryIcon--play"),K.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(K);let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-exclamation-triangle"),Ne(ee,"queryIcon"),Ne(ee,"queryIcon--warning"),ee.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(ee);let ne=document.createElement("i");Ne(ne,"fas"),Ne(ne,"fa-spinner"),Ne(ne,"fa-pulse"),Ne(ne,"queryIcon"),Ne(ne,"queryIcon--loading"),ne.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(ne);let de=document.createElement("span");de.className="yasqe_queryButton_text",de.textContent="Run",this.queryBtn.appendChild(de),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}if(this.config.createShareableLink){let K=document.createElement("i");Ne(K,"fas"),Ne(K,"fa-share-nodes"),K.setAttribute("aria-hidden","true");let ee=document.createElement("button");ee.className="yasqe_share",ee.title="Share query",ee.setAttribute("aria-label","Share query"),ee.appendChild(K),e.appendChild(ee),this.shareBtn=ee,ee.addEventListener("click",de=>ne(de)),ee.addEventListener("keydown",de=>{de.code==="Enter"&&ne(de)});let ne=de=>{de.stopPropagation();let Se=document.createElement("div");Se.className="yasqe_sharePopup",e.appendChild(Se);let be,Ze,Be=(qe,Pe=J1,Ir="info")=>{if(be&&be.remove(),Ze!==void 0&&clearTimeout(Ze),be=document.createElement("div"),be.className=Ir==="warning"?"yasqe_toast yasqe_toast-warning":"yasqe_toast",Ir==="warning"){let Rr=document.createElement("span");Rr.className="yasqe_toast-icon";let dr=document.createElement("i");Ne(dr,"fas"),Ne(dr,"fa-exclamation-triangle"),dr.setAttribute("aria-hidden","true"),Rr.appendChild(dr),be.appendChild(Rr)}let Me=document.createElement("span");Me.className="yasqe_toast-message",Me.textContent=qe,be.appendChild(Me),document.body.appendChild(be),Ze=window.setTimeout(()=>{be&&(be.classList.add("yasqe_toast-fadeout"),setTimeout(()=>{be?.remove(),be=void 0},z1))},Pe)},Ke=qe=>{Se&&qe.target!==Se&&!Se.contains(qe.target)&&(Se.remove(),Se=void 0,be&&(be.remove(),be=void 0),Ze!==void 0&&clearTimeout(Ze),document.body.removeEventListener("click",Ke,!0))};document.body.addEventListener("click",Ke,!0),Se.innerHTML="";let Ee=async(qe,Pe,Ir=!1)=>{try{if(!navigator.clipboard||!navigator.clipboard.writeText){let Me=document.createElement("textarea");Me.value=qe,Me.style.position="fixed",Me.style.left="-999999px",document.body.appendChild(Me),Me.select();try{document.execCommand("copy"),document.body.removeChild(Me),Be(`${Pe} copied to clipboard!`)}catch{throw document.body.removeChild(Me),new Error("Copy command not supported")}}else await navigator.clipboard.writeText(qe),Be(`${Pe} copied to clipboard!`);Ir&&setTimeout(()=>{Be("Warning: Authentication credentials included in copied content",_1,"warning")},j1)}catch(Me){console.error("Failed to copy to clipboard:",Me),Be("Failed to copy to clipboard. Please copy manually.",2e3)}},Er=document.createElement("div");Er.className="yasqe_sharePopup_title",Er.textContent="Share Query",Se.appendChild(Er);let ur=document.createElement("div");ur.className="yasqe_sharePopup_buttons",Se.appendChild(ur);let or=document.createElement("button");or.innerText="Copy URL",or.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(or),or.onclick=async()=>{if(!this.config.createShareableLink)return;let qe=this.config.createShareableLink(this);await Ee(qe,"URL")};let Or=this.config.createShortLink;if(Or){let qe=document.createElement("button");qe.innerText="Shorten URL",qe.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(qe),qe.onclick=async()=>{qe.disabled=!0,qe.innerText="Shortening...";try{if(!this.config.createShareableLink)return;let Pe=this.config.createShareableLink(this),Ir=await Or(this,Pe);await Ee(Ir,"Shortened URL"),qe.innerText="Shorten URL",qe.disabled=!1}catch(Pe){qe.innerText="Shorten URL",qe.disabled=!1;let Ir="Failed to shorten URL";typeof Pe=="string"&&Pe.length!==0?Ir=Pe:Pe.message&&Pe.message.length!==0&&(Ir=Pe.message),Be(Ir,3e3)}}}let je=document.createElement("button");je.innerText="Copy cURL",je.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(je),je.onclick=async()=>{let qe=this.getAsCurlString(),Pe=this.hasAuthenticationCredentials();await Ee(qe,"cURL command",Pe)};let et=document.createElement("button");et.innerText="Copy PowerShell",et.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(et),et.onclick=async()=>{let qe=this.getAsPowerShellString(),Pe=this.hasAuthenticationCredentials();await Ee(qe,"PowerShell command",Pe)};let rt=document.createElement("button");rt.innerText="Copy wget",rt.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(rt),rt.onclick=async()=>{let qe=this.getAsWgetString(),Pe=this.hasAuthenticationCredentials();await Ee(qe,"wget command",Pe)};let cr=()=>{if(!Se)return;let qe=e.getBoundingClientRect(),Pe=Se.offsetHeight||300,Ir=window.innerHeight,Me=qe.top,Rr=Ir-qe.bottom;Me>=Pe+20?(Se.style.bottom=(e.clientHeight||46)+"px",Se.style.top="auto",Se.style.right="0px"):(Se.style.position="fixed",Se.style.bottom="auto",Se.style.top="20px",Se.style.right="20px")};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(cr):setTimeout(cr,0)}}let A=document.createElement("div");Ne(A,"yasqe_saveWrapper"),A.style.display="none",this.saveBtnWrapper=A;let R=document.createElement("button");Ne(R,"yasqe_saveManagedButton");let L=document.createElement("i");Ne(L,"fas"),Ne(L,"fa-database"),L.setAttribute("aria-hidden","true"),R.appendChild(L),R.title="Save as managed query",R.setAttribute("aria-label","Save as managed query"),R.onclick=()=>{this.emit("saveManagedQuery")},A.appendChild(R);let F=document.createElement("button");Ne(F,"yasqe_saveRqButton");let Z=document.createElement("i");if(Ne(Z,"fas"),Ne(Z,"fa-file-download"),Z.setAttribute("aria-hidden","true"),F.appendChild(Z),F.title="Save as .rq file",F.setAttribute("aria-label","Save as .rq file"),F.onclick=()=>{this.emit("downloadRqFile")},A.appendChild(F),e.appendChild(A),this.config.showFormatButton){let K=document.createElement("button");Ne(K,"yasqe_formatButton");let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-align-left"),ee.setAttribute("aria-hidden","true"),K.appendChild(ee),K.onclick=()=>{this.format()},K.title="Format query (Shift+Ctrl+F)",K.setAttribute("aria-label","Format query"),e.appendChild(K)}this.fullscreenBtn=document.createElement("button"),Ne(this.fullscreenBtn,"yasqe_fullscreenButton");let M=document.createElement("i");Ne(M,"fas"),Ne(M,"fa-expand"),Ne(M,"fullscreenIcon"),M.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(M);let Y=document.createElement("i");Ne(Y,"fas"),Ne(Y,"fa-compress"),Ne(Y,"fullscreenExitIcon"),Y.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(Y),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn),this.hamburgerBtn=document.createElement("button"),Ne(this.hamburgerBtn,"yasqe_hamburgerButton");let P=document.createElement("i");if(Ne(P,"fas"),Ne(P,"fa-bars"),P.setAttribute("aria-hidden","true"),this.hamburgerBtn.appendChild(P),this.hamburgerBtn.title="More options",this.hamburgerBtn.setAttribute("aria-label","More options"),this.hamburgerBtn.setAttribute("aria-expanded","false"),e.appendChild(this.hamburgerBtn),this.hamburgerMenu=document.createElement("div"),this.hamburgerMenu.className="yasqe_hamburgerMenu",e.appendChild(this.hamburgerMenu),this.config.createShareableLink){let K=document.createElement("button");K.className="yasqe_hamburgerMenuItem";let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-share-nodes"),ee.setAttribute("aria-hidden","true"),K.appendChild(ee);let ne=document.createElement("span");ne.textContent="Share",K.appendChild(ne),K.onclick=()=>{this.closeHamburgerMenu(),this.shareBtn?.click()},this.hamburgerMenu.appendChild(K)}let D=document.createElement("button");D.className="yasqe_hamburgerMenuItem";let z=document.createElement("i");Ne(z,"fas"),Ne(z,"fa-database"),z.setAttribute("aria-hidden","true"),D.appendChild(z);let W=document.createElement("span");W.textContent="Save as managed query",D.appendChild(W),D.onclick=()=>{this.closeHamburgerMenu(),this.emit("saveManagedQuery")},this.hamburgerMenu.appendChild(D);let $=document.createElement("button");$.className="yasqe_hamburgerMenuItem";let J=document.createElement("i");Ne(J,"fas"),Ne(J,"fa-file-download"),J.setAttribute("aria-hidden","true"),$.appendChild(J);let O=document.createElement("span");if(O.textContent="Save as .rq file",$.appendChild(O),$.onclick=()=>{this.closeHamburgerMenu(),this.emit("downloadRqFile")},this.hamburgerMenu.appendChild($),this.config.showFormatButton){let K=document.createElement("button");K.className="yasqe_hamburgerMenuItem";let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-align-left"),ee.setAttribute("aria-hidden","true"),K.appendChild(ee);let ne=document.createElement("span");ne.textContent="Format",K.appendChild(ne),K.onclick=()=>{this.closeHamburgerMenu(),this.format()},this.hamburgerMenu.appendChild(K)}let V=document.createElement("button");V.className="yasqe_hamburgerMenuItem";let H=document.createElement("i");Ne(H,"fas"),Ne(H,"fa-expand"),H.setAttribute("aria-hidden","true"),V.appendChild(H);let q=document.createElement("span");q.textContent="Fullscreen",V.appendChild(q),V.onclick=()=>{this.closeHamburgerMenu(),this.toggleFullscreen()},this.hamburgerMenu.appendChild(V),this.hamburgerBtn.onclick=K=>{K.stopPropagation(),this.toggleHamburgerMenu()},document.addEventListener("click",K=>{this.hamburgerMenu&&this.hamburgerBtn&&!this.hamburgerMenu.contains(K.target)&&!this.hamburgerBtn.contains(K.target)&&this.closeHamburgerMenu()})}toggleHamburgerMenu(){if(!this.hamburgerMenu||!this.hamburgerBtn)return;this.hamburgerMenu.classList.contains("active")?this.closeHamburgerMenu():(Ne(this.hamburgerMenu,"active"),this.hamburgerBtn.setAttribute("aria-expanded","true"))}closeHamburgerMenu(){!this.hamburgerMenu||!this.hamburgerBtn||(Ki(this.hamburgerMenu,"active"),this.hamburgerBtn.setAttribute("aria-expanded","false"))}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Ne(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(Ki(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}insertSnippet(e){let A=this.getDoc(),R=A.getCursor();A.replaceRange(e,R);let L=e.split(`
99
- `),F=L[L.length-1];A.setCursor({line:R.line+L.length-1,ch:L.length===1?R.ch+F.length:F.length}),this.focus()}drawSnippetsBar(){if(!(this.config.showSnippetsBar&&this.config.snippets.length>0)){this.snippetsBar&&(this.snippetsBar.remove(),this.snippetsBar=void 0);return}if(!this.snippetsBar){this.snippetsBar=document.createElement("div"),Ne(this.snippetsBar,"yasqe_snippetsBar");let W=this.getWrapperElement();W.parentElement?.insertBefore(this.snippetsBar,W)}this.snippetsBar.innerHTML="";let A=this.config.snippets,R=document.createElement("div");Ne(R,"yasqe_snippetsVisible");let L=[],F={},Z=[];A.forEach(W=>{W.group?(F[W.group]||(F[W.group]=[]),F[W.group].push(W)):Z.push(W)}),Object.keys(F).forEach(W=>{let $=document.createElement("div");Ne($,"yasqe_snippetDropdown");let J=document.createElement("button");Ne(J,"yasqe_snippetDropdownButton"),J.textContent=W+" ";let O=document.createElement("i");Ne(O,"fas"),Ne(O,"fa-chevron-down"),Ne(O,"chevronIcon"),O.setAttribute("aria-hidden","true"),J.appendChild(O),J.setAttribute("aria-label",`${W} snippets`),J.setAttribute("aria-expanded","false");let V=document.createElement("div");Ne(V,"yasqe_snippetDropdownContent"),V.setAttribute("role","menu"),F[W].forEach(H=>{let q=document.createElement("button");Ne(q,"yasqe_snippetDropdownItem"),q.textContent=H.label,q.title=H.code,q.setAttribute("role","menuitem"),q.onclick=()=>{this.insertSnippet(H.code),V.style.display="none",J.setAttribute("aria-expanded","false")},V.appendChild(q)}),J.onclick=H=>{H.stopPropagation();let q=V.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(ne=>{ne.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(ne=>ne.setAttribute("aria-expanded","false")),q||(V.style.display="block",J.setAttribute("aria-expanded","true"))},$.appendChild(J),$.appendChild(V),L.push($)}),Z.forEach(W=>{let $=document.createElement("button");Ne($,"yasqe_snippetButton"),$.textContent=W.label,$.title=W.code,$.setAttribute("aria-label",`Insert ${W.label} snippet`),$.onclick=()=>this.insertSnippet(W.code),L.push($)}),L.forEach(W=>R.appendChild(W)),this.snippetsBar.appendChild(R);let M=document.createElement("div");Ne(M,"yasqe_snippetDropdown","yasqe_showMore"),M.style.display="none";let Y=document.createElement("button");Ne(Y,"yasqe_snippetDropdownButton","yasqe_showMoreButton"),Y.textContent="More ";let P=document.createElement("i");Ne(P,"fas"),Ne(P,"fa-chevron-down"),Ne(P,"chevronIcon"),P.setAttribute("aria-hidden","true"),Y.appendChild(P),Y.setAttribute("aria-label","Show more snippets"),Y.setAttribute("aria-expanded","false");let D=document.createElement("div");Ne(D,"yasqe_snippetDropdownContent","yasqe_showMoreContent"),D.setAttribute("role","menu"),Y.onclick=W=>{W.stopPropagation();let $=D.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(V=>{V!==D&&(V.style.display="none")}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(V=>{V!==Y&&V.setAttribute("aria-expanded","false")}),$?(D.style.display="none",Y.setAttribute("aria-expanded","false")):(D.style.display="block",Y.setAttribute("aria-expanded","true"))},M.appendChild(Y),M.appendChild(D),this.snippetsBar.appendChild(M);let z=()=>{if(!this.snippetsBar)return;let J=this.snippetsBar.offsetWidth-80-20,O=0,V=[];L.forEach((H,q)=>{let K=H.offsetWidth+5;if(O+K>J&&q>0)if(H.style.display="none",H.classList.contains("yasqe_snippetDropdown")){let ne=H.querySelector(".yasqe_snippetDropdownButton")?.textContent?.trim().replace(" ","")||"Group";V.push({element:H,groupName:ne})}else{let ee=Z.find(ne=>ne.label===H.textContent);V.push({element:H,snippet:ee})}else O+=K}),V.length>0&&(M.style.display="inline-block",V.forEach(({element:H,snippet:q,groupName:K})=>{if(K){let ee=document.createElement("div");Ne(ee,"yasqe_snippetGroupHeader"),ee.textContent=K,D.appendChild(ee),H.querySelectorAll(".yasqe_snippetDropdownItem").forEach(de=>{let Se=de.cloneNode(!0);Se.onclick=de.onclick,D.appendChild(Se)})}else if(q){let ee=document.createElement("button");Ne(ee,"yasqe_snippetDropdownItem"),ee.textContent=q.label,ee.title=q.code,ee.setAttribute("role","menuitem"),ee.onclick=()=>{this.insertSnippet(q.code),D.style.display="none",Y.setAttribute("aria-expanded","false")},D.appendChild(ee)}}))};requestAnimationFrame(z),this.snippetsResizeHandler&&window.removeEventListener("resize",this.snippetsResizeHandler),this.snippetsResizeHandler=()=>{this.snippetsBar&&(L.forEach(W=>W.style.display=""),M.style.display="none",D.innerHTML="",requestAnimationFrame(z))},window.addEventListener("resize",this.snippetsResizeHandler),this.snippetsClickHandler&&document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=W=>{this.snippetsBar&&!this.snippetsBar.contains(W.target)&&(this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(O=>{O.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(O=>O.setAttribute("aria-expanded","false")))},document.addEventListener("click",this.snippetsClickHandler)}drawResizer(){if(this.horizontalResizeWrapper)return;this.horizontalResizeWrapper=document.createElement("div"),Ne(this.horizontalResizeWrapper,"horizontalResizeWrapper");let e=document.createElement("div");Ne(e,"horizontalResizeChip"),this.horizontalResizeWrapper.appendChild(e),this.horizontalResizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.horizontalResizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(e,A){let R=0;A.offsetParent&&(R=A.offsetParent.offsetTop);let L=0,F=A.parentElement;for(;F;)L+=F.scrollTop,F=F.parentElement;return e.clientY-R-this.rootEl.offsetTop+L}doDrag(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}stopDrag(){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(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let A=this.getDoc().getLine(e.line);this.getDoc().replaceRange(A+`
100
- `+A,{ch:0,line:e.line},{ch:A.length,line:e.line})}}updateQueryButton(e){if(!this.queryBtn)return;this.config.queryingDisabled?(Ne(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(Ki(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&(Ki(this.queryBtn,"query_"+this.queryStatus),Ne(this.queryBtn,"query_"+e),this.queryStatus=e);let A=!!this.req,R=e==="error";A&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!A&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")),A?(Ne(this.queryBtn,"state-loading"),Ki(this.queryBtn,"state-error"),Ki(this.queryBtn,"state-normal")):R?(Ki(this.queryBtn,"state-loading"),Ne(this.queryBtn,"state-error"),Ki(this.queryBtn,"state-normal")):(Ki(this.queryBtn,"state-loading"),Ki(this.queryBtn,"state-error"),Ne(this.queryBtn,"state-normal"))}handleLocalStorageQuotaFull(e){console.warn("Localstorage quota exceeded. Clearing all queries"),Qr.clearStorage()}saveQuery(){let e=this.getStorageId();!e||!this.persistentConfig||(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}getQueryType(){return this.getOption("queryType")}getQueryMode(){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"}}getVariablesFromQuery(){let e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),A=[];for(var R in e.state.variables)A.push(R);return A.sort()}autoformatSelection(e,A){var R=this.getValue();return R=R.substring(e,A),Qr.autoformatString(R)}static autoformatString(e){var A=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],R=["}"],L=function(Y){if(Y==="{"||Y===".")return 1;if(Y===";")return M.length>2&&M[M.length-2]==="punc"?0:1;for(var P=0;P<A.length;P++)if(M.valueOf().toString()===A[P].valueOf().toString())return 1;for(var P=0;P<R.length;P++)if(Z.trim()!==""&&Y==R[P])return-1;return 0},F="",Z="",M=[];return Qr.runMode(e,"sparql11",function(Y,P){M.push(P);var D=L(Y);D!=0?(D==1?(F+=Y+`
98
+ `+en+"]"}var X1=(i=1)=>{en+=Ym.repeat(i)},P1=(i=1)=>{en=en.substr(0,en.length-Ym.length*i)};var Y1=(i,m="default",e=2)=>{switch(m){case"default":return xh(Gd(i),e);case"compact":return xh(Mm(i),e);case"turtle":return jx(Gd(i),e);case"jsonld":return JSON.stringify(Gd(i),H1,e);default:throw new Error(`Unsupported formatting mode: ${m}`)}};function H1(i,m){if(i!=="location")return m}var Hm={parseSparql:Gd,parseSparqlAsCompact:Mm,formatAst:xh,format:Y1};typeof window<"u"&&(window.spfmt=Hm);var J1=3e3,_1=4e3,j1=500,z1=300,Qr=class Qr extends Ta{constructor(e,A={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",e.appendChild(this.rootEl),this.config=xm({},Qr.defaults,A,(F,Z)=>{if(Array.isArray(Z))return Z});let R=Ta(this.rootEl,this.config);for(let F of Object.getOwnPropertyNames(Qr.prototype))R[F]=Qr.prototype[F].bind(this);Object.assign(this,Ta.prototype,R),this.storage=new Pl(Qr.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let L=this.getStorageId();if(L){let F=this.storage.get(L);F&&typeof F=="string"?this.persistentConfig={query:F,editorHeight:this.config.editorHeight}:this.persistentConfig=F,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}else this.persistentConfig?typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0):this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight,autoformatOnQuery:!0};this.config.autocompleters.forEach(F=>this.enableCompleter(F).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.checkConstructVariables(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let e=this.getDoc().getCursor(),A=this.getTokenAt(e);A&&A.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(e,A,R){this.req=A,this.abortController=R,this.updateQueryButton()}handleQueryResponse(e,A,R){this.lastQueryDuration=R,this.req=void 0,this.updateQueryButton()}handleQueryAbort(e,A){this.req=void 0,this.updateQueryButton()}registerEventListeners(){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)}unregisterEventListeners(){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)}emit(e,...A){Ta.signal(this,e,this,...A)}getStorageId(e){let A=e||this.config.persistenceId;if(A)return typeof A=="string"?A:A(this)}drawButtons(){let e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){let q=this.config.pluginButtons();if(!q)return;if(Array.isArray(q))for(let ee of q)e.append(ee);else e.appendChild(q)}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Ne(this.queryBtn,"yasqe_queryButton");let q=document.createElement("i");Ne(q,"fas"),Ne(q,"fa-play"),Ne(q,"queryIcon"),Ne(q,"queryIcon--play"),q.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(q);let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-exclamation-triangle"),Ne(ee,"queryIcon"),Ne(ee,"queryIcon--warning"),ee.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(ee);let ne=document.createElement("i");Ne(ne,"fas"),Ne(ne,"fa-spinner"),Ne(ne,"fa-pulse"),Ne(ne,"queryIcon"),Ne(ne,"queryIcon--loading"),ne.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(ne);let de=document.createElement("span");de.className="yasqe_queryButton_text",de.textContent="Run",this.queryBtn.appendChild(de),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}if(this.config.createShareableLink){let q=document.createElement("i");Ne(q,"fas"),Ne(q,"fa-share-nodes"),q.setAttribute("aria-hidden","true");let ee=document.createElement("button");ee.className="yasqe_share",ee.title="Share query",ee.setAttribute("aria-label","Share query"),ee.appendChild(q),e.appendChild(ee),this.shareBtn=ee,ee.addEventListener("click",de=>ne(de)),ee.addEventListener("keydown",de=>{de.code==="Enter"&&ne(de)});let ne=de=>{de.stopPropagation();let Se=document.createElement("div");Se.className="yasqe_sharePopup",e.appendChild(Se);let be,Ze,Be=(qe,Pe=J1,Ir="info")=>{if(be&&be.remove(),Ze!==void 0&&clearTimeout(Ze),be=document.createElement("div"),be.className=Ir==="warning"?"yasqe_toast yasqe_toast-warning":"yasqe_toast",Ir==="warning"){let Rr=document.createElement("span");Rr.className="yasqe_toast-icon";let dr=document.createElement("i");Ne(dr,"fas"),Ne(dr,"fa-exclamation-triangle"),dr.setAttribute("aria-hidden","true"),Rr.appendChild(dr),be.appendChild(Rr)}let Me=document.createElement("span");Me.className="yasqe_toast-message",Me.textContent=qe,be.appendChild(Me),document.body.appendChild(be),Ze=window.setTimeout(()=>{be&&(be.classList.add("yasqe_toast-fadeout"),setTimeout(()=>{be?.remove(),be=void 0},z1))},Pe)},Ke=qe=>{Se&&qe.target!==Se&&!Se.contains(qe.target)&&(Se.remove(),Se=void 0,be&&(be.remove(),be=void 0),Ze!==void 0&&clearTimeout(Ze),document.body.removeEventListener("click",Ke,!0))};document.body.addEventListener("click",Ke,!0),Se.innerHTML="";let Ee=async(qe,Pe,Ir=!1)=>{try{if(!navigator.clipboard||!navigator.clipboard.writeText){let Me=document.createElement("textarea");Me.value=qe,Me.style.position="fixed",Me.style.left="-999999px",document.body.appendChild(Me),Me.select();try{document.execCommand("copy"),document.body.removeChild(Me),Be(`${Pe} copied to clipboard!`)}catch{throw document.body.removeChild(Me),new Error("Copy command not supported")}}else await navigator.clipboard.writeText(qe),Be(`${Pe} copied to clipboard!`);Ir&&setTimeout(()=>{Be("Warning: Authentication credentials included in copied content",_1,"warning")},j1)}catch(Me){console.error("Failed to copy to clipboard:",Me),Be("Failed to copy to clipboard. Please copy manually.",2e3)}},Er=document.createElement("div");Er.className="yasqe_sharePopup_title",Er.textContent="Share Query",Se.appendChild(Er);let ur=document.createElement("div");ur.className="yasqe_sharePopup_buttons",Se.appendChild(ur);let or=document.createElement("button");or.innerText="Copy URL",or.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(or),or.onclick=async()=>{if(!this.config.createShareableLink)return;let qe=this.config.createShareableLink(this);await Ee(qe,"URL")};let Or=this.config.createShortLink;if(Or){let qe=document.createElement("button");qe.innerText="Shorten URL",qe.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(qe),qe.onclick=async()=>{qe.disabled=!0,qe.innerText="Shortening...";try{if(!this.config.createShareableLink)return;let Pe=this.config.createShareableLink(this),Ir=await Or(this,Pe);await Ee(Ir,"Shortened URL"),qe.innerText="Shorten URL",qe.disabled=!1}catch(Pe){qe.innerText="Shorten URL",qe.disabled=!1;let Ir="Failed to shorten URL";typeof Pe=="string"&&Pe.length!==0?Ir=Pe:Pe.message&&Pe.message.length!==0&&(Ir=Pe.message),Be(Ir,3e3)}}}let je=document.createElement("button");je.innerText="Copy cURL",je.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(je),je.onclick=async()=>{let qe=this.getAsCurlString(),Pe=this.hasAuthenticationCredentials();await Ee(qe,"cURL command",Pe)};let et=document.createElement("button");et.innerText="Copy PowerShell",et.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(et),et.onclick=async()=>{let qe=this.getAsPowerShellString(),Pe=this.hasAuthenticationCredentials();await Ee(qe,"PowerShell command",Pe)};let rt=document.createElement("button");rt.innerText="Copy wget",rt.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",ur.appendChild(rt),rt.onclick=async()=>{let qe=this.getAsWgetString(),Pe=this.hasAuthenticationCredentials();await Ee(qe,"wget command",Pe)};let cr=()=>{if(!Se)return;let qe=e.getBoundingClientRect(),Pe=Se.offsetHeight||300,Ir=window.innerHeight,Me=qe.top,Rr=Ir-qe.bottom;Me>=Pe+20?(Se.style.bottom=(e.clientHeight||46)+"px",Se.style.top="auto",Se.style.right="0px"):(Se.style.position="fixed",Se.style.bottom="auto",Se.style.top="20px",Se.style.right="20px")};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(cr):setTimeout(cr,0)}}let A=document.createElement("div");Ne(A,"yasqe_saveWrapper"),A.style.display="none",this.saveBtnWrapper=A;let R=document.createElement("button");Ne(R,"yasqe_saveManagedButton");let L=document.createElement("i");Ne(L,"fas"),Ne(L,"fa-database"),L.setAttribute("aria-hidden","true"),R.appendChild(L),R.title="Save as managed query",R.setAttribute("aria-label","Save as managed query"),R.onclick=()=>{this.emit("saveManagedQuery")},A.appendChild(R);let F=document.createElement("button");Ne(F,"yasqe_saveRqButton");let Z=document.createElement("i");if(Ne(Z,"fas"),Ne(Z,"fa-file-download"),Z.setAttribute("aria-hidden","true"),F.appendChild(Z),F.title="Save as .rq file",F.setAttribute("aria-label","Save as .rq file"),F.onclick=()=>{this.emit("downloadRqFile")},A.appendChild(F),e.appendChild(A),this.config.showFormatButton){let q=document.createElement("button");Ne(q,"yasqe_formatButton");let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-align-left"),ee.setAttribute("aria-hidden","true"),q.appendChild(ee),q.onclick=()=>{this.format()},q.title="Format query (Shift+Ctrl+F)",q.setAttribute("aria-label","Format query"),e.appendChild(q)}this.fullscreenBtn=document.createElement("button"),Ne(this.fullscreenBtn,"yasqe_fullscreenButton");let M=document.createElement("i");Ne(M,"fas"),Ne(M,"fa-expand"),Ne(M,"fullscreenIcon"),M.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(M);let Y=document.createElement("i");Ne(Y,"fas"),Ne(Y,"fa-compress"),Ne(Y,"fullscreenExitIcon"),Y.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(Y),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn),this.hamburgerBtn=document.createElement("button"),Ne(this.hamburgerBtn,"yasqe_hamburgerButton");let X=document.createElement("i");if(Ne(X,"fas"),Ne(X,"fa-bars"),X.setAttribute("aria-hidden","true"),this.hamburgerBtn.appendChild(X),this.hamburgerBtn.title="More options",this.hamburgerBtn.setAttribute("aria-label","More options"),this.hamburgerBtn.setAttribute("aria-expanded","false"),e.appendChild(this.hamburgerBtn),this.hamburgerMenu=document.createElement("div"),this.hamburgerMenu.className="yasqe_hamburgerMenu",e.appendChild(this.hamburgerMenu),this.config.createShareableLink){let q=document.createElement("button");q.className="yasqe_hamburgerMenuItem";let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-share-nodes"),ee.setAttribute("aria-hidden","true"),q.appendChild(ee);let ne=document.createElement("span");ne.textContent="Share",q.appendChild(ne),q.onclick=()=>{this.closeHamburgerMenu(),this.shareBtn?.click()},this.hamburgerMenu.appendChild(q)}let D=document.createElement("button");D.className="yasqe_hamburgerMenuItem";let z=document.createElement("i");Ne(z,"fas"),Ne(z,"fa-database"),z.setAttribute("aria-hidden","true"),D.appendChild(z);let W=document.createElement("span");W.textContent="Save as managed query",D.appendChild(W),D.onclick=()=>{this.closeHamburgerMenu(),this.emit("saveManagedQuery")},this.hamburgerMenu.appendChild(D);let K=document.createElement("button");K.className="yasqe_hamburgerMenuItem";let J=document.createElement("i");Ne(J,"fas"),Ne(J,"fa-file-download"),J.setAttribute("aria-hidden","true"),K.appendChild(J);let O=document.createElement("span");if(O.textContent="Save as .rq file",K.appendChild(O),K.onclick=()=>{this.closeHamburgerMenu(),this.emit("downloadRqFile")},this.hamburgerMenu.appendChild(K),this.config.showFormatButton){let q=document.createElement("button");q.className="yasqe_hamburgerMenuItem";let ee=document.createElement("i");Ne(ee,"fas"),Ne(ee,"fa-align-left"),ee.setAttribute("aria-hidden","true"),q.appendChild(ee);let ne=document.createElement("span");ne.textContent="Format",q.appendChild(ne),q.onclick=()=>{this.closeHamburgerMenu(),this.format()},this.hamburgerMenu.appendChild(q)}let V=document.createElement("button");V.className="yasqe_hamburgerMenuItem";let H=document.createElement("i");Ne(H,"fas"),Ne(H,"fa-expand"),H.setAttribute("aria-hidden","true"),V.appendChild(H);let $=document.createElement("span");$.textContent="Fullscreen",V.appendChild($),V.onclick=()=>{this.closeHamburgerMenu(),this.toggleFullscreen()},this.hamburgerMenu.appendChild(V),this.hamburgerBtn.onclick=q=>{q.stopPropagation(),this.toggleHamburgerMenu()},document.addEventListener("click",q=>{this.hamburgerMenu&&this.hamburgerBtn&&!this.hamburgerMenu.contains(q.target)&&!this.hamburgerBtn.contains(q.target)&&this.closeHamburgerMenu()})}toggleHamburgerMenu(){if(!this.hamburgerMenu||!this.hamburgerBtn)return;this.hamburgerMenu.classList.contains("active")?this.closeHamburgerMenu():(Ne(this.hamburgerMenu,"active"),this.hamburgerBtn.setAttribute("aria-expanded","true"))}closeHamburgerMenu(){!this.hamburgerMenu||!this.hamburgerBtn||(Ki(this.hamburgerMenu,"active"),this.hamburgerBtn.setAttribute("aria-expanded","false"))}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Ne(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(Ki(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}insertSnippet(e){let A=this.getDoc(),R=A.getCursor();A.replaceRange(e,R);let L=e.split(`
99
+ `),F=L[L.length-1];A.setCursor({line:R.line+L.length-1,ch:L.length===1?R.ch+F.length:F.length}),this.focus()}drawSnippetsBar(){if(!(this.config.showSnippetsBar&&this.config.snippets.length>0)){this.snippetsBar&&(this.snippetsBar.remove(),this.snippetsBar=void 0);return}if(!this.snippetsBar){this.snippetsBar=document.createElement("div"),Ne(this.snippetsBar,"yasqe_snippetsBar");let W=this.getWrapperElement();W.parentElement?.insertBefore(this.snippetsBar,W)}this.snippetsBar.innerHTML="";let A=this.config.snippets,R=document.createElement("div");Ne(R,"yasqe_snippetsVisible");let L=[],F={},Z=[];A.forEach(W=>{W.group?(F[W.group]||(F[W.group]=[]),F[W.group].push(W)):Z.push(W)}),Object.keys(F).forEach(W=>{let K=document.createElement("div");Ne(K,"yasqe_snippetDropdown");let J=document.createElement("button");Ne(J,"yasqe_snippetDropdownButton"),J.textContent=W+" ";let O=document.createElement("i");Ne(O,"fas"),Ne(O,"fa-chevron-down"),Ne(O,"chevronIcon"),O.setAttribute("aria-hidden","true"),J.appendChild(O),J.setAttribute("aria-label",`${W} snippets`),J.setAttribute("aria-expanded","false");let V=document.createElement("div");Ne(V,"yasqe_snippetDropdownContent"),V.setAttribute("role","menu"),F[W].forEach(H=>{let $=document.createElement("button");Ne($,"yasqe_snippetDropdownItem"),$.textContent=H.label,$.title=H.code,$.setAttribute("role","menuitem"),$.onclick=()=>{this.insertSnippet(H.code),V.style.display="none",J.setAttribute("aria-expanded","false")},V.appendChild($)}),J.onclick=H=>{H.stopPropagation();let $=V.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(ne=>{ne.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(ne=>ne.setAttribute("aria-expanded","false")),$||(V.style.display="block",J.setAttribute("aria-expanded","true"))},K.appendChild(J),K.appendChild(V),L.push(K)}),Z.forEach(W=>{let K=document.createElement("button");Ne(K,"yasqe_snippetButton"),K.textContent=W.label,K.title=W.code,K.setAttribute("aria-label",`Insert ${W.label} snippet`),K.onclick=()=>this.insertSnippet(W.code),L.push(K)}),L.forEach(W=>R.appendChild(W)),this.snippetsBar.appendChild(R);let M=document.createElement("div");Ne(M,"yasqe_snippetDropdown","yasqe_showMore"),M.style.display="none";let Y=document.createElement("button");Ne(Y,"yasqe_snippetDropdownButton","yasqe_showMoreButton"),Y.textContent="More ";let X=document.createElement("i");Ne(X,"fas"),Ne(X,"fa-chevron-down"),Ne(X,"chevronIcon"),X.setAttribute("aria-hidden","true"),Y.appendChild(X),Y.setAttribute("aria-label","Show more snippets"),Y.setAttribute("aria-expanded","false");let D=document.createElement("div");Ne(D,"yasqe_snippetDropdownContent","yasqe_showMoreContent"),D.setAttribute("role","menu"),Y.onclick=W=>{W.stopPropagation();let K=D.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(V=>{V!==D&&(V.style.display="none")}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(V=>{V!==Y&&V.setAttribute("aria-expanded","false")}),K?(D.style.display="none",Y.setAttribute("aria-expanded","false")):(D.style.display="block",Y.setAttribute("aria-expanded","true"))},M.appendChild(Y),M.appendChild(D),this.snippetsBar.appendChild(M);let z=()=>{if(!this.snippetsBar)return;let J=this.snippetsBar.offsetWidth-80-20,O=0,V=[];L.forEach((H,$)=>{let q=H.offsetWidth+5;if(O+q>J&&$>0)if(H.style.display="none",H.classList.contains("yasqe_snippetDropdown")){let ne=H.querySelector(".yasqe_snippetDropdownButton")?.textContent?.trim().replace(" ","")||"Group";V.push({element:H,groupName:ne})}else{let ee=Z.find(ne=>ne.label===H.textContent);V.push({element:H,snippet:ee})}else O+=q}),V.length>0&&(M.style.display="inline-block",V.forEach(({element:H,snippet:$,groupName:q})=>{if(q){let ee=document.createElement("div");Ne(ee,"yasqe_snippetGroupHeader"),ee.textContent=q,D.appendChild(ee),H.querySelectorAll(".yasqe_snippetDropdownItem").forEach(de=>{let Se=de.cloneNode(!0);Se.onclick=de.onclick,D.appendChild(Se)})}else if($){let ee=document.createElement("button");Ne(ee,"yasqe_snippetDropdownItem"),ee.textContent=$.label,ee.title=$.code,ee.setAttribute("role","menuitem"),ee.onclick=()=>{this.insertSnippet($.code),D.style.display="none",Y.setAttribute("aria-expanded","false")},D.appendChild(ee)}}))};requestAnimationFrame(z),this.snippetsResizeHandler&&window.removeEventListener("resize",this.snippetsResizeHandler),this.snippetsResizeHandler=()=>{this.snippetsBar&&(L.forEach(W=>W.style.display=""),M.style.display="none",D.innerHTML="",requestAnimationFrame(z))},window.addEventListener("resize",this.snippetsResizeHandler),this.snippetsClickHandler&&document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=W=>{this.snippetsBar&&!this.snippetsBar.contains(W.target)&&(this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(O=>{O.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(O=>O.setAttribute("aria-expanded","false")))},document.addEventListener("click",this.snippetsClickHandler)}drawResizer(){if(this.horizontalResizeWrapper)return;this.horizontalResizeWrapper=document.createElement("div"),Ne(this.horizontalResizeWrapper,"horizontalResizeWrapper");let e=document.createElement("div");Ne(e,"horizontalResizeChip"),this.horizontalResizeWrapper.appendChild(e),this.horizontalResizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.horizontalResizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(e,A){let R=0;A.offsetParent&&(R=A.offsetParent.offsetTop);let L=0,F=A.parentElement;for(;F;)L+=F.scrollTop,F=F.parentElement;return e.clientY-R-this.rootEl.offsetTop+L}doDrag(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}stopDrag(){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(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let A=this.getDoc().getLine(e.line);this.getDoc().replaceRange(A+`
100
+ `+A,{ch:0,line:e.line},{ch:A.length,line:e.line})}}updateQueryButton(e){if(!this.queryBtn)return;this.config.queryingDisabled?(Ne(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(Ki(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&(Ki(this.queryBtn,"query_"+this.queryStatus),Ne(this.queryBtn,"query_"+e),this.queryStatus=e);let A=!!this.req,R=e==="error";A&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!A&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")),A?(Ne(this.queryBtn,"state-loading"),Ki(this.queryBtn,"state-error"),Ki(this.queryBtn,"state-normal")):R?(Ki(this.queryBtn,"state-loading"),Ne(this.queryBtn,"state-error"),Ki(this.queryBtn,"state-normal")):(Ki(this.queryBtn,"state-loading"),Ki(this.queryBtn,"state-error"),Ne(this.queryBtn,"state-normal"))}handleLocalStorageQuotaFull(e){console.warn("Localstorage quota exceeded. Clearing all queries"),Qr.clearStorage()}saveQuery(){let e=this.getStorageId();!e||!this.persistentConfig||(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}getQueryType(){return this.getOption("queryType")}getQueryMode(){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"}}getVariablesFromQuery(){let e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),A=[];for(var R in e.state.variables)A.push(R);return A.sort()}autoformatSelection(e,A){var R=this.getValue();return R=R.substring(e,A),Qr.autoformatString(R)}static autoformatString(e){var A=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],R=["}"],L=function(Y){if(Y==="{"||Y===".")return 1;if(Y===";")return M.length>2&&M[M.length-2]==="punc"?0:1;for(var X=0;X<A.length;X++)if(M.valueOf().toString()===A[X].valueOf().toString())return 1;for(var X=0;X<R.length;X++)if(Z.trim()!==""&&Y==R[X])return-1;return 0},F="",Z="",M=[];return Qr.runMode(e,"sparql11",function(Y,X){M.push(X);var D=L(Y);D!=0?(D==1?(F+=Y+`
101
101
  `,Z=""):(F+=`
102
102
  `+Y,Z=Y),M=[]):(Z+=Y,F+=Y),M.length==1&&M[0]=="sp-ws"&&(M=[])}),F.replace(/\n\s*\n/g,`
103
- `).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,A=this.getDoc().getCursor("end").line,R=Math.min(e,A),L=Math.max(e,A),F=!0,Z=R;Z<=L;Z++){var M=this.getDoc().getLine(Z),Y=M.trimStart();if(M.length>0&&(Y.length===0||Y.substring(0,1)!=="#")){F=!1;break}}for(var Z=R;Z<=L;Z++){var M=this.getDoc().getLine(Z),Y=M.trimStart(),P=M.length-Y.length;if(F&&Y.length>0){var D=M.indexOf("#");if(D>=0){var z=1;D+1<M.length&&M.charAt(D+1)===" "&&(z=2),this.getDoc().replaceRange("",{line:Z,ch:D},{line:Z,ch:D+z})}}else!F&&M.length>0&&this.getDoc().replaceRange("# ",{line:Z,ch:P})}}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let e=this.getDoc().getCursor("start");var A={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},R=this.getDoc().indexFromPos(e),L=this.getDoc().indexFromPos(A);let F=this.autoformatSelection(R,L);this.operation(()=>{this.getDoc().replaceRange(F,e,A);for(var Z=this.getDoc().posFromIndex(R).line,M=this.getDoc().posFromIndex(R+F.length).line,Y=Z;Y<=M;Y++)this.indentLine(Y,"smart")})}formatQuery(){try{let e=this.getValue(),A=Hm.format(e);this.setValue(A),this.collapsePrefixes(!0)}catch(e){console.warn("Failed to format SPARQL query using sparql-formatter. This may be due to syntax errors in the query. Falling back to legacy formatter.",e),this.autoformat()}}format(){(this.persistentConfig?.formatterType||"sparql-formatter")==="legacy"?this.autoformat():this.formatQuery()}getQueryWithValues(e){if(!e)return this.getValue();var A;if(typeof e=="string")A=e;else{e instanceof Array||(e=[e]);var R=e.reduce(function(P,D){for(var z in D)P[z]=z;return P},{}),L=[];for(var F in R)L.push(F);if(!L.length)return this.getValue();A="VALUES ("+L.join(" ")+`) {
104
- `,e.forEach(function(P){A+="( ",L.forEach(function(D){A+=P[D]||"UNDEF"}),A+=` )
103
+ `).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,A=this.getDoc().getCursor("end").line,R=Math.min(e,A),L=Math.max(e,A),F=!0,Z=R;Z<=L;Z++){var M=this.getDoc().getLine(Z),Y=M.trimStart();if(M.length>0&&(Y.length===0||Y.substring(0,1)!=="#")){F=!1;break}}for(var Z=R;Z<=L;Z++){var M=this.getDoc().getLine(Z),Y=M.trimStart(),X=M.length-Y.length;if(F&&Y.length>0){var D=M.indexOf("#");if(D>=0){var z=1;D+1<M.length&&M.charAt(D+1)===" "&&(z=2),this.getDoc().replaceRange("",{line:Z,ch:D},{line:Z,ch:D+z})}}else!F&&M.length>0&&this.getDoc().replaceRange("# ",{line:Z,ch:X})}}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let e=this.getDoc().getCursor("start");var A={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},R=this.getDoc().indexFromPos(e),L=this.getDoc().indexFromPos(A);let F=this.autoformatSelection(R,L);this.operation(()=>{this.getDoc().replaceRange(F,e,A);for(var Z=this.getDoc().posFromIndex(R).line,M=this.getDoc().posFromIndex(R+F.length).line,Y=Z;Y<=M;Y++)this.indentLine(Y,"smart")})}formatQuery(){try{let e=this.getValue(),A=Hm.format(e);this.setValue(A),this.collapsePrefixes(!0)}catch(e){console.warn("Failed to format SPARQL query using sparql-formatter. This may be due to syntax errors in the query. Falling back to legacy formatter.",e),this.autoformat()}}format(){(this.persistentConfig?.formatterType||"sparql-formatter")==="legacy"?this.autoformat():this.formatQuery()}getQueryWithValues(e){if(!e)return this.getValue();var A;if(typeof e=="string")A=e;else{e instanceof Array||(e=[e]);var R=e.reduce(function(X,D){for(var z in D)X[z]=z;return X},{}),L=[];for(var F in R)L.push(F);if(!L.length)return this.getValue();A="VALUES ("+L.join(" ")+`) {
104
+ `,e.forEach(function(X){A+="( ",L.forEach(function(D){A+=X[D]||"UNDEF"}),A+=` )
105
105
  `}),A+=`}
106
- `}if(!A)return this.getValue();var Z="",M=!1,Y=!1;return Qr.runMode(this.getValue(),"sparql11",function(P,D,z,W,$){D==="keyword"&&P.toLowerCase()==="select"&&(Y=!0),Z+=P,Y&&!M&&D==="punc"&&P==="{"&&(M=!0,Z+=`
107
- `+A)}),Z}getValueWithoutComments(){var e="";return Qr.runMode(this.getValue(),"sparql11",function(A,R){R!="comment"&&(e+=A)}),e}setCheckSyntaxErrors(e){this.config.syntaxErrorCheck=e,this.checkSyntax(),this.checkConstructVariables()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e,A=0;A<this.getDoc().lineCount();++A){var R=!1;this.prevQueryValid||(R=!0);var L=this.getTokenAt({line:A,ch:this.getDoc().getLine(A).length},R),e=L.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let Y=this.getWrapperElement().querySelectorAll(".sp-error");for(let P=0;P<Y.length;P++){var F=Y[P];F.style&&(F.style.color="black")}return}let M=document.createElement("i");if(M.className="fas fa-exclamation-circle parseErrorIcon",e.errorMsg)Ff(this,M,Ld(e.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){let Y=[];e.possibleCurrent.forEach(function(P){Y.push("<strong style='text-decoration:underline'>"+Ld(P)+"</strong>")}),Ff(this,M,"This line is invalid. Expected: "+Y.join(", "))}else Ff(this,M,"Syntax error");this.setGutterMarker(A,"gutterErrorBar",M),this.queryBtn&&(Ne(this.queryBtn,"query_error"),this.queryBtn.title="Query has syntax errors"),this.queryValid=!1;break}}this.queryValid&&this.queryBtn&&(Ki(this.queryBtn,"query_error"),this.queryBtn.title="Run query (Ctrl+Enter)")}setCheckConstructVariables(e){this.config.checkConstructVariables=e,e?this.checkConstructVariables():this.clearGutter("gutterConstructWarning")}setSaveButtonVisible(e){this.saveBtnWrapper&&(this.saveBtnWrapper.style.display=e?"inline-flex":"none")}checkConstructVariables(){if(this.clearGutter("gutterConstructWarning"),!this.config.checkConstructVariables||!this.queryValid||this.getQueryType()!=="CONSTRUCT")return;let e=this.getDoc().lastLine(),R=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,L=[];for(let F in R.constructVariables)R.whereVariables[F]||L.push(F);if(L.length!==0)for(let F=0;F<this.getDoc().lineCount();++F){let M=this.getTokenAt({line:F,ch:this.getDoc().getLine(F).length},!0).state;if(M.queryType==="CONSTRUCT"&&M.inConstructTemplate){let Y=this.getDoc().getLine(F);for(let P of L){let D=P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${D}(?![a-zA-Z0-9_])`).test(Y)){let W=document.createElement("i");W.className="fas fa-exclamation-triangle constructVariableWarning",Ff(this,W,"Variable <strong>"+Ld(P)+"</strong> is used in CONSTRUCT but not defined in WHERE clause"),this.setGutterMarker(F,"gutterConstructWarning",W);break}}}}}getCompleteToken(e,A){return jm(this,e,A)}getPreviousNonWsToken(e,A){return JE(this,e,A)}getNextNonWsToken(e,A){return Lf(this,e,A)}showNotification(e,A){if(!this.notificationEls[e]){let L=document.createElement("div");Ne(L,"notificationContainer"),this.getWrapperElement().appendChild(L),this.notificationEls[e]=document.createElement("div"),Ne(this.notificationEls[e],"notification","notif_"+e),L.appendChild(this.notificationEls[e])}for(let L in this.notificationEls)L!==e&&this.hideNotification(L);let R=this.notificationEls[e];Ne(R,"active"),R.innerText=A}hideNotification(e){this.notificationEls[e]&&Ki(this.notificationEls[e],"active")}setSnippetsBarVisible(e){this.config.showSnippetsBar=e,this.drawSnippetsBar()}getSnippetsBarVisible(){return this.config.showSnippetsBar&&this.config.snippets.length>0}refreshSnippetsBar(){this.drawSnippetsBar(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}enableCompleter(e){return Qr.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new gh(this,Qr.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}disableCompleter(e){this.config.autocompleters=this.config.autocompleters.filter(A=>A!==e),this.autocompleters[e]=void 0}autocomplete(e=!1){if(!this.getDoc().somethingSelected())for(let A in this.config.autocompleters){let R=this.autocompleters[this.config.autocompleters[A]];!R||R.autocomplete(e)}}collapsePrefixes(e=!0){let A=qm(this);A!==void 0&&this.foldCode(A,Ta.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return sv(this)}addPrefixes(e){return tv(this,e)}removePrefixes(e){return iv(this,e)}updateWidget(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){let e=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=e+"px"}}query(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.persistentConfig?.autoformatOnQuery&&this.format(),this.abortQuery(),Nm(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=bh.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=bh.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=bh.parse(window.location.hash)),e.query=this.getValue(),e}queryParamsToConfig(e){e&&e.query&&typeof e.query=="string"&&this.setValue(e.query)}getAsCurlString(e){return ym(this,e)}getAsPowerShellString(e){return Sm(this,e)}getAsWgetString(e){return Lm(this,e)}hasAuthenticationCredentials(e){let A=$l(this,e);return A?Rm(A):!1}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}expandEditor(){this.setSize(null,"100%")}destroy(){this.abortQuery(),this.unregisterEventListeners(),this.horizontalResizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper?.removeEventListener("dblclick",this.expandEditor),this.snippetsClickHandler&&(document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=void 0);for(let e in this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}static clearStorage(){new Pl(Qr.storageNamespace).removeNamespace()}static registerAutocompleter(e,A=!0){let R=e.name;Qr.Autocompleters[R]=e,A&&Qr.defaults.autocompleters.indexOf(R)<0&&Qr.defaults.autocompleters.push(R)}static forkAutocompleter(e,A,R=!0){if(!Qr.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!A?.name)throw new Error("Expected a name for newly registered autocompleter");let L=A.name;Qr.Autocompleters[L]={...Qr.Autocompleters[e],...A},R&&Qr.defaults.autocompleters.indexOf(L)<0&&Qr.defaults.autocompleters.push(L)}};Qr.storageNamespace="triply",Qr.Sparql=wm,Qr.runMode=Ta.runMode,Qr.Autocompleters={},Qr.defaults=Bm();var $f=Qr;Object.assign(Ta.prototype,$f.prototype);ax.forEach(i=>{$f.registerAutocompleter(i)});var $1=$f;return ob(q1);})();
106
+ `}if(!A)return this.getValue();var Z="",M=!1,Y=!1;return Qr.runMode(this.getValue(),"sparql11",function(X,D,z,W,K){D==="keyword"&&X.toLowerCase()==="select"&&(Y=!0),Z+=X,Y&&!M&&D==="punc"&&X==="{"&&(M=!0,Z+=`
107
+ `+A)}),Z}getValueWithoutComments(){var e="";return Qr.runMode(this.getValue(),"sparql11",function(A,R){R!="comment"&&(e+=A)}),e}setCheckSyntaxErrors(e){this.config.syntaxErrorCheck=e,this.checkSyntax(),this.checkConstructVariables()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e,A=0;A<this.getDoc().lineCount();++A){var R=!1;this.prevQueryValid||(R=!0);var L=this.getTokenAt({line:A,ch:this.getDoc().getLine(A).length},R),e=L.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let Y=this.getWrapperElement().querySelectorAll(".sp-error");for(let X=0;X<Y.length;X++){var F=Y[X];F.style&&(F.style.color="black")}return}let M=document.createElement("i");if(M.className="fas fa-exclamation-circle parseErrorIcon",e.errorMsg)Ff(this,M,Ld(e.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){let Y=[];e.possibleCurrent.forEach(function(X){Y.push("<strong style='text-decoration:underline'>"+Ld(X)+"</strong>")}),Ff(this,M,"This line is invalid. Expected: "+Y.join(", "))}else Ff(this,M,"Syntax error");this.setGutterMarker(A,"gutterErrorBar",M),this.queryBtn&&(Ne(this.queryBtn,"query_error"),this.queryBtn.title="Query has syntax errors"),this.queryValid=!1;break}}this.queryValid&&this.queryBtn&&(Ki(this.queryBtn,"query_error"),this.queryBtn.title="Run query (Ctrl+Enter)")}setCheckConstructVariables(e){this.config.checkConstructVariables=e,e?this.checkConstructVariables():this.clearGutter("gutterConstructWarning")}setSaveButtonVisible(e){this.saveBtnWrapper&&(this.saveBtnWrapper.style.display=e?"inline-flex":"none")}checkConstructVariables(){if(this.clearGutter("gutterConstructWarning"),!this.config.checkConstructVariables||!this.queryValid||this.getQueryType()!=="CONSTRUCT")return;let e=this.getDoc().lastLine(),R=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,L=[];for(let F in R.constructVariables)R.whereVariables[F]||L.push(F);if(L.length!==0)for(let F=0;F<this.getDoc().lineCount();++F){let M=this.getTokenAt({line:F,ch:this.getDoc().getLine(F).length},!0).state;if(M.queryType==="CONSTRUCT"&&M.inConstructTemplate){let Y=this.getDoc().getLine(F);for(let X of L){let D=X.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${D}(?![a-zA-Z0-9_])`).test(Y)){let W=document.createElement("i");W.className="fas fa-exclamation-triangle constructVariableWarning",Ff(this,W,"Variable <strong>"+Ld(X)+"</strong> is used in CONSTRUCT but not defined in WHERE clause"),this.setGutterMarker(F,"gutterConstructWarning",W);break}}}}}getCompleteToken(e,A){return jm(this,e,A)}getPreviousNonWsToken(e,A){return JE(this,e,A)}getNextNonWsToken(e,A){return Lf(this,e,A)}showNotification(e,A){if(!this.notificationEls[e]){let L=document.createElement("div");Ne(L,"notificationContainer"),this.getWrapperElement().appendChild(L),this.notificationEls[e]=document.createElement("div"),Ne(this.notificationEls[e],"notification","notif_"+e),L.appendChild(this.notificationEls[e])}for(let L in this.notificationEls)L!==e&&this.hideNotification(L);let R=this.notificationEls[e];Ne(R,"active"),R.innerText=A}hideNotification(e){this.notificationEls[e]&&Ki(this.notificationEls[e],"active")}setSnippetsBarVisible(e){this.config.showSnippetsBar=e,this.drawSnippetsBar()}getSnippetsBarVisible(){return this.config.showSnippetsBar&&this.config.snippets.length>0}refreshSnippetsBar(){this.drawSnippetsBar(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}enableCompleter(e){return Qr.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new gh(this,Qr.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}disableCompleter(e){this.config.autocompleters=this.config.autocompleters.filter(A=>A!==e),this.autocompleters[e]=void 0}autocomplete(e=!1){if(!this.getDoc().somethingSelected())for(let A in this.config.autocompleters){let R=this.autocompleters[this.config.autocompleters[A]];!R||R.autocomplete(e)}}collapsePrefixes(e=!0){let A=qm(this);A!==void 0&&this.foldCode(A,Ta.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return sv(this)}addPrefixes(e){return tv(this,e)}removePrefixes(e){return iv(this,e)}updateWidget(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){let e=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=e+"px"}}query(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.persistentConfig?.autoformatOnQuery&&this.format(),this.abortQuery(),Nm(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=bh.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=bh.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=bh.parse(window.location.hash)),e.query=this.getValue(),e}queryParamsToConfig(e){e&&e.query&&typeof e.query=="string"&&this.setValue(e.query)}getAsCurlString(e){return ym(this,e)}getAsPowerShellString(e){return Sm(this,e)}getAsWgetString(e){return Lm(this,e)}hasAuthenticationCredentials(e){let A=$l(this,e);return A?Rm(A):!1}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}expandEditor(){this.setSize(null,"100%")}destroy(){this.abortQuery(),this.unregisterEventListeners(),this.horizontalResizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper?.removeEventListener("dblclick",this.expandEditor),this.snippetsClickHandler&&(document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=void 0);for(let e in this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}static clearStorage(){new Pl(Qr.storageNamespace).removeNamespace()}static registerAutocompleter(e,A=!0){let R=e.name;Qr.Autocompleters[R]=e,A&&Qr.defaults.autocompleters.indexOf(R)<0&&Qr.defaults.autocompleters.push(R)}static forkAutocompleter(e,A,R=!0){if(!Qr.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!A?.name)throw new Error("Expected a name for newly registered autocompleter");let L=A.name;Qr.Autocompleters[L]={...Qr.Autocompleters[e],...A},R&&Qr.defaults.autocompleters.indexOf(L)<0&&Qr.defaults.autocompleters.push(L)}};Qr.storageNamespace="triply",Qr.Sparql=wm,Qr.runMode=Ta.runMode,Qr.Autocompleters={},Qr.defaults=Bm();var $f=Qr;Object.assign(Ta.prototype,$f.prototype);ax.forEach(i=>{$f.registerAutocompleter(i)});var $1=$f;return ob(q1);})();
108
108
  /*! Bundled license information:
109
109
 
110
110
  dompurify/dist/purify.es.mjs: