import{c3 as _export_sfc,aM as ref,q as computed,ax as onMounted,s as createBlock,bx as withCtx,cj as MainContainer,aE as openBlock,I as createVNode,c8 as VCol,ci as VSheet,H as createTextVNode,b3 as toDisplayString,t as createCommentVNode,u as createElementBlock,aP as renderList,F as Fragment,ce as VDivider,cb as VCard,cc as VCardTitle,v as createBaseVNode,c7 as VRow,bc as unref,aI as pushScopeId,aF as popScopeId}from"./index-pVvkWKzi.js";import{a as getDefaultExportFromCjs}from"./_commonjsHelpers-C4iS2aBk.js";import{V as VTabs,a as VTab,b as VWindow,c as VWindowItem}from"./VTabs-XMA4EkL7.js";import{V as VChip}from"./VChip-CuvHYCvE.js";import"./VSlideGroup-CBZvK47O.js";var yasgui_min={exports:{}};/*! For license information please see yasgui.min.js.LICENSE.txt */(function(module,exports){(function(ke,de){module.exports=de()})(window,function(){return function(ke){var de={};function b(A){if(de[A])return de[A].exports;var _=de[A]={i:A,l:!1,exports:{}};return ke[A].call(_.exports,_,_.exports,b),_.l=!0,_.exports}return b.m=ke,b.c=de,b.d=function(A,_,U){b.o(A,_)||Object.defineProperty(A,_,{enumerable:!0,get:U})},b.r=function(A){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},b.t=function(A,_){if(1&_&&(A=b(A)),8&_||4&_&&typeof A=="object"&&A&&A.__esModule)return A;var U=Object.create(null);if(b.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:A}),2&_&&typeof A!="string")for(var R in A)b.d(U,R,(function(p){return A[p]}).bind(null,R));return U},b.n=function(A){var _=A&&A.__esModule?function(){return A.default}:function(){return A};return b.d(_,"a",_),_},b.o=function(A,_){return Object.prototype.hasOwnProperty.call(A,_)},b.p="/",b(b.s=174)}([function(ke,de,b){b.d(de,"a",function(){return G}),b.d(de,"d",function(){return C}),b.d(de,"c",function(){return M}),b.d(de,"f",function(){return ue}),b.d(de,"b",function(){return x}),b.d(de,"g",function(){return Y}),b.d(de,"e",function(){return ce});var A=b(4),_=b.n(A),U=b(5),R=b.n(U),p=b(106),G=function(){function K(oe){_()(this,K),this.namespace=oe}return R()(K,[{key:"set",value:function(oe,ie,m,S){if(p.enabled&&(this.removeExpiredKeys(),oe&&ie!==void 0)){ie.documentElement&&(ie=new XMLSerializer().serializeToString(ie.documentElement));try{p.set(oe,{namespace:this.namespace,val:ie,exp:m,time:new Date().getTime()/1e3})}catch(q){if(q instanceof Error){var P=q;if(P.quotaExceeded=function(te){var Z=!1;if(te)if(te.code)switch(te.code){case 22:Z=!0;break;case 1014:te.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(Z=!0)}else te.number===-2147024882&&(Z=!0);return Z}(q),!P.quotaExceeded||!S)throw P;S(q)}throw q}}}},{key:"remove",value:function(oe){p.enabled&&oe&&p.remove(oe)}},{key:"removeExpiredKeys",value:function(){var oe=this;p.enabled&&p.each(function(ie,m){ie&&ie.exp&&new Date().getTime()/1e3-ie.time>ie.exp&&oe.remove(m)})}},{key:"removeAll",value:function(){p.enabled}},{key:"removeNamespace",value:function(){var oe=this;p.each(function(ie,m){ie.namespace&&ie.namespace===oe.namespace&&oe.remove(m)})}},{key:"get",value:function(oe){if(p.enabled&&oe&&(this.removeExpiredKeys(),oe)){var ie=p.get(oe);return ie?ie.val:void 0}}}]),K}();function C(K){if(K&&K.trim().indexOf("<svg")==0){var oe=new DOMParser().parseFromString(K,"text/xml").documentElement;oe.setAttribute("aria-hidden","true");var ie=document.createElement("div");return ie.className="svgImg",ie.appendChild(oe),ie}throw new Error("No svg string given. Cannot draw")}function M(K){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(K.width," ").concat(K.height,'" aria-hidden="true"><path fill="currentColor" d="').concat(K.svgPathData,'"></path></svg>')}function ue(K,oe){if(K)return K.classList?K.classList.contains(oe):!!K.className.match(new RegExp("(\\s|^)"+oe+"(\\s|$)"))}function x(K){if(K){for(var oe=arguments.length,ie=new Array(oe>1?oe-1:0),m=1;m<oe;m++)ie[m-1]=arguments[m];for(var S=0,P=ie;S<P.length;S++){var q=P[S];K.classList?K.classList.add(q):ue(K,q)||(K.className+=" "+q)}}}function Y(K,oe){if(K){if(K.classList)K.classList.remove(oe);else if(ue(K,oe)){var ie=new RegExp("(\\s|^)"+oe+"(\\s|$)");K.className=K.className.replace(ie," ")}}}function ce(K,oe){return typeof K=="function"?K(oe):K}},function(ke,de,b){var A=Array.isArray;de.a=A},function(ke,de,b){de.a=function(A){var _=typeof A;return A!=null&&(_=="object"||_=="function")}},function(ke,de,b){var A=b(63),_=typeof self=="object"&&self&&self.Object===Object&&self,U=A.a||_||Function("return this")();de.a=U},function(ke,de){ke.exports=function(b,A){if(!(b instanceof A))throw new TypeError("Cannot call a class as a function")}},function(ke,de){function b(A,_){for(var U=0;U<_.length;U++){var R=_[U];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(A,R.key,R)}}ke.exports=function(A,_,U){return _&&b(A.prototype,_),U&&b(A,U),A}},function(ke,de,b){de.a=function(A){return A!=null&&typeof A=="object"}},function(ke,de,b){ke.exports=function(){var A=navigator.userAgent,_=navigator.platform,U=/gecko\/\d/i.test(A),R=/MSIE \d/.test(A),p=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(A),G=/Edge\/(\d+)/.exec(A),C=R||p||G,M=C&&(R?document.documentMode||6:+(G||p)[1]),ue=!G&&/WebKit\//.test(A),x=ue&&/Qt\/\d+\.\d+/.test(A),Y=!G&&/Chrome\//.test(A),ce=/Opera\//.test(A),K=/Apple Computer/.test(navigator.vendor),oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(A),ie=/PhantomJS/.test(A),m=!G&&/AppleWebKit/.test(A)&&/Mobile\/\w+/.test(A),S=/Android/.test(A),P=m||S||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(A),q=m||/Mac/.test(_),te=/\bCrOS\b/.test(A),Z=/win/i.test(_),h=ce&&A.match(/Version\/(\d*\.\d*)/);h&&(h=Number(h[1])),h&&h>=15&&(ce=!1,ue=!0);var ne=q&&(x||ce&&(h==null||h<12.11)),Ge=U||C&&M>=9;function me(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var xe,D=function(e,t){var o=e.className,i=me(t).exec(o);if(i){var s=o.slice(i.index+i[0].length);e.className=o.slice(0,i.index)+(s?i[1]+s:"")}};function se(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function re(e,t){return se(e).appendChild(t)}function be(e,t,o,i){var s=document.createElement(e);if(o&&(s.className=o),i&&(s.style.cssText=i),typeof t=="string")s.appendChild(document.createTextNode(t));else if(t)for(var y=0;y<t.length;++y)s.appendChild(t[y]);return s}function $e(e,t,o,i){var s=be(e,t,o,i);return s.setAttribute("role","presentation"),s}function dt(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function Tt(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function ft(e,t){var o=e.className;me(t).test(o)||(e.className+=(o?" ":"")+t)}function Ke(e,t){for(var o=e.split(" "),i=0;i<o.length;i++)o[i]&&!me(o[i]).test(t)&&(t+=" "+o[i]);return t}xe=document.createRange?function(e,t,o,i){var s=document.createRange();return s.setEnd(i||e,o),s.setStart(e,t),s}:function(e,t,o){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch{return i}return i.collapse(!0),i.moveEnd("character",o),i.moveStart("character",t),i};var nt=function(e){e.select()};function mt(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function yt(e,t,o){for(var i in t||(t={}),e)!e.hasOwnProperty(i)||o===!1&&t.hasOwnProperty(i)||(t[i]=e[i]);return t}function Nt(e,t,o,i,s){t==null&&(t=e.search(/[^\s\u00a0]/))==-1&&(t=e.length);for(var y=i||0,O=s||0;;){var F=e.indexOf("	",y);if(F<0||F>=t)return O+(t-y);O+=F-y,O+=o-O%o,y=F+1}}m?nt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:C&&(nt=function(e){try{e.select()}catch{}});var at=function(){this.id=null,this.f=null,this.time=0,this.handler=mt(this.onTimeout,this)};function Ft(e,t){for(var o=0;o<e.length;++o)if(e[o]==t)return o;return-1}at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.prototype.set=function(e,t){this.f=t;var o=+new Date+e;(!this.id||o<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=o)};var B={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},he={origin:"*mouse"},De={origin:"+move"};function Ve(e,t,o){for(var i=0,s=0;;){var y=e.indexOf("	",i);y==-1&&(y=e.length);var O=y-i;if(y==e.length||s+O>=t)return i+Math.min(O,t-s);if(s+=y-i,i=y+1,(s+=o-s%o)>=t)return i}}var Be=[""];function ze(e){for(;Be.length<=e;)Be.push(lt(Be)+" ");return Be[e]}function lt(e){return e[e.length-1]}function Ze(e,t){for(var o=[],i=0;i<e.length;i++)o[i]=t(e[i],i);return o}function Pt(){}function jt(e,t){var o;return Object.create?o=Object.create(e):(Pt.prototype=e,o=new Pt),t&&yt(t,o),o}var nr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Bt(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||nr.test(e))}function xr(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Bt(e))||t.test(e):Bt(e)}function Pr(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var gr=/[\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 Cr(e){return e.charCodeAt(0)>=768&&gr.test(e)}function qr(e,t,o){for(;(o<0?t>0:t<e.length)&&Cr(e.charAt(t));)t+=o;return t}function on(e,t,o){for(var i=t>o?-1:1;;){if(t==o)return t;var s=(t+o)/2,y=i<0?Math.ceil(s):Math.floor(s);if(y==t)return e(y)?t:o;e(y)?o=y:t=y+i}}var Er=null;function cn(e,t,o){var i;Er=null;for(var s=0;s<e.length;++s){var y=e[s];if(y.from<t&&y.to>t)return s;y.to==t&&(y.from!=y.to&&o=="before"?i=s:Er=s),y.from==t&&(y.from!=y.to&&o!="before"?i=s:Er=s)}return i??Er}var Vr=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,o=/[LRr]/,i=/[Lb1n]/,s=/[1n]/;function y(O,F,Q){this.level=O,this.from=F,this.to=Q}return function(O,F){var Q=F=="ltr"?"L":"R";if(O.length==0||F=="ltr"&&!e.test(O))return!1;for(var ee,we=O.length,Ce=[],tt=0;tt<we;++tt)Ce.push((ee=O.charCodeAt(tt))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(ee):1424<=ee&&ee<=1524?"R":1536<=ee&&ee<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(ee-1536):1774<=ee&&ee<=2220?"r":8192<=ee&&ee<=8203?"w":ee==8204?"b":"L");for(var Xe=0,bt=Q;Xe<we;++Xe){var ot=Ce[Xe];ot=="m"?Ce[Xe]=bt:bt=ot}for(var vt=0,Mt=Q;vt<we;++vt){var Gt=Ce[vt];Gt=="1"&&Mt=="r"?Ce[vt]="n":o.test(Gt)&&(Mt=Gt,Gt=="r"&&(Ce[vt]="R"))}for(var zt=1,er=Ce[0];zt<we-1;++zt){var Yt=Ce[zt];Yt=="+"&&er=="1"&&Ce[zt+1]=="1"?Ce[zt]="1":Yt!=","||er!=Ce[zt+1]||er!="1"&&er!="n"||(Ce[zt]=er),er=Yt}for(var Xt=0;Xt<we;++Xt){var Jr=Ce[Xt];if(Jr==",")Ce[Xt]="N";else if(Jr=="%"){var Or=void 0;for(Or=Xt+1;Or<we&&Ce[Or]=="%";++Or);for(var Pn=Xt&&Ce[Xt-1]=="!"||Or<we&&Ce[Or]=="1"?"1":"N",Fr=Xt;Fr<Or;++Fr)Ce[Fr]=Pn;Xt=Or-1}}for(var In=0,$n=Q;In<we;++In){var Rn=Ce[In];$n=="L"&&Rn=="1"?Ce[In]="L":o.test(Rn)&&($n=Rn)}for(var Tn=0;Tn<we;++Tn)if(t.test(Ce[Tn])){var Kr=void 0;for(Kr=Tn+1;Kr<we&&t.test(Ce[Kr]);++Kr);for(var jn=(Tn?Ce[Tn-1]:Q)=="L",Gn=jn==((Kr<we?Ce[Kr]:Q)=="L")?jn?"L":"R":Q,On=Tn;On<Kr;++On)Ce[On]=Gn;Tn=Kr-1}for(var jr,Vn=[],bn=0;bn<we;)if(i.test(Ce[bn])){var bi=bn;for(++bn;bn<we&&i.test(Ce[bn]);++bn);Vn.push(new y(0,bi,bn))}else{var Ci=bn,ki=Vn.length,Ai=F=="rtl"?1:0;for(++bn;bn<we&&Ce[bn]!="L";++bn);for(var ai=Ci;ai<bn;)if(s.test(Ce[ai])){Ci<ai&&(Vn.splice(ki,0,new y(1,Ci,ai)),ki+=Ai);var Ni=ai;for(++ai;ai<bn&&s.test(Ce[ai]);++ai);Vn.splice(ki,0,new y(2,Ni,ai)),ki+=Ai,Ci=ai}else++ai;Ci<bn&&Vn.splice(ki,0,new y(1,Ci,bn))}return F=="ltr"&&(Vn[0].level==1&&(jr=O.match(/^\s+/))&&(Vn[0].from=jr[0].length,Vn.unshift(new y(0,0,jr[0].length))),lt(Vn).level==1&&(jr=O.match(/\s+$/))&&(lt(Vn).to-=jr[0].length,Vn.push(new y(0,we-jr[0].length,we)))),F=="rtl"?Vn.reverse():Vn}}();function dn(e,t){var o=e.order;return o==null&&(o=e.order=Vr(e.text,t)),o}var vr=[],lr=function(e,t,o){if(e.addEventListener)e.addEventListener(t,o,!1);else if(e.attachEvent)e.attachEvent("on"+t,o);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||vr).concat(o)}};function gn(e,t){return e._handlers&&e._handlers[t]||vr}function Dr(e,t,o){if(e.removeEventListener)e.removeEventListener(t,o,!1);else if(e.detachEvent)e.detachEvent("on"+t,o);else{var i=e._handlers,s=i&&i[t];if(s){var y=Ft(s,o);y>-1&&(i[t]=s.slice(0,y).concat(s.slice(y+1)))}}}function br(e,t){var o=gn(e,t);if(o.length)for(var i=Array.prototype.slice.call(arguments,2),s=0;s<o.length;++s)o[s].apply(null,i)}function hn(e,t,o){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),br(e,o||t.type,e,t),Jn(t)||t.codemirrorIgnore}function sn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var o=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)Ft(o,t[i])==-1&&o.push(t[i])}function Sr(e,t){return gn(e,t).length>0}function Yr(e){e.prototype.on=function(t,o){lr(this,t,o)},e.prototype.off=function(t,o){Dr(this,t,o)}}function kr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Wn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Jn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==0}function ln(e){kr(e),Wn(e)}function Zn(e){return e.target||e.srcElement}function xn(e){var t=e.which;return t==null&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),q&&e.ctrlKey&&t==1&&(t=3),t}var Cn,Sn,mn=function(){if(C&&M<9)return!1;var e=be("div");return"draggable"in e||"dragDrop"in e}();function je(e){if(Cn==null){var t=be("span","​");re(e,be("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cn=t.offsetWidth<=1&&t.offsetHeight>2&&!(C&&M<8))}var o=Cn?be("span","​"):be("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}function Fe(e){if(Sn!=null)return Sn;var t=re(e,document.createTextNode("AخA")),o=xe(t,0,1).getBoundingClientRect(),i=xe(t,1,2).getBoundingClientRect();return se(e),!(!o||o.left==o.right)&&(Sn=i.right-o.right<3)}var Ie,Ee=`

b`.split(/\n/).length!=3?function(e){for(var t=0,o=[],i=e.length;t<=i;){var s=e.indexOf(`
`,t);s==-1&&(s=e.length);var y=e.slice(t,e.charAt(s-1)=="\r"?s-1:s),O=y.indexOf("\r");O!=-1?(o.push(y.slice(0,O)),t+=O+1):(o.push(y),t=s+1)}return o}:function(e){return e.split(/\r\n?|\n/)},Te=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!(!t||t.parentElement()!=e)&&t.compareEndPoints("StartToEnd",t)!=0},Je="oncopy"in(Ie=be("div"))||(Ie.setAttribute("oncopy","return;"),typeof Ie.oncopy=="function"),It=null,wt={},Ot={};function Rt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),wt[e]=t}function tr(e){if(typeof e=="string"&&Ot.hasOwnProperty(e))e=Ot[e];else if(e&&typeof e.name=="string"&&Ot.hasOwnProperty(e.name)){var t=Ot[e.name];typeof t=="string"&&(t={name:t}),(e=jt(t,e)).name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return tr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return tr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function cr(e,t){t=tr(t);var o=wt[t.name];if(!o)return cr(e,"text/plain");var i=o(e,t);if(mr.hasOwnProperty(t.name)){var s=mr[t.name];for(var y in s)s.hasOwnProperty(y)&&(i.hasOwnProperty(y)&&(i["_"+y]=i[y]),i[y]=s[y])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var O in t.modeProps)i[O]=t.modeProps[O];return i}var mr={};function Wr(e,t){yt(t,mr.hasOwnProperty(e)?mr[e]:mr[e]={})}function Br(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var o={};for(var i in t){var s=t[i];s instanceof Array&&(s=s.concat([])),o[i]=s}return o}function Rr(e,t){for(var o;e.innerMode&&(o=e.innerMode(t))&&o.mode!=e;)t=o.state,e=o.mode;return o||{mode:e,state:t}}function tn(e,t,o){return!e.startState||e.startState(t,o)}var yr=function(e,t,o){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o};function Kt(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var o=e;!o.lines;)for(var i=0;;++i){var s=o.children[i],y=s.chunkSize();if(t<y){o=s;break}t-=y}return o.lines[t]}function pn(e,t,o){var i=[],s=t.line;return e.iter(t.line,o.line+1,function(y){var O=y.text;s==o.line&&(O=O.slice(0,o.ch)),s==t.line&&(O=O.slice(t.ch)),i.push(O),++s}),i}function ge(e,t,o){var i=[];return e.iter(t,o,function(s){i.push(s.text)}),i}function Ue(e,t){var o=t-e.height;if(o)for(var i=e;i;i=i.parent)i.height+=o}function pt(e){if(e.parent==null)return null;for(var t=e.parent,o=Ft(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var s=0;i.children[s]!=t;++s)o+=i.children[s].chunkSize();return o+t.first}function it(e,t){var o=e.first;e:do{for(var i=0;i<e.children.length;++i){var s=e.children[i],y=s.height;if(t<y){e=s;continue e}t-=y,o+=s.chunkSize()}return o}while(!e.lines);for(var O=0;O<e.lines.length;++O){var F=e.lines[O].height;if(t<F)break;t-=F}return o+O}function Qt(e,t){return t>=e.first&&t<e.first+e.size}function ur(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function gt(e,t,o){if(o===void 0&&(o=null),!(this instanceof gt))return new gt(e,t,o);this.line=e,this.ch=t,this.sticky=o}function Ht(e,t){return e.line-t.line||e.ch-t.ch}function Ut(e,t){return e.sticky==t.sticky&&Ht(e,t)==0}function Gr(e){return gt(e.line,e.ch)}function Ur(e,t){return Ht(e,t)<0?t:e}function Un(e,t){return Ht(e,t)<0?e:t}function ei(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ar(e,t){if(t.line<e.first)return gt(e.first,0);var o=e.first+e.size-1;return t.line>o?gt(o,Kt(e,o).text.length):function(i,s){var y=i.ch;return y==null||y>s?gt(i.line,s):y<0?gt(i.line,0):i}(t,Kt(e,t.line).text.length)}function Lr(e,t){for(var o=[],i=0;i<t.length;i++)o[i]=ar(e,t[i]);return o}yr.prototype.eol=function(){return this.pos>=this.string.length},yr.prototype.sol=function(){return this.pos==this.lineStart},yr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},yr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},yr.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e=="string"?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},yr.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},yr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},yr.prototype.skipToEnd=function(){this.pos=this.string.length},yr.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},yr.prototype.backUp=function(e){this.pos-=e},yr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Nt(this.string,this.lineStart,this.tabSize):0)},yr.prototype.indentation=function(){return Nt(this.string,null,this.tabSize)-(this.lineStart?Nt(this.string,this.lineStart,this.tabSize):0)},yr.prototype.match=function(e,t,o){if(typeof e!="string"){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}var s=function(y){return o?y.toLowerCase():y};if(s(this.string.substr(this.pos,e.length))==s(e))return t!==!1&&(this.pos+=e.length),!0},yr.prototype.current=function(){return this.string.slice(this.start,this.pos)},yr.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},yr.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},yr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Fn=function(e,t){this.state=e,this.lookAhead=t},Ye=function(e,t,o,i){this.state=t,this.doc=e,this.line=o,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function ye(e,t,o,i){var s=[e.state.modeGen],y={};k(e,t.text,e.doc.mode,o,function(ee,we){return s.push(ee,we)},y,i);for(var O=o.state,F=function(ee){o.baseTokens=s;var we=e.state.overlays[ee],Ce=1,tt=0;o.state=!0,k(e,t.text,we.mode,o,function(Xe,bt){for(var ot=Ce;tt<Xe;){var vt=s[Ce];vt>Xe&&s.splice(Ce,1,Xe,s[Ce+1],vt),Ce+=2,tt=Math.min(Xe,vt)}if(bt)if(we.opaque)s.splice(ot,Ce-ot,Xe,"overlay "+bt),Ce=ot+2;else for(;ot<Ce;ot+=2){var Mt=s[ot+1];s[ot+1]=(Mt?Mt+" ":"")+"overlay "+bt}},y),o.state=O,o.baseTokens=null,o.baseTokenPos=1},Q=0;Q<e.state.overlays.length;++Q)F(Q);return{styles:s,classes:y.bgClass||y.textClass?y:null}}function Le(e,t,o){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=J(e,pt(t)),s=t.text.length>e.options.maxHighlightLength&&Br(e.doc.mode,i.state),y=ye(e,t,i);s&&(i.state=s),t.stateAfter=i.save(!s),t.styles=y.styles,y.classes?t.styleClasses=y.classes:t.styleClasses&&(t.styleClasses=null),o===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function J(e,t,o){var i=e.doc,s=e.display;if(!i.mode.startState)return new Ye(i,!0,t);var y=function(Q,ee,we){for(var Ce,tt,Xe=Q.doc,bt=we?-1:ee-(Q.doc.mode.innerMode?1e3:100),ot=ee;ot>bt;--ot){if(ot<=Xe.first)return Xe.first;var vt=Kt(Xe,ot-1),Mt=vt.stateAfter;if(Mt&&(!we||ot+(Mt instanceof Fn?Mt.lookAhead:0)<=Xe.modeFrontier))return ot;var Gt=Nt(vt.text,null,Q.options.tabSize);(tt==null||Ce>Gt)&&(tt=ot-1,Ce=Gt)}return tt}(e,t,o),O=y>i.first&&Kt(i,y-1).stateAfter,F=O?Ye.fromSaved(i,O,y):new Ye(i,tn(i.mode),y);return i.iter(y,t,function(Q){H(e,Q.text,F);var ee=F.line;Q.stateAfter=ee==t-1||ee%5==0||ee>=s.viewFrom&&ee<s.viewTo?F.save():null,F.nextLine()}),o&&(i.modeFrontier=F.line),F}function H(e,t,o,i){var s=e.doc.mode,y=new yr(t,e.options.tabSize,o);for(y.start=y.pos=i||0,t==""&&Se(s,o.state);!y.eol();)Qe(s,y,o.state),y.start=y.pos}function Se(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var o=Rr(e,t);return o.mode.blankLine?o.mode.blankLine(o.state):void 0}}function Qe(e,t,o,i){for(var s=0;s<10;s++){i&&(i[0]=Rr(e,o).mode);var y=e.token(t,o);if(t.pos>t.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}Ye.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ye.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ye.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ye.fromSaved=function(e,t,o){return t instanceof Fn?new Ye(e,Br(e.mode,t.state),o,t.lookAhead):new Ye(e,Br(e.mode,t),o)},Ye.prototype.save=function(e){var t=e!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fn(t,this.maxLookAhead):t};var ct=function(e,t,o){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=o};function Lt(e,t,o,i){var s,y,O=e.doc,F=O.mode,Q=Kt(O,(t=ar(O,t)).line),ee=J(e,t.line,o),we=new yr(Q.text,e.options.tabSize,ee);for(i&&(y=[]);(i||we.pos<t.ch)&&!we.eol();)we.start=we.pos,s=Qe(F,we,ee.state),i&&y.push(new ct(we,s,Br(O.mode,ee.state)));return i?y:new ct(we,s,ee.state)}function w(e,t){if(e)for(;;){var o=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!o)break;e=e.slice(0,o.index)+e.slice(o.index+o[0].length);var i=o[1]?"bgClass":"textClass";t[i]==null?t[i]=o[2]:new RegExp("(?:^|\\s)"+o[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+o[2])}return e}function k(e,t,o,i,s,y,O){var F=o.flattenSpans;F==null&&(F=e.options.flattenSpans);var Q,ee=0,we=null,Ce=new yr(t,e.options.tabSize,i),tt=e.options.addModeClass&&[null];for(t==""&&w(Se(o,i.state),y);!Ce.eol();){if(Ce.pos>e.options.maxHighlightLength?(F=!1,O&&H(e,t,i,Ce.pos),Ce.pos=t.length,Q=null):Q=w(Qe(o,Ce,i.state,tt),y),tt){var Xe=tt[0].name;Xe&&(Q="m-"+(Q?Xe+" "+Q:Xe))}if(!F||we!=Q){for(;ee<Ce.start;)s(ee=Math.min(Ce.start,ee+5e3),we);we=Q}Ce.start=Ce.pos}for(;ee<Ce.pos;){var bt=Math.min(Ce.pos,ee+5e3);s(bt,we),ee=bt}}var ae=!1,Oe=!1;function qe(e,t,o){this.marker=e,this.from=t,this.to=o}function st(e,t){if(e)for(var o=0;o<e.length;++o){var i=e[o];if(i.marker==t)return i}}function Ct(e,t){for(var o,i=0;i<e.length;++i)e[i]!=t&&(o||(o=[])).push(e[i]);return o}function kt(e,t){if(t.full)return null;var o=Qt(e,t.from.line)&&Kt(e,t.from.line).markedSpans,i=Qt(e,t.to.line)&&Kt(e,t.to.line).markedSpans;if(!o&&!i)return null;var s=t.from.ch,y=t.to.ch,O=Ht(t.from,t.to)==0,F=function(Yt,Xt,Jr){var Or;if(Yt)for(var Pn=0;Pn<Yt.length;++Pn){var Fr=Yt[Pn],In=Fr.marker;if(Fr.from==null||(In.inclusiveLeft?Fr.from<=Xt:Fr.from<Xt)||Fr.from==Xt&&In.type=="bookmark"&&(!Jr||!Fr.marker.insertLeft)){var $n=Fr.to==null||(In.inclusiveRight?Fr.to>=Xt:Fr.to>Xt);(Or||(Or=[])).push(new qe(In,Fr.from,$n?null:Fr.to))}}return Or}(o,s,O),Q=function(Yt,Xt,Jr){var Or;if(Yt)for(var Pn=0;Pn<Yt.length;++Pn){var Fr=Yt[Pn],In=Fr.marker;if(Fr.to==null||(In.inclusiveRight?Fr.to>=Xt:Fr.to>Xt)||Fr.from==Xt&&In.type=="bookmark"&&(!Jr||Fr.marker.insertLeft)){var $n=Fr.from==null||(In.inclusiveLeft?Fr.from<=Xt:Fr.from<Xt);(Or||(Or=[])).push(new qe(In,$n?null:Fr.from-Xt,Fr.to==null?null:Fr.to-Xt))}}return Or}(i,y,O),ee=t.text.length==1,we=lt(t.text).length+(ee?s:0);if(F)for(var Ce=0;Ce<F.length;++Ce){var tt=F[Ce];if(tt.to==null){var Xe=st(Q,tt.marker);Xe?ee&&(tt.to=Xe.to==null?null:Xe.to+we):tt.to=s}}if(Q)for(var bt=0;bt<Q.length;++bt){var ot=Q[bt];ot.to!=null&&(ot.to+=we),ot.from==null?st(F,ot.marker)||(ot.from=we,ee&&(F||(F=[])).push(ot)):(ot.from+=we,ee&&(F||(F=[])).push(ot))}F&&(F=Vt(F)),Q&&Q!=F&&(Q=Vt(Q));var vt=[F];if(!ee){var Mt,Gt=t.text.length-2;if(Gt>0&&F)for(var zt=0;zt<F.length;++zt)F[zt].to==null&&(Mt||(Mt=[])).push(new qe(F[zt].marker,null,null));for(var er=0;er<Gt;++er)vt.push(Mt);vt.push(Q)}return vt}function Vt(e){for(var t=0;t<e.length;++t){var o=e[t];o.from!=null&&o.from==o.to&&o.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function rr(e){var t=e.markedSpans;if(t){for(var o=0;o<t.length;++o)t[o].marker.detachLine(e);e.markedSpans=null}}function ir(e,t){if(t){for(var o=0;o<t.length;++o)t[o].marker.attachLine(e);e.markedSpans=t}}function sr(e){return e.inclusiveLeft?-1:0}function Mr(e){return e.inclusiveRight?1:0}function Ir(e,t){var o=e.lines.length-t.lines.length;if(o!=0)return o;var i=e.find(),s=t.find(),y=Ht(i.from,s.from)||sr(e)-sr(t);if(y)return-y;var O=Ht(i.to,s.to)||Mr(e)-Mr(t);return O||t.id-e.id}function wn(e,t){var o,i=Oe&&e.markedSpans;if(i)for(var s=void 0,y=0;y<i.length;++y)(s=i[y]).marker.collapsed&&(t?s.from:s.to)==null&&(!o||Ir(o,s.marker)<0)&&(o=s.marker);return o}function un(e){return wn(e,!0)}function Zr(e){return wn(e,!1)}function Hn(e,t){var o,i=Oe&&e.markedSpans;if(i)for(var s=0;s<i.length;++s){var y=i[s];y.marker.collapsed&&(y.from==null||y.from<t)&&(y.to==null||y.to>t)&&(!o||Ir(o,y.marker)<0)&&(o=y.marker)}return o}function An(e,t,o,i,s){var y=Kt(e,t),O=Oe&&y.markedSpans;if(O)for(var F=0;F<O.length;++F){var Q=O[F];if(Q.marker.collapsed){var ee=Q.marker.find(0),we=Ht(ee.from,o)||sr(Q.marker)-sr(s),Ce=Ht(ee.to,i)||Mr(Q.marker)-Mr(s);if(!(we>=0&&Ce<=0||we<=0&&Ce>=0)&&(we<=0&&(Q.marker.inclusiveRight&&s.inclusiveLeft?Ht(ee.to,o)>=0:Ht(ee.to,o)>0)||we>=0&&(Q.marker.inclusiveRight&&s.inclusiveLeft?Ht(ee.from,i)<=0:Ht(ee.from,i)<0)))return!0}}}function Re(e){for(var t;t=un(e);)e=t.find(-1,!0).line;return e}function Ae(e,t){var o=Kt(e,t),i=Re(o);return o==i?t:pt(i)}function r(e,t){if(t>e.lastLine())return t;var o,i=Kt(e,t);if(!a(e,i))return t;for(;o=Zr(i);)i=o.find(1,!0).line;return pt(i)+1}function a(e,t){var o=Oe&&t.markedSpans;if(o){for(var i=void 0,s=0;s<o.length;++s)if((i=o[s]).marker.collapsed&&(i.from==null||!i.marker.widgetNode&&i.from==0&&i.marker.inclusiveLeft&&d(e,t,i)))return!0}}function d(e,t,o){if(o.to==null){var i=o.marker.find(1,!0);return d(e,i.line,st(i.line.markedSpans,o.marker))}if(o.marker.inclusiveRight&&o.to==t.text.length)return!0;for(var s=void 0,y=0;y<t.markedSpans.length;++y)if((s=t.markedSpans[y]).marker.collapsed&&!s.marker.widgetNode&&s.from==o.to&&(s.to==null||s.to!=o.from)&&(s.marker.inclusiveLeft||o.marker.inclusiveRight)&&d(e,t,s))return!0}function g(e){for(var t=0,o=(e=Re(e)).parent,i=0;i<o.lines.length;++i){var s=o.lines[i];if(s==e)break;t+=s.height}for(var y=o.parent;y;y=(o=y).parent)for(var O=0;O<y.children.length;++O){var F=y.children[O];if(F==o)break;t+=F.height}return t}function N(e){if(e.height==0)return 0;for(var t,o=e.text.length,i=e;t=un(i);){var s=t.find(0,!0);i=s.from.line,o+=s.from.ch-s.to.ch}for(i=e;t=Zr(i);){var y=t.find(0,!0);o-=i.text.length-y.from.ch,o+=(i=y.to.line).text.length-y.to.ch}return o}function L(e){var t=e.display,o=e.doc;t.maxLine=Kt(o,o.first),t.maxLineLength=N(t.maxLine),t.maxLineChanged=!0,o.iter(function(i){var s=N(i);s>t.maxLineLength&&(t.maxLineLength=s,t.maxLine=i)})}var I=function(e,t,o){this.text=e,ir(this,t),this.height=o?o(this):1};function $(e){e.parent=null,rr(e)}I.prototype.lineNo=function(){return pt(this)},Yr(I);var pe={},We={};function _e(e,t){if(!e||/^\s*$/.test(e))return null;var o=t.addModeClass?We:pe;return o[e]||(o[e]=e.replace(/\S+/g,"cm-$&"))}function n(e,t){var o=$e("span",null,null,ue?"padding-right: .1px":null),i={pre:$e("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var s=0;s<=(t.rest?t.rest.length:0);s++){var y=s?t.rest[s-1]:t.line,O=void 0;i.pos=0,i.addToken=E,Fe(e.display.measure)&&(O=dn(y,e.doc.direction))&&(i.addToken=T(i.addToken,O)),i.map=[],V(y,i,Le(e,y,t!=e.display.externalMeasured&&pt(y))),y.styleClasses&&(y.styleClasses.bgClass&&(i.bgClass=Ke(y.styleClasses.bgClass,i.bgClass||"")),y.styleClasses.textClass&&(i.textClass=Ke(y.styleClasses.textClass,i.textClass||""))),i.map.length==0&&i.map.push(0,0,i.content.appendChild(je(e.display.measure))),s==0?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ue){var F=i.content.lastChild;(/\bcm-tab\b/.test(F.className)||F.querySelector&&F.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return br(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=Ke(i.pre.className,i.textClass||"")),i}function c(e){var t=be("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function E(e,t,o,i,s,y,O){if(t){var F,Q=e.splitSpaces?function(Yt,Xt){if(Yt.length>1&&!/  /.test(Yt))return Yt;for(var Jr=Xt,Or="",Pn=0;Pn<Yt.length;Pn++){var Fr=Yt.charAt(Pn);Fr!=" "||!Jr||Pn!=Yt.length-1&&Yt.charCodeAt(Pn+1)!=32||(Fr=" "),Or+=Fr,Jr=Fr==" "}return Or}(t,e.trailingSpace):t,ee=e.cm.state.specialChars,we=!1;if(ee.test(t)){F=document.createDocumentFragment();for(var Ce=0;;){ee.lastIndex=Ce;var tt=ee.exec(t),Xe=tt?tt.index-Ce:t.length-Ce;if(Xe){var bt=document.createTextNode(Q.slice(Ce,Ce+Xe));C&&M<9?F.appendChild(be("span",[bt])):F.appendChild(bt),e.map.push(e.pos,e.pos+Xe,bt),e.col+=Xe,e.pos+=Xe}if(!tt)break;Ce+=Xe+1;var ot=void 0;if(tt[0]=="	"){var vt=e.cm.options.tabSize,Mt=vt-e.col%vt;(ot=F.appendChild(be("span",ze(Mt),"cm-tab"))).setAttribute("role","presentation"),ot.setAttribute("cm-text","	"),e.col+=Mt}else tt[0]=="\r"||tt[0]==`
`?((ot=F.appendChild(be("span",tt[0]=="\r"?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",tt[0]),e.col+=1):((ot=e.cm.options.specialCharPlaceholder(tt[0])).setAttribute("cm-text",tt[0]),C&&M<9?F.appendChild(be("span",[ot])):F.appendChild(ot),e.col+=1);e.map.push(e.pos,e.pos+1,ot),e.pos++}}else e.col+=t.length,F=document.createTextNode(Q),e.map.push(e.pos,e.pos+t.length,F),C&&M<9&&(we=!0),e.pos+=t.length;if(e.trailingSpace=Q.charCodeAt(t.length-1)==32,o||i||s||we||y){var Gt=o||"";i&&(Gt+=i),s&&(Gt+=s);var zt=be("span",[F],Gt,y);if(O)for(var er in O)O.hasOwnProperty(er)&&er!="style"&&er!="class"&&zt.setAttribute(er,O[er]);return e.content.appendChild(zt)}e.content.appendChild(F)}}function T(e,t){return function(o,i,s,y,O,F,Q){s=s?s+" cm-force-border":"cm-force-border";for(var ee=o.pos,we=ee+i.length;;){for(var Ce=void 0,tt=0;tt<t.length&&!((Ce=t[tt]).to>ee&&Ce.from<=ee);tt++);if(Ce.to>=we)return e(o,i,s,y,O,F,Q);e(o,i.slice(0,Ce.to-ee),s,y,null,F,Q),y=null,i=i.slice(Ce.to-ee),ee=Ce.to}}}function W(e,t,o,i){var s=!i&&o.widgetNode;s&&e.map.push(e.pos,e.pos+t,s),!i&&e.cm.display.input.needsContentAttribute&&(s||(s=e.content.appendChild(document.createElement("span"))),s.setAttribute("cm-marker",o.id)),s&&(e.cm.display.input.setUneditable(s),e.content.appendChild(s)),e.pos+=t,e.trailingSpace=!1}function V(e,t,o){var i=e.markedSpans,s=e.text,y=0;if(i)for(var O,F,Q,ee,we,Ce,tt,Xe=s.length,bt=0,ot=1,vt="",Mt=0;;){if(Mt==bt){Q=ee=we=F="",tt=null,Ce=null,Mt=1/0;for(var Gt=[],zt=void 0,er=0;er<i.length;++er){var Yt=i[er],Xt=Yt.marker;if(Xt.type=="bookmark"&&Yt.from==bt&&Xt.widgetNode)Gt.push(Xt);else if(Yt.from<=bt&&(Yt.to==null||Yt.to>bt||Xt.collapsed&&Yt.to==bt&&Yt.from==bt)){if(Yt.to!=null&&Yt.to!=bt&&Mt>Yt.to&&(Mt=Yt.to,ee=""),Xt.className&&(Q+=" "+Xt.className),Xt.css&&(F=(F?F+";":"")+Xt.css),Xt.startStyle&&Yt.from==bt&&(we+=" "+Xt.startStyle),Xt.endStyle&&Yt.to==Mt&&(zt||(zt=[])).push(Xt.endStyle,Yt.to),Xt.title&&((tt||(tt={})).title=Xt.title),Xt.attributes)for(var Jr in Xt.attributes)(tt||(tt={}))[Jr]=Xt.attributes[Jr];Xt.collapsed&&(!Ce||Ir(Ce.marker,Xt)<0)&&(Ce=Yt)}else Yt.from>bt&&Mt>Yt.from&&(Mt=Yt.from)}if(zt)for(var Or=0;Or<zt.length;Or+=2)zt[Or+1]==Mt&&(ee+=" "+zt[Or]);if(!Ce||Ce.from==bt)for(var Pn=0;Pn<Gt.length;++Pn)W(t,0,Gt[Pn]);if(Ce&&(Ce.from||0)==bt){if(W(t,(Ce.to==null?Xe+1:Ce.to)-bt,Ce.marker,Ce.from==null),Ce.to==null)return;Ce.to==bt&&(Ce=!1)}}if(bt>=Xe)break;for(var Fr=Math.min(Xe,Mt);;){if(vt){var In=bt+vt.length;if(!Ce){var $n=In>Fr?vt.slice(0,Fr-bt):vt;t.addToken(t,$n,O?O+Q:Q,we,bt+$n.length==Mt?ee:"",F,tt)}if(In>=Fr){vt=vt.slice(Fr-bt),bt=Fr;break}bt=In,we=""}vt=s.slice(y,y=o[ot++]),O=_e(o[ot++],t.cm.options)}}else for(var Rn=1;Rn<o.length;Rn+=2)t.addToken(t,s.slice(y,y=o[Rn]),_e(o[Rn+1],t.cm.options))}function fe(e,t,o){this.line=t,this.rest=function(i){for(var s,y;s=Zr(i);)i=s.find(1,!0).line,(y||(y=[])).push(i);return y}(t),this.size=this.rest?pt(lt(this.rest))-o+1:1,this.node=this.text=null,this.hidden=a(e,t)}function Pe(e,t,o){for(var i,s=[],y=t;y<o;y=i){var O=new fe(e.doc,Kt(e.doc,y),y);i=y+O.size,s.push(O)}return s}var He=null,et=null;function Et(e,t){var o=gn(e,t);if(o.length){var i,s=Array.prototype.slice.call(arguments,2);He?i=He.delayedCallbacks:et?i=et:(i=et=[],setTimeout(Dt,0));for(var y=function(F){i.push(function(){return o[F].apply(null,s)})},O=0;O<o.length;++O)y(O)}}function Dt(){var e=et;et=null;for(var t=0;t<e.length;++t)e[t]()}function St(e,t,o,i){for(var s=0;s<t.changes.length;s++){var y=t.changes[s];y=="text"?dr(e,t):y=="gutter"?Ar(e,t,o,i):y=="class"?hr(e,t):y=="widget"&&rn(e,t,i)}t.changes=null}function At(e){return e.node==e.text&&(e.node=be("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),C&&M<8&&(e.node.style.zIndex=2)),e.node}function pr(e,t){var o=e.display.externalMeasured;return o&&o.line==t.line?(e.display.externalMeasured=null,t.measure=o.measure,o.built):n(e,t)}function dr(e,t){var o=t.text.className,i=pr(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,hr(e,t)):o&&(t.text.className=o)}function hr(e,t){(function(i,s){var y=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),s.background)y?s.background.className=y:(s.background.parentNode.removeChild(s.background),s.background=null);else if(y){var O=At(s);s.background=O.insertBefore(be("div",null,y),O.firstChild),i.display.input.setUneditable(s.background)}})(e,t),t.line.wrapClass?At(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var o=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=o||""}function Ar(e,t,o,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var s=At(t);t.gutterBackground=be("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),s.insertBefore(t.gutterBackground,t.text)}var y=t.line.gutterMarkers;if(e.options.lineNumbers||y){var O=At(t),F=t.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(F),O.insertBefore(F,t.text),t.line.gutterClass&&(F.className+=" "+t.line.gutterClass),!e.options.lineNumbers||y&&y["CodeMirror-linenumbers"]||(t.lineNumber=F.appendChild(be("div",ur(e.options,o),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var Q=0;Q<e.display.gutterSpecs.length;++Q){var ee=e.display.gutterSpecs[Q].className,we=y.hasOwnProperty(ee)&&y[ee];we&&F.appendChild(be("div",[we],"CodeMirror-gutter-elt","left: "+i.gutterLeft[ee]+"px; width: "+i.gutterWidth[ee]+"px"))}}}function rn(e,t,o){t.alignable&&(t.alignable=null);for(var i=me("CodeMirror-linewidget"),s=t.node.firstChild,y=void 0;s;s=y)y=s.nextSibling,i.test(s.className)&&t.node.removeChild(s);an(e,t,o)}function zn(e,t,o,i){var s=pr(e,t);return t.text=t.node=s.pre,s.bgClass&&(t.bgClass=s.bgClass),s.textClass&&(t.textClass=s.textClass),hr(e,t),Ar(e,t,o,i),an(e,t,i),t.node}function an(e,t,o){if(Tr(e,t.line,t,o,!0),t.rest)for(var i=0;i<t.rest.length;i++)Tr(e,t.rest[i],t,o,!1)}function Tr(e,t,o,i,s){if(t.widgets)for(var y=At(o),O=0,F=t.widgets;O<F.length;++O){var Q=F[O],ee=be("div",[Q.node],"CodeMirror-linewidget"+(Q.className?" "+Q.className:""));Q.handleMouseEvents||ee.setAttribute("cm-ignore-events","true"),ni(Q,ee,o,i),e.display.input.setUneditable(ee),s&&Q.above?y.insertBefore(ee,o.gutter||o.text):y.appendChild(ee),Et(Q,"redraw")}}function ni(e,t,o,i){if(e.noHScroll){(o.alignable||(o.alignable=[])).push(t);var s=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(s-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=s+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function nn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!dt(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),re(t.display.measure,be("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function fn(e,t){for(var o=Zn(t);o!=e.wrapper;o=o.parentNode)if(!o||o.nodeType==1&&o.getAttribute("cm-ignore-events")=="true"||o.parentNode==e.sizer&&o!=e.mover)return!0}function pi(e){return e.lineSpace.offsetTop}function Li(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function si(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=re(e.measure,be("pre","x","CodeMirror-line-like")),o=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(o.paddingLeft),right:parseInt(o.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(e.cachedPaddingH=i),i}function li(e){return 50-e.display.nativeBarWidth}function Ii(e){return e.display.scroller.clientWidth-li(e)-e.display.barWidth}function ii(e){return e.display.scroller.clientHeight-li(e)-e.display.barHeight}function Nn(e,t,o){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var s=0;s<e.rest.length;s++)if(pt(e.rest[s])>o)return{map:e.measure.maps[s],cache:e.measure.caches[s],before:!0}}function kn(e,t,o,i){return ti(e,ci(e,t),o,i)}function Qn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Yi(e,t)];var o=e.display.externalMeasured;return o&&t>=o.lineN&&t<o.lineN+o.size?o:void 0}function ci(e,t){var o=pt(t),i=Qn(e,o);i&&!i.text?i=null:i&&i.changes&&(St(e,i,o,Ln(e)),e.curOp.forceUpdate=!0),i||(i=function(y,O){var F=pt(O=Re(O)),Q=y.display.externalMeasured=new fe(y.doc,O,F);Q.lineN=F;var ee=Q.built=n(y,Q);return Q.text=ee.pre,re(y.display.lineMeasure,ee.pre),Q}(e,t));var s=Nn(i,t,o);return{line:t,view:i,rect:null,map:s.map,cache:s.cache,before:s.before,hasHeights:!1}}function ti(e,t,o,i,s){t.before&&(o=-1);var y,O=o+(i||"");return t.cache.hasOwnProperty(O)?y=t.cache[O]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(F,Q,ee){var we=F.options.lineWrapping,Ce=we&&Ii(F);if(!Q.measure.heights||we&&Q.measure.width!=Ce){var tt=Q.measure.heights=[];if(we){Q.measure.width=Ce;for(var Xe=Q.text.firstChild.getClientRects(),bt=0;bt<Xe.length-1;bt++){var ot=Xe[bt],vt=Xe[bt+1];Math.abs(ot.bottom-vt.bottom)>2&&tt.push((ot.bottom+vt.top)/2-ee.top)}}tt.push(ee.bottom-ee.top)}}(e,t.view,t.rect),t.hasHeights=!0),(y=function(F,Q,ee,we){var Ce,tt=_n(Q.map,ee,we),Xe=tt.node,bt=tt.start,ot=tt.end,vt=tt.collapse;if(Xe.nodeType==3){for(var Mt=0;Mt<4;Mt++){for(;bt&&Cr(Q.line.text.charAt(tt.coverStart+bt));)--bt;for(;tt.coverStart+ot<tt.coverEnd&&Cr(Q.line.text.charAt(tt.coverStart+ot));)++ot;if((Ce=C&&M<9&&bt==0&&ot==tt.coverEnd-tt.coverStart?Xe.parentNode.getBoundingClientRect():hi(xe(Xe,bt,ot).getClientRects(),we)).left||Ce.right||bt==0)break;ot=bt,bt-=1,vt="right"}C&&M<11&&(Ce=function($n,Rn){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!function(jn){if(It!=null)return It;var Gn=re(jn,be("span","x")),On=Gn.getBoundingClientRect(),jr=xe(Gn,0,1).getBoundingClientRect();return It=Math.abs(On.left-jr.left)>1}($n))return Rn;var Tn=screen.logicalXDPI/screen.deviceXDPI,Kr=screen.logicalYDPI/screen.deviceYDPI;return{left:Rn.left*Tn,right:Rn.right*Tn,top:Rn.top*Kr,bottom:Rn.bottom*Kr}}(F.display.measure,Ce))}else{var Gt;bt>0&&(vt=we="right"),Ce=F.options.lineWrapping&&(Gt=Xe.getClientRects()).length>1?Gt[we=="right"?Gt.length-1:0]:Xe.getBoundingClientRect()}if(C&&M<9&&!bt&&(!Ce||!Ce.left&&!Ce.right)){var zt=Xe.parentNode.getClientRects()[0];Ce=zt?{left:zt.left,right:zt.left+ro(F.display),top:zt.top,bottom:zt.bottom}:en}for(var er=Ce.top-Q.rect.top,Yt=Ce.bottom-Q.rect.top,Xt=(er+Yt)/2,Jr=Q.view.measure.heights,Or=0;Or<Jr.length-1&&!(Xt<Jr[Or]);Or++);var Pn=Or?Jr[Or-1]:0,Fr=Jr[Or],In={left:(vt=="right"?Ce.right:Ce.left)-Q.rect.left,right:(vt=="left"?Ce.left:Ce.right)-Q.rect.left,top:Pn,bottom:Fr};return Ce.left||Ce.right||(In.bogus=!0),F.options.singleCursorHeightPerLine||(In.rtop=er,In.rbottom=Yt),In}(e,t,o,i)).bogus||(t.cache[O]=y)),{left:y.left,right:y.right,top:s?y.rtop:y.top,bottom:s?y.rbottom:y.bottom}}var yi,en={left:0,right:0,top:0,bottom:0};function _n(e,t,o){for(var i,s,y,O,F,Q,ee=0;ee<e.length;ee+=3)if(F=e[ee],Q=e[ee+1],t<F?(s=0,y=1,O="left"):t<Q?y=1+(s=t-F):(ee==e.length-3||t==Q&&e[ee+3]>t)&&(s=(y=Q-F)-1,t>=Q&&(O="right")),s!=null){if(i=e[ee+2],F==Q&&o==(i.insertLeft?"left":"right")&&(O=o),o=="left"&&s==0)for(;ee&&e[ee-2]==e[ee-3]&&e[ee-1].insertLeft;)i=e[2+(ee-=3)],O="left";if(o=="right"&&s==Q-F)for(;ee<e.length-3&&e[ee+3]==e[ee+4]&&!e[ee+5].insertLeft;)i=e[(ee+=3)+2],O="right";break}return{node:i,start:s,end:y,collapse:O,coverStart:F,coverEnd:Q}}function hi(e,t){var o=en;if(t=="left")for(var i=0;i<e.length&&(o=e[i]).left==o.right;i++);else for(var s=e.length-1;s>=0&&(o=e[s]).left==o.right;s--);return o}function xi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function ri(e){e.display.externalMeasure=null,se(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)xi(e.display.view[t])}function gi(e){ri(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ji(){return Y&&S?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ho(){return Y&&S?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fo(e){var t=0;if(e.widgets)for(var o=0;o<e.widgets.length;++o)e.widgets[o].above&&(t+=nn(e.widgets[o]));return t}function yo(e,t,o,i,s){if(!s){var y=fo(t);o.top+=y,o.bottom+=y}if(i=="line")return o;i||(i="local");var O=g(t);if(i=="local"?O+=pi(e.display):O-=e.display.viewOffset,i=="page"||i=="window"){var F=e.display.lineSpace.getBoundingClientRect();O+=F.top+(i=="window"?0:ho());var Q=F.left+(i=="window"?0:Ji());o.left+=Q,o.right+=Q}return o.top+=O,o.bottom+=O,o}function Do(e,t,o){if(o=="div")return t;var i=t.left,s=t.top;if(o=="page")i-=Ji(),s-=ho();else if(o=="local"||!o){var y=e.display.sizer.getBoundingClientRect();i+=y.left,s+=y.top}var O=e.display.lineSpace.getBoundingClientRect();return{left:i-O.left,top:s-O.top}}function eo(e,t,o,i,s){return i||(i=Kt(e.doc,t.line)),yo(e,i,kn(e,i,t.ch,s),o)}function Qr(e,t,o,i,s,y){function O(bt,ot){var vt=ti(e,s,bt,ot?"right":"left",y);return ot?vt.left=vt.right:vt.right=vt.left,yo(e,i,vt,o)}i=i||Kt(e.doc,t.line),s||(s=ci(e,i));var F=dn(i,e.doc.direction),Q=t.ch,ee=t.sticky;if(Q>=i.text.length?(Q=i.text.length,ee="before"):Q<=0&&(Q=0,ee="after"),!F)return O(ee=="before"?Q-1:Q,ee=="before");function we(bt,ot,vt){return O(vt?bt-1:bt,F[ot].level==1!=vt)}var Ce=cn(F,Q,ee),tt=Er,Xe=we(Q,Ce,ee=="before");return tt!=null&&(Xe.other=we(Q,tt,ee!="before")),Xe}function Lo(e,t){var o=0;t=ar(e.doc,t),e.options.lineWrapping||(o=ro(e.display)*t.ch);var i=Kt(e.doc,t.line),s=g(i)+pi(e.display);return{left:o,right:o,top:s,bottom:s+i.height}}function uo(e,t,o,i,s){var y=gt(e,t,o);return y.xRel=s,i&&(y.outside=i),y}function Qi(e,t,o){var i=e.doc;if((o+=e.display.viewOffset)<0)return uo(i.first,0,null,-1,-1);var s=it(i,o),y=i.first+i.size-1;if(s>y)return uo(i.first+i.size-1,Kt(i,y).text.length,null,1,1);t<0&&(t=0);for(var O=Kt(i,s);;){var F=Hi(e,O,s,t,o),Q=Hn(O,F.ch+(F.xRel>0||F.outside>0?1:0));if(!Q)return F;var ee=Q.find(1);if(ee.line==s)return ee;O=Kt(i,s=ee.line)}}function Eo(e,t,o,i){i-=fo(t);var s=t.text.length,y=on(function(O){return ti(e,o,O-1).bottom<=i},s,0);return{begin:y,end:s=on(function(O){return ti(e,o,O).top>i},y,s)}}function to(e,t,o,i){return o||(o=ci(e,t)),Eo(e,t,o,yo(e,t,ti(e,o,i),"line").top)}function wi(e,t,o,i){return!(e.bottom<=o)&&(e.top>o||(i?e.left:e.right)>t)}function Hi(e,t,o,i,s){s-=g(t);var y=ci(e,t),O=fo(t),F=0,Q=t.text.length,ee=!0,we=dn(t,e.doc.direction);if(we){var Ce=(e.options.lineWrapping?wo:Io)(e,t,o,y,we,i,s);F=(ee=Ce.level!=1)?Ce.from:Ce.to-1,Q=ee?Ce.to:Ce.from-1}var tt,Xe,bt=null,ot=null,vt=on(function(Yt){var Xt=ti(e,y,Yt);return Xt.top+=O,Xt.bottom+=O,!!wi(Xt,i,s,!1)&&(Xt.top<=s&&Xt.left<=i&&(bt=Yt,ot=Xt),!0)},F,Q),Mt=!1;if(ot){var Gt=i-ot.left<ot.right-i,zt=Gt==ee;vt=bt+(zt?0:1),Xe=zt?"after":"before",tt=Gt?ot.left:ot.right}else{ee||vt!=Q&&vt!=F||vt++,Xe=vt==0?"after":vt==t.text.length?"before":ti(e,y,vt-(ee?1:0)).bottom+O<=s==ee?"after":"before";var er=Qr(e,gt(o,vt,Xe),"line",t,y);tt=er.left,Mt=s<er.top?-1:s>=er.bottom?1:0}return uo(o,vt=qr(t.text,vt,1),Xe,Mt,i-tt)}function Io(e,t,o,i,s,y,O){var F=on(function(Ce){var tt=s[Ce],Xe=tt.level!=1;return wi(Qr(e,gt(o,Xe?tt.to:tt.from,Xe?"before":"after"),"line",t,i),y,O,!0)},0,s.length-1),Q=s[F];if(F>0){var ee=Q.level!=1,we=Qr(e,gt(o,ee?Q.from:Q.to,ee?"after":"before"),"line",t,i);wi(we,y,O,!0)&&we.top>O&&(Q=s[F-1])}return Q}function wo(e,t,o,i,s,y,O){var F=Eo(e,t,i,O),Q=F.begin,ee=F.end;/\s/.test(t.text.charAt(ee-1))&&ee--;for(var we=null,Ce=null,tt=0;tt<s.length;tt++){var Xe=s[tt];if(!(Xe.from>=ee||Xe.to<=Q)){var bt=ti(e,i,Xe.level!=1?Math.min(ee,Xe.to)-1:Math.max(Q,Xe.from)).right,ot=bt<y?y-bt+1e9:bt-y;(!we||Ce>ot)&&(we=Xe,Ce=ot)}}return we||(we=s[s.length-1]),we.from<Q&&(we={from:Q,to:we.to,level:we.level}),we.to>ee&&(we={from:we.from,to:ee,level:we.level}),we}function qi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(yi==null){yi=be("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)yi.appendChild(document.createTextNode("x")),yi.appendChild(be("br"));yi.appendChild(document.createTextNode("x"))}re(e.measure,yi);var o=yi.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),se(e.measure),o||1}function ro(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=be("span","xxxxxxxxxx"),o=be("pre",[t],"CodeMirror-line-like");re(e.measure,o);var i=t.getBoundingClientRect(),s=(i.right-i.left)/10;return s>2&&(e.cachedCharWidth=s),s||10}function Ln(e){for(var t=e.display,o={},i={},s=t.gutters.clientLeft,y=t.gutters.firstChild,O=0;y;y=y.nextSibling,++O){var F=e.display.gutterSpecs[O].className;o[F]=y.offsetLeft+y.clientLeft+s,i[F]=y.clientWidth}return{fixedPos:no(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:o,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function no(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ri(e){var t=qi(e.display),o=e.options.lineWrapping,i=o&&Math.max(5,e.display.scroller.clientWidth/ro(e.display)-3);return function(s){if(a(e.doc,s))return 0;var y=0;if(s.widgets)for(var O=0;O<s.widgets.length;O++)s.widgets[O].height&&(y+=s.widgets[O].height);return o?y+(Math.ceil(s.text.length/i)||1)*t:y+t}}function _i(e){var t=e.doc,o=Ri(e);t.iter(function(i){var s=o(i);s!=i.height&&Ue(i,s)})}function Vi(e,t,o,i){var s=e.display;if(!o&&Zn(t).getAttribute("cm-not-content")=="true")return null;var y,O,F=s.lineSpace.getBoundingClientRect();try{y=t.clientX-F.left,O=t.clientY-F.top}catch{return null}var Q,ee=Qi(e,y,O);if(i&&ee.xRel>0&&(Q=Kt(e.doc,ee.line).text).length==ee.ch){var we=Nt(Q,Q.length,e.options.tabSize)-Q.length;ee=gt(ee.line,Math.max(0,Math.round((y-si(e.display).left)/ro(e.display))-we))}return ee}function Yi(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom)<0)return null;for(var o=e.display.view,i=0;i<o.length;i++)if((t-=o[i].size)<0)return i}function Si(e,t,o,i){t==null&&(t=e.doc.first),o==null&&(o=e.doc.first+e.doc.size),i||(i=0);var s=e.display;if(i&&o<s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>t)&&(s.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=s.viewTo)Oe&&Ae(e.doc,t)<s.viewTo&&Wi(e);else if(o<=s.viewFrom)Oe&&r(e.doc,o+i)>s.viewFrom?Wi(e):(s.viewFrom+=i,s.viewTo+=i);else if(t<=s.viewFrom&&o>=s.viewTo)Wi(e);else if(t<=s.viewFrom){var y=Bi(e,o,o+i,1);y?(s.view=s.view.slice(y.index),s.viewFrom=y.lineN,s.viewTo+=i):Wi(e)}else if(o>=s.viewTo){var O=Bi(e,t,t,-1);O?(s.view=s.view.slice(0,O.index),s.viewTo=O.lineN):Wi(e)}else{var F=Bi(e,t,t,-1),Q=Bi(e,o,o+i,1);F&&Q?(s.view=s.view.slice(0,F.index).concat(Pe(e,F.lineN,Q.lineN)).concat(s.view.slice(Q.index)),s.viewTo+=i):Wi(e)}var ee=s.externalMeasured;ee&&(o<ee.lineN?ee.lineN+=i:t<ee.lineN+ee.size&&(s.externalMeasured=null))}function Xi(e,t,o){e.curOp.viewChanged=!0;var i=e.display,s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var y=i.view[Yi(e,t)];if(y.node!=null){var O=y.changes||(y.changes=[]);Ft(O,o)==-1&&O.push(o)}}}function Wi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Bi(e,t,o,i){var s,y=Yi(e,t),O=e.display.view;if(!Oe||o==e.doc.first+e.doc.size)return{index:y,lineN:o};for(var F=e.display.viewFrom,Q=0;Q<y;Q++)F+=O[Q].size;if(F!=t){if(i>0){if(y==O.length-1)return null;s=F+O[y].size-t,y++}else s=F-t;t+=s,o+=s}for(;Ae(e.doc,o)!=o;){if(y==(i<0?0:O.length-1))return null;o+=i*O[y-(i<0?1:0)].size,y+=i}return{index:y,lineN:o}}function go(e){for(var t=e.display.view,o=0,i=0;i<t.length;i++){var s=t[i];s.hidden||s.node&&!s.changes||++o}return o}function io(e){e.display.input.showSelection(e.display.input.prepareSelection())}function co(e,t){t===void 0&&(t=!0);for(var o=e.doc,i={},s=i.cursors=document.createDocumentFragment(),y=i.selection=document.createDocumentFragment(),O=0;O<o.sel.ranges.length;O++)if(t||O!=o.sel.primIndex){var F=o.sel.ranges[O];if(!(F.from().line>=e.display.viewTo||F.to().line<e.display.viewFrom)){var Q=F.empty();(Q||e.options.showCursorWhenSelecting)&&oo(e,F.head,s),Q||mo(e,F,y)}}return i}function oo(e,t,o){var i=Qr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),s=o.appendChild(be("div"," ","CodeMirror-cursor"));if(s.style.left=i.left+"px",s.style.top=i.top+"px",s.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var y=o.appendChild(be("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=i.other.left+"px",y.style.top=i.other.top+"px",y.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Ti(e,t){return e.top-t.top||e.left-t.left}function mo(e,t,o){var i=e.display,s=e.doc,y=document.createDocumentFragment(),O=si(e.display),F=O.left,Q=Math.max(i.sizerWidth,Ii(e)-i.sizer.offsetLeft)-O.right,ee=s.direction=="ltr";function we(zt,er,Yt,Xt){er<0&&(er=0),er=Math.round(er),Xt=Math.round(Xt),y.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+zt+`px;
                             top: `+er+"px; width: "+(Yt??Q-zt)+`px;
                             height: `+(Xt-er)+"px"))}function Ce(zt,er,Yt){var Xt,Jr,Or=Kt(s,zt),Pn=Or.text.length;function Fr(Rn,Tn){return eo(e,gt(zt,Rn),"div",Or,Tn)}function In(Rn,Tn,Kr){var jn=to(e,Or,null,Rn),Gn=Tn=="ltr"==(Kr=="after")?"left":"right";return Fr(Kr=="after"?jn.begin:jn.end-(/\s/.test(Or.text.charAt(jn.end-1))?2:1),Gn)[Gn]}var $n=dn(Or,s.direction);return function(Rn,Tn,Kr,jn){if(!Rn)return jn(Tn,Kr,"ltr",0);for(var Gn=!1,On=0;On<Rn.length;++On){var jr=Rn[On];(jr.from<Kr&&jr.to>Tn||Tn==Kr&&jr.to==Tn)&&(jn(Math.max(jr.from,Tn),Math.min(jr.to,Kr),jr.level==1?"rtl":"ltr",On),Gn=!0)}Gn||jn(Tn,Kr,"ltr")}($n,er||0,Yt??Pn,function(Rn,Tn,Kr,jn){var Gn=Kr=="ltr",On=Fr(Rn,Gn?"left":"right"),jr=Fr(Tn-1,Gn?"right":"left"),Vn=er==null&&Rn==0,bn=Yt==null&&Tn==Pn,bi=jn==0,Ci=!$n||jn==$n.length-1;if(jr.top-On.top<=3){var ki=(ee?bn:Vn)&&Ci,Ai=(ee?Vn:bn)&&bi?F:(Gn?On:jr).left,ai=ki?Q:(Gn?jr:On).right;we(Ai,On.top,ai-Ai,On.bottom)}else{var Ni,Zi,lo,Vo;Gn?(Ni=ee&&Vn&&bi?F:On.left,Zi=ee?Q:In(Rn,Kr,"before"),lo=ee?F:In(Tn,Kr,"after"),Vo=ee&&bn&&Ci?Q:jr.right):(Ni=ee?In(Rn,Kr,"before"):F,Zi=!ee&&Vn&&bi?Q:On.right,lo=!ee&&bn&&Ci?F:jr.left,Vo=ee?In(Tn,Kr,"after"):Q),we(Ni,On.top,Zi-Ni,On.bottom),On.bottom<jr.top&&we(F,On.bottom,null,jr.top),we(lo,jr.top,Vo-lo,jr.bottom)}(!Xt||Ti(On,Xt)<0)&&(Xt=On),Ti(jr,Xt)<0&&(Xt=jr),(!Jr||Ti(On,Jr)<0)&&(Jr=On),Ti(jr,Jr)<0&&(Jr=jr)}),{start:Xt,end:Jr}}var tt=t.from(),Xe=t.to();if(tt.line==Xe.line)Ce(tt.line,tt.ch,Xe.ch);else{var bt=Kt(s,tt.line),ot=Kt(s,Xe.line),vt=Re(bt)==Re(ot),Mt=Ce(tt.line,tt.ch,vt?bt.text.length+1:null).end,Gt=Ce(Xe.line,vt?0:null,Xe.ch).start;vt&&(Mt.top<Gt.top-2?(we(Mt.right,Mt.top,null,Mt.bottom),we(F,Gt.top,Gt.left,Gt.bottom)):we(Mt.right,Mt.top,Gt.left-Mt.right,Mt.bottom)),Mt.bottom<Gt.top&&we(F,Mt.bottom,null,Gt.top)}o.appendChild(y)}function po(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var o=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(o=!o)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function bo(e){e.state.focused||(e.display.input.focus(),rt(e))}function Ne(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,ut(e))},100)}function rt(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(br(e,"focus",e,t),e.state.focused=!0,ft(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),ue&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),po(e))}function ut(e,t){e.state.delayingBlurEvent||(e.state.focused&&(br(e,"blur",e,t),e.state.focused=!1,D(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Wt(e){for(var t=e.display,o=t.lineDiv.offsetTop,i=0;i<t.view.length;i++){var s=t.view[i],y=e.options.lineWrapping,O=void 0,F=0;if(!s.hidden){if(C&&M<8){var Q=s.node.offsetTop+s.node.offsetHeight;O=Q-o,o=Q}else{var ee=s.node.getBoundingClientRect();O=ee.bottom-ee.top,!y&&s.text.firstChild&&(F=s.text.firstChild.getBoundingClientRect().right-ee.left-1)}var we=s.line.height-O;if((we>.005||we<-.005)&&(Ue(s.line,O),xt(s.line),s.rest))for(var Ce=0;Ce<s.rest.length;Ce++)xt(s.rest[Ce]);if(F>e.display.sizerWidth){var tt=Math.ceil(F/ro(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=s.line,e.display.maxLineChanged=!0)}}}}function xt(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var o=e.widgets[t],i=o.node.parentNode;i&&(o.height=i.offsetHeight)}}function $t(e,t,o){var i=o&&o.top!=null?Math.max(0,o.top):e.scroller.scrollTop;i=Math.floor(i-pi(e));var s=o&&o.bottom!=null?o.bottom:i+e.wrapper.clientHeight,y=it(t,i),O=it(t,s);if(o&&o.ensure){var F=o.ensure.from.line,Q=o.ensure.to.line;F<y?(y=F,O=it(t,g(Kt(t,F))+e.wrapper.clientHeight)):Math.min(Q,t.lastLine())>=O&&(y=it(t,g(Kt(t,Q))-e.wrapper.clientHeight),O=Q)}return{from:y,to:Math.max(O,y+1)}}function Zt(e,t){var o=e.display,i=qi(e.display);t.top<0&&(t.top=0);var s=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,y=ii(e),O={};t.bottom-t.top>y&&(t.bottom=t.top+y);var F=e.doc.height+Li(o),Q=t.top<i,ee=t.bottom>F-i;if(t.top<s)O.scrollTop=Q?0:t.top;else if(t.bottom>s+y){var we=Math.min(t.top,(ee?F:t.bottom)-y);we!=s&&(O.scrollTop=we)}var Ce=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft,tt=Ii(e)-(e.options.fixedGutter?o.gutters.offsetWidth:0),Xe=t.right-t.left>tt;return Xe&&(t.right=t.left+tt),t.left<10?O.scrollLeft=0:t.left<Ce?O.scrollLeft=Math.max(0,t.left-(Xe?0:10)):t.right>tt+Ce-3&&(O.scrollLeft=t.right+(Xe?0:10)-tt),O}function or(e,t){t!=null&&(Xr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function fr(e){Xr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function zr(e,t,o){t==null&&o==null||Xr(e),t!=null&&(e.curOp.scrollLeft=t),o!=null&&(e.curOp.scrollTop=o)}function Xr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,$r(e,Lo(e,t.from),Lo(e,t.to),t.margin))}function $r(e,t,o,i){var s=Zt(e,{left:Math.min(t.left,o.left),top:Math.min(t.top,o.top)-i,right:Math.max(t.right,o.right),bottom:Math.max(t.bottom,o.bottom)+i});zr(e,s.scrollLeft,s.scrollTop)}function vn(e,t){Math.abs(e.doc.scrollTop-t)<2||(U||Me(e,{top:t}),Bn(e,t,!0),U&&Me(e),u(e,100))}function Bn(e,t,o){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||o)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function wr(e,t,o,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(o?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Jt(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Yn(e){var t=e.display,o=t.gutters.offsetWidth,i=Math.round(e.doc.height+Li(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?o:0,docHeight:i,scrollHeight:i+li(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:o}}var Kn=function(e,t,o){this.cm=o;var i=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),s=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=s.tabIndex=-1,e(i),e(s),lr(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),lr(s,"scroll",function(){s.clientWidth&&t(s.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,C&&M<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Kn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,o=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var s=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+s)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=o?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var y=e.viewWidth-e.barLeft-(o?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(i==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?i:0,bottom:t?i:0}},Kn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Kn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Kn.prototype.zeroWidthHack=function(){var e=q&&!oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},Kn.prototype.enableZeroWidthBar=function(e,t,o){e.style.pointerEvents="auto",t.set(1e3,function i(){var s=e.getBoundingClientRect();(o=="vert"?document.elementFromPoint(s.right-1,(s.top+s.bottom)/2):document.elementFromPoint((s.right+s.left)/2,s.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)})},Kn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fi=function(){};function Dn(e,t){t||(t=Yn(e));var o=e.display.barWidth,i=e.display.barHeight;Mi(e,t);for(var s=0;s<4&&o!=e.display.barWidth||i!=e.display.barHeight;s++)o!=e.display.barWidth&&e.options.lineWrapping&&Wt(e),Mi(e,Yn(e)),o=e.display.barWidth,i=e.display.barHeight}function Mi(e,t){var o=e.display,i=o.scrollbars.update(t);o.sizer.style.paddingRight=(o.barWidth=i.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=i.bottom)+"px",o.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=i.bottom+"px",o.scrollbarFiller.style.width=i.right+"px"):o.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=i.bottom+"px",o.gutterFiller.style.width=t.gutterWidth+"px"):o.gutterFiller.style.display=""}fi.prototype.update=function(){return{bottom:0,right:0}},fi.prototype.setScrollLeft=function(){},fi.prototype.setScrollTop=function(){},fi.prototype.clear=function(){};var Ei={native:Kn,null:fi};function oi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ei[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),lr(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,o){o=="horizontal"?wr(e,t):vn(e,t)},e),e.display.scrollbars.addClass&&ft(e.display.wrapper,e.display.scrollbars.addClass)}var ji=0;function Fi(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ji},t=e.curOp,He?He.ops.push(t):t.ownsGroup=He={ops:[t],delayedCallbacks:[]}}function Ki(e){var t=e.curOp;t&&function(o,i){var s=o.ownsGroup;if(s)try{(function(y){var O=y.delayedCallbacks,F=0;do{for(;F<O.length;F++)O[F].call(null);for(var Q=0;Q<y.ops.length;Q++){var ee=y.ops[Q];if(ee.cursorActivityHandlers)for(;ee.cursorActivityCalled<ee.cursorActivityHandlers.length;)ee.cursorActivityHandlers[ee.cursorActivityCalled++].call(null,ee.cm)}}while(F<O.length)})(s)}finally{He=null,i(s)}}(t,function(o){for(var i=0;i<o.ops.length;i++)o.ops[i].cm.curOp=null;(function(s){for(var y=s.ops,O=0;O<y.length;O++)_o(y[O]);for(var F=0;F<y.length;F++)Po(y[F]);for(var Q=0;Q<y.length;Q++)la(y[Q]);for(var ee=0;ee<y.length;ee++)ua(y[ee]);for(var we=0;we<y.length;we++)ca(y[we])})(o)})}function _o(e){var t=e.cm,o=t.display;(function(i){var s=i.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=li(i)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=li(i)+"px",s.scrollbarsClipped=!0)})(t),e.updateMaxLine&&L(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<o.viewFrom||e.scrollToPos.to.line>=o.viewTo)||o.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new z(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Po(e){e.updatedDisplay=e.mustUpdate&&le(e.cm,e.update)}function la(e){var t=e.cm,o=t.display;e.updatedDisplay&&Wt(t),e.barMeasure=Yn(t),o.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=kn(t,o.maxLine,o.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+e.adjustWidthTo+li(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+e.adjustWidthTo-Ii(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=o.input.prepareSelection())}function ua(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&wr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var o=e.focus&&e.focus==Tt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,o),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Dn(t,e.barMeasure),e.updatedDisplay&&_t(t,e.barMeasure),e.selectionChanged&&po(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),o&&bo(e.cm)}function ca(e){var t=e.cm,o=t.display,i=t.doc;e.updatedDisplay&&ve(t,e.update),o.wheelStartX==null||e.scrollTop==null&&e.scrollLeft==null&&!e.scrollToPos||(o.wheelStartX=o.wheelStartY=null),e.scrollTop!=null&&Bn(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&wr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(Q,ee){if(!hn(Q,"scrollCursorIntoView")){var we=Q.display,Ce=we.sizer.getBoundingClientRect(),tt=null;if(ee.top+Ce.top<0?tt=!0:ee.bottom+Ce.top>(window.innerHeight||document.documentElement.clientHeight)&&(tt=!1),tt!=null&&!ie){var Xe=be("div","​",null,`position: absolute;
                         top: `+(ee.top-we.viewOffset-pi(Q.display))+`px;
                         height: `+(ee.bottom-ee.top+li(Q)+we.barHeight)+`px;
                         left: `+ee.left+"px; width: "+Math.max(2,ee.right-ee.left)+"px;");Q.display.lineSpace.appendChild(Xe),Xe.scrollIntoView(tt),Q.display.lineSpace.removeChild(Xe)}}}(t,function(Q,ee,we,Ce){var tt;Ce==null&&(Ce=0),Q.options.lineWrapping||ee!=we||(we=(ee=ee.ch?gt(ee.line,ee.sticky=="before"?ee.ch-1:ee.ch,"after"):ee).sticky=="before"?gt(ee.line,ee.ch+1,"before"):ee);for(var Xe=0;Xe<5;Xe++){var bt=!1,ot=Qr(Q,ee),vt=we&&we!=ee?Qr(Q,we):ot,Mt=Zt(Q,tt={left:Math.min(ot.left,vt.left),top:Math.min(ot.top,vt.top)-Ce,right:Math.max(ot.left,vt.left),bottom:Math.max(ot.bottom,vt.bottom)+Ce}),Gt=Q.doc.scrollTop,zt=Q.doc.scrollLeft;if(Mt.scrollTop!=null&&(vn(Q,Mt.scrollTop),Math.abs(Q.doc.scrollTop-Gt)>1&&(bt=!0)),Mt.scrollLeft!=null&&(wr(Q,Mt.scrollLeft),Math.abs(Q.doc.scrollLeft-zt)>1&&(bt=!0)),!bt)break}return tt}(t,ar(i,e.scrollToPos.from),ar(i,e.scrollToPos.to),e.scrollToPos.margin));var s=e.maybeHiddenMarkers,y=e.maybeUnhiddenMarkers;if(s)for(var O=0;O<s.length;++O)s[O].lines.length||br(s[O],"hide");if(y)for(var F=0;F<y.length;++F)y[F].lines.length&&br(y[F],"unhide");o.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&br(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Di(e,t){if(e.curOp)return t();Fi(e);try{return t()}finally{Ki(e)}}function mi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Fi(e);try{return t.apply(e,arguments)}finally{Ki(e)}}}function Oi(e){return function(){if(this.curOp)return e.apply(this,arguments);Fi(this);try{return e.apply(this,arguments)}finally{Ki(this)}}}function l(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Fi(t);try{return e.apply(this,arguments)}finally{Ki(t)}}}function u(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,mt(v,e))}function v(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var o=+new Date+e.options.workTime,i=J(e,t.highlightFrontier),s=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(y){if(i.line>=e.display.viewFrom){var O=y.styles,F=y.text.length>e.options.maxHighlightLength?Br(t.mode,i.state):null,Q=ye(e,y,i,!0);F&&(i.state=F),y.styles=Q.styles;var ee=y.styleClasses,we=Q.classes;we?y.styleClasses=we:ee&&(y.styleClasses=null);for(var Ce=!O||O.length!=y.styles.length||ee!=we&&(!ee||!we||ee.bgClass!=we.bgClass||ee.textClass!=we.textClass),tt=0;!Ce&&tt<O.length;++tt)Ce=O[tt]!=y.styles[tt];Ce&&s.push(i.line),y.stateAfter=i.save(),i.nextLine()}else y.text.length<=e.options.maxHighlightLength&&H(e,y.text,i),y.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>o)return u(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),s.length&&Di(e,function(){for(var y=0;y<s.length;y++)Xi(e,s[y],"text")})}}var z=function(e,t,o){var i=e.display;this.viewport=t,this.visible=$t(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Ii(e),this.force=o,this.dims=Ln(e),this.events=[]};function le(e,t){var o=e.display,i=e.doc;if(t.editorIsHidden)return Wi(e),!1;if(!t.force&&t.visible.from>=o.viewFrom&&t.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&go(e)==0)return!1;qt(e)&&(Wi(e),t.dims=Ln(e));var s=i.first+i.size,y=Math.max(t.visible.from-e.options.viewportMargin,i.first),O=Math.min(s,t.visible.to+e.options.viewportMargin);o.viewFrom<y&&y-o.viewFrom<20&&(y=Math.max(i.first,o.viewFrom)),o.viewTo>O&&o.viewTo-O<20&&(O=Math.min(s,o.viewTo)),Oe&&(y=Ae(e.doc,y),O=r(e.doc,O));var F=y!=o.viewFrom||O!=o.viewTo||o.lastWrapHeight!=t.wrapperHeight||o.lastWrapWidth!=t.wrapperWidth;(function(we,Ce,tt){var Xe=we.display;Xe.view.length==0||Ce>=Xe.viewTo||tt<=Xe.viewFrom?(Xe.view=Pe(we,Ce,tt),Xe.viewFrom=Ce):(Xe.viewFrom>Ce?Xe.view=Pe(we,Ce,Xe.viewFrom).concat(Xe.view):Xe.viewFrom<Ce&&(Xe.view=Xe.view.slice(Yi(we,Ce))),Xe.viewFrom=Ce,Xe.viewTo<tt?Xe.view=Xe.view.concat(Pe(we,Xe.viewTo,tt)):Xe.viewTo>tt&&(Xe.view=Xe.view.slice(0,Yi(we,tt)))),Xe.viewTo=tt})(e,y,O),o.viewOffset=g(Kt(e.doc,o.viewFrom)),e.display.mover.style.top=o.viewOffset+"px";var Q=go(e);if(!F&&Q==0&&!t.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;var ee=function(we){if(we.hasFocus())return null;var Ce=Tt();if(!Ce||!dt(we.display.lineDiv,Ce))return null;var tt={activeElt:Ce};if(window.getSelection){var Xe=window.getSelection();Xe.anchorNode&&Xe.extend&&dt(we.display.lineDiv,Xe.anchorNode)&&(tt.anchorNode=Xe.anchorNode,tt.anchorOffset=Xe.anchorOffset,tt.focusNode=Xe.focusNode,tt.focusOffset=Xe.focusOffset)}return tt}(e);return Q>4&&(o.lineDiv.style.display="none"),function(we,Ce,tt){var Xe=we.display,bt=we.options.lineNumbers,ot=Xe.lineDiv,vt=ot.firstChild;function Mt(Or){var Pn=Or.nextSibling;return ue&&q&&we.display.currentWheelTarget==Or?Or.style.display="none":Or.parentNode.removeChild(Or),Pn}for(var Gt=Xe.view,zt=Xe.viewFrom,er=0;er<Gt.length;er++){var Yt=Gt[er];if(!Yt.hidden)if(Yt.node&&Yt.node.parentNode==ot){for(;vt!=Yt.node;)vt=Mt(vt);var Xt=bt&&Ce!=null&&Ce<=zt&&Yt.lineNumber;Yt.changes&&(Ft(Yt.changes,"gutter")>-1&&(Xt=!1),St(we,Yt,zt,tt)),Xt&&(se(Yt.lineNumber),Yt.lineNumber.appendChild(document.createTextNode(ur(we.options,zt)))),vt=Yt.node.nextSibling}else{var Jr=zn(we,Yt,zt,tt);ot.insertBefore(Jr,vt)}zt+=Yt.size}for(;vt;)vt=Mt(vt)}(e,o.updateLineNumbers,t.dims),Q>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,function(we){if(we&&we.activeElt&&we.activeElt!=Tt()&&(we.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(we.activeElt.nodeName)&&we.anchorNode&&dt(document.body,we.anchorNode)&&dt(document.body,we.focusNode))){var Ce=window.getSelection(),tt=document.createRange();tt.setEnd(we.anchorNode,we.anchorOffset),tt.collapse(!1),Ce.removeAllRanges(),Ce.addRange(tt),Ce.extend(we.focusNode,we.focusOffset)}}(ee),se(o.cursorDiv),se(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,F&&(o.lastWrapHeight=t.wrapperHeight,o.lastWrapWidth=t.wrapperWidth,u(e,400)),o.updateLineNumbers=null,!0}function ve(e,t){for(var o=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Ii(e))i&&(t.visible=$t(e.display,e.doc,o));else if(o&&o.top!=null&&(o={top:Math.min(e.doc.height+Li(e.display)-ii(e),o.top)}),t.visible=$t(e.display,e.doc,o),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!le(e,t))break;Wt(e);var s=Yn(e);io(e),Dn(e,s),_t(e,s),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Me(e,t){var o=new z(e,t);if(le(e,o)){Wt(e),ve(e,o);var i=Yn(e);io(e),Dn(e,i),_t(e,i),o.finish()}}function ht(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function _t(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+li(e)+"px"}function Jt(e){var t=e.display,o=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=no(t)-t.scroller.scrollLeft+e.doc.scrollLeft,s=t.gutters.offsetWidth,y=i+"px",O=0;O<o.length;O++)if(!o[O].hidden){e.options.fixedGutter&&(o[O].gutter&&(o[O].gutter.style.left=y),o[O].gutterBackground&&(o[O].gutterBackground.style.left=y));var F=o[O].alignable;if(F)for(var Q=0;Q<F.length;Q++)F[Q].style.left=y}e.options.fixedGutter&&(t.gutters.style.left=i+s+"px")}}function qt(e){if(!e.options.lineNumbers)return!1;var t=e.doc,o=ur(e.options,t.first+t.size-1),i=e.display;if(o.length!=i.lineNumChars){var s=i.measure.appendChild(be("div",[be("div",o)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=s.firstChild.offsetWidth,O=s.offsetWidth-y;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(y,i.lineGutter.offsetWidth-O)+1,i.lineNumWidth=i.lineNumInnerWidth+O,i.lineNumChars=i.lineNumInnerWidth?o.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",ht(e.display),!0}return!1}function _r(e,t){for(var o=[],i=!1,s=0;s<e.length;s++){var y=e[s],O=null;if(typeof y!="string"&&(O=y.style,y=y.className),y=="CodeMirror-linenumbers"){if(!t)continue;i=!0}o.push({className:y,style:O})}return t&&!i&&o.push({className:"CodeMirror-linenumbers",style:null}),o}function Hr(e){var t=e.gutters,o=e.gutterSpecs;se(t),e.lineGutter=null;for(var i=0;i<o.length;++i){var s=o[i],y=s.className,O=s.style,F=t.appendChild(be("div",null,"CodeMirror-gutter "+y));O&&(F.style.cssText=O),y=="CodeMirror-linenumbers"&&(e.lineGutter=F,F.style.width=(e.lineNumWidth||1)+"px")}t.style.display=o.length?"":"none",ht(e)}function Nr(e){Hr(e.display),Si(e),Jt(e)}function yn(e,t,o,i){var s=this;this.input=o,s.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),s.scrollbarFiller.setAttribute("cm-not-content","true"),s.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),s.gutterFiller.setAttribute("cm-not-content","true"),s.lineDiv=$e("div",null,"CodeMirror-code"),s.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),s.cursorDiv=be("div",null,"CodeMirror-cursors"),s.measure=be("div",null,"CodeMirror-measure"),s.lineMeasure=be("div",null,"CodeMirror-measure"),s.lineSpace=$e("div",[s.measure,s.lineMeasure,s.selectionDiv,s.cursorDiv,s.lineDiv],null,"position: relative; outline: none");var y=$e("div",[s.lineSpace],"CodeMirror-lines");s.mover=be("div",[y],null,"position: relative"),s.sizer=be("div",[s.mover],"CodeMirror-sizer"),s.sizerWidth=null,s.heightForcer=be("div",null,null,"position: absolute; height: 50px; width: 1px;"),s.gutters=be("div",null,"CodeMirror-gutters"),s.lineGutter=null,s.scroller=be("div",[s.sizer,s.heightForcer,s.gutters],"CodeMirror-scroll"),s.scroller.setAttribute("tabIndex","-1"),s.wrapper=be("div",[s.scrollbarFiller,s.gutterFiller,s.scroller],"CodeMirror"),C&&M<8&&(s.gutters.style.zIndex=-1,s.scroller.style.paddingRight=0),ue||U&&P||(s.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(s.wrapper):e(s.wrapper)),s.viewFrom=s.viewTo=t.first,s.reportedViewFrom=s.reportedViewTo=t.first,s.view=[],s.renderedView=null,s.externalMeasured=null,s.viewOffset=0,s.lastWrapHeight=s.lastWrapWidth=0,s.updateLineNumbers=null,s.nativeBarWidth=s.barHeight=s.barWidth=0,s.scrollbarsClipped=!1,s.lineNumWidth=s.lineNumInnerWidth=s.lineNumChars=null,s.alignWidgets=!1,s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.maxLine=null,s.maxLineLength=0,s.maxLineChanged=!1,s.wheelDX=s.wheelDY=s.wheelStartX=s.wheelStartY=null,s.shift=!1,s.selForContextMenu=null,s.activeTouch=null,s.gutterSpecs=_r(i.gutters,i.lineNumbers),Hr(s),o.init(s)}z.prototype.signal=function(e,t){Sr(e,t)&&this.events.push(arguments)},z.prototype.finish=function(){for(var e=0;e<this.events.length;e++)br.apply(null,this.events[e])};var qn=0,En=null;function di(e){var t=e.wheelDeltaX,o=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),o==null&&e.detail&&e.axis==e.VERTICAL_AXIS?o=e.detail:o==null&&(o=e.wheelDelta),{x:t,y:o}}function $i(e){var t=di(e);return t.x*=En,t.y*=En,t}function Oo(e,t){var o=di(t),i=o.x,s=o.y,y=e.display,O=y.scroller,F=O.scrollWidth>O.clientWidth,Q=O.scrollHeight>O.clientHeight;if(i&&F||s&&Q){if(s&&q&&ue){e:for(var ee=t.target,we=y.view;ee!=O;ee=ee.parentNode)for(var Ce=0;Ce<we.length;Ce++)if(we[Ce].node==ee){e.display.currentWheelTarget=ee;break e}}if(i&&!U&&!ce&&En!=null)return s&&Q&&vn(e,Math.max(0,O.scrollTop+s*En)),wr(e,Math.max(0,O.scrollLeft+i*En)),(!s||s&&Q)&&kr(t),void(y.wheelStartX=null);if(s&&En!=null){var tt=s*En,Xe=e.doc.scrollTop,bt=Xe+y.wrapper.clientHeight;tt<0?Xe=Math.max(0,Xe+tt-50):bt=Math.min(e.doc.height,bt+tt+50),Me(e,{top:Xe,bottom:bt})}qn<20&&(y.wheelStartX==null?(y.wheelStartX=O.scrollLeft,y.wheelStartY=O.scrollTop,y.wheelDX=i,y.wheelDY=s,setTimeout(function(){if(y.wheelStartX!=null){var ot=O.scrollLeft-y.wheelStartX,vt=O.scrollTop-y.wheelStartY,Mt=vt&&y.wheelDY&&vt/y.wheelDY||ot&&y.wheelDX&&ot/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Mt&&(En=(En*qn+Mt)/(qn+1),++qn)}},200)):(y.wheelDX+=i,y.wheelDY+=s))}}C?En=-.53:U?En=15:Y?En=-.7:K&&(En=-1/3);var Gi=function(e,t){this.ranges=e,this.primIndex=t};Gi.prototype.primary=function(){return this.ranges[this.primIndex]},Gi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var o=this.ranges[t],i=e.ranges[t];if(!Ut(o.anchor,i.anchor)||!Ut(o.head,i.head))return!1}return!0},Gi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Mn(Gr(this.ranges[t].anchor),Gr(this.ranges[t].head));return new Gi(e,this.primIndex)},Gi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Gi.prototype.contains=function(e,t){t||(t=e);for(var o=0;o<this.ranges.length;o++){var i=this.ranges[o];if(Ht(t,i.from())>=0&&Ht(e,i.to())<=0)return o}return-1};var Mn=function(e,t){this.anchor=e,this.head=t};function ao(e,t,o){var i=e&&e.options.selectionsMayTouch,s=t[o];t.sort(function(tt,Xe){return Ht(tt.from(),Xe.from())}),o=Ft(t,s);for(var y=1;y<t.length;y++){var O=t[y],F=t[y-1],Q=Ht(F.to(),O.from());if(i&&!O.empty()?Q>0:Q>=0){var ee=Un(F.from(),O.from()),we=Ur(F.to(),O.to()),Ce=F.empty()?O.from()==O.head:F.from()==F.head;y<=o&&--o,t.splice(--y,2,new Mn(Ce?we:ee,Ce?ee:we))}}return new Gi(t,o)}function xo(e,t){return new Gi([new Mn(e,t||e)],0)}function So(e){return e.text?gt(e.from.line+e.text.length-1,lt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function qa(e,t){if(Ht(e,t.from)<0)return e;if(Ht(e,t.to)<=0)return So(t);var o=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=So(t).ch-t.to.ch),gt(o,i)}function Aa(e,t){for(var o=[],i=0;i<e.sel.ranges.length;i++){var s=e.sel.ranges[i];o.push(new Mn(qa(s.anchor,t),qa(s.head,t)))}return ao(e.cm,o,e.sel.primIndex)}function Va(e,t,o){return e.line==t.line?gt(o.line,e.ch-t.ch+o.ch):gt(o.line+(e.line-t.line),e.ch)}function Na(e){e.doc.mode=cr(e.options,e.doc.modeOption),zo(e)}function zo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,u(e,100),e.state.modeGen++,e.curOp&&Si(e)}function Wa(e,t){return t.from.ch==0&&t.to.ch==0&&lt(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function La(e,t,o,i){function s(Gt){return o?o[Gt]:null}function y(Gt,zt,er){(function(Yt,Xt,Jr,Or){Yt.text=Xt,Yt.stateAfter&&(Yt.stateAfter=null),Yt.styles&&(Yt.styles=null),Yt.order!=null&&(Yt.order=null),rr(Yt),ir(Yt,Jr);var Pn=Or?Or(Yt):1;Pn!=Yt.height&&Ue(Yt,Pn)})(Gt,zt,er,i),Et(Gt,"change",Gt,t)}function O(Gt,zt){for(var er=[],Yt=Gt;Yt<zt;++Yt)er.push(new I(ee[Yt],s(Yt),i));return er}var F=t.from,Q=t.to,ee=t.text,we=Kt(e,F.line),Ce=Kt(e,Q.line),tt=lt(ee),Xe=s(ee.length-1),bt=Q.line-F.line;if(t.full)e.insert(0,O(0,ee.length)),e.remove(ee.length,e.size-ee.length);else if(Wa(e,t)){var ot=O(0,ee.length-1);y(Ce,Ce.text,Xe),bt&&e.remove(F.line,bt),ot.length&&e.insert(F.line,ot)}else if(we==Ce)if(ee.length==1)y(we,we.text.slice(0,F.ch)+tt+we.text.slice(Q.ch),Xe);else{var vt=O(1,ee.length-1);vt.push(new I(tt+we.text.slice(Q.ch),Xe,i)),y(we,we.text.slice(0,F.ch)+ee[0],s(0)),e.insert(F.line+1,vt)}else if(ee.length==1)y(we,we.text.slice(0,F.ch)+ee[0]+Ce.text.slice(Q.ch),s(0)),e.remove(F.line+1,bt);else{y(we,we.text.slice(0,F.ch)+ee[0],s(0)),y(Ce,tt+Ce.text.slice(Q.ch),Xe);var Mt=O(1,ee.length-1);bt>1&&e.remove(F.line+1,bt-1),e.insert(F.line+1,Mt)}Et(e,"change",e,t)}function To(e,t,o){(function i(s,y,O){if(s.linked)for(var F=0;F<s.linked.length;++F){var Q=s.linked[F];if(Q.doc!=y){var ee=O&&Q.sharedHist;o&&!ee||(t(Q.doc,ee),i(Q.doc,s,ee))}}})(e,null,!0)}function za(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,_i(e),Na(e),Ya(e),e.options.lineWrapping||L(e),e.options.mode=t.modeOption,Si(e)}function Ya(e){(e.doc.direction=="rtl"?ft:D)(e.display.lineDiv,"CodeMirror-rtl")}function pa(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Ia(e,t){var o={from:Gr(t.from),to:So(t),text:pn(e,t.from,t.to)};return Ja(e,o,t.from.line,t.to.line+1),To(e,function(i){return Ja(i,o,t.from.line,t.to.line+1)},!0),o}function Xa(e){for(;e.length&&lt(e).ranges;)e.pop()}function $a(e,t,o,i){var s=e.history;s.undone.length=0;var y,O,F=+new Date;if((s.lastOp==i||s.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&s.lastModTime>F-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(y=function(ee,we){return we?(Xa(ee.done),lt(ee.done)):ee.done.length&&!lt(ee.done).ranges?lt(ee.done):ee.done.length>1&&!ee.done[ee.done.length-2].ranges?(ee.done.pop(),lt(ee.done)):void 0}(s,s.lastOp==i)))O=lt(y.changes),Ht(t.from,t.to)==0&&Ht(t.from,O.to)==0?O.to=So(t):y.changes.push(Ia(e,t));else{var Q=lt(s.done);for(Q&&Q.ranges||ha(e.sel,s.done),y={changes:[Ia(e,t)],generation:s.generation},s.done.push(y);s.done.length>s.undoDepth;)s.done.shift(),s.done[0].ranges||s.done.shift()}s.done.push(o),s.generation=++s.maxGeneration,s.lastModTime=s.lastSelTime=F,s.lastOp=s.lastSelOp=i,s.lastOrigin=s.lastSelOrigin=t.origin,O||br(e,"historyAdded")}function Ys(e,t,o,i){var s=e.history,y=i&&i.origin;o==s.lastSelOp||y&&s.lastSelOrigin==y&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==y||function(O,F,Q,ee){var we=F.charAt(0);return we=="*"||we=="+"&&Q.ranges.length==ee.ranges.length&&Q.somethingSelected()==ee.somethingSelected()&&new Date-O.history.lastSelTime<=(O.cm?O.cm.options.historyEventDelay:500)}(e,y,lt(s.done),t))?s.done[s.done.length-1]=t:ha(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=y,s.lastSelOp=o,i&&i.clearRedo!==!1&&Xa(s.undone)}function ha(e,t){var o=lt(t);o&&o.ranges&&o.equals(e)||t.push(e)}function Ja(e,t,o,i){var s=t["spans_"+e.id],y=0;e.iter(Math.max(e.first,o),Math.min(e.first+e.size,i),function(O){O.markedSpans&&((s||(s=t["spans_"+e.id]={}))[y]=O.markedSpans),++y})}function Xs(e){if(!e)return null;for(var t,o=0;o<e.length;++o)e[o].marker.explicitlyCleared?t||(t=e.slice(0,o)):t&&t.push(e[o]);return t?t.length?t:null:e}function Qa(e,t){var o=function(we,Ce){var tt=Ce["spans_"+we.id];if(!tt)return null;for(var Xe=[],bt=0;bt<Ce.text.length;++bt)Xe.push(Xs(tt[bt]));return Xe}(e,t),i=kt(e,t);if(!o)return i;if(!i)return o;for(var s=0;s<o.length;++s){var y=o[s],O=i[s];if(y&&O)e:for(var F=0;F<O.length;++F){for(var Q=O[F],ee=0;ee<y.length;++ee)if(y[ee].marker==Q.marker)continue e;y.push(Q)}else O&&(o[s]=O)}return o}function ko(e,t,o){for(var i=[],s=0;s<e.length;++s){var y=e[s];if(y.ranges)i.push(o?Gi.prototype.deepCopy.call(y):y);else{var O=y.changes,F=[];i.push({changes:F});for(var Q=0;Q<O.length;++Q){var ee=O[Q],we=void 0;if(F.push({from:ee.from,to:ee.to,text:ee.text}),t)for(var Ce in ee)(we=Ce.match(/^spans_(\d+)$/))&&Ft(t,Number(we[1]))>-1&&(lt(F)[Ce]=ee[Ce],delete ee[Ce])}}}return i}function wa(e,t,o,i){if(i){var s=e.anchor;if(o){var y=Ht(t,s)<0;y!=Ht(o,s)<0?(s=t,t=o):y!=Ht(t,o)<0&&(t=o)}return new Mn(s,t)}return new Mn(o||t,t)}function fa(e,t,o,i,s){s==null&&(s=e.cm&&(e.cm.display.shift||e.extend)),Pi(e,new Gi([wa(e.sel.primary(),t,o,s)],0),i)}function Ka(e,t,o){for(var i=[],s=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)i[y]=wa(e.sel.ranges[y],t[y],null,s);Pi(e,ao(e.cm,i,e.sel.primIndex),o)}function _a(e,t,o,i){var s=e.sel.ranges.slice(0);s[t]=o,Pi(e,ao(e.cm,s,e.sel.primIndex),i)}function Za(e,t,o,i){Pi(e,xo(t,o),i)}function es(e,t,o){var i=e.history.done,s=lt(i);s&&s.ranges?(i[i.length-1]=t,da(e,t,o)):Pi(e,t,o)}function Pi(e,t,o){da(e,t,o),Ys(e,e.sel,e.cm?e.cm.curOp.id:NaN,o)}function da(e,t,o){(Sr(e,"beforeSelectionChange")||e.cm&&Sr(e.cm,"beforeSelectionChange"))&&(t=function(s,y,O){var F={ranges:y.ranges,update:function(Q){this.ranges=[];for(var ee=0;ee<Q.length;ee++)this.ranges[ee]=new Mn(ar(s,Q[ee].anchor),ar(s,Q[ee].head))},origin:O&&O.origin};return br(s,"beforeSelectionChange",s,F),s.cm&&br(s.cm,"beforeSelectionChange",s.cm,F),F.ranges!=y.ranges?ao(s.cm,F.ranges,F.ranges.length-1):y}(e,t,o));var i=o&&o.bias||(Ht(t.primary().head,e.sel.primary().head)<0?-1:1);ts(e,ns(e,t,i,!0)),o&&o.scroll===!1||!e.cm||fr(e.cm)}function ts(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,sn(e.cm)),Et(e,"cursorActivity",e))}function rs(e){ts(e,ns(e,e.sel,null,!1))}function ns(e,t,o,i){for(var s,y=0;y<t.ranges.length;y++){var O=t.ranges[y],F=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],Q=ga(e,O.anchor,F&&F.anchor,o,i),ee=ga(e,O.head,F&&F.head,o,i);(s||Q!=O.anchor||ee!=O.head)&&(s||(s=t.ranges.slice(0,y)),s[y]=new Mn(Q,ee))}return s?ao(e.cm,s,t.primIndex):t}function Mo(e,t,o,i,s){var y=Kt(e,t.line);if(y.markedSpans)for(var O=0;O<y.markedSpans.length;++O){var F=y.markedSpans[O],Q=F.marker,ee="selectLeft"in Q?!Q.selectLeft:Q.inclusiveLeft,we="selectRight"in Q?!Q.selectRight:Q.inclusiveRight;if((F.from==null||(ee?F.from<=t.ch:F.from<t.ch))&&(F.to==null||(we?F.to>=t.ch:F.to>t.ch))){if(s&&(br(Q,"beforeCursorEnter"),Q.explicitlyCleared)){if(y.markedSpans){--O;continue}break}if(!Q.atomic)continue;if(o){var Ce=Q.find(i<0?1:-1),tt=void 0;if((i<0?we:ee)&&(Ce=is(e,Ce,-i,Ce&&Ce.line==t.line?y:null)),Ce&&Ce.line==t.line&&(tt=Ht(Ce,o))&&(i<0?tt<0:tt>0))return Mo(e,Ce,t,i,s)}var Xe=Q.find(i<0?-1:1);return(i<0?ee:we)&&(Xe=is(e,Xe,i,Xe.line==t.line?y:null)),Xe?Mo(e,Xe,t,i,s):null}}return t}function ga(e,t,o,i,s){var y=i||1,O=Mo(e,t,o,y,s)||!s&&Mo(e,t,o,y,!0)||Mo(e,t,o,-y,s)||!s&&Mo(e,t,o,-y,!0);return O||(e.cantEdit=!0,gt(e.first,0))}function is(e,t,o,i){return o<0&&t.ch==0?t.line>e.first?ar(e,gt(t.line-1)):null:o>0&&t.ch==(i||Kt(e,t.line)).text.length?t.line<e.first+e.size-1?gt(t.line+1,0):null:new gt(t.line,t.ch+o)}function os(e){e.setSelection(gt(e.firstLine(),0),gt(e.lastLine()),X)}function as(e,t,o){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return o&&(i.update=function(s,y,O,F){s&&(i.from=ar(e,s)),y&&(i.to=ar(e,y)),O&&(i.text=O),F!==void 0&&(i.origin=F)}),br(e,"beforeChange",e,i),e.cm&&br(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function jo(e,t,o){if(e.cm){if(!e.cm.curOp)return mi(e.cm,jo)(e,t,o);if(e.cm.state.suppressEdits)return}if(!(Sr(e,"beforeChange")||e.cm&&Sr(e.cm,"beforeChange"))||(t=as(e,t,!0))){var i=ae&&!o&&function(y,O,F){var Q=null;if(y.iter(O.line,F.line+1,function(Gt){if(Gt.markedSpans)for(var zt=0;zt<Gt.markedSpans.length;++zt){var er=Gt.markedSpans[zt].marker;!er.readOnly||Q&&Ft(Q,er)!=-1||(Q||(Q=[])).push(er)}}),!Q)return null;for(var ee=[{from:O,to:F}],we=0;we<Q.length;++we)for(var Ce=Q[we],tt=Ce.find(0),Xe=0;Xe<ee.length;++Xe){var bt=ee[Xe];if(!(Ht(bt.to,tt.from)<0||Ht(bt.from,tt.to)>0)){var ot=[Xe,1],vt=Ht(bt.from,tt.from),Mt=Ht(bt.to,tt.to);(vt<0||!Ce.inclusiveLeft&&!vt)&&ot.push({from:bt.from,to:tt.from}),(Mt>0||!Ce.inclusiveRight&&!Mt)&&ot.push({from:tt.to,to:bt.to}),ee.splice.apply(ee,ot),Xe+=ot.length-3}}return ee}(e,t.from,t.to);if(i)for(var s=i.length-1;s>=0;--s)ss(e,{from:i[s].from,to:i[s].to,text:s?[""]:t.text,origin:t.origin});else ss(e,t)}}function ss(e,t){if(t.text.length!=1||t.text[0]!=""||Ht(t.from,t.to)!=0){var o=Aa(e,t);$a(e,t,o,e.cm?e.cm.curOp.id:NaN),Yo(e,t,o,kt(e,t));var i=[];To(e,function(s,y){y||Ft(i,s.history)!=-1||(ps(s.history,t),i.push(s.history)),Yo(s,t,null,kt(s,t))})}}function ma(e,t,o){var i=e.cm&&e.cm.state.suppressEdits;if(!i||o){for(var s,y=e.history,O=e.sel,F=t=="undo"?y.done:y.undone,Q=t=="undo"?y.undone:y.done,ee=0;ee<F.length&&(s=F[ee],o?!s.ranges||s.equals(e.sel):s.ranges);ee++);if(ee!=F.length){for(y.lastOrigin=y.lastSelOrigin=null;;){if(!(s=F.pop()).ranges){if(i)return void F.push(s);break}if(ha(s,Q),o&&!s.equals(e.sel))return void Pi(e,s,{clearRedo:!1});O=s}var we=[];ha(O,Q),Q.push({changes:we,generation:y.generation}),y.generation=s.generation||++y.maxGeneration;for(var Ce=Sr(e,"beforeChange")||e.cm&&Sr(e.cm,"beforeChange"),tt=function(ot){var vt=s.changes[ot];if(vt.origin=t,Ce&&!as(e,vt,!1))return F.length=0,{};we.push(Ia(e,vt));var Mt=ot?Aa(e,vt):lt(F);Yo(e,vt,Mt,Qa(e,vt)),!ot&&e.cm&&e.cm.scrollIntoView({from:vt.from,to:So(vt)});var Gt=[];To(e,function(zt,er){er||Ft(Gt,zt.history)!=-1||(ps(zt.history,vt),Gt.push(zt.history)),Yo(zt,vt,null,Qa(zt,vt))})},Xe=s.changes.length-1;Xe>=0;--Xe){var bt=tt(Xe);if(bt)return bt.v}}}}function ls(e,t){if(t!=0&&(e.first+=t,e.sel=new Gi(Ze(e.sel.ranges,function(s){return new Mn(gt(s.anchor.line+t,s.anchor.ch),gt(s.head.line+t,s.head.ch))}),e.sel.primIndex),e.cm)){Si(e.cm,e.first,e.first-t,t);for(var o=e.cm.display,i=o.viewFrom;i<o.viewTo;i++)Xi(e.cm,i,"gutter")}}function Yo(e,t,o,i){if(e.cm&&!e.cm.curOp)return mi(e.cm,Yo)(e,t,o,i);if(t.to.line<e.first)ls(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var s=t.text.length-1-(e.first-t.from.line);ls(e,s),t={from:gt(e.first,0),to:gt(t.to.line+s,t.to.ch),text:[lt(t.text)],origin:t.origin}}var y=e.lastLine();t.to.line>y&&(t={from:t.from,to:gt(y,Kt(e,y).text.length),text:[t.text[0]],origin:t.origin}),t.removed=pn(e,t.from,t.to),o||(o=Aa(e,t)),e.cm?function(O,F,Q){var ee=O.doc,we=O.display,Ce=F.from,tt=F.to,Xe=!1,bt=Ce.line;O.options.lineWrapping||(bt=pt(Re(Kt(ee,Ce.line))),ee.iter(bt,tt.line+1,function(zt){if(zt==we.maxLine)return Xe=!0,!0})),ee.sel.contains(F.from,F.to)>-1&&sn(O),La(ee,F,Q,Ri(O)),O.options.lineWrapping||(ee.iter(bt,Ce.line+F.text.length,function(zt){var er=N(zt);er>we.maxLineLength&&(we.maxLine=zt,we.maxLineLength=er,we.maxLineChanged=!0,Xe=!1)}),Xe&&(O.curOp.updateMaxLine=!0)),function(zt,er){if(zt.modeFrontier=Math.min(zt.modeFrontier,er),!(zt.highlightFrontier<er-10)){for(var Yt=zt.first,Xt=er-1;Xt>Yt;Xt--){var Jr=Kt(zt,Xt).stateAfter;if(Jr&&(!(Jr instanceof Fn)||Xt+Jr.lookAhead<er)){Yt=Xt+1;break}}zt.highlightFrontier=Math.min(zt.highlightFrontier,Yt)}}(ee,Ce.line),u(O,400);var ot=F.text.length-(tt.line-Ce.line)-1;F.full?Si(O):Ce.line!=tt.line||F.text.length!=1||Wa(O.doc,F)?Si(O,Ce.line,tt.line+1,ot):Xi(O,Ce.line,"text");var vt=Sr(O,"changes"),Mt=Sr(O,"change");if(Mt||vt){var Gt={from:Ce,to:tt,text:F.text,removed:F.removed,origin:F.origin};Mt&&Et(O,"change",O,Gt),vt&&(O.curOp.changeObjs||(O.curOp.changeObjs=[])).push(Gt)}O.display.selForContextMenu=null}(e.cm,t,i):La(e,t,i),da(e,o,X),e.cantEdit&&ga(e,gt(e.firstLine(),0))&&(e.cantEdit=!1)}}function Fo(e,t,o,i,s){var y;i||(i=o),Ht(i,o)<0&&(o=(y=[i,o])[0],i=y[1]),typeof t=="string"&&(t=e.splitLines(t)),jo(e,{from:o,to:i,text:t,origin:s})}function us(e,t,o,i){o<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function cs(e,t,o,i){for(var s=0;s<e.length;++s){var y=e[s],O=!0;if(y.ranges){y.copied||((y=e[s]=y.deepCopy()).copied=!0);for(var F=0;F<y.ranges.length;F++)us(y.ranges[F].anchor,t,o,i),us(y.ranges[F].head,t,o,i)}else{for(var Q=0;Q<y.changes.length;++Q){var ee=y.changes[Q];if(o<ee.from.line)ee.from=gt(ee.from.line+i,ee.from.ch),ee.to=gt(ee.to.line+i,ee.to.ch);else if(t<=ee.to.line){O=!1;break}}O||(e.splice(0,s+1),s=0)}}}function ps(e,t){var o=t.from.line,i=t.to.line,s=t.text.length-(i-o)-1;cs(e.done,o,i,s),cs(e.undone,o,i,s)}function Xo(e,t,o,i){var s=t,y=t;return typeof t=="number"?y=Kt(e,ei(e,t)):s=pt(t),s==null?null:(i(y,s)&&e.cm&&Xi(e.cm,s,o),y)}function $o(e){this.lines=e,this.parent=null;for(var t=0,o=0;o<e.length;++o)e[o].parent=this,t+=e[o].height;this.height=t}function Jo(e){this.children=e;for(var t=0,o=0,i=0;i<e.length;++i){var s=e[i];t+=s.chunkSize(),o+=s.height,s.parent=this}this.size=t,this.height=o,this.parent=null}Mn.prototype.from=function(){return Un(this.anchor,this.head)},Mn.prototype.to=function(){return Ur(this.anchor,this.head)},Mn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},$o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var o=e,i=e+t;o<i;++o){var s=this.lines[o];this.height-=s.height,$(s),Et(s,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,o){this.height+=o,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,o){for(var i=e+t;e<i;++e)if(o(this.lines[e]))return!0}},Jo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var o=0;o<this.children.length;++o){var i=this.children[o],s=i.chunkSize();if(e<s){var y=Math.min(t,s-e),O=i.height;if(i.removeInner(e,y),this.height-=O-i.height,s==y&&(this.children.splice(o--,1),i.parent=null),(t-=y)==0)break;e=0}else e-=s}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof $o))){var F=[];this.collapse(F),this.children=[new $o(F)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,o){this.size+=t.length,this.height+=o;for(var i=0;i<this.children.length;++i){var s=this.children[i],y=s.chunkSize();if(e<=y){if(s.insertInner(e,t,o),s.lines&&s.lines.length>50){for(var O=s.lines.length%25+25,F=O;F<s.lines.length;){var Q=new $o(s.lines.slice(F,F+=25));s.height-=Q.height,this.children.splice(++i,0,Q),Q.parent=this}s.lines=s.lines.slice(0,O),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Jo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var o=Ft(e.parent.children,e);e.parent.children.splice(o+1,0,t)}else{var i=new Jo(e.children);i.parent=e,e.children=[i,t],e=i}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,o){for(var i=0;i<this.children.length;++i){var s=this.children[i],y=s.chunkSize();if(e<y){var O=Math.min(t,y-e);if(s.iterN(e,O,o))return!0;if((t-=O)==0)break;e=0}else e-=y}}};var Qo=function(e,t,o){if(o)for(var i in o)o.hasOwnProperty(i)&&(this[i]=o[i]);this.doc=e,this.node=t};function hs(e,t,o){g(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&or(e,o)}Qo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,o=this.line,i=pt(o);if(i!=null&&t){for(var s=0;s<t.length;++s)t[s]==this&&t.splice(s--,1);t.length||(o.widgets=null);var y=nn(this);Ue(o,Math.max(0,o.height-y)),e&&(Di(e,function(){hs(e,o,-y),Xi(e,i,"widget")}),Et(e,"lineWidgetCleared",e,this,i))}},Qo.prototype.changed=function(){var e=this,t=this.height,o=this.doc.cm,i=this.line;this.height=null;var s=nn(this)-t;s&&(a(this.doc,i)||Ue(i,i.height+s),o&&Di(o,function(){o.curOp.forceUpdate=!0,hs(o,i,s),Et(o,"lineWidgetChanged",o,e,pt(i))}))},Yr(Qo);var fs=0,Co=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++fs};function Bo(e,t,o,i,s){if(i&&i.shared)return function(Ce,tt,Xe,bt,ot){(bt=yt(bt)).shared=!1;var vt=[Bo(Ce,tt,Xe,bt,ot)],Mt=vt[0],Gt=bt.widgetNode;return To(Ce,function(zt){Gt&&(bt.widgetNode=Gt.cloneNode(!0)),vt.push(Bo(zt,ar(zt,tt),ar(zt,Xe),bt,ot));for(var er=0;er<zt.linked.length;++er)if(zt.linked[er].isParent)return;Mt=lt(vt)}),new Ko(vt,Mt)}(e,t,o,i,s);if(e.cm&&!e.cm.curOp)return mi(e.cm,Bo)(e,t,o,i,s);var y=new Co(e,s),O=Ht(t,o);if(i&&yt(i,y,!1),O>0||O==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=$e("span",[y.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(An(e,t.line,t,o,y)||t.line!=o.line&&An(e,o.line,t,o,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oe=!0}y.addToHistory&&$a(e,{from:t,to:o,origin:"markText"},e.sel,NaN);var F,Q=t.line,ee=e.cm;if(e.iter(Q,o.line+1,function(Ce){ee&&y.collapsed&&!ee.options.lineWrapping&&Re(Ce)==ee.display.maxLine&&(F=!0),y.collapsed&&Q!=t.line&&Ue(Ce,0),function(tt,Xe){tt.markedSpans=tt.markedSpans?tt.markedSpans.concat([Xe]):[Xe],Xe.marker.attachLine(tt)}(Ce,new qe(y,Q==t.line?t.ch:null,Q==o.line?o.ch:null)),++Q}),y.collapsed&&e.iter(t.line,o.line+1,function(Ce){a(e,Ce)&&Ue(Ce,0)}),y.clearOnEnter&&lr(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(ae=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++fs,y.atomic=!0),ee){if(F&&(ee.curOp.updateMaxLine=!0),y.collapsed)Si(ee,t.line,o.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var we=t.line;we<=o.line;we++)Xi(ee,we,"text");y.atomic&&rs(ee.doc),Et(ee,"markerAdded",ee,y)}return y}Co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Fi(e),Sr(this,"clear")){var o=this.find();o&&Et(this,"clear",o.from,o.to)}for(var i=null,s=null,y=0;y<this.lines.length;++y){var O=this.lines[y],F=st(O.markedSpans,this);e&&!this.collapsed?Xi(e,pt(O),"text"):e&&(F.to!=null&&(s=pt(O)),F.from!=null&&(i=pt(O))),O.markedSpans=Ct(O.markedSpans,F),F.from==null&&this.collapsed&&!a(this.doc,O)&&e&&Ue(O,qi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var Q=0;Q<this.lines.length;++Q){var ee=Re(this.lines[Q]),we=N(ee);we>e.display.maxLineLength&&(e.display.maxLine=ee,e.display.maxLineLength=we,e.display.maxLineChanged=!0)}i!=null&&e&&this.collapsed&&Si(e,i,s+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&rs(e.doc)),e&&Et(e,"markerCleared",e,this,i,s),t&&Ki(e),this.parent&&this.parent.clear()}},Co.prototype.find=function(e,t){var o,i;e==null&&this.type=="bookmark"&&(e=1);for(var s=0;s<this.lines.length;++s){var y=this.lines[s],O=st(y.markedSpans,this);if(O.from!=null&&(o=gt(t?y:pt(y),O.from),e==-1))return o;if(O.to!=null&&(i=gt(t?y:pt(y),O.to),e==1))return i}return o&&{from:o,to:i}},Co.prototype.changed=function(){var e=this,t=this.find(-1,!0),o=this,i=this.doc.cm;t&&i&&Di(i,function(){var s=t.line,y=pt(t.line),O=Qn(i,y);if(O&&(xi(O),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!a(o.doc,s)&&o.height!=null){var F=o.height;o.height=null;var Q=nn(o)-F;Q&&Ue(s,s.height+Q)}Et(i,"markerChanged",i,e)})},Co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&Ft(t.maybeHiddenMarkers,this)!=-1||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Co.prototype.detachLine=function(e){if(this.lines.splice(Ft(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Yr(Co);var Ko=function(e,t){this.markers=e,this.primary=t;for(var o=0;o<e.length;++o)e[o].parent=this};function ds(e){return e.findMarks(gt(e.first,0),e.clipPos(gt(e.lastLine())),function(t){return t.parent})}function $s(e){for(var t=function(i){var s=e[i],y=[s.primary.doc];To(s.primary.doc,function(Q){return y.push(Q)});for(var O=0;O<s.markers.length;O++){var F=s.markers[O];Ft(y,F.doc)==-1&&(F.parent=null,s.markers.splice(O--,1))}},o=0;o<e.length;o++)t(o)}Ko.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Et(this,"clear")}},Ko.prototype.find=function(e,t){return this.primary.find(e,t)},Yr(Ko);var Js=0,Ui=function(e,t,o,i,s){if(!(this instanceof Ui))return new Ui(e,t,o,i,s);o==null&&(o=0),Jo.call(this,[new $o([new I("",null)])]),this.first=o,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=o;var y=gt(o,0);this.sel=xo(y),this.history=new pa(null),this.id=++Js,this.modeOption=t,this.lineSep=i,this.direction=s=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),La(this,{from:y,to:y,text:e}),Pi(this,xo(y),X)};Ui.prototype=jt(Jo.prototype,{constructor:Ui,iter:function(e,t,o){o?this.iterN(e-this.first,t-e,o):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var o=0,i=0;i<t.length;++i)o+=t[i].height;this.insertInner(e-this.first,t,o)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ge(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:l(function(e){var t=gt(this.first,0),o=this.first+this.size-1;jo(this,{from:t,to:gt(o,Kt(this,o).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&zr(this.cm,0,0),Pi(this,xo(t),X)}),replaceRange:function(e,t,o,i){Fo(this,e,t=ar(this,t),o=o?ar(this,o):t,i)},getRange:function(e,t,o){var i=pn(this,ar(this,e),ar(this,t));return o===!1?i:i.join(o||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Qt(this,e))return Kt(this,e)},getLineNumber:function(e){return pt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Kt(this,e)),Re(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ar(this,e)},getCursor:function(e){var t=this.sel.primary();return e==null||e=="head"?t.head:e=="anchor"?t.anchor:e=="end"||e=="to"||e===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:l(function(e,t,o){Za(this,ar(this,typeof e=="number"?gt(e,t||0):e),null,o)}),setSelection:l(function(e,t,o){Za(this,ar(this,e),ar(this,t||e),o)}),extendSelection:l(function(e,t,o){fa(this,ar(this,e),t&&ar(this,t),o)}),extendSelections:l(function(e,t){Ka(this,Lr(this,e),t)}),extendSelectionsBy:l(function(e,t){Ka(this,Lr(this,Ze(this.sel.ranges,e)),t)}),setSelections:l(function(e,t,o){if(e.length){for(var i=[],s=0;s<e.length;s++)i[s]=new Mn(ar(this,e[s].anchor),ar(this,e[s].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Pi(this,ao(this.cm,i,t),o)}}),addSelection:l(function(e,t,o){var i=this.sel.ranges.slice(0);i.push(new Mn(ar(this,e),ar(this,t||e))),Pi(this,ao(this.cm,i,i.length-1),o)}),getSelection:function(e){for(var t,o=this.sel.ranges,i=0;i<o.length;i++){var s=pn(this,o[i].from(),o[i].to());t=t?t.concat(s):s}return e===!1?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],o=this.sel.ranges,i=0;i<o.length;i++){var s=pn(this,o[i].from(),o[i].to());e!==!1&&(s=s.join(e||this.lineSeparator())),t[i]=s}return t},replaceSelection:function(e,t,o){for(var i=[],s=0;s<this.sel.ranges.length;s++)i[s]=e;this.replaceSelections(i,t,o||"+input")},replaceSelections:l(function(e,t,o){for(var i=[],s=this.sel,y=0;y<s.ranges.length;y++){var O=s.ranges[y];i[y]={from:O.from(),to:O.to(),text:this.splitLines(e[y]),origin:o}}for(var F=t&&t!="end"&&function(ee,we,Ce){for(var tt=[],Xe=gt(ee.first,0),bt=Xe,ot=0;ot<we.length;ot++){var vt=we[ot],Mt=Va(vt.from,Xe,bt),Gt=Va(So(vt),Xe,bt);if(Xe=vt.to,bt=Gt,Ce=="around"){var zt=ee.sel.ranges[ot],er=Ht(zt.head,zt.anchor)<0;tt[ot]=new Mn(er?Gt:Mt,er?Mt:Gt)}else tt[ot]=new Mn(Mt,Mt)}return new Gi(tt,ee.sel.primIndex)}(this,i,t),Q=i.length-1;Q>=0;Q--)jo(this,i[Q]);F?es(this,F):this.cm&&fr(this.cm)}),undo:l(function(){ma(this,"undo")}),redo:l(function(){ma(this,"redo")}),undoSelection:l(function(){ma(this,"undo",!0)}),redoSelection:l(function(){ma(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,o=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var s=0;s<e.undone.length;s++)e.undone[s].ranges||++o;return{undo:t,redo:o}},clearHistory:function(){var e=this;this.history=new pa(this.history.maxGeneration),To(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ko(this.history.done),undone:ko(this.history.undone)}},setHistory:function(e){var t=this.history=new pa(this.history.maxGeneration);t.done=ko(e.done.slice(0),null,!0),t.undone=ko(e.undone.slice(0),null,!0)},setGutterMarker:l(function(e,t,o){return Xo(this,e,"gutter",function(i){var s=i.gutterMarkers||(i.gutterMarkers={});return s[t]=o,!o&&Pr(s)&&(i.gutterMarkers=null),!0})}),clearGutter:l(function(e){var t=this;this.iter(function(o){o.gutterMarkers&&o.gutterMarkers[e]&&Xo(t,o,"gutter",function(){return o.gutterMarkers[e]=null,Pr(o.gutterMarkers)&&(o.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Qt(this,e)||(t=e,!(e=Kt(this,e))))return null}else if((t=pt(e))==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:l(function(e,t,o){return Xo(this,e,t=="gutter"?"gutter":"class",function(i){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(i[s]){if(me(o).test(i[s]))return!1;i[s]+=" "+o}else i[s]=o;return!0})}),removeLineClass:l(function(e,t,o){return Xo(this,e,t=="gutter"?"gutter":"class",function(i){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",y=i[s];if(!y)return!1;if(o==null)i[s]=null;else{var O=y.match(me(o));if(!O)return!1;var F=O.index+O[0].length;i[s]=y.slice(0,O.index)+(O.index&&F!=y.length?" ":"")+y.slice(F)||null}return!0})}),addLineWidget:l(function(e,t,o){return function(i,s,y,O){var F=new Qo(i,y,O),Q=i.cm;return Q&&F.noHScroll&&(Q.display.alignWidgets=!0),Xo(i,s,"widget",function(ee){var we=ee.widgets||(ee.widgets=[]);if(F.insertAt==null?we.push(F):we.splice(Math.min(we.length-1,Math.max(0,F.insertAt)),0,F),F.line=ee,Q&&!a(i,ee)){var Ce=g(ee)<i.scrollTop;Ue(ee,ee.height+nn(F)),Ce&&or(Q,F.height),Q.curOp.forceUpdate=!0}return!0}),Q&&Et(Q,"lineWidgetAdded",Q,F,typeof s=="number"?s:pt(s)),F}(this,e,t,o)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,o){return Bo(this,ar(this,e),ar(this,t),o,o&&o.type||"range")},setBookmark:function(e,t){var o={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Bo(this,e=ar(this,e),e,o,"bookmark")},findMarksAt:function(e){var t=[],o=Kt(this,(e=ar(this,e)).line).markedSpans;if(o)for(var i=0;i<o.length;++i){var s=o[i];(s.from==null||s.from<=e.ch)&&(s.to==null||s.to>=e.ch)&&t.push(s.marker.parent||s.marker)}return t},findMarks:function(e,t,o){e=ar(this,e),t=ar(this,t);var i=[],s=e.line;return this.iter(e.line,t.line+1,function(y){var O=y.markedSpans;if(O)for(var F=0;F<O.length;F++){var Q=O[F];Q.to!=null&&s==e.line&&e.ch>=Q.to||Q.from==null&&s!=e.line||Q.from!=null&&s==t.line&&Q.from>=t.ch||o&&!o(Q.marker)||i.push(Q.marker.parent||Q.marker)}++s}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var o=t.markedSpans;if(o)for(var i=0;i<o.length;++i)o[i].from!=null&&e.push(o[i].marker)}),e},posFromIndex:function(e){var t,o=this.first,i=this.lineSeparator().length;return this.iter(function(s){var y=s.text.length+i;if(y>e)return t=e,!0;e-=y,++o}),ar(this,gt(o,t))},indexFromPos:function(e){var t=(e=ar(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var o=this.lineSeparator().length;return this.iter(this.first,e.line,function(i){t+=i.text.length+o}),t},copy:function(e){var t=new Ui(ge(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,o=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<o&&(o=e.to);var i=new Ui(ge(this,t,o),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(s,y){for(var O=0;O<y.length;O++){var F=y[O],Q=F.find(),ee=s.clipPos(Q.from),we=s.clipPos(Q.to);if(Ht(ee,we)){var Ce=Bo(s,ee,we,F.primary,F.primary.type);F.markers.push(Ce),Ce.parent=F}}}(i,ds(this)),i},unlinkDoc:function(e){if(e instanceof ui&&(e=e.doc),this.linked){for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),$s(ds(this));break}}if(e.history==this.history){var o=[e.id];To(e,function(i){return o.push(i.id)},!0),e.history=new pa(null),e.history.done=ko(this.history.done,o),e.history.undone=ko(this.history.undone,o)}},iterLinkedDocs:function(e){To(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ee(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:l(function(e){var t;e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(o){return o.order=null}),this.cm&&Di(t=this.cm,function(){Ya(t),Si(t)}))})}),Ui.prototype.eachLine=Ui.prototype.iter;var gs=0;function Qs(e){var t=this;if(ms(t),!hn(t,e)&&!fn(t.display,e)){kr(e),C&&(gs=+new Date);var o=Vi(t,e,!0),i=e.dataTransfer.files;if(o&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var s=i.length,y=Array(s),O=0,F=function(){++O==s&&mi(t,function(){var Xe={from:o=ar(t.doc,o),to:o,text:t.doc.splitLines(y.filter(function(bt){return bt!=null}).join(t.doc.lineSeparator())),origin:"paste"};jo(t.doc,Xe),es(t.doc,xo(ar(t.doc,o),ar(t.doc,So(Xe))))})()},Q=function(Xe,bt){if(t.options.allowDropFileTypes&&Ft(t.options.allowDropFileTypes,Xe.type)==-1)F();else{var ot=new FileReader;ot.onerror=function(){return F()},ot.onload=function(){var vt=ot.result;/[\x00-\x08\x0e-\x1f]{2}/.test(vt)||(y[bt]=vt),F()},ot.readAsText(Xe)}},ee=0;ee<i.length;ee++)Q(i[ee],ee);else{if(t.state.draggingText&&t.doc.sel.contains(o)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var we=e.dataTransfer.getData("Text");if(we){var Ce;if(t.state.draggingText&&!t.state.draggingText.copy&&(Ce=t.listSelections()),da(t.doc,xo(o,o)),Ce)for(var tt=0;tt<Ce.length;++tt)Fo(t.doc,"",Ce[tt].anchor,Ce[tt].head,"drag");t.replaceSelection(we,"around","paste"),t.display.input.focus()}}catch{}}}}function ms(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function vs(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),o=[],i=0;i<t.length;i++){var s=t[i].CodeMirror;s&&o.push(s)}o.length&&o[0].operation(function(){for(var y=0;y<o.length;y++)e(o[y])})}}var ys=!1;function Ks(){var e;ys||(lr(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,vs(Zs)},100))}),lr(window,"blur",function(){return vs(ut)}),ys=!0)}function Zs(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ao={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:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Zo=0;Zo<10;Zo++)Ao[Zo+48]=Ao[Zo+96]=String(Zo);for(var va=65;va<=90;va++)Ao[va]=String.fromCharCode(va);for(var ea=1;ea<=12;ea++)Ao[ea+111]=Ao[ea+63235]="F"+ea;var vo={};function el(e){var t,o,i,s,y=e.split(/-(?!$)/);e=y[y.length-1];for(var O=0;O<y.length-1;O++){var F=y[O];if(/^(cmd|meta|m)$/i.test(F))s=!0;else if(/^a(lt)?$/i.test(F))t=!0;else if(/^(c|ctrl|control)$/i.test(F))o=!0;else{if(!/^s(hift)?$/i.test(F))throw new Error("Unrecognized modifier name: "+F);i=!0}}return t&&(e="Alt-"+e),o&&(e="Ctrl-"+e),s&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function tl(e){var t={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];if(/^(name|fallthrough|(de|at)tach)$/.test(o))continue;if(i=="..."){delete e[o];continue}for(var s=Ze(o.split(" "),el),y=0;y<s.length;y++){var O=void 0,F=void 0;y==s.length-1?(F=s.join(" "),O=i):(F=s.slice(0,y+1).join(" "),O="...");var Q=t[F];if(Q){if(Q!=O)throw new Error("Inconsistent bindings for "+F)}else t[F]=O}delete e[o]}for(var ee in t)e[ee]=t[ee];return e}function Go(e,t,o,i){var s=(t=ya(t)).call?t.call(e,i):t[e];if(s===!1)return"nothing";if(s==="...")return"multi";if(s!=null&&o(s))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Go(e,t.fallthrough,o,i);for(var y=0;y<t.fallthrough.length;y++){var O=Go(e,t.fallthrough[y],o,i);if(O)return O}}}function Es(e){var t=typeof e=="string"?e:Ao[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function bs(e,t,o){var i=e;return t.altKey&&i!="Alt"&&(e="Alt-"+e),(ne?t.metaKey:t.ctrlKey)&&i!="Ctrl"&&(e="Ctrl-"+e),(ne?t.ctrlKey:t.metaKey)&&i!="Cmd"&&(e="Cmd-"+e),!o&&t.shiftKey&&i!="Shift"&&(e="Shift-"+e),e}function xs(e,t){if(ce&&e.keyCode==34&&e.char)return!1;var o=Ao[e.keyCode];return o!=null&&!e.altGraphKey&&(e.keyCode==3&&e.code&&(o=e.code),bs(o,e,t))}function ya(e){return typeof e=="string"?vo[e]:e}function Uo(e,t){for(var o=e.doc.sel.ranges,i=[],s=0;s<o.length;s++){for(var y=t(o[s]);i.length&&Ht(y.from,lt(i).to)<=0;){var O=i.pop();if(Ht(O.from,y.from)<0){y.from=O.from;break}}i.push(y)}Di(e,function(){for(var F=i.length-1;F>=0;F--)Fo(e.doc,"",i[F].from,i[F].to,"+delete");fr(e)})}function Oa(e,t,o){var i=qr(e.text,t+o,o);return i<0||i>e.text.length?null:i}function Ra(e,t,o){var i=Oa(e,t.ch,o);return i==null?null:new gt(t.line,i,o<0?"after":"before")}function Da(e,t,o,i,s){if(e){t.doc.direction=="rtl"&&(s=-s);var y=dn(o,t.doc.direction);if(y){var O,F=s<0?lt(y):y[0],Q=s<0==(F.level==1)?"after":"before";if(F.level>0||t.doc.direction=="rtl"){var ee=ci(t,o);O=s<0?o.text.length-1:0;var we=ti(t,ee,O).top;O=on(function(Ce){return ti(t,ee,Ce).top==we},s<0==(F.level==1)?F.from:F.to-1,O),Q=="before"&&(O=Oa(o,O,1))}else O=s<0?F.to:F.from;return new gt(i,O,Q)}}return new gt(i,s<0?o.text.length:0,s<0?"before":"after")}vo.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"},vo.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"},vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},vo.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"]},vo.default=q?vo.macDefault:vo.pcDefault;var ta={selectAll:os,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),X)},killLine:function(e){return Uo(e,function(t){if(t.empty()){var o=Kt(e.doc,t.head.line).text.length;return t.head.ch==o&&t.head.line<e.lastLine()?{from:t.head,to:gt(t.head.line+1,0)}:{from:t.head,to:gt(t.head.line,o)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Uo(e,function(t){return{from:gt(t.from().line,0),to:ar(e.doc,gt(t.to().line+1,0))}})},delLineLeft:function(e){return Uo(e,function(t){return{from:gt(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Uo(e,function(t){var o=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:o},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Uo(e,function(t){var o=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(gt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(gt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Ss(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Ts(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(o,i){var s=Kt(o.doc,i),y=function(O){for(var F;F=Zr(O);)O=F.find(1,!0).line;return O}(s);return y!=s&&(i=pt(y)),Da(!0,o,s,i,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div")},De)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:o},"div")},De)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:o},"div");return i.ch<e.getLine(i.line).search(/\S/)?Ts(e,t.head):i},De)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("	")},insertSoftTab:function(e){for(var t=[],o=e.listSelections(),i=e.options.tabSize,s=0;s<o.length;s++){var y=o[s].from(),O=Nt(e.getLine(y.line),y.ch,i);t.push(ze(i-O%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Di(e,function(){for(var t=e.listSelections(),o=[],i=0;i<t.length;i++)if(t[i].empty()){var s=t[i].head,y=Kt(e.doc,s.line).text;if(y){if(s.ch==y.length&&(s=new gt(s.line,s.ch-1)),s.ch>0)s=new gt(s.line,s.ch+1),e.replaceRange(y.charAt(s.ch-1)+y.charAt(s.ch-2),gt(s.line,s.ch-2),s,"+transpose");else if(s.line>e.doc.first){var O=Kt(e.doc,s.line-1).text;O&&(s=new gt(s.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+O.charAt(O.length-1),gt(s.line-1,O.length-1),s,"+transpose"))}}o.push(new Mn(s,s))}e.setSelections(o)})},newlineAndIndent:function(e){return Di(e,function(){for(var t=e.listSelections(),o=t.length-1;o>=0;o--)e.replaceRange(e.doc.lineSeparator(),t[o].anchor,t[o].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);fr(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ss(e,t){var o=Kt(e.doc,t),i=Re(o);return i!=o&&(t=pt(i)),Da(!0,e,i,t,1)}function Ts(e,t){var o=Ss(e,t.line),i=Kt(e.doc,o.line),s=dn(i,e.doc.direction);if(!s||s[0].level==0){var y=Math.max(o.ch,i.text.search(/\S/)),O=t.line==o.line&&t.ch<=y&&t.ch;return gt(o.line,O?0:y,o.sticky)}return o}function Ea(e,t,o){if(typeof t=="string"&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,s=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),o&&(e.display.shift=!1),s=t(e)!=B}finally{e.display.shift=i,e.state.suppressEdits=!1}return s}var rl=new at;function ra(e,t,o,i){var s=e.state.keySeq;if(s){if(Es(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rl.set(50,function(){e.state.keySeq==s&&(e.state.keySeq=null,e.display.input.reset())}),Cs(e,s+" "+t,o,i))return!0}return Cs(e,t,o,i)}function Cs(e,t,o,i){var s=function(y,O,F){for(var Q=0;Q<y.state.keyMaps.length;Q++){var ee=Go(O,y.state.keyMaps[Q],F,y);if(ee)return ee}return y.options.extraKeys&&Go(O,y.options.extraKeys,F,y)||Go(O,y.options.keyMap,F,y)}(e,t,i);return s=="multi"&&(e.state.keySeq=t),s=="handled"&&Et(e,"keyHandled",e,t,o),s!="handled"&&s!="multi"||(kr(o),po(e)),!!s}function As(e,t){var o=xs(t,!0);return!!o&&(t.shiftKey&&!e.state.keySeq?ra(e,"Shift-"+o,t,function(i){return Ea(e,i,!0)})||ra(e,o,t,function(i){if(typeof i=="string"?/^go[A-Z]/.test(i):i.motion)return Ea(e,i)}):ra(e,o,t,function(i){return Ea(e,i)}))}var Pa=null;function Ns(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=Tt(),hn(t,e)))){C&&M<11&&e.keyCode==27&&(e.returnValue=!1);var o=e.keyCode;t.display.shift=o==16||e.shiftKey;var i=As(t,e);ce&&(Pa=i?o:null,i||o!=88||Je||!(q?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),U&&!q&&!i&&o==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),o!=18||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(s){var y=s.display.lineDiv;function O(F){F.keyCode!=18&&F.altKey||(D(y,"CodeMirror-crosshair"),Dr(document,"keyup",O),Dr(document,"mouseover",O))}ft(y,"CodeMirror-crosshair"),lr(document,"keyup",O),lr(document,"mouseover",O)}(t)}}function Ls(e){e.keyCode==16&&(this.doc.sel.shift=!1),hn(this,e)}function Is(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||fn(t.display,e)||hn(t,e)||e.ctrlKey&&!e.altKey||q&&e.metaKey)){var o=e.keyCode,i=e.charCode;if(ce&&o==Pa)return Pa=null,void kr(e);if(!ce||e.which&&!(e.which<10)||!As(t,e)){var s=String.fromCharCode(i??o);s!="\b"&&(function(y,O,F){return ra(y,"'"+F+"'",O,function(Q){return Ea(y,Q,!0)})}(t,e,s)||t.display.input.onKeyPress(e))}}}var na,ia,ka=function(e,t,o){this.time=e,this.pos=t,this.button=o};function ws(e){var t=this,o=t.display;if(!(hn(t,e)||o.activeTouch&&o.input.supportsTouch())){if(o.input.ensurePolled(),o.shift=e.shiftKey,fn(o,e))ue||(o.scroller.draggable=!1,setTimeout(function(){return o.scroller.draggable=!0},100));else if(!Ma(t,e)){var i=Vi(t,e),s=xn(e),y=i?function(O,F){var Q=+new Date;return ia&&ia.compare(Q,O,F)?(na=ia=null,"triple"):na&&na.compare(Q,O,F)?(ia=new ka(Q,O,F),na=null,"double"):(na=new ka(Q,O,F),ia=null,"single")}(i,s):"single";window.focus(),s==1&&t.state.selectingText&&t.state.selectingText(e),i&&function(O,F,Q,ee,we){var Ce="Click";return ee=="double"?Ce="Double"+Ce:ee=="triple"&&(Ce="Triple"+Ce),ra(O,bs(Ce=(F==1?"Left":F==2?"Middle":"Right")+Ce,we),we,function(tt){if(typeof tt=="string"&&(tt=ta[tt]),!tt)return!1;var Xe=!1;try{O.isReadOnly()&&(O.state.suppressEdits=!0),Xe=tt(O,Q)!=B}finally{O.state.suppressEdits=!1}return Xe})}(t,s,i,y,e)||(s==1?i?function(O,F,Q,ee){C?setTimeout(mt(bo,O),0):O.curOp.focus=Tt();var we,Ce=function(Xe,bt,ot){var vt=Xe.getOption("configureMouse"),Mt=vt?vt(Xe,bt,ot):{};if(Mt.unit==null){var Gt=te?ot.shiftKey&&ot.metaKey:ot.altKey;Mt.unit=Gt?"rectangle":bt=="single"?"char":bt=="double"?"word":"line"}return(Mt.extend==null||Xe.doc.extend)&&(Mt.extend=Xe.doc.extend||ot.shiftKey),Mt.addNew==null&&(Mt.addNew=q?ot.metaKey:ot.ctrlKey),Mt.moveOnDrag==null&&(Mt.moveOnDrag=!(q?ot.altKey:ot.ctrlKey)),Mt}(O,Q,ee),tt=O.doc.sel;O.options.dragDrop&&mn&&!O.isReadOnly()&&Q=="single"&&(we=tt.contains(F))>-1&&(Ht((we=tt.ranges[we]).from(),F)<0||F.xRel>0)&&(Ht(we.to(),F)>0||F.xRel<0)?function(Xe,bt,ot,vt){var Mt=Xe.display,Gt=!1,zt=mi(Xe,function(Xt){ue&&(Mt.scroller.draggable=!1),Xe.state.draggingText=!1,Dr(Mt.wrapper.ownerDocument,"mouseup",zt),Dr(Mt.wrapper.ownerDocument,"mousemove",er),Dr(Mt.scroller,"dragstart",Yt),Dr(Mt.scroller,"drop",zt),Gt||(kr(Xt),vt.addNew||fa(Xe.doc,ot,null,null,vt.extend),ue&&!K||C&&M==9?setTimeout(function(){Mt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Mt.input.focus()},20):Mt.input.focus())}),er=function(Xt){Gt=Gt||Math.abs(bt.clientX-Xt.clientX)+Math.abs(bt.clientY-Xt.clientY)>=10},Yt=function(){return Gt=!0};ue&&(Mt.scroller.draggable=!0),Xe.state.draggingText=zt,zt.copy=!vt.moveOnDrag,Mt.scroller.dragDrop&&Mt.scroller.dragDrop(),lr(Mt.wrapper.ownerDocument,"mouseup",zt),lr(Mt.wrapper.ownerDocument,"mousemove",er),lr(Mt.scroller,"dragstart",Yt),lr(Mt.scroller,"drop",zt),Ne(Xe),setTimeout(function(){return Mt.input.focus()},20)}(O,ee,F,Ce):function(Xe,bt,ot,vt){var Mt=Xe.display,Gt=Xe.doc;kr(bt);var zt,er,Yt=Gt.sel,Xt=Yt.ranges;if(vt.addNew&&!vt.extend?(er=Gt.sel.contains(ot),zt=er>-1?Xt[er]:new Mn(ot,ot)):(zt=Gt.sel.primary(),er=Gt.sel.primIndex),vt.unit=="rectangle")vt.addNew||(zt=new Mn(ot,ot)),ot=Vi(Xe,bt,!0,!0),er=-1;else{var Jr=_s(Xe,ot,vt.unit);zt=vt.extend?wa(zt,Jr.anchor,Jr.head,vt.extend):Jr}vt.addNew?er==-1?(er=Xt.length,Pi(Gt,ao(Xe,Xt.concat([zt]),er),{scroll:!1,origin:"*mouse"})):Xt.length>1&&Xt[er].empty()&&vt.unit=="char"&&!vt.extend?(Pi(Gt,ao(Xe,Xt.slice(0,er).concat(Xt.slice(er+1)),0),{scroll:!1,origin:"*mouse"}),Yt=Gt.sel):_a(Gt,er,zt,he):(er=0,Pi(Gt,new Gi([zt],0),he),Yt=Gt.sel);var Or=ot;function Pn(Kr){if(Ht(Or,Kr)!=0)if(Or=Kr,vt.unit=="rectangle"){for(var jn=[],Gn=Xe.options.tabSize,On=Nt(Kt(Gt,ot.line).text,ot.ch,Gn),jr=Nt(Kt(Gt,Kr.line).text,Kr.ch,Gn),Vn=Math.min(On,jr),bn=Math.max(On,jr),bi=Math.min(ot.line,Kr.line),Ci=Math.min(Xe.lastLine(),Math.max(ot.line,Kr.line));bi<=Ci;bi++){var ki=Kt(Gt,bi).text,Ai=Ve(ki,Vn,Gn);Vn==bn?jn.push(new Mn(gt(bi,Ai),gt(bi,Ai))):ki.length>Ai&&jn.push(new Mn(gt(bi,Ai),gt(bi,Ve(ki,bn,Gn))))}jn.length||jn.push(new Mn(ot,ot)),Pi(Gt,ao(Xe,Yt.ranges.slice(0,er).concat(jn),er),{origin:"*mouse",scroll:!1}),Xe.scrollIntoView(Kr)}else{var ai,Ni=zt,Zi=_s(Xe,Kr,vt.unit),lo=Ni.anchor;Ht(Zi.anchor,lo)>0?(ai=Zi.head,lo=Un(Ni.from(),Zi.anchor)):(ai=Zi.anchor,lo=Ur(Ni.to(),Zi.head));var Vo=Yt.ranges.slice(0);Vo[er]=function(Hs,Ro){var zi=Ro.anchor,No=Ro.head,sl=Kt(Hs.doc,zi.line);if(Ht(zi,No)==0&&zi.sticky==No.sticky)return Ro;var Wo=dn(sl);if(!Wo)return Ro;var Ga=cn(Wo,zi.ch,zi.sticky),aa=Wo[Ga];if(aa.from!=zi.ch&&aa.to!=zi.ch)return Ro;var Ca,sa=Ga+(aa.from==zi.ch==(aa.level!=1)?0:1);if(sa==0||sa==Wo.length)return Ro;if(No.line!=zi.line)Ca=(No.line-zi.line)*(Hs.doc.direction=="ltr"?1:-1)>0;else{var Ua=cn(Wo,No.ch,No.sticky),qs=Ua-Ga||(No.ch-zi.ch)*(aa.level==1?-1:1);Ca=Ua==sa-1||Ua==sa?qs<0:qs>0}var Ha=Wo[sa+(Ca?-1:0)],Vs=Ca==(Ha.level==1),Ws=Vs?Ha.from:Ha.to,zs=Vs?"after":"before";return zi.ch==Ws&&zi.sticky==zs?Ro:new Mn(new gt(zi.line,Ws,zs),No)}(Xe,new Mn(ar(Gt,lo),ai)),Pi(Gt,ao(Xe,Vo,er),he)}}var Fr=Mt.wrapper.getBoundingClientRect(),In=0;function $n(Kr){Xe.state.selectingText=!1,In=1/0,Kr&&(kr(Kr),Mt.input.focus()),Dr(Mt.wrapper.ownerDocument,"mousemove",Rn),Dr(Mt.wrapper.ownerDocument,"mouseup",Tn),Gt.history.lastSelOrigin=null}var Rn=mi(Xe,function(Kr){Kr.buttons!==0&&xn(Kr)?function jn(Gn){var On=++In,jr=Vi(Xe,Gn,!0,vt.unit=="rectangle");if(jr)if(Ht(jr,Or)!=0){Xe.curOp.focus=Tt(),Pn(jr);var Vn=$t(Mt,Gt);(jr.line>=Vn.to||jr.line<Vn.from)&&setTimeout(mi(Xe,function(){In==On&&jn(Gn)}),150)}else{var bn=Gn.clientY<Fr.top?-20:Gn.clientY>Fr.bottom?20:0;bn&&setTimeout(mi(Xe,function(){In==On&&(Mt.scroller.scrollTop+=bn,jn(Gn))}),50)}}(Kr):$n(Kr)}),Tn=mi(Xe,$n);Xe.state.selectingText=Tn,lr(Mt.wrapper.ownerDocument,"mousemove",Rn),lr(Mt.wrapper.ownerDocument,"mouseup",Tn)}(O,ee,F,Ce)}(t,i,y,e):Zn(e)==o.scroller&&kr(e):s==2?(i&&fa(t.doc,i),setTimeout(function(){return o.input.focus()},20)):s==3&&(Ge?t.display.input.onContextMenu(e):Ne(t)))}}}function _s(e,t,o){if(o=="char")return new Mn(t,t);if(o=="word")return e.findWordAt(t);if(o=="line")return new Mn(gt(t.line,0),ar(e.doc,gt(t.line+1,0)));var i=o(e,t);return new Mn(i.from,i.to)}function Os(e,t,o,i){var s,y;if(t.touches)s=t.touches[0].clientX,y=t.touches[0].clientY;else try{s=t.clientX,y=t.clientY}catch{return!1}if(s>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&kr(t);var O=e.display,F=O.lineDiv.getBoundingClientRect();if(y>F.bottom||!Sr(e,o))return Jn(t);y-=F.top-O.viewOffset;for(var Q=0;Q<e.display.gutterSpecs.length;++Q){var ee=O.gutters.childNodes[Q];if(ee&&ee.getBoundingClientRect().right>=s)return br(e,o,e,it(e.doc,y),e.display.gutterSpecs[Q].className,t),Jn(t)}}function Ma(e,t){return Os(e,t,"gutterClick",!0)}function Rs(e,t){fn(e.display,t)||function(o,i){return!!Sr(o,"gutterContextMenu")&&Os(o,i,"gutterContextMenu",!1)}(e,t)||hn(e,t,"contextmenu")||Ge||e.display.input.onContextMenu(t)}function Ds(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gi(e)}ka.prototype.compare=function(e,t,o){return this.time+400>e&&Ht(t,this.pos)==0&&o==this.button};var Ho={toString:function(){return"CodeMirror.Init"}},Ps={},ba={};function nl(e,t,o){if(!t!=!(o&&o!=Ho)){var i=e.display.dragFunctions,s=t?lr:Dr;s(e.display.scroller,"dragstart",i.start),s(e.display.scroller,"dragenter",i.enter),s(e.display.scroller,"dragover",i.over),s(e.display.scroller,"dragleave",i.leave),s(e.display.scroller,"drop",i.drop)}}function il(e){e.options.lineWrapping?(ft(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(D(e.display.wrapper,"CodeMirror-wrap"),L(e)),_i(e),Si(e),gi(e),setTimeout(function(){return Dn(e)},100)}function ui(e,t){var o=this;if(!(this instanceof ui))return new ui(e,t);this.options=t=t?yt(t):{},yt(Ps,t,!1);var i=t.value;typeof i=="string"?i=new Ui(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var s=new ui.inputStyles[t.inputStyle](this),y=this.display=new yn(e,i,s,t);for(var O in y.wrapper.CodeMirror=this,Ds(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),oi(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 at,keySeq:null,specialChars:null},t.autofocus&&!P&&y.input.focus(),C&&M<11&&setTimeout(function(){return o.display.input.reset(!0)},20),function(Q){var ee=Q.display;lr(ee.scroller,"mousedown",mi(Q,ws)),lr(ee.scroller,"dblclick",C&&M<11?mi(Q,function(ot){if(!hn(Q,ot)){var vt=Vi(Q,ot);if(vt&&!Ma(Q,ot)&&!fn(Q.display,ot)){kr(ot);var Mt=Q.findWordAt(vt);fa(Q.doc,Mt.anchor,Mt.head)}}}):function(ot){return hn(Q,ot)||kr(ot)}),lr(ee.scroller,"contextmenu",function(ot){return Rs(Q,ot)}),lr(ee.input.getField(),"contextmenu",function(ot){ee.scroller.contains(ot.target)||Rs(Q,ot)});var we,Ce={end:0};function tt(){ee.activeTouch&&(we=setTimeout(function(){return ee.activeTouch=null},1e3),(Ce=ee.activeTouch).end=+new Date)}function Xe(ot,vt){if(vt.left==null)return!0;var Mt=vt.left-ot.left,Gt=vt.top-ot.top;return Mt*Mt+Gt*Gt>400}lr(ee.scroller,"touchstart",function(ot){if(!hn(Q,ot)&&!function(Mt){if(Mt.touches.length!=1)return!1;var Gt=Mt.touches[0];return Gt.radiusX<=1&&Gt.radiusY<=1}(ot)&&!Ma(Q,ot)){ee.input.ensurePolled(),clearTimeout(we);var vt=+new Date;ee.activeTouch={start:vt,moved:!1,prev:vt-Ce.end<=300?Ce:null},ot.touches.length==1&&(ee.activeTouch.left=ot.touches[0].pageX,ee.activeTouch.top=ot.touches[0].pageY)}}),lr(ee.scroller,"touchmove",function(){ee.activeTouch&&(ee.activeTouch.moved=!0)}),lr(ee.scroller,"touchend",function(ot){var vt=ee.activeTouch;if(vt&&!fn(ee,ot)&&vt.left!=null&&!vt.moved&&new Date-vt.start<300){var Mt,Gt=Q.coordsChar(ee.activeTouch,"page");Mt=!vt.prev||Xe(vt,vt.prev)?new Mn(Gt,Gt):!vt.prev.prev||Xe(vt,vt.prev.prev)?Q.findWordAt(Gt):new Mn(gt(Gt.line,0),ar(Q.doc,gt(Gt.line+1,0))),Q.setSelection(Mt.anchor,Mt.head),Q.focus(),kr(ot)}tt()}),lr(ee.scroller,"touchcancel",tt),lr(ee.scroller,"scroll",function(){ee.scroller.clientHeight&&(vn(Q,ee.scroller.scrollTop),wr(Q,ee.scroller.scrollLeft,!0),br(Q,"scroll",Q))}),lr(ee.scroller,"mousewheel",function(ot){return Oo(Q,ot)}),lr(ee.scroller,"DOMMouseScroll",function(ot){return Oo(Q,ot)}),lr(ee.wrapper,"scroll",function(){return ee.wrapper.scrollTop=ee.wrapper.scrollLeft=0}),ee.dragFunctions={enter:function(ot){hn(Q,ot)||ln(ot)},over:function(ot){hn(Q,ot)||(function(vt,Mt){var Gt=Vi(vt,Mt);if(Gt){var zt=document.createDocumentFragment();oo(vt,Gt,zt),vt.display.dragCursor||(vt.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),vt.display.lineSpace.insertBefore(vt.display.dragCursor,vt.display.cursorDiv)),re(vt.display.dragCursor,zt)}}(Q,ot),ln(ot))},start:function(ot){return function(vt,Mt){if(C&&(!vt.state.draggingText||+new Date-gs<100))ln(Mt);else if(!hn(vt,Mt)&&!fn(vt.display,Mt)&&(Mt.dataTransfer.setData("Text",vt.getSelection()),Mt.dataTransfer.effectAllowed="copyMove",Mt.dataTransfer.setDragImage&&!K)){var Gt=be("img",null,null,"position: fixed; left: 0; top: 0;");Gt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ce&&(Gt.width=Gt.height=1,vt.display.wrapper.appendChild(Gt),Gt._top=Gt.offsetTop),Mt.dataTransfer.setDragImage(Gt,0,0),ce&&Gt.parentNode.removeChild(Gt)}}(Q,ot)},drop:mi(Q,Qs),leave:function(ot){hn(Q,ot)||ms(Q)}};var bt=ee.input.getField();lr(bt,"keyup",function(ot){return Ls.call(Q,ot)}),lr(bt,"keydown",mi(Q,Ns)),lr(bt,"keypress",mi(Q,Is)),lr(bt,"focus",function(ot){return rt(Q,ot)}),lr(bt,"blur",function(ot){return ut(Q,ot)})}(this),Ks(),Fi(this),this.curOp.forceUpdate=!0,za(this,i),t.autofocus&&!P||this.hasFocus()?setTimeout(mt(rt,this),20):ut(this),ba)ba.hasOwnProperty(O)&&ba[O](this,t[O],Ho);qt(this),t.finishInit&&t.finishInit(this);for(var F=0;F<ja.length;++F)ja[F](this);Ki(this),ue&&t.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}ui.defaults=Ps,ui.optionHandlers=ba;var ja=[];function oa(e,t,o,i){var s,y=e.doc;o==null&&(o="add"),o=="smart"&&(y.mode.indent?s=J(e,t).state:o="prev");var O=e.options.tabSize,F=Kt(y,t),Q=Nt(F.text,null,O);F.stateAfter&&(F.stateAfter=null);var ee,we=F.text.match(/^\s*/)[0];if(i||/\S/.test(F.text)){if(o=="smart"&&((ee=y.mode.indent(s,F.text.slice(we.length),F.text))==B||ee>150)){if(!i)return;o="prev"}}else ee=0,o="not";o=="prev"?ee=t>y.first?Nt(Kt(y,t-1).text,null,O):0:o=="add"?ee=Q+e.options.indentUnit:o=="subtract"?ee=Q-e.options.indentUnit:typeof o=="number"&&(ee=Q+o),ee=Math.max(0,ee);var Ce="",tt=0;if(e.options.indentWithTabs)for(var Xe=Math.floor(ee/O);Xe;--Xe)tt+=O,Ce+="	";if(tt<ee&&(Ce+=ze(ee-tt)),Ce!=we)return Fo(y,Ce,gt(t,0),gt(t,we.length),"+input"),F.stateAfter=null,!0;for(var bt=0;bt<y.sel.ranges.length;bt++){var ot=y.sel.ranges[bt];if(ot.head.line==t&&ot.head.ch<we.length){var vt=gt(t,we.length);_a(y,bt,new Mn(vt,vt));break}}}ui.defineInitHook=function(e){return ja.push(e)};var so=null;function xa(e){so=e}function Fa(e,t,o,i,s){var y=e.doc;e.display.shift=!1,i||(i=y.sel);var O=+new Date-200,F=s=="paste"||e.state.pasteIncoming>O,Q=Ee(t),ee=null;if(F&&i.ranges.length>1)if(so&&so.text.join(`
`)==t){if(i.ranges.length%so.text.length==0){ee=[];for(var we=0;we<so.text.length;we++)ee.push(y.splitLines(so.text[we]))}}else Q.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(ee=Ze(Q,function(Mt){return[Mt]}));for(var Ce=e.curOp.updateInput,tt=i.ranges.length-1;tt>=0;tt--){var Xe=i.ranges[tt],bt=Xe.from(),ot=Xe.to();Xe.empty()&&(o&&o>0?bt=gt(bt.line,bt.ch-o):e.state.overwrite&&!F?ot=gt(ot.line,Math.min(Kt(y,ot.line).text.length,ot.ch+lt(Q).length)):F&&so&&so.lineWise&&so.text.join(`
`)==t&&(bt=ot=gt(bt.line,0)));var vt={from:bt,to:ot,text:ee?ee[tt%ee.length]:Q,origin:s||(F?"paste":e.state.cutIncoming>O?"cut":"+input")};jo(e.doc,vt),Et(e,"inputRead",e,vt)}t&&!F&&Ms(e,t),fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ks(e,t){var o=e.clipboardData&&e.clipboardData.getData("Text");if(o)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Di(t,function(){return Fa(t,o,0,null,"paste")}),!0}function Ms(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var o=e.doc.sel,i=o.ranges.length-1;i>=0;i--){var s=o.ranges[i];if(!(s.head.ch>100||i&&o.ranges[i-1].head.line==s.head.line)){var y=e.getModeAt(s.head),O=!1;if(y.electricChars){for(var F=0;F<y.electricChars.length;F++)if(t.indexOf(y.electricChars.charAt(F))>-1){O=oa(e,s.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(Kt(e.doc,s.head.line).text.slice(0,s.head.ch))&&(O=oa(e,s.head.line,"smart"));O&&Et(e,"electricInput",e,s.head.line)}}}function js(e){for(var t=[],o=[],i=0;i<e.doc.sel.ranges.length;i++){var s=e.doc.sel.ranges[i].head.line,y={anchor:gt(s,0),head:gt(s+1,0)};o.push(y),t.push(e.getRange(y.anchor,y.head))}return{text:t,ranges:o}}function Fs(e,t,o,i){e.setAttribute("autocorrect",o?"":"off"),e.setAttribute("autocapitalize",i?"":"off"),e.setAttribute("spellcheck",!!t)}function Bs(){var e=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=be("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ue?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Fs(e),t}function Ba(e,t,o,i,s){var y=t,O=o,F=Kt(e,t.line),Q=s&&e.direction=="rtl"?-o:o;function ee(Mt){var Gt,zt;if((Gt=s?function(er,Yt,Xt,Jr){var Or=dn(Yt,er.doc.direction);if(!Or)return Ra(Yt,Xt,Jr);Xt.ch>=Yt.text.length?(Xt.ch=Yt.text.length,Xt.sticky="before"):Xt.ch<=0&&(Xt.ch=0,Xt.sticky="after");var Pn=cn(Or,Xt.ch,Xt.sticky),Fr=Or[Pn];if(er.doc.direction=="ltr"&&Fr.level%2==0&&(Jr>0?Fr.to>Xt.ch:Fr.from<Xt.ch))return Ra(Yt,Xt,Jr);var In,$n=function(bn,bi){return Oa(Yt,bn instanceof gt?bn.ch:bn,bi)},Rn=function(bn){return er.options.lineWrapping?(In=In||ci(er,Yt),to(er,Yt,In,bn)):{begin:0,end:Yt.text.length}},Tn=Rn(Xt.sticky=="before"?$n(Xt,-1):Xt.ch);if(er.doc.direction=="rtl"||Fr.level==1){var Kr=Fr.level==1==Jr<0,jn=$n(Xt,Kr?1:-1);if(jn!=null&&(Kr?jn<=Fr.to&&jn<=Tn.end:jn>=Fr.from&&jn>=Tn.begin)){var Gn=Kr?"before":"after";return new gt(Xt.line,jn,Gn)}}var On=function(bn,bi,Ci){for(var ki=function(Zi,lo){return lo?new gt(Xt.line,$n(Zi,1),"before"):new gt(Xt.line,Zi,"after")};bn>=0&&bn<Or.length;bn+=bi){var Ai=Or[bn],ai=bi>0==(Ai.level!=1),Ni=ai?Ci.begin:$n(Ci.end,-1);if(Ai.from<=Ni&&Ni<Ai.to||(Ni=ai?Ai.from:$n(Ai.to,-1),Ci.begin<=Ni&&Ni<Ci.end))return ki(Ni,ai)}},jr=On(Pn+Jr,Jr,Tn);if(jr)return jr;var Vn=Jr>0?Tn.end:$n(Tn.begin,-1);return Vn==null||Jr>0&&Vn==Yt.text.length||!(jr=On(Jr>0?0:Or.length-1,Jr,Rn(Vn)))?null:jr}(e.cm,F,t,o):Ra(F,t,o))==null){if(Mt||(zt=t.line+Q)<e.first||zt>=e.first+e.size||(t=new gt(zt,t.ch,t.sticky),!(F=Kt(e,zt))))return!1;t=Da(s,e.cm,F,t.line,Q)}else t=Gt;return!0}if(i=="char")ee();else if(i=="column")ee(!0);else if(i=="word"||i=="group")for(var we=null,Ce=i=="group",tt=e.cm&&e.cm.getHelper(t,"wordChars"),Xe=!0;!(o<0)||ee(!Xe);Xe=!1){var bt=F.text.charAt(t.ch)||`
`,ot=xr(bt,tt)?"w":Ce&&bt==`
`?"n":!Ce||/\s/.test(bt)?null:"p";if(!Ce||Xe||ot||(ot="s"),we&&we!=ot){o<0&&(o=1,ee(),t.sticky="after");break}if(ot&&(we=ot),o>0&&!ee(!Xe))break}var vt=ga(e,t,y,O,!0);return Ut(y,vt)&&(vt.hitSide=!0),vt}function Gs(e,t,o,i){var s,y,O=e.doc,F=t.left;if(i=="page"){var Q=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ee=Math.max(Q-.5*qi(e.display),3);s=(o>0?t.bottom:t.top)+o*ee}else i=="line"&&(s=o>0?t.bottom+3:t.top-3);for(;(y=Qi(e,F,s)).outside;){if(o<0?s<=0:s>=O.height){y.hitSide=!0;break}s+=5*o}return y}var Xn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Us(e,t){var o=Qn(e,t.line);if(!o||o.hidden)return null;var i=Kt(e.doc,t.line),s=Nn(o,i,t.line),y=dn(i,e.doc.direction),O="left";y&&(O=cn(y,t.ch)%2?"right":"left");var F=_n(s.map,t.ch,O);return F.offset=F.collapse=="right"?F.end:F.start,F}function qo(e,t){return t&&(e.bad=!0),e}function Sa(e,t,o){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[o]))return qo(e.clipPos(gt(e.display.viewTo-1)),!0);t=null,o=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var s=0;s<e.display.view.length;s++){var y=e.display.view[s];if(y.node==i)return ol(y,t,o)}}function ol(e,t,o){var i=e.text.firstChild,s=!1;if(!t||!dt(i,t))return qo(gt(pt(e.line),0),!0);if(t==i&&(s=!0,t=i.childNodes[o],o=0,!t)){var y=e.rest?lt(e.rest):e.line;return qo(gt(pt(y),y.text.length),s)}var O=t.nodeType==3?t:null,F=t;for(O||t.childNodes.length!=1||t.firstChild.nodeType!=3||(O=t.firstChild,o&&(o=O.nodeValue.length));F.parentNode!=i;)F=F.parentNode;var Q=e.measure,ee=Q.maps;function we(vt,Mt,Gt){for(var zt=-1;zt<(ee?ee.length:0);zt++)for(var er=zt<0?Q.map:ee[zt],Yt=0;Yt<er.length;Yt+=3){var Xt=er[Yt+2];if(Xt==vt||Xt==Mt){var Jr=pt(zt<0?e.line:e.rest[zt]),Or=er[Yt]+Gt;return(Gt<0||Xt!=vt)&&(Or=er[Yt+(Gt?1:0)]),gt(Jr,Or)}}}var Ce=we(O,F,o);if(Ce)return qo(Ce,s);for(var tt=F.nextSibling,Xe=O?O.nodeValue.length-o:0;tt;tt=tt.nextSibling){if(Ce=we(tt,tt.firstChild,0))return qo(gt(Ce.line,Ce.ch-Xe),s);Xe+=tt.textContent.length}for(var bt=F.previousSibling,ot=o;bt;bt=bt.previousSibling){if(Ce=we(bt,bt.firstChild,-1))return qo(gt(Ce.line,Ce.ch+ot),s);ot+=bt.textContent.length}}Xn.prototype.init=function(e){var t=this,o=this,i=o.cm,s=o.div=e.lineDiv;function y(F){for(var Q=F.target;Q;Q=Q.parentNode){if(Q==s)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Q.className))break}return!1}function O(F){if(y(F)&&!hn(i,F)){if(i.somethingSelected())xa({lineWise:!1,text:i.getSelections()}),F.type=="cut"&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var Q=js(i);xa({lineWise:!0,text:Q.text}),F.type=="cut"&&i.operation(function(){i.setSelections(Q.ranges,0,X),i.replaceSelection("",null,"cut")})}if(F.clipboardData){F.clipboardData.clearData();var ee=so.text.join(`
`);if(F.clipboardData.setData("Text",ee),F.clipboardData.getData("Text")==ee)return void F.preventDefault()}var we=Bs(),Ce=we.firstChild;i.display.lineSpace.insertBefore(we,i.display.lineSpace.firstChild),Ce.value=so.text.join(`
`);var tt=document.activeElement;nt(Ce),setTimeout(function(){i.display.lineSpace.removeChild(we),tt.focus(),tt==s&&o.showPrimarySelection()},50)}}Fs(s,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),lr(s,"paste",function(F){!y(F)||hn(i,F)||ks(F,i)||M<=11&&setTimeout(mi(i,function(){return t.updateFromDOM()}),20)}),lr(s,"compositionstart",function(F){t.composing={data:F.data,done:!1}}),lr(s,"compositionupdate",function(F){t.composing||(t.composing={data:F.data,done:!1})}),lr(s,"compositionend",function(F){t.composing&&(F.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),lr(s,"touchstart",function(){return o.forceCompositionEnd()}),lr(s,"input",function(){t.composing||t.readFromDOMSoon()}),lr(s,"copy",O),lr(s,"cut",O)},Xn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Xn.prototype.prepareSelection=function(){var e=co(this.cm,!1);return e.focus=document.activeElement==this.div,e},Xn.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Xn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xn.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,o=t.doc.sel.primary(),i=o.from(),s=o.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||s.line<t.display.viewFrom)e.removeAllRanges();else{var y=Sa(t,e.anchorNode,e.anchorOffset),O=Sa(t,e.focusNode,e.focusOffset);if(!y||y.bad||!O||O.bad||Ht(Un(y,O),i)!=0||Ht(Ur(y,O),s)!=0){var F=t.display.view,Q=i.line>=t.display.viewFrom&&Us(t,i)||{node:F[0].measure.map[2],offset:0},ee=s.line<t.display.viewTo&&Us(t,s);if(!ee){var we=F[F.length-1].measure,Ce=we.maps?we.maps[we.maps.length-1]:we.map;ee={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(Q&&ee){var tt,Xe=e.rangeCount&&e.getRangeAt(0);try{tt=xe(Q.node,Q.offset,ee.offset,ee.node)}catch{}tt&&(!U&&t.state.focused?(e.collapse(Q.node,Q.offset),tt.collapsed||(e.removeAllRanges(),e.addRange(tt))):(e.removeAllRanges(),e.addRange(tt)),Xe&&e.anchorNode==null?e.addRange(Xe):U&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Xn.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Xn.prototype.showMultipleSelections=function(e){re(this.cm.display.cursorDiv,e.cursors),re(this.cm.display.selectionDiv,e.selection)},Xn.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Xn.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return dt(this.div,t)},Xn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xn.prototype.blur=function(){this.div.blur()},Xn.prototype.getField=function(){return this.div},Xn.prototype.supportsTouch=function(){return!0},Xn.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Di(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Xn.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Xn.prototype.pollSelection=function(){if(this.readDOMTimeout==null&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(S&&Y&&this.cm.display.gutterSpecs.length&&function(s){for(var y=s;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var o=Sa(t,e.anchorNode,e.anchorOffset),i=Sa(t,e.focusNode,e.focusOffset);o&&i&&Di(t,function(){Pi(t.doc,xo(o,i),X),(o.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},Xn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,o,i=this.cm,s=i.display,y=i.doc.sel.primary(),O=y.from(),F=y.to();if(O.ch==0&&O.line>i.firstLine()&&(O=gt(O.line-1,Kt(i.doc,O.line-1).length)),F.ch==Kt(i.doc,F.line).text.length&&F.line<i.lastLine()&&(F=gt(F.line+1,0)),O.line<s.viewFrom||F.line>s.viewTo-1)return!1;O.line==s.viewFrom||(e=Yi(i,O.line))==0?(t=pt(s.view[0].line),o=s.view[0].node):(t=pt(s.view[e].line),o=s.view[e-1].node.nextSibling);var Q,ee,we=Yi(i,F.line);if(we==s.view.length-1?(Q=s.viewTo-1,ee=s.lineDiv.lastChild):(Q=pt(s.view[we+1].line)-1,ee=s.view[we+1].node.previousSibling),!o)return!1;for(var Ce=i.doc.splitLines(function(Jr,Or,Pn,Fr,In){var $n="",Rn=!1,Tn=Jr.doc.lineSeparator(),Kr=!1;function jn(){Rn&&($n+=Tn,Kr&&($n+=Tn),Rn=Kr=!1)}function Gn(jr){jr&&(jn(),$n+=jr)}function On(jr){if(jr.nodeType==1){var Vn=jr.getAttribute("cm-text");if(Vn)return void Gn(Vn);var bn,bi=jr.getAttribute("cm-marker");if(bi){var Ci=Jr.findMarks(gt(Fr,0),gt(In+1,0),(ai=+bi,function(Ni){return Ni.id==ai}));return void(Ci.length&&(bn=Ci[0].find(0))&&Gn(pn(Jr.doc,bn.from,bn.to).join(Tn)))}if(jr.getAttribute("contenteditable")=="false")return;var ki=/^(pre|div|p|li|table|br)$/i.test(jr.nodeName);if(!/^br$/i.test(jr.nodeName)&&jr.textContent.length==0)return;ki&&jn();for(var Ai=0;Ai<jr.childNodes.length;Ai++)On(jr.childNodes[Ai]);/^(pre|p)$/i.test(jr.nodeName)&&(Kr=!0),ki&&(Rn=!0)}else jr.nodeType==3&&Gn(jr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var ai}for(;On(Or),Or!=Pn;)Or=Or.nextSibling,Kr=!1;return $n}(i,o,ee,t,Q)),tt=pn(i.doc,gt(t,0),gt(Q,Kt(i.doc,Q).text.length));Ce.length>1&&tt.length>1;)if(lt(Ce)==lt(tt))Ce.pop(),tt.pop(),Q--;else{if(Ce[0]!=tt[0])break;Ce.shift(),tt.shift(),t++}for(var Xe=0,bt=0,ot=Ce[0],vt=tt[0],Mt=Math.min(ot.length,vt.length);Xe<Mt&&ot.charCodeAt(Xe)==vt.charCodeAt(Xe);)++Xe;for(var Gt=lt(Ce),zt=lt(tt),er=Math.min(Gt.length-(Ce.length==1?Xe:0),zt.length-(tt.length==1?Xe:0));bt<er&&Gt.charCodeAt(Gt.length-bt-1)==zt.charCodeAt(zt.length-bt-1);)++bt;if(Ce.length==1&&tt.length==1&&t==O.line)for(;Xe&&Xe>O.ch&&Gt.charCodeAt(Gt.length-bt-1)==zt.charCodeAt(zt.length-bt-1);)Xe--,bt++;Ce[Ce.length-1]=Gt.slice(0,Gt.length-bt).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(Xe).replace(/\u200b+$/,"");var Yt=gt(t,Xe),Xt=gt(Q,tt.length?lt(tt).length-bt:0);return Ce.length>1||Ce[0]||Ht(Yt,Xt)?(Fo(i.doc,Ce,Yt,Xt,"+input"),!0):void 0},Xn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xn.prototype.reset=function(){this.forceCompositionEnd()},Xn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Xn.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Xn.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Di(this.cm,function(){return Si(e.cm)})},Xn.prototype.setUneditable=function(e){e.contentEditable="false"},Xn.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||mi(this.cm,Fa)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Xn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Xn.prototype.onContextMenu=function(){},Xn.prototype.resetPosition=function(){},Xn.prototype.needsContentAttribute=!0;var vi=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new at,this.hasSelection=!1,this.composing=null};vi.prototype.init=function(e){var t=this,o=this,i=this.cm;this.createField(e);var s=this.textarea;function y(O){if(!hn(i,O)){if(i.somethingSelected())xa({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var F=js(i);xa({lineWise:!0,text:F.text}),O.type=="cut"?i.setSelections(F.ranges,null,X):(o.prevInput="",s.value=F.text.join(`
`),nt(s))}O.type=="cut"&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(s.style.width="0px"),lr(s,"input",function(){C&&M>=9&&t.hasSelection&&(t.hasSelection=null),o.poll()}),lr(s,"paste",function(O){hn(i,O)||ks(O,i)||(i.state.pasteIncoming=+new Date,o.fastPoll())}),lr(s,"cut",y),lr(s,"copy",y),lr(e.scroller,"paste",function(O){if(!fn(e,O)&&!hn(i,O)){if(!s.dispatchEvent)return i.state.pasteIncoming=+new Date,void o.focus();var F=new Event("paste");F.clipboardData=O.clipboardData,s.dispatchEvent(F)}}),lr(e.lineSpace,"selectstart",function(O){fn(e,O)||kr(O)}),lr(s,"compositionstart",function(){var O=i.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:O,range:i.markText(O,i.getCursor("to"),{className:"CodeMirror-composing"})}}),lr(s,"compositionend",function(){o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})},vi.prototype.createField=function(e){this.wrapper=Bs(),this.textarea=this.wrapper.firstChild},vi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},vi.prototype.prepareSelection=function(){var e=this.cm,t=e.display,o=e.doc,i=co(e);if(e.options.moveInputWithCursor){var s=Qr(e,o.sel.primary().head,"div"),y=t.wrapper.getBoundingClientRect(),O=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,s.top+O.top-y.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,s.left+O.left-y.left))}return i},vi.prototype.showSelection=function(e){var t=this.cm.display;re(t.cursorDiv,e.cursors),re(t.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},vi.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var o=t.getSelection();this.textarea.value=o,t.state.focused&&nt(this.textarea),C&&M>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",C&&M>=9&&(this.hasSelection=null))}},vi.prototype.getField=function(){return this.textarea},vi.prototype.supportsTouch=function(){return!1},vi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!P||Tt()!=this.textarea))try{this.textarea.focus()}catch{}},vi.prototype.blur=function(){this.textarea.blur()},vi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vi.prototype.receivedFocus=function(){this.slowPoll()},vi.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},vi.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function o(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,o))})},vi.prototype.poll=function(){var e=this,t=this.cm,o=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Te(o)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var s=o.value;if(s==i&&!t.somethingSelected())return!1;if(C&&M>=9&&this.hasSelection===s||q&&/[\uf700-\uf7ff]/.test(s))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var y=s.charCodeAt(0);if(y!=8203||i||(i="​"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var O=0,F=Math.min(i.length,s.length);O<F&&i.charCodeAt(O)==s.charCodeAt(O);)++O;return Di(t,function(){Fa(t,s.slice(O),i.length-O,null,e.composing?"*compose":null),s.length>1e3||s.indexOf(`
`)>-1?o.value=e.prevInput="":e.prevInput=s,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vi.prototype.onKeyPress=function(){C&&M>=9&&(this.hasSelection=null),this.fastPoll()},vi.prototype.onContextMenu=function(e){var t=this,o=t.cm,i=o.display,s=t.textarea;t.contextMenuPending&&t.contextMenuPending();var y=Vi(o,e),O=i.scroller.scrollTop;if(y&&!ce){o.options.resetSelectionOnContextMenu&&o.doc.sel.contains(y)==-1&&mi(o,Pi)(o.doc,xo(y),X);var F,Q=s.style.cssText,ee=t.wrapper.style.cssText,we=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",s.style.cssText=`position: absolute; width: 30px; height: 30px;
      top: `+(e.clientY-we.top-5)+"px; left: "+(e.clientX-we.left-5)+`px;
      z-index: 1000; background: `+(C?"rgba(255, 255, 255, .05)":"transparent")+`;
      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`,ue&&(F=window.scrollY),i.input.focus(),ue&&window.scrollTo(null,F),i.input.reset(),o.somethingSelected()||(s.value=t.prevInput=" "),t.contextMenuPending=Xe,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),C&&M>=9&&tt(),Ge){ln(e);var Ce=function(){Dr(window,"mouseup",Ce),setTimeout(Xe,20)};lr(window,"mouseup",Ce)}else setTimeout(Xe,50)}function tt(){if(s.selectionStart!=null){var bt=o.somethingSelected(),ot="​"+(bt?s.value:"");s.value="⇚",s.value=ot,t.prevInput=bt?"":"​",s.selectionStart=1,s.selectionEnd=ot.length,i.selForContextMenu=o.doc.sel}}function Xe(){if(t.contextMenuPending==Xe&&(t.contextMenuPending=!1,t.wrapper.style.cssText=ee,s.style.cssText=Q,C&&M<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=O),s.selectionStart!=null)){(!C||C&&M<9)&&tt();var bt=0,ot=function(){i.selForContextMenu==o.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&t.prevInput=="​"?mi(o,os)(o):bt++<10?i.detectingSelectAll=setTimeout(ot,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(ot,200)}}},vi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor"},vi.prototype.setUneditable=function(){},vi.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function o(i,s,y,O){e.defaults[i]=s,y&&(t[i]=O?function(F,Q,ee){ee!=Ho&&y(F,Q,ee)}:y)}e.defineOption=o,e.Init=Ho,o("value","",function(i,s){return i.setValue(s)},!0),o("mode",null,function(i,s){i.doc.modeOption=s,Na(i)},!0),o("indentUnit",2,Na,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(i){zo(i),gi(i),Si(i)},!0),o("lineSeparator",null,function(i,s){if(i.doc.lineSep=s,s){var y=[],O=i.doc.first;i.doc.iter(function(Q){for(var ee=0;;){var we=Q.text.indexOf(s,ee);if(we==-1)break;ee=we+s.length,y.push(gt(O,we))}O++});for(var F=y.length-1;F>=0;F--)Fo(i.doc,s,y[F],gt(y[F].line,y[F].ch+s.length))}}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(i,s,y){i.state.specialChars=new RegExp(s.source+(s.test("	")?"":"|	"),"g"),y!=Ho&&i.refresh()}),o("specialCharPlaceholder",c,function(i){return i.refresh()},!0),o("electricChars",!0),o("inputStyle",P?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,function(i,s){return i.getInputField().spellcheck=s},!0),o("autocorrect",!1,function(i,s){return i.getInputField().autocorrect=s},!0),o("autocapitalize",!1,function(i,s){return i.getInputField().autocapitalize=s},!0),o("rtlMoveVisually",!Z),o("wholeLineUpdateBefore",!0),o("theme","default",function(i){Ds(i),Nr(i)},!0),o("keyMap","default",function(i,s,y){var O=ya(s),F=y!=Ho&&ya(y);F&&F.detach&&F.detach(i,O),O.attach&&O.attach(i,F||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,il,!0),o("gutters",[],function(i,s){i.display.gutterSpecs=_r(s,i.options.lineNumbers),Nr(i)},!0),o("fixedGutter",!0,function(i,s){i.display.gutters.style.left=s?no(i.display)+"px":"0",i.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(i){return Dn(i)},!0),o("scrollbarStyle","native",function(i){oi(i),Dn(i),i.display.scrollbars.setScrollTop(i.doc.scrollTop),i.display.scrollbars.setScrollLeft(i.doc.scrollLeft)},!0),o("lineNumbers",!1,function(i,s){i.display.gutterSpecs=_r(i.options.gutters,s),Nr(i)},!0),o("firstLineNumber",1,Nr,!0),o("lineNumberFormatter",function(i){return i},Nr,!0),o("showCursorWhenSelecting",!1,io,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,function(i,s){s=="nocursor"&&(ut(i),i.display.input.blur()),i.display.input.readOnlyChanged(s)}),o("screenReaderLabel",null,function(i,s){s=s===""?null:s,i.display.input.screenReaderLabelChanged(s)}),o("disableInput",!1,function(i,s){s||i.display.input.reset()},!0),o("dragDrop",!0,nl),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,io,!0),o("singleCursorHeightPerLine",!0,io,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,zo,!0),o("addModeClass",!1,zo,!0),o("pollInterval",100),o("undoDepth",200,function(i,s){return i.doc.history.undoDepth=s}),o("historyEventDelay",1250),o("viewportMargin",10,function(i){return i.refresh()},!0),o("maxHighlightLength",1e4,zo,!0),o("moveInputWithCursor",!0,function(i,s){s||i.display.input.resetPosition()}),o("tabindex",null,function(i,s){return i.display.input.getField().tabIndex=s||""}),o("autofocus",null),o("direction","ltr",function(i,s){return i.doc.setDirection(s)},!0),o("phrases",null)}(ui),function(e){var t=e.optionHandlers,o=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(i,s){var y=this.options,O=y[i];y[i]==s&&i!="mode"||(y[i]=s,t.hasOwnProperty(i)&&mi(this,t[i])(this,s,O),br(this,"optionChange",this,i))},getOption:function(i){return this.options[i]},getDoc:function(){return this.doc},addKeyMap:function(i,s){this.state.keyMaps[s?"push":"unshift"](ya(i))},removeKeyMap:function(i){for(var s=this.state.keyMaps,y=0;y<s.length;++y)if(s[y]==i||s[y].name==i)return s.splice(y,1),!0},addOverlay:Oi(function(i,s){var y=i.token?i:e.getMode(this.options,i);if(y.startState)throw new Error("Overlays may not be stateful.");(function(O,F,Q){for(var ee=0,we=Q(F);ee<O.length&&Q(O[ee])<=we;)ee++;O.splice(ee,0,F)})(this.state.overlays,{mode:y,modeSpec:i,opaque:s&&s.opaque,priority:s&&s.priority||0},function(O){return O.priority}),this.state.modeGen++,Si(this)}),removeOverlay:Oi(function(i){for(var s=this.state.overlays,y=0;y<s.length;++y){var O=s[y].modeSpec;if(O==i||typeof i=="string"&&O.name==i)return s.splice(y,1),this.state.modeGen++,void Si(this)}}),indentLine:Oi(function(i,s,y){typeof s!="string"&&typeof s!="number"&&(s=s==null?this.options.smartIndent?"smart":"prev":s?"add":"subtract"),Qt(this.doc,i)&&oa(this,i,s,y)}),indentSelection:Oi(function(i){for(var s=this.doc.sel.ranges,y=-1,O=0;O<s.length;O++){var F=s[O];if(F.empty())F.head.line>y&&(oa(this,F.head.line,i,!0),y=F.head.line,O==this.doc.sel.primIndex&&fr(this));else{var Q=F.from(),ee=F.to(),we=Math.max(y,Q.line);y=Math.min(this.lastLine(),ee.line-(ee.ch?0:1))+1;for(var Ce=we;Ce<y;++Ce)oa(this,Ce,i);var tt=this.doc.sel.ranges;Q.ch==0&&s.length==tt.length&&tt[O].from().ch>0&&_a(this.doc,O,new Mn(Q,tt[O].to()),X)}}}),getTokenAt:function(i,s){return Lt(this,i,s)},getLineTokens:function(i,s){return Lt(this,gt(i),s,!0)},getTokenTypeAt:function(i){i=ar(this.doc,i);var s,y=Le(this,Kt(this.doc,i.line)),O=0,F=(y.length-1)/2,Q=i.ch;if(Q==0)s=y[2];else for(;;){var ee=O+F>>1;if((ee?y[2*ee-1]:0)>=Q)F=ee;else{if(!(y[2*ee+1]<Q)){s=y[2*ee+2];break}O=ee+1}}var we=s?s.indexOf("overlay "):-1;return we<0?s:we==0?null:s.slice(0,we-1)},getModeAt:function(i){var s=this.doc.mode;return s.innerMode?e.innerMode(s,this.getTokenAt(i).state).mode:s},getHelper:function(i,s){return this.getHelpers(i,s)[0]},getHelpers:function(i,s){var y=[];if(!o.hasOwnProperty(s))return y;var O=o[s],F=this.getModeAt(i);if(typeof F[s]=="string")O[F[s]]&&y.push(O[F[s]]);else if(F[s])for(var Q=0;Q<F[s].length;Q++){var ee=O[F[s][Q]];ee&&y.push(ee)}else F.helperType&&O[F.helperType]?y.push(O[F.helperType]):O[F.name]&&y.push(O[F.name]);for(var we=0;we<O._global.length;we++){var Ce=O._global[we];Ce.pred(F,this)&&Ft(y,Ce.val)==-1&&y.push(Ce.val)}return y},getStateAfter:function(i,s){var y=this.doc;return J(this,(i=ei(y,i??y.first+y.size-1))+1,s).state},cursorCoords:function(i,s){var y=this.doc.sel.primary();return Qr(this,i==null?y.head:typeof i=="object"?ar(this.doc,i):i?y.from():y.to(),s||"page")},charCoords:function(i,s){return eo(this,ar(this.doc,i),s||"page")},coordsChar:function(i,s){return Qi(this,(i=Do(this,i,s||"page")).left,i.top)},lineAtHeight:function(i,s){return i=Do(this,{top:i,left:0},s||"page").top,it(this.doc,i+this.display.viewOffset)},heightAtLine:function(i,s,y){var O,F=!1;if(typeof i=="number"){var Q=this.doc.first+this.doc.size-1;i<this.doc.first?i=this.doc.first:i>Q&&(i=Q,F=!0),O=Kt(this.doc,i)}else O=i;return yo(this,O,{top:0,left:0},s||"page",y||F).top+(F?this.doc.height-g(O):0)},defaultTextHeight:function(){return qi(this.display)},defaultCharWidth:function(){return ro(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(i,s,y,O,F){var Q,ee,we,Ce=this.display,tt=(i=Qr(this,ar(this.doc,i))).bottom,Xe=i.left;if(s.style.position="absolute",s.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(s),Ce.sizer.appendChild(s),O=="over")tt=i.top;else if(O=="above"||O=="near"){var bt=Math.max(Ce.wrapper.clientHeight,this.doc.height),ot=Math.max(Ce.sizer.clientWidth,Ce.lineSpace.clientWidth);(O=="above"||i.bottom+s.offsetHeight>bt)&&i.top>s.offsetHeight?tt=i.top-s.offsetHeight:i.bottom+s.offsetHeight<=bt&&(tt=i.bottom),Xe+s.offsetWidth>ot&&(Xe=ot-s.offsetWidth)}s.style.top=tt+"px",s.style.left=s.style.right="",F=="right"?(Xe=Ce.sizer.clientWidth-s.offsetWidth,s.style.right="0px"):(F=="left"?Xe=0:F=="middle"&&(Xe=(Ce.sizer.clientWidth-s.offsetWidth)/2),s.style.left=Xe+"px"),y&&(Q=this,ee={left:Xe,top:tt,right:Xe+s.offsetWidth,bottom:tt+s.offsetHeight},(we=Zt(Q,ee)).scrollTop!=null&&vn(Q,we.scrollTop),we.scrollLeft!=null&&wr(Q,we.scrollLeft))},triggerOnKeyDown:Oi(Ns),triggerOnKeyPress:Oi(Is),triggerOnKeyUp:Ls,triggerOnMouseDown:Oi(ws),execCommand:function(i){if(ta.hasOwnProperty(i))return ta[i].call(null,this)},triggerElectric:Oi(function(i){Ms(this,i)}),findPosH:function(i,s,y,O){var F=1;s<0&&(F=-1,s=-s);for(var Q=ar(this.doc,i),ee=0;ee<s&&!(Q=Ba(this.doc,Q,F,y,O)).hitSide;++ee);return Q},moveH:Oi(function(i,s){var y=this;this.extendSelectionsBy(function(O){return y.display.shift||y.doc.extend||O.empty()?Ba(y.doc,O.head,i,s,y.options.rtlMoveVisually):i<0?O.from():O.to()},De)}),deleteH:Oi(function(i,s){var y=this.doc.sel,O=this.doc;y.somethingSelected()?O.replaceSelection("",null,"+delete"):Uo(this,function(F){var Q=Ba(O,F.head,i,s,!1);return i<0?{from:Q,to:F.head}:{from:F.head,to:Q}})}),findPosV:function(i,s,y,O){var F=1,Q=O;s<0&&(F=-1,s=-s);for(var ee=ar(this.doc,i),we=0;we<s;++we){var Ce=Qr(this,ee,"div");if(Q==null?Q=Ce.left:Ce.left=Q,(ee=Gs(this,Ce,F,y)).hitSide)break}return ee},moveV:Oi(function(i,s){var y=this,O=this.doc,F=[],Q=!this.display.shift&&!O.extend&&O.sel.somethingSelected();if(O.extendSelectionsBy(function(we){if(Q)return i<0?we.from():we.to();var Ce=Qr(y,we.head,"div");we.goalColumn!=null&&(Ce.left=we.goalColumn),F.push(Ce.left);var tt=Gs(y,Ce,i,s);return s=="page"&&we==O.sel.primary()&&or(y,eo(y,tt,"div").top-Ce.top),tt},De),F.length)for(var ee=0;ee<O.sel.ranges.length;ee++)O.sel.ranges[ee].goalColumn=F[ee]}),findWordAt:function(i){var s=Kt(this.doc,i.line).text,y=i.ch,O=i.ch;if(s){var F=this.getHelper(i,"wordChars");i.sticky!="before"&&O!=s.length||!y?++O:--y;for(var Q=s.charAt(y),ee=xr(Q,F)?function(we){return xr(we,F)}:/\s/.test(Q)?function(we){return/\s/.test(we)}:function(we){return!/\s/.test(we)&&!xr(we)};y>0&&ee(s.charAt(y-1));)--y;for(;O<s.length&&ee(s.charAt(O));)++O}return new Mn(gt(i.line,y),gt(i.line,O))},toggleOverwrite:function(i){i!=null&&i==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ft(this.display.cursorDiv,"CodeMirror-overwrite"):D(this.display.cursorDiv,"CodeMirror-overwrite"),br(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Tt()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Oi(function(i,s){zr(this,i,s)}),getScrollInfo:function(){var i=this.display.scroller;return{left:i.scrollLeft,top:i.scrollTop,height:i.scrollHeight-li(this)-this.display.barHeight,width:i.scrollWidth-li(this)-this.display.barWidth,clientHeight:ii(this),clientWidth:Ii(this)}},scrollIntoView:Oi(function(i,s){i==null?(i={from:this.doc.sel.primary().head,to:null},s==null&&(s=this.options.cursorScrollMargin)):typeof i=="number"?i={from:gt(i,0),to:null}:i.from==null&&(i={from:i,to:null}),i.to||(i.to=i.from),i.margin=s||0,i.from.line!=null?function(y,O){Xr(y),y.curOp.scrollToPos=O}(this,i):$r(this,i.from,i.to,i.margin)}),setSize:Oi(function(i,s){var y=this,O=function(Q){return typeof Q=="number"||/^\d+$/.test(String(Q))?Q+"px":Q};i!=null&&(this.display.wrapper.style.width=O(i)),s!=null&&(this.display.wrapper.style.height=O(s)),this.options.lineWrapping&&ri(this);var F=this.display.viewFrom;this.doc.iter(F,this.display.viewTo,function(Q){if(Q.widgets){for(var ee=0;ee<Q.widgets.length;ee++)if(Q.widgets[ee].noHScroll){Xi(y,F,"widget");break}}++F}),this.curOp.forceUpdate=!0,br(this,"refresh",this)}),operation:function(i){return Di(this,i)},startOperation:function(){return Fi(this)},endOperation:function(){return Ki(this)},refresh:Oi(function(){var i=this.display.cachedTextHeight;Si(this),this.curOp.forceUpdate=!0,gi(this),zr(this,this.doc.scrollLeft,this.doc.scrollTop),ht(this.display),(i==null||Math.abs(i-qi(this.display))>.5||this.options.lineWrapping)&&_i(this),br(this,"refresh",this)}),swapDoc:Oi(function(i){var s=this.doc;return s.cm=null,this.state.selectingText&&this.state.selectingText(),za(this,i),gi(this),this.display.input.reset(),zr(this,i.scrollLeft,i.scrollTop),this.curOp.forceScroll=!0,Et(this,"swapDoc",this,s),s}),phrase:function(i){var s=this.options.phrases;return s&&Object.prototype.hasOwnProperty.call(s,i)?s[i]:i},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}},Yr(e),e.registerHelper=function(i,s,y){o.hasOwnProperty(i)||(o[i]=e[i]={_global:[]}),o[i][s]=y},e.registerGlobalHelper=function(i,s,y,O){e.registerHelper(i,s,O),o[i]._global.push({pred:y,val:O})}}(ui);var al="iter insert remove copy getEditor constructor".split(" ");for(var Ta in Ui.prototype)Ui.prototype.hasOwnProperty(Ta)&&Ft(al,Ta)<0&&(ui.prototype[Ta]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ui.prototype[Ta]));return Yr(Ui),ui.inputStyles={textarea:vi,contenteditable:Xn},ui.defineMode=function(e){ui.defaults.mode||e=="null"||(ui.defaults.mode=e),Rt.apply(this,arguments)},ui.defineMIME=function(e,t){Ot[e]=t},ui.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ui.defineMIME("text/plain","null"),ui.defineExtension=function(e,t){ui.prototype[e]=t},ui.defineDocExtension=function(e,t){Ui.prototype[e]=t},ui.fromTextArea=function(e,t){if((t=t?yt(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var o=Tt();t.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function i(){e.value=F.getValue()}var s;if(e.form&&(lr(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var y=e.form;s=y.submit;try{var O=y.submit=function(){i(),y.submit=s,y.submit(),y.submit=O}}catch{}}t.finishInit=function(Q){Q.save=i,Q.getTextArea=function(){return e},Q.toTextArea=function(){Q.toTextArea=isNaN,i(),e.parentNode.removeChild(Q.getWrapperElement()),e.style.display="",e.form&&(Dr(e.form,"submit",i),t.leaveSubmitMethodAlone||typeof e.form.submit!="function"||(e.form.submit=s))}},e.style.display="none";var F=ui(function(Q){return e.parentNode.insertBefore(Q,e.nextSibling)},t);return F},function(e){e.off=Dr,e.on=lr,e.wheelEventPixels=$i,e.Doc=Ui,e.splitLines=Ee,e.countColumn=Nt,e.findColumn=Ve,e.isWordChar=Bt,e.Pass=B,e.signal=br,e.Line=I,e.changeEnd=So,e.scrollbarModel=Ei,e.Pos=gt,e.cmpPos=Ht,e.modes=wt,e.mimeModes=Ot,e.resolveMode=tr,e.getMode=cr,e.modeExtensions=mr,e.extendMode=Wr,e.copyState=Br,e.startState=tn,e.innerMode=Rr,e.commands=ta,e.keyMap=vo,e.keyName=xs,e.isModifierKey=Es,e.lookupKey=Go,e.normalizeKeyMap=tl,e.StringStream=yr,e.SharedTextMarker=Ko,e.TextMarker=Co,e.LineWidget=Qo,e.e_preventDefault=kr,e.e_stopPropagation=Wn,e.e_stop=ln,e.addClass=ft,e.contains=dt,e.rmClass=D,e.keyNames=Ao}(ui),ui.version="5.55.0",ui}()},function(ke,de,b){var A=b(3).a.Symbol;de.a=A},function(ke,de,b){var A,_=b(44),U=b(3).a["__core-js_shared__"],R=(A=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",p=function(m){return!!R&&R in m},G=b(2),C=b(22),M=/^\[object .+?Constructor\]$/,ue=Function.prototype,x=Object.prototype,Y=ue.toString,ce=x.hasOwnProperty,K=RegExp("^"+Y.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=function(m){return!(!Object(G.a)(m)||p(m))&&(Object(_.a)(m)?K:M).test(Object(C.a)(m))},ie=function(m,S){return m==null?void 0:m[S]};de.a=function(m,S){var P=ie(m,S);return oe(P)?P:void 0}},function(ke,de,b){var A=b(44),_=b(43);de.a=function(U){return U!=null&&Object(_.a)(U.length)&&!Object(A.a)(U)}},function(ke,de,b){var A=b(8),_=Object.prototype,U=_.hasOwnProperty,R=_.toString,p=A.a?A.a.toStringTag:void 0,G=function(x){var Y=U.call(x,p),ce=x[p];try{x[p]=void 0;var K=!0}catch{}var oe=R.call(x);return K&&(Y?x[p]=ce:delete x[p]),oe},C=Object.prototype.toString,M=function(x){return C.call(x)},ue=A.a?A.a.toStringTag:void 0;de.a=function(x){return x==null?x===void 0?"[object Undefined]":"[object Null]":ue&&ue in Object(x)?G(x):M(x)}},function(ke,de,b){de.a=function(A,_){return A===_||A!=A&&_!=_}},function(ke,de,b){var A=b(68),_=b(80),U=b(10);de.a=function(R){return Object(U.a)(R)?Object(A.a)(R):Object(_.a)(R)}},function(ke,de,b){(function(A){var _=b(3),U=b(93),R=exports&&!exports.nodeType&&exports,p=R&&typeof A=="object"&&A&&!A.nodeType&&A,G=p&&p.exports===R?_.a.Buffer:void 0,C=(G?G.isBuffer:void 0)||U.a;de.a=C}).call(this,b(83)(ke))},function(ke,de,b){var A=b(11),_=b(6),U=function(M){return Object(_.a)(M)&&Object(A.a)(M)=="[object Arguments]"},R=Object.prototype,p=R.hasOwnProperty,G=R.propertyIsEnumerable,C=U(function(){return arguments}())?U:function(M){return Object(_.a)(M)&&p.call(M,"callee")&&!G.call(M,"callee")};de.a=C},function(ke,de){ke.exports=function(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}},function(ke,de,b){var A=b(11),_=b(6);de.a=function(U){return typeof U=="symbol"||Object(_.a)(U)&&Object(A.a)(U)=="[object Symbol]"}},function(ke,de,b){var A=b(26),_=function(){this.__data__=new A.a,this.size=0},U=function(x){var Y=this.__data__,ce=Y.delete(x);return this.size=Y.size,ce},R=function(x){return this.__data__.get(x)},p=function(x){return this.__data__.has(x)},G=b(28),C=b(34),M=function(x,Y){var ce=this.__data__;if(ce instanceof A.a){var K=ce.__data__;if(!G.a||K.length<199)return K.push([x,Y]),this.size=++ce.size,this;ce=this.__data__=new C.a(K)}return ce.set(x,Y),this.size=ce.size,this};function ue(x){var Y=this.__data__=new A.a(x);this.size=Y.size}ue.prototype.clear=_,ue.prototype.delete=U,ue.prototype.get=R,ue.prototype.has=p,ue.prototype.set=M,de.a=ue},function(ke,de,b){ke.exports=b(105)},function(ke,de,b){var A=b(9),_=b(3),U=Object(A.a)(_.a,"DataView"),R=b(28),p=Object(A.a)(_.a,"Promise"),G=Object(A.a)(_.a,"Set"),C=Object(A.a)(_.a,"WeakMap"),M=b(11),ue=b(22),x=Object(ue.a)(U),Y=Object(ue.a)(R.a),ce=Object(ue.a)(p),K=Object(ue.a)(G),oe=Object(ue.a)(C),ie=M.a;(U&&ie(new U(new ArrayBuffer(1)))!="[object DataView]"||R.a&&ie(new R.a)!="[object Map]"||p&&ie(p.resolve())!="[object Promise]"||G&&ie(new G)!="[object Set]"||C&&ie(new C)!="[object WeakMap]")&&(ie=function(m){var S=Object(M.a)(m),P=S=="[object Object]"?m.constructor:void 0,q=P?Object(ue.a)(P):"";if(q)switch(q){case x:return"[object DataView]";case Y:return"[object Map]";case ce:return"[object Promise]";case K:return"[object Set]";case oe:return"[object WeakMap]"}return S}),de.a=ie},function(ke,de){function b(A){return ke.exports=b=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},b(A)}ke.exports=b},function(ke,de,b){var A=Function.prototype.toString;de.a=function(_){if(_!=null){try{return A.call(_)}catch{}try{return _+""}catch{}}return""}},function(ke,de,b){var A="http://www.w3.org/1999/02/22-rdf-syntax-ns#",_="http://www.w3.org/2001/XMLSchema#",U="http://www.w3.org/2000/10/swap/";de.a={xsd:{decimal:_+"decimal",boolean:_+"boolean",double:_+"double",integer:_+"integer",string:_+"string"},rdf:{type:A+"type",nil:A+"nil",first:A+"first",rest:A+"rest",langString:A+"langString"},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:U+"reify#forSome",forAll:U+"reify#forAll"},log:{implies:U+"log#implies"}}},function(ke,de,b){var A=b(17);de.a=function(_){if(typeof _=="string"||Object(A.a)(_))return _;var U=_+"";return U=="0"&&1/_==-1/0?"-0":U}},function(ke,de,b){de.a=function(A){return A}},function(ke,de,b){var A=function(){this.__data__=[],this.size=0},_=b(12),U=function(x,Y){for(var ce=x.length;ce--;)if(Object(_.a)(x[ce][0],Y))return ce;return-1},R=Array.prototype.splice,p=function(x){var Y=this.__data__,ce=U(Y,x);return!(ce<0)&&(ce==Y.length-1?Y.pop():R.call(Y,ce,1),--this.size,!0)},G=function(x){var Y=this.__data__,ce=U(Y,x);return ce<0?void 0:Y[ce][1]},C=function(x){return U(this.__data__,x)>-1},M=function(x,Y){var ce=this.__data__,K=U(ce,x);return K<0?(++this.size,ce.push([x,Y])):ce[K][1]=Y,this};function ue(x){var Y=-1,ce=x==null?0:x.length;for(this.clear();++Y<ce;){var K=x[Y];this.set(K[0],K[1])}}ue.prototype.clear=A,ue.prototype.delete=p,ue.prototype.get=G,ue.prototype.has=C,ue.prototype.set=M,de.a=ue},function(ke,de,b){var A=b(8),_=b(60),U=b(1),R=b(17),p=A.a?A.a.prototype:void 0,G=p?p.toString:void 0,C=function M(ue){if(typeof ue=="string")return ue;if(Object(U.a)(ue))return Object(_.a)(ue,M)+"";if(Object(R.a)(ue))return G?G.call(ue):"";var x=ue+"";return x=="0"&&1/ue==-1/0?"-0":x};de.a=function(M){return M==null?"":C(M)}},function(ke,de,b){var A=b(9),_=b(3),U=Object(A.a)(_.a,"Map");de.a=U},,function(ke,de,b){var A=Object.prototype;de.a=function(_){var U=_&&_.constructor;return _===(typeof U=="function"&&U.prototype||A)}},function(ke,de,b){var A=b(48);de.a=function(_,U,R){U=="__proto__"&&A.a?Object(A.a)(_,U,{configurable:!0,enumerable:!0,value:R,writable:!0}):_[U]=R}},function(ke,de,b){var A=b(67),_=b(31);de.a=function(U,R,p,G){var C=!p;p||(p={});for(var M=-1,ue=R.length;++M<ue;){var x=R[M],Y=G?G(p[x],U[x],x,p,U):void 0;Y===void 0&&(Y=U[x]),C?Object(_.a)(p,x,Y):Object(A.a)(p,x,Y)}return p}},function(ke,de,b){var A=b(11),_=b(43),U=b(6),R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Arguments]"]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object Boolean]"]=R["[object DataView]"]=R["[object Date]"]=R["[object Error]"]=R["[object Function]"]=R["[object Map]"]=R["[object Number]"]=R["[object Object]"]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object WeakMap]"]=!1;var p=function(x){return Object(U.a)(x)&&Object(_.a)(x.length)&&!!R[Object(A.a)(x)]},G=b(45),C=b(35),M=C.a&&C.a.isTypedArray,ue=M?Object(G.a)(M):p;de.a=ue},function(ke,de,b){var A=b(9),_=Object(A.a)(Object,"create"),U=function(){this.__data__=_?_(null):{},this.size=0},R=function(h){var ne=this.has(h)&&delete this.__data__[h];return this.size-=ne?1:0,ne},p=Object.prototype.hasOwnProperty,G=function(h){var ne=this.__data__;if(_){var Ge=ne[h];return Ge==="__lodash_hash_undefined__"?void 0:Ge}return p.call(ne,h)?ne[h]:void 0},C=Object.prototype.hasOwnProperty,M=function(h){var ne=this.__data__;return _?ne[h]!==void 0:C.call(ne,h)},ue=function(h,ne){var Ge=this.__data__;return this.size+=this.has(h)?0:1,Ge[h]=_&&ne===void 0?"__lodash_hash_undefined__":ne,this};function x(h){var ne=-1,Ge=h==null?0:h.length;for(this.clear();++ne<Ge;){var me=h[ne];this.set(me[0],me[1])}}x.prototype.clear=U,x.prototype.delete=R,x.prototype.get=G,x.prototype.has=M,x.prototype.set=ue;var Y=x,ce=b(26),K=b(28),oe=function(){this.size=0,this.__data__={hash:new Y,map:new(K.a||ce.a),string:new Y}},ie=function(h){var ne=typeof h;return ne=="string"||ne=="number"||ne=="symbol"||ne=="boolean"?h!=="__proto__":h===null},m=function(h,ne){var Ge=h.__data__;return ie(ne)?Ge[typeof ne=="string"?"string":"hash"]:Ge.map},S=function(h){var ne=m(this,h).delete(h);return this.size-=ne?1:0,ne},P=function(h){return m(this,h).get(h)},q=function(h){return m(this,h).has(h)},te=function(h,ne){var Ge=m(this,h),me=Ge.size;return Ge.set(h,ne),this.size+=Ge.size==me?0:1,this};function Z(h){var ne=-1,Ge=h==null?0:h.length;for(this.clear();++ne<Ge;){var me=h[ne];this.set(me[0],me[1])}}Z.prototype.clear=oe,Z.prototype.delete=S,Z.prototype.get=P,Z.prototype.has=q,Z.prototype.set=te,de.a=Z},function(ke,de,b){(function(A){var _=b(63),U=exports&&!exports.nodeType&&exports,R=U&&typeof A=="object"&&A&&!A.nodeType&&A,p=R&&R.exports===U&&_.a.process,G=function(){try{var C=R&&R.require&&R.require("util").types;return C||p&&p.binding&&p.binding("util")}catch{}}();de.a=G}).call(this,b(83)(ke))},function(ke,de,b){var A=b(138),_=b(120),U=b(94),R=b(139);ke.exports=function(p){return A(p)||_(p)||U(p)||R()}},function(ke,de,b){var A=/^(?:0|[1-9]\d*)$/;de.a=function(_,U){var R=typeof _;return!!(U=U??9007199254740991)&&(R=="number"||R!="symbol"&&A.test(_))&&_>-1&&_%1==0&&_<U}},function(ke,de,b){var A=b(68),_=b(2),U=b(30),R=function(M){var ue=[];if(M!=null)for(var x in Object(M))ue.push(x);return ue},p=Object.prototype.hasOwnProperty,G=function(M){if(!Object(_.a)(M))return R(M);var ue=Object(U.a)(M),x=[];for(var Y in M)(Y!="constructor"||!ue&&p.call(M,Y))&&x.push(Y);return x},C=b(10);de.a=function(M){return Object(C.a)(M)?Object(A.a)(M,!0):G(M)}},function(ke,de,b){function A(q){return(A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(q)}var _;typeof window<"u"?_=window:typeof self>"u"?(console.warn("Using browser-only version of superagent in non-browser environment"),_=void 0):_=self;var U=b(151),R=b(152),p=b(153),G=b(121),C=b(154),M=b(156);function ue(){}ke.exports=function(q,te){return typeof te=="function"?new de.Request("GET",q).end(te):arguments.length===1?new de.Request("GET",q):new de.Request(q,te)};var x=de=ke.exports;de.Request=S,x.getXHR=function(){if(_.XMLHttpRequest&&(!_.location||_.location.protocol!=="file:"||!_.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw new Error("Browser-only version of superagent could not find XHR")};var Y="".trim?function(q){return q.trim()}:function(q){return q.replace(/(^\s*|\s*$)/g,"")};function ce(q){if(!G(q))return q;var te=[];for(var Z in q)Object.prototype.hasOwnProperty.call(q,Z)&&K(te,Z,q[Z]);return te.join("&")}function K(q,te,Z){if(Z!==void 0)if(Z!==null)if(Array.isArray(Z))Z.forEach(function(ne){K(q,te,ne)});else if(G(Z))for(var h in Z)Object.prototype.hasOwnProperty.call(Z,h)&&K(q,"".concat(te,"[").concat(h,"]"),Z[h]);else q.push(encodeURI(te)+"="+encodeURIComponent(Z));else q.push(encodeURI(te))}function oe(q){for(var te,Z,h={},ne=q.split("&"),Ge=0,me=ne.length;Ge<me;++Ge)(Z=(te=ne[Ge]).indexOf("="))===-1?h[decodeURIComponent(te)]="":h[decodeURIComponent(te.slice(0,Z))]=decodeURIComponent(te.slice(Z+1));return h}function ie(q){return/[/+]json($|[^-\w])/.test(q)}function m(q){this.req=q,this.xhr=this.req.xhr,this.text=this.req.method!=="HEAD"&&(this.xhr.responseType===""||this.xhr.responseType==="text")||this.xhr.responseType===void 0?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var te=this.xhr.status;te===1223&&(te=204),this._setStatusProperties(te),this.headers=function(Z){for(var h,ne,Ge,me,xe=Z.split(/\r?\n/),D={},se=0,re=xe.length;se<re;++se)(h=(ne=xe[se]).indexOf(":"))!==-1&&(Ge=ne.slice(0,h).toLowerCase(),me=Y(ne.slice(h+1)),D[Ge]=me);return D}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.text===null&&q._responseType?this.body=this.xhr.response:this.body=this.req.method==="HEAD"?null:this._parseBody(this.text?this.text:this.xhr.response)}function S(q,te){var Z=this;this._query=this._query||[],this.method=q,this.url=te,this.header={},this._header={},this.on("end",function(){var h,ne=null,Ge=null;try{Ge=new m(Z)}catch(me){return(ne=new Error("Parser is unable to parse the response")).parse=!0,ne.original=me,Z.xhr?(ne.rawResponse=Z.xhr.responseType===void 0?Z.xhr.responseText:Z.xhr.response,ne.status=Z.xhr.status?Z.xhr.status:null,ne.statusCode=ne.status):(ne.rawResponse=null,ne.status=null),Z.callback(ne)}Z.emit("response",Ge);try{Z._isResponseOK(Ge)||(h=new Error(Ge.statusText||Ge.text||"Unsuccessful HTTP response"))}catch(me){h=me}h?(h.original=ne,h.response=Ge,h.status=Ge.status,Z.callback(h,Ge)):Z.callback(null,Ge)})}function P(q,te,Z){var h=x("DELETE",q);return typeof te=="function"&&(Z=te,te=null),te&&h.send(te),Z&&h.end(Z),h}x.serializeObject=ce,x.parseString=oe,x.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},x.serialize={"application/x-www-form-urlencoded":ce,"application/json":R},x.parse={"application/x-www-form-urlencoded":oe,"application/json":JSON.parse},C(m.prototype),m.prototype._parseBody=function(q){var te=x.parse[this.type];return this.req._parser?this.req._parser(this,q):(!te&&ie(this.type)&&(te=x.parse["application/json"]),te&&q&&(q.length>0||q instanceof Object)?te(q):null)},m.prototype.toError=function(){var q=this.req,te=q.method,Z=q.url,h="cannot ".concat(te," ").concat(Z," (").concat(this.status,")"),ne=new Error(h);return ne.status=this.status,ne.method=te,ne.url=Z,ne},x.Response=m,U(S.prototype),p(S.prototype),S.prototype.type=function(q){return this.set("Content-Type",x.types[q]||q),this},S.prototype.accept=function(q){return this.set("Accept",x.types[q]||q),this},S.prototype.auth=function(q,te,Z){arguments.length===1&&(te=""),A(te)==="object"&&te!==null&&(Z=te,te=""),Z||(Z={type:typeof btoa=="function"?"basic":"auto"});var h=function(ne){if(typeof btoa=="function")return btoa(ne);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(q,te,Z,h)},S.prototype.query=function(q){return typeof q!="string"&&(q=ce(q)),q&&this._query.push(q),this},S.prototype.attach=function(q,te,Z){if(te){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(q,te,Z||te.name)}return this},S.prototype._getFormData=function(){return this._formData||(this._formData=new _.FormData),this._formData},S.prototype.callback=function(q,te){if(this._shouldRetry(q,te))return this._retry();var Z=this._callback;this.clearTimeout(),q&&(this._maxRetries&&(q.retries=this._retries-1),this.emit("error",q)),Z(q,te)},S.prototype.crossDomainError=function(){var q=new Error(`Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.`);q.crossDomain=!0,q.status=this.status,q.method=this.method,q.url=this.url,this.callback(q)},S.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},S.prototype.ca=S.prototype.agent,S.prototype.buffer=S.prototype.ca,S.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},S.prototype.pipe=S.prototype.write,S.prototype._isHost=function(q){return q&&A(q)==="object"&&!Array.isArray(q)&&Object.prototype.toString.call(q)!=="[object Object]"},S.prototype.end=function(q){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=q||ue,this._finalizeQueryString(),this._end()},S.prototype._setUploadTimeout=function(){var q=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){q._timeoutError("Upload timeout of ",q._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},S.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var q=this;this.xhr=x.getXHR();var te=this.xhr,Z=this._formData||this._data;this._setTimeouts(),te.onreadystatechange=function(){var xe=te.readyState;if(xe>=2&&q._responseTimeoutTimer&&clearTimeout(q._responseTimeoutTimer),xe===4){var D;try{D=te.status}catch{D=0}if(!D)return q.timedout||q._aborted?void 0:q.crossDomainError();q.emit("end")}};var h=function(xe,D){D.total>0&&(D.percent=D.loaded/D.total*100,D.percent===100&&clearTimeout(q._uploadTimeoutTimer)),D.direction=xe,q.emit("progress",D)};if(this.hasListeners("progress"))try{te.addEventListener("progress",h.bind(null,"download")),te.upload&&te.upload.addEventListener("progress",h.bind(null,"upload"))}catch{}te.upload&&this._setUploadTimeout();try{this.username&&this.password?te.open(this.method,this.url,!0,this.username,this.password):te.open(this.method,this.url,!0)}catch(xe){return this.callback(xe)}if(this._withCredentials&&(te.withCredentials=!0),!this._formData&&this.method!=="GET"&&this.method!=="HEAD"&&typeof Z!="string"&&!this._isHost(Z)){var ne=this._header["content-type"],Ge=this._serializer||x.serialize[ne?ne.split(";")[0]:""];!Ge&&ie(ne)&&(Ge=x.serialize["application/json"]),Ge&&(Z=Ge(Z))}for(var me in this.header)this.header[me]!==null&&Object.prototype.hasOwnProperty.call(this.header,me)&&te.setRequestHeader(me,this.header[me]);this._responseType&&(te.responseType=this._responseType),this.emit("request",this),te.send(Z===void 0?null:Z)},x.agent=function(){return new M},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(q){M.prototype[q.toLowerCase()]=function(te,Z){var h=new x.Request(q,te);return this._setDefaults(h),Z&&h.end(Z),h}}),M.prototype.del=M.prototype.delete,x.get=function(q,te,Z){var h=x("GET",q);return typeof te=="function"&&(Z=te,te=null),te&&h.query(te),Z&&h.end(Z),h},x.head=function(q,te,Z){var h=x("HEAD",q);return typeof te=="function"&&(Z=te,te=null),te&&h.query(te),Z&&h.end(Z),h},x.options=function(q,te,Z){var h=x("OPTIONS",q);return typeof te=="function"&&(Z=te,te=null),te&&h.send(te),Z&&h.end(Z),h},x.del=P,x.delete=P,x.patch=function(q,te,Z){var h=x("PATCH",q);return typeof te=="function"&&(Z=te,te=null),te&&h.send(te),Z&&h.end(Z),h},x.post=function(q,te,Z){var h=x("POST",q);return typeof te=="function"&&(Z=te,te=null),te&&h.send(te),Z&&h.end(Z),h},x.put=function(q,te,Z){var h=x("PUT",q);return typeof te=="function"&&(Z=te,te=null),te&&h.send(te),Z&&h.end(Z),h}},function(ke,de,b){(function(A){var _=Object.assign?Object.assign:function(x,Y,ce,K){for(var oe=1;oe<arguments.length;oe++)C(Object(arguments[oe]),function(ie,m){x[m]=ie});return x},U=function(){if(Object.create)return function(x,Y,ce,K){var oe=G(arguments,1);return _.apply(this,[Object.create(x)].concat(oe))};{let x=function(){};return function(Y,ce,K,oe){var ie=G(arguments,1);return x.prototype=Y,_.apply(this,[new x].concat(ie))}}}(),R=String.prototype.trim?function(x){return String.prototype.trim.call(x)}:function(x){return x.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},p=typeof window<"u"?window:A;function G(x,Y){return Array.prototype.slice.call(x,Y||0)}function C(x,Y){M(x,function(ce,K){return Y(ce,K),!1})}function M(x,Y){if(ue(x)){for(var ce=0;ce<x.length;ce++)if(Y(x[ce],ce))return x[ce]}else for(var K in x)if(x.hasOwnProperty(K)&&Y(x[K],K))return x[K]}function ue(x){return x!=null&&typeof x!="function"&&typeof x.length=="number"}ke.exports={assign:_,create:U,trim:R,bind:function(x,Y){return function(){return Y.apply(x,Array.prototype.slice.call(arguments,0))}},slice:G,each:C,map:function(x,Y){var ce=ue(x)?[]:{};return M(x,function(K,oe){return ce[oe]=Y(K,oe),!1}),ce},pluck:M,isList:ue,isFunction:function(x){return x&&{}.toString.call(x)==="[object Function]"},isObject:function(x){return x&&{}.toString.call(x)==="[object Object]"},Global:p}}).call(this,b(72))},function(ke,de,b){var A=b(104);ke.exports=function(_,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(U&&U.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),U&&A(_,U)}},function(ke,de,b){var A=b(49),_=b(16);ke.exports=function(U,R){return!R||A(R)!=="object"&&typeof R!="function"?_(U):R}},function(ke,de,b){de.a=function(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=9007199254740991}},function(ke,de,b){var A=b(11),_=b(2);de.a=function(U){if(!Object(_.a)(U))return!1;var R=Object(A.a)(U);return R=="[object Function]"||R=="[object GeneratorFunction]"||R=="[object AsyncFunction]"||R=="[object Proxy]"}},function(ke,de,b){de.a=function(A){return function(_){return A(_)}}},function(ke,de,b){var A=b(1),_=b(17),U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/;de.a=function(p,G){if(Object(A.a)(p))return!1;var C=typeof p;return!(C!="number"&&C!="symbol"&&C!="boolean"&&p!=null&&!Object(_.a)(p))||R.test(p)||!U.test(p)||G!=null&&p in Object(G)}},function(ke,de,b){var A=b(3).a.Uint8Array;de.a=A},function(ke,de,b){var A=b(9),_=function(){try{var U=Object(A.a)(Object,"defineProperty");return U({},"",{}),U}catch{}}();de.a=_},function(ke,de){function b(A){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ke.exports=b=function(_){return typeof _}:ke.exports=b=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},b(A)}ke.exports=b},function(ke,de,b){function A(m,S){return function(P){if(Array.isArray(P))return P}(m)||function(P,q){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(P)))){var te=[],Z=!0,h=!1,ne=void 0;try{for(var Ge,me=P[Symbol.iterator]();!(Z=(Ge=me.next()).done)&&(te.push(Ge.value),!q||te.length!==q);Z=!0);}catch(xe){h=!0,ne=xe}finally{try{Z||me.return==null||me.return()}finally{if(h)throw ne}}return te}}(m,S)||R(m,S)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(m){return(_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(m)}function U(m){return function(S){if(Array.isArray(S))return p(S)}(m)||function(S){if(typeof Symbol<"u"&&Symbol.iterator in Object(S))return Array.from(S)}(m)||R(m)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R(m,S){if(m){if(typeof m=="string")return p(m,S);var P=Object.prototype.toString.call(m).slice(8,-1);return P==="Object"&&m.constructor&&(P=m.constructor.name),P==="Map"||P==="Set"?Array.from(m):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?p(m,S):void 0}}function p(m,S){(S==null||S>m.length)&&(S=m.length);for(var P=0,q=new Array(S);P<S;P++)q[P]=m[P];return q}var G=b(157),C=b(158),M=b(159);function ue(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function x(m,S){return S.encode?S.strict?G(m):encodeURIComponent(m):m}function Y(m,S){return S.decode?C(m):m}function ce(m){var S=m.indexOf("#");return S!==-1&&(m=m.slice(0,S)),m}function K(m){var S=(m=ce(m)).indexOf("?");return S===-1?"":m.slice(S+1)}function oe(m,S){return S.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):!S.parseBooleans||m===null||m.toLowerCase()!=="true"&&m.toLowerCase()!=="false"||(m=m.toLowerCase()==="true"),m}function ie(m,S){ue((S=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},S)).arrayFormatSeparator);var P=function(Tt){var ft;switch(Tt.arrayFormat){case"index":return function(Ke,nt,mt){ft=/\[(\d*)\]$/.exec(Ke),Ke=Ke.replace(/\[\d*\]$/,""),ft?(mt[Ke]===void 0&&(mt[Ke]={}),mt[Ke][ft[1]]=nt):mt[Ke]=nt};case"bracket":return function(Ke,nt,mt){ft=/(\[\])$/.exec(Ke),Ke=Ke.replace(/\[\]$/,""),ft?mt[Ke]!==void 0?mt[Ke]=[].concat(mt[Ke],nt):mt[Ke]=[nt]:mt[Ke]=nt};case"comma":case"separator":return function(Ke,nt,mt){var yt=typeof nt=="string"&&nt.split("").indexOf(Tt.arrayFormatSeparator)>-1?nt.split(Tt.arrayFormatSeparator).map(function(Nt){return Y(Nt,Tt)}):nt===null?nt:Y(nt,Tt);mt[Ke]=yt};default:return function(Ke,nt,mt){mt[Ke]!==void 0?mt[Ke]=[].concat(mt[Ke],nt):mt[Ke]=nt}}}(S),q=Object.create(null);if(typeof m!="string"||!(m=m.trim().replace(/^[?#&]/,"")))return q;var te,Z=function(Tt,ft){var Ke;if(typeof Symbol>"u"||Tt[Symbol.iterator]==null){if(Array.isArray(Tt)||(Ke=R(Tt))||ft){Ke&&(Tt=Ke);var nt=0,mt=function(){};return{s:mt,n:function(){return nt>=Tt.length?{done:!0}:{done:!1,value:Tt[nt++]}},e:function(Ft){throw Ft},f:mt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yt,Nt=!0,at=!1;return{s:function(){Ke=Tt[Symbol.iterator]()},n:function(){var Ft=Ke.next();return Nt=Ft.done,Ft},e:function(Ft){at=!0,yt=Ft},f:function(){try{Nt||Ke.return==null||Ke.return()}finally{if(at)throw yt}}}}(m.split("&"));try{for(Z.s();!(te=Z.n()).done;){var h=te.value,ne=A(M(S.decode?h.replace(/\+/g," "):h,"="),2),Ge=ne[0],me=ne[1];me=me===void 0?null:["comma","separator"].includes(S.arrayFormat)?me:Y(me,S),P(Y(Ge,S),me,q)}}catch(Tt){Z.e(Tt)}finally{Z.f()}for(var xe=0,D=Object.keys(q);xe<D.length;xe++){var se=D[xe],re=q[se];if(_(re)==="object"&&re!==null)for(var be=0,$e=Object.keys(re);be<$e.length;be++){var dt=$e[be];re[dt]=oe(re[dt],S)}else q[se]=oe(re,S)}return S.sort===!1?q:(S.sort===!0?Object.keys(q).sort():Object.keys(q).sort(S.sort)).reduce(function(Tt,ft){var Ke=q[ft];return Ke&&_(Ke)==="object"&&!Array.isArray(Ke)?Tt[ft]=function nt(mt){return Array.isArray(mt)?mt.sort():_(mt)==="object"?nt(Object.keys(mt)).sort(function(yt,Nt){return Number(yt)-Number(Nt)}).map(function(yt){return mt[yt]}):mt}(Ke):Tt[ft]=Ke,Tt},Object.create(null))}de.extract=K,de.parse=ie,de.stringify=function(m,S){if(!m)return"";ue((S=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},S)).arrayFormatSeparator);for(var P=function(me){return S.skipNull&&m[me]==null||S.skipEmptyString&&m[me]===""},q=function(me){switch(me.arrayFormat){case"index":return function(xe){return function(D,se){var re=D.length;return se===void 0||me.skipNull&&se===null||me.skipEmptyString&&se===""?D:[].concat(U(D),se===null?[[x(xe,me),"[",re,"]"].join("")]:[[x(xe,me),"[",x(re,me),"]=",x(se,me)].join("")])}};case"bracket":return function(xe){return function(D,se){return se===void 0||me.skipNull&&se===null||me.skipEmptyString&&se===""?D:[].concat(U(D),se===null?[[x(xe,me),"[]"].join("")]:[[x(xe,me),"[]=",x(se,me)].join("")])}};case"comma":case"separator":return function(xe){return function(D,se){return se==null||se.length===0?D:D.length===0?[[x(xe,me),"=",x(se,me)].join("")]:[[D,x(se,me)].join(me.arrayFormatSeparator)]}};default:return function(xe){return function(D,se){return se===void 0||me.skipNull&&se===null||me.skipEmptyString&&se===""?D:[].concat(U(D),se===null?[x(xe,me)]:[[x(xe,me),"=",x(se,me)].join("")])}}}}(S),te={},Z=0,h=Object.keys(m);Z<h.length;Z++){var ne=h[Z];P(ne)||(te[ne]=m[ne])}var Ge=Object.keys(te);return S.sort!==!1&&Ge.sort(S.sort),Ge.map(function(me){var xe=m[me];return xe===void 0?"":xe===null?x(me,S):Array.isArray(xe)?xe.reduce(q(me),[]).join("&"):x(me,S)+"="+x(xe,S)}).filter(function(me){return me.length>0}).join("&")},de.parseUrl=function(m,S){S=Object.assign({decode:!0},S);var P=A(M(m,"#"),2),q=P[0],te=P[1];return Object.assign({url:q.split("?")[0]||"",query:ie(K(m),S)},S&&S.parseFragmentIdentifier&&te?{fragmentIdentifier:Y(te,S)}:{})},de.stringifyUrl=function(m,S){S=Object.assign({encode:!0,strict:!0},S);var P=ce(m.url).split("?")[0]||"",q=de.extract(m.url),te=de.parse(q,{sort:!1}),Z=Object.assign(te,m.query),h=de.stringify(Z,S);h&&(h="?".concat(h));var ne=function(Ge){var me="",xe=Ge.indexOf("#");return xe!==-1&&(me=Ge.slice(xe)),me}(m.url);return m.fragmentIdentifier&&(ne="#".concat(x(m.fragmentIdentifier,S))),"".concat(P).concat(h).concat(ne)}},function(ke,de,b){var A=b(65),_=Object(A.a)(Object.getPrototypeOf,Object);de.a=_},function(ke,de,b){var A=b(18),_=b(59),U=function(Z,h,ne,Ge){var me=ne.length,xe=me;if(Z==null)return!xe;for(Z=Object(Z);me--;){var D=ne[me];if(D[2]?D[1]!==Z[D[0]]:!(D[0]in Z))return!1}for(;++me<xe;){var se=(D=ne[me])[0],re=Z[se],be=D[1];if(D[2]){if(re===void 0&&!(se in Z))return!1}else{var $e=new A.a,dt;if(!(dt===void 0?Object(_.a)(be,re,3,Ge,$e):dt))return!1}}return!0},R=b(2),p=function(Z){return Z==Z&&!Object(R.a)(Z)},G=b(13),C=function(Z){for(var h=Object(G.a)(Z),ne=h.length;ne--;){var Ge=h[ne],me=Z[Ge];h[ne]=[Ge,me,p(me)]}return h},M=function(Z,h){return function(ne){return ne!=null&&ne[Z]===h&&(h!==void 0||Z in Object(ne))}},ue=function(Z){var h=C(Z);return h.length==1&&h[0][2]?M(h[0][0],h[0][1]):function(ne){return ne===Z||U(ne,Z,h)}},x=b(55),Y=function(Z,h,ne){var Ge=Z==null?void 0:Object(x.a)(Z,h);return Ge===void 0?ne:Ge},ce=b(88),K=b(46),oe=b(24),ie=function(Z,h){return Object(K.a)(Z)&&p(h)?M(Object(oe.a)(Z),h):function(ne){var Ge=Y(ne,Z);return Ge===void 0&&Ge===h?Object(ce.a)(ne,Z):Object(_.a)(h,Ge,3)}},m=b(25),S=b(1),P=function(Z){return function(h){return h==null?void 0:h[Z]}},q=function(Z){return function(h){return Object(x.a)(h,Z)}},te=function(Z){return Object(K.a)(Z)?P(Object(oe.a)(Z)):q(Z)};de.a=function(Z){return typeof Z=="function"?Z:Z==null?m.a:typeof Z=="object"?Object(S.a)(Z)?ie(Z[0],Z[1]):ue(Z):te(Z)}},function(ke,de,b){var A=b(1),_=b(46),U=b(34);function R(x,Y){if(typeof x!="function"||Y!=null&&typeof Y!="function")throw new TypeError("Expected a function");var ce=function(){var K=arguments,oe=Y?Y.apply(this,K):K[0],ie=ce.cache;if(ie.has(oe))return ie.get(oe);var m=x.apply(this,K);return ce.cache=ie.set(oe,m)||ie,m};return ce.cache=new(R.Cache||U.a),ce}R.Cache=U.a;var p=R,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,M=function(x){var Y=p(x,function(K){return ce.size===500&&ce.clear(),K}),ce=Y.cache;return Y}(function(x){var Y=[];return x.charCodeAt(0)===46&&Y.push(""),x.replace(G,function(ce,K,oe,ie){Y.push(oe?ie.replace(C,"$1"):K||ce)}),Y}),ue=b(27);de.a=function(x,Y){return Object(A.a)(x)?x:Object(_.a)(x,Y)?[x]:M(Object(ue.a)(x))}},function(ke,de,b){var A,_=typeof Reflect=="object"?Reflect:null,U=_&&typeof _.apply=="function"?_.apply:function(ie,m,S){return Function.prototype.apply.call(ie,m,S)};A=_&&typeof _.ownKeys=="function"?_.ownKeys:Object.getOwnPropertySymbols?function(ie){return Object.getOwnPropertyNames(ie).concat(Object.getOwnPropertySymbols(ie))}:function(ie){return Object.getOwnPropertyNames(ie)};var R=Number.isNaN||function(ie){return ie!=ie};function p(){p.init.call(this)}ke.exports=p,p.EventEmitter=p,p.prototype._events=void 0,p.prototype._eventsCount=0,p.prototype._maxListeners=void 0;var G=10;function C(ie){if(typeof ie!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ie)}function M(ie){return ie._maxListeners===void 0?p.defaultMaxListeners:ie._maxListeners}function ue(ie,m,S,P){var q,te,Z,h;if(C(S),(te=ie._events)===void 0?(te=ie._events=Object.create(null),ie._eventsCount=0):(te.newListener!==void 0&&(ie.emit("newListener",m,S.listener?S.listener:S),te=ie._events),Z=te[m]),Z===void 0)Z=te[m]=S,++ie._eventsCount;else if(typeof Z=="function"?Z=te[m]=P?[S,Z]:[Z,S]:P?Z.unshift(S):Z.push(S),(q=M(ie))>0&&Z.length>q&&!Z.warned){Z.warned=!0;var ne=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");ne.name="MaxListenersExceededWarning",ne.emitter=ie,ne.type=m,ne.count=Z.length,h=ne,console&&console.warn&&console.warn(h)}return ie}function x(){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 Y(ie,m,S){var P={fired:!1,wrapFn:void 0,target:ie,type:m,listener:S},q=x.bind(P);return q.listener=S,P.wrapFn=q,q}function ce(ie,m,S){var P=ie._events;if(P===void 0)return[];var q=P[m];return q===void 0?[]:typeof q=="function"?S?[q.listener||q]:[q]:S?function(te){for(var Z=new Array(te.length),h=0;h<Z.length;++h)Z[h]=te[h].listener||te[h];return Z}(q):oe(q,q.length)}function K(ie){var m=this._events;if(m!==void 0){var S=m[ie];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}function oe(ie,m){for(var S=new Array(m),P=0;P<m;++P)S[P]=ie[P];return S}Object.defineProperty(p,"defaultMaxListeners",{enumerable:!0,get:function(){return G},set:function(ie){if(typeof ie!="number"||ie<0||R(ie))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ie+".");G=ie}}),p.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},p.prototype.setMaxListeners=function(ie){if(typeof ie!="number"||ie<0||R(ie))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ie+".");return this._maxListeners=ie,this},p.prototype.getMaxListeners=function(){return M(this)},p.prototype.emit=function(ie){for(var m=[],S=1;S<arguments.length;S++)m.push(arguments[S]);var P=ie==="error",q=this._events;if(q!==void 0)P=P&&q.error===void 0;else if(!P)return!1;if(P){var te;if(m.length>0&&(te=m[0]),te instanceof Error)throw te;var Z=new Error("Unhandled error."+(te?" ("+te.message+")":""));throw Z.context=te,Z}var h=q[ie];if(h===void 0)return!1;if(typeof h=="function")U(h,this,m);else{var ne=h.length,Ge=oe(h,ne);for(S=0;S<ne;++S)U(Ge[S],this,m)}return!0},p.prototype.addListener=function(ie,m){return ue(this,ie,m,!1)},p.prototype.on=p.prototype.addListener,p.prototype.prependListener=function(ie,m){return ue(this,ie,m,!0)},p.prototype.once=function(ie,m){return C(m),this.on(ie,Y(this,ie,m)),this},p.prototype.prependOnceListener=function(ie,m){return C(m),this.prependListener(ie,Y(this,ie,m)),this},p.prototype.removeListener=function(ie,m){var S,P,q,te,Z;if(C(m),(P=this._events)===void 0)return this;if((S=P[ie])===void 0)return this;if(S===m||S.listener===m)--this._eventsCount==0?this._events=Object.create(null):(delete P[ie],P.removeListener&&this.emit("removeListener",ie,S.listener||m));else if(typeof S!="function"){for(q=-1,te=S.length-1;te>=0;te--)if(S[te]===m||S[te].listener===m){Z=S[te].listener,q=te;break}if(q<0)return this;q===0?S.shift():function(h,ne){for(;ne+1<h.length;ne++)h[ne]=h[ne+1];h.pop()}(S,q),S.length===1&&(P[ie]=S[0]),P.removeListener!==void 0&&this.emit("removeListener",ie,Z||m)}return this},p.prototype.off=p.prototype.removeListener,p.prototype.removeAllListeners=function(ie){var m,S,P;if((S=this._events)===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[ie]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete S[ie]),this;if(arguments.length===0){var q,te=Object.keys(S);for(P=0;P<te.length;++P)(q=te[P])!=="removeListener"&&this.removeAllListeners(q);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(m=S[ie])=="function")this.removeListener(ie,m);else if(m!==void 0)for(P=m.length-1;P>=0;P--)this.removeListener(ie,m[P]);return this},p.prototype.listeners=function(ie){return ce(this,ie,!0)},p.prototype.rawListeners=function(ie){return ce(this,ie,!1)},p.listenerCount=function(ie,m){return typeof ie.listenerCount=="function"?ie.listenerCount(m):K.call(ie,m)},p.prototype.listenerCount=K,p.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]}},function(ke,de,b){var A=b(53),_=b(24);de.a=function(U,R){for(var p=0,G=(R=Object(A.a)(R,U)).length;U!=null&&p<G;)U=U[Object(_.a)(R[p++])];return p&&p==G?U:void 0}},function(ke,de,b){de.a=function(A,_){for(var U=-1,R=_.length,p=A.length;++U<R;)A[p+U]=_[U];return A}},function(ke,de,b){var A=b(75),_=b(74),U=Object.prototype.propertyIsEnumerable,R=Object.getOwnPropertySymbols,p=R?function(G){return G==null?[]:(G=Object(G),Object(A.a)(R(G),function(C){return U.call(G,C)}))}:_.a;de.a=p},function(ke,de,b){var A=b(47);de.a=function(_){var U=new _.constructor(_.byteLength);return new A.a(U).set(new A.a(_)),U}},function(ke,de,b){var A=b(18),_=b(34),U=function(re){return this.__data__.set(re,"__lodash_hash_undefined__"),this},R=function(re){return this.__data__.has(re)};function p(re){var be=-1,$e=re==null?0:re.length;for(this.__data__=new _.a;++be<$e;)this.add(re[be])}p.prototype.add=p.prototype.push=U,p.prototype.has=R;var G=p,C=function(re,be){for(var $e=-1,dt=re==null?0:re.length;++$e<dt;)if(be(re[$e],$e,re))return!0;return!1},M=function(re,be){return re.has(be)},ue=function(re,be,$e,dt,Tt,ft){var Ke=1&$e,nt=re.length,mt=be.length;if(nt!=mt&&!(Ke&&mt>nt))return!1;var yt=ft.get(re);if(yt&&ft.get(be))return yt==be;var Nt=-1,at=!0,Ft=2&$e?new G:void 0;for(ft.set(re,be),ft.set(be,re);++Nt<nt;){var B=re[Nt],X=be[Nt];if(dt)var he=Ke?dt(X,B,Nt,be,re,ft):dt(B,X,Nt,re,be,ft);if(he!==void 0){if(he)continue;at=!1;break}if(Ft){if(!C(be,function(De,Ve){if(!M(Ft,Ve)&&(B===De||Tt(B,De,$e,dt,ft)))return Ft.push(Ve)})){at=!1;break}}else if(B!==X&&!Tt(B,X,$e,dt,ft)){at=!1;break}}return ft.delete(re),ft.delete(be),at},x=b(8),Y=b(47),ce=b(12),K=b(84),oe=function(re){var be=-1,$e=Array(re.size);return re.forEach(function(dt){$e[++be]=dt}),$e},ie=x.a?x.a.prototype:void 0,m=ie?ie.valueOf:void 0,S=function(re,be,$e,dt,Tt,ft,Ke){switch($e){case"[object DataView]":if(re.byteLength!=be.byteLength||re.byteOffset!=be.byteOffset)return!1;re=re.buffer,be=be.buffer;case"[object ArrayBuffer]":return!(re.byteLength!=be.byteLength||!ft(new Y.a(re),new Y.a(be)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(ce.a)(+re,+be);case"[object Error]":return re.name==be.name&&re.message==be.message;case"[object RegExp]":case"[object String]":return re==be+"";case"[object Map]":var nt=K.a;case"[object Set]":var mt=1&dt;if(nt||(nt=oe),re.size!=be.size&&!mt)return!1;var yt=Ke.get(re);if(yt)return yt==be;dt|=2,Ke.set(re,be);var Nt=ue(nt(re),nt(be),dt,Tt,ft,Ke);return Ke.delete(re),Nt;case"[object Symbol]":if(m)return m.call(re)==m.call(be)}return!1},P=b(61),q=Object.prototype.hasOwnProperty,te=function(re,be,$e,dt,Tt,ft){var Ke=1&$e,nt=Object(P.a)(re),mt=nt.length;if(mt!=Object(P.a)(be).length&&!Ke)return!1;for(var yt=mt;yt--;){var Nt=nt[yt];if(!(Ke?Nt in be:q.call(be,Nt)))return!1}var at=ft.get(re);if(at&&ft.get(be))return at==be;var Ft=!0;ft.set(re,be),ft.set(be,re);for(var B=Ke;++yt<mt;){var X=re[Nt=nt[yt]],he=be[Nt];if(dt)var De=Ke?dt(he,X,Nt,be,re,ft):dt(X,he,Nt,re,be,ft);if(!(De===void 0?X===he||Tt(X,he,$e,dt,ft):De)){Ft=!1;break}B||(B=Nt=="constructor")}if(Ft&&!B){var Ve=re.constructor,Be=be.constructor;Ve==Be||!("constructor"in re)||!("constructor"in be)||typeof Ve=="function"&&Ve instanceof Ve&&typeof Be=="function"&&Be instanceof Be||(Ft=!1)}return ft.delete(re),ft.delete(be),Ft},Z=b(20),h=b(1),ne=b(14),Ge=b(33),me="[object Object]",xe=Object.prototype.hasOwnProperty,D=function(re,be,$e,dt,Tt,ft){var Ke=Object(h.a)(re),nt=Object(h.a)(be),mt=Ke?"[object Array]":Object(Z.a)(re),yt=nt?"[object Array]":Object(Z.a)(be),Nt=(mt=mt=="[object Arguments]"?me:mt)==me,at=(yt=yt=="[object Arguments]"?me:yt)==me,Ft=mt==yt;if(Ft&&Object(ne.a)(re)){if(!Object(ne.a)(be))return!1;Ke=!0,Nt=!1}if(Ft&&!Nt)return ft||(ft=new A.a),Ke||Object(Ge.a)(re)?ue(re,be,$e,dt,Tt,ft):S(re,be,mt,$e,dt,Tt,ft);if(!(1&$e)){var B=Nt&&xe.call(re,"__wrapped__"),X=at&&xe.call(be,"__wrapped__");if(B||X){var he=B?re.value():re,De=X?be.value():be;return ft||(ft=new A.a),Tt(he,De,$e,dt,ft)}}return!!Ft&&(ft||(ft=new A.a),te(re,be,$e,dt,Tt,ft))},se=b(6);de.a=function re(be,$e,dt,Tt,ft){return be===$e||(be==null||$e==null||!Object(se.a)(be)&&!Object(se.a)($e)?be!=be&&$e!=$e:D(be,$e,dt,Tt,re,ft))}},function(ke,de,b){de.a=function(A,_){for(var U=-1,R=A==null?0:A.length,p=Array(R);++U<R;)p[U]=_(A[U],U,A);return p}},function(ke,de,b){var A=b(73),_=b(57),U=b(13);de.a=function(R){return Object(A.a)(R,U.a,_.a)}},function(ke,de,b){b.r(de),b.d(de,"Parser",function(){return wt}),b.d(de,"Yasr",function(){return Lr}),b.d(de,"registerPlugin",function(){return Fn});var A=b(49),_=b.n(A),U=b(19),R=b.n(U),p=b(4),G=b.n(p),C=b(5),M=b.n(C),ue=b(41),x=b.n(ue),Y=b(42),ce=b.n(Y),K=b(21),oe=b.n(K),ie=b(54),m=b(170),S=b(27),P=0,q=function(Ye){var ye=++P;return Object(S.a)(Ye)+ye},te=b(75),Z=b(90),h=function(Ye,ye){var Le=[];return Object(Z.a)(Ye,function(J,H,Se){ye(J,H,Se)&&Le.push(J)}),Le},ne=b(52),Ge=b(1),me=function(Ye,ye){return(Object(Ge.a)(Ye)?te.a:h)(Ye,Object(ne.a)(ye,3))},xe=b(175),D=b(0),se=function(Ye,ye){if(typeof Ye=="string"){var Le=JSON.parse(Ye);if(ye)for(var J in Le.results.bindings)Le.results.bindings[J]=ye(Le.results.bindings[J]);return Le}if(_()(Ye)=="object"&&Ye.constructor==={}.constructor){if(ye&&Ye.results)for(var H in Ye.results.bindings)Ye.results.bindings[H]=ye(Ye.results.bindings[H]);return Ye}throw new Error("Could not parse json")},re=b(123),be=b(23);function $e(Ye){return($e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye})(Ye)}function dt(Ye,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");Ye.prototype=Object.create(ye&&ye.prototype,{constructor:{value:Ye,writable:!0,configurable:!0}}),ye&&Tt(Ye,ye)}function Tt(Ye,ye){return(Tt=Object.setPrototypeOf||function(Le,J){return Le.__proto__=J,Le})(Ye,ye)}function ft(Ye){var ye=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Le,J=mt(Ye);if(ye){var H=mt(this).constructor;Le=Reflect.construct(J,arguments,H)}else Le=J.apply(this,arguments);return Ke(this,Le)}}function Ke(Ye,ye){return!ye||$e(ye)!=="object"&&typeof ye!="function"?nt(Ye):ye}function nt(Ye){if(Ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ye}function mt(Ye){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)})(Ye)}function yt(Ye,ye){if(!(Ye instanceof ye))throw new TypeError("Cannot call a class as a function")}function Nt(Ye,ye){for(var Le=0;Le<ye.length;Le++){var J=ye[Le];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Ye,J.key,J)}}function at(Ye,ye,Le){return ye&&Nt(Ye.prototype,ye),Ye}var Ft,B=be.a.rdf,X=be.a.xsd,he=0,De={namedNode:function(Ye){return new ze(Ye)},blankNode:function(Ye){return new Ze(Ye||"n3-".concat(he++))},variable:function(Ye){return new Pt(Ye)},literal:function(Ye,ye){if(typeof ye=="string")return new lt('"'+Ye+'"@'+ye.toLowerCase());var Le=ye?ye.value:"";return Le===""&&(typeof Ye=="boolean"?Le=X.boolean:typeof Ye=="number"&&(Number.isFinite(Ye)?Le=Number.isInteger(Ye)?X.integer:X.double:(Le=X.double,Number.isNaN(Ye)||(Ye=Ye>0?"INF":"-INF")))),Le===""||Le===X.string?new lt('"'+Ye+'"'):new lt('"'+Ye+'"^^'+Le)},defaultGraph:function(){return Ft},quad:nr,triple:nr},Ve=De,Be=function(){function Ye(ye){yt(this,Ye),this.id=ye}return at(Ye,[{key:"equals",value:function(ye){return ye instanceof Ye?this.id===ye.id:!!ye&&this.termType===ye.termType&&this.value===ye.value}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value}}},{key:"value",get:function(){return this.id}}]),Ye}(),ze=function(Ye){dt(Le,Ye);var ye=ft(Le);function Le(){return yt(this,Le),ye.apply(this,arguments)}return at(Le,[{key:"termType",get:function(){return"NamedNode"}}]),Le}(Be),lt=function(Ye){dt(Le,Ye);var ye=ft(Le);function Le(){return yt(this,Le),ye.apply(this,arguments)}return at(Le,[{key:"equals",value:function(J){return J instanceof Le?this.id===J.id:!!J&&!!J.datatype&&this.termType===J.termType&&this.value===J.value&&this.language===J.language&&this.datatype.value===J.datatype.value}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}},{key:"termType",get:function(){return"Literal"}},{key:"value",get:function(){return this.id.substring(1,this.id.lastIndexOf('"'))}},{key:"language",get:function(){var J=this.id,H=J.lastIndexOf('"')+1;return H<J.length&&J[H++]==="@"?J.substr(H).toLowerCase():""}},{key:"datatype",get:function(){return new ze(this.datatypeString)}},{key:"datatypeString",get:function(){var J,H=this.id,Se=H.lastIndexOf('"')+1;return Se<H.length&&(J=H[Se])==="^"?H.substr(Se+2):J!=="@"?X.string:B.langString}}]),Le}(Be),Ze=function(Ye){dt(Le,Ye);var ye=ft(Le);function Le(J){return yt(this,Le),ye.call(this,"_:"+J)}return at(Le,[{key:"termType",get:function(){return"BlankNode"}},{key:"value",get:function(){return this.id.substr(2)}}]),Le}(Be),Pt=function(Ye){dt(Le,Ye);var ye=ft(Le);function Le(J){return yt(this,Le),ye.call(this,"?"+J)}return at(Le,[{key:"termType",get:function(){return"Variable"}},{key:"value",get:function(){return this.id.substr(1)}}]),Le}(Be);Ft=new(function(Ye){dt(Le,Ye);var ye=ft(Le);function Le(){var J;return yt(this,Le),Ke(J=ye.call(this,""),Ft||nt(J))}return at(Le,[{key:"equals",value:function(J){return this===J||!!J&&this.termType===J.termType}},{key:"termType",get:function(){return"DefaultGraph"}}]),Le}(Be));var jt=function(){function Ye(ye,Le,J,H){yt(this,Ye),this.subject=ye,this.predicate=Le,this.object=J,this.graph=H||Ft}return at(Ye,[{key:"toJSON",value:function(){return{subject:this.subject.toJSON(),predicate:this.predicate.toJSON(),object:this.object.toJSON(),graph:this.graph.toJSON()}}},{key:"equals",value:function(ye){return!!ye&&this.subject.equals(ye.subject)&&this.predicate.equals(ye.predicate)&&this.object.equals(ye.object)&&this.graph.equals(ye.graph)}}]),Ye}();function nr(Ye,ye,Le,J){return new jt(Ye,ye,Le,J)}function Bt(Ye,ye){for(var Le=0;Le<ye.length;Le++){var J=ye[Le];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Ye,J.key,J)}}var xr=0,Pr=function(){function Ye(H){(function(Oe,qe){if(!(Oe instanceof qe))throw new TypeError("Cannot call a class as a function")})(this,Ye),this._contextStack=[],this._graph=null,H=H||{},this._setBase(H.baseIRI),H.factory&&Cr(this,H.factory);var Se=typeof H.format=="string"?H.format.match(/\w*$/)[0].toLowerCase():"",Qe=Se==="turtle",ct=Se==="trig",Lt=/triple/.test(Se),w=/quad/.test(Se),k=this._n3Mode=/n3/.test(Se),ae=Lt||w;(this._supportsNamedGraphs=!(Qe||k))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(Qe||ct||Lt||k),ae&&(this._resolveRelativeIRI=function(Oe){return null}),this._blankNodePrefix=typeof H.blankNodePrefix!="string"?"":H.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=H.lexer||new re.a({lineMode:ae,n3:k}),this._explicitQuantifiers=!!H.explicitQuantifiers}var ye,Le,J;return ye=Ye,J=[{key:"_resetBlankNodePrefix",value:function(){xr=0}}],(Le=[{key:"_setBase",value:function(H){if(H){var Se=H.indexOf("#");Se>=0&&(H=H.substr(0,Se)),this._base=H,this._basePath=H.indexOf("/")<0?H:H.replace(/[^\/?]*(?:\?.*)?$/,""),H=H.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=H[0],this._baseScheme=H[1]}else this._base="",this._basePath=""}},{key:"_saveContext",value:function(H,Se,Qe,ct,Lt){var w=this._n3Mode;this._contextStack.push({subject:Qe,predicate:ct,object:Lt,graph:Se,type:H,inverse:!!w&&this._inversePredicate,blankPrefix:w?this._prefixes._:"",quantified:w?this._quantified:null}),w&&(this._inversePredicate=!1,this._prefixes._=this._graph?this._graph.id.substr(2)+".":".",this._quantified=Object.create(this._quantified))}},{key:"_restoreContext",value:function(){var H=this._contextStack.pop(),Se=this._n3Mode;this._subject=H.subject,this._predicate=H.predicate,this._object=H.object,this._graph=H.graph,Se&&(this._inversePredicate=H.inverse,this._prefixes._=H.blankPrefix,this._quantified=H.quantified)}},{key:"_readInTopContext",value:function(H){switch(H.type){case"eof":return this._graph!==null?this._error("Unclosed graph",H):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(H)}}},{key:"_readEntity",value:function(H,Se){var Qe;switch(H.type){case"IRI":case"typeIRI":var ct=this._resolveIRI(H.value);if(ct===null)return this._error("Invalid IRI",H);Qe=this._namedNode(ct);break;case"type":case"prefixed":var Lt=this._prefixes[H.prefix];if(Lt===void 0)return this._error('Undefined prefix "'+H.prefix+':"',H);Qe=this._namedNode(Lt+H.value);break;case"blank":Qe=this._blankNode(this._prefixes[H.prefix]+H.value);break;case"var":Qe=this._variable(H.value.substr(1));break;default:return this._error("Expected entity but got "+H.type,H)}return!Se&&this._n3Mode&&Qe.id in this._quantified&&(Qe=this._quantified[Qe.id]),Qe}},{key:"_readSubject",value:function(H){switch(this._predicate=null,H.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",H);case"}":return this._readPunctuation(H);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',H);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',H);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",H);if(H.prefix.length===0)return this._literalValue=H.value,this._completeSubjectLiteral;this._subject=this._literal(H.value,this._namedNode(H.prefix));break;default:if((this._subject=this._readEntity(H))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}},{key:"_readPredicate",value:function(H){var Se=H.type;switch(Se){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[H.value];break;case".":case"]":case"}":return this._predicate===null?this._error("Unexpected "+Se,H):(this._subject=null,Se==="]"?this._readBlankNodeTail(H):this._readPunctuation(H));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",H);case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",H);default:if((this._predicate=this._readEntity(H))===void 0)return}return this._readObject}},{key:"_readObject",value:function(H){switch(H.type){case"literal":if(H.prefix.length===0)return this._literalValue=H.value,this._readDataTypeOrLang;this._object=this._literal(H.value,this._namedNode(H.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",H);default:if((this._object=this._readEntity(H))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}},{key:"_readPredicateOrNamedGraph",value:function(H){return H.type==="{"?this._readGraph(H):this._readPredicate(H)}},{key:"_readGraph",value:function(H){return H.type!=="{"?this._error("Expected graph but got "+H.type,H):(this._graph=this._subject,this._subject=null,this._readSubject)}},{key:"_readBlankNodeHead",value:function(H){return H.type==="]"?(this._subject=null,this._readBlankNodeTail(H)):(this._predicate=null,this._readPredicate(H))}},{key:"_readBlankNodeTail",value:function(H){if(H.type!=="]")return this._readBlankNodePunctuation(H);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);var Se=this._predicate===null;return this._restoreContext(),this._object===null?Se?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank:this._getContextEndReader()}},{key:"_readPredicateAfterBlank",value:function(H){switch(H.type){case".":case"}":return this._subject=null,this._readPunctuation(H);default:return this._readPredicate(H)}}},{key:"_readListItem",value:function(H){var Se=null,Qe=null,ct=this._subject,Lt=this._contextStack,w=Lt[Lt.length-1],k=this._readListItem;switch(H.type){case"[":this._saveContext("blank",this._graph,Qe=this._blankNode(),this.RDF_FIRST,this._subject=Se=this._blankNode()),k=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,Qe=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext(),Lt.length!==0&&Lt[Lt.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(k=this._readPredicate,this._subject===this.RDF_NIL)return k}else if(k=this._getContextEndReader(),this._object===this.RDF_NIL)return k;Qe=this.RDF_NIL;break;case"literal":H.prefix.length===0?(this._literalValue=H.value,k=this._readListItemDataTypeOrLang):(Se=this._literal(H.value,this._namedNode(H.prefix)),k=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",H);default:if((Se=this._readEntity(H))===void 0)return}if(Qe===null&&(this._subject=Qe=this._blankNode()),ct===null?w.predicate===null?w.subject=Qe:w.object=Qe:this._emit(ct,this.RDF_REST,Qe,this._graph),Se!==null){if(this._n3Mode&&(H.type==="IRI"||H.type==="prefixed"))return this._saveContext("item",this._graph,Qe,this.RDF_FIRST,Se),this._subject=Se,this._predicate=null,this._getPathReader(this._readListItem);this._emit(Qe,this.RDF_FIRST,Se,this._graph)}return k}},{key:"_readDataTypeOrLang",value:function(H){return this._completeObjectLiteral(H,!1)}},{key:"_readListItemDataTypeOrLang",value:function(H){return this._completeObjectLiteral(H,!0)}},{key:"_completeLiteral",value:function(H){var Se=this._literal(this._literalValue);switch(H.type){case"type":case"typeIRI":var Qe=this._readEntity(H);if(Qe===void 0)return;Se=this._literal(this._literalValue,Qe),H=null;break;case"langcode":Se=this._literal(this._literalValue,H.value),H=null}return{token:H,literal:Se}}},{key:"_completeSubjectLiteral",value:function(H){return this._subject=this._completeLiteral(H).literal,this._readPredicateOrNamedGraph}},{key:"_completeObjectLiteral",value:function(H,Se){var Qe=this._completeLiteral(H);if(Qe)return this._object=Qe.literal,Se&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),Qe.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(Qe.token))}},{key:"_readFormulaTail",value:function(H){return H.type!=="}"?this._readPunctuation(H):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext(),this._object===null?this._readPredicate:this._getContextEndReader())}},{key:"_readPunctuation",value:function(H){var Se,Qe=this._subject,ct=this._graph,Lt=this._inversePredicate;switch(H.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",H);if(this._n3Mode)return this._readFormulaTail(H);this._graph=null;case".":this._subject=null,Se=this._contextStack.length?this._readSubject:this._readInTopContext,Lt&&(this._inversePredicate=!1);break;case";":Se=this._readPredicate;break;case",":Se=this._readObject;break;default:if(this._supportsQuads&&this._graph===null&&(ct=this._readEntity(H))!==void 0){Se=this._readQuadPunctuation;break}return this._error('Expected punctuation to follow "'+this._object.id+'"',H)}if(Qe!==null){var w=this._predicate,k=this._object;Lt?this._emit(k,w,Qe,ct):this._emit(Qe,w,k,ct)}return Se}},{key:"_readBlankNodePunctuation",value:function(H){var Se;switch(H.type){case";":Se=this._readPredicate;break;case",":Se=this._readObject;break;default:return this._error('Expected punctuation to follow "'+this._object.id+'"',H)}return this._emit(this._subject,this._predicate,this._object,this._graph),Se}},{key:"_readQuadPunctuation",value:function(H){return H.type!=="."?this._error("Expected dot to follow quad",H):this._readInTopContext}},{key:"_readPrefix",value:function(H){return H.type!=="prefix"?this._error("Expected prefix to follow @prefix",H):(this._prefix=H.value,this._readPrefixIRI)}},{key:"_readPrefixIRI",value:function(H){if(H.type!=="IRI")return this._error('Expected IRI to follow prefix "'+this._prefix+':"',H);var Se=this._readEntity(H);return this._prefixes[this._prefix]=Se.value,this._prefixCallback(this._prefix,Se),this._readDeclarationPunctuation}},{key:"_readBaseIRI",value:function(H){var Se=H.type==="IRI"&&this._resolveIRI(H.value);return Se?(this._setBase(Se),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",H)}},{key:"_readNamedGraphLabel",value:function(H){switch(H.type){case"IRI":case"blank":case"prefixed":return this._readSubject(H),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",H)}}},{key:"_readNamedGraphBlankLabel",value:function(H){return H.type!=="]"?this._error("Invalid graph label",H):(this._subject=this._blankNode(),this._readGraph)}},{key:"_readDeclarationPunctuation",value:function(H){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(H)):H.type!=="."?this._error("Expected declaration to end with a dot",H):this._readInTopContext}},{key:"_readQuantifierList",value:function(H){var Se;switch(H.type){case"IRI":case"prefixed":if((Se=this._readEntity(H,!0))!==void 0)break;default:return this._error("Unexpected "+H.type,H)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,Se,this.QUANTIFIERS_GRAPH)):this._quantified[Se.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}},{key:"_readQuantifierPunctuation",value:function(H){return H.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(H))}},{key:"_getPathReader",value:function(H){return this._afterPath=H,this._readPath}},{key:"_readPath",value:function(H){switch(H.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:var Se=this._contextStack,Qe=Se.length&&Se[Se.length-1];if(Qe&&Qe.type==="item"){var ct=this._subject;this._restoreContext(),this._emit(this._subject,this.RDF_FIRST,ct,this._graph)}return this._afterPath(H)}}},{key:"_readForwardPath",value:function(H){var Se,Qe,ct=this._blankNode();if((Qe=this._readEntity(H))!==void 0)return this._predicate===null?(Se=this._subject,this._subject=ct):(Se=this._object,this._object=ct),this._emit(Se,Qe,ct,this._graph),this._readPath}},{key:"_readBackwardPath",value:function(H){var Se,Qe,ct=this._blankNode();if((Se=this._readEntity(H))!==void 0)return this._predicate===null?(Qe=this._subject,this._subject=ct):(Qe=this._object,this._object=ct),this._emit(ct,Se,Qe,this._graph),this._readPath}},{key:"_getContextEndReader",value:function(){var H=this._contextStack;if(!H.length)return this._readPunctuation;switch(H[H.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail}}},{key:"_emit",value:function(H,Se,Qe,ct){this._callback(null,this._quad(H,Se,Qe,ct||this.DEFAULTGRAPH))}},{key:"_error",value:function(H,Se){var Qe=new Error(H+" on line "+Se.line+".");Qe.context={token:Se,line:Se.line,previousToken:this._lexer.previousToken},this._callback(Qe),this._callback=gr}},{key:"_resolveIRI",value:function(H){return/^[a-z][a-z0-9+.-]*:/i.test(H)?H:this._resolveRelativeIRI(H)}},{key:"_resolveRelativeIRI",value:function(H){if(!H.length)return this._base;switch(H[0]){case"#":return this._base+H;case"?":return this._base.replace(/(?:\?.*)?$/,H);case"/":return(H[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(H);default:return/^[^/:]*:/.test(H)?null:this._removeDotSegments(this._basePath+H)}}},{key:"_removeDotSegments",value:function(H){if(!/(^|\/)\.\.?($|[/#?])/.test(H))return H;for(var Se="",Qe=H.length,ct=-1,Lt=-1,w=0,k="/";ct<Qe;){switch(k){case":":if(Lt<0&&H[++ct]==="/"&&H[++ct]==="/")for(;(Lt=ct+1)<Qe&&H[Lt]!=="/";)ct=Lt;break;case"?":case"#":ct=Qe;break;case"/":if(H[ct+1]===".")switch(k=H[1+ ++ct]){case"/":Se+=H.substring(w,ct-1),w=ct+1;break;case void 0:case"?":case"#":return Se+H.substring(w,ct)+H.substr(ct+1);case".":if((k=H[1+ ++ct])===void 0||k==="/"||k==="?"||k==="#"){if((w=(Se+=H.substring(w,ct-2)).lastIndexOf("/"))>=Lt&&(Se=Se.substr(0,w)),k!=="/")return Se+"/"+H.substr(ct+1);w=ct+1}}}k=H[++ct]}return Se+H.substring(w)}},{key:"parse",value:function(H,Se,Qe){var ct=this;if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):"b"+xr+++"_",this._prefixCallback=Qe||gr,this._inversePredicate=!1,this._quantified=Object.create(null),!Se){var Lt,w=[];if(this._callback=function(k,ae){k?Lt=k:ae&&w.push(ae)},this._lexer.tokenize(H).every(function(k){return ct._readCallback=ct._readCallback(k)}),Lt)throw Lt;return w}this._callback=Se,this._lexer.tokenize(H,function(k,ae){k!==null?(ct._callback(k),ct._callback=gr):ct._readCallback&&(ct._readCallback=ct._readCallback(ae))})}}])&&Bt(ye.prototype,Le),J&&Bt(ye,J),Ye}();function gr(){}function Cr(Ye,ye){var Le=ye.namedNode;Ye._namedNode=Le,Ye._blankNode=ye.blankNode,Ye._literal=ye.literal,Ye._variable=ye.variable,Ye._quad=ye.quad,Ye.DEFAULTGRAPH=ye.defaultGraph(),Ye.RDF_FIRST=Le(be.a.rdf.first),Ye.RDF_REST=Le(be.a.rdf.rest),Ye.RDF_NIL=Le(be.a.rdf.nil),Ye.N3_FORALL=Le(be.a.r.forAll),Ye.N3_FORSOME=Le(be.a.r.forSome),Ye.ABBREVIATIONS={a:Le(be.a.rdf.type),"=":Le(be.a.owl.sameAs),">":Le(be.a.log.implies)},Ye.QUANTIFIERS_GRAPH=Le("urn:n3:quantifiers")}function qr(Ye){if(Ye.termType==="NamedNode")return{value:Ye.value,type:"uri"};if(Ye.termType==="Literal"){var ye={value:Ye.value,type:"literal"},Le=Ye.language;Le&&(ye["xml:lang"]=Le);var J=Ye.datatypeString;return J&&(ye.datatype=J),ye}return Ye.termType==="BlankNode"?{value:Ye.value,type:"bnode"}:{value:Ye.value,type:"uri"}}Cr(Pr.prototype,Ve);function on(Ye){return new Pr().parse(Ye||"")}var Er=b(64),cn=Object(Er.a)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Vr=/&(?:amp|lt|gt|quot|#39);/g,dn=RegExp(Vr.source),vr=function(Ye){return(Ye=Object(S.a)(Ye))&&dn.test(Ye)?Ye.replace(Vr,cn):Ye},lr=b(80),gn=b(20),Dr=b(15),br=b(10),hn=b(14),sn=b(30),Sr=b(33),Yr=Object.prototype.hasOwnProperty,kr=function(Ye){if(Ye==null)return!0;if(Object(br.a)(Ye)&&(Object(Ge.a)(Ye)||typeof Ye=="string"||typeof Ye.splice=="function"||Object(hn.a)(Ye)||Object(Sr.a)(Ye)||Object(Dr.a)(Ye)))return!Ye.length;var ye=Object(gn.a)(Ye);if(ye=="[object Map]"||ye=="[object Set]")return!Ye.size;if(Object(sn.a)(Ye))return!Object(lr.a)(Ye).length;for(var Le in Ye)if(Yr.call(Ye,Le))return!1;return!0};function Wn(Ye){for(var ye={vars:[]},Le=0;Le<Ye.childNodes.length;Le++){var J=Ye.childNodes[Le];if(J.nodeName=="variable"){var H=J.getAttribute("name");H&&ye.vars.push(H)}}return ye}var Jn=["uri","literal","bnode","typed-literal"];function ln(Ye,ye){for(var Le={bindings:[]},J=0;J<Ye.childNodes.length;J++){for(var H=Ye.childNodes[J],Se={},Qe=0;Qe<H.childNodes.length;Qe++){var ct=H.childNodes[Qe];if(ct.nodeName=="binding"){var Lt=ct.getAttribute("name");if(Lt)for(var w=0;w<ct.childNodes.length;w++){var k=ct.childNodes[w];if(k.nodeName!=="#text"&&!(Jn.indexOf(k.nodeName)<0)){var ae={type:k.nodeName,value:vr(k.innerHTML)},Oe=k.getAttribute("datatype");Oe&&(ae.datatype=Oe),Se[Lt]=ae}}}}kr(Se)||Le.bindings.push(ye(Se))}return Le}function Zn(Ye){return Ye.innerHTML==="true"}var xn=function(Ye,ye){if(typeof Ye=="string"){var Le=new DOMParser().parseFromString(Ye,"text/xml");if(Le.childNodes.length){for(var J=Le.childNodes[0],H={},Se=0;Se<J.childNodes.length;Se++){var Qe=J.childNodes[Se];Qe.nodeName=="head"&&(H.head=Wn(Qe)),Qe.nodeName=="results"&&(H.results=ln(Qe,ye)),Qe.nodeName=="boolean"&&(H.boolean=Zn(Qe))}return H}}},Cn=b(125),Sn=b(71),mn=b.n(Sn),je=b(126),Fe=b.n(je);function Ie(Ye,ye){var Le;if(typeof Symbol>"u"||Ye[Symbol.iterator]==null){if(Array.isArray(Ye)||(Le=function(Lt,w){if(Lt){if(typeof Lt=="string")return Ee(Lt,w);var k=Object.prototype.toString.call(Lt).slice(8,-1);if(k==="Object"&&Lt.constructor&&(k=Lt.constructor.name),k==="Map"||k==="Set")return Array.from(Lt);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return Ee(Lt,w)}}(Ye))||ye){Le&&(Ye=Le);var J=0,H=function(){};return{s:H,n:function(){return J>=Ye.length?{done:!0}:{done:!1,value:Ye[J++]}},e:function(Lt){throw Lt},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Se,Qe=!0,ct=!1;return{s:function(){Le=Ye[Symbol.iterator]()},n:function(){var Lt=Le.next();return Qe=Lt.done,Lt},e:function(Lt){ct=!0,Se=Lt},f:function(){try{Qe||Le.return==null||Le.return()}finally{if(ct)throw Se}}}}function Ee(Ye,ye){(ye==null||ye>Ye.length)&&(ye=Ye.length);for(var Le=0,J=new Array(ye);Le<ye;Le++)J[Le]=Ye[Le];return J}var Te=b(127),Je=b(186),It=function(Ye){for(var ye in Ye)Ye[ye].type!=="uri"&&(Ye[ye].value=Ye[ye].value.replace(/{{(.*?)}}/g,function(Le){return Le=Le.substring(2,Le.length-2).trim(),Ye[Le]?Ye[Le].value:Le}));return Ye},wt=function(){function Ye(ye,Le){G()(this,Ye),ye.executionTime&&(this.executionTime=ye.executionTime),Le&&(this.executionTime=Le),ye instanceof Error?this.error=ye:ye.xhr?this.setResponse(ye):this.setSummary(ye)}return M()(Ye,[{key:"setResponse",value:function(ye){this.res=ye}},{key:"setSummary",value:function(ye){ye.data||ye.error?this.summary=ye:this.summary={data:ye}}},{key:"hasError",value:function(){return!!(this.res&&this.res.status>=400)||!!this.errorSummary||!!this.error||!(!this.summary||!this.summary.error)}},{key:"getError",value:function(){return this.errorSummary||(this.res&&this.res.status>=400&&(this.errorSummary={text:this.res.text,status:this.res.status,statusText:this.res.error?this.res.error.text:void 0}),this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error&&("response"in this.error&&this.error.response!==void 0?(this.errorSummary={text:this.error.response.text,status:this.error.response.status,statusText:this.error.response.statusText},this.error.response.body&&_()(this.error.response.body)==="object"&&"message"in this.error.response.body&&(this.errorSummary.text=this.error.response.body.message)):this.errorSummary={text:this.error.message})),this.errorSummary}},{key:"getContentType",value:function(){return this.res?this.res.header["content-type"]:this.summary?this.summary.contentType:void 0}},{key:"getAsJson",value:function(){return this.json?this.json:this.json===!1||this.hasError()?void 0:(this.getParserFromContentType()||this.doLuckyGuess()||this.json||(this.json=!1),this.json)}},{key:"getData",value:function(){if(this.res){if(this.res.body)return this.res.body;if(this.res.text)return this.res.text}if(this.summary)return this.summary.data}},{key:"getResponseTime",value:function(){return this.executionTime}},{key:"getParserFromContentType",value:function(){var ye=this.getContentType();if(ye){var Le=Object(Je.a)(this.getData());try{if(ye.indexOf("json")>-1){if(ye.indexOf("sparql-results+json")>=0)return this.json=se(Le,It),this.type="json",!0;if(ye.indexOf("application/rdf+json")>-1)return this.type="json",!0;this.type="json"}else{if(ye.indexOf("xml")>-1)return this.json=xn(Le,It),this.type="xml",!0;if(ye.indexOf("csv")>-1)return this.json=function(J){var H=Cn.parse(J,{header:!0,skipEmptyLines:!0});if(H.meta.fields===void 0)throw new Error("Could not parse CSV, no headers found!");return{head:{vars:H.meta.fields},results:{bindings:H.data.map(function(Se){var Qe={};for(var ct in Se)Qe[ct]={value:Se[ct],type:"literal"};return Qe})}}}(Le),this.type="csv",!0;if(ye.indexOf("tab-separated")>-1)return this.json=function(J){var H=J.split(`
`);H.pop();var Se=Fe()(H),Qe=Se[0],ct=Se.slice(1),Lt=Qe.split("	").map(function(k){return k.substring(1)}),w=ct.map(function(k){var ae,Oe={},qe=Ie(k.split("	").entries());try{for(qe.s();!(ae=qe.n()).done;){var st=mn()(ae.value,2),Ct=st[0],kt=st[1],Vt=Lt[Ct];if(kt[0]==="<")Oe[Vt]={value:kt.substring(1,kt.length-1),type:"uri"};else if(kt[0]==='"'){var rr=kt.lastIndexOf('"'),ir=kt.substring(1,rr);if(rr===kt.length-1)Oe[Vt]={value:ir,type:"literal"};else if(rr<kt.lastIndexOf("@")){var sr=kt.substring(kt.lastIndexOf("@")+1);Oe[Vt]={value:ir,type:"literal","xml:lang":sr}}else if(rr<kt.lastIndexOf("^^")){var Mr=kt.substring(kt.lastIndexOf("^^")+2);Oe[Vt]={value:ir,type:"typed-literal",datatype:Mr}}}}}catch(Ir){qe.e(Ir)}finally{qe.f()}return Oe});return{head:{vars:Lt},results:{bindings:w}}}(Le),this.type="tsv",!0;if(ye.indexOf("turtle")>0||ye.indexOf("trig")>0||ye.indexOf("triple")>0||ye.indexOf("quad")>0)return this.json={head:{vars:["subject","predicate","object"]},results:{bindings:on(Le).map(function(J){return{subject:qr(J.subject),predicate:qr(J.predicate),object:qr(J.object)}})}},this.type="ttl",!0}}catch(J){J instanceof Error?this.errorSummary={text:J.message}:this.errorSummary={text:J}}}return!1}},{key:"doLuckyGuess",value:function(){var ye=Object(Je.a)(this.getData());try{return this.json=se(ye,It),this.type="json",!0}catch{}try{return this.json=xn(ye,It),this.type="xml",!0}catch{}return!1}},{key:"getVariables",value:function(){var ye=this.getAsJson();return ye&&ye.head?ye.head.vars:[]}},{key:"getBoolean",value:function(){var ye=this.getAsJson();if(ye&&"boolean"in ye)return ye.boolean}},{key:"getBindings",value:function(){var ye=this.getAsJson();return ye&&ye.results?ye.results.bindings:null}},{key:"getStatements",value:function(){return this.statements||this.type!=="ttl"||(this.statements=on(this.getData())),this.statements?this.statements:null}},{key:"getOriginalResponseAsString",value:function(){var ye=this.getData();return typeof ye=="string"?ye:this.type==="json"?JSON.stringify(ye,void 0,2):ye}},{key:"getOriginalResponse",value:function(){var ye;return(ye=this.res)===null||ye===void 0?void 0:ye.body}},{key:"getType",value:function(){return this.type||this.getAsJson(),this.type}},{key:"getStatus",value:function(){return this.res?this.res.status:this.summary?this.summary.status:void 0}},{key:"getAsStoreObject",value:function(ye){var Le=this.summary;if(!Le&&this.res&&(Le={contentType:this.getContentType(),data:this.getOriginalResponseAsString(),error:this.getError(),status:this.getStatus(),executionTime:this.getResponseTime()}),Le)return Le.data&&Le.data.length>ye?void 0:Le;if(this.error)return{error:this.getError(),executionTime:this.getResponseTime()}}},{key:"asCsv",value:function(){var ye,Le,J,H,Se=this.getAsJson();return this.type==="csv"?this.getOriginalResponseAsString():Se&&Se.results?(J=(ye=Se).head.vars,H=(Le=ye.results)===null||Le===void 0?void 0:Le.bindings,new Te.Parser({fields:J}).parse(H?H.map(function(Qe){return Object(xe.a)(Qe,function(ct){return ct.value})}):[])):void 0}}]),Ye}();function Ot(Ye){var ye=document.createElement("link");ye.setAttribute("rel","stylesheet"),ye.setAttribute("type","text/css"),ye.setAttribute("href",Ye),document.getElementsByTagName("head")[0].appendChild(ye)}function Rt(Ye,ye){return new Promise(function(Le,J){var H=document.createElement("script");H.setAttribute("type","text/javascript"),H.setAttribute("async",""),H.setAttribute("src",Ye),ye&&(H.innerHTML=ye),H.onload=function(){return Le()},document.getElementsByTagName("head")[0].appendChild(H)})}var tr=b(98);tr.addHook("afterSanitizeAttributes",function(Ye){Ye instanceof HTMLAnchorElement&&(Ye.target="_blank",Ye.rel="noopener noreferrer")});var cr=tr.sanitize,mr=b(128),Wr=b(129),Br=b(36),Rr=b.n(Br),tn=b(95),yr=b.n(tn),Kt=b(171),pn=b(130);b(140),b(141),b(142);var ge=b(143);function Ue(Ye){Object(D.b)(this,"expanded"),Ye.preventDefault()}var pt=function(){function Ye(ye){var Le=this;G()(this,Ye),this.persistentConfig={},this.helpReference="https://triply.cc/docs/yasgui#table",this.label="Table",this.priority=10,this.setEllipsisHandlers=function(){var J;(J=Le.dataTable)===null||J===void 0||J.cells({page:"current"}).every(function(H,Se){var Qe,ct,Lt=(Qe=Le.dataTable)===null||Qe===void 0?void 0:Qe.cell(H,Se);if((Lt==null?void 0:Lt.data())!==""){var w=Lt==null?void 0:Lt.node();if(w){var k=w.firstChild;(((ct=k.firstElementChild)===null||ct===void 0?void 0:ct.getBoundingClientRect().width)||0)>k.getBoundingClientRect().width?k.classList.contains("expandable")||(Object(D.b)(k,"expandable"),k.addEventListener("click",Ue,{once:!0})):k.classList.contains("expandable")&&(Object(D.g)(k,"expandable"),k.removeEventListener("click",Ue))}}})},this.handleTableSearch=function(J){var H;(H=Le.dataTable)===null||H===void 0||H.search(J.target.value).draw("page")},this.handleTableSizeSelect=function(J){var H,Se=parseInt(J.target.value);(H=Le.dataTable)===null||H===void 0||H.page.len(Se).draw("page"),Le.persistentConfig.pageSize=Se,Le.yasr.storePluginConfig("table",Le.persistentConfig)},this.handleSetCompactToggle=function(J){Le.persistentConfig.compact=J.target.checked,Le.draw(Le.persistentConfig),Le.yasr.storePluginConfig("table",Le.persistentConfig)},this.handleSetEllipsisToggle=function(J){Le.persistentConfig.isEllipsed=J.target.checked,Le.draw(Le.persistentConfig),Le.yasr.storePluginConfig("table",Le.persistentConfig)},this.yasr=ye,this.config=Ye.defaults}return M()(Ye,[{key:"getIcon",value:function(){return Object(D.d)(Object(D.c)(pn))}},{key:"getRows",value:function(){if(!this.yasr.results)return[];var ye=this.yasr.results.getBindings();if(!ye)return[];var Le=this.yasr.results.getVariables();return ye.map(function(J,H){return[H+1].concat(Rr()(Le.map(function(Se){var Qe;return(Qe=J[Se])!==null&&Qe!==void 0?Qe:""})))})}},{key:"getUriLinkFromBinding",value:function(ye,Le){var J=ye.value,H=J,Se=!1;if(Le){for(var Qe in Le)if(H.indexOf(Le[Qe])==0){H=Qe+":"+J.substring(Le[Qe].length),Se=!0;break}}var ct=Se||this.persistentConfig.compact;return"".concat(ct?"":"&lt;","<a class='iri' target='").concat(this.config.openIriInNewWindow?"_blank":"_self","'").concat(this.config.openIriInNewWindow?" ref='noopener noreferrer'":""," href='").concat(J,"'>").concat(H,"</a>").concat(ct?"":"&gt;")}},{key:"getCellContent",value:function(ye,Le){var J;return J=ye.type=="uri"?"<span>".concat(this.getUriLinkFromBinding(ye,Le),"</span>"):"<span class='nonIri'>".concat(this.formatLiteral(ye,Le),"</span>"),"<div>".concat(J,"</div>")}},{key:"formatLiteral",value:function(ye,Le){var J=Object(Kt.a)(ye.value);if(this.persistentConfig.compact)return J;if(ye["xml:lang"])J='"'.concat(J,'"<sup>@').concat(ye["xml:lang"],"</sup>");else if(ye.datatype){var H=this.getUriLinkFromBinding({type:"uri",value:ye.datatype},Le);J='"'.concat(J,'"<sup>^^').concat(H,"</sup>")}return J}},{key:"getColumns",value:function(){var ye,Le=this;if(!this.yasr.results)return[];var J=this.yasr.getPrefixes();return[{name:"",searchable:!1,width:"".concat(this.getSizeFirstColumn(),"px"),type:"num",orderable:!1,visible:this.persistentConfig.compact!==!0,render:function(H,Se){return Se!=="filter"&&Se!=="sort"&&Se?'<div class="rowNumber">'.concat(H,"</div>"):H}}].concat(Rr()((ye=this.yasr.results)===null||ye===void 0?void 0:ye.getVariables().map(function(H){return{name:H,title:H,render:function(Se,Qe,ct,Lt){return Se===""?Se:Qe!=="filter"&&Qe!=="sort"&&Qe?Le.getCellContent(Se,J):Se.value}}})))}},{key:"getSizeFirstColumn",value:function(){var ye,Le;return 8*(((Le=(ye=this.yasr.results)===null||ye===void 0?void 0:ye.getBindings())===null||Le===void 0?void 0:Le.length)||0).toString().length}},{key:"draw",value:function(ye){var Le,J,H=this;this.persistentConfig=Object.assign(Object.assign({},this.persistentConfig),ye),this.tableEl=document.createElement("table");var Se=this.getRows(),Qe=this.getColumns();Se.length<=((ye==null?void 0:ye.pageSize)||50)?(this.yasr.pluginControls,Object(D.b)(this.yasr.rootEl,"isSinglePage")):Object(D.g)(this.yasr.rootEl,"isSinglePage"),this.dataTable&&(this.destroyResizer(),this.dataTable.destroy(!0),this.dataTable=void 0),this.yasr.resultsEl.appendChild(this.tableEl);var ct=Object.assign(Object.assign({},Object(Je.a)(this.config.tableConfig)),{pageLength:ye!=null&&ye.pageSize?ye.pageSize:50,data:Se,columns:Qe});this.dataTable=yr()(this.tableEl).DataTable(ct),this.tableEl.style.removeProperty("width"),this.tableEl.style.width=this.tableEl.clientWidth+"px";var Lt=Array.from(this.tableEl.querySelectorAll("th")).map(function(w){return w.offsetWidth-26});this.tableResizer=new ge.default(this.tableEl,{widths:this.persistentConfig.compact===!0?Lt:[this.getSizeFirstColumn()].concat(Rr()(Lt.slice(1))),partialRefresh:!0,onResize:this.persistentConfig.isEllipsed!==!1&&this.setEllipsisHandlers,headerOnly:!0}),this.persistentConfig.isEllipsed!==!1&&((Le=this.dataTable)===null||Le===void 0||Le.on("preDraw",function(){var w,k,ae;return(w=H.tableResizer)===null||w===void 0||w.reset({disable:!0}),Object(D.g)(H.tableEl,"ellipseTable"),(k=H.tableEl)===null||k===void 0||k.style.removeProperty("width"),(ae=H.tableEl)===null||ae===void 0||ae.style.setProperty("width",H.tableEl.clientWidth+"px"),!0}),(J=this.dataTable)===null||J===void 0||J.on("draw",function(){var w,k;if(H.tableEl){var ae=H.tableEl.clientWidth;H.tableEl.style.removeProperty("width"),ae>H.tableEl.clientWidth&&(ae=H.tableEl.clientWidth),(w=H.tableEl)===null||w===void 0||w.style.setProperty("width","".concat(ae,"px")),(k=H.tableResizer)===null||k===void 0||k.reset({disable:!1,partialRefresh:!0,onResize:H.setEllipsisHandlers,headerOnly:!0}),Object(D.b)(H.tableEl,"ellipseTable"),H.setEllipsisHandlers()}})),this.drawControls(),this.persistentConfig.isEllipsed!==!1&&(Object(D.b)(this.tableEl,"ellipseTable"),this.setEllipsisHandlers())}},{key:"drawControls",value:function(){var ye;this.removeControls(),this.tableControls=document.createElement("div"),this.tableControls.className="tableControls";var Le=document.createElement("div"),J=document.createElement("label"),H=document.createElement("span");H.innerText="Simple view",Object(D.b)(H,"label"),J.appendChild(H),Object(D.b)(J,"switch"),Le.appendChild(J),this.tableCompactSwitch=document.createElement("input"),J.addEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch.type="checkbox",J.appendChild(this.tableCompactSwitch),this.tableCompactSwitch.defaultChecked=!!this.persistentConfig.compact,this.tableControls.appendChild(Le);var Se=document.createElement("div"),Qe=document.createElement("label"),ct=document.createElement("span");ct.innerText="Ellipse",Object(D.b)(ct,"label"),Qe.appendChild(ct),Object(D.b)(Qe,"switch"),Se.appendChild(Qe),this.tableEllipseSwitch=document.createElement("input"),Qe.addEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch.type="checkbox",Qe.appendChild(this.tableEllipseSwitch),this.tableEllipseSwitch.defaultChecked=this.persistentConfig.isEllipsed!==!1,this.tableControls.appendChild(Se),this.tableFilterField=document.createElement("input"),this.tableFilterField.className="tableFilter",this.tableFilterField.placeholder="Filter query results",this.tableFilterField.setAttribute("aria-label","Filter query results"),this.tableControls.appendChild(this.tableFilterField),this.tableFilterField.addEventListener("keyup",this.handleTableSearch);var Lt=document.createElement("div");Lt.className="pageSizeWrapper";var w=document.createElement("span");w.textContent="Page size: ",w.className="pageSizerLabel",Lt.appendChild(w),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";for(var k=0,ae=[10,50,100,1e3,-1];k<ae.length;k++){var Oe=ae[k],qe=document.createElement("option");qe.value=Oe+"",qe.innerText=Oe>0?Oe+"":"All",((ye=this.dataTable)===null||ye===void 0?void 0:ye.page.len())===Oe&&(qe.selected=!0),this.tableSizeField.appendChild(qe)}Lt.appendChild(this.tableSizeField),this.tableSizeField.addEventListener("change",this.handleTableSizeSelect),this.tableControls.appendChild(Lt),this.yasr.pluginControls.appendChild(this.tableControls)}},{key:"download",value:function(ye){var Le=this;return{getData:function(){var J;return((J=Le.yasr.results)===null||J===void 0?void 0:J.asCsv())||""},contentType:"text/csv",title:"Download result",filename:"".concat(ye||"queryResults",".csv")}}},{key:"canHandleResults",value:function(){return!!this.yasr.results&&this.yasr.results.getVariables()&&this.yasr.results.getVariables().length>0}},{key:"removeControls",value:function(){var ye,Le,J,H,Se,Qe;for((ye=this.tableFilterField)===null||ye===void 0||ye.removeEventListener("keyup",this.handleTableSearch),this.tableFilterField=void 0,(Le=this.tableSizeField)===null||Le===void 0||Le.removeEventListener("change",this.handleTableSizeSelect),this.tableSizeField=void 0,(J=this.tableCompactSwitch)===null||J===void 0||J.removeEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch=void 0,(H=this.tableEllipseSwitch)===null||H===void 0||H.removeEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch=void 0;!((Se=this.tableControls)===null||Se===void 0)&&Se.firstChild;)this.tableControls.firstChild.remove();(Qe=this.tableControls)===null||Qe===void 0||Qe.remove()}},{key:"destroyResizer",value:function(){this.tableResizer&&(this.tableResizer.reset({disable:!0}),window.removeEventListener("resize",this.tableResizer.onResize),this.tableResizer=void 0)}},{key:"destroy",value:function(){var ye;this.removeControls(),this.destroyResizer(),(ye=this.dataTable)===null||ye===void 0||ye.destroy(!0),this.dataTable=void 0,Object(D.g)(this.yasr.rootEl,"isSinglePage")}}]),Ye}();pt.defaults={openIriInNewWindow:!0,tableConfig:{dom:"tip",pageLength:50,lengthChange:!0,data:[],columns:[],order:[],deferRender:!0,orderClasses:!1,language:{paginate:{first:"&lt;&lt;",last:"&gt;&gt;",next:"&gt;",previous:"&lt;"}}}},b(144);var it=function(){function Ye(ye){G()(this,Ye),this.priority=10,this.hideFromSelection=!0,this.yasr=ye}return M()(Ye,[{key:"draw",value:function(){var ye,Le=document.createElement("div");Le.className="booleanResult";var J=(ye=this.yasr.results)===null||ye===void 0?void 0:ye.getBoolean();Le.appendChild(Object(D.d)(J?'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462 c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084 L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907 c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686 L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591 c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686 L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>'));var H=document.createElement("span");H.textContent=J?"True":"False",Le.appendChild(H),this.yasr.resultsEl.appendChild(Le)}},{key:"canHandleResults",value:function(){var ye;return!!(!((ye=this.yasr.results)===null||ye===void 0)&&ye.getBoolean)&&(this.yasr.results.getBoolean()===!0||this.yasr.results.getBoolean()==0)}},{key:"getIcon",value:function(){return document.createElement("")}}]),Ye}(),Qt=b(131),ur='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="tiny" x="0" y="0" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"/><g id="Your_Icon"><path  d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68 C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>';b(145);var gt=b(7);b(92),b(99),b(100),b(101),b(102),b(146),b(147),b(103);var Ht=function(){function Ye(ye){G()(this,Ye),this.label="Response",this.priority=2,this.helpReference="https://triply.cc/docs/yasgui#response",this.yasr=ye,this.config=Ye.defaults,ye.config.plugins.response&&ye.config.plugins.response.dynamicConfig&&(this.config=Object.assign(Object.assign({},this.config),ye.config.plugins.response.dynamicConfig))}return M()(Ye,[{key:"canHandleResults",value:function(){if(!this.yasr.results||!this.yasr.results.getOriginalResponseAsString)return!1;var ye=this.yasr.results.getOriginalResponseAsString();return!((!ye||ye.length==0)&&this.yasr.results.getError())}},{key:"getIcon",value:function(){return Object(D.d)(Object(D.c)(Qt))}},{key:"download",value:function(ye){var Le=this;if(this.yasr.results){var J=this.yasr.results.getContentType(),H=this.yasr.results.getType(),Se=H==="xml"?"rdf":H;return{getData:function(){var Qe;return((Qe=Le.yasr.results)===null||Qe===void 0?void 0:Qe.getOriginalResponseAsString())||""},filename:"".concat(ye||"queryResults").concat(Se?"."+Se:""),contentType:J||"text/plain",title:"Download result"}}}},{key:"draw",value:function(ye){var Le,J,H=Object.assign(Object.assign({},this.config),ye),Se=((Le=this.yasr.results)===null||Le===void 0?void 0:Le.getOriginalResponseAsString())||"",Qe=Se.split(`
`);Qe.length>H.maxLines&&(Se=Qe.slice(0,H.maxLines).join(`
`));var ct={readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],value:Se,extraKeys:{Tab:!1}};((J=this.yasr.results)===null||J===void 0?void 0:J.getType())==="json"&&(ct.mode={name:"javascript",json:!0}),this.cm=gt(this.yasr.resultsEl,ct),Qe.length>H.maxLines&&this.showLess(!1)}},{key:"limitData",value:function(ye){var Le=ye.split(`
`);return Le.length>this.config.maxLines&&(ye=Le.slice(0,this.config.maxLines).join(`
`)),ye}},{key:"showLess",value:function(){var ye,Le=this,J=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(this.cm){Object(D.b)(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),Object(D.b)(this.overLay,"overlay");var H=document.createElement("div");Object(D.b)(H,"overlay_content");var Se=document.createElement("button");Se.title="Show all",Object(D.b)(Se,"yasr_btn","overlay_btn"),Se.textContent="Show all",Se.addEventListener("click",function(){return Le.showMore()}),H.append(Se);var Qe=document.createElement("button");Qe.title="Download result",Object(D.b)(Qe,"yasr_btn","overlay_btn");var ct=document.createElement("span");ct.innerText="Download result",Qe.appendChild(ct),Qe.appendChild(Object(D.d)(ur)),Qe.addEventListener("click",function(){return Le.yasr.download()}),Qe.addEventListener("keydown",function(Lt){Lt.code!=="Space"&&Lt.code!=="Enter"||Le.yasr.download()}),H.appendChild(Qe),this.overLay.appendChild(H),this.cm.getWrapperElement().appendChild(this.overLay),J&&this.cm.setValue(this.limitData(((ye=this.yasr.results)===null||ye===void 0?void 0:ye.getOriginalResponseAsString())||""))}}},{key:"showMore",value:function(){var ye,Le;this.cm&&(Object(D.g)(this.cm.getWrapperElement(),"overflow"),(ye=this.overLay)===null||ye===void 0||ye.remove(),this.overLay=void 0,this.cm.setValue(((Le=this.yasr.results)===null||Le===void 0?void 0:Le.getOriginalResponseAsString())||""),this.cm.refresh())}}]),Ye}();Ht.defaults={maxLines:30};var Ut=function(Ye,ye,Le,J){return new(Le||(Le=Promise))(function(H,Se){function Qe(w){try{Lt(J.next(w))}catch(k){Se(k)}}function ct(w){try{Lt(J.throw(w))}catch(k){Se(k)}}function Lt(w){var k;w.done?H(w.value):(k=w.value,k instanceof Le?k:new Le(function(ae){ae(k)})).then(Qe,ct)}Lt((J=J.apply(Ye,[])).next())})};b(148);var Gr=function(){function Ye(ye){G()(this,Ye),this.priority=20,this.hideFromSelection=!0,this.yasr=ye}return M()(Ye,[{key:"canHandleResults",value:function(){return!!this.yasr.results&&!!this.yasr.results.getError()}},{key:"getTryBtn",value:function(ye){var Le=document.createElement("a");return Le.href=ye,Le.rel="noopener noreferrer",Le.target="_blank",Le.className="yasr_tryQuery",Le.textContent="Try query in a new browser window",Le}},{key:"getCorsMessage",value:function(){var ye=document.createElement("div");ye.className="redOutline";var Le=document.createElement("p");Le.textContent="Unable to get response from endpoint. Possible reasons:",ye.appendChild(Le);var J=document.createElement("ul"),H=document.createElement("li");H.textContent="Incorrect endpoint URL",J.appendChild(H);var Se=document.createElement("li");Se.textContent="Endpoint is down",J.appendChild(Se);var Qe=document.createElement("li"),ct=document.createElement("span");ct.textContent="Endpoint is not accessible from the YASGUI server and website, and the endpoint is not ",Qe.appendChild(ct);var Lt=document.createElement("a");return Lt.textContent="CORS-enabled",Lt.href="http://enable-cors.org/",Lt.target="_blank",Lt.rel="noopener noreferrer",Qe.appendChild(Lt),J.appendChild(Qe),ye.appendChild(J),ye}},{key:"draw",value:function(){var ye;return Ut(this,void 0,void 0,R.a.mark(function Le(){var J,H,Se,Qe,ct,Lt,w,k,ae,Oe,qe,st;return R.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if((J=document.createElement("div")).className="errorResult",this.yasr.resultsEl.appendChild(J),H=(ye=this.yasr.results)===null||ye===void 0?void 0:ye.getError()){Ct.next=6;break}return Ct.abrupt("return");case 6:return(Se=document.createElement("div")).className="errorHeader",J.appendChild(Se),Ct.next=11,this.yasr.renderError(H);case 11:if(!(Qe=Ct.sent)){Ct.next=18;break}return(ct=document.createElement("div")).className="redOutline",ct.appendChild(Qe),J.appendChild(ct),Ct.abrupt("return");case 18:H.status?(Lt="Error",H.statusText&&H.statusText.length<100&&(Lt=H.statusText),Lt+=" (#".concat(H.status,")"),(w=document.createElement("span")).className="status",w.textContent=Lt,Se.appendChild(w),this.yasr.config.getPlainQueryLinkToEndpoint&&(k=this.yasr.config.getPlainQueryLinkToEndpoint())&&Se.appendChild(this.getTryBtn(k)),H.text&&(ae=document.createElement("div"),Object(D.b)(ae,"errorMessageContainer"),J.appendChild(ae),Oe=document.createElement("pre"),Object(D.b)(Oe,"errorMessage"),Oe.textContent=H.text,ae.appendChild(Oe))):(this.yasr.config.getPlainQueryLinkToEndpoint&&(qe=this.yasr.config.getPlainQueryLinkToEndpoint())&&Se.appendChild(this.getTryBtn(qe)),!H.text||H.text.indexOf("Request has been terminated")>=0?J.appendChild(this.getCorsMessage()):((st=document.createElement("pre")).textContent=H.text,J.appendChild(st)));case 19:case"end":return Ct.stop()}},Le,this)}))}},{key:"getIcon",value:function(){return document.createElement("")}}]),Ye}();function Ur(Ye,ye){var Le;if(typeof Symbol>"u"||Ye[Symbol.iterator]==null){if(Array.isArray(Ye)||(Le=function(Lt,w){if(Lt){if(typeof Lt=="string")return Un(Lt,w);var k=Object.prototype.toString.call(Lt).slice(8,-1);if(k==="Object"&&Lt.constructor&&(k=Lt.constructor.name),k==="Map"||k==="Set")return Array.from(Lt);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return Un(Lt,w)}}(Ye))||ye){Le&&(Ye=Le);var J=0,H=function(){};return{s:H,n:function(){return J>=Ye.length?{done:!0}:{done:!1,value:Ye[J++]}},e:function(Lt){throw Lt},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Se,Qe=!0,ct=!1;return{s:function(){Le=Ye[Symbol.iterator]()},n:function(){var Lt=Le.next();return Qe=Lt.done,Lt},e:function(Lt){ct=!0,Se=Lt},f:function(){try{Qe||Le.return==null||Le.return()}finally{if(ct)throw Se}}}}function Un(Ye,ye){(ye==null||ye>Ye.length)&&(ye=Ye.length);for(var Le=0,J=new Array(ye);Le<ye;Le++)J[Le]=Ye[Le];return J}function ei(Ye){var ye=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Le,J=oe()(Ye);if(ye){var H=oe()(this).constructor;Le=Reflect.construct(J,arguments,H)}else Le=J.apply(this,arguments);return ce()(this,Le)}}var ar=function(Ye,ye,Le,J){return new(Le||(Le=Promise))(function(H,Se){function Qe(w){try{Lt(J.next(w))}catch(k){Se(k)}}function ct(w){try{Lt(J.throw(w))}catch(k){Se(k)}}function Lt(w){var k;w.done?H(w.value):(k=w.value,k instanceof Le?k:new Le(function(ae){ae(k)})).then(Qe,ct)}Lt((J=J.apply(Ye,[])).next())})};b(137);var Lr=function(Ye){x()(Le,Ye);var ye=ei(Le);function Le(J){var H,Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qe=arguments.length>2?arguments[2]:void 0;if(G()(this,Le),(H=ye.call(this)).plugins={},H.helpDrawn=!1,H.utils={addScript:Rt,addCSS:Ot,sanitize:cr},!J)throw new Error("No parent passed as argument. Dont know where to draw YASR");H.rootEl=document.createElement("div"),H.rootEl.className="yasr",J.appendChild(H.rootEl),H.config=Object(m.a)({},Le.defaults,Se),H.storage=new D.a(Le.storageNamespace),H.getConfigFromStorage(),H.headerEl=document.createElement("div"),H.headerEl.className="yasr_header",H.rootEl.appendChild(H.headerEl),H.fallbackInfoEl=document.createElement("div"),H.fallbackInfoEl.className="yasr_fallback_info",H.rootEl.appendChild(H.fallbackInfoEl),H.resultsEl=document.createElement("div"),H.resultsEl.className="yasr_results",H.resultsEl.id=q("resultsId"),H.rootEl.appendChild(H.resultsEl),H.initializePlugins(),H.drawHeader();var ct=Qe||H.getResponseFromStorage();return ct&&H.setResponse(ct),H}return M()(Le,[{key:"getConfigFromStorage",value:function(){var J=this.getStorageId(this.config.persistenceLabelConfig);if(J){var H=this.storage.get(J);if(H)for(var Se in this.selectedPlugin=H.selectedPlugin,H.pluginsConfig){var Qe=H.pluginsConfig[Se];Qe&&this.config.plugins[Se]&&(this.config.plugins[Se].dynamicConfig=Qe)}}}},{key:"renderError",value:function(J){return ar(this,void 0,void 0,R.a.mark(function H(){var Se,Qe,ct,Lt;return R.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(Se=void 0,this.config.errorRenderers===void 0){w.next=22;break}Qe=Ur(this.config.errorRenderers),w.prev=3,Qe.s();case 5:if((ct=Qe.n()).done){w.next=14;break}return Lt=ct.value,w.next=9,Lt(J);case 9:if((Se=w.sent)===void 0){w.next=12;break}return w.abrupt("break",14);case 12:w.next=5;break;case 14:w.next=19;break;case 16:w.prev=16,w.t0=w.catch(3),Qe.e(w.t0);case 19:return w.prev=19,Qe.f(),w.finish(19);case 22:return w.abrupt("return",Se);case 23:case"end":return w.stop()}},H,this,[[3,16,19,22]])}))}},{key:"getStorageId",value:function(J,H){var Se=H||this.config.persistenceId;if(Se)return typeof Se=="string"?Se+"_"+J:Se(this)+"_"+J}},{key:"somethingDrawn",value:function(){return!!this.resultsEl.children.length}},{key:"emptyFallbackElement",value:function(){for(;this.fallbackInfoEl.firstChild;)this.fallbackInfoEl.removeChild(this.fallbackInfoEl.firstChild)}},{key:"getSelectedPluginName",value:function(){return this.selectedPlugin||this.config.defaultPlugin}},{key:"getSelectedPlugin",value:function(){if(this.plugins[this.getSelectedPluginName()])return this.plugins[this.getSelectedPluginName()];console.warn("Tried using plugin ".concat(this.getSelectedPluginName(),", but seems this plugin isnt registered in yasr."))}},{key:"updatePluginSelectors",value:function(J){if(this.pluginSelectorsEl)for(var H in this.config.plugins){var Se=this.plugins[H];Se&&!Se.hideFromSelection&&(J&&(J.indexOf(H)>=0?Object(D.g)(this.pluginSelectorsEl.querySelector(".select_"+H),"disabled"):Object(D.b)(this.pluginSelectorsEl.querySelector(".select_"+H),"disabled")),H===this.getSelectedPluginName()?Object(D.b)(this.pluginSelectorsEl.querySelector(".select_"+H),"selected"):Object(D.g)(this.pluginSelectorsEl.querySelector(".select_"+H),"selected"))}}},{key:"getCompatiblePlugins",value:function(){if(!this.results)return Object.keys(me(this.config.plugins,function(Se){return _()(Se)==="object"&&Se.enabled||Se===!0}));var J=[];for(var H in this.plugins)this.plugins[H].canHandleResults()&&J.push({name:H,priority:this.plugins[H].priority});return J.sort(function(Se,Qe){return Qe.priority-Se.priority}).map(function(Se){return Se.name})}},{key:"draw",value:function(){var J,H,Se,Qe,ct,Lt=this;if(this.updateHelpButton(),this.updateResponseInfo(),this.results){var w,k=this.getCompatiblePlugins();if(this.drawnPlugin&&this.getSelectedPluginName()!==this.drawnPlugin){for(;this.pluginControls.firstChild;)this.pluginControls.firstChild.remove();(H=(J=this.plugins[this.drawnPlugin]).destroy)===null||H===void 0||H.call(J)}if(this.getSelectedPlugin()&&(!((Se=this.getSelectedPlugin())===null||Se===void 0)&&Se.canHandleResults())?(w=this.getSelectedPluginName(),this.emptyFallbackElement()):k[0]&&(this.drawnPlugin&&((ct=(Qe=this.plugins[this.drawnPlugin]).destroy)===null||ct===void 0||ct.call(Qe)),w=k[0],this.fillFallbackBox(w)),w){this.drawnPlugin=w,this.emit("draw",this,this.plugins[w]);var ae=this.plugins[w];(ae.initialize?ae.initialize():Promise.resolve()).then(function(){return ar(Lt,void 0,void 0,R.a.mark(function Oe(){return R.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!w){qe.next=7;break}for(;this.resultsEl.firstChild;)this.resultsEl.firstChild.remove();return qe.next=4,this.plugins[w].draw(this.config.plugins[w].dynamicConfig);case 4:this.emit("drawn",this,this.plugins[w]),this.updateExportHeaders(),this.updatePluginSelectors(k);case 7:case"end":return qe.stop()}},Oe,this)}))},function(Oe){return console.error})}else this.resultsEl.textContent="cannot render result",this.updateExportHeaders(),this.updatePluginSelectors(k)}}},{key:"refresh",value:function(){this.draw()}},{key:"destroy",value:function(){var J,H;this.drawnPlugin&&((H=(J=this.plugins[this.drawnPlugin])===null||J===void 0?void 0:J.destroy)===null||H===void 0||H.call(J)),this.removeAllListeners(),this.rootEl.remove()}},{key:"getPrefixes",value:function(){return this.config.prefixes?typeof this.config.prefixes=="function"?this.config.prefixes(this):this.config.prefixes:{}}},{key:"selectPlugin",value:function(J){this.selectedPlugin!==J&&(this.config.plugins[J]?this.selectedPlugin=J:(console.warn("Plugin ".concat(J," does not exist.")),this.selectedPlugin=this.config.defaultPlugin),this.storeConfig(),this.emit("change",this),this.updatePluginSelectors(),this.draw())}},{key:"drawPluginSelectors",value:function(){var J=this;this.pluginSelectorsEl=document.createElement("ul"),this.pluginSelectorsEl.className="yasr_btnGroup";var H=this.config.pluginOrder;Object.keys(this.config.plugins).sort().forEach(function(Lt){H.indexOf(Lt)===-1&&H.push(Lt)});var Se,Qe=Ur(H);try{var ct=function(){var Lt=Se.value;if(!J.config.plugins[Lt]||!J.config.plugins[Lt].enabled)return"continue";var w=J.plugins[Lt];if(!w||w.hideFromSelection)return"continue";var k=w.label||Lt,ae=document.createElement("button");if(Object(D.b)(ae,"yasr_btn","select_"+Lt),ae.title=k,ae.type="button",ae.setAttribute("aria-label","Shows ".concat(k," view")),w.getIcon){var Oe=w.getIcon();Oe&&(Object(D.b)(Oe,"plugin_icon"),ae.appendChild(Oe))}var qe=document.createElement("span");qe.textContent=k,ae.appendChild(qe),ae.addEventListener("click",function(){return J.selectPlugin(Lt)});var st=document.createElement("li");st.appendChild(ae),J.pluginSelectorsEl.appendChild(st)};for(Qe.s();!(Se=Qe.n()).done;)ct()}catch(Lt){Qe.e(Lt)}finally{Qe.f()}this.pluginSelectorsEl.children.length>=1&&this.headerEl.appendChild(this.pluginSelectorsEl),this.updatePluginSelectors()}},{key:"fillFallbackBox",value:function(J){var H,Se,Qe;if(this.emptyFallbackElement(),!(!((H=this.plugins[J||this.drawnPlugin||""])===null||H===void 0)&&H.hideFromSelection)){var ct=this.getSelectedPlugin(),Lt=((Se=this.plugins[J||this.drawnPlugin||""])===null||Se===void 0?void 0:Se.label)||J||this.drawnPlugin,w=(ct==null?void 0:ct.label)||this.getSelectedPluginName(),k=document.createElement("p");if(k.innerText="Could not render results with the ".concat(w," plugin, the results currently are rendered with the ").concat(Lt," plugin. ").concat(!((Qe=this.getSelectedPlugin())===null||Qe===void 0)&&Qe.helpReference?"See ":""),ct==null?void 0:ct.helpReference){var ae=document.createElement("a");ae.innerText="".concat(w," documentation"),ae.href=ct.helpReference,ae.rel="noopener noreferrer",ae.target="_blank",k.append(ae),k.innerHTML+=" for more information."}this.fallbackInfoEl.appendChild(k)}}},{key:"drawPluginElement",value:function(){var J=document.createElement("div");Object(D.b)(J,"space_element"),this.headerEl.appendChild(J),this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),Object(D.b)(this.pluginControls,"yasr_plugin_control"),this.pluginControls.setAttribute("aria-controls",this.resultsEl.id),this.headerEl.appendChild(this.pluginControls)}},{key:"drawHeader",value:function(){this.drawPluginSelectors(),this.drawResponseInfo(),this.drawPluginElement(),this.drawDownloadIcon(),this.drawDocumentationButton()}},{key:"drawDownloadIcon",value:function(){var J=this;this.downloadBtn=document.createElement("a"),Object(D.b)(this.downloadBtn,"yasr_btn","yasr_downloadIcon","btn_icon"),this.downloadBtn.download="",this.downloadBtn.setAttribute("aria-label","Download Results"),this.downloadBtn.setAttribute("tabindex","0"),this.downloadBtn.setAttribute("role","button");var H=Object(D.d)(Object(D.c)(mr));H.setAttribute("aria-hidden","true"),this.downloadBtn.appendChild(H),this.downloadBtn.addEventListener("click",function(){Object(D.f)(J.downloadBtn,"disabled")||J.download()}),this.downloadBtn.addEventListener("keydown",function(Se){if(Se.code==="Space"||Se.code==="Enter"){if(Object(D.f)(J.downloadBtn,"disabled"))return;J.download()}}),this.headerEl.appendChild(this.downloadBtn)}},{key:"drawResponseInfo",value:function(){this.dataElement=document.createElement("div"),Object(D.b)(this.dataElement,"yasr_response_chip"),this.headerEl.appendChild(this.dataElement),this.updateResponseInfo()}},{key:"updateResponseInfo",value:function(){var J="";if(this.results){Object(D.g)(this.dataElement,"empty");var H=this.results.getBindings();H&&(J+="".concat(H.length," result").concat(H.length===1?"":"s"));var Se=this.results.getResponseTime();if(Se){J||(J="Response");var Qe=Se/1e3;J+=" in ".concat(Qe," second").concat(Qe===1?"":"s")}}else Object(D.b)(this.dataElement,"empty");this.dataElement.innerText=J}},{key:"updateHelpButton",value:function(){var J=this.getSelectedPlugin();if(J!=null&&J.helpReference){var H="View documentation of ".concat(J.label||this.getSelectedPluginName());this.documentationLink.href=J.helpReference,this.documentationLink.title=H,this.documentationLink.setAttribute("aria-label",H),Object(D.g)(this.documentationLink,"disabled")}else Object(D.b)(this.documentationLink,"disabled"),this.documentationLink.title="This plugin doesn't have a help reference yet. Please contact the maintainer to fix this"}},{key:"updateExportHeaders",value:function(){var J,H;if(this.downloadBtn&&this.drawnPlugin){this.downloadBtn.title="";var Se=this.plugins[this.drawnPlugin];if(Se&&Se.download){var Qe=Se.download((H=(J=this.config).getDownloadFileName)===null||H===void 0?void 0:H.call(J));if(Object(D.g)(this.downloadBtn,"disabled"),Qe)return void(Qe.title&&(this.downloadBtn.title=Qe.title))}this.downloadBtn.title="Download not supported",Object(D.b)(this.downloadBtn,"disabled")}}},{key:"drawDocumentationButton",value:function(){this.documentationLink=document.createElement("a"),Object(D.b)(this.documentationLink,"yasr_btn","yasr_external_ref_btn"),this.documentationLink.appendChild(Object(D.d)(Object(D.c)(Wr))),this.documentationLink.href="//triply.cc/docs/yasgui",this.documentationLink.target="_blank",this.documentationLink.rel="noopener noreferrer",this.headerEl.appendChild(this.documentationLink)}},{key:"download",value:function(){var J,H,Se;if(this.drawnPlugin){var Qe=this.plugins[this.drawnPlugin];if(Qe&&Qe.download){var ct=Qe.download((H=(J=this.config).getDownloadFileName)===null||H===void 0?void 0:H.call(J));if(!ct)return;var Lt,w=ct.getData();if(w.startsWith("data:"))Lt=w;else{var k=new Blob([w],{type:(Se=ct.contentType)!==null&&Se!==void 0?Se:"text/plain"});Lt=window.URL.createObjectURL(k)}var ae=document.createElement("a");ae.href=Lt,ae.download=ct.filename,ae.click()}}}},{key:"handleLocalStorageQuotaFull",value:function(J){console.warn("Localstorage quota exceeded. Clearing all queries"),Le.clearStorage()}},{key:"getResponseFromStorage",value:function(){var J=this.getStorageId(this.config.persistenceLabelResponse);if(J)return this.storage.get(J)}},{key:"getPersistentConfig",value:function(){return{selectedPlugin:this.getSelectedPluginName(),pluginsConfig:Object(xe.a)(this.config.plugins,function(J){return J.dynamicConfig})}}},{key:"storePluginConfig",value:function(J,H){this.config.plugins[J].dynamicConfig=H,this.storeConfig(),this.emit("change",this)}},{key:"storeConfig",value:function(){var J=this.getStorageId(this.config.persistenceLabelConfig);J&&this.storage.set(J,this.getPersistentConfig(),this.config.persistencyExpire,this.handleLocalStorageQuotaFull)}},{key:"storeResponse",value:function(){var J=this.getStorageId(this.config.persistenceLabelResponse);if(J&&this.results){var H=this.results.getAsStoreObject(this.config.maxPersistentResponseSize);H&&!H.error?this.storage.set(J,H,this.config.persistencyExpire,this.handleLocalStorageQuotaFull):this.storage.remove(J)}}},{key:"setResponse",value:function(J,H){J&&(this.results=new wt(J,H),this.draw(),this.storeResponse())}},{key:"initializePlugins",value:function(){for(var J in this.config.plugins)this.config.plugins[J]&&(Le.plugins[J]?this.plugins[J]=new Le.plugins[J](this):console.warn("Wanted to initialize plugin "+J+" but could not find a matching registered plugin"))}}],[{key:"registerPlugin",value:function(J,H){var Se=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];Le.plugins[J]=H,Le.defaults.plugins[J]=Se?{enabled:!0}:{enabled:!1}}},{key:"clearStorage",value:function(){new D.a(Le.storageNamespace).removeNamespace()}}]),Le}(ie.EventEmitter);function Fn(Ye,ye){var Le=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];Lr.plugins[Ye]=ye,Lr.defaults.plugins[Ye]=Le?{enabled:!0}:{enabled:!1}}Lr.defaults={persistenceId:function(Ye){var ye="",Le=Ye.rootEl;for(Le.id&&(ye=Le.id);Le&&Le!==document;Le=Le.parentNode)if(Le){Le.id&&(ye=Le.id);break}return"yasr_"+ye},getPlainQueryLinkToEndpoint:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",maxPersistentResponseSize:1e5,prefixes:{},plugins:{},pluginOrder:["table","response"],defaultPlugin:"table"},Lr.plugins={},Lr.Dependencies={},Lr.storageNamespace="triply",Lr.registerPlugin("table",pt),Lr.registerPlugin("boolean",it),Lr.registerPlugin("response",Ht),Lr.registerPlugin("error",Gr),de.default=Lr},function(ke,de,b){(function(A){var _=typeof A=="object"&&A&&A.Object===Object&&A;de.a=_}).call(this,b(72))},function(ke,de,b){de.a=function(A){return function(_){return A==null?void 0:A[_]}}},function(ke,de,b){de.a=function(A,_){return function(U){return A(_(U))}}},function(ke,de,b){var A=b(69),_=b(13);de.a=function(U,R){return U&&Object(A.a)(U,R,_.a)}},function(ke,de,b){var A=b(31),_=b(12),U=Object.prototype.hasOwnProperty;de.a=function(R,p,G){var C=R[p];U.call(R,p)&&Object(_.a)(C,G)&&(G!==void 0||p in R)||Object(A.a)(R,p,G)}},function(ke,de,b){var A=function(M,ue){for(var x=-1,Y=Array(M);++x<M;)Y[x]=ue(x);return Y},_=b(15),U=b(1),R=b(14),p=b(37),G=b(33),C=Object.prototype.hasOwnProperty;de.a=function(M,ue){var x=Object(U.a)(M),Y=!x&&Object(_.a)(M),ce=!x&&!Y&&Object(R.a)(M),K=!x&&!Y&&!ce&&Object(G.a)(M),oe=x||Y||ce||K,ie=oe?A(M.length,String):[],m=ie.length;for(var S in M)!ue&&!C.call(M,S)||oe&&(S=="length"||ce&&(S=="offset"||S=="parent")||K&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||Object(p.a)(S,m))||ie.push(S);return ie}},function(ke,de,b){var A=function(_){return function(U,R,p){for(var G=-1,C=Object(U),M=p(U),ue=M.length;ue--;){var x=M[++G];if(R(C[x],x,C)===!1)break}return U}}();de.a=A},function(ke,de,b){var A=b(12),_=b(10),U=b(37),R=b(2);de.a=function(p,G,C){if(!Object(R.a)(C))return!1;var M=typeof G;return!!(M=="number"?Object(_.a)(C)&&Object(U.a)(G,C.length):M=="string"&&G in C)&&Object(A.a)(C[G],p)}},function(ke,de,b){var A=b(117),_=b(136),U=b(94),R=b(119);ke.exports=function(p,G){return A(p)||_(p,G)||U(p,G)||R()}},function(ke,de){var b;b=function(){return this}();try{b=b||new Function("return this")()}catch{typeof window=="object"&&(b=window)}ke.exports=b},function(ke,de,b){var A=b(56),_=b(1);de.a=function(U,R,p){var G=R(U);return Object(_.a)(U)?G:Object(A.a)(G,p(U))}},function(ke,de,b){de.a=function(){return[]}},function(ke,de,b){de.a=function(A,_){for(var U=-1,R=A==null?0:A.length,p=0,G=[];++U<R;){var C=A[U];_(C,U,A)&&(G[p++]=C)}return G}},function(ke,de,b){de.a=function(A,_){var U=-1,R=A.length;for(_||(_=Array(R));++U<R;)_[U]=A[U];return _}},function(ke,de,b){(function(A){var _=b(3),U=exports&&!exports.nodeType&&exports,R=U&&typeof A=="object"&&A&&!A.nodeType&&A,p=R&&R.exports===U?_.a.Buffer:void 0,G=p?p.allocUnsafe:void 0;de.a=function(C,M){if(M)return C.slice();var ue=C.length,x=G?G(ue):new C.constructor(ue);return C.copy(x),x}}).call(this,b(83)(ke))},function(ke,de,b){var A=b(58);de.a=function(_,U){var R=U?Object(A.a)(_.buffer):_.buffer;return new _.constructor(R,_.byteOffset,_.length)}},function(ke,de,b){var A=b(25),_=b(91),U=b(89);de.a=function(R,p){return Object(U.a)(Object(_.a)(R,p,A.a),R+"")}},function(ke,de,b){var A=b(30),_=b(65),U=Object(_.a)(Object.keys,Object),R=Object.prototype.hasOwnProperty;de.a=function(p){if(!Object(A.a)(p))return U(p);var G=[];for(var C in Object(p))R.call(p,C)&&C!="constructor"&&G.push(C);return G}},function(ke,de,b){var A=b(2),_=Object.create,U=function(){function G(){}return function(C){if(!Object(A.a)(C))return{};if(_)return _(C);G.prototype=C;var M=new G;return G.prototype=void 0,M}}(),R=b(51),p=b(30);de.a=function(G){return typeof G.constructor!="function"||Object(p.a)(G)?{}:U(Object(R.a)(G))}},function(ke,de,b){b.r(de),b.d(de,"Yasqe",function(){return mn});var A={};b.r(A),b.d(A,"getAjaxConfig",function(){return $e}),b.d(A,"executeQuery",function(){return dt}),b.d(A,"getUrlArguments",function(){return Tt}),b.d(A,"getAcceptHeader",function(){return ft}),b.d(A,"getAsCurlString",function(){return Ke});var _=b(4),U=b.n(_),R=b(5),p=b.n(R),G=b(16),C=b.n(G),M=b(41),ue=b.n(M),x=b(42),Y=b.n(x),ce=b(21),K=b.n(ce),oe=b(39),ie=b(7),m=b.n(ie);function S(je,Fe,Ie){return Ie||(Ie=je.getDoc().getCursor()),Fe||(Fe=je.getTokenAt(Ie)),function Ee(Te,Je,It){if(Je.string.indexOf(" ")>=0){var wt=Je.string.indexOf(" ");return Je.string=Je.string.substr(0,wt),Je.end=Je.start+Je.string.length,Je}if(!Je.type)return Je;var Ot=Te.getTokenAt({line:It.line,ch:Je.end+1});return Ot.type!=="ws"&&Je.state.possibleFullIri&&Je.type!==null&&Je.type!=="ws"&&Ot.end!==Je.end?(Je.end=Ot.end,Je.string=Je.string+Ot.string,Ee(Te,Je,{line:It.line,ch:Ot.end})):(Je.type==="ws"&&(Je.end=Je.end+1,Je.string=Je.string.substring(Je.string.length-1)),Je)}(je,function Ee(Te,Je,It){var wt=Te.getTokenAt({line:It.line,ch:Je.start});return Je.type!=="punc"&&Je.type!=="error"||Je.state.possibleFullIri||Je.state.inPrefixDecl?wt.type==="punc"&&!wt.state.possibleFullIri&&!wt.state.inPrefixDecl?Je:wt.type!=null&&wt.type!="ws"&&Je.type!=null&&Je.type!="ws"?(Je.start=wt.start,Je.string=wt.string+Je.string,Ee(Te,Je,{line:It.line,ch:wt.start})):(Je.type!=null&&Je.type=="ws"&&(Je.start=Je.start+1,Je.string=Je.string.substring(1)),Je):(Je.state.possibleCurrent=Je.state.possibleNext,Je)}(je,Fe,Ie),Ie)}function P(je,Fe,Ie){Ie==null&&(Ie=1);var Ee=je.getTokenAt({line:Fe,ch:Ie});if(!(Ee==null||Ee==null||Ee.end<Ie))return Ee.type=="ws"?P(je,Fe,Ee.end+1):Ee}function q(je){for(var Fe=je.getDoc().lastLine(),Ie=0;Ie<=Fe;++Ie){var Ee=te(je,Ie);if(Ee!=null&&Ee>=0)return Ie}}function te(je,Fe){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Ee=arguments.length>3?arguments[3]:void 0;Ee||(Ee=je.getDoc().getLine(Fe));var Te=(Ee=Ee.toUpperCase()).indexOf("PREFIX ",Ie);if(Te>=0){var Je=je.getTokenTypeAt(m.a.Pos(Fe,Te+1));if(Je==="keyword")return Te}}function Z(je,Fe){je.getDoc().replaceRange("PREFIX "+Fe+`
`,{line:0,ch:0}),je.collapsePrefixes(!1)}var h=b(0),ne=b(50);function Ge(je,Fe,Ie){var Ee;Fe.onmouseover=function(){Ee||((Ee=document.createElement("div")).className="yasqe_tooltip"),Ee.style.display="block",Ee.innerHTML=Ie,Fe.appendChild(Ee)},Fe.onmouseout=function(){Ee&&(Ee.style.display="none"),Ee.innerHTML=Ie}}var me=b(19),xe=b.n(me),D=b(44),se=b(170),re=function(je,Fe,Ie,Ee){return new(Ie||(Ie=Promise))(function(Te,Je){function It(Rt){try{Ot(Ee.next(Rt))}catch(tr){Je(tr)}}function wt(Rt){try{Ot(Ee.throw(Rt))}catch(tr){Je(tr)}}function Ot(Rt){var tr;Rt.done?Te(Rt.value):(tr=Rt.value,tr instanceof Ie?tr:new Ie(function(cr){cr(tr)})).then(It,wt)}Ot((Ee=Ee.apply(je,[])).next())})};function be(je,Fe){return Object(D.a)(Fe)?Fe(je):Fe}function $e(je){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=Object(se.a)({},be(je,je.config.requestConfig),be(je,Fe));if(Ie.endpoint&&Ie.endpoint.length!=0){var Ee=je.getQueryMode(),Te=Object(D.a)(Ie.endpoint)?Ie.endpoint(je):Ie.endpoint,Je=Ee=="update"?"POST":Object(D.a)(Ie.method)?Ie.method(je):Ie.method,It=Object(D.a)(Ie.headers)?Ie.headers(je):Ie.headers,wt=Object(D.a)(Ie.withCredentials)?Ie.withCredentials(je):Ie.withCredentials;return{reqMethod:Je,url:Te,args:Tt(je,Ie),headers:It,accept:ft(je,Ie),withCredentials:wt}}}function dt(je,Fe){return re(this,void 0,void 0,xe.a.mark(function Ie(){var Ee,Te,Je;return xe.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(It.prev=0,$e(je,Fe),Te=$e(je,Fe)){It.next=5;break}return It.abrupt("return");case 5:return Je=Date.now(),(Ee=Te.reqMethod==="POST"?oe.post(Te.url).type("form").send(Te.args):oe.get(Te.url).query(Te.args)).accept(Te.accept).set(Te.headers||{}),Te.withCredentials&&Ee.withCredentials(),je.emit("query",Ee,Te),It.next=12,Ee.then(function(wt){return je.emit("queryResponse",wt,Date.now()-Je),je.emit("queryResults",wt.body,Date.now()-Je),wt.body},function(wt){throw wt instanceof Error&&wt.message==="Aborted"||je.emit("queryResponse",wt,Date.now()-Je),je.emit("error",wt),wt});case 12:return It.abrupt("return",It.sent);case 15:It.prev=15,It.t0=It.catch(0),console.error(It.t0);case 18:case"end":return It.stop()}},Ie,null,[[0,15]])}))}function Tt(je,Fe){var Ie=je.getQueryMode(),Ee={},Te=be(je,Fe),Je=Object(D.a)(Te.queryArgument)?Te.queryArgument(je):Te.queryArgument;Je||(Je=je.getQueryMode()),Ee[Je]=Te.adjustQueryBeforeRequest?Te.adjustQueryBeforeRequest(je):je.getValue();var It=Object(D.a)(Te.namedGraphs)?Te.namedGraphs(je):Te.namedGraphs;It&&It.length>0&&(Ee[Ie==="query"?"named-graph-uri":"using-named-graph-uri "]=It);var wt=Object(D.a)(Te.defaultGraphs)?Te.defaultGraphs(je):Te.defaultGraphs;wt&&wt.length>0&&(Ee[Ie=="query"?"default-graph-uri":"using-graph-uri "]=It);var Ot=Object(D.a)(Te.args)?Te.args(je):Te.args;return Ot&&Ot.length>0&&Object(se.a)(Ee,Ot.reduce(function(Rt,tr){return Rt[tr.name]?Rt[tr.name].push(tr.value):Rt[tr.name]=[tr.value],Rt},{})),Ee}function ft(je,Fe){var Ie=be(je,Fe),Ee=null;if(je.getQueryMode()=="update")Ee=Object(D.a)(Ie.acceptHeaderUpdate)?Ie.acceptHeaderUpdate(je):Ie.acceptHeaderUpdate;else{var Te=je.getQueryType();Ee=Te=="DESCRIBE"||Te=="CONSTRUCT"?Object(D.a)(Ie.acceptHeaderGraph)?Ie.acceptHeaderGraph(je):Ie.acceptHeaderGraph:Object(D.a)(Ie.acceptHeaderSelect)?Ie.acceptHeaderSelect(je):Ie.acceptHeaderSelect}return Ee}function Ke(je,Fe){var Ie=$e(je,be(je,Fe));if(!Ie)return"";var Ee=Ie.url;Ie.url.indexOf("http")!==0&&(Ee="".concat(window.location.protocol,"//").concat(window.location.host),Ie.url.indexOf("/")===0?Ee+=Ie.url:Ee+=window.location.pathname+Ie.url);var Te=["curl"];for(var Je in Ie.reqMethod==="GET"?(Ee+="?".concat(ne.stringify(Ie.args)),Te.push(Ee)):Ie.reqMethod==="POST"?(Te.push(Ee),Te.push("--data",ne.stringify(Ie.args))):(console.warn("Unexpected request-method",Ie.reqMethod),Te.push(Ee)),Te.push("-X",Ie.reqMethod),Ie.headers)Te.push("-H  '".concat(Je,": ").concat(Ie.headers[Je],"'"));return Te.join(" ")}var nt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',mt=function(){function je(){U()(this,je),this.words=0,this.prefixes=0,this.children={}}return p()(je,[{key:"insert",value:function(Fe,Ie){if(Fe.length!=0){var Ee,Te=this;Ie===void 0&&(Ie=0),Ie!==Fe.length?(Te.prefixes++,Ee=Fe[Ie],Te.children[Ee]===void 0&&(Te.children[Ee]=new je),Te.children[Ee].insert(Fe,Ie+1)):Te.words++}}},{key:"remove",value:function(Fe,Ie){if(Fe.length!=0){var Ee,Te=this;Ie===void 0&&(Ie=0),Te!==void 0&&(Ie!==Fe.length?(Te.prefixes--,Ee=Fe[Ie],Te.children[Ee].remove(Fe,Ie+1)):Te.words--)}}},{key:"update",value:function(Fe,Ie){Fe.length!=0&&Ie.length!=0&&(this.remove(Fe),this.insert(Ie))}},{key:"countWord",value:function(Fe,Ie){if(Fe.length==0)return 0;var Ee,Te,Je=0;return Ie===void 0&&(Ie=0),Ie===Fe.length?this.words:(Ee=Fe[Ie],(Te=this.children[Ee])!==void 0&&(Je=Te.countWord(Fe,Ie+1)),Je)}},{key:"countPrefix",value:function(Fe,Ie){if(Fe.length==0)return 0;var Ee,Te=0;if(Ie===void 0&&(Ie=0),Ie===Fe.length)return this.prefixes;var Je=Fe[Ie];return(Ee=this.children[Je])!==void 0&&(Te=Ee.countPrefix(Fe,Ie+1)),Te}},{key:"find",value:function(Fe){return Fe.length!=0&&this.countWord(Fe)>0}},{key:"getAllWords",value:function(Fe){var Ie,Ee,Te=this,Je=[];if(Fe===void 0&&(Fe=""),Te===void 0)return[];for(Ie in Te.words>0&&Je.push(Fe),Te.children)Te.children.hasOwnProperty(Ie)&&(Ee=Te.children[Ie],Je=Je.concat(Ee.getAllWords(Fe+Ie)));return Je}},{key:"autoComplete",value:function(Fe,Ie){var Ee,Te;return Fe.length==0?Ie===void 0?this.getAllWords(Fe):[]:(Ie===void 0&&(Ie=0),Ee=Fe[Ie],(Te=this.children[Ee])===void 0?[]:Ie===Fe.length-1?Te.getAllWords(Fe):Te.autoComplete(Fe,Ie+1))}}]),je}(),yt=b(54),Nt=function(je,Fe,Ie){var Ee=-1,Te=je.length;Fe<0&&(Fe=-Fe>Te?0:Te+Fe),(Ie=Ie>Te?Te:Ie)<0&&(Ie+=Te),Te=Fe>Ie?0:Ie-Fe>>>0,Fe>>>=0;for(var Je=Array(Te);++Ee<Te;)Je[Ee]=je[Ee+Fe];return Je},at=b(96),Ft=function(je,Fe,Ie){return je&&je.length?(Fe=Fe===void 0?1:Object(at.a)(Fe),Nt(je,0,Fe<0?0:Fe)):[]},B={name:"variables",isValidCompletionPosition:function(je){var Fe=je.getTokenAt(je.getDoc().getCursor());return!(Fe.type=="ws"||!(Fe=je.getCompleteToken(Fe))||Fe.string[0]!=="?"&&Fe.string[0]!=="$")},get:function(je,Fe){if(!Fe||Fe.string.length==0)return[];for(var Ie={},Ee=[],Te=je.getWrapperElement().querySelectorAll(".cm-atom"),Je=0;Je<Te.length;Je++){var It=Te[Je],wt=It.innerHTML;if(wt[0]==="?"||wt[0]==="$"){var Ot=It.nextSibling;if(Ot&&Ot.className&&Ot.className.indexOf("cm-atom")>=0&&(wt+=Ot.innerText),Ie[wt]||wt.length<=1||wt.indexOf(Fe.string)!==0||wt===Fe.string)continue;Ie[wt]=!0,Ee.push(wt)}}return Ee.sort()},bulk:!1,autoShow:!0},X=b(97),he=b(60),De=b(52),Ve=b(90),Be=b(10),ze=function(je,Fe){var Ie=-1,Ee=Object(Be.a)(je)?Array(je.length):[];return Object(Ve.a)(je,function(Te,Je,It){Ee[++Ie]=Fe(Te,Je,It)}),Ee},lt=function(je,Fe){var Ie=je.length;for(je.sort(Fe);Ie--;)je[Ie]=je[Ie].value;return je},Ze=b(45),Pt=b(17),jt=function(je,Fe){if(je!==Fe){var Ie=je!==void 0,Ee=je===null,Te=je==je,Je=Object(Pt.a)(je),It=Fe!==void 0,wt=Fe===null,Ot=Fe==Fe,Rt=Object(Pt.a)(Fe);if(!wt&&!Rt&&!Je&&je>Fe||Je&&It&&Ot&&!wt&&!Rt||Ee&&It&&Ot||!Ie&&Ot||!Te)return 1;if(!Ee&&!Je&&!Rt&&je<Fe||Rt&&Ie&&Te&&!Ee&&!Je||wt&&Ie&&Te||!It&&Te||!Ot)return-1}return 0},nr=function(je,Fe,Ie){for(var Ee=-1,Te=je.criteria,Je=Fe.criteria,It=Te.length,wt=Ie.length;++Ee<It;){var Ot=jt(Te[Ee],Je[Ee]);if(Ot)return Ee>=wt?Ot:Ot*(Ie[Ee]=="desc"?-1:1)}return je.index-Fe.index},Bt=b(25),xr=function(je,Fe,Ie){var Ee=-1;Fe=Object(he.a)(Fe.length?Fe:[Bt.a],Object(Ze.a)(De.a));var Te=ze(je,function(Je,It,wt){return{criteria:Object(he.a)(Fe,function(Ot){return Ot(Je)}),index:++Ee,value:Je}});return lt(Te,function(Je,It){return nr(Je,It,Ie)})},Pr=b(79),gr=b(70),Cr=Object(Pr.a)(function(je,Fe){if(je==null)return[];var Ie=Fe.length;return Ie>1&&Object(gr.a)(je,Fe[0],Fe[1])?Fe=[]:Ie>2&&Object(gr.a)(Fe[0],Fe[1],Fe[2])&&(Fe=[Fe[0]]),xr(je,Object(X.a)(Fe,1),[])}),qr={"string-2":"prefixed",atom:"var"},on={postprocessHints:function(je,Fe){return Cr(Fe,function(Ie){return Ie.text.split(":")[0]})},onInitialize:function(je){var Fe=this;je.on("change",function(){var Ie;if(je.config.autocompleters&&je.config.autocompleters.indexOf(Fe.name)!=-1){var Ee=je.getDoc().getCursor(),Te=je.getTokenAt(Ee);if(Te.type&&qr[Te.type]=="prefixed"){var Je=Te.string.indexOf(":");if(Je!==-1){var It=je.getPreviousNonWsToken(Ee.line,Te).string.toUpperCase(),wt=je.getTokenAt({line:Ee.line,ch:Te.start});if(It!=="PREFIX"&&(wt.type=="ws"||wt.type==null||wt.type==="punc"&&(wt.string==="|"||wt.string==="/"||wt.string=="^^"||wt.string=="{"||wt.string==="("))){var Ot=Te.string.substring(0,Je+1);je.getPrefixesFromQuery()[Ot.slice(0,-1)]==null&&(Te.autocompletionString=Ot,(Ie=je.autocompleters[Fe.name])===null||Ie===void 0||Ie.getCompletions(Te).then(function(Rt){Rt.length&&(je.addPrefixes(Rt[0]),je.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(je){var Fe=je.getDoc().getCursor(),Ie=je.getTokenAt(Fe);if(je.getDoc().getLine(Fe.line).length>Fe.ch||(Ie.type!="ws"&&(Ie=je.getCompleteToken()),Ie.string.indexOf("a")!==0&&Ie.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var Ee=je.getPreviousNonWsToken(Fe.line,Ie);return!(!Ee||Ee.string.toUpperCase()!="PREFIX")},get:function(je){return oe.get(je.config.prefixCcApi).then(function(Fe){var Ie=[];for(var Ee in Fe.body){var Te=Ee+": <"+Fe.body[Ee]+">";Ie.push(Te)}return Ie.sort()})},preProcessToken:function(je,Fe){var Ie=je.getPreviousNonWsToken(je.getDoc().getCursor().line,Fe);return Ie&&Ie.string&&Ie.string.slice(-1)==":"&&(Fe={start:Ie.start,end:Fe.end,string:Ie.string+" "+Fe.string,state:Fe.state,type:Fe.type}),Fe},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},Er={onInitialize:function(je){},get:function(je,Fe){return hn(je,"property",Fe)},isValidCompletionPosition:function(je){var Fe=je.getCompleteToken();return Fe.string.length!=0&&Fe.string[0]!=="?"&&Fe.string[0]!=="$"&&Fe.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(je,Fe){return Dr(je,Fe)},postProcessSuggestion:function(je,Fe,Ie){return br(je,Fe,Ie)},bulk:!1,name:"property"},cn={onInitialize:function(je){},get:function(je,Fe){return hn(je,"class",Fe)},isValidCompletionPosition:function(je){var Fe=je.getCompleteToken();if(Fe.string[0]==="?"||Fe.string[0]==="$")return!1;var Ie=je.getDoc().getCursor(),Ee=je.getPreviousNonWsToken(Ie.line,Fe);return Ee.state.lastProperty==="a"||Ee.state.lastProperty==="rdf:type"||Ee.state.lastProperty==="rdfs:domain"||Ee.state.lastProperty==="rdfs:range"},preProcessToken:function(je,Fe){return Dr(je,Fe)},postProcessSuggestion:function(je,Fe,Ie){return br(je,Fe,Ie)},bulk:!1,name:"class"};function Vr(je,Fe){var Ie;if(typeof Symbol>"u"||je[Symbol.iterator]==null){if(Array.isArray(je)||(Ie=function(Ot,Rt){if(Ot){if(typeof Ot=="string")return dn(Ot,Rt);var tr=Object.prototype.toString.call(Ot).slice(8,-1);if(tr==="Object"&&Ot.constructor&&(tr=Ot.constructor.name),tr==="Map"||tr==="Set")return Array.from(Ot);if(tr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tr))return dn(Ot,Rt)}}(je))||Fe){Ie&&(je=Ie);var Ee=0,Te=function(){};return{s:Te,n:function(){return Ee>=je.length?{done:!0}:{done:!1,value:je[Ee++]}},e:function(Ot){throw Ot},f:Te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Je,It=!0,wt=!1;return{s:function(){Ie=je[Symbol.iterator]()},n:function(){var Ot=Ie.next();return It=Ot.done,Ot},e:function(Ot){wt=!0,Je=Ot},f:function(){try{It||Ie.return==null||Ie.return()}finally{if(wt)throw Je}}}}function dn(je,Fe){(Fe==null||Fe>je.length)&&(Fe=je.length);for(var Ie=0,Ee=new Array(Fe);Ie<Fe;Ie++)Ee[Ie]=je[Ie];return Ee}function vr(je){var Fe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Ie,Ee=K()(je);if(Fe){var Te=K()(this).constructor;Ie=Reflect.construct(Ee,arguments,Te)}else Ie=Ee.apply(this,arguments);return Y()(this,Ie)}}var lr=b(7);b(160);var gn=function(je){ue()(Ie,je);var Fe=vr(Ie);function Ie(Ee,Te){var Je;return U()(this,Ie),(Je=Fe.call(this)).yasqe=Ee,Je.config=Te,Je}return p()(Ie,[{key:"getStorageId",value:function(){return this.yasqe.getStorageId(this.config.persistenceId)}},{key:"storeBulkCompletions",value:function(Ee){if(Ee&&Ee instanceof Array){this.trie=new mt;var Te,Je=Vr(Ee);try{for(Je.s();!(Te=Je.n()).done;){var It=Te.value;this.trie.insert(It)}}catch(Ot){Je.e(Ot)}finally{Je.f()}var wt=this.getStorageId();wt&&this.yasqe.storage.set(wt,Ee,2592e3,this.yasqe.handleLocalStorageQuotaFull)}}},{key:"getCompletions",value:function(Ee){if(!this.config.get)return Promise.resolve([]);if(!Ee)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(function(Je){return Je instanceof Array?Je:[]});var Te=Ee.autocompletionString||Ee.string;return this.trie?Promise.resolve(Ft(this.trie.autoComplete(Te),100)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(function(Je){return Je.indexOf(Te)===0})):Promise.resolve(this.config.get(this.yasqe,Ee)).then(function(Je){return Je instanceof Array?Je:[]})}},{key:"initialize",value:function(){var Ee=this;if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var Te,Je=this.getStorageId();return Je&&(Te=this.yasqe.storage.get(Je)),Te&&Te.length>0?(this.storeBulkCompletions(Te),Promise.resolve()):this.getCompletions().then(function(It){return Ee.storeBulkCompletions(It)})}return Promise.resolve()}},{key:"isValidPosition",value:function(){return!!this.config.isValidCompletionPosition&&(this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1))}},{key:"getHint",value:function(Ee,Te){var Je,It;this.config.postProcessSuggestion&&(Te=this.config.postProcessSuggestion(this.yasqe,Ee,Te));var wt=this.yasqe.getDoc().getCursor();Ee.from&&(It=Object.assign(Object.assign({},wt),Ee.from));var Ot=this.yasqe.getDoc().getCursor().line;return{text:Te,displayText:Te,from:It,to:Ee.to?{ch:((Je=Ee==null?void 0:Ee.to)===null||Je===void 0?void 0:Je.ch)||this.yasqe.getCompleteToken().end,line:Ot}:Ee.string.length>0?{ch:this.yasqe.getCompleteToken().end,line:Ot}:Ee.from}}},{key:"getHints",value:function(Ee){var Te=this;return this.config.preProcessToken&&(Ee=this.config.preProcessToken(this.yasqe,Ee)),Ee?this.getCompletions(Ee).then(function(Je){return Je.map(function(It){return Te.getHint(Ee,It)})}).then(function(Je){return Te.config.postprocessHints?Te.config.postprocessHints(Te.yasqe,Je):Je}):Promise.resolve([])}},{key:"autocomplete",value:function(Ee){var Te=this;if(!this.isValidPosition())return!1;var Je=this.yasqe.state.completionActive,It=this.yasqe.getDoc().getCursor();if(Je&&It.sticky&&It.ch!==Je.startPos.ch?this.yasqe.state.completionActive.startPos=It:Je&&!It.sticky&&It.ch<Je.startPos.ch&&(It.sticky=Je.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=It.ch,this.yasqe.state.completionActive.startLen--),Ee&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;var wt=function(){return Te.getHints(Te.yasqe.getCompleteToken()).then(function(Rt){var tr=Te.yasqe.getDoc().getCursor(),cr=Te.yasqe.getCompleteToken(),mr={list:Rt,from:{line:tr.line,ch:cr.start},to:{line:tr.line,ch:cr.end}};return lr.on(mr,"shown",function(){Te.yasqe.emit("autocompletionShown",Te.yasqe.state.completionActive.widget)}),lr.on(mr,"close",function(){Te.yasqe.emit("autocompletionClose")}),mr})};wt.async=!1;var Ot=Object.assign({closeCharacters:/[\s>"]/,completeSingle:!1,hint:wt,container:this.yasqe.rootEl,extraKeys:{Home:function(Rt,tr){Rt.getDoc().setCursor({ch:0,line:tr.data.from.line})},End:function(Rt,tr){Rt.getDoc().setCursor({ch:Rt.getLine(tr.data.to.line).length,line:tr.data.to.line})}}},this.yasqe.config.hintConfig);return this.yasqe.showHint(Ot),!0}}]),Ie}(yt.EventEmitter);function Dr(je,Fe){var Ie=je.getPrefixesFromQuery(),Ee=Fe.string;if(Ee.indexOf("<")<0&&(Fe.tokenPrefix=Ee.substring(0,Ee.indexOf(":")+1),Ie[Fe.tokenPrefix.slice(0,-1)]!=null&&(Fe.tokenPrefixUri=Ie[Fe.tokenPrefix.slice(0,-1)])),Fe.autocompletionString=Ee.trim(),Ee.indexOf("<")<0&&Ee.indexOf(":")>-1){for(var Te in Ie)if(Fe.tokenPrefix===Te+":"){Fe.autocompletionString=Ie[Te],Fe.autocompletionString+=Ee.substring(Te.length+1);break}}return Fe.autocompletionString.indexOf("<")==0&&(Fe.autocompletionString=Fe.autocompletionString.substring(1)),Fe.autocompletionString.indexOf(">",Fe.autocompletionString.length-1)>0&&(Fe.autocompletionString=Fe.autocompletionString.substring(0,Fe.autocompletionString.length-1)),Fe}function br(je,Fe,Ie){return Ie=Fe.tokenPrefix&&Fe.autocompletionString&&Fe.tokenPrefixUri?Fe.tokenPrefix+Ie.substring(Fe.tokenPrefixUri.length):"<"+Ie+">"}var hn=function(je,Fe,Ie){var Ee=window.location.protocol.indexOf("http")===0?"https://":"http://",Te="autocomplete_"+Fe;return Ie&&Ie.string&&Ie.string.trim().length!=0?oe.get(Ee+"lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms").query({q:Ie.autocompletionString,page_size:50,type:Fe}).then(function(Je){return Je.body.results?Je.body.results.map(function(It){return It.uri[0]}):[]},function(Je){je.showNotification(Te,"Failed fetching suggestions")}):(je.showNotification(Te,"Nothing to autocomplete yet!"),Promise.resolve([]))},sn=[B,on,Er,cn],Sr=b(171),Yr=b(7);b(92),b(99),b(100),b(101),b(162),b(122),b(163),b(102),b(166),b(103),b(167),b(168),Yr.registerHelper("fold","prefix",function(je,Fe){var Ie=Fe.line,Ee=je.getDoc().getLine(Ie),Te=function(Rr,tn){var yr=je.getTokenAt(m.a.Pos(Rr,tn+1));if(!yr||yr.type!="keyword")return-1;var Kt=P(je,Rr,yr.end+1);if(!Kt||Kt.type!="string-2")return-1;var pn=P(je,Rr,Kt.end+1);return pn&&pn.type=="variable-3"?pn.end:-1};if(!function(){for(var Rr=!1,tn=Ie-1;tn>=0;tn--)if(je.getDoc().getLine(tn).toUpperCase().indexOf("PREFIX ")>=0){Rr=!0;break}return Rr}()){var Je=te(je,Ie,Fe.ch,Ee);if(Je!=null){for(var It,wt=!1,Ot=je.getDoc().lastLine(),Rt=Te(Ie,Je),tr=Ie,cr=Ie;cr<=Ot&&!wt;++cr)for(var mr=je.getDoc().getLine(cr),Wr=cr==Ie?Je+1:0;;){!wt&&mr.indexOf("{")>=0&&(wt=!0);var Br=mr.toUpperCase().indexOf("PREFIX ",Wr);if(!(Br>=0))break;(It=Te(cr,Br))>0&&(tr=cr,Wr=Rt=It),Wr++}return{from:m.a.Pos(Ie,Je+7),to:m.a.Pos(tr,Rt)}}}}),Yr.defineMode("sparql11",function(je){var Fe=b(161),Ie=Fe.table,Ee="[0-9A-Fa-f]",Te="(([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])(((([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]))|\\.)*(([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])))?)?:",Je="[eE][\\+-]?[0-9]+",It="[0-9]*\\.[0-9]+",wt="(([0-9]+\\.[0-9]*"+Je+")|(\\.[0-9]+"+Je+")|([0-9]+"+Je+"))",Ot=`\\\\[tbnrf\\\\"']`,Rt=Ee+"{4}",tr="(\\\\u"+Rt+"|\\\\U00(10|0"+Ee+")"+Rt+")",cr={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+Ot+"|"+tr+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+Ot+"|"+tr+"))*"}};for(var mr in cr)cr[mr].COMPLETE=cr[mr].QUOTES+cr[mr].CONTENTS+cr[mr].QUOTES;var Wr={};for(var Br in cr)Wr[Br]={complete:{name:"STRING_LITERAL_LONG_"+Br,regex:new RegExp("^"+cr[Br].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Br,regex:new RegExp("^"+cr[Br].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Br,regex:new RegExp("^"+cr[Br].CONTENTS+cr[Br].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Br,regex:new RegExp("^"+cr[Br].QUOTES),style:"string"}};var Rr="[\\x20\\x09\\x0D\\x0A]",tn="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",yr=[{name:"WS",regex:new RegExp("^"+Rr+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+tn),style:"comment"},{name:"IRI_REF",regex:new RegExp('^<[^<>"`|{}^\\\0- ]*>'),style:"variable-3"},{name:"VAR1",regex:new RegExp("^\\?([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]|_|[0-9])([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]|_|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*"),style:"atom"},{name:"VAR2",regex:new RegExp("^\\$([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]|_|[0-9])([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]|_|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*"),style:"atom"},{name:"LANGTAG",regex:new RegExp("^@[a-zA-Z]+(-[a-zA-Z0-9]+)*"),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+wt),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+It),style:"number"},{name:"INTEGER",regex:new RegExp("^[0-9]+"),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^\\+(([0-9]+\\.[0-9]*[eE][\\+-]?[0-9]+)|(\\.[0-9]+[eE][\\+-]?[0-9]+)|([0-9]+[eE][\\+-]?[0-9]+))"),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^\\+[0-9]*\\.[0-9]+"),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^\\+[0-9]+"),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^-(([0-9]+\\.[0-9]*[eE][\\+-]?[0-9]+)|(\\.[0-9]+[eE][\\+-]?[0-9]+)|([0-9]+[eE][\\+-]?[0-9]+))"),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^-[0-9]*\\.[0-9]+"),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^-[0-9]+"),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp(`^'(([^\\x27\\x5C\\x0A\\x0D])|\\\\[tbnrf\\\\"']|(\\\\u[0-9A-Fa-f]{4}|\\\\U00(10|0[0-9A-Fa-f])[0-9A-Fa-f]{4}))*'`),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp(`^"(([^\\x22\\x5C\\x0A\\x0D])|\\\\[tbnrf\\\\"']|(\\\\u[0-9A-Fa-f]{4}|\\\\U00(10|0[0-9A-Fa-f])[0-9A-Fa-f]{4}))*"`),style:"string"},{name:"NIL",regex:new RegExp("^\\(([\\x20\\x09\\x0D\\x0A]|(#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)))*\\)"),style:"punc"},{name:"ANON",regex:new RegExp("^\\[([\\x20\\x09\\x0D\\x0A]|(#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)))*\\]"),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^(([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])(((([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]))|\\.)*(([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])))?)?:([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]|_|:|[0-9]|((%[0-9A-Fa-f][0-9A-Fa-f])|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])))((([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])|\\.|:|((%[0-9A-Fa-f][0-9A-Fa-f])|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])))*(([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])|:|((%[0-9A-Fa-f][0-9A-Fa-f])|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%]))))?"),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+Te),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^_:([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]|_|[0-9])((([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])|\\.)*([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]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]))?"),style:"string-2"}];function Kt(pt){var it=[],Qt=Ie[pt];if(Qt!=null)for(var ur in Qt)it.push(ur.toString());else it.push(pt);return it}function pn(pt,it){function Qt(){var Se=pt.column();it.errorStartPos=Se,it.errorEndPos=Se+Ut.string.length}function ur(Se){if(it.queryType==null)switch(Se){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":it.queryType=Se}}function gt(Se){switch(it.inPrefixDecl=Se==="prefixDecl",Se){case"disallowVars":it.allowVars=!1;break;case"allowVars":it.allowVars=!0;break;case"disallowBnodes":it.allowBnodes=!1;break;case"allowBnodes":it.allowBnodes=!0;break;case"storeProperty":it.storeProperty=!0}}function Ht(Se){return(it.allowVars||Se!="var")&&(it.allowBnodes||Se!="blankNode"&&Se!="blankNodePropertyList"&&Se!="blankNodePropertyListPath")}pt.pos==0&&(it.possibleCurrent=it.possibleNext);var Ut=function(){var Se;if(it.inLiteral){var Qe=!1;if((Se=pt.match(Wr[it.inLiteral].contents.regex,!0,!1))&&Se[0].length==0&&(Se=pt.match(Wr[it.inLiteral].closing.regex,!0,!1),Qe=!0),Se&&Se[0].length>0){var ct={quotePos:Qe?"end":"content",cat:cr[it.inLiteral].CAT,style:Wr[it.inLiteral].complete.style,string:Se[0],start:pt.start};return Qe&&(it.inLiteral=void 0),ct}}for(var Lt in Wr){var w;if(Se=pt.match(Wr[Lt].quotes.regex,!0,!1))return it.inLiteral?(it.inLiteral=void 0,w="end"):(it.inLiteral=Lt,w="start"),{cat:cr[Lt].CAT,style:Wr[Lt].quotes.style,string:Se[0],quotePos:w,start:pt.start}}for(var k=0;k<yr.length;++k)if(Se=pt.match(yr[k].regex,!0,!1))return{cat:yr[k].name,style:yr[k].style,string:Se[0],start:pt.start,quotePos:void 0};return(Se=pt.match(Fe.keywords,!0,!1))?{cat:pt.current().toUpperCase(),style:"keyword",string:Se[0],start:pt.start,quotePos:void 0}:(Se=pt.match(Fe.punct,!0,!1))?{cat:pt.current(),style:"punc",string:Se[0],start:pt.start,quotePos:void 0}:{cat:"<invalid_token>",style:"error",string:(Se=pt.match(/^.[A-Za-z0-9]*/,!0,!1))[0],start:pt.start,quotePos:void 0}}();if(Ut.cat=="<invalid_token>")return it.OK==1&&(it.OK=!1,Qt()),it.complete=!1,Ut.style;if(Ut.cat==="WS"||Ut.cat==="COMMENT"||Ut.quotePos&&Ut.quotePos!="end")return it.possibleCurrent=it.possibleNext,it.possibleFullIri=!1,Ut.style;var Gr,Ur=!1,Un=Ut.cat;if(it.possibleFullIri&&Ut.string===">"&&(it.possibleFullIri=!1),it.possibleFullIri||Ut.string!=="<"||(it.possibleFullIri=!0),!Ut.quotePos||Ut.quotePos=="end")for(;it.stack.length>0&&Un&&it.OK&&!Ur;)if((Gr=it.stack.pop())==="var"&&Ut.string&&(it.variables[Ut.string]=Ut.string),Ie[Gr]){var ei=Ie[Gr][Un];if(ei!=null&&Ht(Gr)){for(var ar=ei.length-1;ar>=0;--ar)it.stack.push(ei[ar]);gt(Gr)}else it.OK=!1,it.complete=!1,Qt(),it.stack.push(Gr)}else if(Gr==Un){it.inPrefixDecl&&(Gr==="PNAME_NS"&&Ut.string.length>0?it.currentPnameNs=Ut.string.slice(0,-1):typeof it.currentPnameNs=="string"&&Ut.string.length>1&&(it.prefixes[it.currentPnameNs]=Ut.string.slice(1,-1),it.currentPnameNs=void 0)),Ur=!0,ur(Gr);for(var Lr=!0,Fn=it.stack.length;Fn>0;--Fn){var Ye=Ie[it.stack[Fn-1]];Ye&&Ye.$||(Lr=!1)}if(it.complete=Lr,it.storeProperty&&Un!="punc"?(it.lastProperty=Ut.string,it.lastPropertyIndex=Ut.start,it.storeProperty=!1):Un!=="."&&Un!==";"||(it.lastProperty="",it.lastPropertyIndex=0),!it.inPrefixDecl&&(Un==="PNAME_NS"||Un==="PNAME_LN")){var ye=Ut.string.indexOf(":");if(ye>=0){var Le=Ut.string.slice(0,ye);it.prefixes[Le]===void 0&&(it.OK=!1,Qt(),it.errorMsg="Prefix '"+Le+"' is not defined")}}}else it.OK=!1,it.complete=!1,Qt();if(!Ur&&it.OK&&(it.OK=!1,it.complete=!1,Qt()),it.possibleNext.indexOf("a")>=0){for(var J=pt.string,H=Ut.start;H>=0;H--)if(J[H-1]!==" "){J[H-1]==="|"||J[H-1]==="/"||Ut.style==="punc"||(it.lastPredicateOffset=Ut.start);break}}return it.possibleCurrent=it.possibleNext,it.possibleNext=Kt(it.stack[it.stack.length-1]),Ut.style}var ge={"*[,, 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},Ue={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};return{token:pn,startState:function(){return{tokenize:pn,OK:!0,complete:Fe.acceptEmpty,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:Kt(Fe.startSymbol),possibleNext:Kt(Fe.startSymbol),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[Fe.startSymbol],lastPredicateOffset:je.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:function(pt,it){var Qt;if(pt.inLiteral)return 0;if(pt.lastPredicateOffset!==void 0&&pt.stack.length&&pt.stack[pt.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return pt.lastPredicateOffset;var ur=0,gt=pt.stack.length-1;if(/^[\}\]\)]/.test(it)){for(var Ht=it.substr(0,1);gt>=0;--gt)if(pt.stack[gt]==Ht){--gt;break}}else{var Ut=ge[pt.stack[gt]];Ut&&(ur+=Ut,--gt)}for(;gt>=0;--gt){var Gr=Ue[pt.stack[gt]];Gr&&(ur+=Gr)}return ur*((Qt=je.indentUnit)!==null&&Qt!==void 0?Qt:2)},electricChars:"}])"}});var kr=Yr;function Wn(je,Fe){var Ie;if(typeof Symbol>"u"||je[Symbol.iterator]==null){if(Array.isArray(je)||(Ie=function(Ot,Rt){if(Ot){if(typeof Ot=="string")return Jn(Ot,Rt);var tr=Object.prototype.toString.call(Ot).slice(8,-1);if(tr==="Object"&&Ot.constructor&&(tr=Ot.constructor.name),tr==="Map"||tr==="Set")return Array.from(Ot);if(tr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tr))return Jn(Ot,Rt)}}(je))||Fe){Ie&&(je=Ie);var Ee=0,Te=function(){};return{s:Te,n:function(){return Ee>=je.length?{done:!0}:{done:!1,value:je[Ee++]}},e:function(Ot){throw Ot},f:Te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Je,It=!0,wt=!1;return{s:function(){Ie=je[Symbol.iterator]()},n:function(){var Ot=Ie.next();return It=Ot.done,Ot},e:function(Ot){wt=!0,Je=Ot},f:function(){try{It||Ie.return==null||Ie.return()}finally{if(wt)throw Je}}}}function Jn(je,Fe){(Fe==null||Fe>je.length)&&(Fe=je.length);for(var Ie=0,Ee=new Array(Fe);Ie<Fe;Ie++)Ee[Ie]=je[Ie];return Ee}function ln(je){var Fe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Ie,Ee=K()(je);if(Fe){var Te=K()(this).constructor;Ie=Reflect.construct(Ee,arguments,Te)}else Ie=Ee.apply(this,arguments);return Y()(this,Ie)}}b(149),b(150);var Zn,xn,Cn,Sn,mn=function(je){ue()(Ie,je);var Fe=ln(Ie);function Ie(Ee){var Te,Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(U()(this,Ie),(Te=Fe.call(this)).autocompleters={},Te.prevQueryValid=!1,Te.queryValid=!0,Te.superagent=oe,Te.handleHashChange=function(){var mr,Wr;(Wr=(mr=Te.config).consumeShareLink)===null||Wr===void 0||Wr.call(mr,C()(Te))},Te.notificationEls={},!Ee)throw new Error("No parent passed as argument. Dont know where to draw YASQE");Te.rootEl=document.createElement("div"),Te.rootEl.className="yasqe",Ee.appendChild(Te.rootEl),Te.config=Object(se.a)({},Ie.defaults,Je);var It,wt=kr(Te.rootEl,Te.config),Ot=Wn(Object.getOwnPropertyNames(Ie.prototype));try{for(Ot.s();!(It=Ot.n()).done;){var Rt=It.value;wt[Rt]=Ie.prototype[Rt].bind(C()(Te))}}catch(mr){Ot.e(mr)}finally{Ot.f()}Object.assign(C()(Te),kr.prototype,wt),Te.storage=new h.a(Ie.storageNamespace),Te.drawButtons();var tr=Te.getStorageId();if(tr){var cr=Te.storage.get(tr);Te.persistentConfig=cr&&typeof cr=="string"?{query:cr,editorHeight:Te.config.editorHeight}:cr,Te.persistentConfig||(Te.persistentConfig={query:Te.getValue(),editorHeight:Te.config.editorHeight}),Te.persistentConfig&&Te.persistentConfig.query&&Te.setValue(Te.persistentConfig.query)}return Te.config.autocompleters.forEach(function(mr){return Te.enableCompleter(mr).then(function(){},console.warn)}),Te.config.consumeShareLink&&(Te.config.consumeShareLink(C()(Te)),window.addEventListener("hashchange",Te.handleHashChange)),Te.checkSyntax(),Te.persistentConfig&&Te.persistentConfig.editorHeight?Te.getWrapperElement().style.height=Te.persistentConfig.editorHeight:Te.config.editorHeight&&(Te.getWrapperElement().style.height=Te.config.editorHeight),Te.config.resizeable&&Te.drawResizer(),Te.config.collapsePrefixesOnLoad&&Te.collapsePrefixes(!0),Te.registerEventListeners(),Te}return p()(Ie,[{key:"handleChange",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleBlur",value:function(){this.saveQuery()}},{key:"handleChanges",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleCursorActivity",value:function(){this.autocomplete(!0)}},{key:"handleQuery",value:function(Ee,Te){this.req=Te,this.updateQueryButton()}},{key:"handleQueryResponse",value:function(Ee,Te,Je){this.lastQueryDuration=Je,this.req=void 0,this.updateQueryButton()}},{key:"handleQueryAbort",value:function(Ee,Te){this.req=void 0,this.updateQueryButton()}},{key:"registerEventListeners",value:function(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}},{key:"unregisterEventListeners",value:function(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}},{key:"emit",value:function(Ee){for(var Te=arguments.length,Je=new Array(Te>1?Te-1:0),It=1;It<Te;It++)Je[It-1]=arguments[It];kr.signal.apply(kr,[this,Ee,this].concat(Je))}},{key:"getStorageId",value:function(Ee){var Te=Ee||this.config.persistenceId;if(Te)return typeof Te=="string"?Te:Te(this)}},{key:"drawButtons",value:function(){var Ee=this,Te=document.createElement("div");if(Te.className="yasqe_buttons",this.getWrapperElement().appendChild(Te),this.config.pluginButtons){var Je=this.config.pluginButtons();if(!Je)return;if(Array.isArray(Je)){var It,wt=Wn(Je);try{for(wt.s();!(It=wt.n()).done;){var Ot=It.value;Te.append(Ot)}}catch(Br){wt.e(Br)}finally{wt.f()}}else Te.appendChild(Je)}if(this.config.createShareableLink){var Rt=Object(h.d)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>'),tr=document.createElement("button");tr.className="yasqe_share",tr.title="Share query",tr.setAttribute("aria-label","Share query"),tr.appendChild(Rt),Te.appendChild(tr),tr.addEventListener("click",function(Br){return cr(Br)}),tr.addEventListener("keydown",function(Br){Br.code==="Enter"&&cr(Br)});var cr=function(Br){Br.stopPropagation();var Rr=document.createElement("div");Rr.className="yasqe_sharePopup",Te.appendChild(Rr),document.body.addEventListener("click",function(it){Rr&&it.target!==Rr&&!Rr.contains(it.target)&&(Rr.remove(),Rr=void 0)},!0);var tn=document.createElement("input");tn.type="text",tn.value=Ee.config.createShareableLink(Ee),tn.onfocus=function(){tn.select()},tn.onmouseup=function(){return!1},Rr.innerHTML="";var yr=document.createElement("div");yr.className="inputWrapper",yr.appendChild(tn),Rr.appendChild(yr);var Kt=[],pn=Ee.config.createShortLink;if(pn){Rr.className=Rr.className+=" enableShort";var ge=document.createElement("button");Kt.push(ge),ge.innerHTML="Shorten",ge.className="yasqe_btn yasqe_btn-sm shorten",Rr.appendChild(ge),ge.onclick=function(){Kt.forEach(function(it){return it.disabled=!0}),pn(Ee,tn.value).then(function(it){tn.value=it,tn.focus()},function(it){var Qt=document.createElement("span");Qt.className="shortlinkErr";var ur="An error has occurred";typeof it=="string"&&it.length!==0?ur=it:it.message&&it.message.length!==0&&(ur=it.message),Qt.textContent=ur,tn.replaceWith(Qt)})}}var Ue=document.createElement("button");Kt.push(Ue),Ue.innerText="cURL",Ue.className="yasqe_btn yasqe_btn-sm curl",Rr.appendChild(Ue),Ue.onclick=function(){Kt.forEach(function(it){return it.disabled=!0}),tn.value=Ee.getAsCurlString(),tn.focus(),Rr==null||Rr.appendChild(Ue)};var pt=Rt.getBoundingClientRect();Rr.style.top=Rt.offsetTop+pt.height+"px",Rr.style.left=Rt.offsetLeft+Rt.clientWidth-Rr.clientWidth+"px",tn.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Object(h.b)(this.queryBtn,"yasqe_queryButton");var mr=Object(h.d)('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>');Object(h.b)(mr,"queryIcon"),this.queryBtn.appendChild(mr);var Wr=Object(h.d)(nt);Object(h.b)(Wr,"warningIcon"),this.queryBtn.appendChild(Wr),this.queryBtn.onclick=function(){Ee.config.queryingDisabled||(Ee.req?Ee.abortQuery():Ee.query().catch(function(){}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),Te.appendChild(this.queryBtn),this.updateQueryButton()}}},{key:"drawResizer",value:function(){if(!this.resizeWrapper){this.resizeWrapper=document.createElement("div"),Object(h.b)(this.resizeWrapper,"resizeWrapper");var Ee=document.createElement("div");Object(h.b)(Ee,"resizeChip"),this.resizeWrapper.appendChild(Ee),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}}},{key:"initDrag",value:function(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}},{key:"calculateDragOffset",value:function(Ee,Te){var Je=0;Te.offsetParent&&(Je=Te.offsetParent.offsetTop);for(var It=0,wt=Te.parentElement;wt;)It+=wt.scrollTop,wt=wt.parentElement;return Ee.clientY-Je-this.rootEl.offsetTop+It}},{key:"doDrag",value:function(Ee){this.getWrapperElement().style.height=this.calculateDragOffset(Ee,this.rootEl)+"px"}},{key:"stopDrag",value:function(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}},{key:"duplicateLine",value:function(){var Ee=this.getDoc().getCursor();if(Ee){var Te=this.getDoc().getLine(Ee.line);this.getDoc().replaceRange(Te+`
`+Te,{ch:0,line:Ee.line},{ch:Te.length,line:Ee.line})}}},{key:"updateQueryButton",value:function(Ee){this.queryBtn&&(this.config.queryingDisabled?(Object(h.b)(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(Object(h.g)(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),Ee||(Ee=this.queryValid?"valid":"error"),Ee!=this.queryStatus&&(Object(h.g)(this.queryBtn,"query_"+this.queryStatus),Object(h.b)(this.queryBtn,"query_"+Ee),this.queryStatus=Ee),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}},{key:"handleLocalStorageQuotaFull",value:function(Ee){console.warn("Localstorage quota exceeded. Clearing all queries"),Ie.clearStorage()}},{key:"saveQuery",value:function(){var Ee=this.getStorageId();Ee&&this.persistentConfig&&(this.persistentConfig.query=this.getValue(),this.storage.set(Ee,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}},{key:"getQueryType",value:function(){return this.getOption("queryType")}},{key:"getQueryMode",value:function(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}},{key:"getVariablesFromQuery",value:function(){var Ee=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),Te=[];for(var Je in Ee.state.variables)Te.push(Je);return Te.sort()}},{key:"autoformatSelection",value:function(Ee,Te){var Je=this.getValue();return Je=Je.substring(Ee,Te),Ie.autoformatString(Je)}},{key:"commentLines",value:function(){for(var Ee=this.getDoc().getCursor("start").line,Te=this.getDoc().getCursor("end").line,Je=Math.min(Ee,Te),It=Math.max(Ee,Te),wt=!0,Ot=Je;Ot<=It;Ot++){var Rt=this.getDoc().getLine(Ot);if(Rt.length==0||Rt.substring(0,1)!="#"){wt=!1;break}}for(Ot=Je;Ot<=It;Ot++)wt?this.getDoc().replaceRange("",{line:Ot,ch:0},{line:Ot,ch:1}):this.getDoc().replaceRange("#",{line:Ot,ch:0})}},{key:"autoformat",value:function(){var Ee=this;this.getDoc().somethingSelected()||this.execCommand("selectAll");var Te=this.getDoc().getCursor("start"),Je={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},It=this.getDoc().indexFromPos(Te),wt=this.getDoc().indexFromPos(Je),Ot=this.autoformatSelection(It,wt);this.operation(function(){Ee.getDoc().replaceRange(Ot,Te,Je);for(var Rt=Ee.getDoc().posFromIndex(It).line,tr=Ee.getDoc().posFromIndex(It+Ot.length).line,cr=Rt;cr<=tr;cr++)Ee.indentLine(cr,"smart")})}},{key:"getQueryWithValues",value:function(Ee){if(!Ee)return this.getValue();var Te;if(typeof Ee=="string")Te=Ee;else{Ee instanceof Array||(Ee=[Ee]);var Je=Ee.reduce(function(cr,mr){for(var Wr in mr)cr[Wr]=Wr;return cr},{}),It=[];for(var wt in Je)It.push(wt);if(!It.length)return this.getValue();Te="VALUES ("+It.join(" ")+`) {
`,Ee.forEach(function(cr){Te+="( ",It.forEach(function(mr){Te+=cr[mr]||"UNDEF"}),Te+=` )
`}),Te+=`}
`}if(!Te)return this.getValue();var Ot="",Rt=!1,tr=!1;return Ie.runMode(this.getValue(),"sparql11",function(cr,mr,Wr,Br,Rr){mr==="keyword"&&cr.toLowerCase()==="select"&&(tr=!0),Ot+=cr,tr&&!Rt&&mr==="punc"&&cr==="{"&&(Rt=!0,Ot+=`
`+Te)}),Ot}},{key:"getValueWithoutComments",value:function(){var Ee="";return Ie.runMode(this.getValue(),"sparql11",function(Te,Je){Je!="comment"&&(Ee+=Te)}),Ee}},{key:"setCheckSyntaxErrors",value:function(Ee){this.config.syntaxErrorCheck=Ee,this.checkSyntax()}},{key:"checkSyntax",value:function(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var Ee=0;Ee<this.getDoc().lineCount();++Ee){var Te=!1;this.prevQueryValid||(Te=!0);var Je=this.getTokenAt({line:Ee,ch:this.getDoc().getLine(Ee).length},Te),It=Je.state;if(this.setOption("queryType",It.queryType),It.OK==0){if(!this.config.syntaxErrorCheck){for(var wt=this.getWrapperElement().querySelectorAll(".sp-error"),Ot=0;Ot<wt.length;Ot++){var Rt=wt[Ot];Rt.style&&(Rt.style.color="black")}return}var tr=Object(h.d)(nt);if(It.errorMsg)Ge(0,tr,Object(Sr.a)(Je.state.errorMsg));else if(It.possibleCurrent&&It.possibleCurrent.length>0){var cr=[];It.possibleCurrent.forEach(function(mr){cr.push("<strong style='text-decoration:underline'>"+Object(Sr.a)(mr)+"</strong>")}),Ge(0,tr,"This line is invalid. Expected: "+cr.join(", "))}tr.className="parseErrorIcon",this.setGutterMarker(Ee,"gutterErrorBar",tr),this.queryValid=!1;break}}}},{key:"getCompleteToken",value:function(Ee,Te){return S(this,Ee,Te)}},{key:"getPreviousNonWsToken",value:function(Ee,Te){return function Je(It,wt,Ot){var Rt=It.getTokenAt({line:wt,ch:Ot.start});return Rt!=null&&Rt.type=="ws"&&(Rt=Je(It,wt,Rt)),Rt}(this,Ee,Te)}},{key:"getNextNonWsToken",value:function(Ee,Te){return P(this,Ee,Te)}},{key:"showNotification",value:function(Ee,Te){if(!this.notificationEls[Ee]){var Je=document.createElement("div");Object(h.b)(Je,"notificationContainer"),this.getWrapperElement().appendChild(Je),this.notificationEls[Ee]=document.createElement("div"),Object(h.b)(this.notificationEls[Ee],"notification","notif_"+Ee),Je.appendChild(this.notificationEls[Ee])}for(var It in this.notificationEls)It!==Ee&&this.hideNotification(It);var wt=this.notificationEls[Ee];Object(h.b)(wt,"active"),wt.innerText=Te}},{key:"hideNotification",value:function(Ee){this.notificationEls[Ee]&&Object(h.g)(this.notificationEls[Ee],"active")}},{key:"enableCompleter",value:function(Ee){return Ie.Autocompleters[Ee]?(this.config.autocompleters.indexOf(Ee)<0&&this.config.autocompleters.push(Ee),(this.autocompleters[Ee]=new gn(this,Ie.Autocompleters[Ee])).initialize()):Promise.reject(new Error("Autocompleter "+Ee+" is not a registered autocompleter"))}},{key:"disableCompleter",value:function(Ee){this.config.autocompleters=this.config.autocompleters.filter(function(Te){return Te!==Ee}),this.autocompleters[Ee]=void 0}},{key:"autocomplete",value:function(){var Ee=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!this.getDoc().somethingSelected())for(var Te in this.config.autocompleters){var Je=this.autocompleters[this.config.autocompleters[Te]];Je&&Je.autocomplete(Ee)}}},{key:"collapsePrefixes",value:function(){var Ee=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Te=q(this);Te!==void 0&&this.foldCode(Te,kr.fold.prefix,Ee?"fold":"unfold")}},{key:"getPrefixesFromQuery",value:function(){return(Ee=this).getTokenAt({line:Ee.getDoc().lastLine(),ch:Ee.getDoc().getLine(Ee.getDoc().lastLine()).length},!0).state.prefixes;var Ee}},{key:"addPrefixes",value:function(Ee){return function(Te,Je){var It=Te.getPrefixesFromQuery();if(typeof Je=="string")Z(Te,Je);else for(var wt in Je)wt in It||Z(Te,wt+": <"+Je[wt]+">");Te.collapsePrefixes(!1)}(this,Ee)}},{key:"removePrefixes",value:function(Ee){return function(Te,Je){for(var It in Je)Te.setValue(Te.getValue().replace(new RegExp("PREFIX\\s*"+It+":\\s*"+(("<"+Je[It]+">").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"\\s*"),"ig"),""));Te.collapsePrefixes(!1)}(this,Ee)}},{key:"updateWidget",value:function(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){var Ee=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=Ee+"px"}}},{key:"query",value:function(Ee){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.abortQuery(),dt(this,Ee))}},{key:"getUrlParams",value:function(){var Ee={};return window.location.hash.length>1&&(Ee=ne.parse(location.hash)),Ee&&"query"in Ee||!(window.location.search.length>1)||(Ee=ne.parse(window.location.search)),Ee}},{key:"configToQueryParams",value:function(){var Ee={};return window.location.hash.length>1&&(Ee=ne.parse(window.location.hash)),Ee.query=this.getValue(),Ee}},{key:"queryParamsToConfig",value:function(Ee){Ee&&Ee.query&&typeof Ee.query=="string"&&this.setValue(Ee.query)}},{key:"getAsCurlString",value:function(Ee){return Ke(this,Ee)}},{key:"abortQuery",value:function(){this.req&&(this.req.abort(),this.emit("queryAbort",this,this.req))}},{key:"expandEditor",value:function(){this.setSize(null,"100%")}},{key:"destroy",value:function(){var Ee,Te;for(var Je in this.abortQuery(),this.unregisterEventListeners(),(Ee=this.resizeWrapper)===null||Ee===void 0||Ee.removeEventListener("mousedown",this.initDrag,!1),(Te=this.resizeWrapper)===null||Te===void 0||Te.removeEventListener("dblclick",this.expandEditor),this.autocompleters)this.disableCompleter(Je);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}}],[{key:"autoformatString",value:function(Ee){var Te=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],Je=["}"],It="",wt="",Ot=[];return Ie.runMode(Ee,"sparql11",function(Rt,tr){Ot.push(tr);var cr=function(mr){if(mr==="{"||mr===".")return 1;if(mr===";")return Ot.length>2&&Ot[Ot.length-2]==="punc"?0:1;for(var Wr=0;Wr<Te.length;Wr++)if(Ot.valueOf().toString()===Te[Wr].valueOf().toString())return 1;for(Wr=0;Wr<Je.length;Wr++)if(wt.trim()!==""&&mr==Je[Wr])return-1;return 0}(Rt);cr!=0?(cr==1?(It+=Rt+`
`,wt=""):(It+=`
`+Rt,wt=Rt),Ot=[]):(wt+=Rt,It+=Rt),Ot.length==1&&Ot[0]=="sp-ws"&&(Ot=[])}),It.replace(/\n\s*\n/g,`
`).trim()}},{key:"clearStorage",value:function(){new h.a(Ie.storageNamespace).removeNamespace()}},{key:"registerAutocompleter",value:function(Ee){var Te=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],Je=Ee.name;Ie.Autocompleters[Je]=Ee,Te&&Ie.defaults.autocompleters.indexOf(Je)<0&&Ie.defaults.autocompleters.push(Je)}},{key:"forkAutocompleter",value:function(Ee,Te){var Je=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(!Ie.Autocompleters[Ee])throw new Error("Autocompleter "+Ee+" does not exist");if(!(Te!=null&&Te.name))throw new Error("Expected a name for newly registered autocompleter");var It=Te.name;Ie.Autocompleters[It]=Object.assign(Object.assign({},Ie.Autocompleters[Ee]),Te),Je&&Ie.defaults.autocompleters.indexOf(It)<0&&Ie.defaults.autocompleters.push(It)}}]),Ie}(kr);mn.storageNamespace="triply",mn.Sparql=A,mn.runMode=kr.runMode,mn.Autocompleters={},mn.defaults=(Zn=(window.location.protocol.indexOf("http")===0?"//":"http://")+"prefix.cc/popular/all.file.json",xn=b(7),Cn={mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
  ?sub ?pred ?obj .
} LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new xn.fold.combine(xn.fold.brace,xn.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(je){je.autocomplete()},"Shift-Ctrl-K":function(je){var Fe=je,Ie=Fe.getDoc().getCursor().line;return Ie===Fe.getDoc().lastLine()&&Ie>1?Fe.getDoc().replaceRange("",{ch:Fe.getDoc().getLine(Ie-1).length,line:Ie-1},{ch:Fe.getDoc().getLine(Ie).length,line:Ie}):Fe.getDoc().replaceRange("",{ch:0,line:Ie},{ch:0,line:Ie+1})},"Ctrl-/":function(je){je.commentLines()},"Shift-Ctrl-D":function(je){je.duplicateLine()},"Shift-Ctrl-F":function(je){je.autoformat()},"Ctrl-S":function(je){je.saveQuery()},"Cmd-Enter":function(je){je.query().catch(function(){})},"Ctrl-Enter":function(je){je.query().catch(function(){})},Esc:function(je){je.getInputField().blur()}},createShareableLink:function(je){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+ne.stringify(je.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(je){je.queryParamsToConfig(je.getUrlParams())},persistenceId:function(je){var Fe="",Ie=je.rootEl;for(Ie.id&&(Fe=Ie.id);Ie&&Ie!==document;Ie=Ie.parentNode)if(Ie){Ie.id&&(Fe=Ie.id);break}return"yasqe_"+Fe+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:Zn},Sn={queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"application/n-triples,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1},Object.assign(Object.assign({},Cn),{requestConfig:Sn})),Object.assign(kr.prototype,mn.prototype),sn.forEach(function(je){mn.registerAutocompleter(je)}),de.default=mn},function(ke,de){ke.exports=function(b){if(!b.webpackPolyfill){var A=Object.create(b);A.children||(A.children=[]),Object.defineProperty(A,"loaded",{enumerable:!0,get:function(){return A.l}}),Object.defineProperty(A,"id",{enumerable:!0,get:function(){return A.i}}),Object.defineProperty(A,"exports",{enumerable:!0}),A.webpackPolyfill=1}return A}},function(ke,de,b){de.a=function(A){var _=-1,U=Array(A.size);return A.forEach(function(R,p){U[++_]=[p,R]}),U}},function(ke,de,b){var A=b(79),_=b(70);de.a=function(U){return Object(A.a)(function(R,p){var G=-1,C=p.length,M=C>1?p[C-1]:void 0,ue=C>2?p[2]:void 0;for(M=U.length>3&&typeof M=="function"?(C--,M):void 0,ue&&Object(_.a)(p[0],p[1],ue)&&(M=C<3?void 0:M,C=1),R=Object(R);++G<C;){var x=p[G];x&&U(R,x,G,M)}return R})}},function(ke,de,b){de.a=function(A){return function(){return A}}},function(ke,de,b){var A=b(18),_=b(31),U=b(12),R=function(dt,Tt,ft){(ft!==void 0&&!Object(U.a)(dt[Tt],ft)||ft===void 0&&!(Tt in dt))&&Object(_.a)(dt,Tt,ft)},p=b(69),G=b(77),C=b(78),M=b(76),ue=b(81),x=b(15),Y=b(1),ce=b(10),K=b(6),oe=function(dt){return Object(K.a)(dt)&&Object(ce.a)(dt)},ie=b(14),m=b(44),S=b(2),P=b(11),q=b(51),te=Function.prototype,Z=Object.prototype,h=te.toString,ne=Z.hasOwnProperty,Ge=h.call(Object),me=function(dt){if(!Object(K.a)(dt)||Object(P.a)(dt)!="[object Object]")return!1;var Tt=Object(q.a)(dt);if(Tt===null)return!0;var ft=ne.call(Tt,"constructor")&&Tt.constructor;return typeof ft=="function"&&ft instanceof ft&&h.call(ft)==Ge},xe=b(33),D=function(dt,Tt){if((Tt!=="constructor"||typeof dt[Tt]!="function")&&Tt!="__proto__")return dt[Tt]},se=b(32),re=b(38),be=function(dt){return Object(se.a)(dt,Object(re.a)(dt))},$e=function(dt,Tt,ft,Ke,nt,mt,yt){var Nt=D(dt,ft),at=D(Tt,ft),Ft=yt.get(at);if(Ft)R(dt,ft,Ft);else{var B=mt?mt(Nt,at,ft+"",dt,Tt,yt):void 0,X=B===void 0;if(X){var he=Object(Y.a)(at),De=!he&&Object(ie.a)(at),Ve=!he&&!De&&Object(xe.a)(at);B=at,he||De||Ve?Object(Y.a)(Nt)?B=Nt:oe(Nt)?B=Object(M.a)(Nt):De?(X=!1,B=Object(G.a)(at,!0)):Ve?(X=!1,B=Object(C.a)(at,!0)):B=[]:me(at)||Object(x.a)(at)?(B=Nt,Object(x.a)(Nt)?B=be(Nt):Object(S.a)(Nt)&&!Object(m.a)(Nt)||(B=Object(ue.a)(at))):X=!1}X&&(yt.set(at,B),nt(B,at,Ke,mt,yt),yt.delete(at)),R(dt,ft,B)}};de.a=function dt(Tt,ft,Ke,nt,mt){Tt!==ft&&Object(p.a)(ft,function(yt,Nt){if(mt||(mt=new A.a),Object(S.a)(yt))$e(Tt,ft,Nt,Ke,dt,nt,mt);else{var at=nt?nt(D(Tt,Nt),yt,Nt+"",Tt,ft,mt):void 0;at===void 0&&(at=yt),R(Tt,Nt,at)}},re.a)}},function(ke,de,b){var A=function(ue,x){return ue!=null&&x in Object(ue)},_=b(53),U=b(15),R=b(1),p=b(37),G=b(43),C=b(24),M=function(ue,x,Y){for(var ce=-1,K=(x=Object(_.a)(x,ue)).length,oe=!1;++ce<K;){var ie=Object(C.a)(x[ce]);if(!(oe=ue!=null&&Y(ue,ie)))break;ue=ue[ie]}return oe||++ce!=K?oe:!!(K=ue==null?0:ue.length)&&Object(G.a)(K)&&Object(p.a)(ie,K)&&(Object(R.a)(ue)||Object(U.a)(ue))};de.a=function(ue,x){return ue!=null&&M(ue,x,A)}},function(ke,de,b){var A=b(86),_=b(48),U=b(25),R=_.a?function(C,M){return Object(_.a)(C,"toString",{configurable:!0,enumerable:!1,value:Object(A.a)(M),writable:!0})}:U.a,p=Date.now,G=function(C){var M=0,ue=0;return function(){var x=p(),Y=16-(x-ue);if(ue=x,Y>0){if(++M>=800)return arguments[0]}else M=0;return C.apply(void 0,arguments)}}(R);de.a=G},function(ke,de,b){var A=b(66),_=b(10),U=function(R,p){return function(G,C){if(G==null)return G;if(!Object(_.a)(G))return R(G,C);for(var M=G.length,ue=-1,x=Object(G);++ue<M&&C(x[ue],ue,x)!==!1;);return G}}(A.a);de.a=U},function(ke,de,b){var A=function(U,R,p){switch(p.length){case 0:return U.call(R);case 1:return U.call(R,p[0]);case 2:return U.call(R,p[0],p[1]);case 3:return U.call(R,p[0],p[1],p[2])}return U.apply(R,p)},_=Math.max;de.a=function(U,R,p){return R=_(R===void 0?U.length-1:R,0),function(){for(var G=arguments,C=-1,M=_(G.length-R,0),ue=Array(M);++C<M;)ue[C]=G[R+C];C=-1;for(var x=Array(R+1);++C<R;)x[C]=G[C];return x[R]=p(ue),A(U,this,x)}}},function(ke,de,b){(function(A){function _(p,G,C,M){if(C&&C.call){var ue=C;C=null}else ue=R(p,C,"rangeFinder");typeof G=="number"&&(G=A.Pos(G,0));var x=R(p,C,"minFoldSize");function Y(ie){var m=ue(p,G);if(!m||m.to.line-m.from.line<x)return null;for(var S=p.findMarksAt(m.from),P=0;P<S.length;++P)if(S[P].__isFold&&M!=="fold"){if(!ie)return null;m.cleared=!0,S[P].clear()}return m}var ce=Y(!0);if(R(p,C,"scanUp"))for(;!ce&&G.line>p.firstLine();)G=A.Pos(G.line-1,0),ce=Y(!1);if(ce&&!ce.cleared&&M!=="unfold"){var K=function(ie,m,S){var P=R(ie,m,"widget");if(typeof P=="function"&&(P=P(S.from,S.to)),typeof P=="string"){var q=document.createTextNode(P);(P=document.createElement("span")).appendChild(q),P.className="CodeMirror-foldmarker"}else P&&(P=P.cloneNode(!0));return P}(p,C,ce);A.on(K,"mousedown",function(ie){oe.clear(),A.e_preventDefault(ie)});var oe=p.markText(ce.from,ce.to,{replacedWith:K,clearOnEnter:R(p,C,"clearOnEnter"),__isFold:!0});oe.on("clear",function(ie,m){A.signal(p,"unfold",p,ie,m)}),A.signal(p,"fold",p,ce.from,ce.to)}}A.newFoldFunction=function(p,G){return function(C,M){_(C,M,{rangeFinder:p,widget:G})}},A.defineExtension("foldCode",function(p,G,C){_(this,p,G,C)}),A.defineExtension("isFolded",function(p){for(var G=this.findMarksAt(p),C=0;C<G.length;++C)if(G[C].__isFold)return!0}),A.commands.toggleFold=function(p){p.foldCode(p.getCursor())},A.commands.fold=function(p){p.foldCode(p.getCursor(),null,"fold")},A.commands.unfold=function(p){p.foldCode(p.getCursor(),null,"unfold")},A.commands.foldAll=function(p){p.operation(function(){for(var G=p.firstLine(),C=p.lastLine();G<=C;G++)p.foldCode(A.Pos(G,0),null,"fold")})},A.commands.unfoldAll=function(p){p.operation(function(){for(var G=p.firstLine(),C=p.lastLine();G<=C;G++)p.foldCode(A.Pos(G,0),null,"unfold")})},A.registerHelper("fold","combine",function(){var p=Array.prototype.slice.call(arguments,0);return function(G,C){for(var M=0;M<p.length;++M){var ue=p[M](G,C);if(ue)return ue}}}),A.registerHelper("fold","auto",function(p,G){for(var C=p.getHelpers(G,"fold"),M=0;M<C.length;M++){var ue=C[M](p,G);if(ue)return ue}});var U={rangeFinder:A.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function R(p,G,C){if(G&&G[C]!==void 0)return G[C];var M=p.options.foldOptions;return M&&M[C]!==void 0?M[C]:U[C]}A.defineOption("foldOptions",null),A.defineExtension("foldOption",function(p,G){return R(this,p,G)})})(b(7))},function(ke,de,b){de.a=function(){return!1}},function(ke,de,b){var A=b(118);ke.exports=function(_,U){if(_){if(typeof _=="string")return A(_,U);var R=Object.prototype.toString.call(_).slice(8,-1);return R==="Object"&&_.constructor&&(R=_.constructor.name),R==="Map"||R==="Set"?Array.from(_):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?A(_,U):void 0}}},function(ke,de,b){var A;(function(_,U){typeof ke.exports=="object"?ke.exports=_.document?U(_,!0):function(R){if(!R.document)throw new Error("jQuery requires a window with a document");return U(R)}:U(_)})(typeof window<"u"?window:this,function(_,U){var R=[],p=Object.getPrototypeOf,G=R.slice,C=R.flat?function(n){return R.flat.call(n)}:function(n){return R.concat.apply([],n)},M=R.push,ue=R.indexOf,x={},Y=x.toString,ce=x.hasOwnProperty,K=ce.toString,oe=K.call(Object),ie={},m=function(n){return typeof n=="function"&&typeof n.nodeType!="number"},S=function(n){return n!=null&&n===n.window},P=_.document,q={type:!0,src:!0,nonce:!0,noModule:!0};function te(n,c,E){var T,W,V=(E=E||P).createElement("script");if(V.text=n,c)for(T in q)(W=c[T]||c.getAttribute&&c.getAttribute(T))&&V.setAttribute(T,W);E.head.appendChild(V).parentNode.removeChild(V)}function Z(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?x[Y.call(n)]||"object":typeof n}var h=function(n,c){return new h.fn.init(n,c)};function ne(n){var c=!!n&&"length"in n&&n.length,E=Z(n);return!m(n)&&!S(n)&&(E==="array"||c===0||typeof c=="number"&&c>0&&c-1 in n)}h.fn=h.prototype={jquery:"3.5.1",constructor:h,length:0,toArray:function(){return G.call(this)},get:function(n){return n==null?G.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var c=h.merge(this.constructor(),n);return c.prevObject=this,c},each:function(n){return h.each(this,n)},map:function(n){return this.pushStack(h.map(this,function(c,E){return n.call(c,E,c)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(h.grep(this,function(n,c){return(c+1)%2}))},odd:function(){return this.pushStack(h.grep(this,function(n,c){return c%2}))},eq:function(n){var c=this.length,E=+n+(n<0?c:0);return this.pushStack(E>=0&&E<c?[this[E]]:[])},end:function(){return this.prevObject||this.constructor()},push:M,sort:R.sort,splice:R.splice},h.extend=h.fn.extend=function(){var n,c,E,T,W,V,fe=arguments[0]||{},Pe=1,He=arguments.length,et=!1;for(typeof fe=="boolean"&&(et=fe,fe=arguments[Pe]||{},Pe++),typeof fe=="object"||m(fe)||(fe={}),Pe===He&&(fe=this,Pe--);Pe<He;Pe++)if((n=arguments[Pe])!=null)for(c in n)T=n[c],c!=="__proto__"&&fe!==T&&(et&&T&&(h.isPlainObject(T)||(W=Array.isArray(T)))?(E=fe[c],V=W&&!Array.isArray(E)?[]:W||h.isPlainObject(E)?E:{},W=!1,fe[c]=h.extend(et,V,T)):T!==void 0&&(fe[c]=T));return fe},h.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n)},noop:function(){},isPlainObject:function(n){var c,E;return!(!n||Y.call(n)!=="[object Object]")&&(!(c=p(n))||typeof(E=ce.call(c,"constructor")&&c.constructor)=="function"&&K.call(E)===oe)},isEmptyObject:function(n){var c;for(c in n)return!1;return!0},globalEval:function(n,c,E){te(n,{nonce:c&&c.nonce},E)},each:function(n,c){var E,T=0;if(ne(n))for(E=n.length;T<E&&c.call(n[T],T,n[T])!==!1;T++);else for(T in n)if(c.call(n[T],T,n[T])===!1)break;return n},makeArray:function(n,c){var E=c||[];return n!=null&&(ne(Object(n))?h.merge(E,typeof n=="string"?[n]:n):M.call(E,n)),E},inArray:function(n,c,E){return c==null?-1:ue.call(c,n,E)},merge:function(n,c){for(var E=+c.length,T=0,W=n.length;T<E;T++)n[W++]=c[T];return n.length=W,n},grep:function(n,c,E){for(var T=[],W=0,V=n.length,fe=!E;W<V;W++)!c(n[W],W)!==fe&&T.push(n[W]);return T},map:function(n,c,E){var T,W,V=0,fe=[];if(ne(n))for(T=n.length;V<T;V++)(W=c(n[V],V,E))!=null&&fe.push(W);else for(V in n)(W=c(n[V],V,E))!=null&&fe.push(W);return C(fe)},guid:1,support:ie}),typeof Symbol=="function"&&(h.fn[Symbol.iterator]=R[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,c){x["[object "+c+"]"]=c.toLowerCase()});var Ge=function(n){var c,E,T,W,V,fe,Pe,He,et,Et,Dt,St,At,pr,dr,hr,Ar,rn,zn,an="sizzle"+1*new Date,Tr=n.document,ni=0,nn=0,fn=no(),pi=no(),Li=no(),si=no(),li=function(Ne,rt){return Ne===rt&&(Dt=!0),0},Ii={}.hasOwnProperty,ii=[],Nn=ii.pop,kn=ii.push,Qn=ii.push,ci=ii.slice,ti=function(Ne,rt){for(var ut=0,Wt=Ne.length;ut<Wt;ut++)if(Ne[ut]===rt)return ut;return-1},yi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",en="[\\x20\\t\\r\\n\\f]",_n="(?:\\\\[\\da-fA-F]{1,6}"+en+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",hi="\\["+en+"*("+_n+")(?:"+en+"*([*^$|!~]?=)"+en+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+_n+"))|)"+en+"*\\]",xi=":("+_n+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+hi+")*)|.*)\\)|)",ri=new RegExp(en+"+","g"),gi=new RegExp("^"+en+"+|((?:^|[^\\\\])(?:\\\\.)*)"+en+"+$","g"),Ji=new RegExp("^"+en+"*,"+en+"*"),ho=new RegExp("^"+en+"*([>+~]|"+en+")"+en+"*"),fo=new RegExp(en+"|>"),yo=new RegExp(xi),Do=new RegExp("^"+_n+"$"),eo={ID:new RegExp("^#("+_n+")"),CLASS:new RegExp("^\\.("+_n+")"),TAG:new RegExp("^("+_n+"|[*])"),ATTR:new RegExp("^"+hi),PSEUDO:new RegExp("^"+xi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+en+"*(even|odd|(([+-]|)(\\d*)n|)"+en+"*(?:([+-]|)"+en+"*(\\d+)|))"+en+"*\\)|)","i"),bool:new RegExp("^(?:"+yi+")$","i"),needsContext:new RegExp("^"+en+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+en+"*((?:-\\d)?\\d*)"+en+"*\\)|)(?=[^-]|$)","i")},Qr=/HTML$/i,Lo=/^(?:input|select|textarea|button)$/i,uo=/^h\d$/i,Qi=/^[^{]+\{\s*\[native \w/,Eo=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,to=/[+~]/,wi=new RegExp("\\\\[\\da-fA-F]{1,6}"+en+"?|\\\\([^\\r\\n\\f])","g"),Hi=function(Ne,rt){var ut="0x"+Ne.slice(1)-65536;return rt||(ut<0?String.fromCharCode(ut+65536):String.fromCharCode(ut>>10|55296,1023&ut|56320))},Io=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wo=function(Ne,rt){return rt?Ne==="\0"?"�":Ne.slice(0,-1)+"\\"+Ne.charCodeAt(Ne.length-1).toString(16)+" ":"\\"+Ne},qi=function(){St()},ro=oo(function(Ne){return Ne.disabled===!0&&Ne.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Qn.apply(ii=ci.call(Tr.childNodes),Tr.childNodes),ii[Tr.childNodes.length].nodeType}catch{Qn={apply:ii.length?function(rt,ut){kn.apply(rt,ci.call(ut))}:function(rt,ut){for(var Wt=rt.length,xt=0;rt[Wt++]=ut[xt++];);rt.length=Wt-1}}}function Ln(Ne,rt,ut,Wt){var xt,$t,Zt,or,fr,zr,Xr,$r=rt&&rt.ownerDocument,vn=rt?rt.nodeType:9;if(ut=ut||[],typeof Ne!="string"||!Ne||vn!==1&&vn!==9&&vn!==11)return ut;if(!Wt&&(St(rt),rt=rt||At,dr)){if(vn!==11&&(fr=Eo.exec(Ne)))if(xt=fr[1]){if(vn===9){if(!(Zt=rt.getElementById(xt)))return ut;if(Zt.id===xt)return ut.push(Zt),ut}else if($r&&(Zt=$r.getElementById(xt))&&zn(rt,Zt)&&Zt.id===xt)return ut.push(Zt),ut}else{if(fr[2])return Qn.apply(ut,rt.getElementsByTagName(Ne)),ut;if((xt=fr[3])&&E.getElementsByClassName&&rt.getElementsByClassName)return Qn.apply(ut,rt.getElementsByClassName(xt)),ut}if(E.qsa&&!si[Ne+" "]&&(!hr||!hr.test(Ne))&&(vn!==1||rt.nodeName.toLowerCase()!=="object")){if(Xr=Ne,$r=rt,vn===1&&(fo.test(Ne)||ho.test(Ne))){for(($r=to.test(Ne)&&go(rt.parentNode)||rt)===rt&&E.scope||((or=rt.getAttribute("id"))?or=or.replace(Io,wo):rt.setAttribute("id",or=an)),$t=(zr=fe(Ne)).length;$t--;)zr[$t]=(or?"#"+or:":scope")+" "+co(zr[$t]);Xr=zr.join(",")}try{return Qn.apply(ut,$r.querySelectorAll(Xr)),ut}catch{si(Ne,!0)}finally{or===an&&rt.removeAttribute("id")}}}return He(Ne.replace(gi,"$1"),rt,ut,Wt)}function no(){var Ne=[];return function rt(ut,Wt){return Ne.push(ut+" ")>T.cacheLength&&delete rt[Ne.shift()],rt[ut+" "]=Wt}}function Ri(Ne){return Ne[an]=!0,Ne}function _i(Ne){var rt=At.createElement("fieldset");try{return!!Ne(rt)}catch{return!1}finally{rt.parentNode&&rt.parentNode.removeChild(rt),rt=null}}function Vi(Ne,rt){for(var ut=Ne.split("|"),Wt=ut.length;Wt--;)T.attrHandle[ut[Wt]]=rt}function Yi(Ne,rt){var ut=rt&&Ne,Wt=ut&&Ne.nodeType===1&&rt.nodeType===1&&Ne.sourceIndex-rt.sourceIndex;if(Wt)return Wt;if(ut){for(;ut=ut.nextSibling;)if(ut===rt)return-1}return Ne?1:-1}function Si(Ne){return function(rt){return rt.nodeName.toLowerCase()==="input"&&rt.type===Ne}}function Xi(Ne){return function(rt){var ut=rt.nodeName.toLowerCase();return(ut==="input"||ut==="button")&&rt.type===Ne}}function Wi(Ne){return function(rt){return"form"in rt?rt.parentNode&&rt.disabled===!1?"label"in rt?"label"in rt.parentNode?rt.parentNode.disabled===Ne:rt.disabled===Ne:rt.isDisabled===Ne||rt.isDisabled!==!Ne&&ro(rt)===Ne:rt.disabled===Ne:"label"in rt&&rt.disabled===Ne}}function Bi(Ne){return Ri(function(rt){return rt=+rt,Ri(function(ut,Wt){for(var xt,$t=Ne([],ut.length,rt),Zt=$t.length;Zt--;)ut[xt=$t[Zt]]&&(ut[xt]=!(Wt[xt]=ut[xt]))})})}function go(Ne){return Ne&&Ne.getElementsByTagName!==void 0&&Ne}for(c in E=Ln.support={},V=Ln.isXML=function(Ne){var rt=Ne.namespaceURI,ut=(Ne.ownerDocument||Ne).documentElement;return!Qr.test(rt||ut&&ut.nodeName||"HTML")},St=Ln.setDocument=function(Ne){var rt,ut,Wt=Ne?Ne.ownerDocument||Ne:Tr;return Wt!=At&&Wt.nodeType===9&&Wt.documentElement&&(pr=(At=Wt).documentElement,dr=!V(At),Tr!=At&&(ut=At.defaultView)&&ut.top!==ut&&(ut.addEventListener?ut.addEventListener("unload",qi,!1):ut.attachEvent&&ut.attachEvent("onunload",qi)),E.scope=_i(function(xt){return pr.appendChild(xt).appendChild(At.createElement("div")),xt.querySelectorAll!==void 0&&!xt.querySelectorAll(":scope fieldset div").length}),E.attributes=_i(function(xt){return xt.className="i",!xt.getAttribute("className")}),E.getElementsByTagName=_i(function(xt){return xt.appendChild(At.createComment("")),!xt.getElementsByTagName("*").length}),E.getElementsByClassName=Qi.test(At.getElementsByClassName),E.getById=_i(function(xt){return pr.appendChild(xt).id=an,!At.getElementsByName||!At.getElementsByName(an).length}),E.getById?(T.filter.ID=function(xt){var $t=xt.replace(wi,Hi);return function(Zt){return Zt.getAttribute("id")===$t}},T.find.ID=function(xt,$t){if($t.getElementById!==void 0&&dr){var Zt=$t.getElementById(xt);return Zt?[Zt]:[]}}):(T.filter.ID=function(xt){var $t=xt.replace(wi,Hi);return function(Zt){var or=Zt.getAttributeNode!==void 0&&Zt.getAttributeNode("id");return or&&or.value===$t}},T.find.ID=function(xt,$t){if($t.getElementById!==void 0&&dr){var Zt,or,fr,zr=$t.getElementById(xt);if(zr){if((Zt=zr.getAttributeNode("id"))&&Zt.value===xt)return[zr];for(fr=$t.getElementsByName(xt),or=0;zr=fr[or++];)if((Zt=zr.getAttributeNode("id"))&&Zt.value===xt)return[zr]}return[]}}),T.find.TAG=E.getElementsByTagName?function(xt,$t){return $t.getElementsByTagName!==void 0?$t.getElementsByTagName(xt):E.qsa?$t.querySelectorAll(xt):void 0}:function(xt,$t){var Zt,or=[],fr=0,zr=$t.getElementsByTagName(xt);if(xt==="*"){for(;Zt=zr[fr++];)Zt.nodeType===1&&or.push(Zt);return or}return zr},T.find.CLASS=E.getElementsByClassName&&function(xt,$t){if($t.getElementsByClassName!==void 0&&dr)return $t.getElementsByClassName(xt)},Ar=[],hr=[],(E.qsa=Qi.test(At.querySelectorAll))&&(_i(function(xt){var $t;pr.appendChild(xt).innerHTML="<a id='"+an+"'></a><select id='"+an+"-\r\\' msallowcapture=''><option selected=''></option></select>",xt.querySelectorAll("[msallowcapture^='']").length&&hr.push("[*^$]="+en+`*(?:''|"")`),xt.querySelectorAll("[selected]").length||hr.push("\\["+en+"*(?:value|"+yi+")"),xt.querySelectorAll("[id~="+an+"-]").length||hr.push("~="),($t=At.createElement("input")).setAttribute("name",""),xt.appendChild($t),xt.querySelectorAll("[name='']").length||hr.push("\\["+en+"*name"+en+"*="+en+`*(?:''|"")`),xt.querySelectorAll(":checked").length||hr.push(":checked"),xt.querySelectorAll("a#"+an+"+*").length||hr.push(".#.+[+~]"),xt.querySelectorAll("\\\f"),hr.push("[\\r\\n\\f]")}),_i(function(xt){xt.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var $t=At.createElement("input");$t.setAttribute("type","hidden"),xt.appendChild($t).setAttribute("name","D"),xt.querySelectorAll("[name=d]").length&&hr.push("name"+en+"*[*^$|!~]?="),xt.querySelectorAll(":enabled").length!==2&&hr.push(":enabled",":disabled"),pr.appendChild(xt).disabled=!0,xt.querySelectorAll(":disabled").length!==2&&hr.push(":enabled",":disabled"),xt.querySelectorAll("*,:x"),hr.push(",.*:")})),(E.matchesSelector=Qi.test(rn=pr.matches||pr.webkitMatchesSelector||pr.mozMatchesSelector||pr.oMatchesSelector||pr.msMatchesSelector))&&_i(function(xt){E.disconnectedMatch=rn.call(xt,"*"),rn.call(xt,"[s!='']:x"),Ar.push("!=",xi)}),hr=hr.length&&new RegExp(hr.join("|")),Ar=Ar.length&&new RegExp(Ar.join("|")),rt=Qi.test(pr.compareDocumentPosition),zn=rt||Qi.test(pr.contains)?function(xt,$t){var Zt=xt.nodeType===9?xt.documentElement:xt,or=$t&&$t.parentNode;return xt===or||!(!or||or.nodeType!==1||!(Zt.contains?Zt.contains(or):xt.compareDocumentPosition&&16&xt.compareDocumentPosition(or)))}:function(xt,$t){if($t){for(;$t=$t.parentNode;)if($t===xt)return!0}return!1},li=rt?function(xt,$t){if(xt===$t)return Dt=!0,0;var Zt=!xt.compareDocumentPosition-!$t.compareDocumentPosition;return Zt||(1&(Zt=(xt.ownerDocument||xt)==($t.ownerDocument||$t)?xt.compareDocumentPosition($t):1)||!E.sortDetached&&$t.compareDocumentPosition(xt)===Zt?xt==At||xt.ownerDocument==Tr&&zn(Tr,xt)?-1:$t==At||$t.ownerDocument==Tr&&zn(Tr,$t)?1:Et?ti(Et,xt)-ti(Et,$t):0:4&Zt?-1:1)}:function(xt,$t){if(xt===$t)return Dt=!0,0;var Zt,or=0,fr=xt.parentNode,zr=$t.parentNode,Xr=[xt],$r=[$t];if(!fr||!zr)return xt==At?-1:$t==At?1:fr?-1:zr?1:Et?ti(Et,xt)-ti(Et,$t):0;if(fr===zr)return Yi(xt,$t);for(Zt=xt;Zt=Zt.parentNode;)Xr.unshift(Zt);for(Zt=$t;Zt=Zt.parentNode;)$r.unshift(Zt);for(;Xr[or]===$r[or];)or++;return or?Yi(Xr[or],$r[or]):Xr[or]==Tr?-1:$r[or]==Tr?1:0}),At},Ln.matches=function(Ne,rt){return Ln(Ne,null,null,rt)},Ln.matchesSelector=function(Ne,rt){if(St(Ne),E.matchesSelector&&dr&&!si[rt+" "]&&(!Ar||!Ar.test(rt))&&(!hr||!hr.test(rt)))try{var ut=rn.call(Ne,rt);if(ut||E.disconnectedMatch||Ne.document&&Ne.document.nodeType!==11)return ut}catch{si(rt,!0)}return Ln(rt,At,null,[Ne]).length>0},Ln.contains=function(Ne,rt){return(Ne.ownerDocument||Ne)!=At&&St(Ne),zn(Ne,rt)},Ln.attr=function(Ne,rt){(Ne.ownerDocument||Ne)!=At&&St(Ne);var ut=T.attrHandle[rt.toLowerCase()],Wt=ut&&Ii.call(T.attrHandle,rt.toLowerCase())?ut(Ne,rt,!dr):void 0;return Wt!==void 0?Wt:E.attributes||!dr?Ne.getAttribute(rt):(Wt=Ne.getAttributeNode(rt))&&Wt.specified?Wt.value:null},Ln.escape=function(Ne){return(Ne+"").replace(Io,wo)},Ln.error=function(Ne){throw new Error("Syntax error, unrecognized expression: "+Ne)},Ln.uniqueSort=function(Ne){var rt,ut=[],Wt=0,xt=0;if(Dt=!E.detectDuplicates,Et=!E.sortStable&&Ne.slice(0),Ne.sort(li),Dt){for(;rt=Ne[xt++];)rt===Ne[xt]&&(Wt=ut.push(xt));for(;Wt--;)Ne.splice(ut[Wt],1)}return Et=null,Ne},W=Ln.getText=function(Ne){var rt,ut="",Wt=0,xt=Ne.nodeType;if(xt){if(xt===1||xt===9||xt===11){if(typeof Ne.textContent=="string")return Ne.textContent;for(Ne=Ne.firstChild;Ne;Ne=Ne.nextSibling)ut+=W(Ne)}else if(xt===3||xt===4)return Ne.nodeValue}else for(;rt=Ne[Wt++];)ut+=W(rt);return ut},(T=Ln.selectors={cacheLength:50,createPseudo:Ri,match:eo,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Ne){return Ne[1]=Ne[1].replace(wi,Hi),Ne[3]=(Ne[3]||Ne[4]||Ne[5]||"").replace(wi,Hi),Ne[2]==="~="&&(Ne[3]=" "+Ne[3]+" "),Ne.slice(0,4)},CHILD:function(Ne){return Ne[1]=Ne[1].toLowerCase(),Ne[1].slice(0,3)==="nth"?(Ne[3]||Ln.error(Ne[0]),Ne[4]=+(Ne[4]?Ne[5]+(Ne[6]||1):2*(Ne[3]==="even"||Ne[3]==="odd")),Ne[5]=+(Ne[7]+Ne[8]||Ne[3]==="odd")):Ne[3]&&Ln.error(Ne[0]),Ne},PSEUDO:function(Ne){var rt,ut=!Ne[6]&&Ne[2];return eo.CHILD.test(Ne[0])?null:(Ne[3]?Ne[2]=Ne[4]||Ne[5]||"":ut&&yo.test(ut)&&(rt=fe(ut,!0))&&(rt=ut.indexOf(")",ut.length-rt)-ut.length)&&(Ne[0]=Ne[0].slice(0,rt),Ne[2]=ut.slice(0,rt)),Ne.slice(0,3))}},filter:{TAG:function(Ne){var rt=Ne.replace(wi,Hi).toLowerCase();return Ne==="*"?function(){return!0}:function(ut){return ut.nodeName&&ut.nodeName.toLowerCase()===rt}},CLASS:function(Ne){var rt=fn[Ne+" "];return rt||(rt=new RegExp("(^|"+en+")"+Ne+"("+en+"|$)"))&&fn(Ne,function(ut){return rt.test(typeof ut.className=="string"&&ut.className||ut.getAttribute!==void 0&&ut.getAttribute("class")||"")})},ATTR:function(Ne,rt,ut){return function(Wt){var xt=Ln.attr(Wt,Ne);return xt==null?rt==="!=":!rt||(xt+="",rt==="="?xt===ut:rt==="!="?xt!==ut:rt==="^="?ut&&xt.indexOf(ut)===0:rt==="*="?ut&&xt.indexOf(ut)>-1:rt==="$="?ut&&xt.slice(-ut.length)===ut:rt==="~="?(" "+xt.replace(ri," ")+" ").indexOf(ut)>-1:rt==="|="&&(xt===ut||xt.slice(0,ut.length+1)===ut+"-"))}},CHILD:function(Ne,rt,ut,Wt,xt){var $t=Ne.slice(0,3)!=="nth",Zt=Ne.slice(-4)!=="last",or=rt==="of-type";return Wt===1&&xt===0?function(fr){return!!fr.parentNode}:function(fr,zr,Xr){var $r,vn,Bn,wr,Yn,Kn,fi=$t!==Zt?"nextSibling":"previousSibling",Dn=fr.parentNode,Mi=or&&fr.nodeName.toLowerCase(),Ei=!Xr&&!or,oi=!1;if(Dn){if($t){for(;fi;){for(wr=fr;wr=wr[fi];)if(or?wr.nodeName.toLowerCase()===Mi:wr.nodeType===1)return!1;Kn=fi=Ne==="only"&&!Kn&&"nextSibling"}return!0}if(Kn=[Zt?Dn.firstChild:Dn.lastChild],Zt&&Ei){for(oi=(Yn=($r=(vn=(Bn=(wr=Dn)[an]||(wr[an]={}))[wr.uniqueID]||(Bn[wr.uniqueID]={}))[Ne]||[])[0]===ni&&$r[1])&&$r[2],wr=Yn&&Dn.childNodes[Yn];wr=++Yn&&wr&&wr[fi]||(oi=Yn=0)||Kn.pop();)if(wr.nodeType===1&&++oi&&wr===fr){vn[Ne]=[ni,Yn,oi];break}}else if(Ei&&(oi=Yn=($r=(vn=(Bn=(wr=fr)[an]||(wr[an]={}))[wr.uniqueID]||(Bn[wr.uniqueID]={}))[Ne]||[])[0]===ni&&$r[1]),oi===!1)for(;(wr=++Yn&&wr&&wr[fi]||(oi=Yn=0)||Kn.pop())&&((or?wr.nodeName.toLowerCase()!==Mi:wr.nodeType!==1)||!++oi||(Ei&&((vn=(Bn=wr[an]||(wr[an]={}))[wr.uniqueID]||(Bn[wr.uniqueID]={}))[Ne]=[ni,oi]),wr!==fr)););return(oi-=xt)===Wt||oi%Wt==0&&oi/Wt>=0}}},PSEUDO:function(Ne,rt){var ut,Wt=T.pseudos[Ne]||T.setFilters[Ne.toLowerCase()]||Ln.error("unsupported pseudo: "+Ne);return Wt[an]?Wt(rt):Wt.length>1?(ut=[Ne,Ne,"",rt],T.setFilters.hasOwnProperty(Ne.toLowerCase())?Ri(function(xt,$t){for(var Zt,or=Wt(xt,rt),fr=or.length;fr--;)xt[Zt=ti(xt,or[fr])]=!($t[Zt]=or[fr])}):function(xt){return Wt(xt,0,ut)}):Wt}},pseudos:{not:Ri(function(Ne){var rt=[],ut=[],Wt=Pe(Ne.replace(gi,"$1"));return Wt[an]?Ri(function(xt,$t,Zt,or){for(var fr,zr=Wt(xt,null,or,[]),Xr=xt.length;Xr--;)(fr=zr[Xr])&&(xt[Xr]=!($t[Xr]=fr))}):function(xt,$t,Zt){return rt[0]=xt,Wt(rt,null,Zt,ut),rt[0]=null,!ut.pop()}}),has:Ri(function(Ne){return function(rt){return Ln(Ne,rt).length>0}}),contains:Ri(function(Ne){return Ne=Ne.replace(wi,Hi),function(rt){return(rt.textContent||W(rt)).indexOf(Ne)>-1}}),lang:Ri(function(Ne){return Do.test(Ne||"")||Ln.error("unsupported lang: "+Ne),Ne=Ne.replace(wi,Hi).toLowerCase(),function(rt){var ut;do if(ut=dr?rt.lang:rt.getAttribute("xml:lang")||rt.getAttribute("lang"))return(ut=ut.toLowerCase())===Ne||ut.indexOf(Ne+"-")===0;while((rt=rt.parentNode)&&rt.nodeType===1);return!1}}),target:function(Ne){var rt=n.location&&n.location.hash;return rt&&rt.slice(1)===Ne.id},root:function(Ne){return Ne===pr},focus:function(Ne){return Ne===At.activeElement&&(!At.hasFocus||At.hasFocus())&&!!(Ne.type||Ne.href||~Ne.tabIndex)},enabled:Wi(!1),disabled:Wi(!0),checked:function(Ne){var rt=Ne.nodeName.toLowerCase();return rt==="input"&&!!Ne.checked||rt==="option"&&!!Ne.selected},selected:function(Ne){return Ne.parentNode&&Ne.parentNode.selectedIndex,Ne.selected===!0},empty:function(Ne){for(Ne=Ne.firstChild;Ne;Ne=Ne.nextSibling)if(Ne.nodeType<6)return!1;return!0},parent:function(Ne){return!T.pseudos.empty(Ne)},header:function(Ne){return uo.test(Ne.nodeName)},input:function(Ne){return Lo.test(Ne.nodeName)},button:function(Ne){var rt=Ne.nodeName.toLowerCase();return rt==="input"&&Ne.type==="button"||rt==="button"},text:function(Ne){var rt;return Ne.nodeName.toLowerCase()==="input"&&Ne.type==="text"&&((rt=Ne.getAttribute("type"))==null||rt.toLowerCase()==="text")},first:Bi(function(){return[0]}),last:Bi(function(Ne,rt){return[rt-1]}),eq:Bi(function(Ne,rt,ut){return[ut<0?ut+rt:ut]}),even:Bi(function(Ne,rt){for(var ut=0;ut<rt;ut+=2)Ne.push(ut);return Ne}),odd:Bi(function(Ne,rt){for(var ut=1;ut<rt;ut+=2)Ne.push(ut);return Ne}),lt:Bi(function(Ne,rt,ut){for(var Wt=ut<0?ut+rt:ut>rt?rt:ut;--Wt>=0;)Ne.push(Wt);return Ne}),gt:Bi(function(Ne,rt,ut){for(var Wt=ut<0?ut+rt:ut;++Wt<rt;)Ne.push(Wt);return Ne})}}).pseudos.nth=T.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[c]=Si(c);for(c in{submit:!0,reset:!0})T.pseudos[c]=Xi(c);function io(){}function co(Ne){for(var rt=0,ut=Ne.length,Wt="";rt<ut;rt++)Wt+=Ne[rt].value;return Wt}function oo(Ne,rt,ut){var Wt=rt.dir,xt=rt.next,$t=xt||Wt,Zt=ut&&$t==="parentNode",or=nn++;return rt.first?function(fr,zr,Xr){for(;fr=fr[Wt];)if(fr.nodeType===1||Zt)return Ne(fr,zr,Xr);return!1}:function(fr,zr,Xr){var $r,vn,Bn,wr=[ni,or];if(Xr){for(;fr=fr[Wt];)if((fr.nodeType===1||Zt)&&Ne(fr,zr,Xr))return!0}else for(;fr=fr[Wt];)if(fr.nodeType===1||Zt)if(vn=(Bn=fr[an]||(fr[an]={}))[fr.uniqueID]||(Bn[fr.uniqueID]={}),xt&&xt===fr.nodeName.toLowerCase())fr=fr[Wt]||fr;else{if(($r=vn[$t])&&$r[0]===ni&&$r[1]===or)return wr[2]=$r[2];if(vn[$t]=wr,wr[2]=Ne(fr,zr,Xr))return!0}return!1}}function Ti(Ne){return Ne.length>1?function(rt,ut,Wt){for(var xt=Ne.length;xt--;)if(!Ne[xt](rt,ut,Wt))return!1;return!0}:Ne[0]}function mo(Ne,rt,ut,Wt,xt){for(var $t,Zt=[],or=0,fr=Ne.length,zr=rt!=null;or<fr;or++)($t=Ne[or])&&(ut&&!ut($t,Wt,xt)||(Zt.push($t),zr&&rt.push(or)));return Zt}function po(Ne,rt,ut,Wt,xt,$t){return Wt&&!Wt[an]&&(Wt=po(Wt)),xt&&!xt[an]&&(xt=po(xt,$t)),Ri(function(Zt,or,fr,zr){var Xr,$r,vn,Bn=[],wr=[],Yn=or.length,Kn=Zt||function(Mi,Ei,oi){for(var ji=0,Fi=Ei.length;ji<Fi;ji++)Ln(Mi,Ei[ji],oi);return oi}(rt||"*",fr.nodeType?[fr]:fr,[]),fi=!Ne||!Zt&&rt?Kn:mo(Kn,Bn,Ne,fr,zr),Dn=ut?xt||(Zt?Ne:Yn||Wt)?[]:or:fi;if(ut&&ut(fi,Dn,fr,zr),Wt)for(Xr=mo(Dn,wr),Wt(Xr,[],fr,zr),$r=Xr.length;$r--;)(vn=Xr[$r])&&(Dn[wr[$r]]=!(fi[wr[$r]]=vn));if(Zt){if(xt||Ne){if(xt){for(Xr=[],$r=Dn.length;$r--;)(vn=Dn[$r])&&Xr.push(fi[$r]=vn);xt(null,Dn=[],Xr,zr)}for($r=Dn.length;$r--;)(vn=Dn[$r])&&(Xr=xt?ti(Zt,vn):Bn[$r])>-1&&(Zt[Xr]=!(or[Xr]=vn))}}else Dn=mo(Dn===or?Dn.splice(Yn,Dn.length):Dn),xt?xt(null,or,Dn,zr):Qn.apply(or,Dn)})}function bo(Ne){for(var rt,ut,Wt,xt=Ne.length,$t=T.relative[Ne[0].type],Zt=$t||T.relative[" "],or=$t?1:0,fr=oo(function($r){return $r===rt},Zt,!0),zr=oo(function($r){return ti(rt,$r)>-1},Zt,!0),Xr=[function($r,vn,Bn){var wr=!$t&&(Bn||vn!==et)||((rt=vn).nodeType?fr($r,vn,Bn):zr($r,vn,Bn));return rt=null,wr}];or<xt;or++)if(ut=T.relative[Ne[or].type])Xr=[oo(Ti(Xr),ut)];else{if((ut=T.filter[Ne[or].type].apply(null,Ne[or].matches))[an]){for(Wt=++or;Wt<xt&&!T.relative[Ne[Wt].type];Wt++);return po(or>1&&Ti(Xr),or>1&&co(Ne.slice(0,or-1).concat({value:Ne[or-2].type===" "?"*":""})).replace(gi,"$1"),ut,or<Wt&&bo(Ne.slice(or,Wt)),Wt<xt&&bo(Ne=Ne.slice(Wt)),Wt<xt&&co(Ne))}Xr.push(ut)}return Ti(Xr)}return io.prototype=T.filters=T.pseudos,T.setFilters=new io,fe=Ln.tokenize=function(Ne,rt){var ut,Wt,xt,$t,Zt,or,fr,zr=pi[Ne+" "];if(zr)return rt?0:zr.slice(0);for(Zt=Ne,or=[],fr=T.preFilter;Zt;){for($t in ut&&!(Wt=Ji.exec(Zt))||(Wt&&(Zt=Zt.slice(Wt[0].length)||Zt),or.push(xt=[])),ut=!1,(Wt=ho.exec(Zt))&&(ut=Wt.shift(),xt.push({value:ut,type:Wt[0].replace(gi," ")}),Zt=Zt.slice(ut.length)),T.filter)!(Wt=eo[$t].exec(Zt))||fr[$t]&&!(Wt=fr[$t](Wt))||(ut=Wt.shift(),xt.push({value:ut,type:$t,matches:Wt}),Zt=Zt.slice(ut.length));if(!ut)break}return rt?Zt.length:Zt?Ln.error(Ne):pi(Ne,or).slice(0)},Pe=Ln.compile=function(Ne,rt){var ut,Wt=[],xt=[],$t=Li[Ne+" "];if(!$t){for(rt||(rt=fe(Ne)),ut=rt.length;ut--;)($t=bo(rt[ut]))[an]?Wt.push($t):xt.push($t);($t=Li(Ne,function(Zt,or){var fr=or.length>0,zr=Zt.length>0,Xr=function($r,vn,Bn,wr,Yn){var Kn,fi,Dn,Mi=0,Ei="0",oi=$r&&[],ji=[],Fi=et,Ki=$r||zr&&T.find.TAG("*",Yn),_o=ni+=Fi==null?1:Math.random()||.1,Po=Ki.length;for(Yn&&(et=vn==At||vn||Yn);Ei!==Po&&(Kn=Ki[Ei])!=null;Ei++){if(zr&&Kn){for(fi=0,vn||Kn.ownerDocument==At||(St(Kn),Bn=!dr);Dn=Zt[fi++];)if(Dn(Kn,vn||At,Bn)){wr.push(Kn);break}Yn&&(ni=_o)}fr&&((Kn=!Dn&&Kn)&&Mi--,$r&&oi.push(Kn))}if(Mi+=Ei,fr&&Ei!==Mi){for(fi=0;Dn=or[fi++];)Dn(oi,ji,vn,Bn);if($r){if(Mi>0)for(;Ei--;)oi[Ei]||ji[Ei]||(ji[Ei]=Nn.call(wr));ji=mo(ji)}Qn.apply(wr,ji),Yn&&!$r&&ji.length>0&&Mi+or.length>1&&Ln.uniqueSort(wr)}return Yn&&(ni=_o,et=Fi),oi};return fr?Ri(Xr):Xr}(xt,Wt))).selector=Ne}return $t},He=Ln.select=function(Ne,rt,ut,Wt){var xt,$t,Zt,or,fr,zr=typeof Ne=="function"&&Ne,Xr=!Wt&&fe(Ne=zr.selector||Ne);if(ut=ut||[],Xr.length===1){if(($t=Xr[0]=Xr[0].slice(0)).length>2&&(Zt=$t[0]).type==="ID"&&rt.nodeType===9&&dr&&T.relative[$t[1].type]){if(!(rt=(T.find.ID(Zt.matches[0].replace(wi,Hi),rt)||[])[0]))return ut;zr&&(rt=rt.parentNode),Ne=Ne.slice($t.shift().value.length)}for(xt=eo.needsContext.test(Ne)?0:$t.length;xt--&&(Zt=$t[xt],!T.relative[or=Zt.type]);)if((fr=T.find[or])&&(Wt=fr(Zt.matches[0].replace(wi,Hi),to.test($t[0].type)&&go(rt.parentNode)||rt))){if($t.splice(xt,1),!(Ne=Wt.length&&co($t)))return Qn.apply(ut,Wt),ut;break}}return(zr||Pe(Ne,Xr))(Wt,rt,!dr,ut,!rt||to.test(Ne)&&go(rt.parentNode)||rt),ut},E.sortStable=an.split("").sort(li).join("")===an,E.detectDuplicates=!!Dt,St(),E.sortDetached=_i(function(Ne){return 1&Ne.compareDocumentPosition(At.createElement("fieldset"))}),_i(function(Ne){return Ne.innerHTML="<a href='#'></a>",Ne.firstChild.getAttribute("href")==="#"})||Vi("type|href|height|width",function(Ne,rt,ut){if(!ut)return Ne.getAttribute(rt,rt.toLowerCase()==="type"?1:2)}),E.attributes&&_i(function(Ne){return Ne.innerHTML="<input/>",Ne.firstChild.setAttribute("value",""),Ne.firstChild.getAttribute("value")===""})||Vi("value",function(Ne,rt,ut){if(!ut&&Ne.nodeName.toLowerCase()==="input")return Ne.defaultValue}),_i(function(Ne){return Ne.getAttribute("disabled")==null})||Vi(yi,function(Ne,rt,ut){var Wt;if(!ut)return Ne[rt]===!0?rt.toLowerCase():(Wt=Ne.getAttributeNode(rt))&&Wt.specified?Wt.value:null}),Ln}(_);h.find=Ge,h.expr=Ge.selectors,h.expr[":"]=h.expr.pseudos,h.uniqueSort=h.unique=Ge.uniqueSort,h.text=Ge.getText,h.isXMLDoc=Ge.isXML,h.contains=Ge.contains,h.escapeSelector=Ge.escape;var me=function(n,c,E){for(var T=[],W=E!==void 0;(n=n[c])&&n.nodeType!==9;)if(n.nodeType===1){if(W&&h(n).is(E))break;T.push(n)}return T},xe=function(n,c){for(var E=[];n;n=n.nextSibling)n.nodeType===1&&n!==c&&E.push(n);return E},D=h.expr.match.needsContext;function se(n,c){return n.nodeName&&n.nodeName.toLowerCase()===c.toLowerCase()}var re=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function be(n,c,E){return m(c)?h.grep(n,function(T,W){return!!c.call(T,W,T)!==E}):c.nodeType?h.grep(n,function(T){return T===c!==E}):typeof c!="string"?h.grep(n,function(T){return ue.call(c,T)>-1!==E}):h.filter(c,n,E)}h.filter=function(n,c,E){var T=c[0];return E&&(n=":not("+n+")"),c.length===1&&T.nodeType===1?h.find.matchesSelector(T,n)?[T]:[]:h.find.matches(n,h.grep(c,function(W){return W.nodeType===1}))},h.fn.extend({find:function(n){var c,E,T=this.length,W=this;if(typeof n!="string")return this.pushStack(h(n).filter(function(){for(c=0;c<T;c++)if(h.contains(W[c],this))return!0}));for(E=this.pushStack([]),c=0;c<T;c++)h.find(n,W[c],E);return T>1?h.uniqueSort(E):E},filter:function(n){return this.pushStack(be(this,n||[],!1))},not:function(n){return this.pushStack(be(this,n||[],!0))},is:function(n){return!!be(this,typeof n=="string"&&D.test(n)?h(n):n||[],!1).length}});var $e,dt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(h.fn.init=function(n,c,E){var T,W;if(!n)return this;if(E=E||$e,typeof n=="string"){if(!(T=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:dt.exec(n))||!T[1]&&c)return!c||c.jquery?(c||E).find(n):this.constructor(c).find(n);if(T[1]){if(c=c instanceof h?c[0]:c,h.merge(this,h.parseHTML(T[1],c&&c.nodeType?c.ownerDocument||c:P,!0)),re.test(T[1])&&h.isPlainObject(c))for(T in c)m(this[T])?this[T](c[T]):this.attr(T,c[T]);return this}return(W=P.getElementById(T[2]))&&(this[0]=W,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):m(n)?E.ready!==void 0?E.ready(n):n(h):h.makeArray(n,this)}).prototype=h.fn,$e=h(P);var Tt=/^(?:parents|prev(?:Until|All))/,ft={children:!0,contents:!0,next:!0,prev:!0};function Ke(n,c){for(;(n=n[c])&&n.nodeType!==1;);return n}h.fn.extend({has:function(n){var c=h(n,this),E=c.length;return this.filter(function(){for(var T=0;T<E;T++)if(h.contains(this,c[T]))return!0})},closest:function(n,c){var E,T=0,W=this.length,V=[],fe=typeof n!="string"&&h(n);if(!D.test(n)){for(;T<W;T++)for(E=this[T];E&&E!==c;E=E.parentNode)if(E.nodeType<11&&(fe?fe.index(E)>-1:E.nodeType===1&&h.find.matchesSelector(E,n))){V.push(E);break}}return this.pushStack(V.length>1?h.uniqueSort(V):V)},index:function(n){return n?typeof n=="string"?ue.call(h(n),this[0]):ue.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,c){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(n,c))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}}),h.each({parent:function(n){var c=n.parentNode;return c&&c.nodeType!==11?c:null},parents:function(n){return me(n,"parentNode")},parentsUntil:function(n,c,E){return me(n,"parentNode",E)},next:function(n){return Ke(n,"nextSibling")},prev:function(n){return Ke(n,"previousSibling")},nextAll:function(n){return me(n,"nextSibling")},prevAll:function(n){return me(n,"previousSibling")},nextUntil:function(n,c,E){return me(n,"nextSibling",E)},prevUntil:function(n,c,E){return me(n,"previousSibling",E)},siblings:function(n){return xe((n.parentNode||{}).firstChild,n)},children:function(n){return xe(n.firstChild)},contents:function(n){return n.contentDocument!=null&&p(n.contentDocument)?n.contentDocument:(se(n,"template")&&(n=n.content||n),h.merge([],n.childNodes))}},function(n,c){h.fn[n]=function(E,T){var W=h.map(this,c,E);return n.slice(-5)!=="Until"&&(T=E),T&&typeof T=="string"&&(W=h.filter(T,W)),this.length>1&&(ft[n]||h.uniqueSort(W),Tt.test(n)&&W.reverse()),this.pushStack(W)}});var nt=/[^\x20\t\r\n\f]+/g;function mt(n){return n}function yt(n){throw n}function Nt(n,c,E,T){var W;try{n&&m(W=n.promise)?W.call(n).done(c).fail(E):n&&m(W=n.then)?W.call(n,c,E):c.apply(void 0,[n].slice(T))}catch(V){E.apply(void 0,[V])}}h.Callbacks=function(n){n=typeof n=="string"?function(Et){var Dt={};return h.each(Et.match(nt)||[],function(St,At){Dt[At]=!0}),Dt}(n):h.extend({},n);var c,E,T,W,V=[],fe=[],Pe=-1,He=function(){for(W=W||n.once,T=c=!0;fe.length;Pe=-1)for(E=fe.shift();++Pe<V.length;)V[Pe].apply(E[0],E[1])===!1&&n.stopOnFalse&&(Pe=V.length,E=!1);n.memory||(E=!1),c=!1,W&&(V=E?[]:"")},et={add:function(){return V&&(E&&!c&&(Pe=V.length-1,fe.push(E)),function Et(Dt){h.each(Dt,function(St,At){m(At)?n.unique&&et.has(At)||V.push(At):At&&At.length&&Z(At)!=="string"&&Et(At)})}(arguments),E&&!c&&He()),this},remove:function(){return h.each(arguments,function(Et,Dt){for(var St;(St=h.inArray(Dt,V,St))>-1;)V.splice(St,1),St<=Pe&&Pe--}),this},has:function(Et){return Et?h.inArray(Et,V)>-1:V.length>0},empty:function(){return V&&(V=[]),this},disable:function(){return W=fe=[],V=E="",this},disabled:function(){return!V},lock:function(){return W=fe=[],E||c||(V=E=""),this},locked:function(){return!!W},fireWith:function(Et,Dt){return W||(Dt=[Et,(Dt=Dt||[]).slice?Dt.slice():Dt],fe.push(Dt),c||He()),this},fire:function(){return et.fireWith(this,arguments),this},fired:function(){return!!T}};return et},h.extend({Deferred:function(n){var c=[["notify","progress",h.Callbacks("memory"),h.Callbacks("memory"),2],["resolve","done",h.Callbacks("once memory"),h.Callbacks("once memory"),0,"resolved"],["reject","fail",h.Callbacks("once memory"),h.Callbacks("once memory"),1,"rejected"]],E="pending",T={state:function(){return E},always:function(){return W.done(arguments).fail(arguments),this},catch:function(V){return T.then(null,V)},pipe:function(){var V=arguments;return h.Deferred(function(fe){h.each(c,function(Pe,He){var et=m(V[He[4]])&&V[He[4]];W[He[1]](function(){var Et=et&&et.apply(this,arguments);Et&&m(Et.promise)?Et.promise().progress(fe.notify).done(fe.resolve).fail(fe.reject):fe[He[0]+"With"](this,et?[Et]:arguments)})}),V=null}).promise()},then:function(V,fe,Pe){var He=0;function et(Et,Dt,St,At){return function(){var pr=this,dr=arguments,hr=function(){var rn,zn;if(!(Et<He)){if((rn=St.apply(pr,dr))===Dt.promise())throw new TypeError("Thenable self-resolution");zn=rn&&(typeof rn=="object"||typeof rn=="function")&&rn.then,m(zn)?At?zn.call(rn,et(He,Dt,mt,At),et(He,Dt,yt,At)):(He++,zn.call(rn,et(He,Dt,mt,At),et(He,Dt,yt,At),et(He,Dt,mt,Dt.notifyWith))):(St!==mt&&(pr=void 0,dr=[rn]),(At||Dt.resolveWith)(pr,dr))}},Ar=At?hr:function(){try{hr()}catch(rn){h.Deferred.exceptionHook&&h.Deferred.exceptionHook(rn,Ar.stackTrace),Et+1>=He&&(St!==yt&&(pr=void 0,dr=[rn]),Dt.rejectWith(pr,dr))}};Et?Ar():(h.Deferred.getStackHook&&(Ar.stackTrace=h.Deferred.getStackHook()),_.setTimeout(Ar))}}return h.Deferred(function(Et){c[0][3].add(et(0,Et,m(Pe)?Pe:mt,Et.notifyWith)),c[1][3].add(et(0,Et,m(V)?V:mt)),c[2][3].add(et(0,Et,m(fe)?fe:yt))}).promise()},promise:function(V){return V!=null?h.extend(V,T):T}},W={};return h.each(c,function(V,fe){var Pe=fe[2],He=fe[5];T[fe[1]]=Pe.add,He&&Pe.add(function(){E=He},c[3-V][2].disable,c[3-V][3].disable,c[0][2].lock,c[0][3].lock),Pe.add(fe[3].fire),W[fe[0]]=function(){return W[fe[0]+"With"](this===W?void 0:this,arguments),this},W[fe[0]+"With"]=Pe.fireWith}),T.promise(W),n&&n.call(W,W),W},when:function(n){var c=arguments.length,E=c,T=Array(E),W=G.call(arguments),V=h.Deferred(),fe=function(Pe){return function(He){T[Pe]=this,W[Pe]=arguments.length>1?G.call(arguments):He,--c||V.resolveWith(T,W)}};if(c<=1&&(Nt(n,V.done(fe(E)).resolve,V.reject,!c),V.state()==="pending"||m(W[E]&&W[E].then)))return V.then();for(;E--;)Nt(W[E],fe(E),V.reject);return V.promise()}});var at=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;h.Deferred.exceptionHook=function(n,c){_.console&&_.console.warn&&n&&at.test(n.name)&&_.console.warn("jQuery.Deferred exception: "+n.message,n.stack,c)},h.readyException=function(n){_.setTimeout(function(){throw n})};var Ft=h.Deferred();function B(){P.removeEventListener("DOMContentLoaded",B),_.removeEventListener("load",B),h.ready()}h.fn.ready=function(n){return Ft.then(n).catch(function(c){h.readyException(c)}),this},h.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--h.readyWait:h.isReady)||(h.isReady=!0,n!==!0&&--h.readyWait>0||Ft.resolveWith(P,[h]))}}),h.ready.then=Ft.then,P.readyState==="complete"||P.readyState!=="loading"&&!P.documentElement.doScroll?_.setTimeout(h.ready):(P.addEventListener("DOMContentLoaded",B),_.addEventListener("load",B));var X=function(n,c,E,T,W,V,fe){var Pe=0,He=n.length,et=E==null;if(Z(E)==="object")for(Pe in W=!0,E)X(n,c,Pe,E[Pe],!0,V,fe);else if(T!==void 0&&(W=!0,m(T)||(fe=!0),et&&(fe?(c.call(n,T),c=null):(et=c,c=function(Et,Dt,St){return et.call(h(Et),St)})),c))for(;Pe<He;Pe++)c(n[Pe],E,fe?T:T.call(n[Pe],Pe,c(n[Pe],E)));return W?n:et?c.call(n):He?c(n[0],E):V},he=/^-ms-/,De=/-([a-z])/g;function Ve(n,c){return c.toUpperCase()}function Be(n){return n.replace(he,"ms-").replace(De,Ve)}var ze=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};function lt(){this.expando=h.expando+lt.uid++}lt.uid=1,lt.prototype={cache:function(n){var c=n[this.expando];return c||(c={},ze(n)&&(n.nodeType?n[this.expando]=c:Object.defineProperty(n,this.expando,{value:c,configurable:!0}))),c},set:function(n,c,E){var T,W=this.cache(n);if(typeof c=="string")W[Be(c)]=E;else for(T in c)W[Be(T)]=c[T];return W},get:function(n,c){return c===void 0?this.cache(n):n[this.expando]&&n[this.expando][Be(c)]},access:function(n,c,E){return c===void 0||c&&typeof c=="string"&&E===void 0?this.get(n,c):(this.set(n,c,E),E!==void 0?E:c)},remove:function(n,c){var E,T=n[this.expando];if(T!==void 0){if(c!==void 0)for(E=(c=Array.isArray(c)?c.map(Be):(c=Be(c))in T?[c]:c.match(nt)||[]).length;E--;)delete T[c[E]];(c===void 0||h.isEmptyObject(T))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var c=n[this.expando];return c!==void 0&&!h.isEmptyObject(c)}};var Ze=new lt,Pt=new lt,jt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nr=/[A-Z]/g;function Bt(n,c,E){var T;if(E===void 0&&n.nodeType===1)if(T="data-"+c.replace(nr,"-$&").toLowerCase(),typeof(E=n.getAttribute(T))=="string"){try{E=function(W){return W==="true"||W!=="false"&&(W==="null"?null:W===+W+""?+W:jt.test(W)?JSON.parse(W):W)}(E)}catch{}Pt.set(n,c,E)}else E=void 0;return E}h.extend({hasData:function(n){return Pt.hasData(n)||Ze.hasData(n)},data:function(n,c,E){return Pt.access(n,c,E)},removeData:function(n,c){Pt.remove(n,c)},_data:function(n,c,E){return Ze.access(n,c,E)},_removeData:function(n,c){Ze.remove(n,c)}}),h.fn.extend({data:function(n,c){var E,T,W,V=this[0],fe=V&&V.attributes;if(n===void 0){if(this.length&&(W=Pt.get(V),V.nodeType===1&&!Ze.get(V,"hasDataAttrs"))){for(E=fe.length;E--;)fe[E]&&(T=fe[E].name).indexOf("data-")===0&&(T=Be(T.slice(5)),Bt(V,T,W[T]));Ze.set(V,"hasDataAttrs",!0)}return W}return typeof n=="object"?this.each(function(){Pt.set(this,n)}):X(this,function(Pe){var He;if(V&&Pe===void 0)return(He=Pt.get(V,n))!==void 0||(He=Bt(V,n))!==void 0?He:void 0;this.each(function(){Pt.set(this,n,Pe)})},null,c,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){Pt.remove(this,n)})}}),h.extend({queue:function(n,c,E){var T;if(n)return c=(c||"fx")+"queue",T=Ze.get(n,c),E&&(!T||Array.isArray(E)?T=Ze.access(n,c,h.makeArray(E)):T.push(E)),T||[]},dequeue:function(n,c){c=c||"fx";var E=h.queue(n,c),T=E.length,W=E.shift(),V=h._queueHooks(n,c);W==="inprogress"&&(W=E.shift(),T--),W&&(c==="fx"&&E.unshift("inprogress"),delete V.stop,W.call(n,function(){h.dequeue(n,c)},V)),!T&&V&&V.empty.fire()},_queueHooks:function(n,c){var E=c+"queueHooks";return Ze.get(n,E)||Ze.access(n,E,{empty:h.Callbacks("once memory").add(function(){Ze.remove(n,[c+"queue",E])})})}}),h.fn.extend({queue:function(n,c){var E=2;return typeof n!="string"&&(c=n,n="fx",E--),arguments.length<E?h.queue(this[0],n):c===void 0?this:this.each(function(){var T=h.queue(this,n,c);h._queueHooks(this,n),n==="fx"&&T[0]!=="inprogress"&&h.dequeue(this,n)})},dequeue:function(n){return this.each(function(){h.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,c){var E,T=1,W=h.Deferred(),V=this,fe=this.length,Pe=function(){--T||W.resolveWith(V,[V])};for(typeof n!="string"&&(c=n,n=void 0),n=n||"fx";fe--;)(E=Ze.get(V[fe],n+"queueHooks"))&&E.empty&&(T++,E.empty.add(Pe));return Pe(),W.promise(c)}});var xr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Pr=new RegExp("^(?:([+-])=|)("+xr+")([a-z%]*)$","i"),gr=["Top","Right","Bottom","Left"],Cr=P.documentElement,qr=function(n){return h.contains(n.ownerDocument,n)},on={composed:!0};Cr.getRootNode&&(qr=function(n){return h.contains(n.ownerDocument,n)||n.getRootNode(on)===n.ownerDocument});var Er=function(n,c){return(n=c||n).style.display==="none"||n.style.display===""&&qr(n)&&h.css(n,"display")==="none"};function cn(n,c,E,T){var W,V,fe=20,Pe=T?function(){return T.cur()}:function(){return h.css(n,c,"")},He=Pe(),et=E&&E[3]||(h.cssNumber[c]?"":"px"),Et=n.nodeType&&(h.cssNumber[c]||et!=="px"&&+He)&&Pr.exec(h.css(n,c));if(Et&&Et[3]!==et){for(He/=2,et=et||Et[3],Et=+He||1;fe--;)h.style(n,c,Et+et),(1-V)*(1-(V=Pe()/He||.5))<=0&&(fe=0),Et/=V;Et*=2,h.style(n,c,Et+et),E=E||[]}return E&&(Et=+Et||+He||0,W=E[1]?Et+(E[1]+1)*E[2]:+E[2],T&&(T.unit=et,T.start=Et,T.end=W)),W}var Vr={};function dn(n){var c,E=n.ownerDocument,T=n.nodeName,W=Vr[T];return W||(c=E.body.appendChild(E.createElement(T)),W=h.css(c,"display"),c.parentNode.removeChild(c),W==="none"&&(W="block"),Vr[T]=W,W)}function vr(n,c){for(var E,T,W=[],V=0,fe=n.length;V<fe;V++)(T=n[V]).style&&(E=T.style.display,c?(E==="none"&&(W[V]=Ze.get(T,"display")||null,W[V]||(T.style.display="")),T.style.display===""&&Er(T)&&(W[V]=dn(T))):E!=="none"&&(W[V]="none",Ze.set(T,"display",E)));for(V=0;V<fe;V++)W[V]!=null&&(n[V].style.display=W[V]);return n}h.fn.extend({show:function(){return vr(this,!0)},hide:function(){return vr(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){Er(this)?h(this).show():h(this).hide()})}});var lr,gn,Dr=/^(?:checkbox|radio)$/i,br=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,hn=/^$|^module$|\/(?:java|ecma)script/i;lr=P.createDocumentFragment().appendChild(P.createElement("div")),(gn=P.createElement("input")).setAttribute("type","radio"),gn.setAttribute("checked","checked"),gn.setAttribute("name","t"),lr.appendChild(gn),ie.checkClone=lr.cloneNode(!0).cloneNode(!0).lastChild.checked,lr.innerHTML="<textarea>x</textarea>",ie.noCloneChecked=!!lr.cloneNode(!0).lastChild.defaultValue,lr.innerHTML="<option></option>",ie.option=!!lr.lastChild;var sn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Sr(n,c){var E;return E=n.getElementsByTagName!==void 0?n.getElementsByTagName(c||"*"):n.querySelectorAll!==void 0?n.querySelectorAll(c||"*"):[],c===void 0||c&&se(n,c)?h.merge([n],E):E}function Yr(n,c){for(var E=0,T=n.length;E<T;E++)Ze.set(n[E],"globalEval",!c||Ze.get(c[E],"globalEval"))}sn.tbody=sn.tfoot=sn.colgroup=sn.caption=sn.thead,sn.th=sn.td,ie.option||(sn.optgroup=sn.option=[1,"<select multiple='multiple'>","</select>"]);var kr=/<|&#?\w+;/;function Wn(n,c,E,T,W){for(var V,fe,Pe,He,et,Et,Dt=c.createDocumentFragment(),St=[],At=0,pr=n.length;At<pr;At++)if((V=n[At])||V===0)if(Z(V)==="object")h.merge(St,V.nodeType?[V]:V);else if(kr.test(V)){for(fe=fe||Dt.appendChild(c.createElement("div")),Pe=(br.exec(V)||["",""])[1].toLowerCase(),He=sn[Pe]||sn._default,fe.innerHTML=He[1]+h.htmlPrefilter(V)+He[2],Et=He[0];Et--;)fe=fe.lastChild;h.merge(St,fe.childNodes),(fe=Dt.firstChild).textContent=""}else St.push(c.createTextNode(V));for(Dt.textContent="",At=0;V=St[At++];)if(T&&h.inArray(V,T)>-1)W&&W.push(V);else if(et=qr(V),fe=Sr(Dt.appendChild(V),"script"),et&&Yr(fe),E)for(Et=0;V=fe[Et++];)hn.test(V.type||"")&&E.push(V);return Dt}var Jn=/^key/,ln=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zn=/^([^.]*)(?:\.(.+)|)/;function xn(){return!0}function Cn(){return!1}function Sn(n,c){return n===function(){try{return P.activeElement}catch{}}()==(c==="focus")}function mn(n,c,E,T,W,V){var fe,Pe;if(typeof c=="object"){for(Pe in typeof E!="string"&&(T=T||E,E=void 0),c)mn(n,Pe,E,T,c[Pe],V);return n}if(T==null&&W==null?(W=E,T=E=void 0):W==null&&(typeof E=="string"?(W=T,T=void 0):(W=T,T=E,E=void 0)),W===!1)W=Cn;else if(!W)return n;return V===1&&(fe=W,(W=function(He){return h().off(He),fe.apply(this,arguments)}).guid=fe.guid||(fe.guid=h.guid++)),n.each(function(){h.event.add(this,c,W,T,E)})}function je(n,c,E){E?(Ze.set(n,c,!1),h.event.add(n,c,{namespace:!1,handler:function(T){var W,V,fe=Ze.get(this,c);if(1&T.isTrigger&&this[c]){if(fe.length)(h.event.special[c]||{}).delegateType&&T.stopPropagation();else if(fe=G.call(arguments),Ze.set(this,c,fe),W=E(this,c),this[c](),fe!==(V=Ze.get(this,c))||W?Ze.set(this,c,!1):V={},fe!==V)return T.stopImmediatePropagation(),T.preventDefault(),V.value}else fe.length&&(Ze.set(this,c,{value:h.event.trigger(h.extend(fe[0],h.Event.prototype),fe.slice(1),this)}),T.stopImmediatePropagation())}})):Ze.get(n,c)===void 0&&h.event.add(n,c,xn)}h.event={global:{},add:function(n,c,E,T,W){var V,fe,Pe,He,et,Et,Dt,St,At,pr,dr,hr=Ze.get(n);if(ze(n))for(E.handler&&(E=(V=E).handler,W=V.selector),W&&h.find.matchesSelector(Cr,W),E.guid||(E.guid=h.guid++),(He=hr.events)||(He=hr.events=Object.create(null)),(fe=hr.handle)||(fe=hr.handle=function(Ar){return h!==void 0&&h.event.triggered!==Ar.type?h.event.dispatch.apply(n,arguments):void 0}),et=(c=(c||"").match(nt)||[""]).length;et--;)At=dr=(Pe=Zn.exec(c[et])||[])[1],pr=(Pe[2]||"").split(".").sort(),At&&(Dt=h.event.special[At]||{},At=(W?Dt.delegateType:Dt.bindType)||At,Dt=h.event.special[At]||{},Et=h.extend({type:At,origType:dr,data:T,handler:E,guid:E.guid,selector:W,needsContext:W&&h.expr.match.needsContext.test(W),namespace:pr.join(".")},V),(St=He[At])||((St=He[At]=[]).delegateCount=0,Dt.setup&&Dt.setup.call(n,T,pr,fe)!==!1||n.addEventListener&&n.addEventListener(At,fe)),Dt.add&&(Dt.add.call(n,Et),Et.handler.guid||(Et.handler.guid=E.guid)),W?St.splice(St.delegateCount++,0,Et):St.push(Et),h.event.global[At]=!0)},remove:function(n,c,E,T,W){var V,fe,Pe,He,et,Et,Dt,St,At,pr,dr,hr=Ze.hasData(n)&&Ze.get(n);if(hr&&(He=hr.events)){for(et=(c=(c||"").match(nt)||[""]).length;et--;)if(At=dr=(Pe=Zn.exec(c[et])||[])[1],pr=(Pe[2]||"").split(".").sort(),At){for(Dt=h.event.special[At]||{},St=He[At=(T?Dt.delegateType:Dt.bindType)||At]||[],Pe=Pe[2]&&new RegExp("(^|\\.)"+pr.join("\\.(?:.*\\.|)")+"(\\.|$)"),fe=V=St.length;V--;)Et=St[V],!W&&dr!==Et.origType||E&&E.guid!==Et.guid||Pe&&!Pe.test(Et.namespace)||T&&T!==Et.selector&&(T!=="**"||!Et.selector)||(St.splice(V,1),Et.selector&&St.delegateCount--,Dt.remove&&Dt.remove.call(n,Et));fe&&!St.length&&(Dt.teardown&&Dt.teardown.call(n,pr,hr.handle)!==!1||h.removeEvent(n,At,hr.handle),delete He[At])}else for(At in He)h.event.remove(n,At+c[et],E,T,!0);h.isEmptyObject(He)&&Ze.remove(n,"handle events")}},dispatch:function(n){var c,E,T,W,V,fe,Pe=new Array(arguments.length),He=h.event.fix(n),et=(Ze.get(this,"events")||Object.create(null))[He.type]||[],Et=h.event.special[He.type]||{};for(Pe[0]=He,c=1;c<arguments.length;c++)Pe[c]=arguments[c];if(He.delegateTarget=this,!Et.preDispatch||Et.preDispatch.call(this,He)!==!1){for(fe=h.event.handlers.call(this,He,et),c=0;(W=fe[c++])&&!He.isPropagationStopped();)for(He.currentTarget=W.elem,E=0;(V=W.handlers[E++])&&!He.isImmediatePropagationStopped();)He.rnamespace&&V.namespace!==!1&&!He.rnamespace.test(V.namespace)||(He.handleObj=V,He.data=V.data,(T=((h.event.special[V.origType]||{}).handle||V.handler).apply(W.elem,Pe))!==void 0&&(He.result=T)===!1&&(He.preventDefault(),He.stopPropagation()));return Et.postDispatch&&Et.postDispatch.call(this,He),He.result}},handlers:function(n,c){var E,T,W,V,fe,Pe=[],He=c.delegateCount,et=n.target;if(He&&et.nodeType&&!(n.type==="click"&&n.button>=1)){for(;et!==this;et=et.parentNode||this)if(et.nodeType===1&&(n.type!=="click"||et.disabled!==!0)){for(V=[],fe={},E=0;E<He;E++)fe[W=(T=c[E]).selector+" "]===void 0&&(fe[W]=T.needsContext?h(W,this).index(et)>-1:h.find(W,this,null,[et]).length),fe[W]&&V.push(T);V.length&&Pe.push({elem:et,handlers:V})}}return et=this,He<c.length&&Pe.push({elem:et,handlers:c.slice(He)}),Pe},addProp:function(n,c){Object.defineProperty(h.Event.prototype,n,{enumerable:!0,configurable:!0,get:m(c)?function(){if(this.originalEvent)return c(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(E){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:E})}})},fix:function(n){return n[h.expando]?n:new h.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var c=this||n;return Dr.test(c.type)&&c.click&&se(c,"input")&&je(c,"click",xn),!1},trigger:function(n){var c=this||n;return Dr.test(c.type)&&c.click&&se(c,"input")&&je(c,"click"),!0},_default:function(n){var c=n.target;return Dr.test(c.type)&&c.click&&se(c,"input")&&Ze.get(c,"click")||se(c,"a")}},beforeunload:{postDispatch:function(n){n.result!==void 0&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}},h.removeEvent=function(n,c,E){n.removeEventListener&&n.removeEventListener(c,E)},h.Event=function(n,c){if(!(this instanceof h.Event))return new h.Event(n,c);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===void 0&&n.returnValue===!1?xn:Cn,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,c&&h.extend(this,c),this.timeStamp=n&&n.timeStamp||Date.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:Cn,isPropagationStopped:Cn,isImmediatePropagationStopped:Cn,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=xn,n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=xn,n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=xn,n&&!this.isSimulated&&n.stopImmediatePropagation(),this.stopPropagation()}},h.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var c=n.button;return n.which==null&&Jn.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&c!==void 0&&ln.test(n.type)?1&c?1:2&c?3:4&c?2:0:n.which}},h.event.addProp),h.each({focus:"focusin",blur:"focusout"},function(n,c){h.event.special[n]={setup:function(){return je(this,n,Sn),!1},trigger:function(){return je(this,n),!0},delegateType:c}}),h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,c){h.event.special[n]={delegateType:c,bindType:c,handle:function(E){var T,W=this,V=E.relatedTarget,fe=E.handleObj;return V&&(V===W||h.contains(W,V))||(E.type=fe.origType,T=fe.handler.apply(this,arguments),E.type=c),T}}}),h.fn.extend({on:function(n,c,E,T){return mn(this,n,c,E,T)},one:function(n,c,E,T){return mn(this,n,c,E,T,1)},off:function(n,c,E){var T,W;if(n&&n.preventDefault&&n.handleObj)return T=n.handleObj,h(n.delegateTarget).off(T.namespace?T.origType+"."+T.namespace:T.origType,T.selector,T.handler),this;if(typeof n=="object"){for(W in n)this.off(W,c,n[W]);return this}return c!==!1&&typeof c!="function"||(E=c,c=void 0),E===!1&&(E=Cn),this.each(function(){h.event.remove(this,n,E,c)})}});var Fe=/<script|<style|<link/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Te(n,c){return se(n,"table")&&se(c.nodeType!==11?c:c.firstChild,"tr")&&h(n).children("tbody")[0]||n}function Je(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function It(n){return(n.type||"").slice(0,5)==="true/"?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wt(n,c){var E,T,W,V,fe,Pe;if(c.nodeType===1){if(Ze.hasData(n)&&(Pe=Ze.get(n).events))for(W in Ze.remove(c,"handle events"),Pe)for(E=0,T=Pe[W].length;E<T;E++)h.event.add(c,W,Pe[W][E]);Pt.hasData(n)&&(V=Pt.access(n),fe=h.extend({},V),Pt.set(c,fe))}}function Ot(n,c){var E=c.nodeName.toLowerCase();E==="input"&&Dr.test(n.type)?c.checked=n.checked:E!=="input"&&E!=="textarea"||(c.defaultValue=n.defaultValue)}function Rt(n,c,E,T){c=C(c);var W,V,fe,Pe,He,et,Et=0,Dt=n.length,St=Dt-1,At=c[0],pr=m(At);if(pr||Dt>1&&typeof At=="string"&&!ie.checkClone&&Ie.test(At))return n.each(function(dr){var hr=n.eq(dr);pr&&(c[0]=At.call(this,dr,hr.html())),Rt(hr,c,E,T)});if(Dt&&(V=(W=Wn(c,n[0].ownerDocument,!1,n,T)).firstChild,W.childNodes.length===1&&(W=V),V||T)){for(Pe=(fe=h.map(Sr(W,"script"),Je)).length;Et<Dt;Et++)He=W,Et!==St&&(He=h.clone(He,!0,!0),Pe&&h.merge(fe,Sr(He,"script"))),E.call(n[Et],He,Et);if(Pe)for(et=fe[fe.length-1].ownerDocument,h.map(fe,It),Et=0;Et<Pe;Et++)He=fe[Et],hn.test(He.type||"")&&!Ze.access(He,"globalEval")&&h.contains(et,He)&&(He.src&&(He.type||"").toLowerCase()!=="module"?h._evalUrl&&!He.noModule&&h._evalUrl(He.src,{nonce:He.nonce||He.getAttribute("nonce")},et):te(He.textContent.replace(Ee,""),He,et))}return n}function tr(n,c,E){for(var T,W=c?h.filter(c,n):n,V=0;(T=W[V])!=null;V++)E||T.nodeType!==1||h.cleanData(Sr(T)),T.parentNode&&(E&&qr(T)&&Yr(Sr(T,"script")),T.parentNode.removeChild(T));return n}h.extend({htmlPrefilter:function(n){return n},clone:function(n,c,E){var T,W,V,fe,Pe=n.cloneNode(!0),He=qr(n);if(!(ie.noCloneChecked||n.nodeType!==1&&n.nodeType!==11||h.isXMLDoc(n)))for(fe=Sr(Pe),T=0,W=(V=Sr(n)).length;T<W;T++)Ot(V[T],fe[T]);if(c)if(E)for(V=V||Sr(n),fe=fe||Sr(Pe),T=0,W=V.length;T<W;T++)wt(V[T],fe[T]);else wt(n,Pe);return(fe=Sr(Pe,"script")).length>0&&Yr(fe,!He&&Sr(n,"script")),Pe},cleanData:function(n){for(var c,E,T,W=h.event.special,V=0;(E=n[V])!==void 0;V++)if(ze(E)){if(c=E[Ze.expando]){if(c.events)for(T in c.events)W[T]?h.event.remove(E,T):h.removeEvent(E,T,c.handle);E[Ze.expando]=void 0}E[Pt.expando]&&(E[Pt.expando]=void 0)}}}),h.fn.extend({detach:function(n){return tr(this,n,!0)},remove:function(n){return tr(this,n)},text:function(n){return X(this,function(c){return c===void 0?h.text(this):this.empty().each(function(){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||(this.textContent=c)})},null,n,arguments.length)},append:function(){return Rt(this,arguments,function(n){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||Te(this,n).appendChild(n)})},prepend:function(){return Rt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var c=Te(this,n);c.insertBefore(n,c.firstChild)}})},before:function(){return Rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return Rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,c=0;(n=this[c])!=null;c++)n.nodeType===1&&(h.cleanData(Sr(n,!1)),n.textContent="");return this},clone:function(n,c){return n=n!=null&&n,c=c??n,this.map(function(){return h.clone(this,n,c)})},html:function(n){return X(this,function(c){var E=this[0]||{},T=0,W=this.length;if(c===void 0&&E.nodeType===1)return E.innerHTML;if(typeof c=="string"&&!Fe.test(c)&&!sn[(br.exec(c)||["",""])[1].toLowerCase()]){c=h.htmlPrefilter(c);try{for(;T<W;T++)(E=this[T]||{}).nodeType===1&&(h.cleanData(Sr(E,!1)),E.innerHTML=c);E=0}catch{}}E&&this.empty().append(c)},null,n,arguments.length)},replaceWith:function(){var n=[];return Rt(this,arguments,function(c){var E=this.parentNode;h.inArray(this,n)<0&&(h.cleanData(Sr(this)),E&&E.replaceChild(c,this))},n)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,c){h.fn[n]=function(E){for(var T,W=[],V=h(E),fe=V.length-1,Pe=0;Pe<=fe;Pe++)T=Pe===fe?this:this.clone(!0),h(V[Pe])[c](T),M.apply(W,T.get());return this.pushStack(W)}});var cr=new RegExp("^("+xr+")(?!px)[a-z%]+$","i"),mr=function(n){var c=n.ownerDocument.defaultView;return c&&c.opener||(c=_),c.getComputedStyle(n)},Wr=function(n,c,E){var T,W,V={};for(W in c)V[W]=n.style[W],n.style[W]=c[W];for(W in T=E.call(n),c)n.style[W]=V[W];return T},Br=new RegExp(gr.join("|"),"i");function Rr(n,c,E){var T,W,V,fe,Pe=n.style;return(E=E||mr(n))&&((fe=E.getPropertyValue(c)||E[c])!==""||qr(n)||(fe=h.style(n,c)),!ie.pixelBoxStyles()&&cr.test(fe)&&Br.test(c)&&(T=Pe.width,W=Pe.minWidth,V=Pe.maxWidth,Pe.minWidth=Pe.maxWidth=Pe.width=fe,fe=E.width,Pe.width=T,Pe.minWidth=W,Pe.maxWidth=V)),fe!==void 0?fe+"":fe}function tn(n,c){return{get:function(){if(!n())return(this.get=c).apply(this,arguments);delete this.get}}}(function(){function n(){if(et){He.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",et.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Cr.appendChild(He).appendChild(et);var Et=_.getComputedStyle(et);E=Et.top!=="1%",Pe=c(Et.marginLeft)===12,et.style.right="60%",V=c(Et.right)===36,T=c(Et.width)===36,et.style.position="absolute",W=c(et.offsetWidth/3)===12,Cr.removeChild(He),et=null}}function c(Et){return Math.round(parseFloat(Et))}var E,T,W,V,fe,Pe,He=P.createElement("div"),et=P.createElement("div");et.style&&(et.style.backgroundClip="content-box",et.cloneNode(!0).style.backgroundClip="",ie.clearCloneStyle=et.style.backgroundClip==="content-box",h.extend(ie,{boxSizingReliable:function(){return n(),T},pixelBoxStyles:function(){return n(),V},pixelPosition:function(){return n(),E},reliableMarginLeft:function(){return n(),Pe},scrollboxSize:function(){return n(),W},reliableTrDimensions:function(){var Et,Dt,St,At;return fe==null&&(Et=P.createElement("table"),Dt=P.createElement("tr"),St=P.createElement("div"),Et.style.cssText="position:absolute;left:-11111px",Dt.style.height="1px",St.style.height="9px",Cr.appendChild(Et).appendChild(Dt).appendChild(St),At=_.getComputedStyle(Dt),fe=parseInt(At.height)>3,Cr.removeChild(Et)),fe}}))})();var yr=["Webkit","Moz","ms"],Kt=P.createElement("div").style,pn={};function ge(n){var c=h.cssProps[n]||pn[n];return c||(n in Kt?n:pn[n]=function(E){for(var T=E[0].toUpperCase()+E.slice(1),W=yr.length;W--;)if((E=yr[W]+T)in Kt)return E}(n)||n)}var Ue=/^(none|table(?!-c[ea]).+)/,pt=/^--/,it={position:"absolute",visibility:"hidden",display:"block"},Qt={letterSpacing:"0",fontWeight:"400"};function ur(n,c,E){var T=Pr.exec(c);return T?Math.max(0,T[2]-(E||0))+(T[3]||"px"):c}function gt(n,c,E,T,W,V){var fe=c==="width"?1:0,Pe=0,He=0;if(E===(T?"border":"content"))return 0;for(;fe<4;fe+=2)E==="margin"&&(He+=h.css(n,E+gr[fe],!0,W)),T?(E==="content"&&(He-=h.css(n,"padding"+gr[fe],!0,W)),E!=="margin"&&(He-=h.css(n,"border"+gr[fe]+"Width",!0,W))):(He+=h.css(n,"padding"+gr[fe],!0,W),E!=="padding"?He+=h.css(n,"border"+gr[fe]+"Width",!0,W):Pe+=h.css(n,"border"+gr[fe]+"Width",!0,W));return!T&&V>=0&&(He+=Math.max(0,Math.ceil(n["offset"+c[0].toUpperCase()+c.slice(1)]-V-He-Pe-.5))||0),He}function Ht(n,c,E){var T=mr(n),W=(!ie.boxSizingReliable()||E)&&h.css(n,"boxSizing",!1,T)==="border-box",V=W,fe=Rr(n,c,T),Pe="offset"+c[0].toUpperCase()+c.slice(1);if(cr.test(fe)){if(!E)return fe;fe="auto"}return(!ie.boxSizingReliable()&&W||!ie.reliableTrDimensions()&&se(n,"tr")||fe==="auto"||!parseFloat(fe)&&h.css(n,"display",!1,T)==="inline")&&n.getClientRects().length&&(W=h.css(n,"boxSizing",!1,T)==="border-box",(V=Pe in n)&&(fe=n[Pe])),(fe=parseFloat(fe)||0)+gt(n,c,E||(W?"border":"content"),V,T,fe)+"px"}function Ut(n,c,E,T,W){return new Ut.prototype.init(n,c,E,T,W)}h.extend({cssHooks:{opacity:{get:function(n,c){if(c){var E=Rr(n,"opacity");return E===""?"1":E}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,c,E,T){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var W,V,fe,Pe=Be(c),He=pt.test(c),et=n.style;if(He||(c=ge(Pe)),fe=h.cssHooks[c]||h.cssHooks[Pe],E===void 0)return fe&&"get"in fe&&(W=fe.get(n,!1,T))!==void 0?W:et[c];(V=typeof E)=="string"&&(W=Pr.exec(E))&&W[1]&&(E=cn(n,c,W),V="number"),E!=null&&E==E&&(V!=="number"||He||(E+=W&&W[3]||(h.cssNumber[Pe]?"":"px")),ie.clearCloneStyle||E!==""||c.indexOf("background")!==0||(et[c]="inherit"),fe&&"set"in fe&&(E=fe.set(n,E,T))===void 0||(He?et.setProperty(c,E):et[c]=E))}},css:function(n,c,E,T){var W,V,fe,Pe=Be(c);return pt.test(c)||(c=ge(Pe)),(fe=h.cssHooks[c]||h.cssHooks[Pe])&&"get"in fe&&(W=fe.get(n,!0,E)),W===void 0&&(W=Rr(n,c,T)),W==="normal"&&c in Qt&&(W=Qt[c]),E===""||E?(V=parseFloat(W),E===!0||isFinite(V)?V||0:W):W}}),h.each(["height","width"],function(n,c){h.cssHooks[c]={get:function(E,T,W){if(T)return!Ue.test(h.css(E,"display"))||E.getClientRects().length&&E.getBoundingClientRect().width?Ht(E,c,W):Wr(E,it,function(){return Ht(E,c,W)})},set:function(E,T,W){var V,fe=mr(E),Pe=!ie.scrollboxSize()&&fe.position==="absolute",He=(Pe||W)&&h.css(E,"boxSizing",!1,fe)==="border-box",et=W?gt(E,c,W,He,fe):0;return He&&Pe&&(et-=Math.ceil(E["offset"+c[0].toUpperCase()+c.slice(1)]-parseFloat(fe[c])-gt(E,c,"border",!1,fe)-.5)),et&&(V=Pr.exec(T))&&(V[3]||"px")!=="px"&&(E.style[c]=T,T=h.css(E,c)),ur(0,T,et)}}}),h.cssHooks.marginLeft=tn(ie.reliableMarginLeft,function(n,c){if(c)return(parseFloat(Rr(n,"marginLeft"))||n.getBoundingClientRect().left-Wr(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"}),h.each({margin:"",padding:"",border:"Width"},function(n,c){h.cssHooks[n+c]={expand:function(E){for(var T=0,W={},V=typeof E=="string"?E.split(" "):[E];T<4;T++)W[n+gr[T]+c]=V[T]||V[T-2]||V[0];return W}},n!=="margin"&&(h.cssHooks[n+c].set=ur)}),h.fn.extend({css:function(n,c){return X(this,function(E,T,W){var V,fe,Pe={},He=0;if(Array.isArray(T)){for(V=mr(E),fe=T.length;He<fe;He++)Pe[T[He]]=h.css(E,T[He],!1,V);return Pe}return W!==void 0?h.style(E,T,W):h.css(E,T)},n,c,arguments.length>1)}}),h.Tween=Ut,Ut.prototype={constructor:Ut,init:function(n,c,E,T,W,V){this.elem=n,this.prop=E,this.easing=W||h.easing._default,this.options=c,this.start=this.now=this.cur(),this.end=T,this.unit=V||(h.cssNumber[E]?"":"px")},cur:function(){var n=Ut.propHooks[this.prop];return n&&n.get?n.get(this):Ut.propHooks._default.get(this)},run:function(n){var c,E=Ut.propHooks[this.prop];return this.options.duration?this.pos=c=h.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):this.pos=c=n,this.now=(this.end-this.start)*c+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),E&&E.set?E.set(this):Ut.propHooks._default.set(this),this}},Ut.prototype.init.prototype=Ut.prototype,Ut.propHooks={_default:{get:function(n){var c;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(c=h.css(n.elem,n.prop,""))&&c!=="auto"?c:0},set:function(n){h.fx.step[n.prop]?h.fx.step[n.prop](n):n.elem.nodeType!==1||!h.cssHooks[n.prop]&&n.elem.style[ge(n.prop)]==null?n.elem[n.prop]=n.now:h.style(n.elem,n.prop,n.now+n.unit)}}},Ut.propHooks.scrollTop=Ut.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},h.easing={linear:function(n){return n},swing:function(n){return .5-Math.cos(n*Math.PI)/2},_default:"swing"},h.fx=Ut.prototype.init,h.fx.step={};var Gr,Ur,Un=/^(?:toggle|show|hide)$/,ei=/queueHooks$/;function ar(){Ur&&(P.hidden===!1&&_.requestAnimationFrame?_.requestAnimationFrame(ar):_.setTimeout(ar,h.fx.interval),h.fx.tick())}function Lr(){return _.setTimeout(function(){Gr=void 0}),Gr=Date.now()}function Fn(n,c){var E,T=0,W={height:n};for(c=c?1:0;T<4;T+=2-c)W["margin"+(E=gr[T])]=W["padding"+E]=n;return c&&(W.opacity=W.width=n),W}function Ye(n,c,E){for(var T,W=(ye.tweeners[c]||[]).concat(ye.tweeners["*"]),V=0,fe=W.length;V<fe;V++)if(T=W[V].call(E,c,n))return T}function ye(n,c,E){var T,W,V=0,fe=ye.prefilters.length,Pe=h.Deferred().always(function(){delete He.elem}),He=function(){if(W)return!1;for(var Dt=Gr||Lr(),St=Math.max(0,et.startTime+et.duration-Dt),At=1-(St/et.duration||0),pr=0,dr=et.tweens.length;pr<dr;pr++)et.tweens[pr].run(At);return Pe.notifyWith(n,[et,At,St]),At<1&&dr?St:(dr||Pe.notifyWith(n,[et,1,0]),Pe.resolveWith(n,[et]),!1)},et=Pe.promise({elem:n,props:h.extend({},c),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},E),originalProperties:c,originalOptions:E,startTime:Gr||Lr(),duration:E.duration,tweens:[],createTween:function(Dt,St){var At=h.Tween(n,et.opts,Dt,St,et.opts.specialEasing[Dt]||et.opts.easing);return et.tweens.push(At),At},stop:function(Dt){var St=0,At=Dt?et.tweens.length:0;if(W)return this;for(W=!0;St<At;St++)et.tweens[St].run(1);return Dt?(Pe.notifyWith(n,[et,1,0]),Pe.resolveWith(n,[et,Dt])):Pe.rejectWith(n,[et,Dt]),this}}),Et=et.props;for(!function(Dt,St){var At,pr,dr,hr,Ar;for(At in Dt)if(dr=St[pr=Be(At)],hr=Dt[At],Array.isArray(hr)&&(dr=hr[1],hr=Dt[At]=hr[0]),At!==pr&&(Dt[pr]=hr,delete Dt[At]),(Ar=h.cssHooks[pr])&&"expand"in Ar)for(At in hr=Ar.expand(hr),delete Dt[pr],hr)At in Dt||(Dt[At]=hr[At],St[At]=dr);else St[pr]=dr}(Et,et.opts.specialEasing);V<fe;V++)if(T=ye.prefilters[V].call(et,n,Et,et.opts))return m(T.stop)&&(h._queueHooks(et.elem,et.opts.queue).stop=T.stop.bind(T)),T;return h.map(Et,Ye,et),m(et.opts.start)&&et.opts.start.call(n,et),et.progress(et.opts.progress).done(et.opts.done,et.opts.complete).fail(et.opts.fail).always(et.opts.always),h.fx.timer(h.extend(He,{elem:n,anim:et,queue:et.opts.queue})),et}h.Animation=h.extend(ye,{tweeners:{"*":[function(n,c){var E=this.createTween(n,c);return cn(E.elem,n,Pr.exec(c),E),E}]},tweener:function(n,c){m(n)?(c=n,n=["*"]):n=n.match(nt);for(var E,T=0,W=n.length;T<W;T++)E=n[T],ye.tweeners[E]=ye.tweeners[E]||[],ye.tweeners[E].unshift(c)},prefilters:[function(n,c,E){var T,W,V,fe,Pe,He,et,Et,Dt="width"in c||"height"in c,St=this,At={},pr=n.style,dr=n.nodeType&&Er(n),hr=Ze.get(n,"fxshow");for(T in E.queue||((fe=h._queueHooks(n,"fx")).unqueued==null&&(fe.unqueued=0,Pe=fe.empty.fire,fe.empty.fire=function(){fe.unqueued||Pe()}),fe.unqueued++,St.always(function(){St.always(function(){fe.unqueued--,h.queue(n,"fx").length||fe.empty.fire()})})),c)if(W=c[T],Un.test(W)){if(delete c[T],V=V||W==="toggle",W===(dr?"hide":"show")){if(W!=="show"||!hr||hr[T]===void 0)continue;dr=!0}At[T]=hr&&hr[T]||h.style(n,T)}if((He=!h.isEmptyObject(c))||!h.isEmptyObject(At))for(T in Dt&&n.nodeType===1&&(E.overflow=[pr.overflow,pr.overflowX,pr.overflowY],(et=hr&&hr.display)==null&&(et=Ze.get(n,"display")),(Et=h.css(n,"display"))==="none"&&(et?Et=et:(vr([n],!0),et=n.style.display||et,Et=h.css(n,"display"),vr([n]))),(Et==="inline"||Et==="inline-block"&&et!=null)&&h.css(n,"float")==="none"&&(He||(St.done(function(){pr.display=et}),et==null&&(Et=pr.display,et=Et==="none"?"":Et)),pr.display="inline-block")),E.overflow&&(pr.overflow="hidden",St.always(function(){pr.overflow=E.overflow[0],pr.overflowX=E.overflow[1],pr.overflowY=E.overflow[2]})),He=!1,At)He||(hr?"hidden"in hr&&(dr=hr.hidden):hr=Ze.access(n,"fxshow",{display:et}),V&&(hr.hidden=!dr),dr&&vr([n],!0),St.done(function(){for(T in dr||vr([n]),Ze.remove(n,"fxshow"),At)h.style(n,T,At[T])})),He=Ye(dr?hr[T]:0,T,St),T in hr||(hr[T]=He.start,dr&&(He.end=He.start,He.start=0))}],prefilter:function(n,c){c?ye.prefilters.unshift(n):ye.prefilters.push(n)}}),h.speed=function(n,c,E){var T=n&&typeof n=="object"?h.extend({},n):{complete:E||!E&&c||m(n)&&n,duration:n,easing:E&&c||c&&!m(c)&&c};return h.fx.off?T.duration=0:typeof T.duration!="number"&&(T.duration in h.fx.speeds?T.duration=h.fx.speeds[T.duration]:T.duration=h.fx.speeds._default),T.queue!=null&&T.queue!==!0||(T.queue="fx"),T.old=T.complete,T.complete=function(){m(T.old)&&T.old.call(this),T.queue&&h.dequeue(this,T.queue)},T},h.fn.extend({fadeTo:function(n,c,E,T){return this.filter(Er).css("opacity",0).show().end().animate({opacity:c},n,E,T)},animate:function(n,c,E,T){var W=h.isEmptyObject(n),V=h.speed(c,E,T),fe=function(){var Pe=ye(this,h.extend({},n),V);(W||Ze.get(this,"finish"))&&Pe.stop(!0)};return fe.finish=fe,W||V.queue===!1?this.each(fe):this.queue(V.queue,fe)},stop:function(n,c,E){var T=function(W){var V=W.stop;delete W.stop,V(E)};return typeof n!="string"&&(E=c,c=n,n=void 0),c&&this.queue(n||"fx",[]),this.each(function(){var W=!0,V=n!=null&&n+"queueHooks",fe=h.timers,Pe=Ze.get(this);if(V)Pe[V]&&Pe[V].stop&&T(Pe[V]);else for(V in Pe)Pe[V]&&Pe[V].stop&&ei.test(V)&&T(Pe[V]);for(V=fe.length;V--;)fe[V].elem!==this||n!=null&&fe[V].queue!==n||(fe[V].anim.stop(E),W=!1,fe.splice(V,1));!W&&E||h.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var c,E=Ze.get(this),T=E[n+"queue"],W=E[n+"queueHooks"],V=h.timers,fe=T?T.length:0;for(E.finish=!0,h.queue(this,n,[]),W&&W.stop&&W.stop.call(this,!0),c=V.length;c--;)V[c].elem===this&&V[c].queue===n&&(V[c].anim.stop(!0),V.splice(c,1));for(c=0;c<fe;c++)T[c]&&T[c].finish&&T[c].finish.call(this);delete E.finish})}}),h.each(["toggle","show","hide"],function(n,c){var E=h.fn[c];h.fn[c]=function(T,W,V){return T==null||typeof T=="boolean"?E.apply(this,arguments):this.animate(Fn(c,!0),T,W,V)}}),h.each({slideDown:Fn("show"),slideUp:Fn("hide"),slideToggle:Fn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,c){h.fn[n]=function(E,T,W){return this.animate(c,E,T,W)}}),h.timers=[],h.fx.tick=function(){var n,c=0,E=h.timers;for(Gr=Date.now();c<E.length;c++)(n=E[c])()||E[c]!==n||E.splice(c--,1);E.length||h.fx.stop(),Gr=void 0},h.fx.timer=function(n){h.timers.push(n),h.fx.start()},h.fx.interval=13,h.fx.start=function(){Ur||(Ur=!0,ar())},h.fx.stop=function(){Ur=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(n,c){return n=h.fx&&h.fx.speeds[n]||n,c=c||"fx",this.queue(c,function(E,T){var W=_.setTimeout(E,n);T.stop=function(){_.clearTimeout(W)}})},function(){var n=P.createElement("input"),c=P.createElement("select").appendChild(P.createElement("option"));n.type="checkbox",ie.checkOn=n.value!=="",ie.optSelected=c.selected,(n=P.createElement("input")).value="t",n.type="radio",ie.radioValue=n.value==="t"}();var Le,J=h.expr.attrHandle;h.fn.extend({attr:function(n,c){return X(this,h.attr,n,c,arguments.length>1)},removeAttr:function(n){return this.each(function(){h.removeAttr(this,n)})}}),h.extend({attr:function(n,c,E){var T,W,V=n.nodeType;if(V!==3&&V!==8&&V!==2)return n.getAttribute===void 0?h.prop(n,c,E):(V===1&&h.isXMLDoc(n)||(W=h.attrHooks[c.toLowerCase()]||(h.expr.match.bool.test(c)?Le:void 0)),E!==void 0?E===null?void h.removeAttr(n,c):W&&"set"in W&&(T=W.set(n,E,c))!==void 0?T:(n.setAttribute(c,E+""),E):W&&"get"in W&&(T=W.get(n,c))!==null?T:(T=h.find.attr(n,c))==null?void 0:T)},attrHooks:{type:{set:function(n,c){if(!ie.radioValue&&c==="radio"&&se(n,"input")){var E=n.value;return n.setAttribute("type",c),E&&(n.value=E),c}}}},removeAttr:function(n,c){var E,T=0,W=c&&c.match(nt);if(W&&n.nodeType===1)for(;E=W[T++];)n.removeAttribute(E)}}),Le={set:function(n,c,E){return c===!1?h.removeAttr(n,E):n.setAttribute(E,E),E}},h.each(h.expr.match.bool.source.match(/\w+/g),function(n,c){var E=J[c]||h.find.attr;J[c]=function(T,W,V){var fe,Pe,He=W.toLowerCase();return V||(Pe=J[He],J[He]=fe,fe=E(T,W,V)!=null?He:null,J[He]=Pe),fe}});var H=/^(?:input|select|textarea|button)$/i,Se=/^(?:a|area)$/i;function Qe(n){return(n.match(nt)||[]).join(" ")}function ct(n){return n.getAttribute&&n.getAttribute("class")||""}function Lt(n){return Array.isArray(n)?n:typeof n=="string"&&n.match(nt)||[]}h.fn.extend({prop:function(n,c){return X(this,h.prop,n,c,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[h.propFix[n]||n]})}}),h.extend({prop:function(n,c,E){var T,W,V=n.nodeType;if(V!==3&&V!==8&&V!==2)return V===1&&h.isXMLDoc(n)||(c=h.propFix[c]||c,W=h.propHooks[c]),E!==void 0?W&&"set"in W&&(T=W.set(n,E,c))!==void 0?T:n[c]=E:W&&"get"in W&&(T=W.get(n,c))!==null?T:n[c]},propHooks:{tabIndex:{get:function(n){var c=h.find.attr(n,"tabindex");return c?parseInt(c,10):H.test(n.nodeName)||Se.test(n.nodeName)&&n.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ie.optSelected||(h.propHooks.selected={get:function(n){var c=n.parentNode;return c&&c.parentNode&&c.parentNode.selectedIndex,null},set:function(n){var c=n.parentNode;c&&(c.selectedIndex,c.parentNode&&c.parentNode.selectedIndex)}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this}),h.fn.extend({addClass:function(n){var c,E,T,W,V,fe,Pe,He=0;if(m(n))return this.each(function(et){h(this).addClass(n.call(this,et,ct(this)))});if((c=Lt(n)).length){for(;E=this[He++];)if(W=ct(E),T=E.nodeType===1&&" "+Qe(W)+" "){for(fe=0;V=c[fe++];)T.indexOf(" "+V+" ")<0&&(T+=V+" ");W!==(Pe=Qe(T))&&E.setAttribute("class",Pe)}}return this},removeClass:function(n){var c,E,T,W,V,fe,Pe,He=0;if(m(n))return this.each(function(et){h(this).removeClass(n.call(this,et,ct(this)))});if(!arguments.length)return this.attr("class","");if((c=Lt(n)).length){for(;E=this[He++];)if(W=ct(E),T=E.nodeType===1&&" "+Qe(W)+" "){for(fe=0;V=c[fe++];)for(;T.indexOf(" "+V+" ")>-1;)T=T.replace(" "+V+" "," ");W!==(Pe=Qe(T))&&E.setAttribute("class",Pe)}}return this},toggleClass:function(n,c){var E=typeof n,T=E==="string"||Array.isArray(n);return typeof c=="boolean"&&T?c?this.addClass(n):this.removeClass(n):m(n)?this.each(function(W){h(this).toggleClass(n.call(this,W,ct(this),c),c)}):this.each(function(){var W,V,fe,Pe;if(T)for(V=0,fe=h(this),Pe=Lt(n);W=Pe[V++];)fe.hasClass(W)?fe.removeClass(W):fe.addClass(W);else n!==void 0&&E!=="boolean"||((W=ct(this))&&Ze.set(this,"__className__",W),this.setAttribute&&this.setAttribute("class",W||n===!1?"":Ze.get(this,"__className__")||""))})},hasClass:function(n){var c,E,T=0;for(c=" "+n+" ";E=this[T++];)if(E.nodeType===1&&(" "+Qe(ct(E))+" ").indexOf(c)>-1)return!0;return!1}});var w=/\r/g;h.fn.extend({val:function(n){var c,E,T,W=this[0];return arguments.length?(T=m(n),this.each(function(V){var fe;this.nodeType===1&&((fe=T?n.call(this,V,h(this).val()):n)==null?fe="":typeof fe=="number"?fe+="":Array.isArray(fe)&&(fe=h.map(fe,function(Pe){return Pe==null?"":Pe+""})),(c=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in c&&c.set(this,fe,"value")!==void 0||(this.value=fe))})):W?(c=h.valHooks[W.type]||h.valHooks[W.nodeName.toLowerCase()])&&"get"in c&&(E=c.get(W,"value"))!==void 0?E:typeof(E=W.value)=="string"?E.replace(w,""):E??"":void 0}}),h.extend({valHooks:{option:{get:function(n){var c=h.find.attr(n,"value");return c??Qe(h.text(n))}},select:{get:function(n){var c,E,T,W=n.options,V=n.selectedIndex,fe=n.type==="select-one",Pe=fe?null:[],He=fe?V+1:W.length;for(T=V<0?He:fe?V:0;T<He;T++)if(((E=W[T]).selected||T===V)&&!E.disabled&&(!E.parentNode.disabled||!se(E.parentNode,"optgroup"))){if(c=h(E).val(),fe)return c;Pe.push(c)}return Pe},set:function(n,c){for(var E,T,W=n.options,V=h.makeArray(c),fe=W.length;fe--;)((T=W[fe]).selected=h.inArray(h.valHooks.option.get(T),V)>-1)&&(E=!0);return E||(n.selectedIndex=-1),V}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(n,c){if(Array.isArray(c))return n.checked=h.inArray(h(n).val(),c)>-1}},ie.checkOn||(h.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})}),ie.focusin="onfocusin"in _;var k=/^(?:focusinfocus|focusoutblur)$/,ae=function(n){n.stopPropagation()};h.extend(h.event,{trigger:function(n,c,E,T){var W,V,fe,Pe,He,et,Et,Dt,St=[E||P],At=ce.call(n,"type")?n.type:n,pr=ce.call(n,"namespace")?n.namespace.split("."):[];if(V=Dt=fe=E=E||P,E.nodeType!==3&&E.nodeType!==8&&!k.test(At+h.event.triggered)&&(At.indexOf(".")>-1&&(pr=At.split("."),At=pr.shift(),pr.sort()),He=At.indexOf(":")<0&&"on"+At,(n=n[h.expando]?n:new h.Event(At,typeof n=="object"&&n)).isTrigger=T?2:3,n.namespace=pr.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+pr.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=E),c=c==null?[n]:h.makeArray(c,[n]),Et=h.event.special[At]||{},T||!Et.trigger||Et.trigger.apply(E,c)!==!1)){if(!T&&!Et.noBubble&&!S(E)){for(Pe=Et.delegateType||At,k.test(Pe+At)||(V=V.parentNode);V;V=V.parentNode)St.push(V),fe=V;fe===(E.ownerDocument||P)&&St.push(fe.defaultView||fe.parentWindow||_)}for(W=0;(V=St[W++])&&!n.isPropagationStopped();)Dt=V,n.type=W>1?Pe:Et.bindType||At,(et=(Ze.get(V,"events")||Object.create(null))[n.type]&&Ze.get(V,"handle"))&&et.apply(V,c),(et=He&&V[He])&&et.apply&&ze(V)&&(n.result=et.apply(V,c),n.result===!1&&n.preventDefault());return n.type=At,T||n.isDefaultPrevented()||Et._default&&Et._default.apply(St.pop(),c)!==!1||!ze(E)||He&&m(E[At])&&!S(E)&&((fe=E[He])&&(E[He]=null),h.event.triggered=At,n.isPropagationStopped()&&Dt.addEventListener(At,ae),E[At](),n.isPropagationStopped()&&Dt.removeEventListener(At,ae),h.event.triggered=void 0,fe&&(E[He]=fe)),n.result}},simulate:function(n,c,E){var T=h.extend(new h.Event,E,{type:n,isSimulated:!0});h.event.trigger(T,null,c)}}),h.fn.extend({trigger:function(n,c){return this.each(function(){h.event.trigger(n,c,this)})},triggerHandler:function(n,c){var E=this[0];if(E)return h.event.trigger(n,c,E,!0)}}),ie.focusin||h.each({focus:"focusin",blur:"focusout"},function(n,c){var E=function(T){h.event.simulate(c,T.target,h.event.fix(T))};h.event.special[c]={setup:function(){var T=this.ownerDocument||this.document||this,W=Ze.access(T,c);W||T.addEventListener(n,E,!0),Ze.access(T,c,(W||0)+1)},teardown:function(){var T=this.ownerDocument||this.document||this,W=Ze.access(T,c)-1;W?Ze.access(T,c,W):(T.removeEventListener(n,E,!0),Ze.remove(T,c))}}});var Oe=_.location,qe={guid:Date.now()},st=/\?/;h.parseXML=function(n){var c;if(!n||typeof n!="string")return null;try{c=new _.DOMParser().parseFromString(n,"text/xml")}catch{c=void 0}return c&&!c.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+n),c};var Ct=/\[\]$/,kt=/\r?\n/g,Vt=/^(?:submit|button|image|reset|file)$/i,rr=/^(?:input|select|textarea|keygen)/i;function ir(n,c,E,T){var W;if(Array.isArray(c))h.each(c,function(V,fe){E||Ct.test(n)?T(n,fe):ir(n+"["+(typeof fe=="object"&&fe!=null?V:"")+"]",fe,E,T)});else if(E||Z(c)!=="object")T(n,c);else for(W in c)ir(n+"["+W+"]",c[W],E,T)}h.param=function(n,c){var E,T=[],W=function(V,fe){var Pe=m(fe)?fe():fe;T[T.length]=encodeURIComponent(V)+"="+encodeURIComponent(Pe??"")};if(n==null)return"";if(Array.isArray(n)||n.jquery&&!h.isPlainObject(n))h.each(n,function(){W(this.name,this.value)});else for(E in n)ir(E,n[E],c,W);return T.join("&")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=h.prop(this,"elements");return n?h.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!h(this).is(":disabled")&&rr.test(this.nodeName)&&!Vt.test(n)&&(this.checked||!Dr.test(n))}).map(function(n,c){var E=h(this).val();return E==null?null:Array.isArray(E)?h.map(E,function(T){return{name:c.name,value:T.replace(kt,`\r
`)}}):{name:c.name,value:E.replace(kt,`\r
`)}}).get()}});var sr=/%20/g,Mr=/#.*$/,Ir=/([?&])_=[^&]*/,wn=/^(.*?):[ \t]*([^\r\n]*)$/gm,un=/^(?:GET|HEAD)$/,Zr=/^\/\//,Hn={},An={},Re="*/".concat("*"),Ae=P.createElement("a");function r(n){return function(c,E){typeof c!="string"&&(E=c,c="*");var T,W=0,V=c.toLowerCase().match(nt)||[];if(m(E))for(;T=V[W++];)T[0]==="+"?(T=T.slice(1)||"*",(n[T]=n[T]||[]).unshift(E)):(n[T]=n[T]||[]).push(E)}}function a(n,c,E,T){var W={},V=n===An;function fe(Pe){var He;return W[Pe]=!0,h.each(n[Pe]||[],function(et,Et){var Dt=Et(c,E,T);return typeof Dt!="string"||V||W[Dt]?V?!(He=Dt):void 0:(c.dataTypes.unshift(Dt),fe(Dt),!1)}),He}return fe(c.dataTypes[0])||!W["*"]&&fe("*")}function d(n,c){var E,T,W=h.ajaxSettings.flatOptions||{};for(E in c)c[E]!==void 0&&((W[E]?n:T||(T={}))[E]=c[E]);return T&&h.extend(!0,n,T),n}Ae.href=Oe.href,h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Oe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,c){return c?d(d(n,h.ajaxSettings),c):d(h.ajaxSettings,n)},ajaxPrefilter:r(Hn),ajaxTransport:r(An),ajax:function(n,c){typeof n=="object"&&(c=n,n=void 0),c=c||{};var E,T,W,V,fe,Pe,He,et,Et,Dt,St=h.ajaxSetup({},c),At=St.context||St,pr=St.context&&(At.nodeType||At.jquery)?h(At):h.event,dr=h.Deferred(),hr=h.Callbacks("once memory"),Ar=St.statusCode||{},rn={},zn={},an="canceled",Tr={readyState:0,getResponseHeader:function(nn){var fn;if(He){if(!V)for(V={};fn=wn.exec(W);)V[fn[1].toLowerCase()+" "]=(V[fn[1].toLowerCase()+" "]||[]).concat(fn[2]);fn=V[nn.toLowerCase()+" "]}return fn==null?null:fn.join(", ")},getAllResponseHeaders:function(){return He?W:null},setRequestHeader:function(nn,fn){return He==null&&(nn=zn[nn.toLowerCase()]=zn[nn.toLowerCase()]||nn,rn[nn]=fn),this},overrideMimeType:function(nn){return He==null&&(St.mimeType=nn),this},statusCode:function(nn){var fn;if(nn)if(He)Tr.always(nn[Tr.status]);else for(fn in nn)Ar[fn]=[Ar[fn],nn[fn]];return this},abort:function(nn){var fn=nn||an;return E&&E.abort(fn),ni(0,fn),this}};if(dr.promise(Tr),St.url=((n||St.url||Oe.href)+"").replace(Zr,Oe.protocol+"//"),St.type=c.method||c.type||St.method||St.type,St.dataTypes=(St.dataType||"*").toLowerCase().match(nt)||[""],St.crossDomain==null){Pe=P.createElement("a");try{Pe.href=St.url,Pe.href=Pe.href,St.crossDomain=Ae.protocol+"//"+Ae.host!=Pe.protocol+"//"+Pe.host}catch{St.crossDomain=!0}}if(St.data&&St.processData&&typeof St.data!="string"&&(St.data=h.param(St.data,St.traditional)),a(Hn,St,c,Tr),He)return Tr;for(Et in(et=h.event&&St.global)&&h.active++==0&&h.event.trigger("ajaxStart"),St.type=St.type.toUpperCase(),St.hasContent=!un.test(St.type),T=St.url.replace(Mr,""),St.hasContent?St.data&&St.processData&&(St.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(St.data=St.data.replace(sr,"+")):(Dt=St.url.slice(T.length),St.data&&(St.processData||typeof St.data=="string")&&(T+=(st.test(T)?"&":"?")+St.data,delete St.data),St.cache===!1&&(T=T.replace(Ir,"$1"),Dt=(st.test(T)?"&":"?")+"_="+qe.guid+++Dt),St.url=T+Dt),St.ifModified&&(h.lastModified[T]&&Tr.setRequestHeader("If-Modified-Since",h.lastModified[T]),h.etag[T]&&Tr.setRequestHeader("If-None-Match",h.etag[T])),(St.data&&St.hasContent&&St.contentType!==!1||c.contentType)&&Tr.setRequestHeader("Content-Type",St.contentType),Tr.setRequestHeader("Accept",St.dataTypes[0]&&St.accepts[St.dataTypes[0]]?St.accepts[St.dataTypes[0]]+(St.dataTypes[0]!=="*"?", "+Re+"; q=0.01":""):St.accepts["*"]),St.headers)Tr.setRequestHeader(Et,St.headers[Et]);if(St.beforeSend&&(St.beforeSend.call(At,Tr,St)===!1||He))return Tr.abort();if(an="abort",hr.add(St.complete),Tr.done(St.success),Tr.fail(St.error),E=a(An,St,c,Tr)){if(Tr.readyState=1,et&&pr.trigger("ajaxSend",[Tr,St]),He)return Tr;St.async&&St.timeout>0&&(fe=_.setTimeout(function(){Tr.abort("timeout")},St.timeout));try{He=!1,E.send(rn,ni)}catch(nn){if(He)throw nn;ni(-1,nn)}}else ni(-1,"No Transport");function ni(nn,fn,pi,Li){var si,li,Ii,ii,Nn,kn=fn;He||(He=!0,fe&&_.clearTimeout(fe),E=void 0,W=Li||"",Tr.readyState=nn>0?4:0,si=nn>=200&&nn<300||nn===304,pi&&(ii=function(Qn,ci,ti){for(var yi,en,_n,hi,xi=Qn.contents,ri=Qn.dataTypes;ri[0]==="*";)ri.shift(),yi===void 0&&(yi=Qn.mimeType||ci.getResponseHeader("Content-Type"));if(yi){for(en in xi)if(xi[en]&&xi[en].test(yi)){ri.unshift(en);break}}if(ri[0]in ti)_n=ri[0];else{for(en in ti){if(!ri[0]||Qn.converters[en+" "+ri[0]]){_n=en;break}hi||(hi=en)}_n=_n||hi}if(_n)return _n!==ri[0]&&ri.unshift(_n),ti[_n]}(St,Tr,pi)),!si&&h.inArray("script",St.dataTypes)>-1&&(St.converters["text script"]=function(){}),ii=function(Qn,ci,ti,yi){var en,_n,hi,xi,ri,gi={},Ji=Qn.dataTypes.slice();if(Ji[1])for(hi in Qn.converters)gi[hi.toLowerCase()]=Qn.converters[hi];for(_n=Ji.shift();_n;)if(Qn.responseFields[_n]&&(ti[Qn.responseFields[_n]]=ci),!ri&&yi&&Qn.dataFilter&&(ci=Qn.dataFilter(ci,Qn.dataType)),ri=_n,_n=Ji.shift()){if(_n==="*")_n=ri;else if(ri!=="*"&&ri!==_n){if(!(hi=gi[ri+" "+_n]||gi["* "+_n])){for(en in gi)if((xi=en.split(" "))[1]===_n&&(hi=gi[ri+" "+xi[0]]||gi["* "+xi[0]])){hi===!0?hi=gi[en]:gi[en]!==!0&&(_n=xi[0],Ji.unshift(xi[1]));break}}if(hi!==!0)if(hi&&Qn.throws)ci=hi(ci);else try{ci=hi(ci)}catch(ho){return{state:"parsererror",error:hi?ho:"No conversion from "+ri+" to "+_n}}}}return{state:"success",data:ci}}(St,ii,Tr,si),si?(St.ifModified&&((Nn=Tr.getResponseHeader("Last-Modified"))&&(h.lastModified[T]=Nn),(Nn=Tr.getResponseHeader("etag"))&&(h.etag[T]=Nn)),nn===204||St.type==="HEAD"?kn="nocontent":nn===304?kn="notmodified":(kn=ii.state,li=ii.data,si=!(Ii=ii.error))):(Ii=kn,!nn&&kn||(kn="error",nn<0&&(nn=0))),Tr.status=nn,Tr.statusText=(fn||kn)+"",si?dr.resolveWith(At,[li,kn,Tr]):dr.rejectWith(At,[Tr,kn,Ii]),Tr.statusCode(Ar),Ar=void 0,et&&pr.trigger(si?"ajaxSuccess":"ajaxError",[Tr,St,si?li:Ii]),hr.fireWith(At,[Tr,kn]),et&&(pr.trigger("ajaxComplete",[Tr,St]),--h.active||h.event.trigger("ajaxStop")))}return Tr},getJSON:function(n,c,E){return h.get(n,c,E,"json")},getScript:function(n,c){return h.get(n,void 0,c,"script")}}),h.each(["get","post"],function(n,c){h[c]=function(E,T,W,V){return m(T)&&(V=V||W,W=T,T=void 0),h.ajax(h.extend({url:E,type:c,dataType:V,data:T,success:W},h.isPlainObject(E)&&E))}}),h.ajaxPrefilter(function(n){var c;for(c in n.headers)c.toLowerCase()==="content-type"&&(n.contentType=n.headers[c]||"")}),h._evalUrl=function(n,c,E){return h.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(T){h.globalEval(T,c,E)}})},h.fn.extend({wrapAll:function(n){var c;return this[0]&&(m(n)&&(n=n.call(this[0])),c=h(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){for(var E=this;E.firstElementChild;)E=E.firstElementChild;return E}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(c){h(this).wrapInner(n.call(this,c))}):this.each(function(){var c=h(this),E=c.contents();E.length?E.wrapAll(n):c.append(n)})},wrap:function(n){var c=m(n);return this.each(function(E){h(this).wrapAll(c?n.call(this,E):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){h(this).replaceWith(this.childNodes)}),this}}),h.expr.pseudos.hidden=function(n){return!h.expr.pseudos.visible(n)},h.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},h.ajaxSettings.xhr=function(){try{return new _.XMLHttpRequest}catch{}};var g={0:200,1223:204},N=h.ajaxSettings.xhr();ie.cors=!!N&&"withCredentials"in N,ie.ajax=N=!!N,h.ajaxTransport(function(n){var c,E;if(ie.cors||N&&!n.crossDomain)return{send:function(T,W){var V,fe=n.xhr();if(fe.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(V in n.xhrFields)fe[V]=n.xhrFields[V];for(V in n.mimeType&&fe.overrideMimeType&&fe.overrideMimeType(n.mimeType),n.crossDomain||T["X-Requested-With"]||(T["X-Requested-With"]="XMLHttpRequest"),T)fe.setRequestHeader(V,T[V]);c=function(Pe){return function(){c&&(c=E=fe.onload=fe.onerror=fe.onabort=fe.ontimeout=fe.onreadystatechange=null,Pe==="abort"?fe.abort():Pe==="error"?typeof fe.status!="number"?W(0,"error"):W(fe.status,fe.statusText):W(g[fe.status]||fe.status,fe.statusText,(fe.responseType||"text")!=="text"||typeof fe.responseText!="string"?{binary:fe.response}:{text:fe.responseText},fe.getAllResponseHeaders()))}},fe.onload=c(),E=fe.onerror=fe.ontimeout=c("error"),fe.onabort!==void 0?fe.onabort=E:fe.onreadystatechange=function(){fe.readyState===4&&_.setTimeout(function(){c&&E()})},c=c("abort");try{fe.send(n.hasContent&&n.data||null)}catch(Pe){if(c)throw Pe}},abort:function(){c&&c()}}}),h.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return h.globalEval(n),n}}}),h.ajaxPrefilter("script",function(n){n.cache===void 0&&(n.cache=!1),n.crossDomain&&(n.type="GET")}),h.ajaxTransport("script",function(n){var c,E;if(n.crossDomain||n.scriptAttrs)return{send:function(T,W){c=h("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",E=function(V){c.remove(),E=null,V&&W(V.type==="error"?404:200,V.type)}),P.head.appendChild(c[0])},abort:function(){E&&E()}}});var L,I=[],$=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=I.pop()||h.expando+"_"+qe.guid++;return this[n]=!0,n}}),h.ajaxPrefilter("json jsonp",function(n,c,E){var T,W,V,fe=n.jsonp!==!1&&($.test(n.url)?"url":typeof n.data=="string"&&(n.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&$.test(n.data)&&"data");if(fe||n.dataTypes[0]==="jsonp")return T=n.jsonpCallback=m(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,fe?n[fe]=n[fe].replace($,"$1"+T):n.jsonp!==!1&&(n.url+=(st.test(n.url)?"&":"?")+n.jsonp+"="+T),n.converters["script json"]=function(){return V||h.error(T+" was not called"),V[0]},n.dataTypes[0]="json",W=_[T],_[T]=function(){V=arguments},E.always(function(){W===void 0?h(_).removeProp(T):_[T]=W,n[T]&&(n.jsonpCallback=c.jsonpCallback,I.push(T)),V&&m(W)&&W(V[0]),V=W=void 0}),"script"}),ie.createHTMLDocument=((L=P.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",L.childNodes.length===2),h.parseHTML=function(n,c,E){return typeof n!="string"?[]:(typeof c=="boolean"&&(E=c,c=!1),c||(ie.createHTMLDocument?((T=(c=P.implementation.createHTMLDocument("")).createElement("base")).href=P.location.href,c.head.appendChild(T)):c=P),V=!E&&[],(W=re.exec(n))?[c.createElement(W[1])]:(W=Wn([n],c,V),V&&V.length&&h(V).remove(),h.merge([],W.childNodes)));var T,W,V},h.fn.load=function(n,c,E){var T,W,V,fe=this,Pe=n.indexOf(" ");return Pe>-1&&(T=Qe(n.slice(Pe)),n=n.slice(0,Pe)),m(c)?(E=c,c=void 0):c&&typeof c=="object"&&(W="POST"),fe.length>0&&h.ajax({url:n,type:W||"GET",dataType:"html",data:c}).done(function(He){V=arguments,fe.html(T?h("<div>").append(h.parseHTML(He)).find(T):He)}).always(E&&function(He,et){fe.each(function(){E.apply(this,V||[He.responseText,et,He])})}),this},h.expr.pseudos.animated=function(n){return h.grep(h.timers,function(c){return n===c.elem}).length},h.offset={setOffset:function(n,c,E){var T,W,V,fe,Pe,He,et=h.css(n,"position"),Et=h(n),Dt={};et==="static"&&(n.style.position="relative"),Pe=Et.offset(),V=h.css(n,"top"),He=h.css(n,"left"),(et==="absolute"||et==="fixed")&&(V+He).indexOf("auto")>-1?(fe=(T=Et.position()).top,W=T.left):(fe=parseFloat(V)||0,W=parseFloat(He)||0),m(c)&&(c=c.call(n,E,h.extend({},Pe))),c.top!=null&&(Dt.top=c.top-Pe.top+fe),c.left!=null&&(Dt.left=c.left-Pe.left+W),"using"in c?c.using.call(n,Dt):(typeof Dt.top=="number"&&(Dt.top+="px"),typeof Dt.left=="number"&&(Dt.left+="px"),Et.css(Dt))}},h.fn.extend({offset:function(n){if(arguments.length)return n===void 0?this:this.each(function(W){h.offset.setOffset(this,n,W)});var c,E,T=this[0];return T?T.getClientRects().length?(c=T.getBoundingClientRect(),E=T.ownerDocument.defaultView,{top:c.top+E.pageYOffset,left:c.left+E.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var n,c,E,T=this[0],W={top:0,left:0};if(h.css(T,"position")==="fixed")c=T.getBoundingClientRect();else{for(c=this.offset(),E=T.ownerDocument,n=T.offsetParent||E.documentElement;n&&(n===E.body||n===E.documentElement)&&h.css(n,"position")==="static";)n=n.parentNode;n&&n!==T&&n.nodeType===1&&((W=h(n).offset()).top+=h.css(n,"borderTopWidth",!0),W.left+=h.css(n,"borderLeftWidth",!0))}return{top:c.top-W.top-h.css(T,"marginTop",!0),left:c.left-W.left-h.css(T,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&h.css(n,"position")==="static";)n=n.offsetParent;return n||Cr})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,c){var E=c==="pageYOffset";h.fn[n]=function(T){return X(this,function(W,V,fe){var Pe;if(S(W)?Pe=W:W.nodeType===9&&(Pe=W.defaultView),fe===void 0)return Pe?Pe[c]:W[V];Pe?Pe.scrollTo(E?Pe.pageXOffset:fe,E?fe:Pe.pageYOffset):W[V]=fe},n,T,arguments.length)}}),h.each(["top","left"],function(n,c){h.cssHooks[c]=tn(ie.pixelPosition,function(E,T){if(T)return T=Rr(E,c),cr.test(T)?h(E).position()[c]+"px":T})}),h.each({Height:"height",Width:"width"},function(n,c){h.each({padding:"inner"+n,content:c,"":"outer"+n},function(E,T){h.fn[T]=function(W,V){var fe=arguments.length&&(E||typeof W!="boolean"),Pe=E||(W===!0||V===!0?"margin":"border");return X(this,function(He,et,Et){var Dt;return S(He)?T.indexOf("outer")===0?He["inner"+n]:He.document.documentElement["client"+n]:He.nodeType===9?(Dt=He.documentElement,Math.max(He.body["scroll"+n],Dt["scroll"+n],He.body["offset"+n],Dt["offset"+n],Dt["client"+n])):Et===void 0?h.css(He,et,Pe):h.style(He,et,Et,Pe)},c,fe?W:void 0,fe)}})}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,c){h.fn[c]=function(E){return this.on(c,E)}}),h.fn.extend({bind:function(n,c,E){return this.on(n,null,c,E)},unbind:function(n,c){return this.off(n,null,c)},delegate:function(n,c,E,T){return this.on(c,n,E,T)},undelegate:function(n,c,E){return arguments.length===1?this.off(n,"**"):this.off(c,n||"**",E)},hover:function(n,c){return this.mouseenter(n).mouseleave(c||n)}}),h.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,c){h.fn[c]=function(E,T){return arguments.length>0?this.on(c,null,E,T):this.trigger(c)}});var pe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;h.proxy=function(n,c){var E,T,W;if(typeof c=="string"&&(E=n[c],c=n,n=E),m(n))return T=G.call(arguments,2),(W=function(){return n.apply(c||this,T.concat(G.call(arguments)))}).guid=n.guid=n.guid||h.guid++,W},h.holdReady=function(n){n?h.readyWait++:h.ready(!0)},h.isArray=Array.isArray,h.parseJSON=JSON.parse,h.nodeName=se,h.isFunction=m,h.isWindow=S,h.camelCase=Be,h.type=Z,h.now=Date.now,h.isNumeric=function(n){var c=h.type(n);return(c==="number"||c==="string")&&!isNaN(n-parseFloat(n))},h.trim=function(n){return n==null?"":(n+"").replace(pe,"")},(A=(function(){return h}).apply(de,[]))===void 0||(ke.exports=A);var We=_.jQuery,_e=_.$;return h.noConflict=function(n){return _.$===h&&(_.$=_e),n&&_.jQuery===h&&(_.jQuery=We),h},U===void 0&&(_.jQuery=_.$=h),h})},function(ke,de,b){var A=b(2),_=b(17),U=/^\s+|\s+$/g,R=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,G=/^0o[0-7]+$/i,C=parseInt,M=function(x){if(typeof x=="number")return x;if(Object(_.a)(x))return NaN;if(Object(A.a)(x)){var Y=typeof x.valueOf=="function"?x.valueOf():x;x=Object(A.a)(Y)?Y+"":Y}if(typeof x!="string")return x===0?x:+x;x=x.replace(U,"");var ce=p.test(x);return ce||G.test(x)?C(x.slice(2),ce?2:8):R.test(x)?NaN:+x},ue=function(x){return x?(x=M(x))===1/0||x===-1/0?17976931348623157e292*(x<0?-1:1):x==x?x:0:x===0?x:0};de.a=function(x){var Y=ue(x),ce=Y%1;return Y==Y?ce?Y-ce:Y:0}},function(ke,de,b){var A=b(56),_=b(8),U=b(15),R=b(1),p=_.a?_.a.isConcatSpreadable:void 0,G=function(C){return Object(R.a)(C)||Object(U.a)(C)||!!(p&&C&&C[p])};de.a=function C(M,ue,x,Y,ce){var K=-1,oe=M.length;for(x||(x=G),ce||(ce=[]);++K<oe;){var ie=M[K];ue>0&&x(ie)?ue>1?C(ie,ue-1,x,Y,ce):Object(A.a)(ce,ie):Y||(ce[ce.length]=ie)}return ce}},function(ke,de,b){ke.exports=function(){var A=Object.hasOwnProperty,_=Object.setPrototypeOf,U=Object.isFrozen,R=Object.keys,p=Object.freeze,G=Object.seal,C=typeof Reflect<"u"&&Reflect,M=C.apply,ue=C.construct;M||(M=function(ze,lt,Ze){return ze.apply(lt,Ze)}),p||(p=function(ze){return ze}),G||(G=function(ze){return ze}),ue||(ue=function(ze,lt){return new(Function.prototype.bind.apply(ze,[null].concat(function(Ze){if(Array.isArray(Ze)){for(var Pt=0,jt=Array(Ze.length);Pt<Ze.length;Pt++)jt[Pt]=Ze[Pt];return jt}return Array.from(Ze)}(lt))))});var x=Ge(Array.prototype.forEach),Y=Ge(Array.prototype.indexOf),ce=Ge(Array.prototype.join),K=Ge(Array.prototype.pop),oe=Ge(Array.prototype.push),ie=Ge(Array.prototype.slice),m=Ge(String.prototype.toLowerCase),S=Ge(String.prototype.match),P=Ge(String.prototype.replace),q=Ge(String.prototype.indexOf),te=Ge(String.prototype.trim),Z=Ge(RegExp.prototype.test),h=me(RegExp),ne=me(TypeError);function Ge(ze){return function(lt){for(var Ze=arguments.length,Pt=Array(Ze>1?Ze-1:0),jt=1;jt<Ze;jt++)Pt[jt-1]=arguments[jt];return M(ze,lt,Pt)}}function me(ze){return function(){for(var lt=arguments.length,Ze=Array(lt),Pt=0;Pt<lt;Pt++)Ze[Pt]=arguments[Pt];return ue(ze,Ze)}}function xe(ze,lt){_&&_(ze,null);for(var Ze=lt.length;Ze--;){var Pt=lt[Ze];if(typeof Pt=="string"){var jt=m(Pt);jt!==Pt&&(U(lt)||(lt[Ze]=jt),Pt=jt)}ze[Pt]=!0}return ze}function D(ze){var lt={},Ze=void 0;for(Ze in ze)M(A,ze,[Ze])&&(lt[Ze]=ze[Ze]);return lt}var se=p(["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","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","section","select","shadow","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"]),re=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),be=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$e=p(["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"]),dt=p(["#text"]),Tt=p(["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","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),ft=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","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","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","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","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","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","tabindex","targetx","targety","transform","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"]),Ke=p(["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"]),nt=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mt=G(/\{\{[\s\S]*|[\s\S]*\}\}/gm),yt=G(/<%[\s\S]*|[\s\S]*%>/gm),Nt=G(/^data-[\-\w.\u00B7-\uFFFF]/),at=G(/^aria-[\-\w]+$/),Ft=G(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=G(/^(?:\w+script|data):/i),X=G(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze};function De(ze){if(Array.isArray(ze)){for(var lt=0,Ze=Array(ze.length);lt<ze.length;lt++)Ze[lt]=ze[lt];return Ze}return Array.from(ze)}var Ve=function(){return typeof window>"u"?null:window},Be=function(ze,lt){if((ze===void 0?"undefined":he(ze))!=="object"||typeof ze.createPolicy!="function")return null;var Ze=null;lt.currentScript&&lt.currentScript.hasAttribute("data-tt-policy-suffix")&&(Ze=lt.currentScript.getAttribute("data-tt-policy-suffix"));var Pt="dompurify"+(Ze?"#"+Ze:"");try{return ze.createPolicy(Pt,{createHTML:function(jt){return jt}})}catch{return console.warn("TrustedTypes policy "+Pt+" could not be created."),null}};return function ze(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ve(),Ze=function(J){return ze(J)};if(Ze.version="2.0.12",Ze.removed=[],!lt||!lt.document||lt.document.nodeType!==9)return Ze.isSupported=!1,Ze;var Pt=lt.document,jt=!1,nr=lt.document,Bt=lt.DocumentFragment,xr=lt.HTMLTemplateElement,Pr=lt.Node,gr=lt.NodeFilter,Cr=lt.NamedNodeMap,qr=Cr===void 0?lt.NamedNodeMap||lt.MozNamedAttrMap:Cr,on=lt.Text,Er=lt.Comment,cn=lt.DOMParser,Vr=lt.trustedTypes;if(typeof xr=="function"){var dn=nr.createElement("template");dn.content&&dn.content.ownerDocument&&(nr=dn.content.ownerDocument)}var vr=Be(Vr,Pt),lr=vr&&Rr?vr.createHTML(""):"",gn=nr,Dr=gn.implementation,br=gn.createNodeIterator,hn=gn.getElementsByTagName,sn=gn.createDocumentFragment,Sr=Pt.importNode,Yr={};Ze.isSupported=Dr&&Dr.createHTMLDocument!==void 0&&nr.documentMode!==9;var kr=mt,Wn=yt,Jn=Nt,ln=at,Zn=B,xn=X,Cn=Ft,Sn=null,mn=xe({},[].concat(De(se),De(re),De(be),De($e),De(dt))),je=null,Fe=xe({},[].concat(De(Tt),De(ft),De(Ke),De(nt))),Ie=null,Ee=null,Te=!0,Je=!0,It=!1,wt=!1,Ot=!1,Rt=!1,tr=!1,cr=!1,mr=!1,Wr=!1,Br=!1,Rr=!1,tn=!0,yr=!0,Kt=!1,pn={},ge=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ue=null,pt=xe({},["audio","video","img","source","image","track"]),it=null,Qt=xe({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ur=null,gt=nr.createElement("form"),Ht=function(J){ur&&ur===J||(J&&(J===void 0?"undefined":he(J))==="object"||(J={}),Sn="ALLOWED_TAGS"in J?xe({},J.ALLOWED_TAGS):mn,je="ALLOWED_ATTR"in J?xe({},J.ALLOWED_ATTR):Fe,it="ADD_URI_SAFE_ATTR"in J?xe(D(Qt),J.ADD_URI_SAFE_ATTR):Qt,Ue="ADD_DATA_URI_TAGS"in J?xe(D(pt),J.ADD_DATA_URI_TAGS):pt,Ie="FORBID_TAGS"in J?xe({},J.FORBID_TAGS):{},Ee="FORBID_ATTR"in J?xe({},J.FORBID_ATTR):{},pn="USE_PROFILES"in J&&J.USE_PROFILES,Te=J.ALLOW_ARIA_ATTR!==!1,Je=J.ALLOW_DATA_ATTR!==!1,It=J.ALLOW_UNKNOWN_PROTOCOLS||!1,wt=J.SAFE_FOR_JQUERY||!1,Ot=J.SAFE_FOR_TEMPLATES||!1,Rt=J.WHOLE_DOCUMENT||!1,mr=J.RETURN_DOM||!1,Wr=J.RETURN_DOM_FRAGMENT||!1,Br=J.RETURN_DOM_IMPORT||!1,Rr=J.RETURN_TRUSTED_TYPE||!1,cr=J.FORCE_BODY||!1,tn=J.SANITIZE_DOM!==!1,yr=J.KEEP_CONTENT!==!1,Kt=J.IN_PLACE||!1,Cn=J.ALLOWED_URI_REGEXP||Cn,Ot&&(Je=!1),Wr&&(mr=!0),pn&&(Sn=xe({},[].concat(De(dt))),je=[],pn.html===!0&&(xe(Sn,se),xe(je,Tt)),pn.svg===!0&&(xe(Sn,re),xe(je,ft),xe(je,nt)),pn.svgFilters===!0&&(xe(Sn,be),xe(je,ft),xe(je,nt)),pn.mathMl===!0&&(xe(Sn,$e),xe(je,Ke),xe(je,nt))),J.ADD_TAGS&&(Sn===mn&&(Sn=D(Sn)),xe(Sn,J.ADD_TAGS)),J.ADD_ATTR&&(je===Fe&&(je=D(je)),xe(je,J.ADD_ATTR)),J.ADD_URI_SAFE_ATTR&&xe(it,J.ADD_URI_SAFE_ATTR),yr&&(Sn["#text"]=!0),Rt&&xe(Sn,["html","head","body"]),Sn.table&&(xe(Sn,["tbody"]),delete Ie.tbody),p&&p(J),ur=J)},Ut=function(J){oe(Ze.removed,{element:J});try{J.parentNode.removeChild(J)}catch{J.outerHTML=lr}},Gr=function(J,H){try{oe(Ze.removed,{attribute:H.getAttributeNode(J),from:H})}catch{oe(Ze.removed,{attribute:null,from:H})}H.removeAttribute(J)},Ur=function(J){var H=void 0,Se=void 0;if(cr)J="<remove></remove>"+J;else{var Qe=S(J,/^[\r\n\t ]+/);Se=Qe&&Qe[0]}var ct=vr?vr.createHTML(J):J;try{H=new cn().parseFromString(ct,"text/html")}catch{}if(jt&&xe(Ie,["title"]),!H||!H.documentElement){var Lt=(H=Dr.createHTMLDocument("")).body;Lt.parentNode.removeChild(Lt.parentNode.firstElementChild),Lt.outerHTML=ct}return J&&Se&&H.body.insertBefore(nr.createTextNode(Se),H.body.childNodes[0]||null),hn.call(H,Rt?"html":"body")[0]};Ze.isSupported&&function(){try{var J=Ur("<x/><title>&lt;/title&gt;&lt;img&gt;");Z(/<\/title/,J.querySelector("title").innerHTML)&&(jt=!0)}catch{}}();var Un=function(J){return br.call(J.ownerDocument||J,J,gr.SHOW_ELEMENT|gr.SHOW_COMMENT|gr.SHOW_TEXT,function(){return gr.FILTER_ACCEPT},!1)},ei=function(J){return!(J instanceof on||J instanceof Er||typeof J.nodeName=="string"&&typeof J.textContent=="string"&&typeof J.removeChild=="function"&&J.attributes instanceof qr&&typeof J.removeAttribute=="function"&&typeof J.setAttribute=="function"&&typeof J.namespaceURI=="string")},ar=function(J){return(Pr===void 0?"undefined":he(Pr))==="object"?J instanceof Pr:J&&(J===void 0?"undefined":he(J))==="object"&&typeof J.nodeType=="number"&&typeof J.nodeName=="string"},Lr=function(J,H,Se){Yr[J]&&x(Yr[J],function(Qe){Qe.call(Ze,H,Se,ur)})},Fn=function(J){var H=void 0;if(Lr("beforeSanitizeElements",J,null),ei(J))return Ut(J),!0;var Se=m(J.nodeName);if(Lr("uponSanitizeElement",J,{tagName:Se,allowedTags:Sn}),(Se==="svg"||Se==="math")&&J.querySelectorAll("p, br").length!==0)return Ut(J),!0;if(!Sn[Se]||Ie[Se]){if(yr&&!ge[Se]&&typeof J.insertAdjacentHTML=="function")try{var Qe=J.innerHTML;J.insertAdjacentHTML("AfterEnd",vr?vr.createHTML(Qe):Qe)}catch{}return Ut(J),!0}return Se==="noscript"&&Z(/<\/noscript/i,J.innerHTML)||Se==="noembed"&&Z(/<\/noembed/i,J.innerHTML)?(Ut(J),!0):(!wt||J.firstElementChild||J.content&&J.content.firstElementChild||!Z(/</g,J.textContent)||(oe(Ze.removed,{element:J.cloneNode()}),J.innerHTML?J.innerHTML=P(J.innerHTML,/</g,"&lt;"):J.innerHTML=P(J.textContent,/</g,"&lt;")),Ot&&J.nodeType===3&&(H=J.textContent,H=P(H,kr," "),H=P(H,Wn," "),J.textContent!==H&&(oe(Ze.removed,{element:J.cloneNode()}),J.textContent=H)),Lr("afterSanitizeElements",J,null),!1)},Ye=function(J,H,Se){if(tn&&(H==="id"||H==="name")&&(Se in nr||Se in gt))return!1;if(!(Je&&Z(Jn,H))){if(!(Te&&Z(ln,H))){if(!je[H]||Ee[H])return!1;if(!it[H]){if(!Z(Cn,P(Se,xn,""))){if((H!=="src"&&H!=="xlink:href"&&H!=="href"||J==="script"||q(Se,"data:")!==0||!Ue[J])&&!(It&&!Z(Zn,P(Se,xn,"")))){if(Se)return!1}}}}}return!0},ye=function(J){var H=void 0,Se=void 0,Qe=void 0,ct=void 0,Lt=void 0;Lr("beforeSanitizeAttributes",J,null);var w=J.attributes;if(w){var k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je};for(Lt=w.length;Lt--;){var ae=H=w[Lt],Oe=ae.name,qe=ae.namespaceURI;if(Se=te(H.value),Qe=m(Oe),k.attrName=Qe,k.attrValue=Se,k.keepAttr=!0,k.forceKeepAttr=void 0,Lr("uponSanitizeAttribute",J,k),Se=k.attrValue,!k.forceKeepAttr){if(Qe==="name"&&J.nodeName==="IMG"&&w.id)ct=w.id,w=ie(w,[]),Gr("id",J),Gr(Oe,J),Y(w,ct)>Lt&&J.setAttribute("id",ct.value);else{if(J.nodeName==="INPUT"&&Qe==="type"&&Se==="file"&&k.keepAttr&&(je[Qe]||!Ee[Qe]))continue;Oe==="id"&&J.setAttribute(Oe,""),Gr(Oe,J)}if(k.keepAttr)if(wt&&Z(/\/>/i,Se))Gr(Oe,J);else if(Z(/svg|math/i,J.namespaceURI)&&Z(h("</("+ce(R(ge),"|")+")","i"),Se))Gr(Oe,J);else{Ot&&(Se=P(Se,kr," "),Se=P(Se,Wn," "));var st=J.nodeName.toLowerCase();if(Ye(st,Qe,Se))try{qe?J.setAttributeNS(qe,Oe,Se):J.setAttribute(Oe,Se),K(Ze.removed)}catch{}}}}Lr("afterSanitizeAttributes",J,null)}},Le=function J(H){var Se=void 0,Qe=Un(H);for(Lr("beforeSanitizeShadowDOM",H,null);Se=Qe.nextNode();)Lr("uponSanitizeShadowNode",Se,null),Fn(Se)||(Se.content instanceof Bt&&J(Se.content),ye(Se));Lr("afterSanitizeShadowDOM",H,null)};return Ze.sanitize=function(J,H){var Se=void 0,Qe=void 0,ct=void 0,Lt=void 0,w=void 0;if(J||(J="<!-->"),typeof J!="string"&&!ar(J)){if(typeof J.toString!="function")throw ne("toString is not a function");if(typeof(J=J.toString())!="string")throw ne("dirty is not a string, aborting")}if(!Ze.isSupported){if(he(lt.toStaticHTML)==="object"||typeof lt.toStaticHTML=="function"){if(typeof J=="string")return lt.toStaticHTML(J);if(ar(J))return lt.toStaticHTML(J.outerHTML)}return J}if(tr||Ht(H),Ze.removed=[],typeof J=="string"&&(Kt=!1),!Kt)if(J instanceof Pr)(Qe=(Se=Ur("<!-->")).ownerDocument.importNode(J,!0)).nodeType===1&&Qe.nodeName==="BODY"||Qe.nodeName==="HTML"?Se=Qe:Se.appendChild(Qe);else{if(!mr&&!Ot&&!Rt&&J.indexOf("<")===-1)return vr&&Rr?vr.createHTML(J):J;if(!(Se=Ur(J)))return mr?null:lr}Se&&cr&&Ut(Se.firstChild);for(var k=Un(Kt?J:Se);ct=k.nextNode();)ct.nodeType===3&&ct===Lt||Fn(ct)||(ct.content instanceof Bt&&Le(ct.content),ye(ct),Lt=ct);if(Lt=null,Kt)return J;if(mr){if(Wr)for(w=sn.call(Se.ownerDocument);Se.firstChild;)w.appendChild(Se.firstChild);else w=Se;return Br&&(w=Sr.call(Pt,w,!0)),w}var ae=Rt?Se.outerHTML:Se.innerHTML;return Ot&&(ae=P(ae,kr," "),ae=P(ae,Wn," ")),vr&&Rr?vr.createHTML(ae):ae},Ze.setConfig=function(J){Ht(J),tr=!0},Ze.clearConfig=function(){ur=null,tr=!1},Ze.isValidAttribute=function(J,H,Se){ur||Ht({});var Qe=m(J),ct=m(H);return Ye(Qe,ct,Se)},Ze.addHook=function(J,H){typeof H=="function"&&(Yr[J]=Yr[J]||[],oe(Yr[J],H))},Ze.removeHook=function(J){Yr[J]&&K(Yr[J])},Ze.removeHooks=function(J){Yr[J]&&(Yr[J]=[])},Ze.removeAllHooks=function(){Yr={}},Ze}()}()},function(ke,de,b){(function(A){A.defineOption("foldGutter",!1,function(K,oe,ie){var m;ie&&ie!=A.Init&&(K.clearGutter(K.state.foldGutter.options.gutter),K.state.foldGutter=null,K.off("gutterClick",ue),K.off("changes",x),K.off("viewportChange",Y),K.off("fold",ce),K.off("unfold",ce),K.off("swapDoc",x)),oe&&(K.state.foldGutter=new U(((m=oe)===!0&&(m={}),m.gutter==null&&(m.gutter="CodeMirror-foldgutter"),m.indicatorOpen==null&&(m.indicatorOpen="CodeMirror-foldgutter-open"),m.indicatorFolded==null&&(m.indicatorFolded="CodeMirror-foldgutter-folded"),m)),M(K),K.on("gutterClick",ue),K.on("changes",x),K.on("viewportChange",Y),K.on("fold",ce),K.on("unfold",ce),K.on("swapDoc",x))});var _=A.Pos;function U(K){this.options=K,this.from=this.to=0}function R(K,oe){for(var ie=K.findMarks(_(oe,0),_(oe+1,0)),m=0;m<ie.length;++m)if(ie[m].__isFold){var S=ie[m].find(-1);if(S&&S.line===oe)return ie[m]}}function p(K){if(typeof K=="string"){var oe=document.createElement("div");return oe.className=K+" CodeMirror-guttermarker-subtle",oe}return K.cloneNode(!0)}function G(K,oe,ie){var m=K.state.foldGutter.options,S=oe-1,P=K.foldOption(m,"minFoldSize"),q=K.foldOption(m,"rangeFinder"),te=typeof m.indicatorFolded=="string"&&C(m.indicatorFolded),Z=typeof m.indicatorOpen=="string"&&C(m.indicatorOpen);K.eachLine(oe,ie,function(h){++S;var ne=null,Ge=h.gutterMarkers;if(Ge&&(Ge=Ge[m.gutter]),R(K,S)){if(te&&Ge&&te.test(Ge.className))return;ne=p(m.indicatorFolded)}else{var me=_(S,0),xe=q&&q(K,me);if(xe&&xe.to.line-xe.from.line>=P){if(Z&&Ge&&Z.test(Ge.className))return;ne=p(m.indicatorOpen)}}(ne||Ge)&&K.setGutterMarker(h,m.gutter,ne)})}function C(K){return new RegExp("(^|\\s)"+K+"(?:$|\\s)\\s*")}function M(K){var oe=K.getViewport(),ie=K.state.foldGutter;ie&&(K.operation(function(){G(K,oe.from,oe.to)}),ie.from=oe.from,ie.to=oe.to)}function ue(K,oe,ie){var m=K.state.foldGutter;if(m){var S=m.options;if(ie==S.gutter){var P=R(K,oe);P?P.clear():K.foldCode(_(oe,0),S)}}}function x(K){var oe=K.state.foldGutter;if(oe){var ie=oe.options;oe.from=oe.to=0,clearTimeout(oe.changeUpdate),oe.changeUpdate=setTimeout(function(){M(K)},ie.foldOnChangeTimeSpan||600)}}function Y(K){var oe=K.state.foldGutter;if(oe){var ie=oe.options;clearTimeout(oe.changeUpdate),oe.changeUpdate=setTimeout(function(){var m=K.getViewport();oe.from==oe.to||m.from-oe.to>20||oe.from-m.to>20?M(K):K.operation(function(){m.from<oe.from&&(G(K,m.from,oe.from),oe.from=m.from),m.to>oe.to&&(G(K,oe.to,m.to),oe.to=m.to)})},ie.updateViewportTimeSpan||400)}}function ce(K,oe){var ie=K.state.foldGutter;if(ie){var m=oe.line;m>=ie.from&&m<ie.to&&G(K,m,m+1)}}})(b(7),b(92))},function(ke,de,b){(function(A){var _=A.Pos;function U(m,S){return m.line-S.line||m.ch-S.ch}var R="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",p=new RegExp("<(/?)(["+R+"]["+R+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function G(m,S,P,q){this.line=S,this.ch=P,this.cm=m,this.text=m.getLine(S),this.min=q?Math.max(q.from,m.firstLine()):m.firstLine(),this.max=q?Math.min(q.to-1,m.lastLine()):m.lastLine()}function C(m,S){var P=m.cm.getTokenTypeAt(_(m.line,S));return P&&/\btag\b/.test(P)}function M(m){if(!(m.line>=m.max))return m.ch=0,m.text=m.cm.getLine(++m.line),!0}function ue(m){if(!(m.line<=m.min))return m.text=m.cm.getLine(--m.line),m.ch=m.text.length,!0}function x(m){for(;;){var S=m.text.indexOf(">",m.ch);if(S==-1){if(M(m))continue;return}if(C(m,S+1)){var P=m.text.lastIndexOf("/",S),q=P>-1&&!/\S/.test(m.text.slice(P+1,S));return m.ch=S+1,q?"selfClose":"regular"}m.ch=S+1}}function Y(m){for(;;){var S=m.ch?m.text.lastIndexOf("<",m.ch-1):-1;if(S==-1){if(ue(m))continue;return}if(C(m,S+1)){p.lastIndex=S,m.ch=S;var P=p.exec(m.text);if(P&&P.index==S)return P}else m.ch=S}}function ce(m){for(;;){p.lastIndex=m.ch;var S=p.exec(m.text);if(!S){if(M(m))continue;return}if(C(m,S.index+1))return m.ch=S.index+S[0].length,S;m.ch=S.index+1}}function K(m){for(;;){var S=m.ch?m.text.lastIndexOf(">",m.ch-1):-1;if(S==-1){if(ue(m))continue;return}if(C(m,S+1)){var P=m.text.lastIndexOf("/",S),q=P>-1&&!/\S/.test(m.text.slice(P+1,S));return m.ch=S+1,q?"selfClose":"regular"}m.ch=S}}function oe(m,S){for(var P=[];;){var q,te=ce(m),Z=m.line,h=m.ch-(te?te[0].length:0);if(!te||!(q=x(m)))return;if(q!="selfClose")if(te[1]){for(var ne=P.length-1;ne>=0;--ne)if(P[ne]==te[2]){P.length=ne;break}if(ne<0&&(!S||S==te[2]))return{tag:te[2],from:_(Z,h),to:_(m.line,m.ch)}}else P.push(te[2])}}function ie(m,S){for(var P=[];;){var q=K(m);if(!q)return;if(q!="selfClose"){var te=m.line,Z=m.ch,h=Y(m);if(!h)return;if(h[1])P.push(h[2]);else{for(var ne=P.length-1;ne>=0;--ne)if(P[ne]==h[2]){P.length=ne;break}if(ne<0&&(!S||S==h[2]))return{tag:h[2],from:_(m.line,m.ch),to:_(te,Z)}}}else Y(m)}}A.registerHelper("fold","xml",function(m,S){for(var P=new G(m,S.line,0);;){var q=ce(P);if(!q||P.line!=S.line)return;var te=x(P);if(!te)return;if(!q[1]&&te!="selfClose"){var Z=_(P.line,P.ch),h=oe(P,q[2]);return h&&U(h.from,Z)>0?{from:Z,to:h.from}:null}}}),A.findMatchingTag=function(m,S,P){var q=new G(m,S.line,S.ch,P);if(q.text.indexOf(">")!=-1||q.text.indexOf("<")!=-1){var te=x(q),Z=te&&_(q.line,q.ch),h=te&&Y(q);if(te&&h&&!(U(q,S)>0)){var ne={from:_(q.line,q.ch),to:Z,tag:h[2]};return te=="selfClose"?{open:ne,close:null,at:"open"}:h[1]?{open:ie(q,h[2]),close:ne,at:"close"}:{open:ne,close:oe(q=new G(m,Z.line,Z.ch,P),h[2]),at:"open"}}}},A.findEnclosingTag=function(m,S,P,q){for(var te=new G(m,S.line,S.ch,P);;){var Z=ie(te,q);if(!Z)break;var h=oe(new G(m,S.line,S.ch,P),Z.tag);if(h)return{open:Z,close:h}}},A.scanForClosingTag=function(m,S,P,q){return oe(new G(m,S.line,S.ch,q?{from:0,to:q}:null),P)}})(b(7))},function(ke,de,b){(function(A){A.registerHelper("fold","brace",function(_,U){var R,p=U.line,G=_.getLine(p);function C(te){for(var Z=U.ch,h=0;;){var ne=Z<=0?-1:G.lastIndexOf(te,Z-1);if(ne!=-1){if(h==1&&ne<U.ch)break;if(R=_.getTokenTypeAt(A.Pos(p,ne+1)),!/^(comment|string)/.test(R))return ne+1;Z=ne-1}else{if(h==1)break;h=1,Z=G.length}}}var M="{",ue="}",x=C("{");if(x==null&&(M="[",ue="]",x=C("[")),x!=null){var Y,ce,K=1,oe=_.lastLine();e:for(var ie=p;ie<=oe;++ie)for(var m=_.getLine(ie),S=ie==p?x:0;;){var P=m.indexOf(M,S),q=m.indexOf(ue,S);if(P<0&&(P=m.length),q<0&&(q=m.length),(S=Math.min(P,q))==m.length)break;if(_.getTokenTypeAt(A.Pos(ie,S+1))==R){if(S==P)++K;else if(!--K){Y=ie,ce=S;break e}}++S}if(Y!=null&&p!=Y)return{from:A.Pos(p,x),to:A.Pos(Y,ce)}}}),A.registerHelper("fold","import",function(_,U){function R(x){if(x<_.firstLine()||x>_.lastLine())return null;var Y=_.getTokenAt(A.Pos(x,1));if(/\S/.test(Y.string)||(Y=_.getTokenAt(A.Pos(x,Y.end+1))),Y.type!="keyword"||Y.string!="import")return null;for(var ce=x,K=Math.min(_.lastLine(),x+10);ce<=K;++ce){var oe=_.getLine(ce).indexOf(";");if(oe!=-1)return{startCh:Y.end,end:A.Pos(ce,oe)}}}var p,G=U.line,C=R(G);if(!C||R(G-1)||(p=R(G-2))&&p.end.line==G-1)return null;for(var M=C.end;;){var ue=R(M.line+1);if(ue==null)break;M=ue.end}return{from:_.clipPos(A.Pos(G,C.startCh+1)),to:M}}),A.registerHelper("fold","include",function(_,U){function R(M){if(M<_.firstLine()||M>_.lastLine())return null;var ue=_.getTokenAt(A.Pos(M,1));return/\S/.test(ue.string)||(ue=_.getTokenAt(A.Pos(M,ue.end+1))),ue.type=="meta"&&ue.string.slice(0,8)=="#include"?ue.start+8:void 0}var p=U.line,G=R(p);if(G==null||R(p-1)!=null)return null;for(var C=p;R(C+1)!=null;)++C;return{from:A.Pos(p,G+1),to:_.clipPos(A.Pos(C))}})})(b(7))},function(ke,de,b){(function(A){var _=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),U=A.Pos,R={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function p(x){return x&&x.bracketRegex||/[(){}[\]]/}function G(x,Y,ce){var K=x.getLineHandle(Y.line),oe=Y.ch-1,ie=ce&&ce.afterCursor;ie==null&&(ie=/(^| )cm-fat-cursor($| )/.test(x.getWrapperElement().className));var m=p(ce),S=!ie&&oe>=0&&m.test(K.text.charAt(oe))&&R[K.text.charAt(oe)]||m.test(K.text.charAt(oe+1))&&R[K.text.charAt(++oe)];if(!S)return null;var P=S.charAt(1)==">"?1:-1;if(ce&&ce.strict&&P>0!=(oe==Y.ch))return null;var q=x.getTokenTypeAt(U(Y.line,oe+1)),te=C(x,U(Y.line,oe+(P>0?1:0)),P,q||null,ce);return te==null?null:{from:U(Y.line,oe),to:te&&te.pos,match:te&&te.ch==S.charAt(0),forward:P>0}}function C(x,Y,ce,K,oe){for(var ie=oe&&oe.maxScanLineLength||1e4,m=oe&&oe.maxScanLines||1e3,S=[],P=p(oe),q=ce>0?Math.min(Y.line+m,x.lastLine()+1):Math.max(x.firstLine()-1,Y.line-m),te=Y.line;te!=q;te+=ce){var Z=x.getLine(te);if(Z){var h=ce>0?0:Z.length-1,ne=ce>0?Z.length:-1;if(!(Z.length>ie))for(te==Y.line&&(h=Y.ch-(ce<0?1:0));h!=ne;h+=ce){var Ge=Z.charAt(h);if(P.test(Ge)&&(K===void 0||x.getTokenTypeAt(U(te,h+1))==K)){var me=R[Ge];if(me&&me.charAt(1)==">"==ce>0)S.push(Ge);else{if(!S.length)return{pos:U(te,h),ch:Ge};S.pop()}}}}}return te-ce!=(ce>0?x.lastLine():x.firstLine())&&null}function M(x,Y,ce){for(var K=x.state.matchBrackets.maxHighlightLineLength||1e3,oe=[],ie=x.listSelections(),m=0;m<ie.length;m++){var S=ie[m].empty()&&G(x,ie[m].head,ce);if(S&&x.getLine(S.from.line).length<=K){var P=S.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";oe.push(x.markText(S.from,U(S.from.line,S.from.ch+1),{className:P})),S.to&&x.getLine(S.to.line).length<=K&&oe.push(x.markText(S.to,U(S.to.line,S.to.ch+1),{className:P}))}}if(oe.length){_&&x.state.focused&&x.focus();var q=function(){x.operation(function(){for(var te=0;te<oe.length;te++)oe[te].clear()})};if(!Y)return q;setTimeout(q,800)}}function ue(x){x.operation(function(){x.state.matchBrackets.currentlyHighlighted&&(x.state.matchBrackets.currentlyHighlighted(),x.state.matchBrackets.currentlyHighlighted=null),x.state.matchBrackets.currentlyHighlighted=M(x,!1,x.state.matchBrackets)})}A.defineOption("matchBrackets",!1,function(x,Y,ce){function K(oe){oe.state.matchBrackets&&oe.state.matchBrackets.currentlyHighlighted&&(oe.state.matchBrackets.currentlyHighlighted(),oe.state.matchBrackets.currentlyHighlighted=null)}ce&&ce!=A.Init&&(x.off("cursorActivity",ue),x.off("focus",ue),x.off("blur",K),K(x)),Y&&(x.state.matchBrackets=typeof Y=="object"?Y:{},x.on("cursorActivity",ue),x.on("focus",ue),x.on("blur",K))}),A.defineExtension("matchBrackets",function(){M(this,!0)}),A.defineExtension("findMatchingBracket",function(x,Y,ce){return(ce||typeof Y=="boolean")&&(ce?(ce.strict=Y,Y=ce):Y=Y?{strict:!0}:null),G(this,x,Y)}),A.defineExtension("scanForBracket",function(x,Y,ce,K){return C(this,x,Y,ce,K)})})(b(7))},function(ke,de,b){},function(ke,de){function b(A,_){return ke.exports=b=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},b(A,_)}ke.exports=b},function(ke,de,b){var A=function(_){var U=Object.prototype,R=U.hasOwnProperty,p=typeof Symbol=="function"?Symbol:{},G=p.iterator||"@@iterator",C=p.asyncIterator||"@@asyncIterator",M=p.toStringTag||"@@toStringTag";function ue(D,se,re,be){var $e=se&&se.prototype instanceof ce?se:ce,dt=Object.create($e.prototype),Tt=new Ge(be||[]);return dt._invoke=function(ft,Ke,nt){var mt="suspendedStart";return function(yt,Nt){if(mt==="executing")throw new Error("Generator is already running");if(mt==="completed"){if(yt==="throw")throw Nt;return xe()}for(nt.method=yt,nt.arg=Nt;;){var at=nt.delegate;if(at){var Ft=Z(at,nt);if(Ft){if(Ft===Y)continue;return Ft}}if(nt.method==="next")nt.sent=nt._sent=nt.arg;else if(nt.method==="throw"){if(mt==="suspendedStart")throw mt="completed",nt.arg;nt.dispatchException(nt.arg)}else nt.method==="return"&&nt.abrupt("return",nt.arg);mt="executing";var B=x(ft,Ke,nt);if(B.type==="normal"){if(mt=nt.done?"completed":"suspendedYield",B.arg===Y)continue;return{value:B.arg,done:nt.done}}B.type==="throw"&&(mt="completed",nt.method="throw",nt.arg=B.arg)}}}(D,re,Tt),dt}function x(D,se,re){try{return{type:"normal",arg:D.call(se,re)}}catch(be){return{type:"throw",arg:be}}}_.wrap=ue;var Y={};function ce(){}function K(){}function oe(){}var ie={};ie[G]=function(){return this};var m=Object.getPrototypeOf,S=m&&m(m(me([])));S&&S!==U&&R.call(S,G)&&(ie=S);var P=oe.prototype=ce.prototype=Object.create(ie);function q(D){["next","throw","return"].forEach(function(se){D[se]=function(re){return this._invoke(se,re)}})}function te(D,se){var re;this._invoke=function(be,$e){function dt(){return new se(function(Tt,ft){(function Ke(nt,mt,yt,Nt){var at=x(D[nt],D,mt);if(at.type!=="throw"){var Ft=at.arg,B=Ft.value;return B&&typeof B=="object"&&R.call(B,"__await")?se.resolve(B.__await).then(function(X){Ke("next",X,yt,Nt)},function(X){Ke("throw",X,yt,Nt)}):se.resolve(B).then(function(X){Ft.value=X,yt(Ft)},function(X){return Ke("throw",X,yt,Nt)})}Nt(at.arg)})(be,$e,Tt,ft)})}return re=re?re.then(dt,dt):dt()}}function Z(D,se){var re=D.iterator[se.method];if(re===void 0){if(se.delegate=null,se.method==="throw"){if(D.iterator.return&&(se.method="return",se.arg=void 0,Z(D,se),se.method==="throw"))return Y;se.method="throw",se.arg=new TypeError("The iterator does not provide a 'throw' method")}return Y}var be=x(re,D.iterator,se.arg);if(be.type==="throw")return se.method="throw",se.arg=be.arg,se.delegate=null,Y;var $e=be.arg;return $e?$e.done?(se[D.resultName]=$e.value,se.next=D.nextLoc,se.method!=="return"&&(se.method="next",se.arg=void 0),se.delegate=null,Y):$e:(se.method="throw",se.arg=new TypeError("iterator result is not an object"),se.delegate=null,Y)}function h(D){var se={tryLoc:D[0]};1 in D&&(se.catchLoc=D[1]),2 in D&&(se.finallyLoc=D[2],se.afterLoc=D[3]),this.tryEntries.push(se)}function ne(D){var se=D.completion||{};se.type="normal",delete se.arg,D.completion=se}function Ge(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(h,this),this.reset(!0)}function me(D){if(D){var se=D[G];if(se)return se.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var re=-1,be=function $e(){for(;++re<D.length;)if(R.call(D,re))return $e.value=D[re],$e.done=!1,$e;return $e.value=void 0,$e.done=!0,$e};return be.next=be}}return{next:xe}}function xe(){return{value:void 0,done:!0}}return K.prototype=P.constructor=oe,oe.constructor=K,oe[M]=K.displayName="GeneratorFunction",_.isGeneratorFunction=function(D){var se=typeof D=="function"&&D.constructor;return!!se&&(se===K||(se.displayName||se.name)==="GeneratorFunction")},_.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,oe):(D.__proto__=oe,M in D||(D[M]="GeneratorFunction")),D.prototype=Object.create(P),D},_.awrap=function(D){return{__await:D}},q(te.prototype),te.prototype[C]=function(){return this},_.AsyncIterator=te,_.async=function(D,se,re,be,$e){$e===void 0&&($e=Promise);var dt=new te(ue(D,se,re,be),$e);return _.isGeneratorFunction(se)?dt:dt.next().then(function(Tt){return Tt.done?Tt.value:dt.next()})},q(P),P[M]="Generator",P[G]=function(){return this},P.toString=function(){return"[object Generator]"},_.keys=function(D){var se=[];for(var re in D)se.push(re);return se.reverse(),function be(){for(;se.length;){var $e=se.pop();if($e in D)return be.value=$e,be.done=!1,be}return be.done=!0,be}},_.values=me,Ge.prototype={constructor:Ge,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(ne),!D)for(var se in this)se.charAt(0)==="t"&&R.call(this,se)&&!isNaN(+se.slice(1))&&(this[se]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var se=this;function re(Ke,nt){return dt.type="throw",dt.arg=D,se.next=Ke,nt&&(se.method="next",se.arg=void 0),!!nt}for(var be=this.tryEntries.length-1;be>=0;--be){var $e=this.tryEntries[be],dt=$e.completion;if($e.tryLoc==="root")return re("end");if($e.tryLoc<=this.prev){var Tt=R.call($e,"catchLoc"),ft=R.call($e,"finallyLoc");if(Tt&&ft){if(this.prev<$e.catchLoc)return re($e.catchLoc,!0);if(this.prev<$e.finallyLoc)return re($e.finallyLoc)}else if(Tt){if(this.prev<$e.catchLoc)return re($e.catchLoc,!0)}else{if(!ft)throw new Error("try statement without catch or finally");if(this.prev<$e.finallyLoc)return re($e.finallyLoc)}}}},abrupt:function(D,se){for(var re=this.tryEntries.length-1;re>=0;--re){var be=this.tryEntries[re];if(be.tryLoc<=this.prev&&R.call(be,"finallyLoc")&&this.prev<be.finallyLoc){var $e=be;break}}$e&&(D==="break"||D==="continue")&&$e.tryLoc<=se&&se<=$e.finallyLoc&&($e=null);var dt=$e?$e.completion:{};return dt.type=D,dt.arg=se,$e?(this.method="next",this.next=$e.finallyLoc,Y):this.complete(dt)},complete:function(D,se){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&se&&(this.next=se),Y},finish:function(D){for(var se=this.tryEntries.length-1;se>=0;--se){var re=this.tryEntries[se];if(re.finallyLoc===D)return this.complete(re.completion,re.afterLoc),ne(re),Y}},catch:function(D){for(var se=this.tryEntries.length-1;se>=0;--se){var re=this.tryEntries[se];if(re.tryLoc===D){var be=re.completion;if(be.type==="throw"){var $e=be.arg;ne(re)}return $e}}throw new Error("illegal catch attempt")},delegateYield:function(D,se,re){return this.delegate={iterator:me(D),resultName:se,nextLoc:re},this.method==="next"&&(this.arg=void 0),Y}},_}(ke.exports);try{regeneratorRuntime=A}catch{Function("r","regeneratorRuntime = r")(A)}},function(ke,de,b){var A=b(107),_=b(108),U=[b(115)];ke.exports=A.createStore(_,U)},function(ke,de,b){var A=b(40),_=A.slice,U=A.pluck,R=A.each,p=A.bind,G=A.create,C=A.isList,M=A.isFunction,ue=A.isObject;ke.exports={createStore:Y};var x={version:"2.0.12",enabled:!1,get:function(ce,K){var oe=this.storage.read(this._namespacePrefix+ce);return this._deserialize(oe,K)},set:function(ce,K){return K===void 0?this.remove(ce):(this.storage.write(this._namespacePrefix+ce,this._serialize(K)),K)},remove:function(ce){this.storage.remove(this._namespacePrefix+ce)},each:function(ce){var K=this;this.storage.each(function(oe,ie){ce.call(K,K._deserialize(oe),(ie||"").replace(K._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ce){return this._namespacePrefix=="__storejs_"+ce+"_"},createStore:function(){return Y.apply(this,arguments)},addPlugin:function(ce){this._addPlugin(ce)},namespace:function(ce){return Y(this.storage,this.plugins,ce)}};function Y(ce,K,oe){oe||(oe=""),ce&&!C(ce)&&(ce=[ce]),K&&!C(K)&&(K=[K]);var ie=oe?"__storejs_"+oe+"_":"",m=oe?new RegExp("^"+ie):null;if(!/^[a-zA-Z0-9_\-]*$/.test(oe))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var S=G({_namespacePrefix:ie,_namespaceRegexp:m,_testStorage:function(P){try{var q="__storejs__test__";P.write(q,q);var te=P.read(q)===q;return P.remove(q),te}catch{return!1}},_assignPluginFnProp:function(P,q){var te=this[q];this[q]=function(){var Z=_(arguments,0),h=this;function ne(){if(te)return R(arguments,function(me,xe){Z[xe]=me}),te.apply(h,Z)}var Ge=[ne].concat(Z);return P.apply(h,Ge)}},_serialize:function(P){return JSON.stringify(P)},_deserialize:function(P,q){if(!P)return q;var te="";try{te=JSON.parse(P)}catch{te=P}return te!==void 0?te:q},_addStorage:function(P){this.enabled||this._testStorage(P)&&(this.storage=P,this.enabled=!0)},_addPlugin:function(P){var q=this;if(C(P))R(P,function(Z){q._addPlugin(Z)});else if(!U(this.plugins,function(Z){return P===Z})){if(this.plugins.push(P),!M(P))throw new Error("Plugins must be function values that return objects");var te=P.call(this);if(!ue(te))throw new Error("Plugins must return an object of function properties");R(te,function(Z,h){if(!M(Z))throw new Error("Bad plugin property: "+h+" from plugin "+P.name+". Plugins should only return functions.");q._assignPluginFnProp(Z,h)})}},addStorage:function(P){(function(){var q=typeof console>"u"?null:console;if(q){var te=q.warn?q.warn:q.log;te.apply(q,arguments)}})("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(P)}},x,{plugins:[]});return S.raw={},R(S,function(P,q){M(P)&&(S.raw[q]=p(S,P))}),R(ce,function(P){S._addStorage(P)}),R(K,function(P){S._addPlugin(P)}),S}},function(ke,de,b){ke.exports=[b(109),b(110),b(111),b(112),b(113),b(114)]},function(ke,de,b){var A=b(40).Global;function _(){return A.localStorage}function U(R){return _().getItem(R)}ke.exports={name:"localStorage",read:U,write:function(R,p){return _().setItem(R,p)},each:function(R){for(var p=_().length-1;p>=0;p--){var G=_().key(p);R(U(G),G)}},remove:function(R){return _().removeItem(R)},clearAll:function(){return _().clear()}}},function(ke,de,b){var A=b(40).Global;ke.exports={name:"oldFF-globalStorage",read:function(R){return _[R]},write:function(R,p){_[R]=p},each:U,remove:function(R){return _.removeItem(R)},clearAll:function(){U(function(R,p){delete _[R]})}};var _=A.globalStorage;function U(R){for(var p=_.length-1;p>=0;p--){var G=_.key(p);R(_[G],G)}}},function(ke,de,b){var A=b(40).Global;ke.exports={name:"oldIE-userDataStorage",write:function(C,M){if(!R){var ue=G(C);U(function(x){x.setAttribute(ue,M),x.save("storejs")})}},read:function(C){if(!R){var M=G(C),ue=null;return U(function(x){ue=x.getAttribute(M)}),ue}},each:function(C){U(function(M){for(var ue=M.XMLDocument.documentElement.attributes,x=ue.length-1;x>=0;x--){var Y=ue[x];C(M.getAttribute(Y.name),Y.name)}})},remove:function(C){var M=G(C);U(function(ue){ue.removeAttribute(M),ue.save("storejs")})},clearAll:function(){U(function(C){var M=C.XMLDocument.documentElement.attributes;C.load("storejs");for(var ue=M.length-1;ue>=0;ue--)C.removeAttribute(M[ue].name);C.save("storejs")})}};var _=A.document,U=function(){if(!_||!_.documentElement||!_.documentElement.addBehavior)return null;var C,M,ue;try{(M=new ActiveXObject("htmlfile")).open(),M.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),M.close(),C=M.w.frames[0].document,ue=C.createElement("div")}catch{ue=_.createElement("div"),C=_.body}return function(x){var Y=[].slice.call(arguments,0);Y.unshift(ue),C.appendChild(ue),ue.addBehavior("#default#userData"),ue.load("storejs"),x.apply(this,Y),C.removeChild(ue)}}(),R=(A.navigator?A.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),p=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function G(C){return C.replace(/^\d/,"___$&").replace(p,"___")}},function(ke,de,b){var A=b(40),_=A.Global,U=A.trim;ke.exports={name:"cookieStorage",read:function(M){if(!M||!C(M))return null;var ue="(?:^|.*;\\s*)"+escape(M).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(R.cookie.replace(new RegExp(ue),"$1"))},write:function(M,ue){M&&(R.cookie=escape(M)+"="+escape(ue)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")},each:p,remove:G,clearAll:function(){p(function(M,ue){G(ue)})}};var R=_.document;function p(M){for(var ue=R.cookie.split(/; ?/g),x=ue.length-1;x>=0;x--)if(U(ue[x])){var Y=ue[x].split("="),ce=unescape(Y[0]);M(unescape(Y[1]),ce)}}function G(M){M&&C(M)&&(R.cookie=escape(M)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function C(M){return new RegExp("(?:^|;\\s*)"+escape(M).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(R.cookie)}},function(ke,de,b){var A=b(40).Global;function _(){return A.sessionStorage}function U(R){return _().getItem(R)}ke.exports={name:"sessionStorage",read:U,write:function(R,p){return _().setItem(R,p)},each:function(R){for(var p=_().length-1;p>=0;p--){var G=_().key(p);R(U(G),G)}},remove:function(R){return _().removeItem(R)},clearAll:function(){return _().clear()}}},function(ke,de){ke.exports={name:"memoryStorage",read:function(A){return b[A]},write:function(A,_){b[A]=_},each:function(A){for(var _ in b)b.hasOwnProperty(_)&&A(b[_],_)},remove:function(A){delete b[A]},clearAll:function(A){b={}}};var b={}},function(ke,de,b){ke.exports=function(){return b(116),{}}},function(module,exports){typeof JSON!="object"&&(JSON={}),function(){var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(ke){return ke<10?"0"+ke:ke}function this_value(){return this.valueOf()}function quote(ke){return rx_escapable.lastIndex=0,rx_escapable.test(ke)?'"'+ke.replace(rx_escapable,function(de){var b=meta[de];return typeof b=="string"?b:"\\u"+("0000"+de.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ke+'"'}function str(ke,de){var b,A,_,U,R,p=gap,G=de[ke];switch(G&&typeof G=="object"&&typeof G.toJSON=="function"&&(G=G.toJSON(ke)),typeof rep=="function"&&(G=rep.call(de,ke,G)),typeof G){case"string":return quote(G);case"number":return isFinite(G)?String(G):"null";case"boolean":case"null":return String(G);case"object":if(!G)return"null";if(gap+=indent,R=[],Object.prototype.toString.apply(G)==="[object Array]"){for(U=G.length,b=0;b<U;b+=1)R[b]=str(b,G)||"null";return _=R.length===0?"[]":gap?`[
`+gap+R.join(`,
`+gap)+`
`+p+"]":"["+R.join(",")+"]",gap=p,_}if(rep&&typeof rep=="object")for(U=rep.length,b=0;b<U;b+=1)typeof rep[b]=="string"&&(_=str(A=rep[b],G))&&R.push(quote(A)+(gap?": ":":")+_);else for(A in G)Object.prototype.hasOwnProperty.call(G,A)&&(_=str(A,G))&&R.push(quote(A)+(gap?": ":":")+_);return _=R.length===0?"{}":gap?`{
`+gap+R.join(`,
`+gap)+`
`+p+"}":"{"+R.join(",")+"}",gap=p,_}}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),typeof JSON.stringify!="function"&&(meta={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(ke,de,b){var A;if(gap="",indent="",typeof b=="number")for(A=0;A<b;A+=1)indent+=" ";else typeof b=="string"&&(indent=b);if(rep=de,de&&typeof de!="function"&&(typeof de!="object"||typeof de.length!="number"))throw new Error("JSON.stringify");return str("",{"":ke})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(ke,de){var b,A,_=ke[de];if(_&&typeof _=="object")for(b in _)Object.prototype.hasOwnProperty.call(_,b)&&((A=walk(_,b))!==void 0?_[b]=A:delete _[b]);return reviver.call(ke,de,_)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(ke){return"\\u"+("0000"+ke.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")})}()},function(ke,de){ke.exports=function(b){if(Array.isArray(b))return b}},function(ke,de){ke.exports=function(b,A){(A==null||A>b.length)&&(A=b.length);for(var _=0,U=new Array(A);_<A;_++)U[_]=b[_];return U}},function(ke,de){ke.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},function(ke,de){ke.exports=function(b){if(typeof Symbol<"u"&&Symbol.iterator in Object(b))return Array.from(b)}},function(ke,de,b){function A(_){return(A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U})(_)}ke.exports=function(_){return _!==null&&A(_)==="object"}},function(ke,de,b){(function(A){var _,U,R=A.Pos;function p(m,S){for(var P=function(Z){var h=Z.flags;return h??(Z.ignoreCase?"i":"")+(Z.global?"g":"")+(Z.multiline?"m":"")}(m),q=P,te=0;te<S.length;te++)q.indexOf(S.charAt(te))==-1&&(q+=S.charAt(te));return P==q?m:new RegExp(m.source,q)}function G(m){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(m.source)}function C(m,S,P){S=p(S,"g");for(var q=P.line,te=P.ch,Z=m.lastLine();q<=Z;q++,te=0){S.lastIndex=te;var h=m.getLine(q),ne=S.exec(h);if(ne)return{from:R(q,ne.index),to:R(q,ne.index+ne[0].length),match:ne}}}function M(m,S,P){if(!G(S))return C(m,S,P);S=p(S,"gm");for(var q,te=1,Z=P.line,h=m.lastLine();Z<=h;){for(var ne=0;ne<te&&!(Z>h);ne++){var Ge=m.getLine(Z++);q=q==null?Ge:q+`
`+Ge}te*=2,S.lastIndex=P.ch;var me=S.exec(q);if(me){var xe=q.slice(0,me.index).split(`
`),D=me[0].split(`
`),se=P.line+xe.length-1,re=xe[xe.length-1].length;return{from:R(se,re),to:R(se+D.length-1,D.length==1?re+D[0].length:D[D.length-1].length),match:me}}}}function ue(m,S,P){for(var q,te=0;te<=m.length;){S.lastIndex=te;var Z=S.exec(m);if(!Z)break;var h=Z.index+Z[0].length;if(h>m.length-P)break;(!q||h>q.index+q[0].length)&&(q=Z),te=Z.index+1}return q}function x(m,S,P){S=p(S,"g");for(var q=P.line,te=P.ch,Z=m.firstLine();q>=Z;q--,te=-1){var h=m.getLine(q),ne=ue(h,S,te<0?0:h.length-te);if(ne)return{from:R(q,ne.index),to:R(q,ne.index+ne[0].length),match:ne}}}function Y(m,S,P){if(!G(S))return x(m,S,P);S=p(S,"gm");for(var q,te=1,Z=m.getLine(P.line).length-P.ch,h=P.line,ne=m.firstLine();h>=ne;){for(var Ge=0;Ge<te&&h>=ne;Ge++){var me=m.getLine(h--);q=q==null?me:me+`
`+q}te*=2;var xe=ue(q,S,Z);if(xe){var D=q.slice(0,xe.index).split(`
`),se=xe[0].split(`
`),re=h+D.length,be=D[D.length-1].length;return{from:R(re,be),to:R(re+se.length-1,se.length==1?be+se[0].length:se[se.length-1].length),match:xe}}}}function ce(m,S,P,q){if(m.length==S.length)return P;for(var te=0,Z=P+Math.max(0,m.length-S.length);;){if(te==Z)return te;var h=te+Z>>1,ne=q(m.slice(0,h)).length;if(ne==P)return h;ne>P?Z=h:te=h+1}}function K(m,S,P,q){if(!S.length)return null;var te=q?_:U,Z=te(S).split(/\r|\n\r?/);e:for(var h=P.line,ne=P.ch,Ge=m.lastLine()+1-Z.length;h<=Ge;h++,ne=0){var me=m.getLine(h).slice(ne),xe=te(me);if(Z.length==1){var D=xe.indexOf(Z[0]);if(D==-1)continue e;return P=ce(me,xe,D,te)+ne,{from:R(h,ce(me,xe,D,te)+ne),to:R(h,ce(me,xe,D+Z[0].length,te)+ne)}}var se=xe.length-Z[0].length;if(xe.slice(se)==Z[0]){for(var re=1;re<Z.length-1;re++)if(te(m.getLine(h+re))!=Z[re])continue e;var be=m.getLine(h+Z.length-1),$e=te(be),dt=Z[Z.length-1];if($e.slice(0,dt.length)==dt)return{from:R(h,ce(me,xe,se,te)+ne),to:R(h+Z.length-1,ce(be,$e,dt.length,te))}}}}function oe(m,S,P,q){if(!S.length)return null;var te=q?_:U,Z=te(S).split(/\r|\n\r?/);e:for(var h=P.line,ne=P.ch,Ge=m.firstLine()-1+Z.length;h>=Ge;h--,ne=-1){var me=m.getLine(h);ne>-1&&(me=me.slice(0,ne));var xe=te(me);if(Z.length==1){var D=xe.lastIndexOf(Z[0]);if(D==-1)continue e;return{from:R(h,ce(me,xe,D,te)),to:R(h,ce(me,xe,D+Z[0].length,te))}}var se=Z[Z.length-1];if(xe.slice(0,se.length)==se){var re=1;for(P=h-Z.length+1;re<Z.length-1;re++)if(te(m.getLine(P+re))!=Z[re])continue e;var be=m.getLine(h+1-Z.length),$e=te(be);if($e.slice($e.length-Z[0].length)==Z[0])return{from:R(h+1-Z.length,ce(be,$e,be.length-Z[0].length,te)),to:R(h,ce(me,xe,se.length,te))}}}}function ie(m,S,P,q){var te;this.atOccurrence=!1,this.doc=m,P=P?m.clipPos(P):R(0,0),this.pos={from:P,to:P},typeof q=="object"?te=q.caseFold:(te=q,q=null),typeof S=="string"?(te==null&&(te=!1),this.matches=function(Z,h){return(Z?oe:K)(m,S,h,te)}):(S=p(S,"gm"),q&&q.multiline===!1?this.matches=function(Z,h){return(Z?x:C)(m,S,h)}:this.matches=function(Z,h){return(Z?Y:M)(m,S,h)})}String.prototype.normalize?(_=function(m){return m.normalize("NFD").toLowerCase()},U=function(m){return m.normalize("NFD")}):(_=function(m){return m.toLowerCase()},U=function(m){return m}),ie.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(m){for(var S=this.matches(m,this.doc.clipPos(m?this.pos.from:this.pos.to));S&&A.cmpPos(S.from,S.to)==0;)m?S.from.ch?S.from=R(S.from.line,S.from.ch-1):S=S.from.line==this.doc.firstLine()?null:this.matches(m,this.doc.clipPos(R(S.from.line-1))):S.to.ch<this.doc.getLine(S.to.line).length?S.to=R(S.to.line,S.to.ch+1):S=S.to.line==this.doc.lastLine()?null:this.matches(m,R(S.to.line+1,0));if(S)return this.pos=S,this.atOccurrence=!0,this.pos.match||!0;var P=R(m?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:P,to:P},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(m,S){if(this.atOccurrence){var P=A.splitLines(m);this.doc.replaceRange(P,this.pos.from,this.pos.to,S),this.pos.to=R(this.pos.from.line+P.length-1,P[P.length-1].length+(P.length==1?this.pos.from.ch:0))}}},A.defineExtension("getSearchCursor",function(m,S,P){return new ie(this.doc,m,S,P)}),A.defineDocExtension("getSearchCursor",function(m,S,P){return new ie(this,m,S,P)}),A.defineExtension("selectMatches",function(m,S){for(var P=[],q=this.getSearchCursor(m,this.getCursor("from"),S);q.findNext()&&!(A.cmpPos(q.to(),this.getCursor("to"))>0);)P.push({anchor:q.from(),head:q.to()});P.length&&this.setSelections(P,0)})})(b(7))},function(ke,de,b){(function(A){b.d(de,"a",function(){return ce});var _=b(23),U=b(124),R=b.n(U);function p(K,oe){for(var ie=0;ie<oe.length;ie++){var m=oe[ie];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(K,m.key,m)}}var G=_.a.xsd,C=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,M={"\\":"\\","'":"'",'"':'"',n:`
`,r:"\r",t:"	",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},ue=/[\x00-\x20<>\\"\{\}\|\^\`]/,x={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Y=/$0^/,ce=function(){function K(m){if(function(P,q){if(!(P instanceof q))throw new TypeError("Cannot call a class as a function")}(this,K),this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s()\[\]\{\}"'<])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,m=m||{},this._lineMode=!!m.lineMode)for(var S in this._n3Mode=!1,this)!(S in x)&&this[S]instanceof RegExp&&(this[S]=Y);else this._n3Mode=m.n3!==!1;this._comments=!!m.comments,this._literalClosingPos=0}var oe,ie;return oe=K,(ie=[{key:"_tokenizeToEnd",value:function(m,S){for(var P=this._input,q=this._comments;;){for(var te,Z;te=this._newline.exec(P);)q&&(Z=this._comment.exec(te[0]))&&m(null,{line:this._line,type:"comment",value:Z[1],prefix:""}),P=P.substr(te[0].length,P.length),this._line++;if(!te&&(te=this._whitespace.exec(P))&&(P=P.substr(te[0].length,P.length)),this._endOfFile.test(P))return S&&(q&&(Z=this._comment.exec(P))&&m(null,{line:this._line,type:"comment",value:Z[1],prefix:""}),m(P=null,{line:this._line,type:"eof",value:"",prefix:""})),this._input=P;var h=this._line,ne="",Ge="",me="",xe=P[0],D=null,se=0,re=!1;switch(xe){case"^":if(P.length<3)break;if(P[1]!=="^"){this._n3Mode&&(se=1,ne="^");break}if(this._previousMarker="^^",(P=P.substr(2))[0]!=="<"){re=!0;break}case"<":if(D=this._unescapedIri.exec(P))ne="IRI",Ge=D[1];else if(D=this._iri.exec(P)){if((Ge=this._unescape(D[1]))===null||ue.test(Ge))return Tt(this);ne="IRI"}else this._n3Mode&&P.length>1&&P[1]==="="&&(ne="inverse",se=2,Ge=">");break;case"_":((D=this._blank.exec(P))||S&&(D=this._blank.exec(P+" ")))&&(ne="blank",me="_",Ge=D[1]);break;case'"':if(D=this._simpleQuotedString.exec(P))Ge=D[1];else{var be=this._parseLiteral(P);if(Ge=be.value,se=be.matchLength,Ge===null)return Tt(this)}D===null&&se===0||(ne="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(D=this._simpleApostropheString.exec(P))Ge=D[1];else{var $e=this._parseLiteral(P);if(Ge=$e.value,se=$e.matchLength,Ge===null)return Tt(this)}D===null&&se===0||(ne="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(D=this._variable.exec(P))&&(ne="var",Ge=D[0]);break;case"@":this._previousMarker==="literal"&&(D=this._langcode.exec(P))?(ne="langcode",Ge=D[1]):(D=this._keyword.exec(P))&&(ne=D[0]);break;case".":if(P.length===1?S:P[1]<"0"||P[1]>"9"){ne=".",se=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(D=this._number.exec(P)||S&&(D=this._number.exec(P+" ")))&&(ne="literal",Ge=D[0],me=typeof D[1]=="string"?G.double:typeof D[2]=="string"?G.decimal:G.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(D=this._sparqlKeyword.exec(P))?ne=D[0].toUpperCase():re=!0;break;case"f":case"t":(D=this._boolean.exec(P))?(ne="literal",Ge=D[0],me=G.boolean):re=!0;break;case"a":(D=this._shortPredicates.exec(P))?(ne="abbreviation",Ge="a"):re=!0;break;case"=":this._n3Mode&&P.length>1&&(ne="abbreviation",P[1]!==">"?(se=1,Ge="="):(se=2,Ge=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"{":case"}":this._lineMode||(se=1,ne=xe);break;default:re=!0}if(re&&(this._previousMarker!=="@prefix"&&this._previousMarker!=="PREFIX"||!(D=this._prefix.exec(P))?((D=this._prefixed.exec(P))||S&&(D=this._prefixed.exec(P+" ")))&&(ne="prefixed",me=D[1]||"",Ge=this._unescape(D[2])):(ne="prefix",Ge=D[1]||"")),this._previousMarker==="^^")switch(ne){case"prefixed":ne="type";break;case"IRI":ne="typeIRI";break;default:ne=""}if(!ne)return S||!/^'''|^"""/.test(P)&&/\n|\r/.test(P)?Tt(this):this._input=P;var dt={line:h,type:ne,value:Ge,prefix:me};m(null,dt),this.previousToken=dt,this._previousMarker=ne,P=P.substr(se||D[0].length,P.length)}function Tt(ft){m(ft._syntaxError(/^\S*/.exec(P)[0]))}}},{key:"_unescape",value:function(m){var S=!1,P=m.replace(C,function(q,te,Z,h){if(typeof te=="string")return String.fromCharCode(Number.parseInt(te,16));if(typeof Z=="string"){var ne=Number.parseInt(Z,16);return ne<=65535?String.fromCharCode(Number.parseInt(Z,16)):String.fromCharCode(55296+((ne-=65536)>>10),56320+(1023&ne))}return h in M?M[h]:(S=!0,"")});return S?null:P}},{key:"_parseLiteral",value:function(m){if(m.length>=3){for(var S=m.match(/^(?:"""|"|'''|'|)/)[0],P=S.length,q=Math.max(this._literalClosingPos,P);(q=m.indexOf(S,q))>0;){for(var te=0;m[q-te-1]==="\\";)te++;if(te%2==0){var Z=m.substring(P,q),h=Z.split(/\r\n|\r|\n/).length-1,ne=q+P;if(P===1&&h!==0||P===3&&this._lineMode)break;return this._line+=h,{value:this._unescape(Z),matchLength:ne}}q++}this._literalClosingPos=m.length-P+1}return{value:"",matchLength:0}}},{key:"_syntaxError",value:function(m){this._input=null;var S=new Error('Unexpected "'+m+'" on line '+this._line+".");return S.context={token:void 0,line:this._line,previousToken:this.previousToken},S}},{key:"tokenize",value:function(m,S){var P=this;if(this._line=1,typeof m=="string"){if(this._input=m,typeof S!="function"){var q,te=[];if(this._tokenizeToEnd(function(Z,h){Z?q=Z:te.push(h)},!0),q)throw q;return te}R()(function(){return P._tokenizeToEnd(S,!0)})}else this._input="",this._pendingBuffer=null,typeof m.setEncoding=="function"&&m.setEncoding("utf8"),m.on("data",function(Z){P._input!==null&&Z.length!==0&&(P._pendingBuffer&&(Z=A.concat([P._pendingBuffer,Z]),P._pendingBuffer=null),128&Z[Z.length-1]?P._pendingBuffer=Z:(P._input+=Z,P._tokenizeToEnd(S,!1)))}),m.on("end",function(){P._input!==null&&P._tokenizeToEnd(S,!0)}),m.on("error",S)}}])&&p(oe.prototype,ie),K}()}).call(this,b(132).Buffer)},function(ke,de){let b;ke.exports=typeof queueMicrotask=="function"?queueMicrotask:A=>(b||(b=Promise.resolve())).then(A).catch(_=>setTimeout(()=>{throw _},0))},function(ke,de,b){var A,_,U;_=[],(U=typeof(A=function R(){var p=typeof self<"u"?self:typeof window<"u"?window:p!==void 0?p:{},G=!p.document&&!!p.postMessage,C=G&&/blob:/i.test((p.location||{}).protocol),M={},ue=0,x={parse:function(xe,D){var se=(D=D||{}).dynamicTyping||!1;if(me(se)&&(D.dynamicTypingFunction=se,se={}),D.dynamicTyping=se,D.transform=!!me(D.transform)&&D.transform,D.worker&&x.WORKERS_SUPPORTED){var re=function(){if(!x.WORKERS_SUPPORTED)return!1;var $e,dt,Tt=($e=p.URL||p.webkitURL||null,dt=R.toString(),x.BLOB_URL||(x.BLOB_URL=$e.createObjectURL(new Blob(["(",dt,")();"],{type:"text/javascript"})))),ft=new p.Worker(Tt);return ft.onmessage=te,ft.id=ue++,M[ft.id]=ft}();return re.userStep=D.step,re.userChunk=D.chunk,re.userComplete=D.complete,re.userError=D.error,D.step=me(D.step),D.chunk=me(D.chunk),D.complete=me(D.complete),D.error=me(D.error),delete D.worker,void re.postMessage({input:xe,config:D,workerId:re.id})}var be=null;return x.NODE_STREAM_INPUT,typeof xe=="string"?be=D.download?new K(D):new ie(D):xe.readable===!0&&me(xe.read)&&me(xe.on)?be=new m(D):(p.File&&xe instanceof File||xe instanceof Object)&&(be=new oe(D)),be.stream(xe)},unparse:function(xe,D){var se=!1,re=!0,be=",",$e=`\r
`,dt='"',Tt=dt+dt,ft=!1,Ke=null,nt=!1;(function(){if(typeof D=="object"){if(typeof D.delimiter!="string"||x.BAD_DELIMITERS.filter(function(at){return D.delimiter.indexOf(at)!==-1}).length||(be=D.delimiter),(typeof D.quotes=="boolean"||typeof D.quotes=="function"||Array.isArray(D.quotes))&&(se=D.quotes),typeof D.skipEmptyLines!="boolean"&&typeof D.skipEmptyLines!="string"||(ft=D.skipEmptyLines),typeof D.newline=="string"&&($e=D.newline),typeof D.quoteChar=="string"&&(dt=D.quoteChar),typeof D.header=="boolean"&&(re=D.header),Array.isArray(D.columns)){if(D.columns.length===0)throw new Error("Option columns is empty");Ke=D.columns}D.escapeChar!==void 0&&(Tt=D.escapeChar+dt),typeof D.escapeFormulae=="boolean"&&(nt=D.escapeFormulae)}})();var mt=new RegExp(P(dt),"g");if(typeof xe=="string"&&(xe=JSON.parse(xe)),Array.isArray(xe)){if(!xe.length||Array.isArray(xe[0]))return yt(null,xe,ft);if(typeof xe[0]=="object")return yt(Ke||Object.keys(xe[0]),xe,ft)}else if(typeof xe=="object")return typeof xe.data=="string"&&(xe.data=JSON.parse(xe.data)),Array.isArray(xe.data)&&(xe.fields||(xe.fields=xe.meta&&xe.meta.fields),xe.fields||(xe.fields=Array.isArray(xe.data[0])?xe.fields:typeof xe.data[0]=="object"?Object.keys(xe.data[0]):[]),Array.isArray(xe.data[0])||typeof xe.data[0]=="object"||(xe.data=[xe.data])),yt(xe.fields||[],xe.data||[],ft);throw new Error("Unable to serialize unrecognized input");function yt(at,Ft,B){var X="";typeof at=="string"&&(at=JSON.parse(at)),typeof Ft=="string"&&(Ft=JSON.parse(Ft));var he=Array.isArray(at)&&0<at.length,De=!Array.isArray(Ft[0]);if(he&&re){for(var Ve=0;Ve<at.length;Ve++)0<Ve&&(X+=be),X+=Nt(at[Ve],Ve);0<Ft.length&&(X+=$e)}for(var Be=0;Be<Ft.length;Be++){var ze=he?at.length:Ft[Be].length,lt=!1,Ze=he?Object.keys(Ft[Be]).length===0:Ft[Be].length===0;if(B&&!he&&(lt=B==="greedy"?Ft[Be].join("").trim()==="":Ft[Be].length===1&&Ft[Be][0].length===0),B==="greedy"&&he){for(var Pt=[],jt=0;jt<ze;jt++){var nr=De?at[jt]:jt;Pt.push(Ft[Be][nr])}lt=Pt.join("").trim()===""}if(!lt){for(var Bt=0;Bt<ze;Bt++){0<Bt&&!Ze&&(X+=be);var xr=he&&De?at[Bt]:Bt;X+=Nt(Ft[Be][xr],Bt)}Be<Ft.length-1&&(!B||0<ze&&!Ze)&&(X+=$e)}}return X}function Nt(at,Ft){if(at==null)return"";if(at.constructor===Date)return JSON.stringify(at).slice(1,25);nt===!0&&typeof at=="string"&&at.match(/^[=+\-@].*$/)!==null&&(at="'"+at);var B=at.toString().replace(mt,Tt);return typeof se=="boolean"&&se||typeof se=="function"&&se(at,Ft)||Array.isArray(se)&&se[Ft]||function(X,he){for(var De=0;De<he.length;De++)if(-1<X.indexOf(he[De]))return!0;return!1}(B,x.BAD_DELIMITERS)||-1<B.indexOf(be)||B.charAt(0)===" "||B.charAt(B.length-1)===" "?dt+B+dt:B}}};if(x.RECORD_SEP="",x.UNIT_SEP="",x.BYTE_ORDER_MARK="\uFEFF",x.BAD_DELIMITERS=["\r",`
`,'"',x.BYTE_ORDER_MARK],x.WORKERS_SUPPORTED=!G&&!!p.Worker,x.NODE_STREAM_INPUT=1,x.LocalChunkSize=10485760,x.RemoteChunkSize=5242880,x.DefaultDelimiter=",",x.Parser=q,x.ParserHandle=S,x.NetworkStreamer=K,x.FileStreamer=oe,x.StringStreamer=ie,x.ReadableStreamStreamer=m,p.jQuery){var Y=p.jQuery;Y.fn.parse=function(xe){var D=xe.config||{},se=[];return this.each(function($e){if(Y(this).prop("tagName").toUpperCase()!=="INPUT"||Y(this).attr("type").toLowerCase()!=="file"||!p.FileReader||!this.files||this.files.length===0)return!0;for(var dt=0;dt<this.files.length;dt++)se.push({file:this.files[dt],inputElem:this,instanceConfig:Y.extend({},D)})}),re(),this;function re(){if(se.length!==0){var $e,dt,Tt,ft=se[0];if(me(xe.before)){var Ke=xe.before(ft.file,ft.inputElem);if(typeof Ke=="object"){if(Ke.action==="abort")return $e=ft.file,dt=ft.inputElem,Tt=Ke.reason,void(me(xe.error)&&xe.error({name:"AbortError"},$e,dt,Tt));if(Ke.action==="skip")return void be();typeof Ke.config=="object"&&(ft.instanceConfig=Y.extend(ft.instanceConfig,Ke.config))}else if(Ke==="skip")return void be()}var nt=ft.instanceConfig.complete;ft.instanceConfig.complete=function(mt){me(nt)&&nt(mt,ft.file,ft.inputElem),be()},x.parse(ft.file,ft.instanceConfig)}else me(xe.complete)&&xe.complete()}function be(){se.splice(0,1),re()}}}function ce(xe){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(D){var se=ne(D);se.chunkSize=parseInt(se.chunkSize),D.step||D.chunk||(se.chunkSize=null),this._handle=new S(se),(this._handle.streamer=this)._config=se}).call(this,xe),this.parseChunk=function(D,se){if(this.isFirstChunk&&me(this._config.beforeFirstChunk)){var re=this._config.beforeFirstChunk(D);re!==void 0&&(D=re)}this.isFirstChunk=!1,this._halted=!1;var be=this._partialLine+D;this._partialLine="";var $e=this._handle.parse(be,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var dt=$e.meta.cursor;this._finished||(this._partialLine=be.substring(dt-this._baseIndex),this._baseIndex=dt),$e&&$e.data&&(this._rowCount+=$e.data.length);var Tt=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(C)p.postMessage({results:$e,workerId:x.WORKER_ID,finished:Tt});else if(me(this._config.chunk)&&!se){if(this._config.chunk($e,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);$e=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat($e.data),this._completeResults.errors=this._completeResults.errors.concat($e.errors),this._completeResults.meta=$e.meta),this._completed||!Tt||!me(this._config.complete)||$e&&$e.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Tt||$e&&$e.meta.paused||this._nextChunk(),$e}this._halted=!0},this._sendError=function(D){me(this._config.error)?this._config.error(D):C&&this._config.error&&p.postMessage({workerId:x.WORKER_ID,error:D,finished:!1})}}function K(xe){var D;(xe=xe||{}).chunkSize||(xe.chunkSize=x.RemoteChunkSize),ce.call(this,xe),this._nextChunk=G?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(se){this._input=se,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(D=new XMLHttpRequest,this._config.withCredentials&&(D.withCredentials=this._config.withCredentials),G||(D.onload=Ge(this._chunkLoaded,this),D.onerror=Ge(this._chunkError,this)),D.open(this._config.downloadRequestBody?"POST":"GET",this._input,!G),this._config.downloadRequestHeaders){var se=this._config.downloadRequestHeaders;for(var re in se)D.setRequestHeader(re,se[re])}if(this._config.chunkSize){var be=this._start+this._config.chunkSize-1;D.setRequestHeader("Range","bytes="+this._start+"-"+be)}try{D.send(this._config.downloadRequestBody)}catch($e){this._chunkError($e.message)}G&&D.status===0&&this._chunkError()}},this._chunkLoaded=function(){D.readyState===4&&(D.status<200||400<=D.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:D.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(se){var re=se.getResponseHeader("Content-Range");return re===null?-1:parseInt(re.substring(re.lastIndexOf("/")+1))}(D),this.parseChunk(D.responseText)))},this._chunkError=function(se){var re=D.statusText||se;this._sendError(new Error(re))}}function oe(xe){var D,se;(xe=xe||{}).chunkSize||(xe.chunkSize=x.LocalChunkSize),ce.call(this,xe);var re=typeof FileReader<"u";this.stream=function(be){this._input=be,se=be.slice||be.webkitSlice||be.mozSlice,re?((D=new FileReader).onload=Ge(this._chunkLoaded,this),D.onerror=Ge(this._chunkError,this)):D=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var be=this._input;if(this._config.chunkSize){var $e=Math.min(this._start+this._config.chunkSize,this._input.size);be=se.call(be,this._start,$e)}var dt=D.readAsText(be,this._config.encoding);re||this._chunkLoaded({target:{result:dt}})},this._chunkLoaded=function(be){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(be.target.result)},this._chunkError=function(){this._sendError(D.error)}}function ie(xe){var D;ce.call(this,xe=xe||{}),this.stream=function(se){return D=se,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var se,re=this._config.chunkSize;return re?(se=D.substring(0,re),D=D.substring(re)):(se=D,D=""),this._finished=!D,this.parseChunk(se)}}}function m(xe){ce.call(this,xe=xe||{});var D=[],se=!0,re=!1;this.pause=function(){ce.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){ce.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(be){this._input=be,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){re&&D.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),D.length?this.parseChunk(D.shift()):se=!0},this._streamData=Ge(function(be){try{D.push(typeof be=="string"?be:be.toString(this._config.encoding)),se&&(se=!1,this._checkIsFinished(),this.parseChunk(D.shift()))}catch($e){this._streamError($e)}},this),this._streamError=Ge(function(be){this._streamCleanUp(),this._sendError(be)},this),this._streamEnd=Ge(function(){this._streamCleanUp(),re=!0,this._streamData("")},this),this._streamCleanUp=Ge(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function S(xe){var D,se,re,be=Math.pow(2,53),$e=-be,dt=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Tt=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,ft=this,Ke=0,nt=0,mt=!1,yt=!1,Nt=[],at={data:[],errors:[],meta:{}};if(me(xe.step)){var Ft=xe.step;xe.step=function(Be){if(at=Be,he())X();else{if(X(),at.data.length===0)return;Ke+=Be.data.length,xe.preview&&Ke>xe.preview?se.abort():(at.data=at.data[0],Ft(at,ft))}}}function B(Be){return xe.skipEmptyLines==="greedy"?Be.join("").trim()==="":Be.length===1&&Be[0].length===0}function X(){if(at&&re&&(Ve("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+x.DefaultDelimiter+"'"),re=!1),xe.skipEmptyLines)for(var Be=0;Be<at.data.length;Be++)B(at.data[Be])&&at.data.splice(Be--,1);return he()&&function(){if(at)if(Array.isArray(at.data[0])){for(var ze=0;he()&&ze<at.data.length;ze++)at.data[ze].forEach(lt);at.data.splice(0,1)}else at.data.forEach(lt);function lt(Ze,Pt){me(xe.transformHeader)&&(Ze=xe.transformHeader(Ze,Pt)),Nt.push(Ze)}}(),function(){if(!at||!xe.header&&!xe.dynamicTyping&&!xe.transform)return at;function ze(Ze,Pt){var jt,nr=xe.header?{}:[];for(jt=0;jt<Ze.length;jt++){var Bt=jt,xr=Ze[jt];xe.header&&(Bt=jt>=Nt.length?"__parsed_extra":Nt[jt]),xe.transform&&(xr=xe.transform(xr,Bt)),xr=De(Bt,xr),Bt==="__parsed_extra"?(nr[Bt]=nr[Bt]||[],nr[Bt].push(xr)):nr[Bt]=xr}return xe.header&&(jt>Nt.length?Ve("FieldMismatch","TooManyFields","Too many fields: expected "+Nt.length+" fields but parsed "+jt,nt+Pt):jt<Nt.length&&Ve("FieldMismatch","TooFewFields","Too few fields: expected "+Nt.length+" fields but parsed "+jt,nt+Pt)),nr}var lt=1;return!at.data.length||Array.isArray(at.data[0])?(at.data=at.data.map(ze),lt=at.data.length):at.data=ze(at.data,0),xe.header&&at.meta&&(at.meta.fields=Nt),nt+=lt,at}()}function he(){return xe.header&&Nt.length===0}function De(Be,ze){return lt=Be,xe.dynamicTypingFunction&&xe.dynamicTyping[lt]===void 0&&(xe.dynamicTyping[lt]=xe.dynamicTypingFunction(lt)),(xe.dynamicTyping[lt]||xe.dynamicTyping)===!0?ze==="true"||ze==="TRUE"||ze!=="false"&&ze!=="FALSE"&&(function(Ze){if(dt.test(Ze)){var Pt=parseFloat(Ze);if($e<Pt&&Pt<be)return!0}return!1}(ze)?parseFloat(ze):Tt.test(ze)?new Date(ze):ze===""?null:ze):ze;var lt}function Ve(Be,ze,lt,Ze){var Pt={type:Be,code:ze,message:lt};Ze!==void 0&&(Pt.row=Ze),at.errors.push(Pt)}this.parse=function(Be,ze,lt){var Ze=xe.quoteChar||'"';if(xe.newline||(xe.newline=function(nr,Bt){nr=nr.substring(0,1048576);var xr=new RegExp(P(Bt)+"([^]*?)"+P(Bt),"gm"),Pr=(nr=nr.replace(xr,"")).split("\r"),gr=nr.split(`
`),Cr=1<gr.length&&gr[0].length<Pr[0].length;if(Pr.length===1||Cr)return`
`;for(var qr=0,on=0;on<Pr.length;on++)Pr[on][0]===`
`&&qr++;return qr>=Pr.length/2?`\r
`:"\r"}(Be,Ze)),re=!1,xe.delimiter)me(xe.delimiter)&&(xe.delimiter=xe.delimiter(Be),at.meta.delimiter=xe.delimiter);else{var Pt=function(nr,Bt,xr,Pr,gr){var Cr,qr,on,Er;gr=gr||[",","	","|",";",x.RECORD_SEP,x.UNIT_SEP];for(var cn=0;cn<gr.length;cn++){var Vr=gr[cn],dn=0,vr=0,lr=0;on=void 0;for(var gn=new q({comments:Pr,delimiter:Vr,newline:Bt,preview:10}).parse(nr),Dr=0;Dr<gn.data.length;Dr++)if(xr&&B(gn.data[Dr]))lr++;else{var br=gn.data[Dr].length;vr+=br,on!==void 0?0<br&&(dn+=Math.abs(br-on),on=br):on=br}0<gn.data.length&&(vr/=gn.data.length-lr),(qr===void 0||dn<=qr)&&(Er===void 0||Er<vr)&&1.99<vr&&(qr=dn,Cr=Vr,Er=vr)}return{successful:!!(xe.delimiter=Cr),bestDelimiter:Cr}}(Be,xe.newline,xe.skipEmptyLines,xe.comments,xe.delimitersToGuess);Pt.successful?xe.delimiter=Pt.bestDelimiter:(re=!0,xe.delimiter=x.DefaultDelimiter),at.meta.delimiter=xe.delimiter}var jt=ne(xe);return xe.preview&&xe.header&&jt.preview++,D=Be,se=new q(jt),at=se.parse(D,ze,lt),X(),mt?{meta:{paused:!0}}:at||{meta:{paused:!1}}},this.paused=function(){return mt},this.pause=function(){mt=!0,se.abort(),D=me(xe.chunk)?"":D.substring(se.getCharIndex())},this.resume=function(){ft.streamer._halted?(mt=!1,ft.streamer.parseChunk(D,!0)):setTimeout(ft.resume,3)},this.aborted=function(){return yt},this.abort=function(){yt=!0,se.abort(),at.meta.aborted=!0,me(xe.complete)&&xe.complete(at),D=""}}function P(xe){return xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q(xe){var D,se=(xe=xe||{}).delimiter,re=xe.newline,be=xe.comments,$e=xe.step,dt=xe.preview,Tt=xe.fastMode,ft=D=xe.quoteChar===void 0?'"':xe.quoteChar;if(xe.escapeChar!==void 0&&(ft=xe.escapeChar),(typeof se!="string"||-1<x.BAD_DELIMITERS.indexOf(se))&&(se=","),be===se)throw new Error("Comment character same as delimiter");be===!0?be="#":(typeof be!="string"||-1<x.BAD_DELIMITERS.indexOf(be))&&(be=!1),re!==`
`&&re!=="\r"&&re!==`\r
`&&(re=`
`);var Ke=0,nt=!1;this.parse=function(mt,yt,Nt){if(typeof mt!="string")throw new Error("Input must be a string");var at=mt.length,Ft=se.length,B=re.length,X=be.length,he=me($e),De=[],Ve=[],Be=[],ze=Ke=0;if(!mt)return Er();if(Tt||Tt!==!1&&mt.indexOf(D)===-1){for(var lt=mt.split(re),Ze=0;Ze<lt.length;Ze++){if(Be=lt[Ze],Ke+=Be.length,Ze!==lt.length-1)Ke+=re.length;else if(Nt)return Er();if(!be||Be.substring(0,X)!==be){if(he){if(De=[],gr(Be.split(se)),cn(),nt)return Er()}else gr(Be.split(se));if(dt&&dt<=Ze)return De=De.slice(0,dt),Er(!0)}}return Er()}for(var Pt=mt.indexOf(se,Ke),jt=mt.indexOf(re,Ke),nr=new RegExp(P(ft)+P(D),"g"),Bt=mt.indexOf(D,Ke);;)if(mt[Ke]!==D)if(be&&Be.length===0&&mt.substring(Ke,Ke+X)===be){if(jt===-1)return Er();Ke=jt+B,jt=mt.indexOf(re,Ke),Pt=mt.indexOf(se,Ke)}else if(Pt!==-1&&(Pt<jt||jt===-1))Be.push(mt.substring(Ke,Pt)),Ke=Pt+Ft,Pt=mt.indexOf(se,Ke);else{if(jt===-1)break;if(Be.push(mt.substring(Ke,jt)),on(jt+B),he&&(cn(),nt))return Er();if(dt&&De.length>=dt)return Er(!0)}else for(Bt=Ke,Ke++;;){if((Bt=mt.indexOf(D,Bt+1))===-1)return Nt||Ve.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:De.length,index:Ke}),qr();if(Bt===at-1)return qr(mt.substring(Ke,Bt).replace(nr,D));if(D!==ft||mt[Bt+1]!==ft){if(D===ft||Bt===0||mt[Bt-1]!==ft){Pt!==-1&&Pt<Bt+1&&(Pt=mt.indexOf(se,Bt+1)),jt!==-1&&jt<Bt+1&&(jt=mt.indexOf(re,Bt+1));var xr=Cr(jt===-1?Pt:Math.min(Pt,jt));if(mt[Bt+1+xr]===se){Be.push(mt.substring(Ke,Bt).replace(nr,D)),mt[Ke=Bt+1+xr+Ft]!==D&&(Bt=mt.indexOf(D,Ke)),Pt=mt.indexOf(se,Ke),jt=mt.indexOf(re,Ke);break}var Pr=Cr(jt);if(mt.substring(Bt+1+Pr,Bt+1+Pr+B)===re){if(Be.push(mt.substring(Ke,Bt).replace(nr,D)),on(Bt+1+Pr+B),Pt=mt.indexOf(se,Ke),Bt=mt.indexOf(D,Ke),he&&(cn(),nt))return Er();if(dt&&De.length>=dt)return Er(!0);break}Ve.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:De.length,index:Ke}),Bt++}}else Bt++}return qr();function gr(Vr){De.push(Vr),ze=Ke}function Cr(Vr){var dn=0;if(Vr!==-1){var vr=mt.substring(Bt+1,Vr);vr&&vr.trim()===""&&(dn=vr.length)}return dn}function qr(Vr){return Nt||(Vr===void 0&&(Vr=mt.substring(Ke)),Be.push(Vr),Ke=at,gr(Be),he&&cn()),Er()}function on(Vr){Ke=Vr,gr(Be),Be=[],jt=mt.indexOf(re,Ke)}function Er(Vr){return{data:De,errors:Ve,meta:{delimiter:se,linebreak:re,aborted:nt,truncated:!!Vr,cursor:ze+(yt||0)}}}function cn(){$e(Er()),De=[],Ve=[]}},this.abort=function(){nt=!0},this.getCharIndex=function(){return Ke}}function te(xe){var D=xe.data,se=M[D.workerId],re=!1;if(D.error)se.userError(D.error,D.file);else if(D.results&&D.results.data){var be={abort:function(){re=!0,Z(D.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:h,resume:h};if(me(se.userStep)){for(var $e=0;$e<D.results.data.length&&(se.userStep({data:D.results.data[$e],errors:D.results.errors,meta:D.results.meta},be),!re);$e++);delete D.results}else me(se.userChunk)&&(se.userChunk(D.results,be,D.file),delete D.results)}D.finished&&!re&&Z(D.workerId,D.results)}function Z(xe,D){var se=M[xe];me(se.userComplete)&&se.userComplete(D),se.terminate(),delete M[xe]}function h(){throw new Error("Not implemented.")}function ne(xe){if(typeof xe!="object"||xe===null)return xe;var D=Array.isArray(xe)?[]:{};for(var se in xe)D[se]=ne(xe[se]);return D}function Ge(xe,D){return function(){xe.apply(D,arguments)}}function me(xe){return typeof xe=="function"}return C&&(p.onmessage=function(xe){var D=xe.data;if(x.WORKER_ID===void 0&&D&&(x.WORKER_ID=D.workerId),typeof D.input=="string")p.postMessage({workerId:x.WORKER_ID,results:x.parse(D.input,D.config),finished:!0});else if(p.File&&D.input instanceof File||D.input instanceof Object){var se=x.parse(D.input,D.config);se&&p.postMessage({workerId:x.WORKER_ID,results:se,finished:!0})}}),(K.prototype=Object.create(ce.prototype)).constructor=K,(oe.prototype=Object.create(ce.prototype)).constructor=oe,(ie.prototype=Object.create(ie.prototype)).constructor=ie,(m.prototype=Object.create(ce.prototype)).constructor=m,x})=="function"?A.apply(de,_):A)===void 0||(ke.exports=U)},function(ke,de,b){var A=b(117),_=b(120),U=b(94),R=b(119);ke.exports=function(p){return A(p)||_(p)||U(p)||R()}},function(ke,de,b){(function(A){(function(_){function U(){}function R(){R.init.call(this)}function p(l){return l._maxListeners===void 0?R.defaultMaxListeners:l._maxListeners}function G(l,u,v){if(u)l.call(v);else for(var z=l.length,le=oe(l,z),ve=0;ve<z;++ve)le[ve].call(v)}function C(l,u,v,z){if(u)l.call(v,z);else for(var le=l.length,ve=oe(l,le),Me=0;Me<le;++Me)ve[Me].call(v,z)}function M(l,u,v,z,le){if(u)l.call(v,z,le);else for(var ve=l.length,Me=oe(l,ve),ht=0;ht<ve;++ht)Me[ht].call(v,z,le)}function ue(l,u,v,z,le,ve){if(u)l.call(v,z,le,ve);else for(var Me=l.length,ht=oe(l,Me),_t=0;_t<Me;++_t)ht[_t].call(v,z,le,ve)}function x(l,u,v,z){if(u)l.apply(v,z);else for(var le=l.length,ve=oe(l,le),Me=0;Me<le;++Me)ve[Me].apply(v,z)}function Y(l,u,v,z){var le,ve,Me,ht;if(typeof v!="function")throw new TypeError('"listener" argument must be a function');if((ve=l._events)?(ve.newListener&&(l.emit("newListener",u,v.listener?v.listener:v),ve=l._events),Me=ve[u]):(ve=l._events=new U,l._eventsCount=0),Me){if(typeof Me=="function"?Me=ve[u]=z?[v,Me]:[Me,v]:z?Me.unshift(v):Me.push(v),!Me.warned&&(le=p(l))&&le>0&&Me.length>le){Me.warned=!0;var _t=new Error("Possible EventEmitter memory leak detected. "+Me.length+" "+u+" listeners added. Use emitter.setMaxListeners() to increase limit");_t.name="MaxListenersExceededWarning",_t.emitter=l,_t.type=u,_t.count=Me.length,ht=_t,typeof console.warn=="function"?console.warn(ht):console.log(ht)}}else Me=ve[u]=v,++l._eventsCount;return l}function ce(l,u,v){var z=!1;function le(){l.removeListener(u,le),z||(z=!0,v.apply(l,arguments))}return le.listener=v,le}function K(l){var u=this._events;if(u){var v=u[l];if(typeof v=="function")return 1;if(v)return v.length}return 0}function oe(l,u){for(var v=new Array(u);u--;)v[u]=l[u];return v}U.prototype=Object.create(null),R.EventEmitter=R,R.usingDomains=!1,R.prototype.domain=void 0,R.prototype._events=void 0,R.prototype._maxListeners=void 0,R.defaultMaxListeners=10,R.init=function(){this.domain=null,R.usingDomains&&(void 0).active&&(void 0).Domain,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new U,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},R.prototype.setMaxListeners=function(l){if(typeof l!="number"||l<0||isNaN(l))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=l,this},R.prototype.getMaxListeners=function(){return p(this)},R.prototype.emit=function(l){var u,v,z,le,ve,Me,ht,_t=l==="error";if(Me=this._events)_t=_t&&Me.error==null;else if(!_t)return!1;if(ht=this.domain,_t){if(u=arguments[1],!ht){if(u instanceof Error)throw u;var Jt=new Error('Uncaught, unspecified "error" event. ('+u+")");throw Jt.context=u,Jt}return u||(u=new Error('Uncaught, unspecified "error" event')),u.domainEmitter=this,u.domain=ht,u.domainThrown=!1,ht.emit("error",u),!1}if(!(v=Me[l]))return!1;var qt=typeof v=="function";switch(z=arguments.length){case 1:G(v,qt,this);break;case 2:C(v,qt,this,arguments[1]);break;case 3:M(v,qt,this,arguments[1],arguments[2]);break;case 4:ue(v,qt,this,arguments[1],arguments[2],arguments[3]);break;default:for(le=new Array(z-1),ve=1;ve<z;ve++)le[ve-1]=arguments[ve];x(v,qt,this,le)}return!0},R.prototype.addListener=function(l,u){return Y(this,l,u,!1)},R.prototype.on=R.prototype.addListener,R.prototype.prependListener=function(l,u){return Y(this,l,u,!0)},R.prototype.once=function(l,u){if(typeof u!="function")throw new TypeError('"listener" argument must be a function');return this.on(l,ce(this,l,u)),this},R.prototype.prependOnceListener=function(l,u){if(typeof u!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(l,ce(this,l,u)),this},R.prototype.removeListener=function(l,u){var v,z,le,ve,Me;if(typeof u!="function")throw new TypeError('"listener" argument must be a function');if(!(z=this._events))return this;if(!(v=z[l]))return this;if(v===u||v.listener&&v.listener===u)--this._eventsCount==0?this._events=new U:(delete z[l],z.removeListener&&this.emit("removeListener",l,v.listener||u));else if(typeof v!="function"){for(le=-1,ve=v.length;ve-- >0;)if(v[ve]===u||v[ve].listener&&v[ve].listener===u){Me=v[ve].listener,le=ve;break}if(le<0)return this;if(v.length===1){if(v[0]=void 0,--this._eventsCount==0)return this._events=new U,this;delete z[l]}else(function(ht,_t){for(var Jt=_t,qt=Jt+1,_r=ht.length;qt<_r;Jt+=1,qt+=1)ht[Jt]=ht[qt];ht.pop()})(v,le);z.removeListener&&this.emit("removeListener",l,Me||u)}return this},R.prototype.removeAllListeners=function(l){var u,v;if(!(v=this._events))return this;if(!v.removeListener)return arguments.length===0?(this._events=new U,this._eventsCount=0):v[l]&&(--this._eventsCount==0?this._events=new U:delete v[l]),this;if(arguments.length===0){for(var z,le=Object.keys(v),ve=0;ve<le.length;++ve)(z=le[ve])!=="removeListener"&&this.removeAllListeners(z);return this.removeAllListeners("removeListener"),this._events=new U,this._eventsCount=0,this}if(typeof(u=v[l])=="function")this.removeListener(l,u);else if(u)do this.removeListener(l,u[u.length-1]);while(u[0]);return this},R.prototype.listeners=function(l){var u,v=this._events;return v&&(u=v[l])?typeof u=="function"?[u.listener||u]:function(z){for(var le=new Array(z.length),ve=0;ve<le.length;++ve)le[ve]=z[ve].listener||z[ve];return le}(u):[]},R.listenerCount=function(l,u){return typeof l.listenerCount=="function"?l.listenerCount(u):K.call(l,u)},R.prototype.listenerCount=K,R.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var ie=A!==void 0?A:typeof self<"u"?self:typeof window<"u"?window:{},m=[],S=[],P=typeof Uint8Array<"u"?Uint8Array:Array,q=!1;function te(){q=!0;for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,v=l.length;u<v;++u)m[u]=l[u],S[l.charCodeAt(u)]=u;S[45]=62,S[95]=63}function Z(l,u,v){for(var z,le,ve=[],Me=u;Me<v;Me+=3)z=(l[Me]<<16)+(l[Me+1]<<8)+l[Me+2],ve.push(m[(le=z)>>18&63]+m[le>>12&63]+m[le>>6&63]+m[63&le]);return ve.join("")}function h(l){var u;q||te();for(var v=l.length,z=v%3,le="",ve=[],Me=0,ht=v-z;Me<ht;Me+=16383)ve.push(Z(l,Me,Me+16383>ht?ht:Me+16383));return z===1?(u=l[v-1],le+=m[u>>2],le+=m[u<<4&63],le+="=="):z===2&&(u=(l[v-2]<<8)+l[v-1],le+=m[u>>10],le+=m[u>>4&63],le+=m[u<<2&63],le+="="),ve.push(le),ve.join("")}function ne(l,u,v,z,le){var ve,Me,ht=8*le-z-1,_t=(1<<ht)-1,Jt=_t>>1,qt=-7,_r=v?le-1:0,Hr=v?-1:1,Nr=l[u+_r];for(_r+=Hr,ve=Nr&(1<<-qt)-1,Nr>>=-qt,qt+=ht;qt>0;ve=256*ve+l[u+_r],_r+=Hr,qt-=8);for(Me=ve&(1<<-qt)-1,ve>>=-qt,qt+=z;qt>0;Me=256*Me+l[u+_r],_r+=Hr,qt-=8);if(ve===0)ve=1-Jt;else{if(ve===_t)return Me?NaN:1/0*(Nr?-1:1);Me+=Math.pow(2,z),ve-=Jt}return(Nr?-1:1)*Me*Math.pow(2,ve-z)}function Ge(l,u,v,z,le,ve){var Me,ht,_t,Jt=8*ve-le-1,qt=(1<<Jt)-1,_r=qt>>1,Hr=le===23?Math.pow(2,-24)-Math.pow(2,-77):0,Nr=z?0:ve-1,yn=z?1:-1,qn=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(ht=isNaN(u)?1:0,Me=qt):(Me=Math.floor(Math.log(u)/Math.LN2),u*(_t=Math.pow(2,-Me))<1&&(Me--,_t*=2),(u+=Me+_r>=1?Hr/_t:Hr*Math.pow(2,1-_r))*_t>=2&&(Me++,_t/=2),Me+_r>=qt?(ht=0,Me=qt):Me+_r>=1?(ht=(u*_t-1)*Math.pow(2,le),Me+=_r):(ht=u*Math.pow(2,_r-1)*Math.pow(2,le),Me=0));le>=8;l[v+Nr]=255&ht,Nr+=yn,ht/=256,le-=8);for(Me=Me<<le|ht,Jt+=le;Jt>0;l[v+Nr]=255&Me,Nr+=yn,Me/=256,Jt-=8);l[v+Nr-yn]|=128*qn}var me={}.toString,xe=Array.isArray||function(l){return me.call(l)=="[object Array]"};function D(){return re.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function se(l,u){if(D()<u)throw new RangeError("Invalid typed array length");return re.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(u)).__proto__=re.prototype:(l===null&&(l=new re(u)),l.length=u),l}function re(l,u,v){if(!(re.TYPED_ARRAY_SUPPORT||this instanceof re))return new re(l,u,v);if(typeof l=="number"){if(typeof u=="string")throw new Error("If encoding is specified then the first argument must be a string");return dt(this,l)}return be(this,l,u,v)}function be(l,u,v,z){if(typeof u=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&u instanceof ArrayBuffer?function(le,ve,Me,ht){if(ve.byteLength,Me<0||ve.byteLength<Me)throw new RangeError("'offset' is out of bounds");if(ve.byteLength<Me+(ht||0))throw new RangeError("'length' is out of bounds");return ve=Me===void 0&&ht===void 0?new Uint8Array(ve):ht===void 0?new Uint8Array(ve,Me):new Uint8Array(ve,Me,ht),re.TYPED_ARRAY_SUPPORT?(le=ve).__proto__=re.prototype:le=Tt(le,ve),le}(l,u,v,z):typeof u=="string"?function(le,ve,Me){if(typeof Me=="string"&&Me!==""||(Me="utf8"),!re.isEncoding(Me))throw new TypeError('"encoding" must be a valid string encoding');var ht=0|nt(ve,Me),_t=(le=se(le,ht)).write(ve,Me);return _t!==ht&&(le=le.slice(0,_t)),le}(l,u,v):function(le,ve){if(Ke(ve)){var Me=0|ft(ve.length);return(le=se(le,Me)).length===0||ve.copy(le,0,0,Me),le}if(ve){if(typeof ArrayBuffer<"u"&&ve.buffer instanceof ArrayBuffer||"length"in ve)return typeof ve.length!="number"||(ht=ve.length)!=ht?se(le,0):Tt(le,ve);if(ve.type==="Buffer"&&xe(ve.data))return Tt(le,ve.data)}var ht;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(l,u)}function $e(l){if(typeof l!="number")throw new TypeError('"size" argument must be a number');if(l<0)throw new RangeError('"size" argument must not be negative')}function dt(l,u){if($e(u),l=se(l,u<0?0:0|ft(u)),!re.TYPED_ARRAY_SUPPORT)for(var v=0;v<u;++v)l[v]=0;return l}function Tt(l,u){var v=u.length<0?0:0|ft(u.length);l=se(l,v);for(var z=0;z<v;z+=1)l[z]=255&u[z];return l}function ft(l){if(l>=D())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D().toString(16)+" bytes");return 0|l}function Ke(l){return!(l==null||!l._isBuffer)}function nt(l,u){if(Ke(l))return l.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(l)||l instanceof ArrayBuffer))return l.byteLength;typeof l!="string"&&(l=""+l);var v=l.length;if(v===0)return 0;for(var z=!1;;)switch(u){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":case void 0:return Er(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*v;case"hex":return v>>>1;case"base64":return cn(l).length;default:if(z)return Er(l).length;u=(""+u).toLowerCase(),z=!0}}function mt(l,u,v){var z=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0)<=(u>>>=0))return"";for(l||(l="utf8");;)switch(l){case"hex":return Pt(this,u,v);case"utf8":case"utf-8":return ze(this,u,v);case"ascii":return lt(this,u,v);case"latin1":case"binary":return Ze(this,u,v);case"base64":return Be(this,u,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jt(this,u,v);default:if(z)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),z=!0}}function yt(l,u,v){var z=l[u];l[u]=l[v],l[v]=z}function Nt(l,u,v,z,le){if(l.length===0)return-1;if(typeof v=="string"?(z=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,isNaN(v)&&(v=le?0:l.length-1),v<0&&(v=l.length+v),v>=l.length){if(le)return-1;v=l.length-1}else if(v<0){if(!le)return-1;v=0}if(typeof u=="string"&&(u=re.from(u,z)),Ke(u))return u.length===0?-1:at(l,u,v,z,le);if(typeof u=="number")return u&=255,re.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(l,u,v):Uint8Array.prototype.lastIndexOf.call(l,u,v):at(l,[u],v,z,le);throw new TypeError("val must be string, number or Buffer")}function at(l,u,v,z,le){var ve,Me=1,ht=l.length,_t=u.length;if(z!==void 0&&((z=String(z).toLowerCase())==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(l.length<2||u.length<2)return-1;Me=2,ht/=2,_t/=2,v/=2}function Jt(Nr,yn){return Me===1?Nr[yn]:Nr.readUInt16BE(yn*Me)}if(le){var qt=-1;for(ve=v;ve<ht;ve++)if(Jt(l,ve)===Jt(u,qt===-1?0:ve-qt)){if(qt===-1&&(qt=ve),ve-qt+1===_t)return qt*Me}else qt!==-1&&(ve-=ve-qt),qt=-1}else for(v+_t>ht&&(v=ht-_t),ve=v;ve>=0;ve--){for(var _r=!0,Hr=0;Hr<_t;Hr++)if(Jt(l,ve+Hr)!==Jt(u,Hr)){_r=!1;break}if(_r)return ve}return-1}function Ft(l,u,v,z){v=Number(v)||0;var le=l.length-v;z?(z=Number(z))>le&&(z=le):z=le;var ve=u.length;if(ve%2!=0)throw new TypeError("Invalid hex string");z>ve/2&&(z=ve/2);for(var Me=0;Me<z;++Me){var ht=parseInt(u.substr(2*Me,2),16);if(isNaN(ht))return Me;l[v+Me]=ht}return Me}function B(l,u,v,z){return Vr(Er(u,l.length-v),l,v,z)}function X(l,u,v,z){return Vr(function(le){for(var ve=[],Me=0;Me<le.length;++Me)ve.push(255&le.charCodeAt(Me));return ve}(u),l,v,z)}function he(l,u,v,z){return X(l,u,v,z)}function De(l,u,v,z){return Vr(cn(u),l,v,z)}function Ve(l,u,v,z){return Vr(function(le,ve){for(var Me,ht,_t,Jt=[],qt=0;qt<le.length&&!((ve-=2)<0);++qt)Me=le.charCodeAt(qt),ht=Me>>8,_t=Me%256,Jt.push(_t),Jt.push(ht);return Jt}(u,l.length-v),l,v,z)}function Be(l,u,v){return u===0&&v===l.length?h(l):h(l.slice(u,v))}function ze(l,u,v){v=Math.min(l.length,v);for(var z=[],le=u;le<v;){var ve,Me,ht,_t,Jt=l[le],qt=null,_r=Jt>239?4:Jt>223?3:Jt>191?2:1;if(le+_r<=v)switch(_r){case 1:Jt<128&&(qt=Jt);break;case 2:(192&(ve=l[le+1]))==128&&(_t=(31&Jt)<<6|63&ve)>127&&(qt=_t);break;case 3:ve=l[le+1],Me=l[le+2],(192&ve)==128&&(192&Me)==128&&(_t=(15&Jt)<<12|(63&ve)<<6|63&Me)>2047&&(_t<55296||_t>57343)&&(qt=_t);break;case 4:ve=l[le+1],Me=l[le+2],ht=l[le+3],(192&ve)==128&&(192&Me)==128&&(192&ht)==128&&(_t=(15&Jt)<<18|(63&ve)<<12|(63&Me)<<6|63&ht)>65535&&_t<1114112&&(qt=_t)}qt===null?(qt=65533,_r=1):qt>65535&&(qt-=65536,z.push(qt>>>10&1023|55296),qt=56320|1023&qt),z.push(qt),le+=_r}return function(Hr){var Nr=Hr.length;if(Nr<=4096)return String.fromCharCode.apply(String,Hr);for(var yn="",qn=0;qn<Nr;)yn+=String.fromCharCode.apply(String,Hr.slice(qn,qn+=4096));return yn}(z)}function lt(l,u,v){var z="";v=Math.min(l.length,v);for(var le=u;le<v;++le)z+=String.fromCharCode(127&l[le]);return z}function Ze(l,u,v){var z="";v=Math.min(l.length,v);for(var le=u;le<v;++le)z+=String.fromCharCode(l[le]);return z}function Pt(l,u,v){var z,le=l.length;(!u||u<0)&&(u=0),(!v||v<0||v>le)&&(v=le);for(var ve="",Me=u;Me<v;++Me)ve+=(z=l[Me])<16?"0"+z.toString(16):z.toString(16);return ve}function jt(l,u,v){for(var z=l.slice(u,v),le="",ve=0;ve<z.length;ve+=2)le+=String.fromCharCode(z[ve]+256*z[ve+1]);return le}function nr(l,u,v){if(l%1!=0||l<0)throw new RangeError("offset is not uint");if(l+u>v)throw new RangeError("Trying to access beyond buffer length")}function Bt(l,u,v,z,le,ve){if(!Ke(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>le||u<ve)throw new RangeError('"value" argument is out of bounds');if(v+z>l.length)throw new RangeError("Index out of range")}function xr(l,u,v,z){u<0&&(u=65535+u+1);for(var le=0,ve=Math.min(l.length-v,2);le<ve;++le)l[v+le]=(u&255<<8*(z?le:1-le))>>>8*(z?le:1-le)}function Pr(l,u,v,z){u<0&&(u=4294967295+u+1);for(var le=0,ve=Math.min(l.length-v,4);le<ve;++le)l[v+le]=u>>>8*(z?le:3-le)&255}function gr(l,u,v,z,le,ve){if(v+z>l.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function Cr(l,u,v,z,le){return le||gr(l,0,v,4),Ge(l,u,v,z,23,4),v+4}function qr(l,u,v,z,le){return le||gr(l,0,v,8),Ge(l,u,v,z,52,8),v+8}re.TYPED_ARRAY_SUPPORT=ie.TYPED_ARRAY_SUPPORT===void 0||ie.TYPED_ARRAY_SUPPORT,re.poolSize=8192,re._augment=function(l){return l.__proto__=re.prototype,l},re.from=function(l,u,v){return be(null,l,u,v)},re.TYPED_ARRAY_SUPPORT&&(re.prototype.__proto__=Uint8Array.prototype,re.__proto__=Uint8Array),re.alloc=function(l,u,v){return function(z,le,ve,Me){return $e(le),le<=0?se(z,le):ve!==void 0?typeof Me=="string"?se(z,le).fill(ve,Me):se(z,le).fill(ve):se(z,le)}(null,l,u,v)},re.allocUnsafe=function(l){return dt(null,l)},re.allocUnsafeSlow=function(l){return dt(null,l)},re.isBuffer=dn,re.compare=function(l,u){if(!Ke(l)||!Ke(u))throw new TypeError("Arguments must be Buffers");if(l===u)return 0;for(var v=l.length,z=u.length,le=0,ve=Math.min(v,z);le<ve;++le)if(l[le]!==u[le]){v=l[le],z=u[le];break}return v<z?-1:z<v?1:0},re.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},re.concat=function(l,u){if(!xe(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return re.alloc(0);var v;if(u===void 0)for(u=0,v=0;v<l.length;++v)u+=l[v].length;var z=re.allocUnsafe(u),le=0;for(v=0;v<l.length;++v){var ve=l[v];if(!Ke(ve))throw new TypeError('"list" argument must be an Array of Buffers');ve.copy(z,le),le+=ve.length}return z},re.byteLength=nt,re.prototype._isBuffer=!0,re.prototype.swap16=function(){var l=this.length;if(l%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<l;u+=2)yt(this,u,u+1);return this},re.prototype.swap32=function(){var l=this.length;if(l%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<l;u+=4)yt(this,u,u+3),yt(this,u+1,u+2);return this},re.prototype.swap64=function(){var l=this.length;if(l%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<l;u+=8)yt(this,u,u+7),yt(this,u+1,u+6),yt(this,u+2,u+5),yt(this,u+3,u+4);return this},re.prototype.toString=function(){var l=0|this.length;return l===0?"":arguments.length===0?ze(this,0,l):mt.apply(this,arguments)},re.prototype.equals=function(l){if(!Ke(l))throw new TypeError("Argument must be a Buffer");return this===l||re.compare(this,l)===0},re.prototype.inspect=function(){var l="";return this.length>0&&(l=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(l+=" ... ")),"<Buffer "+l+">"},re.prototype.compare=function(l,u,v,z,le){if(!Ke(l))throw new TypeError("Argument must be a Buffer");if(u===void 0&&(u=0),v===void 0&&(v=l?l.length:0),z===void 0&&(z=0),le===void 0&&(le=this.length),u<0||v>l.length||z<0||le>this.length)throw new RangeError("out of range index");if(z>=le&&u>=v)return 0;if(z>=le)return-1;if(u>=v)return 1;if(this===l)return 0;for(var ve=(le>>>=0)-(z>>>=0),Me=(v>>>=0)-(u>>>=0),ht=Math.min(ve,Me),_t=this.slice(z,le),Jt=l.slice(u,v),qt=0;qt<ht;++qt)if(_t[qt]!==Jt[qt]){ve=_t[qt],Me=Jt[qt];break}return ve<Me?-1:Me<ve?1:0},re.prototype.includes=function(l,u,v){return this.indexOf(l,u,v)!==-1},re.prototype.indexOf=function(l,u,v){return Nt(this,l,u,v,!0)},re.prototype.lastIndexOf=function(l,u,v){return Nt(this,l,u,v,!1)},re.prototype.write=function(l,u,v,z){if(u===void 0)z="utf8",v=this.length,u=0;else if(v===void 0&&typeof u=="string")z=u,v=this.length,u=0;else{if(!isFinite(u))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");u|=0,isFinite(v)?(v|=0,z===void 0&&(z="utf8")):(z=v,v=void 0)}var le=this.length-u;if((v===void 0||v>le)&&(v=le),l.length>0&&(v<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");for(var ve=!1;;)switch(z){case"hex":return Ft(this,l,u,v);case"utf8":case"utf-8":return B(this,l,u,v);case"ascii":return X(this,l,u,v);case"latin1":case"binary":return he(this,l,u,v);case"base64":return De(this,l,u,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve(this,l,u,v);default:if(ve)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),ve=!0}},re.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},re.prototype.slice=function(l,u){var v,z=this.length;if((l=~~l)<0?(l+=z)<0&&(l=0):l>z&&(l=z),(u=u===void 0?z:~~u)<0?(u+=z)<0&&(u=0):u>z&&(u=z),u<l&&(u=l),re.TYPED_ARRAY_SUPPORT)(v=this.subarray(l,u)).__proto__=re.prototype;else{var le=u-l;v=new re(le,void 0);for(var ve=0;ve<le;++ve)v[ve]=this[ve+l]}return v},re.prototype.readUIntLE=function(l,u,v){l|=0,u|=0,v||nr(l,u,this.length);for(var z=this[l],le=1,ve=0;++ve<u&&(le*=256);)z+=this[l+ve]*le;return z},re.prototype.readUIntBE=function(l,u,v){l|=0,u|=0,v||nr(l,u,this.length);for(var z=this[l+--u],le=1;u>0&&(le*=256);)z+=this[l+--u]*le;return z},re.prototype.readUInt8=function(l,u){return u||nr(l,1,this.length),this[l]},re.prototype.readUInt16LE=function(l,u){return u||nr(l,2,this.length),this[l]|this[l+1]<<8},re.prototype.readUInt16BE=function(l,u){return u||nr(l,2,this.length),this[l]<<8|this[l+1]},re.prototype.readUInt32LE=function(l,u){return u||nr(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+16777216*this[l+3]},re.prototype.readUInt32BE=function(l,u){return u||nr(l,4,this.length),16777216*this[l]+(this[l+1]<<16|this[l+2]<<8|this[l+3])},re.prototype.readIntLE=function(l,u,v){l|=0,u|=0,v||nr(l,u,this.length);for(var z=this[l],le=1,ve=0;++ve<u&&(le*=256);)z+=this[l+ve]*le;return z>=(le*=128)&&(z-=Math.pow(2,8*u)),z},re.prototype.readIntBE=function(l,u,v){l|=0,u|=0,v||nr(l,u,this.length);for(var z=u,le=1,ve=this[l+--z];z>0&&(le*=256);)ve+=this[l+--z]*le;return ve>=(le*=128)&&(ve-=Math.pow(2,8*u)),ve},re.prototype.readInt8=function(l,u){return u||nr(l,1,this.length),128&this[l]?-1*(255-this[l]+1):this[l]},re.prototype.readInt16LE=function(l,u){u||nr(l,2,this.length);var v=this[l]|this[l+1]<<8;return 32768&v?4294901760|v:v},re.prototype.readInt16BE=function(l,u){u||nr(l,2,this.length);var v=this[l+1]|this[l]<<8;return 32768&v?4294901760|v:v},re.prototype.readInt32LE=function(l,u){return u||nr(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},re.prototype.readInt32BE=function(l,u){return u||nr(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},re.prototype.readFloatLE=function(l,u){return u||nr(l,4,this.length),ne(this,l,!0,23,4)},re.prototype.readFloatBE=function(l,u){return u||nr(l,4,this.length),ne(this,l,!1,23,4)},re.prototype.readDoubleLE=function(l,u){return u||nr(l,8,this.length),ne(this,l,!0,52,8)},re.prototype.readDoubleBE=function(l,u){return u||nr(l,8,this.length),ne(this,l,!1,52,8)},re.prototype.writeUIntLE=function(l,u,v,z){l=+l,u|=0,v|=0,z||Bt(this,l,u,v,Math.pow(2,8*v)-1,0);var le=1,ve=0;for(this[u]=255&l;++ve<v&&(le*=256);)this[u+ve]=l/le&255;return u+v},re.prototype.writeUIntBE=function(l,u,v,z){l=+l,u|=0,v|=0,z||Bt(this,l,u,v,Math.pow(2,8*v)-1,0);var le=v-1,ve=1;for(this[u+le]=255&l;--le>=0&&(ve*=256);)this[u+le]=l/ve&255;return u+v},re.prototype.writeUInt8=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,1,255,0),re.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[u]=255&l,u+1},re.prototype.writeUInt16LE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,2,65535,0),re.TYPED_ARRAY_SUPPORT?(this[u]=255&l,this[u+1]=l>>>8):xr(this,l,u,!0),u+2},re.prototype.writeUInt16BE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,2,65535,0),re.TYPED_ARRAY_SUPPORT?(this[u]=l>>>8,this[u+1]=255&l):xr(this,l,u,!1),u+2},re.prototype.writeUInt32LE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,4,4294967295,0),re.TYPED_ARRAY_SUPPORT?(this[u+3]=l>>>24,this[u+2]=l>>>16,this[u+1]=l>>>8,this[u]=255&l):Pr(this,l,u,!0),u+4},re.prototype.writeUInt32BE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,4,4294967295,0),re.TYPED_ARRAY_SUPPORT?(this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=255&l):Pr(this,l,u,!1),u+4},re.prototype.writeIntLE=function(l,u,v,z){if(l=+l,u|=0,!z){var le=Math.pow(2,8*v-1);Bt(this,l,u,v,le-1,-le)}var ve=0,Me=1,ht=0;for(this[u]=255&l;++ve<v&&(Me*=256);)l<0&&ht===0&&this[u+ve-1]!==0&&(ht=1),this[u+ve]=(l/Me>>0)-ht&255;return u+v},re.prototype.writeIntBE=function(l,u,v,z){if(l=+l,u|=0,!z){var le=Math.pow(2,8*v-1);Bt(this,l,u,v,le-1,-le)}var ve=v-1,Me=1,ht=0;for(this[u+ve]=255&l;--ve>=0&&(Me*=256);)l<0&&ht===0&&this[u+ve+1]!==0&&(ht=1),this[u+ve]=(l/Me>>0)-ht&255;return u+v},re.prototype.writeInt8=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,1,127,-128),re.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[u]=255&l,u+1},re.prototype.writeInt16LE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,2,32767,-32768),re.TYPED_ARRAY_SUPPORT?(this[u]=255&l,this[u+1]=l>>>8):xr(this,l,u,!0),u+2},re.prototype.writeInt16BE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,2,32767,-32768),re.TYPED_ARRAY_SUPPORT?(this[u]=l>>>8,this[u+1]=255&l):xr(this,l,u,!1),u+2},re.prototype.writeInt32LE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,4,2147483647,-2147483648),re.TYPED_ARRAY_SUPPORT?(this[u]=255&l,this[u+1]=l>>>8,this[u+2]=l>>>16,this[u+3]=l>>>24):Pr(this,l,u,!0),u+4},re.prototype.writeInt32BE=function(l,u,v){return l=+l,u|=0,v||Bt(this,l,u,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),re.TYPED_ARRAY_SUPPORT?(this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=255&l):Pr(this,l,u,!1),u+4},re.prototype.writeFloatLE=function(l,u,v){return Cr(this,l,u,!0,v)},re.prototype.writeFloatBE=function(l,u,v){return Cr(this,l,u,!1,v)},re.prototype.writeDoubleLE=function(l,u,v){return qr(this,l,u,!0,v)},re.prototype.writeDoubleBE=function(l,u,v){return qr(this,l,u,!1,v)},re.prototype.copy=function(l,u,v,z){if(v||(v=0),z||z===0||(z=this.length),u>=l.length&&(u=l.length),u||(u=0),z>0&&z<v&&(z=v),z===v||l.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(v<0||v>=this.length)throw new RangeError("sourceStart out of bounds");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),l.length-u<z-v&&(z=l.length-u+v);var le,ve=z-v;if(this===l&&v<u&&u<z)for(le=ve-1;le>=0;--le)l[le+u]=this[le+v];else if(ve<1e3||!re.TYPED_ARRAY_SUPPORT)for(le=0;le<ve;++le)l[le+u]=this[le+v];else Uint8Array.prototype.set.call(l,this.subarray(v,v+ve),u);return ve},re.prototype.fill=function(l,u,v,z){if(typeof l=="string"){if(typeof u=="string"?(z=u,u=0,v=this.length):typeof v=="string"&&(z=v,v=this.length),l.length===1){var le=l.charCodeAt(0);le<256&&(l=le)}if(z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!re.isEncoding(z))throw new TypeError("Unknown encoding: "+z)}else typeof l=="number"&&(l&=255);if(u<0||this.length<u||this.length<v)throw new RangeError("Out of range index");if(v<=u)return this;var ve;if(u>>>=0,v=v===void 0?this.length:v>>>0,l||(l=0),typeof l=="number")for(ve=u;ve<v;++ve)this[ve]=l;else{var Me=Ke(l)?l:Er(new re(l,z).toString()),ht=Me.length;for(ve=0;ve<v-u;++ve)this[ve+u]=Me[ve%ht]}return this};var on=/[^+\/0-9A-Za-z-_]/g;function Er(l,u){var v;u=u||1/0;for(var z=l.length,le=null,ve=[],Me=0;Me<z;++Me){if((v=l.charCodeAt(Me))>55295&&v<57344){if(!le){if(v>56319){(u-=3)>-1&&ve.push(239,191,189);continue}if(Me+1===z){(u-=3)>-1&&ve.push(239,191,189);continue}le=v;continue}if(v<56320){(u-=3)>-1&&ve.push(239,191,189),le=v;continue}v=65536+(le-55296<<10|v-56320)}else le&&(u-=3)>-1&&ve.push(239,191,189);if(le=null,v<128){if((u-=1)<0)break;ve.push(v)}else if(v<2048){if((u-=2)<0)break;ve.push(v>>6|192,63&v|128)}else if(v<65536){if((u-=3)<0)break;ve.push(v>>12|224,v>>6&63|128,63&v|128)}else{if(!(v<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;ve.push(v>>18|240,v>>12&63|128,v>>6&63|128,63&v|128)}}return ve}function cn(l){return function(u){var v,z,le,ve,Me,ht;q||te();var _t=u.length;if(_t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");Me=u[_t-2]==="="?2:u[_t-1]==="="?1:0,ht=new P(3*_t/4-Me),le=Me>0?_t-4:_t;var Jt=0;for(v=0,z=0;v<le;v+=4,z+=3)ve=S[u.charCodeAt(v)]<<18|S[u.charCodeAt(v+1)]<<12|S[u.charCodeAt(v+2)]<<6|S[u.charCodeAt(v+3)],ht[Jt++]=ve>>16&255,ht[Jt++]=ve>>8&255,ht[Jt++]=255&ve;return Me===2?(ve=S[u.charCodeAt(v)]<<2|S[u.charCodeAt(v+1)]>>4,ht[Jt++]=255&ve):Me===1&&(ve=S[u.charCodeAt(v)]<<10|S[u.charCodeAt(v+1)]<<4|S[u.charCodeAt(v+2)]>>2,ht[Jt++]=ve>>8&255,ht[Jt++]=255&ve),ht}(function(u){if((u=function(v){return v.trim?v.trim():v.replace(/^\s+|\s+$/g,"")}(u).replace(on,"")).length<2)return"";for(;u.length%4!=0;)u+="=";return u}(l))}function Vr(l,u,v,z){for(var le=0;le<z&&!(le+v>=u.length||le>=l.length);++le)u[le+v]=l[le];return le}function dn(l){return l!=null&&(!!l._isBuffer||vr(l)||function(u){return typeof u.readFloatLE=="function"&&typeof u.slice=="function"&&vr(u.slice(0,0))}(l))}function vr(l){return!!l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function lr(){throw new Error("setTimeout has not been defined")}function gn(){throw new Error("clearTimeout has not been defined")}var Dr=lr,br=gn;function hn(l){if(Dr===setTimeout)return setTimeout(l,0);if((Dr===lr||!Dr)&&setTimeout)return Dr=setTimeout,setTimeout(l,0);try{return Dr(l,0)}catch{try{return Dr.call(null,l,0)}catch{return Dr.call(this,l,0)}}}typeof ie.setTimeout=="function"&&(Dr=setTimeout),typeof ie.clearTimeout=="function"&&(br=clearTimeout);var sn,Sr=[],Yr=!1,kr=-1;function Wn(){Yr&&sn&&(Yr=!1,sn.length?Sr=sn.concat(Sr):kr=-1,Sr.length&&Jn())}function Jn(){if(!Yr){var l=hn(Wn);Yr=!0;for(var u=Sr.length;u;){for(sn=Sr,Sr=[];++kr<u;)sn&&sn[kr].run();kr=-1,u=Sr.length}sn=null,Yr=!1,function(v){if(br===clearTimeout)return clearTimeout(v);if((br===gn||!br)&&clearTimeout)return br=clearTimeout,clearTimeout(v);try{br(v)}catch{try{return br.call(null,v)}catch{return br.call(this,v)}}}(l)}}function ln(l){var u=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)u[v-1]=arguments[v];Sr.push(new Zn(l,u)),Sr.length!==1||Yr||hn(Jn)}function Zn(l,u){this.fun=l,this.array=u}Zn.prototype.run=function(){this.fun.apply(null,this.array)};var xn=ie.performance||{},Cn=(xn.now||xn.mozNow||xn.msNow||xn.oNow||xn.webkitNow,typeof Object.create=="function"?function(l,u){l.super_=u,l.prototype=Object.create(u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}})}:function(l,u){l.super_=u;var v=function(){};v.prototype=u.prototype,l.prototype=new v,l.prototype.constructor=l}),Sn=/%[sdj%]/g;function mn(l){if(!cr(l)){for(var u=[],v=0;v<arguments.length;v++)u.push(Ee(arguments[v]));return u.join(" ")}v=1;for(var z=arguments,le=z.length,ve=String(l).replace(Sn,function(ht){if(ht==="%%")return"%";if(v>=le)return ht;switch(ht){case"%s":return String(z[v++]);case"%d":return Number(z[v++]);case"%j":try{return JSON.stringify(z[v++])}catch{return"[Circular]"}default:return ht}}),Me=z[v];v<le;Me=z[++v])tr(Me)||!Br(Me)?ve+=" "+Me:ve+=" "+Ee(Me);return ve}function je(l,u){if(mr(ie.process))return function(){return je(l,u).apply(this,arguments)};var v=!1;return function(){return v||(console.error(u),v=!0),l.apply(this,arguments)}}var Fe,Ie={};function Ee(l,u){var v={seen:[],stylize:Je};return arguments.length>=3&&(v.depth=arguments[2]),arguments.length>=4&&(v.colors=arguments[3]),Rt(u)?v.showHidden=u:u&&pn(v,u),mr(v.showHidden)&&(v.showHidden=!1),mr(v.depth)&&(v.depth=2),mr(v.colors)&&(v.colors=!1),mr(v.customInspect)&&(v.customInspect=!0),v.colors&&(v.stylize=Te),It(v,l,v.depth)}function Te(l,u){var v=Ee.styles[u];return v?"\x1B["+Ee.colors[v][0]+"m"+l+"\x1B["+Ee.colors[v][1]+"m":l}function Je(l,u){return l}function It(l,u,v){if(l.customInspect&&u&&yr(u.inspect)&&u.inspect!==Ee&&(!u.constructor||u.constructor.prototype!==u)){var z=u.inspect(v,l);return cr(z)||(z=It(l,z,v)),z}var le=function(Nr,yn){if(mr(yn))return Nr.stylize("undefined","undefined");if(cr(yn)){var qn="'"+JSON.stringify(yn).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Nr.stylize(qn,"string")}return typeof yn=="number"?Nr.stylize(""+yn,"number"):Rt(yn)?Nr.stylize(""+yn,"boolean"):tr(yn)?Nr.stylize("null","null"):void 0}(l,u);if(le)return le;var ve=Object.keys(u),Me=function(Nr){var yn={};return Nr.forEach(function(qn,En){yn[qn]=!0}),yn}(ve);if(l.showHidden&&(ve=Object.getOwnPropertyNames(u)),tn(u)&&(ve.indexOf("message")>=0||ve.indexOf("description")>=0))return wt(u);if(ve.length===0){if(yr(u)){var ht=u.name?": "+u.name:"";return l.stylize("[Function"+ht+"]","special")}if(Wr(u))return l.stylize(RegExp.prototype.toString.call(u),"regexp");if(Rr(u))return l.stylize(Date.prototype.toString.call(u),"date");if(tn(u))return wt(u)}var _t,Jt,qt="",_r=!1,Hr=["{","}"];return _t=u,Array.isArray(_t)&&(_r=!0,Hr=["[","]"]),yr(u)&&(qt=" [Function"+(u.name?": "+u.name:"")+"]"),Wr(u)&&(qt=" "+RegExp.prototype.toString.call(u)),Rr(u)&&(qt=" "+Date.prototype.toUTCString.call(u)),tn(u)&&(qt=" "+wt(u)),ve.length!==0||_r&&u.length!=0?v<0?Wr(u)?l.stylize(RegExp.prototype.toString.call(u),"regexp"):l.stylize("[Object]","special"):(l.seen.push(u),Jt=_r?function(Nr,yn,qn,En,di){for(var $i=[],Oo=0,Gi=yn.length;Oo<Gi;++Oo)ge(yn,String(Oo))?$i.push(Ot(Nr,yn,qn,En,String(Oo),!0)):$i.push("");return di.forEach(function(Mn){Mn.match(/^\d+$/)||$i.push(Ot(Nr,yn,qn,En,Mn,!0))}),$i}(l,u,v,Me,ve):ve.map(function(Nr){return Ot(l,u,v,Me,Nr,_r)}),l.seen.pop(),function(Nr,yn,qn){return Nr.reduce(function(En,di){return di.indexOf(`
`),En+di.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?qn[0]+(yn===""?"":yn+`
 `)+" "+Nr.join(`,
  `)+" "+qn[1]:qn[0]+yn+" "+Nr.join(", ")+" "+qn[1]}(Jt,qt,Hr)):Hr[0]+qt+Hr[1]}function wt(l){return"["+Error.prototype.toString.call(l)+"]"}function Ot(l,u,v,z,le,ve){var Me,ht,_t;if((_t=Object.getOwnPropertyDescriptor(u,le)||{value:u[le]}).get?ht=_t.set?l.stylize("[Getter/Setter]","special"):l.stylize("[Getter]","special"):_t.set&&(ht=l.stylize("[Setter]","special")),ge(z,le)||(Me="["+le+"]"),ht||(l.seen.indexOf(_t.value)<0?(ht=tr(v)?It(l,_t.value,null):It(l,_t.value,v-1)).indexOf(`
`)>-1&&(ht=ve?ht.split(`
`).map(function(Jt){return"  "+Jt}).join(`
`).substr(2):`
`+ht.split(`
`).map(function(Jt){return"   "+Jt}).join(`
`)):ht=l.stylize("[Circular]","special")),mr(Me)){if(ve&&le.match(/^\d+$/))return ht;(Me=JSON.stringify(""+le)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Me=Me.substr(1,Me.length-2),Me=l.stylize(Me,"name")):(Me=Me.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Me=l.stylize(Me,"string"))}return Me+": "+ht}function Rt(l){return typeof l=="boolean"}function tr(l){return l===null}function cr(l){return typeof l=="string"}function mr(l){return l===void 0}function Wr(l){return Br(l)&&Kt(l)==="[object RegExp]"}function Br(l){return typeof l=="object"&&l!==null}function Rr(l){return Br(l)&&Kt(l)==="[object Date]"}function tn(l){return Br(l)&&(Kt(l)==="[object Error]"||l instanceof Error)}function yr(l){return typeof l=="function"}function Kt(l){return Object.prototype.toString.call(l)}function pn(l,u){if(!u||!Br(u))return l;for(var v=Object.keys(u),z=v.length;z--;)l[v[z]]=u[v[z]];return l}function ge(l,u){return Object.prototype.hasOwnProperty.call(l,u)}function Ue(){this.head=null,this.tail=null,this.length=0}Ee.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Ee.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Ue.prototype.push=function(l){var u={data:l,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},Ue.prototype.unshift=function(l){var u={data:l,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length},Ue.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},Ue.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ue.prototype.join=function(l){if(this.length===0)return"";for(var u=this.head,v=""+u.data;u=u.next;)v+=l+u.data;return v},Ue.prototype.concat=function(l){if(this.length===0)return re.alloc(0);if(this.length===1)return this.head.data;for(var u=re.allocUnsafe(l>>>0),v=this.head,z=0;v;)v.data.copy(u,z),z+=v.data.length,v=v.next;return u};var pt=re.isEncoding||function(l){switch(l&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function it(l){switch(this.encoding=(l||"utf8").toLowerCase().replace(/[-_]/,""),function(u){if(u&&!pt(u))throw new Error("Unknown encoding: "+u)}(l),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=ur;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=gt;break;default:return void(this.write=Qt)}this.charBuffer=new re(6),this.charReceived=0,this.charLength=0}function Qt(l){return l.toString(this.encoding)}function ur(l){this.charReceived=l.length%2,this.charLength=this.charReceived?2:0}function gt(l){this.charReceived=l.length%3,this.charLength=this.charReceived?3:0}it.prototype.write=function(l){for(var u="";this.charLength;){var v=l.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:l.length;if(l.copy(this.charBuffer,this.charReceived,0,v),this.charReceived+=v,this.charReceived<this.charLength)return"";if(l=l.slice(v,l.length),!((z=(u=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(u.length-1))>=55296&&z<=56319)){if(this.charReceived=this.charLength=0,l.length===0)return u;break}this.charLength+=this.surrogateSize,u=""}this.detectIncompleteChar(l);var z,le=l.length;if(this.charLength&&(l.copy(this.charBuffer,0,l.length-this.charReceived,le),le-=this.charReceived),le=(u+=l.toString(this.encoding,0,le)).length-1,(z=u.charCodeAt(le))>=55296&&z<=56319){var ve=this.surrogateSize;return this.charLength+=ve,this.charReceived+=ve,this.charBuffer.copy(this.charBuffer,ve,0,ve),l.copy(this.charBuffer,0,0,ve),u.substring(0,le)}return u},it.prototype.detectIncompleteChar=function(l){for(var u=l.length>=3?3:l.length;u>0;u--){var v=l[l.length-u];if(u==1&&v>>5==6){this.charLength=2;break}if(u<=2&&v>>4==14){this.charLength=3;break}if(u<=3&&v>>3==30){this.charLength=4;break}}this.charReceived=u},it.prototype.end=function(l){var u="";if(l&&l.length&&(u=this.write(l)),this.charReceived){var v=this.charReceived,z=this.charBuffer,le=this.encoding;u+=z.slice(0,v).toString(le)}return u},Ur.ReadableState=Gr;var Ht,Ut=(Ht="stream",mr(Fe)&&(Fe=""),Ht=Ht.toUpperCase(),Ie[Ht]||(new RegExp("\\b"+Ht+"\\b","i").test(Fe)?Ie[Ht]=function(){var l=mn.apply(null,arguments);console.error("%s %d: %s",Ht,0,l)}:Ie[Ht]=function(){}),Ie[Ht]);function Gr(l,u){l=l||{},this.objectMode=!!l.objectMode,u instanceof Mr&&(this.objectMode=this.objectMode||!!l.readableObjectMode);var v=l.highWaterMark,z=this.objectMode?16:16384;this.highWaterMark=v||v===0?v:z,this.highWaterMark=~~this.highWaterMark,this.buffer=new Ue,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=l.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,l.encoding&&(this.decoder=new it(l.encoding),this.encoding=l.encoding)}function Ur(l){if(!(this instanceof Ur))return new Ur(l);this._readableState=new Gr(l,this),this.readable=!0,l&&typeof l.read=="function"&&(this._read=l.read),R.call(this)}function Un(l,u,v,z,le){var ve=function(Jt,qt){var _r=null;return dn(qt)||typeof qt=="string"||qt==null||Jt.objectMode||(_r=new TypeError("Invalid non-string/buffer chunk")),_r}(u,v);if(ve)l.emit("error",ve);else if(v===null)u.reading=!1,function(Jt,qt){if(!qt.ended){if(qt.decoder){var _r=qt.decoder.end();_r&&_r.length&&(qt.buffer.push(_r),qt.length+=qt.objectMode?1:_r.length)}qt.ended=!0,ar(Jt)}}(l,u);else if(u.objectMode||v&&v.length>0)if(u.ended&&!le){var Me=new Error("stream.push() after EOF");l.emit("error",Me)}else if(u.endEmitted&&le){var ht=new Error("stream.unshift() after end event");l.emit("error",ht)}else{var _t;!u.decoder||le||z||(v=u.decoder.write(v),_t=!u.objectMode&&v.length===0),le||(u.reading=!1),_t||(u.flowing&&u.length===0&&!u.sync?(l.emit("data",v),l.read(0)):(u.length+=u.objectMode?1:v.length,le?u.buffer.unshift(v):u.buffer.push(v),u.needReadable&&ar(l))),function(Jt,qt){qt.readingMore||(qt.readingMore=!0,ln(Fn,Jt,qt))}(l,u)}else le||(u.reading=!1);return function(Jt){return!Jt.ended&&(Jt.needReadable||Jt.length<Jt.highWaterMark||Jt.length===0)}(u)}function ei(l,u){return l<=0||u.length===0&&u.ended?0:u.objectMode?1:l!=l?u.flowing&&u.length?u.buffer.head.data.length:u.length:(l>u.highWaterMark&&(u.highWaterMark=function(v){return v>=8388608?v=8388608:(v--,v|=v>>>1,v|=v>>>2,v|=v>>>4,v|=v>>>8,v|=v>>>16,v++),v}(l)),l<=u.length?l:u.ended?u.length:(u.needReadable=!0,0))}function ar(l){var u=l._readableState;u.needReadable=!1,u.emittedReadable||(Ut("emitReadable",u.flowing),u.emittedReadable=!0,u.sync?ln(Lr,l):Lr(l))}function Lr(l){Ut("emit readable"),l.emit("readable"),Le(l)}function Fn(l,u){for(var v=u.length;!u.reading&&!u.flowing&&!u.ended&&u.length<u.highWaterMark&&(Ut("maybeReadMore read 0"),l.read(0),v!==u.length);)v=u.length;u.readingMore=!1}function Ye(l){Ut("readable nexttick read 0"),l.read(0)}function ye(l,u){u.reading||(Ut("resume read 0"),l.read(0)),u.resumeScheduled=!1,u.awaitDrain=0,l.emit("resume"),Le(l),u.flowing&&!u.reading&&l.read(0)}function Le(l){var u=l._readableState;for(Ut("flow",u.flowing);u.flowing&&l.read()!==null;);}function J(l,u){return u.length===0?null:(u.objectMode?v=u.buffer.shift():!l||l>=u.length?(v=u.decoder?u.buffer.join(""):u.buffer.length===1?u.buffer.head.data:u.buffer.concat(u.length),u.buffer.clear()):v=function(z,le,ve){var Me;return z<le.head.data.length?(Me=le.head.data.slice(0,z),le.head.data=le.head.data.slice(z)):Me=z===le.head.data.length?le.shift():ve?function(ht,_t){var Jt=_t.head,qt=1,_r=Jt.data;for(ht-=_r.length;Jt=Jt.next;){var Hr=Jt.data,Nr=ht>Hr.length?Hr.length:ht;if(Nr===Hr.length?_r+=Hr:_r+=Hr.slice(0,ht),(ht-=Nr)==0){Nr===Hr.length?(++qt,Jt.next?_t.head=Jt.next:_t.head=_t.tail=null):(_t.head=Jt,Jt.data=Hr.slice(Nr));break}++qt}return _t.length-=qt,_r}(z,le):function(ht,_t){var Jt=re.allocUnsafe(ht),qt=_t.head,_r=1;for(qt.data.copy(Jt),ht-=qt.data.length;qt=qt.next;){var Hr=qt.data,Nr=ht>Hr.length?Hr.length:ht;if(Hr.copy(Jt,Jt.length-ht,0,Nr),(ht-=Nr)==0){Nr===Hr.length?(++_r,qt.next?_t.head=qt.next:_t.head=_t.tail=null):(_t.head=qt,qt.data=Hr.slice(Nr));break}++_r}return _t.length-=_r,Jt}(z,le),Me}(l,u.buffer,u.decoder),v);var v}function H(l){var u=l._readableState;if(u.length>0)throw new Error('"endReadable()" called on non-empty stream');u.endEmitted||(u.ended=!0,ln(Se,u,l))}function Se(l,u){l.endEmitted||l.length!==0||(l.endEmitted=!0,u.readable=!1,u.emit("end"))}function Qe(l,u){for(var v=0,z=l.length;v<z;v++)if(l[v]===u)return v;return-1}function ct(){}function Lt(l,u,v){this.chunk=l,this.encoding=u,this.callback=v,this.next=null}function w(l,u){Object.defineProperty(this,"buffer",{get:je(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),l=l||{},this.objectMode=!!l.objectMode,u instanceof Mr&&(this.objectMode=this.objectMode||!!l.writableObjectMode);var v=l.highWaterMark,z=this.objectMode?16:16384;this.highWaterMark=v||v===0?v:z,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var le=l.decodeStrings===!1;this.decodeStrings=!le,this.defaultEncoding=l.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){(function(Me,ht){var _t=Me._writableState,Jt=_t.sync,qt=_t.writecb;if(function(Hr){Hr.writing=!1,Hr.writecb=null,Hr.length-=Hr.writelen,Hr.writelen=0}(_t),ht)(function(Hr,Nr,yn,qn,En){--Nr.pendingcb,yn?ln(En,qn):En(qn),Hr._writableState.errorEmitted=!0,Hr.emit("error",qn)})(Me,_t,Jt,ht,qt);else{var _r=st(_t);_r||_t.corked||_t.bufferProcessing||!_t.bufferedRequest||qe(Me,_t),Jt?ln(Oe,Me,_t,_r,qt):Oe(Me,_t,_r,qt)}})(u,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Vt(this)}function k(l){if(!(this instanceof k||this instanceof Mr))return new k(l);this._writableState=new w(l,this),this.writable=!0,l&&(typeof l.write=="function"&&(this._write=l.write),typeof l.writev=="function"&&(this._writev=l.writev)),R.call(this)}function ae(l,u,v,z,le,ve,Me){u.writelen=z,u.writecb=Me,u.writing=!0,u.sync=!0,v?l._writev(le,u.onwrite):l._write(le,ve,u.onwrite),u.sync=!1}function Oe(l,u,v,z){v||function(le,ve){ve.length===0&&ve.needDrain&&(ve.needDrain=!1,le.emit("drain"))}(l,u),u.pendingcb--,z(),kt(l,u)}function qe(l,u){u.bufferProcessing=!0;var v=u.bufferedRequest;if(l._writev&&v&&v.next){var z=u.bufferedRequestCount,le=new Array(z),ve=u.corkedRequestsFree;ve.entry=v;for(var Me=0;v;)le[Me]=v,v=v.next,Me+=1;ae(l,u,!0,u.length,le,"",ve.finish),u.pendingcb++,u.lastBufferedRequest=null,ve.next?(u.corkedRequestsFree=ve.next,ve.next=null):u.corkedRequestsFree=new Vt(u)}else{for(;v;){var ht=v.chunk,_t=v.encoding,Jt=v.callback;if(ae(l,u,!1,u.objectMode?1:ht.length,ht,_t,Jt),v=v.next,u.writing)break}v===null&&(u.lastBufferedRequest=null)}u.bufferedRequestCount=0,u.bufferedRequest=v,u.bufferProcessing=!1}function st(l){return l.ending&&l.length===0&&l.bufferedRequest===null&&!l.finished&&!l.writing}function Ct(l,u){u.prefinished||(u.prefinished=!0,l.emit("prefinish"))}function kt(l,u){var v=st(u);return v&&(u.pendingcb===0?(Ct(l,u),u.finished=!0,l.emit("finish")):Ct(l,u)),v}function Vt(l){var u=this;this.next=null,this.entry=null,this.finish=function(v){var z=u.entry;for(u.entry=null;z;){var le=z.callback;l.pendingcb--,le(v),z=z.next}l.corkedRequestsFree?l.corkedRequestsFree.next=u:l.corkedRequestsFree=u}}Cn(Ur,R),Ur.prototype.push=function(l,u){var v=this._readableState;return v.objectMode||typeof l!="string"||(u=u||v.defaultEncoding)!==v.encoding&&(l=re.from(l,u),u=""),Un(this,v,l,u,!1)},Ur.prototype.unshift=function(l){return Un(this,this._readableState,l,"",!0)},Ur.prototype.isPaused=function(){return this._readableState.flowing===!1},Ur.prototype.setEncoding=function(l){return this._readableState.decoder=new it(l),this._readableState.encoding=l,this},Ur.prototype.read=function(l){Ut("read",l),l=parseInt(l,10);var u=this._readableState,v=l;if(l!==0&&(u.emittedReadable=!1),l===0&&u.needReadable&&(u.length>=u.highWaterMark||u.ended))return Ut("read: emitReadable",u.length,u.ended),u.length===0&&u.ended?H(this):ar(this),null;if((l=ei(l,u))===0&&u.ended)return u.length===0&&H(this),null;var z,le=u.needReadable;return Ut("need readable",le),(u.length===0||u.length-l<u.highWaterMark)&&Ut("length less than watermark",le=!0),u.ended||u.reading?Ut("reading or ended",le=!1):le&&(Ut("do read"),u.reading=!0,u.sync=!0,u.length===0&&(u.needReadable=!0),this._read(u.highWaterMark),u.sync=!1,u.reading||(l=ei(v,u))),(z=l>0?J(l,u):null)===null?(u.needReadable=!0,l=0):u.length-=l,u.length===0&&(u.ended||(u.needReadable=!0),v!==l&&u.ended&&H(this)),z!==null&&this.emit("data",z),z},Ur.prototype._read=function(l){this.emit("error",new Error("not implemented"))},Ur.prototype.pipe=function(l,u){var v=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=l;break;case 1:z.pipes=[z.pipes,l];break;default:z.pipes.push(l)}z.pipesCount+=1,Ut("pipe count=%d opts=%j",z.pipesCount,u);var le=u&&u.end===!1?Jt:Me;function ve(En){Ut("onunpipe"),En===v&&Jt()}function Me(){Ut("onend"),l.end()}z.endEmitted?ln(le):v.once("end",le),l.on("unpipe",ve);var ht=function(En){return function(){var di=En._readableState;Ut("pipeOnDrain",di.awaitDrain),di.awaitDrain&&di.awaitDrain--,di.awaitDrain===0&&En.listeners("data").length&&(di.flowing=!0,Le(En))}}(v);l.on("drain",ht);var _t=!1;function Jt(){Ut("cleanup"),l.removeListener("close",Nr),l.removeListener("finish",yn),l.removeListener("drain",ht),l.removeListener("error",Hr),l.removeListener("unpipe",ve),v.removeListener("end",Me),v.removeListener("end",Jt),v.removeListener("data",_r),_t=!0,!z.awaitDrain||l._writableState&&!l._writableState.needDrain||ht()}var qt=!1;function _r(En){Ut("ondata"),qt=!1,l.write(En)!==!1||qt||((z.pipesCount===1&&z.pipes===l||z.pipesCount>1&&Qe(z.pipes,l)!==-1)&&!_t&&(Ut("false write response, pause",v._readableState.awaitDrain),v._readableState.awaitDrain++,qt=!0),v.pause())}function Hr(En){Ut("onerror",En),qn(),l.removeListener("error",Hr),function(di,$i){return di.listeners($i).length}(l,"error")===0&&l.emit("error",En)}function Nr(){l.removeListener("finish",yn),qn()}function yn(){Ut("onfinish"),l.removeListener("close",Nr),qn()}function qn(){Ut("unpipe"),v.unpipe(l)}return v.on("data",_r),function(En,di,$i){if(typeof En.prependListener=="function")return En.prependListener(di,$i);En._events&&En._events[di]?Array.isArray(En._events[di])?En._events[di].unshift($i):En._events[di]=[$i,En._events[di]]:En.on(di,$i)}(l,"error",Hr),l.once("close",Nr),l.once("finish",yn),l.emit("pipe",v),z.flowing||(Ut("pipe resume"),v.resume()),l},Ur.prototype.unpipe=function(l){var u=this._readableState;if(u.pipesCount===0)return this;if(u.pipesCount===1)return l&&l!==u.pipes||(l||(l=u.pipes),u.pipes=null,u.pipesCount=0,u.flowing=!1,l&&l.emit("unpipe",this)),this;if(!l){var v=u.pipes,z=u.pipesCount;u.pipes=null,u.pipesCount=0,u.flowing=!1;for(var le=0;le<z;le++)v[le].emit("unpipe",this);return this}var ve=Qe(u.pipes,l);return ve===-1||(u.pipes.splice(ve,1),u.pipesCount-=1,u.pipesCount===1&&(u.pipes=u.pipes[0]),l.emit("unpipe",this)),this},Ur.prototype.on=function(l,u){var v=R.prototype.on.call(this,l,u);if(l==="data")this._readableState.flowing!==!1&&this.resume();else if(l==="readable"){var z=this._readableState;z.endEmitted||z.readableListening||(z.readableListening=z.needReadable=!0,z.emittedReadable=!1,z.reading?z.length&&ar(this):ln(Ye,this))}return v},Ur.prototype.addListener=Ur.prototype.on,Ur.prototype.resume=function(){var l=this._readableState;return l.flowing||(Ut("resume"),l.flowing=!0,function(u,v){v.resumeScheduled||(v.resumeScheduled=!0,ln(ye,u,v))}(this,l)),this},Ur.prototype.pause=function(){return Ut("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ut("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ur.prototype.wrap=function(l){var u=this._readableState,v=!1,z=this;for(var le in l.on("end",function(){if(Ut("wrapped end"),u.decoder&&!u.ended){var ve=u.decoder.end();ve&&ve.length&&z.push(ve)}z.push(null)}),l.on("data",function(ve){Ut("wrapped data"),u.decoder&&(ve=u.decoder.write(ve)),u.objectMode&&ve==null||(u.objectMode||ve&&ve.length)&&(z.push(ve)||(v=!0,l.pause()))}),l)this[le]===void 0&&typeof l[le]=="function"&&(this[le]=function(ve){return function(){return l[ve].apply(l,arguments)}}(le));return function(ve,Me){for(var ht=0,_t=ve.length;ht<_t;ht++)Me(ve[ht],ht)}(["error","close","destroy","pause","resume"],function(ve){l.on(ve,z.emit.bind(z,ve))}),z._read=function(ve){Ut("wrapped _read",ve),v&&(v=!1,l.resume())},z},Ur._fromList=J,k.WritableState=w,Cn(k,R),w.prototype.getBuffer=function(){for(var l=this.bufferedRequest,u=[];l;)u.push(l),l=l.next;return u},k.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},k.prototype.write=function(l,u,v){var z=this._writableState,le=!1;return typeof u=="function"&&(v=u,u=null),re.isBuffer(l)?u="buffer":u||(u=z.defaultEncoding),typeof v!="function"&&(v=ct),z.ended?function(ve,Me){var ht=new Error("write after end");ve.emit("error",ht),ln(Me,ht)}(this,v):function(ve,Me,ht,_t){var Jt=!0,qt=!1;return ht===null?qt=new TypeError("May not write null values to stream"):re.isBuffer(ht)||typeof ht=="string"||ht===void 0||Me.objectMode||(qt=new TypeError("Invalid non-string/buffer chunk")),qt&&(ve.emit("error",qt),ln(_t,qt),Jt=!1),Jt}(this,z,l,v)&&(z.pendingcb++,le=function(ve,Me,ht,_t,Jt){ht=function(Nr,yn,qn){return Nr.objectMode||Nr.decodeStrings===!1||typeof yn!="string"||(yn=re.from(yn,qn)),yn}(Me,ht,_t),re.isBuffer(ht)&&(_t="buffer");var qt=Me.objectMode?1:ht.length;Me.length+=qt;var _r=Me.length<Me.highWaterMark;if(_r||(Me.needDrain=!0),Me.writing||Me.corked){var Hr=Me.lastBufferedRequest;Me.lastBufferedRequest=new Lt(ht,_t,Jt),Hr?Hr.next=Me.lastBufferedRequest:Me.bufferedRequest=Me.lastBufferedRequest,Me.bufferedRequestCount+=1}else ae(ve,Me,!1,qt,ht,_t,Jt);return _r}(this,z,l,u,v)),le},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var l=this._writableState;l.corked&&(l.corked--,l.writing||l.corked||l.finished||l.bufferProcessing||!l.bufferedRequest||qe(this,l))},k.prototype.setDefaultEncoding=function(l){if(typeof l=="string"&&(l=l.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((l+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+l);return this._writableState.defaultEncoding=l,this},k.prototype._write=function(l,u,v){v(new Error("not implemented"))},k.prototype._writev=null,k.prototype.end=function(l,u,v){var z=this._writableState;typeof l=="function"?(v=l,l=null,u=null):typeof u=="function"&&(v=u,u=null),l!=null&&this.write(l,u),z.corked&&(z.corked=1,this.uncork()),z.ending||z.finished||function(le,ve,Me){ve.ending=!0,kt(le,ve),Me&&(ve.finished?ln(Me):le.once("finish",Me)),ve.ended=!0,le.writable=!1}(this,z,v)},Cn(Mr,Ur);for(var rr=Object.keys(k.prototype),ir=0;ir<rr.length;ir++){var sr=rr[ir];Mr.prototype[sr]||(Mr.prototype[sr]=k.prototype[sr])}function Mr(l){if(!(this instanceof Mr))return new Mr(l);Ur.call(this,l),k.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Ir)}function Ir(){this.allowHalfOpen||this._writableState.ended||ln(wn,this)}function wn(l){l.end()}function un(l){this.afterTransform=function(u,v){return function(z,le,ve){var Me=z._transformState;Me.transforming=!1;var ht=Me.writecb;if(!ht)return z.emit("error",new Error("no writecb in Transform class"));Me.writechunk=null,Me.writecb=null,ve!=null&&z.push(ve),ht(le);var _t=z._readableState;_t.reading=!1,(_t.needReadable||_t.length<_t.highWaterMark)&&z._read(_t.highWaterMark)}(l,u,v)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Zr(l){if(!(this instanceof Zr))return new Zr(l);Mr.call(this,l),this._transformState=new un(this);var u=this;this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(v){Hn(u,v)}):Hn(u)})}function Hn(l,u){if(u)return l.emit("error",u);var v=l._writableState,z=l._transformState;if(v.length)throw new Error("Calling transform done when ws.length != 0");if(z.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}function An(l){if(!(this instanceof An))return new An(l);Zr.call(this,l)}function Re(){R.call(this)}function Ae(l){return(Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(l)}function r(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function a(l,u){for(var v=0;v<u.length;v++){var z=u[v];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(l,z.key,z)}}function d(l,u,v){return u&&a(l.prototype,u),l}function g(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),u&&L(l,u)}function N(l){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)})(l)}function L(l,u){return(L=Object.setPrototypeOf||function(v,z){return v.__proto__=z,v})(l,u)}function I(l,u){return!u||typeof u!="object"&&typeof u!="function"?function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}(l):u}function $(l){return function(u){if(Array.isArray(u)){for(var v=0,z=new Array(u.length);v<u.length;v++)z[v]=u[v];return z}}(l)||function(u){if(Symbol.iterator in Object(u)||Object.prototype.toString.call(u)==="[object Arguments]")return Array.from(u)}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Cn(Zr,Mr),Zr.prototype.push=function(l,u){return this._transformState.needTransform=!1,Mr.prototype.push.call(this,l,u)},Zr.prototype._transform=function(l,u,v){throw new Error("Not implemented")},Zr.prototype._write=function(l,u,v){var z=this._transformState;if(z.writecb=v,z.writechunk=l,z.writeencoding=u,!z.transforming){var le=this._readableState;(z.needTransform||le.needReadable||le.length<le.highWaterMark)&&this._read(le.highWaterMark)}},Zr.prototype._read=function(l){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},Cn(An,Zr),An.prototype._transform=function(l,u,v){v(null,l)},Cn(Re,R),Re.Readable=Ur,Re.Writable=k,Re.Duplex=Mr,Re.Transform=Zr,Re.PassThrough=An,Re.Stream=Re,Re.prototype.pipe=function(l,u){var v=this;function z(qt){l.writable&&l.write(qt)===!1&&v.pause&&v.pause()}function le(){v.readable&&v.resume&&v.resume()}v.on("data",z),l.on("drain",le),l._isStdio||u&&u.end===!1||(v.on("end",Me),v.on("close",ht));var ve=!1;function Me(){ve||(ve=!0,l.end())}function ht(){ve||(ve=!0,typeof l.destroy=="function"&&l.destroy())}function _t(qt){if(Jt(),R.listenerCount(this,"error")===0)throw qt}function Jt(){v.removeListener("data",z),l.removeListener("drain",le),v.removeListener("end",Me),v.removeListener("close",ht),v.removeListener("error",_t),l.removeListener("error",_t),v.removeListener("end",Jt),v.removeListener("close",Jt),l.removeListener("close",Jt)}return v.on("error",_t),l.on("error",_t),v.on("end",Jt),v.on("close",Jt),l.on("close",Jt),l.emit("pipe",v),l};var pe,We=`
`,_e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:A!==void 0?A:typeof self<"u"?self:{},n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,E=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/\\(\\)?/g,V=/^\[object .+?Constructor\]$/,fe=typeof _e=="object"&&_e&&_e.Object===Object&&_e,Pe=typeof self=="object"&&self&&self.Object===Object&&self,He=fe||Pe||Function("return this")(),et=Array.prototype,Et=Function.prototype,Dt=Object.prototype,St=He["__core-js_shared__"],At=(pe=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+pe:"",pr=Et.toString,dr=Dt.hasOwnProperty,hr=Dt.toString,Ar=RegExp("^"+pr.call(dr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rn=He.Symbol,zn=et.splice,an=Nn(He,"Map"),Tr=Nn(Object,"create"),ni=rn?rn.prototype:void 0,nn=ni?ni.toString:void 0;function fn(l){var u=-1,v=l?l.length:0;for(this.clear();++u<v;){var z=l[u];this.set(z[0],z[1])}}function pi(l){var u=-1,v=l?l.length:0;for(this.clear();++u<v;){var z=l[u];this.set(z[0],z[1])}}function Li(l){var u=-1,v=l?l.length:0;for(this.clear();++u<v;){var z=l[u];this.set(z[0],z[1])}}function si(l,u){for(var v,z,le=l.length;le--;)if((v=l[le][0])===(z=u)||v!=v&&z!=z)return le;return-1}function li(l,u){for(var v,z=0,le=(u=function(ve,Me){if(ti(ve))return!1;var ht=typeof ve;return!(ht!="number"&&ht!="symbol"&&ht!="boolean"&&ve!=null&&!en(ve))||c.test(ve)||!n.test(ve)||Me!=null&&ve in Object(Me)}(u,l)?[u]:ti(v=u)?v:kn(v)).length;l!=null&&z<le;)l=l[Qn(u[z++])];return z&&z==le?l:void 0}function Ii(l){return!(!yi(l)||(u=l,At&&At in u))&&(function(v){var z=yi(v)?hr.call(v):"";return z=="[object Function]"||z=="[object GeneratorFunction]"}(l)||function(v){var z=!1;if(v!=null&&typeof v.toString!="function")try{z=!!(v+"")}catch{}return z}(l)?Ar:V).test(function(v){if(v!=null){try{return pr.call(v)}catch{}try{return v+""}catch{}}return""}(l));var u}function ii(l,u){var v=l.__data__;return function(z){var le=typeof z;return le=="string"||le=="number"||le=="symbol"||le=="boolean"?z!=="__proto__":z===null}(u)?v[typeof u=="string"?"string":"hash"]:v.map}function Nn(l,u){var v=function(z,le){return z==null?void 0:z[le]}(l,u);return Ii(v)?v:void 0}fn.prototype.clear=function(){this.__data__=Tr?Tr(null):{}},fn.prototype.delete=function(l){return this.has(l)&&delete this.__data__[l]},fn.prototype.get=function(l){var u=this.__data__;if(Tr){var v=u[l];return v==="__lodash_hash_undefined__"?void 0:v}return dr.call(u,l)?u[l]:void 0},fn.prototype.has=function(l){var u=this.__data__;return Tr?u[l]!==void 0:dr.call(u,l)},fn.prototype.set=function(l,u){return this.__data__[l]=Tr&&u===void 0?"__lodash_hash_undefined__":u,this},pi.prototype.clear=function(){this.__data__=[]},pi.prototype.delete=function(l){var u=this.__data__,v=si(u,l);return!(v<0||(v==u.length-1?u.pop():zn.call(u,v,1),0))},pi.prototype.get=function(l){var u=this.__data__,v=si(u,l);return v<0?void 0:u[v][1]},pi.prototype.has=function(l){return si(this.__data__,l)>-1},pi.prototype.set=function(l,u){var v=this.__data__,z=si(v,l);return z<0?v.push([l,u]):v[z][1]=u,this},Li.prototype.clear=function(){this.__data__={hash:new fn,map:new(an||pi),string:new fn}},Li.prototype.delete=function(l){return ii(this,l).delete(l)},Li.prototype.get=function(l){return ii(this,l).get(l)},Li.prototype.has=function(l){return ii(this,l).has(l)},Li.prototype.set=function(l,u){return ii(this,l).set(l,u),this};var kn=ci(function(l){var u;l=(u=l)==null?"":function(z){if(typeof z=="string")return z;if(en(z))return nn?nn.call(z):"";var le=z+"";return le=="0"&&1/z==-1/0?"-0":le}(u);var v=[];return E.test(l)&&v.push(""),l.replace(T,function(z,le,ve,Me){v.push(ve?Me.replace(W,"$1"):le||z)}),v});function Qn(l){if(typeof l=="string"||en(l))return l;var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}function ci(l,u){if(typeof l!="function"||u&&typeof u!="function")throw new TypeError("Expected a function");var v=function(){var z=arguments,le=u?u.apply(this,z):z[0],ve=v.cache;if(ve.has(le))return ve.get(le);var Me=l.apply(this,z);return v.cache=ve.set(le,Me),Me};return v.cache=new(ci.Cache||Li),v}ci.Cache=Li;var ti=Array.isArray;function yi(l){var u=typeof l;return!!l&&(u=="object"||u=="function")}function en(l){return typeof l=="symbol"||function(u){return!!u&&typeof u=="object"}(l)&&hr.call(l)=="[object Symbol]"}var _n=function(l,u,v){var z=l==null?void 0:li(l,u);return z===void 0?v:z},hi=function l(u,v,z){var le=Array.isArray(v)?v:v.split("."),ve=le[0],Me=le.length>1?l(u[ve]||{},le.slice(1),z):z;return Object.assign({},u,function(ht,_t,Jt){return _t in ht?Object.defineProperty(ht,_t,{value:Jt,enumerable:!0,configurable:!0,writable:!0}):ht[_t]=Jt,ht}({},ve,Me))},xi=function(l,u){var v=!0;return l.reduce(function(z,le){return le==null&&(le=""),v?(v=!1,"".concat(le)):"".concat(z).concat(u).concat(le)},"")},ri=function(l,u){try{return l.push.apply(l,$(u)),l}catch{return l.concat(u)}},gi=function(l,u,v){return l[u]===void 0?v:l[u]},Ji=xi,ho=ri,fo=function(){function l(u){r(this,l),this.opts=this.preprocessOpts(u)}return d(l,[{key:"preprocessOpts",value:function(u){var v=Object.assign({},u);return v.transforms=Array.isArray(v.transforms)?v.transforms:v.transforms?[v.transforms]:[],v.delimiter=v.delimiter||",",v.eol=v.eol||We,v.quote=typeof v.quote=="string"?v.quote:'"',v.escapedQuote=typeof v.escapedQuote=="string"?v.escapedQuote:"".concat(v.quote).concat(v.quote),v.header=v.header!==!1,v.includeEmptyRows=v.includeEmptyRows||!1,v.withBOM=v.withBOM||!1,v}},{key:"preprocessFieldsInfo",value:function(u){var v=this;return u.map(function(z){if(typeof z=="string")return{label:z,value:z.includes(".")||z.includes("[")?function(ht){return _n(ht,z,v.opts.defaultValue)}:function(ht){return gi(ht,z,v.opts.defaultValue)}};if(Ae(z)==="object"){var le="default"in z?z.default:v.opts.defaultValue;if(typeof z.value=="string")return{label:z.label||z.value,value:z.value.includes(".")||z.value.includes("[")?function(ht){return _n(ht,z.value,le)}:function(ht){return gi(ht,z.value,le)}};if(typeof z.value=="function"){var ve=z.label||z.value.name||"",Me={label:ve,default:le};return{label:ve,value:function(ht){var _t=z.value(ht,Me);return _t??le}}}}throw new Error("Invalid field info option. "+JSON.stringify(z))})}},{key:"getHeader",value:function(){var u=this;return Ji(this.opts.fields.map(function(v){return u.processValue(v.label)}),this.opts.delimiter)}},{key:"preprocessRow",value:function(u){return this.opts.transforms.reduce(function(v,z){return v.map(function(le){return z(le)}).reduce(ho,[])},[u])}},{key:"processRow",value:function(u){var v=this;if(u){var z=this.opts.fields.map(function(le){return v.processCell(u,le)});if(this.opts.includeEmptyRows||!z.every(function(le){return le===void 0}))return Ji(z,this.opts.delimiter)}}},{key:"processCell",value:function(u,v){return this.processValue(v.value(u))}},{key:"processValue",value:function(u){if(u!=null){var v=Ae(u);if(v!=="boolean"&&v!=="number"&&v!=="string"){if((u=JSON.stringify(u))===void 0)return;u[0]==='"'&&(u=u.replace(/^"(.+)"$/,"$1"))}return typeof u=="string"&&(u.includes(this.opts.quote)&&(u=u.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),u="".concat(this.opts.quote).concat(u).concat(this.opts.quote),this.opts.excelStrings&&(u='"="'.concat(u,'""'))),u}}}]),l}(),yo=xi,Do=ri,eo=function(l){function u(v){var z;return r(this,u),(z=I(this,N(u).call(this,v))).opts.fields&&(z.opts.fields=z.preprocessFieldsInfo(z.opts.fields)),z}return g(u,l),d(u,[{key:"parse",value:function(v){var z=this.preprocessData(v);this.opts.fields||(this.opts.fields=z.reduce(function(Me,ht){return Object.keys(ht).forEach(function(_t){Me.includes(_t)||Me.push(_t)}),Me},[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var le=this.opts.header?this.getHeader():"",ve=this.processData(z);return(this.opts.withBOM?"\uFEFF":"")+le+(le&&ve?this.opts.eol:"")+ve}},{key:"preprocessData",value:function(v){var z=this,le=Array.isArray(v)?v:[v];if(!this.opts.fields&&(le.length===0||Ae(le[0])!=="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?le:le.map(function(ve){return z.preprocessRow(ve)}).reduce(Do,[])}},{key:"processData",value:function(v){var z=this;return yo(v.map(function(le){return z.processRow(le)}).filter(function(le){return le}),this.opts.eol)}}]),u}(fo),Qr={},Lo=Qr.LEFT_BRACE=1,uo=Qr.RIGHT_BRACE=2,Qi=Qr.LEFT_BRACKET=3,Eo=Qr.RIGHT_BRACKET=4,to=Qr.COLON=5,wi=Qr.COMMA=6,Hi=Qr.TRUE=7,Io=Qr.FALSE=8,wo=Qr.NULL=9,qi=Qr.STRING=10,ro=Qr.NUMBER=11,Ln=Qr.START=17,no=Qr.STOP=18,Ri=Qr.TRUE1=33,_i=Qr.TRUE2=34,Vi=Qr.TRUE3=35,Yi=Qr.FALSE1=49,Si=Qr.FALSE2=50,Xi=Qr.FALSE3=51,Wi=Qr.FALSE4=52,Bi=Qr.NULL1=65,go=Qr.NULL2=66,io=Qr.NULL3=67,co=Qr.NUMBER1=81,oo=Qr.NUMBER3=83,Ti=Qr.STRING1=97,mo=Qr.STRING2=98,po=Qr.STRING3=99,bo=Qr.STRING4=100,Ne=Qr.STRING5=101,rt=Qr.STRING6=102,ut=Qr.VALUE=113,Wt=Qr.KEY=114,xt=Qr.OBJECT=129,$t=Qr.ARRAY=130,Zt=92,or=47,fr=8,zr=12,Xr=10,$r=13,vn=9;function Bn(){this.tState=Ln,this.value=void 0,this.string=void 0,this.stringBuffer=re.alloc?re.alloc(65536):new re(65536),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=ut,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new re(2),3:new re(3),4:new re(4)},this.offset=-1}Bn.toknam=function(l){for(var u=Object.keys(Qr),v=0,z=u.length;v<z;v++){var le=u[v];if(Qr[le]===l)return le}return l&&"0x"+l.toString(16)};var wr=Bn.prototype;wr.onError=function(l){throw l},wr.charError=function(l,u){this.tState=no,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(l[u]))+" at position "+u+" in state "+Bn.toknam(this.tState)))},wr.appendStringChar=function(l){this.stringBufferOffset>=65536&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=l},wr.appendStringBuf=function(l,u,v){var z=l.length;typeof u=="number"&&(z=typeof v=="number"?v<0?l.length-u+v:v-u:l.length-u),z<0&&(z=0),this.stringBufferOffset+z>65536&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),l.copy(this.stringBuffer,this.stringBufferOffset,u,v),this.stringBufferOffset+=z},wr.write=function(l){var u;typeof l=="string"&&(l=new re(l));for(var v=0,z=l.length;v<z;v++)if(this.tState===Ln){if(u=l[v],this.offset++,u===123)this.onToken(Lo,"{");else if(u===125)this.onToken(uo,"}");else if(u===91)this.onToken(Qi,"[");else if(u===93)this.onToken(Eo,"]");else if(u===58)this.onToken(to,":");else if(u===44)this.onToken(wi,",");else if(u===116)this.tState=Ri;else if(u===102)this.tState=Yi;else if(u===110)this.tState=Bi;else if(u===34)this.string="",this.stringBufferOffset=0,this.tState=Ti;else if(u===45)this.string="-",this.tState=co;else if(u>=48&&u<64)this.string=String.fromCharCode(u),this.tState=oo;else if(u!==32&&u!==9&&u!==10&&u!==13)return this.charError(l,v)}else if(this.tState===Ti)if(u=l[v],this.bytes_remaining>0){for(var le=0;le<this.bytes_remaining;le++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+le]=l[le];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,v=v+le-1}else if(this.bytes_remaining===0&&u>=128){if(u<=193||u>244)return this.onError(new Error("Invalid UTF-8 character at position "+v+" in state "+Bn.toknam(this.tState)));if(u>=194&&u<=223&&(this.bytes_in_sequence=2),u>=224&&u<=239&&(this.bytes_in_sequence=3),u>=240&&u<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+v>l.length){for(var ve=0;ve<=l.length-1-v;ve++)this.temp_buffs[this.bytes_in_sequence][ve]=l[v+ve];this.bytes_remaining=v+this.bytes_in_sequence-l.length,v=l.length-1}else this.appendStringBuf(l,v,v+this.bytes_in_sequence),v=v+this.bytes_in_sequence-1}else if(u===34)this.tState=Ln,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(qi,this.string),this.offset+=re.byteLength(this.string,"utf8")+1,this.string=void 0;else if(u===92)this.tState=mo;else{if(!(u>=32))return this.charError(l,v);this.appendStringChar(u)}else if(this.tState===mo)if((u=l[v])===34)this.appendStringChar(u),this.tState=Ti;else if(u===92)this.appendStringChar(Zt),this.tState=Ti;else if(u===47)this.appendStringChar(or),this.tState=Ti;else if(u===98)this.appendStringChar(fr),this.tState=Ti;else if(u===102)this.appendStringChar(zr),this.tState=Ti;else if(u===110)this.appendStringChar(Xr),this.tState=Ti;else if(u===114)this.appendStringChar($r),this.tState=Ti;else if(u===116)this.appendStringChar(vn),this.tState=Ti;else{if(u!==117)return this.charError(l,v);this.unicode="",this.tState=po}else if(this.tState===po||this.tState===bo||this.tState===Ne||this.tState===rt){if(!((u=l[v])>=48&&u<64||u>64&&u<=70||u>96&&u<=102))return this.charError(l,v);if(this.unicode+=String.fromCharCode(u),this.tState++===rt){var Me=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&Me>=56320&&Me<57344?(this.appendStringBuf(new re(String.fromCharCode(this.highSurrogate,Me))),this.highSurrogate=void 0):this.highSurrogate===void 0&&Me>=55296&&Me<56320?this.highSurrogate=Me:(this.highSurrogate!==void 0&&(this.appendStringBuf(new re(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new re(String.fromCharCode(Me)))),this.tState=Ti}}else if(this.tState===co||this.tState===oo)switch(u=l[v]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(u),this.tState=oo;break;default:this.tState=Ln;var ht=Number(this.string);if(isNaN(ht))return this.charError(l,v);this.string.match(/[0-9]+/)==this.string&&ht.toString()!=this.string?this.onToken(qi,this.string):this.onToken(ro,ht),this.offset+=this.string.length-1,this.string=void 0,v--}else if(this.tState===Ri){if(l[v]!==114)return this.charError(l,v);this.tState=_i}else if(this.tState===_i){if(l[v]!==117)return this.charError(l,v);this.tState=Vi}else if(this.tState===Vi){if(l[v]!==101)return this.charError(l,v);this.tState=Ln,this.onToken(Hi,!0),this.offset+=3}else if(this.tState===Yi){if(l[v]!==97)return this.charError(l,v);this.tState=Si}else if(this.tState===Si){if(l[v]!==108)return this.charError(l,v);this.tState=Xi}else if(this.tState===Xi){if(l[v]!==115)return this.charError(l,v);this.tState=Wi}else if(this.tState===Wi){if(l[v]!==101)return this.charError(l,v);this.tState=Ln,this.onToken(Io,!1),this.offset+=4}else if(this.tState===Bi){if(l[v]!==117)return this.charError(l,v);this.tState=go}else if(this.tState===go){if(l[v]!==108)return this.charError(l,v);this.tState=io}else if(this.tState===io){if(l[v]!==108)return this.charError(l,v);this.tState=Ln,this.onToken(wo,null),this.offset+=3}},wr.onToken=function(l,u){},wr.parseError=function(l,u){this.tState=no,this.onError(new Error("Unexpected "+Bn.toknam(l)+(u?"("+JSON.stringify(u)+")":"")+" in state "+Bn.toknam(this.state)))},wr.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},wr.pop=function(){var l=this.value,u=this.stack.pop();this.value=u.value,this.key=u.key,this.mode=u.mode,this.emit(l),this.mode||(this.state=ut)},wr.emit=function(l){this.mode&&(this.state=wi),this.onValue(l)},wr.onValue=function(l){},wr.onToken=function(l,u){if(this.state===ut)if(l===qi||l===ro||l===Hi||l===Io||l===wo)this.value&&(this.value[this.key]=u),this.emit(u);else if(l===Lo)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Wt,this.mode=xt;else if(l===Qi)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=$t,this.state=ut;else if(l===uo){if(this.mode!==xt)return this.parseError(l,u);this.pop()}else{if(l!==Eo)return this.parseError(l,u);if(this.mode!==$t)return this.parseError(l,u);this.pop()}else if(this.state===Wt)if(l===qi)this.key=u,this.state=to;else{if(l!==uo)return this.parseError(l,u);this.pop()}else if(this.state===to){if(l!==to)return this.parseError(l,u);this.state=ut}else{if(this.state!==wi)return this.parseError(l,u);if(l===wi)this.mode===$t?(this.key++,this.state=ut):this.mode===xt&&(this.state=Wt);else{if(!(l===Eo&&this.mode===$t||l===uo&&this.mode===xt))return this.parseError(l,u);this.pop()}}},Bn.C=Qr;var Yn=Bn,Kn=function(l){function u(v,z){var le;return r(this,u),le=I(this,N(u).call(this,z)),Object.getOwnPropertyNames(fo.prototype).forEach(function(ve){return le[ve]=fo.prototype[ve]}),le.opts=le.preprocessOpts(v),le._data="",le._hasWritten=!1,le._readableState.objectMode?le.initObjectModeParse():le.opts.ndjson?le.initNDJSONParse():le.initJSONParser(),le.opts.withBOM&&le.push("\uFEFF"),le.opts.fields&&(le.opts.fields=le.preprocessFieldsInfo(le.opts.fields),le.pushHeader()),le}return g(u,l),d(u,[{key:"initObjectModeParse",value:function(){var v=this;this.parser={write:function(z){v.pushLine(z)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var v=this;this.parser={_data:"",write:function(z){this._data+=z.toString();var le=this._data.split(`
`).map(function(Me){return Me.trim()}).filter(function(Me){return Me!==""}),ve=!1;le.forEach(function(Me,ht){try{v.pushLine(JSON.parse(Me))}catch(_t){ht===le.length-1?ve=!0:(_t.message="Invalid JSON (".concat(Me,")"),v.emit("error",_t))}}),this._data=ve?this._data.slice(this._data.lastIndexOf(`
`)):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var v=this;this.parser=new Yn,this.parser.onValue=function(z){this.stack.length===this.depthToEmit&&v.pushLine(z)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(z,le){v.parser._onToken(z,le),this.stack.length!==0||v.opts.fields||this.mode===Yn.C.ARRAY||this.mode===Yn.C.OBJECT||this.onError(new Error('Data should not be empty or the "fields" option should be included')),this.stack.length===1&&(this.depthToEmit===void 0&&(this.depthToEmit=this.mode===Yn.C.ARRAY?1:0),this.depthToEmit!==0&&this.stack.length===1&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(z){z.message.includes("Unexpected")&&(z.message="Invalid JSON (".concat(z.message,")")),v.emit("error",z)}}},{key:"_transform",value:function(v,z,le){this.parser.write(v),le()}},{key:"_flush",value:function(v){this.parser.getPendingData()&&v(new Error("Invalid data received from stdin",this.parser.getPendingData())),v()}},{key:"pushHeader",value:function(){if(this.opts.header){var v=this.getHeader();this.emit("header",v),this.push(v),this._hasWritten=!0}}},{key:"pushLine",value:function(v){var z=this,le=this.preprocessRow(v);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(le[0])),this.pushHeader()),le.forEach(function(ve){var Me=z.processRow(ve,z.opts);Me!==void 0&&(z.emit("line",Me),z.push(z._hasWritten?z.opts.eol+Me:Me),z._hasWritten=!0)})}}]),u}(Re.Transform),fi=Re.Transform,Dn=xi,Mi=function(){function l(u,v){r(this,l),this.input=new fi(v),this.input._read=function(){},this.transform=new Kn(u,v),this.processor=this.input.pipe(this.transform)}return d(l,[{key:"fromInput",value:function(u){if(this._input)throw new Error("Async parser already has an input.");return this._input=u,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(u){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(u),this}},{key:"toOutput",value:function(u){if(this._output)throw new Error("Async parser already has an output.");return this._output=u,this.processor=this.processor.pipe(u),this}},{key:"promise",value:function(){var u=this,v=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return new Promise(function(z,le){if(v){var ve=[];u.processor.on("data",function(Me){return ve.push(Me.toString())}).on("finish",function(){return z(Dn(ve,""))}).on("error",function(Me){return le(Me)})}else u.processor.on("finish",function(){return z()}).on("error",function(Me){return le(Me)})})}}]),l}(),Ei=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=l.objects,v=u===void 0||u,z=l.arrays,le=z!==void 0&&z,ve=l.separator,Me=ve===void 0?".":ve;function ht(_t,Jt,qt){return Object.keys(_t).forEach(function(_r){var Hr=qt?"".concat(qt).concat(Me).concat(_r):_r,Nr=_t[_r];v&&Ae(Nr)==="object"&&Nr!==null&&!Array.isArray(Nr)&&Object.prototype.toString.call(Nr.toJSON)!=="[object Function]"&&Object.keys(Nr).length||le&&Array.isArray(Nr)?ht(Nr,Jt,Hr):Jt[Hr]=Nr}),Jt}return function(_t){return ht(_t,{})}},oi=hi,ji=ri;function Fi(l,u){return Object.keys(l).reduce(function(v,z){var le=u?"".concat(u,".").concat(z):z,ve=l[z];return Ae(ve)==="object"&&ve!==null&&!Array.isArray(ve)&&Object.prototype.toString.call(ve.toJSON)!=="[object Function]"&&Object.keys(ve).length?v=v.concat(Fi(ve,le)):Array.isArray(ve)&&(v.push(le),v=v.concat(ve.map(function(Me){return Fi(Me,le)}).reduce(ji,[]).filter(function(Me,ht,_t){return _t.indexOf(Me)!==ht}))),v},[])}var Ki=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=l.paths,v=u===void 0?void 0:u,z=l.blankOut,le=z!==void 0&&z;function ve(Me,ht){return Me.map(function(_t){var Jt=_n(_t,ht);return Array.isArray(Jt)?Jt.length?Jt.map(function(qt,_r){return oi(le&&_r>0?{}:_t,ht,qt)}):oi(_t,ht,void 0):_t}).reduce(ji,[])}return v=Array.isArray(v)?v:v?[v]:void 0,function(Me){return(v||Fi(Me)).reduce(ve,[Me])}},_o=Re.Readable,Po=eo,la=Mi,ua=Kn,ca=function(l,u){return new eo(u).parse(l)},Di=function(l,u,v){try{l instanceof _o||(v=Object.assign({},v,{objectMode:!0}));var z=new Mi(u,v),le=z.promise();return Array.isArray(l)?(l.forEach(function(ve){return z.input.push(ve)}),z.input.push(null)):l instanceof _o?z.fromInput(l):(z.input.push(l),z.input.push(null)),le}catch(ve){return Promise.reject(ve)}},mi={flatten:Ei,unwind:Ki},Oi={Parser:Po,AsyncParser:la,Transform:ua,parse:ca,parseAsync:Di,transforms:mi};_.AsyncParser=la,_.Parser=Po,_.Transform=ua,_.default=Oi,_.parse=ca,_.parseAsync=Di,_.transforms=mi,Object.defineProperty(_,"__esModule",{value:!0})})(de)}).call(this,b(72))},function(ke,de,b){Object.defineProperty(de,"__esModule",{value:!0});var A=[],_="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";de.definition={prefix:"fas",iconName:"download",icon:[512,512,A,"f019",_]},de.faDownload=de.definition,de.prefix="fas",de.iconName="download",de.width=512,de.height=512,de.ligatures=A,de.unicode="f019",de.svgPathData=_},function(ke,de,b){Object.defineProperty(de,"__esModule",{value:!0});var A=[],_="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z";de.definition={prefix:"fas",iconName:"question-circle",icon:[512,512,A,"f059",_]},de.faQuestionCircle=de.definition,de.prefix="fas",de.iconName="question-circle",de.width=512,de.height=512,de.ligatures=A,de.unicode="f059",de.svgPathData=_},function(ke,de,b){Object.defineProperty(de,"__esModule",{value:!0});var A=[],_="M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z";de.definition={prefix:"fas",iconName:"table",icon:[512,512,A,"f0ce",_]},de.faTable=de.definition,de.prefix="fas",de.iconName="table",de.width=512,de.height=512,de.ligatures=A,de.unicode="f0ce",de.svgPathData=_},function(ke,de,b){Object.defineProperty(de,"__esModule",{value:!0});var A=[],_="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";de.definition={prefix:"fas",iconName:"align-left",icon:[448,512,A,"f036",_]},de.faAlignLeft=de.definition,de.prefix="fas",de.iconName="align-left",de.width=448,de.height=512,de.ligatures=A,de.unicode="f036",de.svgPathData=_},function(ke,de,b){(function(A){var _=b(133),U=b(134),R=b(135);function p(){return C.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function G(B,X){if(p()<X)throw new RangeError("Invalid typed array length");return C.TYPED_ARRAY_SUPPORT?(B=new Uint8Array(X)).__proto__=C.prototype:(B===null&&(B=new C(X)),B.length=X),B}function C(B,X,he){if(!(C.TYPED_ARRAY_SUPPORT||this instanceof C))return new C(B,X,he);if(typeof B=="number"){if(typeof X=="string")throw new Error("If encoding is specified then the first argument must be a string");return x(this,B)}return M(this,B,X,he)}function M(B,X,he,De){if(typeof X=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&X instanceof ArrayBuffer?function(Ve,Be,ze,lt){if(Be.byteLength,ze<0||Be.byteLength<ze)throw new RangeError("'offset' is out of bounds");if(Be.byteLength<ze+(lt||0))throw new RangeError("'length' is out of bounds");return Be=ze===void 0&&lt===void 0?new Uint8Array(Be):lt===void 0?new Uint8Array(Be,ze):new Uint8Array(Be,ze,lt),C.TYPED_ARRAY_SUPPORT?(Ve=Be).__proto__=C.prototype:Ve=Y(Ve,Be),Ve}(B,X,he,De):typeof X=="string"?function(Ve,Be,ze){if(typeof ze=="string"&&ze!==""||(ze="utf8"),!C.isEncoding(ze))throw new TypeError('"encoding" must be a valid string encoding');var lt=0|K(Be,ze),Ze=(Ve=G(Ve,lt)).write(Be,ze);return Ze!==lt&&(Ve=Ve.slice(0,Ze)),Ve}(B,X,he):function(Ve,Be){if(C.isBuffer(Be)){var ze=0|ce(Be.length);return(Ve=G(Ve,ze)).length===0||Be.copy(Ve,0,0,ze),Ve}if(Be){if(typeof ArrayBuffer<"u"&&Be.buffer instanceof ArrayBuffer||"length"in Be)return typeof Be.length!="number"||(lt=Be.length)!=lt?G(Ve,0):Y(Ve,Be);if(Be.type==="Buffer"&&R(Be.data))return Y(Ve,Be.data)}var lt;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(B,X)}function ue(B){if(typeof B!="number")throw new TypeError('"size" argument must be a number');if(B<0)throw new RangeError('"size" argument must not be negative')}function x(B,X){if(ue(X),B=G(B,X<0?0:0|ce(X)),!C.TYPED_ARRAY_SUPPORT)for(var he=0;he<X;++he)B[he]=0;return B}function Y(B,X){var he=X.length<0?0:0|ce(X.length);B=G(B,he);for(var De=0;De<he;De+=1)B[De]=255&X[De];return B}function ce(B){if(B>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return 0|B}function K(B,X){if(C.isBuffer(B))return B.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(B)||B instanceof ArrayBuffer))return B.byteLength;typeof B!="string"&&(B=""+B);var he=B.length;if(he===0)return 0;for(var De=!1;;)switch(X){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":case void 0:return Nt(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*he;case"hex":return he>>>1;case"base64":return at(B).length;default:if(De)return Nt(B).length;X=(""+X).toLowerCase(),De=!0}}function oe(B,X,he){var De=!1;if((X===void 0||X<0)&&(X=0),X>this.length||((he===void 0||he>this.length)&&(he=this.length),he<=0)||(he>>>=0)<=(X>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return se(this,X,he);case"utf8":case"utf-8":return me(this,X,he);case"ascii":return xe(this,X,he);case"latin1":case"binary":return D(this,X,he);case"base64":return Ge(this,X,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,X,he);default:if(De)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),De=!0}}function ie(B,X,he){var De=B[X];B[X]=B[he],B[he]=De}function m(B,X,he,De,Ve){if(B.length===0)return-1;if(typeof he=="string"?(De=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),he=+he,isNaN(he)&&(he=Ve?0:B.length-1),he<0&&(he=B.length+he),he>=B.length){if(Ve)return-1;he=B.length-1}else if(he<0){if(!Ve)return-1;he=0}if(typeof X=="string"&&(X=C.from(X,De)),C.isBuffer(X))return X.length===0?-1:S(B,X,he,De,Ve);if(typeof X=="number")return X&=255,C.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ve?Uint8Array.prototype.indexOf.call(B,X,he):Uint8Array.prototype.lastIndexOf.call(B,X,he):S(B,[X],he,De,Ve);throw new TypeError("val must be string, number or Buffer")}function S(B,X,he,De,Ve){var Be,ze=1,lt=B.length,Ze=X.length;if(De!==void 0&&((De=String(De).toLowerCase())==="ucs2"||De==="ucs-2"||De==="utf16le"||De==="utf-16le")){if(B.length<2||X.length<2)return-1;ze=2,lt/=2,Ze/=2,he/=2}function Pt(xr,Pr){return ze===1?xr[Pr]:xr.readUInt16BE(Pr*ze)}if(Ve){var jt=-1;for(Be=he;Be<lt;Be++)if(Pt(B,Be)===Pt(X,jt===-1?0:Be-jt)){if(jt===-1&&(jt=Be),Be-jt+1===Ze)return jt*ze}else jt!==-1&&(Be-=Be-jt),jt=-1}else for(he+Ze>lt&&(he=lt-Ze),Be=he;Be>=0;Be--){for(var nr=!0,Bt=0;Bt<Ze;Bt++)if(Pt(B,Be+Bt)!==Pt(X,Bt)){nr=!1;break}if(nr)return Be}return-1}function P(B,X,he,De){he=Number(he)||0;var Ve=B.length-he;De?(De=Number(De))>Ve&&(De=Ve):De=Ve;var Be=X.length;if(Be%2!=0)throw new TypeError("Invalid hex string");De>Be/2&&(De=Be/2);for(var ze=0;ze<De;++ze){var lt=parseInt(X.substr(2*ze,2),16);if(isNaN(lt))return ze;B[he+ze]=lt}return ze}function q(B,X,he,De){return Ft(Nt(X,B.length-he),B,he,De)}function te(B,X,he,De){return Ft(function(Ve){for(var Be=[],ze=0;ze<Ve.length;++ze)Be.push(255&Ve.charCodeAt(ze));return Be}(X),B,he,De)}function Z(B,X,he,De){return te(B,X,he,De)}function h(B,X,he,De){return Ft(at(X),B,he,De)}function ne(B,X,he,De){return Ft(function(Ve,Be){for(var ze,lt,Ze,Pt=[],jt=0;jt<Ve.length&&!((Be-=2)<0);++jt)ze=Ve.charCodeAt(jt),lt=ze>>8,Ze=ze%256,Pt.push(Ze),Pt.push(lt);return Pt}(X,B.length-he),B,he,De)}function Ge(B,X,he){return X===0&&he===B.length?_.fromByteArray(B):_.fromByteArray(B.slice(X,he))}function me(B,X,he){he=Math.min(B.length,he);for(var De=[],Ve=X;Ve<he;){var Be,ze,lt,Ze,Pt=B[Ve],jt=null,nr=Pt>239?4:Pt>223?3:Pt>191?2:1;if(Ve+nr<=he)switch(nr){case 1:Pt<128&&(jt=Pt);break;case 2:(192&(Be=B[Ve+1]))==128&&(Ze=(31&Pt)<<6|63&Be)>127&&(jt=Ze);break;case 3:Be=B[Ve+1],ze=B[Ve+2],(192&Be)==128&&(192&ze)==128&&(Ze=(15&Pt)<<12|(63&Be)<<6|63&ze)>2047&&(Ze<55296||Ze>57343)&&(jt=Ze);break;case 4:Be=B[Ve+1],ze=B[Ve+2],lt=B[Ve+3],(192&Be)==128&&(192&ze)==128&&(192&lt)==128&&(Ze=(15&Pt)<<18|(63&Be)<<12|(63&ze)<<6|63&lt)>65535&&Ze<1114112&&(jt=Ze)}jt===null?(jt=65533,nr=1):jt>65535&&(jt-=65536,De.push(jt>>>10&1023|55296),jt=56320|1023&jt),De.push(jt),Ve+=nr}return function(Bt){var xr=Bt.length;if(xr<=4096)return String.fromCharCode.apply(String,Bt);for(var Pr="",gr=0;gr<xr;)Pr+=String.fromCharCode.apply(String,Bt.slice(gr,gr+=4096));return Pr}(De)}de.Buffer=C,de.SlowBuffer=function(B){return+B!=B&&(B=0),C.alloc(+B)},de.INSPECT_MAX_BYTES=50,C.TYPED_ARRAY_SUPPORT=A.TYPED_ARRAY_SUPPORT!==void 0?A.TYPED_ARRAY_SUPPORT:function(){try{var B=new Uint8Array(1);return B.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},B.foo()===42&&typeof B.subarray=="function"&&B.subarray(1,1).byteLength===0}catch{return!1}}(),de.kMaxLength=p(),C.poolSize=8192,C._augment=function(B){return B.__proto__=C.prototype,B},C.from=function(B,X,he){return M(null,B,X,he)},C.TYPED_ARRAY_SUPPORT&&(C.prototype.__proto__=Uint8Array.prototype,C.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&C[Symbol.species]===C&&Object.defineProperty(C,Symbol.species,{value:null,configurable:!0})),C.alloc=function(B,X,he){return function(De,Ve,Be,ze){return ue(Ve),Ve<=0?G(De,Ve):Be!==void 0?typeof ze=="string"?G(De,Ve).fill(Be,ze):G(De,Ve).fill(Be):G(De,Ve)}(null,B,X,he)},C.allocUnsafe=function(B){return x(null,B)},C.allocUnsafeSlow=function(B){return x(null,B)},C.isBuffer=function(B){return!(B==null||!B._isBuffer)},C.compare=function(B,X){if(!C.isBuffer(B)||!C.isBuffer(X))throw new TypeError("Arguments must be Buffers");if(B===X)return 0;for(var he=B.length,De=X.length,Ve=0,Be=Math.min(he,De);Ve<Be;++Ve)if(B[Ve]!==X[Ve]){he=B[Ve],De=X[Ve];break}return he<De?-1:De<he?1:0},C.isEncoding=function(B){switch(String(B).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},C.concat=function(B,X){if(!R(B))throw new TypeError('"list" argument must be an Array of Buffers');if(B.length===0)return C.alloc(0);var he;if(X===void 0)for(X=0,he=0;he<B.length;++he)X+=B[he].length;var De=C.allocUnsafe(X),Ve=0;for(he=0;he<B.length;++he){var Be=B[he];if(!C.isBuffer(Be))throw new TypeError('"list" argument must be an Array of Buffers');Be.copy(De,Ve),Ve+=Be.length}return De},C.byteLength=K,C.prototype._isBuffer=!0,C.prototype.swap16=function(){var B=this.length;if(B%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var X=0;X<B;X+=2)ie(this,X,X+1);return this},C.prototype.swap32=function(){var B=this.length;if(B%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var X=0;X<B;X+=4)ie(this,X,X+3),ie(this,X+1,X+2);return this},C.prototype.swap64=function(){var B=this.length;if(B%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var X=0;X<B;X+=8)ie(this,X,X+7),ie(this,X+1,X+6),ie(this,X+2,X+5),ie(this,X+3,X+4);return this},C.prototype.toString=function(){var B=0|this.length;return B===0?"":arguments.length===0?me(this,0,B):oe.apply(this,arguments)},C.prototype.equals=function(B){if(!C.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B||C.compare(this,B)===0},C.prototype.inspect=function(){var B="",X=de.INSPECT_MAX_BYTES;return this.length>0&&(B=this.toString("hex",0,X).match(/.{2}/g).join(" "),this.length>X&&(B+=" ... ")),"<Buffer "+B+">"},C.prototype.compare=function(B,X,he,De,Ve){if(!C.isBuffer(B))throw new TypeError("Argument must be a Buffer");if(X===void 0&&(X=0),he===void 0&&(he=B?B.length:0),De===void 0&&(De=0),Ve===void 0&&(Ve=this.length),X<0||he>B.length||De<0||Ve>this.length)throw new RangeError("out of range index");if(De>=Ve&&X>=he)return 0;if(De>=Ve)return-1;if(X>=he)return 1;if(this===B)return 0;for(var Be=(Ve>>>=0)-(De>>>=0),ze=(he>>>=0)-(X>>>=0),lt=Math.min(Be,ze),Ze=this.slice(De,Ve),Pt=B.slice(X,he),jt=0;jt<lt;++jt)if(Ze[jt]!==Pt[jt]){Be=Ze[jt],ze=Pt[jt];break}return Be<ze?-1:ze<Be?1:0},C.prototype.includes=function(B,X,he){return this.indexOf(B,X,he)!==-1},C.prototype.indexOf=function(B,X,he){return m(this,B,X,he,!0)},C.prototype.lastIndexOf=function(B,X,he){return m(this,B,X,he,!1)},C.prototype.write=function(B,X,he,De){if(X===void 0)De="utf8",he=this.length,X=0;else if(he===void 0&&typeof X=="string")De=X,he=this.length,X=0;else{if(!isFinite(X))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");X|=0,isFinite(he)?(he|=0,De===void 0&&(De="utf8")):(De=he,he=void 0)}var Ve=this.length-X;if((he===void 0||he>Ve)&&(he=Ve),B.length>0&&(he<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");De||(De="utf8");for(var Be=!1;;)switch(De){case"hex":return P(this,B,X,he);case"utf8":case"utf-8":return q(this,B,X,he);case"ascii":return te(this,B,X,he);case"latin1":case"binary":return Z(this,B,X,he);case"base64":return h(this,B,X,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,B,X,he);default:if(Be)throw new TypeError("Unknown encoding: "+De);De=(""+De).toLowerCase(),Be=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(B,X,he){var De="";he=Math.min(B.length,he);for(var Ve=X;Ve<he;++Ve)De+=String.fromCharCode(127&B[Ve]);return De}function D(B,X,he){var De="";he=Math.min(B.length,he);for(var Ve=X;Ve<he;++Ve)De+=String.fromCharCode(B[Ve]);return De}function se(B,X,he){var De=B.length;(!X||X<0)&&(X=0),(!he||he<0||he>De)&&(he=De);for(var Ve="",Be=X;Be<he;++Be)Ve+=yt(B[Be]);return Ve}function re(B,X,he){for(var De=B.slice(X,he),Ve="",Be=0;Be<De.length;Be+=2)Ve+=String.fromCharCode(De[Be]+256*De[Be+1]);return Ve}function be(B,X,he){if(B%1!=0||B<0)throw new RangeError("offset is not uint");if(B+X>he)throw new RangeError("Trying to access beyond buffer length")}function $e(B,X,he,De,Ve,Be){if(!C.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>Ve||X<Be)throw new RangeError('"value" argument is out of bounds');if(he+De>B.length)throw new RangeError("Index out of range")}function dt(B,X,he,De){X<0&&(X=65535+X+1);for(var Ve=0,Be=Math.min(B.length-he,2);Ve<Be;++Ve)B[he+Ve]=(X&255<<8*(De?Ve:1-Ve))>>>8*(De?Ve:1-Ve)}function Tt(B,X,he,De){X<0&&(X=4294967295+X+1);for(var Ve=0,Be=Math.min(B.length-he,4);Ve<Be;++Ve)B[he+Ve]=X>>>8*(De?Ve:3-Ve)&255}function ft(B,X,he,De,Ve,Be){if(he+De>B.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function Ke(B,X,he,De,Ve){return Ve||ft(B,0,he,4),U.write(B,X,he,De,23,4),he+4}function nt(B,X,he,De,Ve){return Ve||ft(B,0,he,8),U.write(B,X,he,De,52,8),he+8}C.prototype.slice=function(B,X){var he,De=this.length;if((B=~~B)<0?(B+=De)<0&&(B=0):B>De&&(B=De),(X=X===void 0?De:~~X)<0?(X+=De)<0&&(X=0):X>De&&(X=De),X<B&&(X=B),C.TYPED_ARRAY_SUPPORT)(he=this.subarray(B,X)).__proto__=C.prototype;else{var Ve=X-B;he=new C(Ve,void 0);for(var Be=0;Be<Ve;++Be)he[Be]=this[Be+B]}return he},C.prototype.readUIntLE=function(B,X,he){B|=0,X|=0,he||be(B,X,this.length);for(var De=this[B],Ve=1,Be=0;++Be<X&&(Ve*=256);)De+=this[B+Be]*Ve;return De},C.prototype.readUIntBE=function(B,X,he){B|=0,X|=0,he||be(B,X,this.length);for(var De=this[B+--X],Ve=1;X>0&&(Ve*=256);)De+=this[B+--X]*Ve;return De},C.prototype.readUInt8=function(B,X){return X||be(B,1,this.length),this[B]},C.prototype.readUInt16LE=function(B,X){return X||be(B,2,this.length),this[B]|this[B+1]<<8},C.prototype.readUInt16BE=function(B,X){return X||be(B,2,this.length),this[B]<<8|this[B+1]},C.prototype.readUInt32LE=function(B,X){return X||be(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+16777216*this[B+3]},C.prototype.readUInt32BE=function(B,X){return X||be(B,4,this.length),16777216*this[B]+(this[B+1]<<16|this[B+2]<<8|this[B+3])},C.prototype.readIntLE=function(B,X,he){B|=0,X|=0,he||be(B,X,this.length);for(var De=this[B],Ve=1,Be=0;++Be<X&&(Ve*=256);)De+=this[B+Be]*Ve;return De>=(Ve*=128)&&(De-=Math.pow(2,8*X)),De},C.prototype.readIntBE=function(B,X,he){B|=0,X|=0,he||be(B,X,this.length);for(var De=X,Ve=1,Be=this[B+--De];De>0&&(Ve*=256);)Be+=this[B+--De]*Ve;return Be>=(Ve*=128)&&(Be-=Math.pow(2,8*X)),Be},C.prototype.readInt8=function(B,X){return X||be(B,1,this.length),128&this[B]?-1*(255-this[B]+1):this[B]},C.prototype.readInt16LE=function(B,X){X||be(B,2,this.length);var he=this[B]|this[B+1]<<8;return 32768&he?4294901760|he:he},C.prototype.readInt16BE=function(B,X){X||be(B,2,this.length);var he=this[B+1]|this[B]<<8;return 32768&he?4294901760|he:he},C.prototype.readInt32LE=function(B,X){return X||be(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},C.prototype.readInt32BE=function(B,X){return X||be(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},C.prototype.readFloatLE=function(B,X){return X||be(B,4,this.length),U.read(this,B,!0,23,4)},C.prototype.readFloatBE=function(B,X){return X||be(B,4,this.length),U.read(this,B,!1,23,4)},C.prototype.readDoubleLE=function(B,X){return X||be(B,8,this.length),U.read(this,B,!0,52,8)},C.prototype.readDoubleBE=function(B,X){return X||be(B,8,this.length),U.read(this,B,!1,52,8)},C.prototype.writeUIntLE=function(B,X,he,De){B=+B,X|=0,he|=0,De||$e(this,B,X,he,Math.pow(2,8*he)-1,0);var Ve=1,Be=0;for(this[X]=255&B;++Be<he&&(Ve*=256);)this[X+Be]=B/Ve&255;return X+he},C.prototype.writeUIntBE=function(B,X,he,De){B=+B,X|=0,he|=0,De||$e(this,B,X,he,Math.pow(2,8*he)-1,0);var Ve=he-1,Be=1;for(this[X+Ve]=255&B;--Ve>=0&&(Be*=256);)this[X+Ve]=B/Be&255;return X+he},C.prototype.writeUInt8=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,1,255,0),C.TYPED_ARRAY_SUPPORT||(B=Math.floor(B)),this[X]=255&B,X+1},C.prototype.writeUInt16LE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[X]=255&B,this[X+1]=B>>>8):dt(this,B,X,!0),X+2},C.prototype.writeUInt16BE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[X]=B>>>8,this[X+1]=255&B):dt(this,B,X,!1),X+2},C.prototype.writeUInt32LE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[X+3]=B>>>24,this[X+2]=B>>>16,this[X+1]=B>>>8,this[X]=255&B):Tt(this,B,X,!0),X+4},C.prototype.writeUInt32BE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[X]=B>>>24,this[X+1]=B>>>16,this[X+2]=B>>>8,this[X+3]=255&B):Tt(this,B,X,!1),X+4},C.prototype.writeIntLE=function(B,X,he,De){if(B=+B,X|=0,!De){var Ve=Math.pow(2,8*he-1);$e(this,B,X,he,Ve-1,-Ve)}var Be=0,ze=1,lt=0;for(this[X]=255&B;++Be<he&&(ze*=256);)B<0&&lt===0&&this[X+Be-1]!==0&&(lt=1),this[X+Be]=(B/ze>>0)-lt&255;return X+he},C.prototype.writeIntBE=function(B,X,he,De){if(B=+B,X|=0,!De){var Ve=Math.pow(2,8*he-1);$e(this,B,X,he,Ve-1,-Ve)}var Be=he-1,ze=1,lt=0;for(this[X+Be]=255&B;--Be>=0&&(ze*=256);)B<0&&lt===0&&this[X+Be+1]!==0&&(lt=1),this[X+Be]=(B/ze>>0)-lt&255;return X+he},C.prototype.writeInt8=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,1,127,-128),C.TYPED_ARRAY_SUPPORT||(B=Math.floor(B)),B<0&&(B=255+B+1),this[X]=255&B,X+1},C.prototype.writeInt16LE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[X]=255&B,this[X+1]=B>>>8):dt(this,B,X,!0),X+2},C.prototype.writeInt16BE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[X]=B>>>8,this[X+1]=255&B):dt(this,B,X,!1),X+2},C.prototype.writeInt32LE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,4,2147483647,-2147483648),C.TYPED_ARRAY_SUPPORT?(this[X]=255&B,this[X+1]=B>>>8,this[X+2]=B>>>16,this[X+3]=B>>>24):Tt(this,B,X,!0),X+4},C.prototype.writeInt32BE=function(B,X,he){return B=+B,X|=0,he||$e(this,B,X,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),C.TYPED_ARRAY_SUPPORT?(this[X]=B>>>24,this[X+1]=B>>>16,this[X+2]=B>>>8,this[X+3]=255&B):Tt(this,B,X,!1),X+4},C.prototype.writeFloatLE=function(B,X,he){return Ke(this,B,X,!0,he)},C.prototype.writeFloatBE=function(B,X,he){return Ke(this,B,X,!1,he)},C.prototype.writeDoubleLE=function(B,X,he){return nt(this,B,X,!0,he)},C.prototype.writeDoubleBE=function(B,X,he){return nt(this,B,X,!1,he)},C.prototype.copy=function(B,X,he,De){if(he||(he=0),De||De===0||(De=this.length),X>=B.length&&(X=B.length),X||(X=0),De>0&&De<he&&(De=he),De===he||B.length===0||this.length===0)return 0;if(X<0)throw new RangeError("targetStart out of bounds");if(he<0||he>=this.length)throw new RangeError("sourceStart out of bounds");if(De<0)throw new RangeError("sourceEnd out of bounds");De>this.length&&(De=this.length),B.length-X<De-he&&(De=B.length-X+he);var Ve,Be=De-he;if(this===B&&he<X&&X<De)for(Ve=Be-1;Ve>=0;--Ve)B[Ve+X]=this[Ve+he];else if(Be<1e3||!C.TYPED_ARRAY_SUPPORT)for(Ve=0;Ve<Be;++Ve)B[Ve+X]=this[Ve+he];else Uint8Array.prototype.set.call(B,this.subarray(he,he+Be),X);return Be},C.prototype.fill=function(B,X,he,De){if(typeof B=="string"){if(typeof X=="string"?(De=X,X=0,he=this.length):typeof he=="string"&&(De=he,he=this.length),B.length===1){var Ve=B.charCodeAt(0);Ve<256&&(B=Ve)}if(De!==void 0&&typeof De!="string")throw new TypeError("encoding must be a string");if(typeof De=="string"&&!C.isEncoding(De))throw new TypeError("Unknown encoding: "+De)}else typeof B=="number"&&(B&=255);if(X<0||this.length<X||this.length<he)throw new RangeError("Out of range index");if(he<=X)return this;var Be;if(X>>>=0,he=he===void 0?this.length:he>>>0,B||(B=0),typeof B=="number")for(Be=X;Be<he;++Be)this[Be]=B;else{var ze=C.isBuffer(B)?B:Nt(new C(B,De).toString()),lt=ze.length;for(Be=0;Be<he-X;++Be)this[Be+X]=ze[Be%lt]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function yt(B){return B<16?"0"+B.toString(16):B.toString(16)}function Nt(B,X){var he;X=X||1/0;for(var De=B.length,Ve=null,Be=[],ze=0;ze<De;++ze){if((he=B.charCodeAt(ze))>55295&&he<57344){if(!Ve){if(he>56319){(X-=3)>-1&&Be.push(239,191,189);continue}if(ze+1===De){(X-=3)>-1&&Be.push(239,191,189);continue}Ve=he;continue}if(he<56320){(X-=3)>-1&&Be.push(239,191,189),Ve=he;continue}he=65536+(Ve-55296<<10|he-56320)}else Ve&&(X-=3)>-1&&Be.push(239,191,189);if(Ve=null,he<128){if((X-=1)<0)break;Be.push(he)}else if(he<2048){if((X-=2)<0)break;Be.push(he>>6|192,63&he|128)}else if(he<65536){if((X-=3)<0)break;Be.push(he>>12|224,he>>6&63|128,63&he|128)}else{if(!(he<1114112))throw new Error("Invalid code point");if((X-=4)<0)break;Be.push(he>>18|240,he>>12&63|128,he>>6&63|128,63&he|128)}}return Be}function at(B){return _.toByteArray(function(X){if((X=function(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}(X).replace(mt,"")).length<2)return"";for(;X.length%4!=0;)X+="=";return X}(B))}function Ft(B,X,he,De){for(var Ve=0;Ve<De&&!(Ve+he>=X.length||Ve>=B.length);++Ve)X[Ve+he]=B[Ve];return Ve}}).call(this,b(72))},function(ke,de,b){de.byteLength=function(ue){var x=C(ue),Y=x[0],ce=x[1];return 3*(Y+ce)/4-ce},de.toByteArray=function(ue){var x,Y,ce=C(ue),K=ce[0],oe=ce[1],ie=new U(function(P,q,te){return 3*(q+te)/4-te}(0,K,oe)),m=0,S=oe>0?K-4:K;for(Y=0;Y<S;Y+=4)x=_[ue.charCodeAt(Y)]<<18|_[ue.charCodeAt(Y+1)]<<12|_[ue.charCodeAt(Y+2)]<<6|_[ue.charCodeAt(Y+3)],ie[m++]=x>>16&255,ie[m++]=x>>8&255,ie[m++]=255&x;return oe===2&&(x=_[ue.charCodeAt(Y)]<<2|_[ue.charCodeAt(Y+1)]>>4,ie[m++]=255&x),oe===1&&(x=_[ue.charCodeAt(Y)]<<10|_[ue.charCodeAt(Y+1)]<<4|_[ue.charCodeAt(Y+2)]>>2,ie[m++]=x>>8&255,ie[m++]=255&x),ie},de.fromByteArray=function(ue){for(var x,Y=ue.length,ce=Y%3,K=[],oe=0,ie=Y-ce;oe<ie;oe+=16383)K.push(M(ue,oe,oe+16383>ie?ie:oe+16383));return ce===1?(x=ue[Y-1],K.push(A[x>>2]+A[x<<4&63]+"==")):ce===2&&(x=(ue[Y-2]<<8)+ue[Y-1],K.push(A[x>>10]+A[x>>4&63]+A[x<<2&63]+"=")),K.join("")};for(var A=[],_=[],U=typeof Uint8Array<"u"?Uint8Array:Array,R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,G=R.length;p<G;++p)A[p]=R[p],_[R.charCodeAt(p)]=p;function C(ue){var x=ue.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Y=ue.indexOf("=");return Y===-1&&(Y=x),[Y,Y===x?0:4-Y%4]}function M(ue,x,Y){for(var ce,K,oe=[],ie=x;ie<Y;ie+=3)ce=(ue[ie]<<16&16711680)+(ue[ie+1]<<8&65280)+(255&ue[ie+2]),oe.push(A[(K=ce)>>18&63]+A[K>>12&63]+A[K>>6&63]+A[63&K]);return oe.join("")}_[45]=62,_[95]=63},function(ke,de){de.read=function(b,A,_,U,R){var p,G,C=8*R-U-1,M=(1<<C)-1,ue=M>>1,x=-7,Y=_?R-1:0,ce=_?-1:1,K=b[A+Y];for(Y+=ce,p=K&(1<<-x)-1,K>>=-x,x+=C;x>0;p=256*p+b[A+Y],Y+=ce,x-=8);for(G=p&(1<<-x)-1,p>>=-x,x+=U;x>0;G=256*G+b[A+Y],Y+=ce,x-=8);if(p===0)p=1-ue;else{if(p===M)return G?NaN:1/0*(K?-1:1);G+=Math.pow(2,U),p-=ue}return(K?-1:1)*G*Math.pow(2,p-U)},de.write=function(b,A,_,U,R,p){var G,C,M,ue=8*p-R-1,x=(1<<ue)-1,Y=x>>1,ce=R===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=U?0:p-1,oe=U?1:-1,ie=A<0||A===0&&1/A<0?1:0;for(A=Math.abs(A),isNaN(A)||A===1/0?(C=isNaN(A)?1:0,G=x):(G=Math.floor(Math.log(A)/Math.LN2),A*(M=Math.pow(2,-G))<1&&(G--,M*=2),(A+=G+Y>=1?ce/M:ce*Math.pow(2,1-Y))*M>=2&&(G++,M/=2),G+Y>=x?(C=0,G=x):G+Y>=1?(C=(A*M-1)*Math.pow(2,R),G+=Y):(C=A*Math.pow(2,Y-1)*Math.pow(2,R),G=0));R>=8;b[_+K]=255&C,K+=oe,C/=256,R-=8);for(G=G<<R|C,ue+=R;ue>0;b[_+K]=255&G,K+=oe,G/=256,ue-=8);b[_+K-oe]|=128*ie}},function(ke,de){var b={}.toString;ke.exports=Array.isArray||function(A){return b.call(A)=="[object Array]"}},function(ke,de){ke.exports=function(b,A){if(typeof Symbol<"u"&&Symbol.iterator in Object(b)){var _=[],U=!0,R=!1,p=void 0;try{for(var G,C=b[Symbol.iterator]();!(U=(G=C.next()).done)&&(_.push(G.value),!A||_.length!==A);U=!0);}catch(M){R=!0,p=M}finally{try{U||C.return==null||C.return()}finally{if(R)throw p}}return _}}},function(ke,de,b){},function(ke,de,b){var A=b(118);ke.exports=function(_){if(Array.isArray(_))return A(_)}},function(ke,de){ke.exports=function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){var A,_;(function(U){A=[b(95)],(_=(function(R){return function(p,G,C,M){var ue,x,Y,ce,K=function(r){this.$=function(L,I){return this.api(!0).$(L,I)},this._=function(L,I){return this.api(!0).rows(L,I).data()},this.api=function(L){return new x(L?ye(this[ue.iApiIndex]):this)},this.fnAddData=function(L,I){var $=this.api(!0),pe=Array.isArray(L)&&(Array.isArray(L[0])||p.isPlainObject(L[0]))?$.rows.add(L):$.row.add(L);return(I===M||I)&&$.draw(),pe.flatten().toArray()},this.fnAdjustColumnSizing=function(L){var I=this.api(!0).columns.adjust(),$=I.settings()[0],pe=$.oScroll;L===M||L?I.draw(!1):pe.sX===""&&pe.sY===""||pn($)},this.fnClearTable=function(L){var I=this.api(!0).clear();(L===M||L)&&I.draw()},this.fnClose=function(L){this.api(!0).row(L).child.hide()},this.fnDeleteRow=function(L,I,$){var pe=this.api(!0),We=pe.rows(L),_e=We.settings()[0],n=_e.aoData[We[0][0]];return We.remove(),I&&I.call(this,_e,n),($===M||$)&&pe.draw(),n},this.fnDestroy=function(L){this.api(!0).destroy(L)},this.fnDraw=function(L){this.api(!0).draw(L)},this.fnFilter=function(L,I,$,pe,We,_e){var n=this.api(!0);I===null||I===M?n.search(L,$,pe,_e):n.column(I).search(L,$,pe,_e),n.draw()},this.fnGetData=function(L,I){var $=this.api(!0);if(L!==M){var pe=L.nodeName?L.nodeName.toLowerCase():"";return I!==M||pe=="td"||pe=="th"?$.cell(L,I).data():$.row(L).data()||null}return $.data().toArray()},this.fnGetNodes=function(L){var I=this.api(!0);return L!==M?I.row(L).node():I.rows().nodes().flatten().toArray()},this.fnGetPosition=function(L){var I=this.api(!0),$=L.nodeName.toUpperCase();if($=="TR")return I.row(L).index();if($=="TD"||$=="TH"){var pe=I.cell(L).index();return[pe.row,pe.columnVisible,pe.column]}return null},this.fnIsOpen=function(L){return this.api(!0).row(L).child.isShown()},this.fnOpen=function(L,I,$){return this.api(!0).row(L).child(I,$).show().child()[0]},this.fnPageChange=function(L,I){var $=this.api(!0).page(L);(I===M||I)&&$.draw(!1)},this.fnSetColumnVis=function(L,I,$){var pe=this.api(!0).column(L).visible(I);($===M||$)&&pe.columns.adjust().draw()},this.fnSettings=function(){return ye(this[ue.iApiIndex])},this.fnSort=function(L){this.api(!0).order(L).draw()},this.fnSortListener=function(L,I,$){this.api(!0).order.listener(L,I,$)},this.fnUpdate=function(L,I,$,pe,We){var _e=this.api(!0);return $===M||$===null?_e.row(I).data(L):_e.cell(I,$).data(L),(We===M||We)&&_e.columns.adjust(),(pe===M||pe)&&_e.draw(),0},this.fnVersionCheck=ue.fnVersionCheck;var a=this,d=r===M,g=this.length;for(var N in d&&(r={}),this.oApi=this.internal=ue.internal,K.ext.internal)N&&(this[N]=Ae(N));return this.each(function(){var L,I=g>1?H({},r,!0):r,$=0,pe=this.getAttribute("id"),We=!1,_e=K.defaults,n=p(this);if(this.nodeName.toLowerCase()=="table"){nt(_e),mt(_e.column),Tt(_e,_e,!0),Tt(_e.column,_e.column,!0),Tt(_e,p.extend(I,n.data()),!0);var c=K.settings;for($=0,L=c.length;$<L;$++){var E=c[$];if(E.nTable==this||E.nTHead&&E.nTHead.parentNode==this||E.nTFoot&&E.nTFoot.parentNode==this){var T=I.bRetrieve!==M?I.bRetrieve:_e.bRetrieve,W=I.bDestroy!==M?I.bDestroy:_e.bDestroy;if(d||T)return E.oInstance;if(W){E.oInstance.fnDestroy();break}return void Le(E,0,"Cannot reinitialise DataTable",3)}if(E.sTableId==this.id){c.splice($,1);break}}pe!==null&&pe!==""||(pe="DataTables_Table_"+K.ext._unique++,this.id=pe);var V=p.extend(!0,{},K.models.oSettings,{sDestroyWidth:n[0].style.width,sInstance:pe,sTableId:pe});V.nTable=this,V.oApi=a.internal,V.oInit=I,c.push(V),V.oInstance=a.length===1?a:n.dataTable(),nt(I),ft(I.oLanguage),I.aLengthMenu&&!I.iDisplayLength&&(I.iDisplayLength=Array.isArray(I.aLengthMenu[0])?I.aLengthMenu[0][0]:I.aLengthMenu[0]),I=H(p.extend(!0,{},_e),I),J(V.oFeatures,I,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),J(V,I,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),J(V.oScroll,I,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),J(V.oLanguage,I,"fnInfoCallback"),Qe(V,"aoDrawCallback",I.fnDrawCallback,"user"),Qe(V,"aoServerParams",I.fnServerParams,"user"),Qe(V,"aoStateSaveParams",I.fnStateSaveParams,"user"),Qe(V,"aoStateLoadParams",I.fnStateLoadParams,"user"),Qe(V,"aoStateLoaded",I.fnStateLoaded,"user"),Qe(V,"aoRowCallback",I.fnRowCallback,"user"),Qe(V,"aoRowCreatedCallback",I.fnCreatedRow,"user"),Qe(V,"aoHeaderCallback",I.fnHeaderCallback,"user"),Qe(V,"aoFooterCallback",I.fnFooterCallback,"user"),Qe(V,"aoInitComplete",I.fnInitComplete,"user"),Qe(V,"aoPreDrawCallback",I.fnPreDrawCallback,"user"),V.rowIdFn=gr(I.rowId),yt(V);var fe=V.oClasses;if(p.extend(fe,K.ext.classes,I.oClasses),n.addClass(fe.sTable),V.iInitDisplayStart===M&&(V.iInitDisplayStart=I.iDisplayStart,V._iDisplayStart=I.iDisplayStart),I.iDeferLoading!==null){V.bDeferLoading=!0;var Pe=Array.isArray(I.iDeferLoading);V._iRecordsDisplay=Pe?I.iDeferLoading[0]:I.iDeferLoading,V._iRecordsTotal=Pe?I.iDeferLoading[1]:I.iDeferLoading}var He=V.oLanguage;p.extend(!0,He,I.oLanguage),He.sUrl?(p.ajax({dataType:"json",url:He.sUrl,success:function(Ar){ft(Ar),Tt(_e.oLanguage,Ar),p.extend(!0,He,Ar),ct(V,null,"i18n",[V]),tr(V)},error:function(){tr(V)}}),We=!0):ct(V,null,"i18n",[V]),I.asStripeClasses===null&&(V.asStripeClasses=[fe.sStripeOdd,fe.sStripeEven]);var et=V.asStripeClasses,Et=n.children("tbody").find("tr").eq(0);p.inArray(!0,p.map(et,function(Ar,rn){return Et.hasClass(Ar)}))!==-1&&(p("tbody tr",this).removeClass(et.join(" ")),V.asDestroyStripes=et.slice());var Dt,St=[],At=this.getElementsByTagName("thead");if(At.length!==0&&(sn(V.aoHeader,At[0]),St=Sr(V)),I.aoColumns===null)for(Dt=[],$=0,L=St.length;$<L;$++)Dt.push(null);else Dt=I.aoColumns;for($=0,L=Dt.length;$<L;$++)at(V,St?St[$]:null);if(ze(V,I.aoColumnDefs,Dt,function(Ar,rn){Ft(V,Ar,rn)}),Et.length){var pr=function(Ar,rn){return Ar.getAttribute("data-"+rn)!==null?rn:null};p(Et[0]).children("th, td").each(function(Ar,rn){var zn=V.aoColumns[Ar];if(zn.mData===Ar){var an=pr(rn,"sort")||pr(rn,"order"),Tr=pr(rn,"filter")||pr(rn,"search");an===null&&Tr===null||(zn.mData={_:Ar+".display",sort:an!==null?Ar+".@data-"+an:M,type:an!==null?Ar+".@data-"+an:M,filter:Tr!==null?Ar+".@data-"+Tr:M},Ft(V,Ar))}})}var dr=V.oFeatures,hr=function(){if(I.aaSorting===M){var Ar=V.aaSorting;for($=0,L=Ar.length;$<L;$++)Ar[$][1]=V.aoColumns[$].asSorting[0]}ar(V),dr.bSort&&Qe(V,"aoDrawCallback",function(){if(V.bSorted){var ni=Ut(V),nn={};p.each(ni,function(fn,pi){nn[pi.src]=pi.dir}),ct(V,null,"order",[V,ni,nn]),Ur(V)}}),Qe(V,"aoDrawCallback",function(){(V.bSorted||k(V)==="ssp"||dr.bDeferRender)&&ar(V)},"sc");var rn=n.children("caption").each(function(){this._captionSide=p(this).css("caption-side")}),zn=n.children("thead");zn.length===0&&(zn=p("<thead/>").appendTo(n)),V.nTHead=zn[0];var an=n.children("tbody");an.length===0&&(an=p("<tbody/>").appendTo(n)),V.nTBody=an[0];var Tr=n.children("tfoot");if(Tr.length===0&&rn.length>0&&(V.oScroll.sX!==""||V.oScroll.sY!=="")&&(Tr=p("<tfoot/>").appendTo(n)),Tr.length===0||Tr.children().length===0?n.addClass(fe.sNoFooter):Tr.length>0&&(V.nTFoot=Tr[0],sn(V.aoFooter,V.nTFoot)),I.aaData)for($=0;$<I.aaData.length;$++)lt(V,I.aaData[$]);else(V.bDeferLoading||k(V)=="dom")&&Ze(V,p(V.nTBody).children("tr"));V.aiDisplay=V.aiDisplayMaster.slice(),V.bInitialised=!0,We===!1&&tr(V)};I.bStateSave?(dr.bStateSave=!0,Qe(V,"aoDrawCallback",Fn,"state_save"),Ye(V,I,hr)):hr()}else Le(null,0,"Non-table node initialisation ("+this.nodeName+")",2)}),a=null,this},oe={},ie=/[\r\n\u2028]/g,m=/<.*?>/g,S=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,P=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),q=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,te=function(r){return!r||r===!0||r==="-"},Z=function(r){var a=parseInt(r,10);return!isNaN(a)&&isFinite(r)?a:null},h=function(r,a){return oe[a]||(oe[a]=new RegExp(Fe(a),"g")),typeof r=="string"&&a!=="."?r.replace(/\./g,"").replace(oe[a],"."):r},ne=function(r,a,d){var g=typeof r=="string";return!!te(r)||(a&&g&&(r=h(r,a)),d&&g&&(r=r.replace(q,"")),!isNaN(parseFloat(r))&&isFinite(r))},Ge=function(r,a,d){return!!te(r)||function(g){return te(g)||typeof g=="string"}(r)&&!!ne(re(r),a,d)||null},me=function(r,a,d){var g=[],N=0,L=r.length;if(d!==M)for(;N<L;N++)r[N]&&r[N][a]&&g.push(r[N][a][d]);else for(;N<L;N++)r[N]&&g.push(r[N][a]);return g},xe=function(r,a,d,g){var N=[],L=0,I=a.length;if(g!==M)for(;L<I;L++)r[a[L]][d]&&N.push(r[a[L]][d][g]);else for(;L<I;L++)N.push(r[a[L]][d]);return N},D=function(r,a){var d,g=[];a===M?(a=0,d=r):(d=a,a=r);for(var N=a;N<d;N++)g.push(N);return g},se=function(r){for(var a=[],d=0,g=r.length;d<g;d++)r[d]&&a.push(r[d]);return a},re=function(r){return r.replace(m,"")},be=function(r){if(function($){if($.length<2)return!0;for(var pe=$.slice().sort(),We=pe[0],_e=1,n=pe.length;_e<n;_e++){if(pe[_e]===We)return!1;We=pe[_e]}return!0}(r))return r.slice();var a,d,g,N=[],L=r.length,I=0;e:for(d=0;d<L;d++){for(a=r[d],g=0;g<I;g++)if(N[g]===a)continue e;N.push(a),I++}return N},$e=function(r,a){if(Array.isArray(a))for(var d=0;d<a.length;d++)$e(r,a[d]);else r.push(a);return r};Array.isArray||(Array.isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});function dt(r){var a,d,g={};p.each(r,function(N,L){(a=N.match(/^([^A-Z]+?)([A-Z])/))&&"a aa ai ao as b fn i m o s ".indexOf(a[1]+" ")!==-1&&(d=N.replace(a[0],a[2].toLowerCase()),g[d]=N,a[1]==="o"&&dt(r[N]))}),r._hungarianMap=g}function Tt(r,a,d){var g;r._hungarianMap||dt(r),p.each(a,function(N,L){(g=r._hungarianMap[N])===M||!d&&a[g]!==M||(g.charAt(0)==="o"?(a[g]||(a[g]={}),p.extend(!0,a[g],a[N]),Tt(r[g],a[g],d)):a[g]=a[N])})}function ft(r){var a=K.defaults.oLanguage,d=a.sDecimal;if(d&&An(d),r){var g=r.sZeroRecords;!r.sEmptyTable&&g&&a.sEmptyTable==="No data available in table"&&J(r,r,"sZeroRecords","sEmptyTable"),!r.sLoadingRecords&&g&&a.sLoadingRecords==="Loading..."&&J(r,r,"sZeroRecords","sLoadingRecords"),r.sInfoThousands&&(r.sThousands=r.sInfoThousands);var N=r.sDecimal;N&&d!==N&&An(N)}}K.util={throttle:function(r,a){var d,g,N=a!==M?a:200;return function(){var L=this,I=+new Date,$=arguments;d&&I<d+N?(clearTimeout(g),g=setTimeout(function(){d=M,r.apply(L,$)},N)):(d=I,r.apply(L,$))}},escapeRegex:function(r){return r.replace(P,"\\$1")}};var Ke=function(r,a,d){r[a]!==M&&(r[d]=r[a])};function nt(r){Ke(r,"ordering","bSort"),Ke(r,"orderMulti","bSortMulti"),Ke(r,"orderClasses","bSortClasses"),Ke(r,"orderCellsTop","bSortCellsTop"),Ke(r,"order","aaSorting"),Ke(r,"orderFixed","aaSortingFixed"),Ke(r,"paging","bPaginate"),Ke(r,"pagingType","sPaginationType"),Ke(r,"pageLength","iDisplayLength"),Ke(r,"searching","bFilter"),typeof r.sScrollX=="boolean"&&(r.sScrollX=r.sScrollX?"100%":""),typeof r.scrollX=="boolean"&&(r.scrollX=r.scrollX?"100%":"");var a=r.aoSearchCols;if(a)for(var d=0,g=a.length;d<g;d++)a[d]&&Tt(K.models.oSearch,a[d])}function mt(r){Ke(r,"orderable","bSortable"),Ke(r,"orderData","aDataSort"),Ke(r,"orderSequence","asSorting"),Ke(r,"orderDataType","sortDataType");var a=r.aDataSort;typeof a!="number"||Array.isArray(a)||(r.aDataSort=[a])}function yt(r){if(!K.__browser){var a={};K.__browser=a;var d=p("<div/>").css({position:"fixed",top:0,left:-1*p(G).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(p("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(p("<div/>").css({width:"100%",height:10}))).appendTo("body"),g=d.children(),N=g.children();a.barWidth=g[0].offsetWidth-g[0].clientWidth,a.bScrollOversize=N[0].offsetWidth===100&&g[0].clientWidth!==100,a.bScrollbarLeft=Math.round(N.offset().left)!==1,a.bBounding=!!d[0].getBoundingClientRect().width,d.remove()}p.extend(r.oBrowser,K.__browser),r.oScroll.iBarWidth=K.__browser.barWidth}function Nt(r,a,d,g,N,L){var I,$=g,pe=!1;for(d!==M&&(I=d,pe=!0);$!==N;)r.hasOwnProperty($)&&(I=pe?a(I,r[$],$,r):r[$],pe=!0,$+=L);return I}function at(r,a){var d=K.defaults.column,g=r.aoColumns.length,N=p.extend({},K.models.oColumn,d,{nTh:a||C.createElement("th"),sTitle:d.sTitle?d.sTitle:a?a.innerHTML:"",aDataSort:d.aDataSort?d.aDataSort:[g],mData:d.mData?d.mData:g,idx:g});r.aoColumns.push(N);var L=r.aoPreSearchCols;L[g]=p.extend({},K.models.oSearch,L[g]),Ft(r,g,p(a).data())}function Ft(r,a,d){var g=r.aoColumns[a],N=r.oClasses,L=p(g.nTh);if(!g.sWidthOrig){g.sWidthOrig=L.attr("width")||null;var I=(L.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);I&&(g.sWidthOrig=I[1])}d!==M&&d!==null&&(mt(d),Tt(K.defaults.column,d,!0),d.mDataProp===M||d.mData||(d.mData=d.mDataProp),d.sType&&(g._sManualType=d.sType),d.className&&!d.sClass&&(d.sClass=d.className),d.sClass&&L.addClass(d.sClass),p.extend(g,d),J(g,d,"sWidth","sWidthOrig"),d.iDataSort!==M&&(g.aDataSort=[d.iDataSort]),J(g,d,"aDataSort"));var $=g.mData,pe=gr($),We=g.mRender?gr(g.mRender):null,_e=function(E){return typeof E=="string"&&E.indexOf("@")!==-1};g._bAttrSrc=p.isPlainObject($)&&(_e($.sort)||_e($.type)||_e($.filter)),g._setter=null,g.fnGetData=function(E,T,W){var V=pe(E,T,M,W);return We&&T?We(V,T,E,W):V},g.fnSetData=function(E,T,W){return Cr($)(E,T,W)},typeof $!="number"&&(r._rowReadObject=!0),r.oFeatures.bSort||(g.bSortable=!1,L.addClass(N.sSortableNone));var n=p.inArray("asc",g.asSorting)!==-1,c=p.inArray("desc",g.asSorting)!==-1;g.bSortable&&(n||c)?n&&!c?(g.sSortingClass=N.sSortableAsc,g.sSortingClassJUI=N.sSortJUIAscAllowed):!n&&c?(g.sSortingClass=N.sSortableDesc,g.sSortingClassJUI=N.sSortJUIDescAllowed):(g.sSortingClass=N.sSortable,g.sSortingClassJUI=N.sSortJUI):(g.sSortingClass=N.sSortableNone,g.sSortingClassJUI="")}function B(r){if(r.oFeatures.bAutoWidth!==!1){var a=r.aoColumns;pt(r);for(var d=0,g=a.length;d<g;d++)a[d].nTh.style.width=a[d].sWidth}var N=r.oScroll;N.sY===""&&N.sX===""||pn(r),ct(r,null,"column-sizing",[r])}function X(r,a){var d=Ve(r,"bVisible");return typeof d[a]=="number"?d[a]:null}function he(r,a){var d=Ve(r,"bVisible"),g=p.inArray(a,d);return g!==-1?g:null}function De(r){var a=0;return p.each(r.aoColumns,function(d,g){g.bVisible&&p(g.nTh).css("display")!=="none"&&a++}),a}function Ve(r,a){var d=[];return p.map(r.aoColumns,function(g,N){g[a]&&d.push(N)}),d}function Be(r){var a,d,g,N,L,I,$,pe,We,_e=r.aoColumns,n=r.aoData,c=K.ext.type.detect;for(a=0,d=_e.length;a<d;a++)if(We=[],!($=_e[a]).sType&&$._sManualType)$.sType=$._sManualType;else if(!$.sType){for(g=0,N=c.length;g<N;g++){for(L=0,I=n.length;L<I&&(We[L]===M&&(We[L]=jt(r,L,a,"type")),(pe=c[g](We[L],r))||g===c.length-1)&&pe!=="html";L++);if(pe){$.sType=pe;break}}$.sType||($.sType="string")}}function ze(r,a,d,g){var N,L,I,$,pe,We,_e,n=r.aoColumns;if(a)for(N=a.length-1;N>=0;N--){var c=(_e=a[N]).targets!==M?_e.targets:_e.aTargets;for(Array.isArray(c)||(c=[c]),I=0,$=c.length;I<$;I++)if(typeof c[I]=="number"&&c[I]>=0){for(;n.length<=c[I];)at(r);g(c[I],_e)}else if(typeof c[I]=="number"&&c[I]<0)g(n.length+c[I],_e);else if(typeof c[I]=="string")for(pe=0,We=n.length;pe<We;pe++)(c[I]=="_all"||p(n[pe].nTh).hasClass(c[I]))&&g(pe,_e)}if(d)for(N=0,L=d.length;N<L;N++)g(N,d[N])}function lt(r,a,d,g){var N=r.aoData.length,L=p.extend(!0,{},K.models.oRow,{src:d?"dom":"data",idx:N});L._aData=a,r.aoData.push(L);for(var I=r.aoColumns,$=0,pe=I.length;$<pe;$++)I[$].sType=null;r.aiDisplayMaster.push(N);var We=r.rowIdFn(a);return We!==M&&(r.aIds[We]=L),!d&&r.oFeatures.bDeferRender||dn(r,N,d,g),N}function Ze(r,a){var d;return a instanceof p||(a=p(a)),a.map(function(g,N){return d=Vr(r,N),lt(r,d.data,N,d.cells)})}function Pt(r,a,d){return p.inArray(d,r.aoData[a].anCells)}function jt(r,a,d,g){var N=r.iDraw,L=r.aoColumns[d],I=r.aoData[a]._aData,$=L.sDefaultContent,pe=L.fnGetData(I,g,{settings:r,row:a,col:d});if(pe===M)return r.iDrawError!=N&&$===null&&(Le(r,0,"Requested unknown parameter "+(typeof L.mData=="function"?"{function}":"'"+L.mData+"'")+" for row "+a+", column "+d,4),r.iDrawError=N),$;if(pe!==I&&pe!==null||$===null||g===M){if(typeof pe=="function")return pe.call(I)}else pe=$;return pe===null&&g=="display"?"":pe}function nr(r,a,d,g){var N=r.aoColumns[d],L=r.aoData[a]._aData;N.fnSetData(L,g,{settings:r,row:a,col:d})}var Bt=/\[.*?\]$/,xr=/\(\)$/;function Pr(r){return p.map(r.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function gr(r){if(p.isPlainObject(r)){var a={};return p.each(r,function(g,N){N&&(a[g]=gr(N))}),function(g,N,L,I){var $=a[N]||a._;return $!==M?$(g,N,L,I):g}}if(r===null)return function(g){return g};if(typeof r=="function")return function(g,N,L,I){return r(g,N,L,I)};if(typeof r!="string"||r.indexOf(".")===-1&&r.indexOf("[")===-1&&r.indexOf("(")===-1)return function(g,N){return g[r]};var d=function(g,N,L){var I,$,pe,We;if(L!=="")for(var _e=Pr(L),n=0,c=_e.length;n<c;n++){if(I=_e[n].match(Bt),$=_e[n].match(xr),I){if(_e[n]=_e[n].replace(Bt,""),_e[n]!==""&&(g=g[_e[n]]),pe=[],_e.splice(0,n+1),We=_e.join("."),Array.isArray(g))for(var E=0,T=g.length;E<T;E++)pe.push(d(g[E],N,We));var W=I[0].substring(1,I[0].length-1);g=W===""?pe:pe.join(W);break}if($)_e[n]=_e[n].replace(xr,""),g=g[_e[n]]();else{if(g===null||g[_e[n]]===M)return M;g=g[_e[n]]}}return g};return function(g,N){return d(g,N,r)}}function Cr(r){if(p.isPlainObject(r))return Cr(r._);if(r===null)return function(){};if(typeof r=="function")return function(d,g,N){r(d,"set",g,N)};if(typeof r!="string"||r.indexOf(".")===-1&&r.indexOf("[")===-1&&r.indexOf("(")===-1)return function(d,g){d[r]=g};var a=function(d,g,N){for(var L,I,$,pe,We,_e=Pr(N),n=_e[_e.length-1],c=0,E=_e.length-1;c<E;c++){if(_e[c]==="__proto__"||_e[c]==="constructor")throw new Error("Cannot set prototype values");if(I=_e[c].match(Bt),$=_e[c].match(xr),I){if(_e[c]=_e[c].replace(Bt,""),d[_e[c]]=[],(L=_e.slice()).splice(0,c+1),We=L.join("."),Array.isArray(g))for(var T=0,W=g.length;T<W;T++)a(pe={},g[T],We),d[_e[c]].push(pe);else d[_e[c]]=g;return}$&&(_e[c]=_e[c].replace(xr,""),d=d[_e[c]](g)),d[_e[c]]!==null&&d[_e[c]]!==M||(d[_e[c]]={}),d=d[_e[c]]}n.match(xr)?d=d[n.replace(xr,"")](g):d[n.replace(Bt,"")]=g};return function(d,g){return a(d,g,r)}}function qr(r){return me(r.aoData,"_aData")}function on(r){r.aoData.length=0,r.aiDisplayMaster.length=0,r.aiDisplay.length=0,r.aIds={}}function Er(r,a,d){for(var g=-1,N=0,L=r.length;N<L;N++)r[N]==a?g=N:r[N]>a&&r[N]--;g!=-1&&d===M&&r.splice(g,1)}function cn(r,a,d,g){var N,L,I=r.aoData[a],$=function(_e,n){for(;_e.childNodes.length;)_e.removeChild(_e.firstChild);_e.innerHTML=jt(r,a,n,"display")};if(d!=="dom"&&(d&&d!=="auto"||I.src!=="dom")){var pe=I.anCells;if(pe)if(g!==M)$(pe[g],g);else for(N=0,L=pe.length;N<L;N++)$(pe[N],N)}else I._aData=Vr(r,I,g,g===M?M:I._aData).data;I._aSortData=null,I._aFilterData=null;var We=r.aoColumns;if(g!==M)We[g].sType=null;else{for(N=0,L=We.length;N<L;N++)We[N].sType=null;vr(r,I)}}function Vr(r,a,d,g){var N,L,I,$=[],pe=a.firstChild,We=0,_e=r.aoColumns,n=r._rowReadObject;g=g!==M?g:n?{}:[];var c=function(Pe,He){if(typeof Pe=="string"){var et=Pe.indexOf("@");if(et!==-1){var Et=Pe.substring(et+1);Cr(Pe)(g,He.getAttribute(Et))}}},E=function(Pe){d!==M&&d!==We||(L=_e[We],I=Pe.innerHTML.trim(),L&&L._bAttrSrc?(Cr(L.mData._)(g,I),c(L.mData.sort,Pe),c(L.mData.type,Pe),c(L.mData.filter,Pe)):n?(L._setter||(L._setter=Cr(L.mData)),L._setter(g,I)):g[We]=I),We++};if(pe)for(;pe;)(N=pe.nodeName.toUpperCase())!="TD"&&N!="TH"||(E(pe),$.push(pe)),pe=pe.nextSibling;else for(var T=0,W=($=a.anCells).length;T<W;T++)E($[T]);var V=a.firstChild?a:a.nTr;if(V){var fe=V.getAttribute("id");fe&&Cr(r.rowId)(g,fe)}return{data:g,cells:$}}function dn(r,a,d,g){var N,L,I,$,pe,We,_e=r.aoData[a],n=_e._aData,c=[];if(_e.nTr===null){for(N=d||C.createElement("tr"),_e.nTr=N,_e.anCells=c,N._DT_RowIndex=a,vr(r,_e),$=0,pe=r.aoColumns.length;$<pe;$++)I=r.aoColumns[$],(L=(We=!d)?C.createElement(I.sCellType):g[$])._DT_CellIndex={row:a,column:$},c.push(L),!We&&(!I.mRender&&I.mData===$||p.isPlainObject(I.mData)&&I.mData._===$+".display")||(L.innerHTML=jt(r,a,$,"display")),I.sClass&&(L.className+=" "+I.sClass),I.bVisible&&!d?N.appendChild(L):!I.bVisible&&d&&L.parentNode.removeChild(L),I.fnCreatedCell&&I.fnCreatedCell.call(r.oInstance,L,jt(r,a,$),n,a,$);ct(r,"aoRowCreatedCallback",null,[N,n,a,c])}}function vr(r,a){var d=a.nTr,g=a._aData;if(d){var N=r.rowIdFn(g);if(N&&(d.id=N),g.DT_RowClass){var L=g.DT_RowClass.split(" ");a.__rowc=a.__rowc?be(a.__rowc.concat(L)):L,p(d).removeClass(a.__rowc.join(" ")).addClass(g.DT_RowClass)}g.DT_RowAttr&&p(d).attr(g.DT_RowAttr),g.DT_RowData&&p(d).data(g.DT_RowData)}}function lr(r){var a,d,g,N,L,I=r.nTHead,$=r.nTFoot,pe=p("th, td",I).length===0,We=r.oClasses,_e=r.aoColumns;for(pe&&(N=p("<tr/>").appendTo(I)),a=0,d=_e.length;a<d;a++)L=_e[a],g=p(L.nTh).addClass(L.sClass),pe&&g.appendTo(N),r.oFeatures.bSort&&(g.addClass(L.sSortingClass),L.bSortable!==!1&&(g.attr("tabindex",r.iTabIndex).attr("aria-controls",r.sTableId),ei(r,L.nTh,a))),L.sTitle!=g[0].innerHTML&&g.html(L.sTitle),w(r,"header")(r,g,L,We);if(pe&&sn(r.aoHeader,I),p(I).children("tr").attr("role","row"),p(I).children("tr").children("th, td").addClass(We.sHeaderTH),p($).children("tr").children("th, td").addClass(We.sFooterTH),$!==null){var n=r.aoFooter[0];for(a=0,d=n.length;a<d;a++)(L=_e[a]).nTf=n[a].cell,L.sClass&&p(L.nTf).addClass(L.sClass)}}function gn(r,a,d){var g,N,L,I,$,pe,We,_e,n,c=[],E=[],T=r.aoColumns.length;if(a){for(d===M&&(d=!1),g=0,N=a.length;g<N;g++){for(c[g]=a[g].slice(),c[g].nTr=a[g].nTr,L=T-1;L>=0;L--)r.aoColumns[L].bVisible||d||c[g].splice(L,1);E.push([])}for(g=0,N=c.length;g<N;g++){if(We=c[g].nTr)for(;pe=We.firstChild;)We.removeChild(pe);for(L=0,I=c[g].length;L<I;L++)if(_e=1,n=1,E[g][L]===M){for(We.appendChild(c[g][L].cell),E[g][L]=1;c[g+_e]!==M&&c[g][L].cell==c[g+_e][L].cell;)E[g+_e][L]=1,_e++;for(;c[g][L+n]!==M&&c[g][L].cell==c[g][L+n].cell;){for($=0;$<_e;$++)E[g+$][L+n]=1;n++}p(c[g][L].cell).attr("rowspan",_e).attr("colspan",n)}}}}function Dr(r){var a=ct(r,"aoPreDrawCallback","preDraw",[r]);if(p.inArray(!1,a)===-1){var d=[],g=0,N=r.asStripeClasses,L=N.length,I=(r.aoOpenRows.length,r.oLanguage),$=r.iInitDisplayStart,pe=k(r)=="ssp",We=r.aiDisplay;r.bDrawing=!0,$!==M&&$!==-1&&(r._iDisplayStart=pe?$:$>=r.fnRecordsDisplay()?0:$,r.iInitDisplayStart=-1);var _e=r._iDisplayStart,n=r.fnDisplayEnd();if(r.bDeferLoading)r.bDeferLoading=!1,r.iDraw++,yr(r,!1);else if(pe){if(!r.bDestroying&&!kr(r))return}else r.iDraw++;if(We.length!==0)for(var c=pe?0:_e,E=pe?r.aoData.length:n,T=c;T<E;T++){var W=We[T],V=r.aoData[W];V.nTr===null&&dn(r,W);var fe=V.nTr;if(L!==0){var Pe=N[g%L];V._sRowStripe!=Pe&&(p(fe).removeClass(V._sRowStripe).addClass(Pe),V._sRowStripe=Pe)}ct(r,"aoRowCallback",null,[fe,V._aData,g,T,W]),d.push(fe),g++}else{var He=I.sZeroRecords;r.iDraw==1&&k(r)=="ajax"?He=I.sLoadingRecords:I.sEmptyTable&&r.fnRecordsTotal()===0&&(He=I.sEmptyTable),d[0]=p("<tr/>",{class:L?N[0]:""}).append(p("<td />",{valign:"top",colSpan:De(r),class:r.oClasses.sRowEmpty}).html(He))[0]}ct(r,"aoHeaderCallback","header",[p(r.nTHead).children("tr")[0],qr(r),_e,n,We]),ct(r,"aoFooterCallback","footer",[p(r.nTFoot).children("tr")[0],qr(r),_e,n,We]);var et=p(r.nTBody);et.children().detach(),et.append(p(d)),ct(r,"aoDrawCallback","draw",[r]),r.bSorted=!1,r.bFiltered=!1,r.bDrawing=!1}else yr(r,!1)}function br(r,a){var d=r.oFeatures,g=d.bSort,N=d.bFilter;g&&Gr(r),N?xn(r,r.oPreviousSearch):r.aiDisplay=r.aiDisplayMaster.slice(),a!==!0&&(r._iDisplayStart=0),r._drawHold=a,Dr(r),r._drawHold=!1}function hn(r){var a=r.oClasses,d=p(r.nTable),g=p("<div/>").insertBefore(d),N=r.oFeatures,L=p("<div/>",{id:r.sTableId+"_wrapper",class:a.sWrapper+(r.nTFoot?"":" "+a.sNoFooter)});r.nHolding=g[0],r.nTableWrapper=L[0],r.nTableReinsertBefore=r.nTable.nextSibling;for(var I,$,pe,We,_e,n,c=r.sDom.split(""),E=0;E<c.length;E++){if(I=null,($=c[E])=="<"){if(pe=p("<div/>")[0],(We=c[E+1])=="'"||We=='"'){for(_e="",n=2;c[E+n]!=We;)_e+=c[E+n],n++;if(_e=="H"?_e=a.sJUIHeader:_e=="F"&&(_e=a.sJUIFooter),_e.indexOf(".")!=-1){var T=_e.split(".");pe.id=T[0].substr(1,T[0].length-1),pe.className=T[1]}else _e.charAt(0)=="#"?pe.id=_e.substr(1,_e.length-1):pe.className=_e;E+=n}L.append(pe),L=p(pe)}else if($==">")L=L.parent();else if($=="l"&&N.bPaginate&&N.bLengthChange)I=Wr(r);else if($=="f"&&N.bFilter)I=Zn(r);else if($=="r"&&N.bProcessing)I=tn(r);else if($=="t")I=Kt(r);else if($=="i"&&N.bInfo)I=wt(r);else if($=="p"&&N.bPaginate)I=Br(r);else if(K.ext.feature.length!==0){for(var W=K.ext.feature,V=0,fe=W.length;V<fe;V++)if($==W[V].cFeature){I=W[V].fnInit(r);break}}if(I){var Pe=r.aanFeatures;Pe[$]||(Pe[$]=[]),Pe[$].push(I),L.append(I)}}g.replaceWith(L),r.nHolding=null}function sn(r,a){var d,g,N,L,I,$,pe,We,_e,n,c=p(a).children("tr"),E=function(T,W,V){for(var fe=T[W];fe[V];)V++;return V};for(r.splice(0,r.length),N=0,$=c.length;N<$;N++)r.push([]);for(N=0,$=c.length;N<$;N++)for(g=(d=c[N]).firstChild;g;){if(g.nodeName.toUpperCase()=="TD"||g.nodeName.toUpperCase()=="TH")for(We=(We=1*g.getAttribute("colspan"))&&We!==0&&We!==1?We:1,_e=(_e=1*g.getAttribute("rowspan"))&&_e!==0&&_e!==1?_e:1,pe=E(r,N,0),n=We===1,I=0;I<We;I++)for(L=0;L<_e;L++)r[N+L][pe+I]={cell:g,unique:n},r[N+L].nTr=d;g=g.nextSibling}}function Sr(r,a,d){var g=[];d||(d=r.aoHeader,a&&sn(d=[],a));for(var N=0,L=d.length;N<L;N++)for(var I=0,$=d[N].length;I<$;I++)!d[N][I].unique||g[I]&&r.bSortCellsTop||(g[I]=d[N][I].cell);return g}function Yr(r,a,d){if(ct(r,"aoServerParams","serverParams",[a]),a&&Array.isArray(a)){var g={},N=/(.*?)\[\]$/;p.each(a,function(n,c){var E=c.name.match(N);if(E){var T=E[0];g[T]||(g[T]=[]),g[T].push(c.value)}else g[c.name]=c.value}),a=g}var L,I=r.ajax,$=r.oInstance,pe=function(n){ct(r,null,"xhr",[r,n,r.jqXHR]),d(n)};if(p.isPlainObject(I)&&I.data){var We=typeof(L=I.data)=="function"?L(a,r):L;a=typeof L=="function"&&We?We:p.extend(!0,a,We),delete I.data}var _e={data:a,success:function(n){var c=n.error||n.sError;c&&Le(r,0,c),r.json=n,pe(n)},dataType:"json",cache:!1,type:r.sServerMethod,error:function(n,c,E){var T=ct(r,null,"xhr",[r,null,r.jqXHR]);p.inArray(!0,T)===-1&&(c=="parsererror"?Le(r,0,"Invalid JSON response",1):n.readyState===4&&Le(r,0,"Ajax error",7)),yr(r,!1)}};r.oAjaxData=a,ct(r,null,"preXhr",[r,a]),r.fnServerData?r.fnServerData.call($,r.sAjaxSource,p.map(a,function(n,c){return{name:c,value:n}}),pe,r):r.sAjaxSource||typeof I=="string"?r.jqXHR=p.ajax(p.extend(_e,{url:I||r.sAjaxSource})):typeof I=="function"?r.jqXHR=I.call($,a,pe,r):(r.jqXHR=p.ajax(p.extend(_e,I)),I.data=L)}function kr(r){return!r.bAjaxDataGet||(r.iDraw++,yr(r,!0),Yr(r,Wn(r),function(a){Jn(r,a)}),!1)}function Wn(r){var a,d,g,N,L=r.aoColumns,I=L.length,$=r.oFeatures,pe=r.oPreviousSearch,We=r.aoPreSearchCols,_e=[],n=Ut(r),c=r._iDisplayStart,E=$.bPaginate!==!1?r._iDisplayLength:-1,T=function(fe,Pe){_e.push({name:fe,value:Pe})};T("sEcho",r.iDraw),T("iColumns",I),T("sColumns",me(L,"sName").join(",")),T("iDisplayStart",c),T("iDisplayLength",E);var W={draw:r.iDraw,columns:[],order:[],start:c,length:E,search:{value:pe.sSearch,regex:pe.bRegex}};for(a=0;a<I;a++)g=L[a],N=We[a],d=typeof g.mData=="function"?"function":g.mData,W.columns.push({data:d,name:g.sName,searchable:g.bSearchable,orderable:g.bSortable,search:{value:N.sSearch,regex:N.bRegex}}),T("mDataProp_"+a,d),$.bFilter&&(T("sSearch_"+a,N.sSearch),T("bRegex_"+a,N.bRegex),T("bSearchable_"+a,g.bSearchable)),$.bSort&&T("bSortable_"+a,g.bSortable);$.bFilter&&(T("sSearch",pe.sSearch),T("bRegex",pe.bRegex)),$.bSort&&(p.each(n,function(fe,Pe){W.order.push({column:Pe.col,dir:Pe.dir}),T("iSortCol_"+fe,Pe.col),T("sSortDir_"+fe,Pe.dir)}),T("iSortingCols",n.length));var V=K.ext.legacy.ajax;return V===null?r.sAjaxSource?_e:W:V?_e:W}function Jn(r,a){var d=function(We,_e){return a[We]!==M?a[We]:a[_e]},g=ln(r,a),N=d("sEcho","draw"),L=d("iTotalRecords","recordsTotal"),I=d("iTotalDisplayRecords","recordsFiltered");if(N!==M){if(1*N<r.iDraw)return;r.iDraw=1*N}on(r),r._iRecordsTotal=parseInt(L,10),r._iRecordsDisplay=parseInt(I,10);for(var $=0,pe=g.length;$<pe;$++)lt(r,g[$]);r.aiDisplay=r.aiDisplayMaster.slice(),r.bAjaxDataGet=!1,Dr(r),r._bInitComplete||cr(r,a),r.bAjaxDataGet=!0,yr(r,!1)}function ln(r,a){var d=p.isPlainObject(r.ajax)&&r.ajax.dataSrc!==M?r.ajax.dataSrc:r.sAjaxDataProp;return d==="data"?a.aaData||a[d]:d!==""?gr(d)(a):a}function Zn(r){var a=r.oClasses,d=r.sTableId,g=r.oLanguage,N=r.oPreviousSearch,L=r.aanFeatures,I='<input type="search" class="'+a.sFilterInput+'"/>',$=g.sSearch;$=$.match(/_INPUT_/)?$.replace("_INPUT_",I):$+I;var pe=p("<div/>",{id:L.f?null:d+"_filter",class:a.sFilter}).append(p("<label/>").append($)),We=function(){L.f;var c=this.value?this.value:"";c!=N.sSearch&&(xn(r,{sSearch:c,bRegex:N.bRegex,bSmart:N.bSmart,bCaseInsensitive:N.bCaseInsensitive}),r._iDisplayStart=0,Dr(r))},_e=r.searchDelay!==null?r.searchDelay:k(r)==="ssp"?400:0,n=p("input",pe).val(N.sSearch).attr("placeholder",g.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",_e?it(We,_e):We).on("mouseup",function(c){setTimeout(function(){We.call(n[0])},10)}).on("keypress.DT",function(c){if(c.keyCode==13)return!1}).attr("aria-controls",d);return p(r.nTable).on("search.dt.DT",function(c,E){if(r===E)try{n[0]!==C.activeElement&&n.val(N.sSearch)}catch{}}),pe[0]}function xn(r,a,d){var g=r.oPreviousSearch,N=r.aoPreSearchCols,L=function(pe){g.sSearch=pe.sSearch,g.bRegex=pe.bRegex,g.bSmart=pe.bSmart,g.bCaseInsensitive=pe.bCaseInsensitive},I=function(pe){return pe.bEscapeRegex!==M?!pe.bEscapeRegex:pe.bRegex};if(Be(r),k(r)!="ssp"){mn(r,a.sSearch,d,I(a),a.bSmart,a.bCaseInsensitive),L(a);for(var $=0;$<N.length;$++)Sn(r,N[$].sSearch,$,I(N[$]),N[$].bSmart,N[$].bCaseInsensitive);Cn(r)}else L(a);r.bFiltered=!0,ct(r,null,"search",[r])}function Cn(r){for(var a,d,g=K.ext.search,N=r.aiDisplay,L=0,I=g.length;L<I;L++){for(var $=[],pe=0,We=N.length;pe<We;pe++)d=N[pe],a=r.aoData[d],g[L](r,a._aFilterData,d,a._aData,pe)&&$.push(d);N.length=0,p.merge(N,$)}}function Sn(r,a,d,g,N,L){if(a!==""){for(var I,$=[],pe=r.aiDisplay,We=je(a,g,N,L),_e=0;_e<pe.length;_e++)I=r.aoData[pe[_e]]._aFilterData[d],We.test(I)&&$.push(pe[_e]);r.aiDisplay=$}}function mn(r,a,d,g,N,L){var I,$,pe,We=je(a,g,N,L),_e=r.oPreviousSearch.sSearch,n=r.aiDisplayMaster,c=[];if(K.ext.search.length!==0&&(d=!0),$=Te(r),a.length<=0)r.aiDisplay=n.slice();else{for(($||d||g||_e.length>a.length||a.indexOf(_e)!==0||r.bSorted)&&(r.aiDisplay=n.slice()),I=r.aiDisplay,pe=0;pe<I.length;pe++)We.test(r.aoData[I[pe]]._sFilterRow)&&c.push(I[pe]);r.aiDisplay=c}}function je(r,a,d,g){if(r=a?r:Fe(r),d){var N=p.map(r.match(/"[^"]+"|[^ ]+/g)||[""],function(L){if(L.charAt(0)==='"'){var I=L.match(/^"(.*)"$/);L=I?I[1]:L}return L.replace('"',"")});r="^(?=.*?"+N.join(")(?=.*?")+").*$"}return new RegExp(r,g?"i":"")}var Fe=K.util.escapeRegex,Ie=p("<div>")[0],Ee=Ie.textContent!==M;function Te(r){var a,d,g,N,L,I,$,pe,We=r.aoColumns,_e=K.ext.type.search,n=!1;for(d=0,N=r.aoData.length;d<N;d++)if(!(pe=r.aoData[d])._aFilterData){for(I=[],g=0,L=We.length;g<L;g++)(a=We[g]).bSearchable?($=jt(r,d,g,"filter"),_e[a.sType]&&($=_e[a.sType]($)),$===null&&($=""),typeof $!="string"&&$.toString&&($=$.toString())):$="",$.indexOf&&$.indexOf("&")!==-1&&(Ie.innerHTML=$,$=Ee?Ie.textContent:Ie.innerText),$.replace&&($=$.replace(/[\r\n\u2028]/g,"")),I.push($);pe._aFilterData=I,pe._sFilterRow=I.join("  "),n=!0}return n}function Je(r){return{search:r.sSearch,smart:r.bSmart,regex:r.bRegex,caseInsensitive:r.bCaseInsensitive}}function It(r){return{sSearch:r.search,bSmart:r.smart,bRegex:r.regex,bCaseInsensitive:r.caseInsensitive}}function wt(r){var a=r.sTableId,d=r.aanFeatures.i,g=p("<div/>",{class:r.oClasses.sInfo,id:d?null:a+"_info"});return d||(r.aoDrawCallback.push({fn:Ot,sName:"information"}),g.attr("role","status").attr("aria-live","polite"),p(r.nTable).attr("aria-describedby",a+"_info")),g[0]}function Ot(r){var a=r.aanFeatures.i;if(a.length!==0){var d=r.oLanguage,g=r._iDisplayStart+1,N=r.fnDisplayEnd(),L=r.fnRecordsTotal(),I=r.fnRecordsDisplay(),$=I?d.sInfo:d.sInfoEmpty;I!==L&&($+=" "+d.sInfoFiltered),$=Rt(r,$+=d.sInfoPostFix);var pe=d.fnInfoCallback;pe!==null&&($=pe.call(r.oInstance,r,g,N,L,I,$)),p(a).html($)}}function Rt(r,a){var d=r.fnFormatNumber,g=r._iDisplayStart+1,N=r._iDisplayLength,L=r.fnRecordsDisplay(),I=N===-1;return a.replace(/_START_/g,d.call(r,g)).replace(/_END_/g,d.call(r,r.fnDisplayEnd())).replace(/_MAX_/g,d.call(r,r.fnRecordsTotal())).replace(/_TOTAL_/g,d.call(r,L)).replace(/_PAGE_/g,d.call(r,I?1:Math.ceil(g/N))).replace(/_PAGES_/g,d.call(r,I?1:Math.ceil(L/N)))}function tr(r){var a,d,g,N=r.iInitDisplayStart,L=r.aoColumns,I=r.oFeatures,$=r.bDeferLoading;if(r.bInitialised){for(hn(r),lr(r),gn(r,r.aoHeader),gn(r,r.aoFooter),yr(r,!0),I.bAutoWidth&&pt(r),a=0,d=L.length;a<d;a++)(g=L[a]).sWidth&&(g.nTh.style.width=Ht(g.sWidth));ct(r,null,"preInit",[r]),br(r);var pe=k(r);(pe!="ssp"||$)&&(pe=="ajax"?Yr(r,[],function(We){var _e=ln(r,We);for(a=0;a<_e.length;a++)lt(r,_e[a]);r.iInitDisplayStart=N,br(r),yr(r,!1),cr(r,We)}):(yr(r,!1),cr(r)))}else setTimeout(function(){tr(r)},200)}function cr(r,a){r._bInitComplete=!0,(a||r.oInit.aaData)&&B(r),ct(r,null,"plugin-init",[r,a]),ct(r,"aoInitComplete","init",[r,a])}function mr(r,a){var d=parseInt(a,10);r._iDisplayLength=d,Lt(r),ct(r,null,"length",[r,d])}function Wr(r){for(var a=r.oClasses,d=r.sTableId,g=r.aLengthMenu,N=Array.isArray(g[0]),L=N?g[0]:g,I=N?g[1]:g,$=p("<select/>",{name:d+"_length","aria-controls":d,class:a.sLengthSelect}),pe=0,We=L.length;pe<We;pe++)$[0][pe]=new Option(typeof I[pe]=="number"?r.fnFormatNumber(I[pe]):I[pe],L[pe]);var _e=p("<div><label/></div>").addClass(a.sLength);return r.aanFeatures.l||(_e[0].id=d+"_length"),_e.children().append(r.oLanguage.sLengthMenu.replace("_MENU_",$[0].outerHTML)),p("select",_e).val(r._iDisplayLength).on("change.DT",function(n){mr(r,p(this).val()),Dr(r)}),p(r.nTable).on("length.dt.DT",function(n,c,E){r===c&&p("select",_e).val(E)}),_e[0]}function Br(r){var a=r.sPaginationType,d=K.ext.pager[a],g=typeof d=="function",N=function($){Dr($)},L=p("<div/>").addClass(r.oClasses.sPaging+a)[0],I=r.aanFeatures;return g||d.fnInit(r,L,N),I.p||(L.id=r.sTableId+"_paginate",r.aoDrawCallback.push({fn:function($){if(g){var pe,We,_e=$._iDisplayStart,n=$._iDisplayLength,c=$.fnRecordsDisplay(),E=n===-1,T=E?0:Math.ceil(_e/n),W=E?1:Math.ceil(c/n),V=d(T,W);for(pe=0,We=I.p.length;pe<We;pe++)w($,"pageButton")($,I.p[pe],pe,V,T,W)}else d.fnUpdate($,N)},sName:"pagination"})),L}function Rr(r,a,d){var g=r._iDisplayStart,N=r._iDisplayLength,L=r.fnRecordsDisplay();L===0||N===-1?g=0:typeof a=="number"?(g=a*N)>L&&(g=0):a=="first"?g=0:a=="previous"?(g=N>=0?g-N:0)<0&&(g=0):a=="next"?g+N<L&&(g+=N):a=="last"?g=Math.floor((L-1)/N)*N:Le(r,0,"Unknown paging action: "+a,5);var I=r._iDisplayStart!==g;return r._iDisplayStart=g,I&&(ct(r,null,"page",[r]),d&&Dr(r)),I}function tn(r){return p("<div/>",{id:r.aanFeatures.r?null:r.sTableId+"_processing",class:r.oClasses.sProcessing}).html(r.oLanguage.sProcessing).insertBefore(r.nTable)[0]}function yr(r,a){r.oFeatures.bProcessing&&p(r.aanFeatures.r).css("display",a?"block":"none"),ct(r,null,"processing",[r,a])}function Kt(r){var a=p(r.nTable);a.attr("role","grid");var d=r.oScroll;if(d.sX===""&&d.sY==="")return r.nTable;var g=d.sX,N=d.sY,L=r.oClasses,I=a.children("caption"),$=I.length?I[0]._captionSide:null,pe=p(a[0].cloneNode(!1)),We=p(a[0].cloneNode(!1)),_e=a.children("tfoot"),n="<div/>",c=function(Pe){return Pe?Ht(Pe):null};_e.length||(_e=null);var E=p(n,{class:L.sScrollWrapper}).append(p(n,{class:L.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:g?c(g):"100%"}).append(p(n,{class:L.sScrollHeadInner}).css({"box-sizing":"content-box",width:d.sXInner||"100%"}).append(pe.removeAttr("id").css("margin-left",0).append($==="top"?I:null).append(a.children("thead"))))).append(p(n,{class:L.sScrollBody}).css({position:"relative",overflow:"auto",width:c(g)}).append(a));_e&&E.append(p(n,{class:L.sScrollFoot}).css({overflow:"hidden",border:0,width:g?c(g):"100%"}).append(p(n,{class:L.sScrollFootInner}).append(We.removeAttr("id").css("margin-left",0).append($==="bottom"?I:null).append(a.children("tfoot")))));var T=E.children(),W=T[0],V=T[1],fe=_e?T[2]:null;return g&&p(V).on("scroll.DT",function(Pe){var He=this.scrollLeft;W.scrollLeft=He,_e&&(fe.scrollLeft=He)}),p(V).css("max-height",N),d.bCollapse||p(V).css("height",N),r.nScrollHead=W,r.nScrollBody=V,r.nScrollFoot=fe,r.aoDrawCallback.push({fn:pn,sName:"scrolling"}),E[0]}function pn(r){var a,d,g,N,L,I,$,pe,We,_e=r.oScroll,n=_e.sX,c=_e.sXInner,E=_e.sY,T=_e.iBarWidth,W=p(r.nScrollHead),V=W[0].style,fe=W.children("div"),Pe=fe[0].style,He=fe.children("table"),et=r.nScrollBody,Et=p(et),Dt=et.style,St=p(r.nScrollFoot).children("div"),At=St.children("table"),pr=p(r.nTHead),dr=p(r.nTable),hr=dr[0],Ar=hr.style,rn=r.nTFoot?p(r.nTFoot):null,zn=r.oBrowser,an=zn.bScrollOversize,Tr=me(r.aoColumns,"nTh"),ni=[],nn=[],fn=[],pi=[],Li=function(Nn){var kn=Nn.style;kn.paddingTop="0",kn.paddingBottom="0",kn.borderTopWidth="0",kn.borderBottomWidth="0",kn.height=0},si=et.scrollHeight>et.clientHeight;if(r.scrollBarVis!==si&&r.scrollBarVis!==M)return r.scrollBarVis=si,void B(r);r.scrollBarVis=si,dr.children("thead, tfoot").remove(),rn&&(I=rn.clone().prependTo(dr),d=rn.find("tr"),N=I.find("tr")),L=pr.clone().prependTo(dr),a=pr.find("tr"),g=L.find("tr"),L.find("th, td").removeAttr("tabindex"),n||(Dt.width="100%",W[0].style.width="100%"),p.each(Sr(r,L),function(Nn,kn){$=X(r,Nn),kn.style.width=r.aoColumns[$].sWidth}),rn&&ge(function(Nn){Nn.style.width=""},N),We=dr.outerWidth(),n===""?(Ar.width="100%",an&&(dr.find("tbody").height()>et.offsetHeight||Et.css("overflow-y")=="scroll")&&(Ar.width=Ht(dr.outerWidth()-T)),We=dr.outerWidth()):c!==""&&(Ar.width=Ht(c),We=dr.outerWidth()),ge(Li,g),ge(function(Nn){fn.push(Nn.innerHTML),ni.push(Ht(p(Nn).css("width")))},g),ge(function(Nn,kn){p.inArray(Nn,Tr)!==-1&&(Nn.style.width=ni[kn])},a),p(g).height(0),rn&&(ge(Li,N),ge(function(Nn){pi.push(Nn.innerHTML),nn.push(Ht(p(Nn).css("width")))},N),ge(function(Nn,kn){Nn.style.width=nn[kn]},d),p(N).height(0)),ge(function(Nn,kn){Nn.innerHTML='<div class="dataTables_sizing">'+fn[kn]+"</div>",Nn.childNodes[0].style.height="0",Nn.childNodes[0].style.overflow="hidden",Nn.style.width=ni[kn]},g),rn&&ge(function(Nn,kn){Nn.innerHTML='<div class="dataTables_sizing">'+pi[kn]+"</div>",Nn.childNodes[0].style.height="0",Nn.childNodes[0].style.overflow="hidden",Nn.style.width=nn[kn]},N),dr.outerWidth()<We?(pe=et.scrollHeight>et.offsetHeight||Et.css("overflow-y")=="scroll"?We+T:We,an&&(et.scrollHeight>et.offsetHeight||Et.css("overflow-y")=="scroll")&&(Ar.width=Ht(pe-T)),n!==""&&c===""||Le(r,1,"Possible column misalignment",6)):pe="100%",Dt.width=Ht(pe),V.width=Ht(pe),rn&&(r.nScrollFoot.style.width=Ht(pe)),E||an&&(Dt.height=Ht(hr.offsetHeight+T));var li=dr.outerWidth();He[0].style.width=Ht(li),Pe.width=Ht(li);var Ii=dr.height()>et.clientHeight||Et.css("overflow-y")=="scroll",ii="padding"+(zn.bScrollbarLeft?"Left":"Right");Pe[ii]=Ii?T+"px":"0px",rn&&(At[0].style.width=Ht(li),St[0].style.width=Ht(li),St[0].style[ii]=Ii?T+"px":"0px"),dr.children("colgroup").insertBefore(dr.children("thead")),Et.trigger("scroll"),!r.bSorted&&!r.bFiltered||r._drawHold||(et.scrollTop=0)}function ge(r,a,d){for(var g,N,L=0,I=0,$=a.length;I<$;){for(g=a[I].firstChild,N=d?d[I].firstChild:null;g;)g.nodeType===1&&(d?r(g,N,L):r(g,L),L++),g=g.nextSibling,N=d?N.nextSibling:null;I++}}var Ue=/<.*?>/g;function pt(r){var a,d,g,N=r.nTable,L=r.aoColumns,I=r.oScroll,$=I.sY,pe=I.sX,We=I.sXInner,_e=L.length,n=Ve(r,"bVisible"),c=p("th",r.nTHead),E=N.getAttribute("width"),T=N.parentNode,W=!1,V=r.oBrowser,fe=V.bScrollOversize,Pe=N.style.width;for(Pe&&Pe.indexOf("%")!==-1&&(E=Pe),a=0;a<n.length;a++)(d=L[n[a]]).sWidth!==null&&(d.sWidth=Qt(d.sWidthOrig,T),W=!0);if(fe||!W&&!pe&&!$&&_e==De(r)&&_e==c.length)for(a=0;a<_e;a++){var He=X(r,a);He!==null&&(L[He].sWidth=Ht(c.eq(a).width()))}else{var et=p(N).clone().css("visibility","hidden").removeAttr("id");et.find("tbody tr").remove();var Et=p("<tr/>").appendTo(et.find("tbody"));for(et.find("thead, tfoot").remove(),et.append(p(r.nTHead).clone()).append(p(r.nTFoot).clone()),et.find("tfoot th, tfoot td").css("width",""),c=Sr(r,et.find("thead")[0]),a=0;a<n.length;a++)d=L[n[a]],c[a].style.width=d.sWidthOrig!==null&&d.sWidthOrig!==""?Ht(d.sWidthOrig):"",d.sWidthOrig&&pe&&p(c[a]).append(p("<div/>").css({width:d.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(r.aoData.length)for(a=0;a<n.length;a++)d=L[g=n[a]],p(ur(r,g)).clone(!1).append(d.sContentPadding).appendTo(Et);p("[name]",et).removeAttr("name");var Dt=p("<div/>").css(pe||$?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(et).appendTo(T);pe&&We?et.width(We):pe?(et.css("width","auto"),et.removeAttr("width"),et.width()<T.clientWidth&&E&&et.width(T.clientWidth)):$?et.width(T.clientWidth):E&&et.width(E);var St=0;for(a=0;a<n.length;a++){var At=p(c[a]),pr=At.outerWidth()-At.width(),dr=V.bBounding?Math.ceil(c[a].getBoundingClientRect().width):At.outerWidth();St+=dr,L[n[a]].sWidth=Ht(dr-pr)}N.style.width=Ht(St),Dt.remove()}if(E&&(N.style.width=Ht(E)),(E||pe)&&!r._reszEvt){var hr=function(){p(G).on("resize.DT-"+r.sInstance,it(function(){B(r)}))};fe?setTimeout(hr,1e3):hr(),r._reszEvt=!0}}var it=K.util.throttle;function Qt(r,a){if(!r)return 0;var d=p("<div/>").css("width",Ht(r)).appendTo(a||C.body),g=d[0].offsetWidth;return d.remove(),g}function ur(r,a){var d=gt(r,a);if(d<0)return null;var g=r.aoData[d];return g.nTr?g.anCells[a]:p("<td/>").html(jt(r,d,a,"display"))[0]}function gt(r,a){for(var d,g=-1,N=-1,L=0,I=r.aoData.length;L<I;L++)(d=(d=(d=jt(r,L,a,"display")+"").replace(Ue,"")).replace(/&nbsp;/g," ")).length>g&&(g=d.length,N=L);return N}function Ht(r){return r===null?"0px":typeof r=="number"?r<0?"0px":r+"px":r.match(/\d$/)?r+"px":r}function Ut(r){var a,d,g,N,L,I,$,pe=[],We=r.aoColumns,_e=r.aaSortingFixed,n=p.isPlainObject(_e),c=[],E=function(T){T.length&&!Array.isArray(T[0])?c.push(T):p.merge(c,T)};for(Array.isArray(_e)&&E(_e),n&&_e.pre&&E(_e.pre),E(r.aaSorting),n&&_e.post&&E(_e.post),a=0;a<c.length;a++)for(d=0,g=(N=We[$=c[a][0]].aDataSort).length;d<g;d++)I=We[L=N[d]].sType||"string",c[a]._idx===M&&(c[a]._idx=p.inArray(c[a][1],We[L].asSorting)),pe.push({src:$,col:L,dir:c[a][1],index:c[a]._idx,type:I,formatter:K.ext.type.order[I+"-pre"]});return pe}function Gr(r){var a,d,g,N,L,I=[],$=K.ext.type.order,pe=r.aoData,We=(r.aoColumns,0),_e=r.aiDisplayMaster;for(Be(r),a=0,d=(L=Ut(r)).length;a<d;a++)(N=L[a]).formatter&&We++,Lr(r,N.col);if(k(r)!="ssp"&&L.length!==0){for(a=0,g=_e.length;a<g;a++)I[_e[a]]=a;We===L.length?_e.sort(function(n,c){var E,T,W,V,fe,Pe=L.length,He=pe[n]._aSortData,et=pe[c]._aSortData;for(W=0;W<Pe;W++)if((V=(E=He[(fe=L[W]).col])<(T=et[fe.col])?-1:E>T?1:0)!=0)return fe.dir==="asc"?V:-V;return(E=I[n])<(T=I[c])?-1:E>T?1:0}):_e.sort(function(n,c){var E,T,W,V,fe,Pe=L.length,He=pe[n]._aSortData,et=pe[c]._aSortData;for(W=0;W<Pe;W++)if(E=He[(fe=L[W]).col],T=et[fe.col],(V=($[fe.type+"-"+fe.dir]||$["string-"+fe.dir])(E,T))!==0)return V;return(E=I[n])<(T=I[c])?-1:E>T?1:0})}r.bSorted=!0}function Ur(r){for(var a,d,g=r.aoColumns,N=Ut(r),L=r.oLanguage.oAria,I=0,$=g.length;I<$;I++){var pe=g[I],We=pe.asSorting,_e=pe.sTitle.replace(/<.*?>/g,""),n=pe.nTh;n.removeAttribute("aria-sort"),pe.bSortable?(N.length>0&&N[0].col==I?(n.setAttribute("aria-sort",N[0].dir=="asc"?"ascending":"descending"),d=We[N[0].index+1]||We[0]):d=We[0],a=_e+(d==="asc"?L.sSortAscending:L.sSortDescending)):a=_e,n.setAttribute("aria-label",a)}}function Un(r,a,d,g){var N,L=r.aoColumns[a],I=r.aaSorting,$=L.asSorting,pe=function(_e,n){var c=_e._idx;return c===M&&(c=p.inArray(_e[1],$)),c+1<$.length?c+1:n?null:0};if(typeof I[0]=="number"&&(I=r.aaSorting=[I]),d&&r.oFeatures.bSortMulti){var We=p.inArray(a,me(I,"0"));We!==-1?((N=pe(I[We],!0))===null&&I.length===1&&(N=0),N===null?I.splice(We,1):(I[We][1]=$[N],I[We]._idx=N)):(I.push([a,$[0],0]),I[I.length-1]._idx=0)}else I.length&&I[0][0]==a?(N=pe(I[0]),I.length=1,I[0][1]=$[N],I[0]._idx=N):(I.length=0,I.push([a,$[0]]),I[0]._idx=0);br(r),typeof g=="function"&&g(r)}function ei(r,a,d,g){var N=r.aoColumns[d];Se(a,{},function(L){N.bSortable!==!1&&(r.oFeatures.bProcessing?(yr(r,!0),setTimeout(function(){Un(r,d,L.shiftKey,g),k(r)!=="ssp"&&yr(r,!1)},0)):Un(r,d,L.shiftKey,g))})}function ar(r){var a,d,g,N=r.aLastSort,L=r.oClasses.sSortColumn,I=Ut(r),$=r.oFeatures;if($.bSort&&$.bSortClasses){for(a=0,d=N.length;a<d;a++)g=N[a].src,p(me(r.aoData,"anCells",g)).removeClass(L+(a<2?a+1:3));for(a=0,d=I.length;a<d;a++)g=I[a].src,p(me(r.aoData,"anCells",g)).addClass(L+(a<2?a+1:3))}r.aLastSort=I}function Lr(r,a){var d,g,N,L=r.aoColumns[a],I=K.ext.order[L.sSortDataType];I&&(d=I.call(r.oInstance,r,a,he(r,a)));for(var $=K.ext.type.order[L.sType+"-pre"],pe=0,We=r.aoData.length;pe<We;pe++)(g=r.aoData[pe])._aSortData||(g._aSortData=[]),g._aSortData[a]&&!I||(N=I?d[pe]:jt(r,pe,a,"sort"),g._aSortData[a]=$?$(N):N)}function Fn(r){if(r.oFeatures.bStateSave&&!r.bDestroying){var a={time:+new Date,start:r._iDisplayStart,length:r._iDisplayLength,order:p.extend(!0,[],r.aaSorting),search:Je(r.oPreviousSearch),columns:p.map(r.aoColumns,function(d,g){return{visible:d.bVisible,search:Je(r.aoPreSearchCols[g])}})};ct(r,"aoStateSaveParams","stateSaveParams",[r,a]),r.oSavedState=a,r.fnStateSaveCallback.call(r.oInstance,r,a)}}function Ye(r,a,d){var g,N,L=r.aoColumns,I=function(pe){if(pe&&pe.time){var We=ct(r,"aoStateLoadParams","stateLoadParams",[r,pe]);if(p.inArray(!1,We)===-1){var _e=r.iStateDuration;if(_e>0&&pe.time<+new Date-1e3*_e)d();else if(pe.columns&&L.length!==pe.columns.length)d();else{if(r.oLoadedState=p.extend(!0,{},pe),pe.start!==M&&(r._iDisplayStart=pe.start,r.iInitDisplayStart=pe.start),pe.length!==M&&(r._iDisplayLength=pe.length),pe.order!==M&&(r.aaSorting=[],p.each(pe.order,function(c,E){r.aaSorting.push(E[0]>=L.length?[0,E[1]]:E)})),pe.search!==M&&p.extend(r.oPreviousSearch,It(pe.search)),pe.columns)for(g=0,N=pe.columns.length;g<N;g++){var n=pe.columns[g];n.visible!==M&&(L[g].bVisible=n.visible),n.search!==M&&p.extend(r.aoPreSearchCols[g],It(n.search))}ct(r,"aoStateLoaded","stateLoaded",[r,pe]),d()}}else d()}else d()};if(r.oFeatures.bStateSave){var $=r.fnStateLoadCallback.call(r.oInstance,r,I);$!==M&&I($)}else d()}function ye(r){var a=K.settings,d=p.inArray(r,me(a,"nTable"));return d!==-1?a[d]:null}function Le(r,a,d,g){if(d="DataTables warning: "+(r?"table id="+r.sTableId+" - ":"")+d,g&&(d+=". For more information about this error, please see http://datatables.net/tn/"+g),a)G.console&&console.log&&console.log(d);else{var N=K.ext,L=N.sErrMode||N.errMode;if(r&&ct(r,null,"error",[r,g,d]),L=="alert")alert(d);else{if(L=="throw")throw new Error(d);typeof L=="function"&&L(r,g,d)}}}function J(r,a,d,g){Array.isArray(d)?p.each(d,function(N,L){Array.isArray(L)?J(r,a,L[0],L[1]):J(r,a,L)}):(g===M&&(g=d),a[d]!==M&&(r[g]=a[d]))}function H(r,a,d){var g;for(var N in a)a.hasOwnProperty(N)&&(g=a[N],p.isPlainObject(g)?(p.isPlainObject(r[N])||(r[N]={}),p.extend(!0,r[N],g)):d&&N!=="data"&&N!=="aaData"&&Array.isArray(g)?r[N]=g.slice():r[N]=g);return r}function Se(r,a,d){p(r).on("click.DT",a,function(g){p(r).trigger("blur"),d(g)}).on("keypress.DT",a,function(g){g.which===13&&(g.preventDefault(),d(g))}).on("selectstart.DT",function(){return!1})}function Qe(r,a,d,g){d&&r[a].push({fn:d,sName:g})}function ct(r,a,d,g){var N=[];if(a&&(N=p.map(r[a].slice().reverse(),function(I,$){return I.fn.apply(r.oInstance,g)})),d!==null){var L=p.Event(d+".dt");p(r.nTable).trigger(L,g),N.push(L.result)}return N}function Lt(r){var a=r._iDisplayStart,d=r.fnDisplayEnd(),g=r._iDisplayLength;a>=d&&(a=d-g),a-=a%g,(g===-1||a<0)&&(a=0),r._iDisplayStart=a}function w(r,a){var d=r.renderer,g=K.ext.renderer[a];return p.isPlainObject(d)&&d[a]?g[d[a]]||g._:typeof d=="string"&&g[d]||g._}function k(r){return r.oFeatures.bServerSide?"ssp":r.ajax||r.sAjaxSource?"ajax":"dom"}var ae=[],Oe=Array.prototype;x=function(r,a){if(!(this instanceof x))return new x(r,a);var d=[],g=function(I){var $=function(pe){var We,_e,n=K.settings,c=p.map(n,function(E,T){return E.nTable});return pe?pe.nTable&&pe.oApi?[pe]:pe.nodeName&&pe.nodeName.toLowerCase()==="table"?(We=p.inArray(pe,c))!==-1?[n[We]]:null:pe&&typeof pe.settings=="function"?pe.settings().toArray():(typeof pe=="string"?_e=p(pe):pe instanceof p&&(_e=pe),_e?_e.map(function(E){return(We=p.inArray(this,c))!==-1?n[We]:null}).toArray():void 0):[]}(I);$&&d.push.apply(d,$)};if(Array.isArray(r))for(var N=0,L=r.length;N<L;N++)g(r[N]);else g(r);this.context=be(d),a&&p.merge(this,a),this.selector={rows:null,cols:null,opts:null},x.extend(this,this,ae)},K.Api=x,p.extend(x.prototype,{any:function(){return this.count()!==0},concat:Oe.concat,context:[],count:function(){return this.flatten().length},each:function(r){for(var a=0,d=this.length;a<d;a++)r.call(this,this[a],a,this);return this},eq:function(r){var a=this.context;return a.length>r?new x(a[r],this[r]):null},filter:function(r){var a=[];if(Oe.filter)a=Oe.filter.call(this,r,this);else for(var d=0,g=this.length;d<g;d++)r.call(this,this[d],d,this)&&a.push(this[d]);return new x(this.context,a)},flatten:function(){var r=[];return new x(this.context,r.concat.apply(r,this.toArray()))},join:Oe.join,indexOf:Oe.indexOf||function(r,a){for(var d=a||0,g=this.length;d<g;d++)if(this[d]===r)return d;return-1},iterator:function(r,a,d,g){var N,L,I,$,pe,We,_e,n,c=[],E=this.context,T=this.selector;for(typeof r=="string"&&(g=d,d=a,a=r,r=!1),L=0,I=E.length;L<I;L++){var W=new x(E[L]);if(a==="table")(N=d.call(W,E[L],L))!==M&&c.push(N);else if(a==="columns"||a==="rows")(N=d.call(W,E[L],this[L],L))!==M&&c.push(N);else if(a==="column"||a==="column-rows"||a==="row"||a==="cell")for(_e=this[L],a==="column-rows"&&(We=rr(E[L],T.opts)),$=0,pe=_e.length;$<pe;$++)n=_e[$],(N=a==="cell"?d.call(W,E[L],n.row,n.column,L,$):d.call(W,E[L],n,L,$,We))!==M&&c.push(N)}if(c.length||g){var V=new x(E,r?c.concat.apply([],c):c),fe=V.selector;return fe.rows=T.rows,fe.cols=T.cols,fe.opts=T.opts,V}return this},lastIndexOf:Oe.lastIndexOf||function(r,a){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(r){var a=[];if(Oe.map)a=Oe.map.call(this,r,this);else for(var d=0,g=this.length;d<g;d++)a.push(r.call(this,this[d],d));return new x(this.context,a)},pluck:function(r){return this.map(function(a){return a[r]})},pop:Oe.pop,push:Oe.push,reduce:Oe.reduce||function(r,a){return Nt(this,r,a,0,this.length,1)},reduceRight:Oe.reduceRight||function(r,a){return Nt(this,r,a,this.length-1,-1,-1)},reverse:Oe.reverse,selector:null,shift:Oe.shift,slice:function(){return new x(this.context,this)},sort:Oe.sort,splice:Oe.splice,toArray:function(){return Oe.slice.call(this)},to$:function(){return p(this)},toJQuery:function(){return p(this)},unique:function(){return new x(this.context,be(this))},unshift:Oe.unshift}),x.extend=function(r,a,d){if(d.length&&a&&(a instanceof x||a.__dt_wrapper)){var g,N,L,I=function($,pe,We){return function(){var _e=pe.apply($,arguments);return x.extend(_e,_e,We.methodExt),_e}};for(g=0,N=d.length;g<N;g++)a[(L=d[g]).name]=L.type==="function"?I(r,L.val,L):L.type==="object"?{}:L.val,a[L.name].__dt_wrapper=!0,x.extend(r,a[L.name],L.propExt)}},x.register=Y=function(r,a){if(Array.isArray(r))for(var d=0,g=r.length;d<g;d++)x.register(r[d],a);else{var N,L,I,$,pe=r.split("."),We=ae,_e=function(c,E){for(var T=0,W=c.length;T<W;T++)if(c[T].name===E)return c[T];return null};for(N=0,L=pe.length;N<L;N++){var n=_e(We,I=($=pe[N].indexOf("()")!==-1)?pe[N].replace("()",""):pe[N]);n||(n={name:I,val:{},methodExt:[],propExt:[],type:"object"},We.push(n)),N===L-1?(n.val=a,n.type=typeof a=="function"?"function":p.isPlainObject(a)?"object":"other"):We=$?n.methodExt:n.propExt}}},x.registerPlural=ce=function(r,a,d){x.register(r,d),x.register(a,function(){var g=d.apply(this,arguments);return g===this?this:g instanceof x?g.length?Array.isArray(g[0])?new x(g.context,g[0]):g[0]:M:g})};var qe=function(r,a){if(Array.isArray(r))return p.map(r,function(g){return qe(g,a)});if(typeof r=="number")return[a[r]];var d=p.map(a,function(g,N){return g.nTable});return p(d).filter(r).map(function(g){var N=p.inArray(this,d);return a[N]}).toArray()};Y("tables()",function(r){return r!==M&&r!==null?new x(qe(r,this.context)):this}),Y("table()",function(r){var a=this.tables(r),d=a.context;return d.length?new x(d[0]):a}),ce("tables().nodes()","table().node()",function(){return this.iterator("table",function(r){return r.nTable},1)}),ce("tables().body()","table().body()",function(){return this.iterator("table",function(r){return r.nTBody},1)}),ce("tables().header()","table().header()",function(){return this.iterator("table",function(r){return r.nTHead},1)}),ce("tables().footer()","table().footer()",function(){return this.iterator("table",function(r){return r.nTFoot},1)}),ce("tables().containers()","table().container()",function(){return this.iterator("table",function(r){return r.nTableWrapper},1)}),Y("draw()",function(r){return this.iterator("table",function(a){r==="page"?Dr(a):(typeof r=="string"&&(r=r!=="full-hold"),br(a,r===!1))})}),Y("page()",function(r){return r===M?this.page.info().page:this.iterator("table",function(a){Rr(a,r)})}),Y("page.info()",function(r){if(this.context.length===0)return M;var a=this.context[0],d=a._iDisplayStart,g=a.oFeatures.bPaginate?a._iDisplayLength:-1,N=a.fnRecordsDisplay(),L=g===-1;return{page:L?0:Math.floor(d/g),pages:L?1:Math.ceil(N/g),start:d,end:a.fnDisplayEnd(),length:g,recordsTotal:a.fnRecordsTotal(),recordsDisplay:N,serverSide:k(a)==="ssp"}}),Y("page.len()",function(r){return r===M?this.context.length!==0?this.context[0]._iDisplayLength:M:this.iterator("table",function(a){mr(a,r)})});var st=function(r,a,d){if(d){var g=new x(r);g.one("draw",function(){d(g.ajax.json())})}if(k(r)=="ssp")br(r,a);else{yr(r,!0);var N=r.jqXHR;N&&N.readyState!==4&&N.abort(),Yr(r,[],function(L){on(r);for(var I=ln(r,L),$=0,pe=I.length;$<pe;$++)lt(r,I[$]);br(r,a),yr(r,!1)})}};Y("ajax.json()",function(){var r=this.context;if(r.length>0)return r[0].json}),Y("ajax.params()",function(){var r=this.context;if(r.length>0)return r[0].oAjaxData}),Y("ajax.reload()",function(r,a){return this.iterator("table",function(d){st(d,a===!1,r)})}),Y("ajax.url()",function(r){var a=this.context;return r===M?a.length===0?M:(a=a[0]).ajax?p.isPlainObject(a.ajax)?a.ajax.url:a.ajax:a.sAjaxSource:this.iterator("table",function(d){p.isPlainObject(d.ajax)?d.ajax.url=r:d.ajax=r})}),Y("ajax.url().load()",function(r,a){return this.iterator("table",function(d){st(d,a===!1,r)})});var Ct=function(r,a,d,g,N){var L,I,$,pe,We,_e,n=[],c=typeof a;for(a&&c!=="string"&&c!=="function"&&a.length!==M||(a=[a]),$=0,pe=a.length;$<pe;$++)for(We=0,_e=(I=a[$]&&a[$].split&&!a[$].match(/[\[\(:]/)?a[$].split(","):[a[$]]).length;We<_e;We++)(L=d(typeof I[We]=="string"?I[We].trim():I[We]))&&L.length&&(n=n.concat(L));var E=ue.selector[r];if(E.length)for($=0,pe=E.length;$<pe;$++)n=E[$](g,N,n);return be(n)},kt=function(r){return r||(r={}),r.filter&&r.search===M&&(r.search=r.filter),p.extend({search:"none",order:"current",page:"all"},r)},Vt=function(r){for(var a=0,d=r.length;a<d;a++)if(r[a].length>0)return r[0]=r[a],r[0].length=1,r.length=1,r.context=[r.context[a]],r;return r.length=0,r},rr=function(r,a){var d,g=[],N=r.aiDisplay,L=r.aiDisplayMaster,I=a.search,$=a.order,pe=a.page;if(k(r)=="ssp")return I==="removed"?[]:D(0,L.length);if(pe=="current")for(_e=r._iDisplayStart,n=r.fnDisplayEnd();_e<n;_e++)g.push(N[_e]);else if($=="current"||$=="applied"){if(I=="none")g=L.slice();else if(I=="applied")g=N.slice();else if(I=="removed"){for(var We={},_e=0,n=N.length;_e<n;_e++)We[N[_e]]=null;g=p.map(L,function(c){return We.hasOwnProperty(c)?null:c})}}else if($=="index"||$=="original")for(_e=0,n=r.aoData.length;_e<n;_e++)(I=="none"||(d=p.inArray(_e,N))===-1&&I=="removed"||d>=0&&I=="applied")&&g.push(_e);return g};Y("rows()",function(r,a){r===M?r="":p.isPlainObject(r)&&(a=r,r=""),a=kt(a);var d=this.iterator("table",function(g){return function(N,L,I){var $;return Ct("row",L,function(pe){var We=Z(pe),_e=N.aoData;if(We!==null&&!I)return[We];if($||($=rr(N,I)),We!==null&&p.inArray(We,$)!==-1)return[We];if(pe===null||pe===M||pe==="")return $;if(typeof pe=="function")return p.map($,function(V){var fe=_e[V];return pe(V,fe._aData,fe.nTr)?V:null});if(pe.nodeName){var n=pe._DT_RowIndex,c=pe._DT_CellIndex;if(n!==M)return _e[n]&&_e[n].nTr===pe?[n]:[];if(c)return _e[c.row]&&_e[c.row].nTr===pe.parentNode?[c.row]:[];var E=p(pe).closest("*[data-dt-row]");return E.length?[E.data("dt-row")]:[]}if(typeof pe=="string"&&pe.charAt(0)==="#"){var T=N.aIds[pe.replace(/^#/,"")];if(T!==M)return[T.idx]}var W=se(xe(N.aoData,$,"nTr"));return p(W).filter(pe).map(function(){return this._DT_RowIndex}).toArray()},N,I)}(g,r,a)},1);return d.selector.rows=r,d.selector.opts=a,d}),Y("rows().nodes()",function(){return this.iterator("row",function(r,a){return r.aoData[a].nTr||M},1)}),Y("rows().data()",function(){return this.iterator(!0,"rows",function(r,a){return xe(r.aoData,a,"_aData")},1)}),ce("rows().cache()","row().cache()",function(r){return this.iterator("row",function(a,d){var g=a.aoData[d];return r==="search"?g._aFilterData:g._aSortData},1)}),ce("rows().invalidate()","row().invalidate()",function(r){return this.iterator("row",function(a,d){cn(a,d,r)})}),ce("rows().indexes()","row().index()",function(){return this.iterator("row",function(r,a){return a},1)}),ce("rows().ids()","row().id()",function(r){for(var a=[],d=this.context,g=0,N=d.length;g<N;g++)for(var L=0,I=this[g].length;L<I;L++){var $=d[g].rowIdFn(d[g].aoData[this[g][L]]._aData);a.push((r===!0?"#":"")+$)}return new x(d,a)}),ce("rows().remove()","row().remove()",function(){var r=this;return this.iterator("row",function(a,d,g){var N,L,I,$,pe,We,_e=a.aoData,n=_e[d];for(_e.splice(d,1),N=0,L=_e.length;N<L;N++)if(We=(pe=_e[N]).anCells,pe.nTr!==null&&(pe.nTr._DT_RowIndex=N),We!==null)for(I=0,$=We.length;I<$;I++)We[I]._DT_CellIndex.row=N;Er(a.aiDisplayMaster,d),Er(a.aiDisplay,d),Er(r[g],d,!1),a._iRecordsDisplay>0&&a._iRecordsDisplay--,Lt(a);var c=a.rowIdFn(n._aData);c!==M&&delete a.aIds[c]}),this.iterator("table",function(a){for(var d=0,g=a.aoData.length;d<g;d++)a.aoData[d].idx=d}),this}),Y("rows.add()",function(r){var a=this.iterator("table",function(g){var N,L,I,$=[];for(L=0,I=r.length;L<I;L++)(N=r[L]).nodeName&&N.nodeName.toUpperCase()==="TR"?$.push(Ze(g,N)[0]):$.push(lt(g,N));return $},1),d=this.rows(-1);return d.pop(),p.merge(d,a),d}),Y("row()",function(r,a){return Vt(this.rows(r,a))}),Y("row().data()",function(r){var a=this.context;if(r===M)return a.length&&this.length?a[0].aoData[this[0]]._aData:M;var d=a[0].aoData[this[0]];return d._aData=r,Array.isArray(r)&&d.nTr&&d.nTr.id&&Cr(a[0].rowId)(r,d.nTr.id),cn(a[0],this[0],"data"),this}),Y("row().node()",function(){var r=this.context;return r.length&&this.length&&r[0].aoData[this[0]].nTr||null}),Y("row.add()",function(r){r instanceof p&&r.length&&(r=r[0]);var a=this.iterator("table",function(d){return r.nodeName&&r.nodeName.toUpperCase()==="TR"?Ze(d,r)[0]:lt(d,r)});return this.row(a[0])});var ir=function(r,a){var d=r.context;if(d.length){var g=d[0].aoData[a!==M?a:r[0]];g&&g._details&&(g._details.remove(),g._detailsShow=M,g._details=M)}},sr=function(r,a){var d=r.context;if(d.length&&r.length){var g=d[0].aoData[r[0]];g._details&&(g._detailsShow=a,a?g._details.insertAfter(g.nTr):g._details.detach(),Mr(d[0]))}},Mr=function(r){var a=new x(r),d=r.aoData;a.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),me(d,"_details").length>0&&(a.on("draw.dt.DT_details",function(g,N){r===N&&a.rows({page:"current"}).eq(0).each(function(L){var I=d[L];I._detailsShow&&I._details.insertAfter(I.nTr)})}),a.on("column-visibility.dt.DT_details",function(g,N,L,I){if(r===N)for(var $,pe=De(N),We=0,_e=d.length;We<_e;We++)($=d[We])._details&&$._details.children("td[colspan]").attr("colspan",pe)}),a.on("destroy.dt.DT_details",function(g,N){if(r===N)for(var L=0,I=d.length;L<I;L++)d[L]._details&&ir(a,L)}))};Y("row().child()",function(r,a){var d=this.context;return r===M?d.length&&this.length?d[0].aoData[this[0]]._details:M:(r===!0?this.child.show():r===!1?ir(this):d.length&&this.length&&function(g,N,L,I){var $=[],pe=function(We,_e){if(Array.isArray(We)||We instanceof p)for(var n=0,c=We.length;n<c;n++)pe(We[n],_e);else if(We.nodeName&&We.nodeName.toLowerCase()==="tr")$.push(We);else{var E=p("<tr><td></td></tr>").addClass(_e);p("td",E).addClass(_e).html(We)[0].colSpan=De(g),$.push(E[0])}};pe(L,I),N._details&&N._details.detach(),N._details=p($),N._detailsShow&&N._details.insertAfter(N.nTr)}(d[0],d[0].aoData[this[0]],r,a),this)}),Y(["row().child.show()","row().child().show()"],function(r){return sr(this,!0),this}),Y(["row().child.hide()","row().child().hide()"],function(){return sr(this,!1),this}),Y(["row().child.remove()","row().child().remove()"],function(){return ir(this),this}),Y("row().child.isShown()",function(){var r=this.context;return r.length&&this.length&&r[0].aoData[this[0]]._detailsShow||!1});var Ir=/^([^:]+):(name|visIdx|visible)$/,wn=function(r,a,d,g,N){for(var L=[],I=0,$=N.length;I<$;I++)L.push(jt(r,N[I],a));return L};Y("columns()",function(r,a){r===M?r="":p.isPlainObject(r)&&(a=r,r=""),a=kt(a);var d=this.iterator("table",function(g){return function(N,L,I){var $=N.aoColumns,pe=me($,"sName"),We=me($,"nTh");return Ct("column",L,function(_e){var n=Z(_e);if(_e==="")return D($.length);if(n!==null)return[n>=0?n:$.length+n];if(typeof _e=="function"){var c=rr(N,I);return p.map($,function(Pe,He){return _e(He,wn(N,He,0,0,c),We[He])?He:null})}var E=typeof _e=="string"?_e.match(Ir):"";if(E)switch(E[2]){case"visIdx":case"visible":var T=parseInt(E[1],10);if(T<0){var W=p.map($,function(Pe,He){return Pe.bVisible?He:null});return[W[W.length+T]]}return[X(N,T)];case"name":return p.map(pe,function(Pe,He){return Pe===E[1]?He:null});default:return[]}if(_e.nodeName&&_e._DT_CellIndex)return[_e._DT_CellIndex.column];var V=p(We).filter(_e).map(function(){return p.inArray(this,We)}).toArray();if(V.length||!_e.nodeName)return V;var fe=p(_e).closest("*[data-dt-column]");return fe.length?[fe.data("dt-column")]:[]},N,I)}(g,r,a)},1);return d.selector.cols=r,d.selector.opts=a,d}),ce("columns().header()","column().header()",function(r,a){return this.iterator("column",function(d,g){return d.aoColumns[g].nTh},1)}),ce("columns().footer()","column().footer()",function(r,a){return this.iterator("column",function(d,g){return d.aoColumns[g].nTf},1)}),ce("columns().data()","column().data()",function(){return this.iterator("column-rows",wn,1)}),ce("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(r,a){return r.aoColumns[a].mData},1)}),ce("columns().cache()","column().cache()",function(r){return this.iterator("column-rows",function(a,d,g,N,L){return xe(a.aoData,L,r==="search"?"_aFilterData":"_aSortData",d)},1)}),ce("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(r,a,d,g,N){return xe(r.aoData,N,"anCells",a)},1)}),ce("columns().visible()","column().visible()",function(r,a){var d=this,g=this.iterator("column",function(N,L){if(r===M)return N.aoColumns[L].bVisible;(function(I,$,pe){var We,_e,n,c,E=I.aoColumns,T=E[$],W=I.aoData;if(pe===M)return T.bVisible;if(T.bVisible!==pe){if(pe){var V=p.inArray(!0,me(E,"bVisible"),$+1);for(_e=0,n=W.length;_e<n;_e++)c=W[_e].nTr,We=W[_e].anCells,c&&c.insertBefore(We[$],We[V]||null)}else p(me(I.aoData,"anCells",$)).detach();T.bVisible=pe}})(N,L,r)});return r!==M&&this.iterator("table",function(N){gn(N,N.aoHeader),gn(N,N.aoFooter),N.aiDisplay.length||p(N.nTBody).find("td[colspan]").attr("colspan",De(N)),Fn(N),d.iterator("column",function(L,I){ct(L,null,"column-visibility",[L,I,r,a])}),(a===M||a)&&d.columns.adjust()}),g}),ce("columns().indexes()","column().index()",function(r){return this.iterator("column",function(a,d){return r==="visible"?he(a,d):d},1)}),Y("columns.adjust()",function(){return this.iterator("table",function(r){B(r)},1)}),Y("column.index()",function(r,a){if(this.context.length!==0){var d=this.context[0];if(r==="fromVisible"||r==="toData")return X(d,a);if(r==="fromData"||r==="toVisible")return he(d,a)}}),Y("column()",function(r,a){return Vt(this.columns(r,a))}),Y("cells()",function(r,a,d){if(p.isPlainObject(r)&&(r.row===M?(d=r,r=null):(d=a,a=null)),p.isPlainObject(a)&&(d=a,a=null),a===null||a===M)return this.iterator("table",function(c){return function(E,T,W){var V,fe,Pe,He,et,Et,Dt,St=E.aoData,At=rr(E,W),pr=se(xe(St,At,"anCells")),dr=p($e([],pr)),hr=E.aoColumns.length;return Ct("cell",T,function(Ar){var rn=typeof Ar=="function";if(Ar===null||Ar===M||rn){for(fe=[],Pe=0,He=At.length;Pe<He;Pe++)for(V=At[Pe],et=0;et<hr;et++)Et={row:V,column:et},rn?(Dt=St[V],Ar(Et,jt(E,V,et),Dt.anCells?Dt.anCells[et]:null)&&fe.push(Et)):fe.push(Et);return fe}if(p.isPlainObject(Ar))return Ar.column!==M&&Ar.row!==M&&p.inArray(Ar.row,At)!==-1?[Ar]:[];var zn=dr.filter(Ar).map(function(an,Tr){return{row:Tr._DT_CellIndex.row,column:Tr._DT_CellIndex.column}}).toArray();return zn.length||!Ar.nodeName?zn:(Dt=p(Ar).closest("*[data-dt-row]")).length?[{row:Dt.data("dt-row"),column:Dt.data("dt-column")}]:[]},E,W)}(c,r,kt(d))});var g,N,L,I,$=d?{page:d.page,order:d.order,search:d.search}:{},pe=this.columns(a,$),We=this.rows(r,$),_e=this.iterator("table",function(c,E){var T=[];for(g=0,N=We[E].length;g<N;g++)for(L=0,I=pe[E].length;L<I;L++)T.push({row:We[E][g],column:pe[E][L]});return T},1),n=d&&d.selected?this.cells(_e,d):_e;return p.extend(n.selector,{cols:a,rows:r,opts:d}),n}),ce("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(r,a,d){var g=r.aoData[a];return g&&g.anCells?g.anCells[d]:M},1)}),Y("cells().data()",function(){return this.iterator("cell",function(r,a,d){return jt(r,a,d)},1)}),ce("cells().cache()","cell().cache()",function(r){return r=r==="search"?"_aFilterData":"_aSortData",this.iterator("cell",function(a,d,g){return a.aoData[d][r][g]},1)}),ce("cells().render()","cell().render()",function(r){return this.iterator("cell",function(a,d,g){return jt(a,d,g,r)},1)}),ce("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(r,a,d){return{row:a,column:d,columnVisible:he(r,d)}},1)}),ce("cells().invalidate()","cell().invalidate()",function(r){return this.iterator("cell",function(a,d,g){cn(a,d,r,g)})}),Y("cell()",function(r,a,d){return Vt(this.cells(r,a,d))}),Y("cell().data()",function(r){var a=this.context,d=this[0];return r===M?a.length&&d.length?jt(a[0],d[0].row,d[0].column):M:(nr(a[0],d[0].row,d[0].column,r),cn(a[0],d[0].row,"data",d[0].column),this)}),Y("order()",function(r,a){var d=this.context;return r===M?d.length!==0?d[0].aaSorting:M:(typeof r=="number"?r=[[r,a]]:r.length&&!Array.isArray(r[0])&&(r=Array.prototype.slice.call(arguments)),this.iterator("table",function(g){g.aaSorting=r.slice()}))}),Y("order.listener()",function(r,a,d){return this.iterator("table",function(g){ei(g,r,a,d)})}),Y("order.fixed()",function(r){if(!r){var a=this.context,d=a.length?a[0].aaSortingFixed:M;return Array.isArray(d)?{pre:d}:d}return this.iterator("table",function(g){g.aaSortingFixed=p.extend(!0,{},r)})}),Y(["columns().order()","column().order()"],function(r){var a=this;return this.iterator("table",function(d,g){var N=[];p.each(a[g],function(L,I){N.push([I,r])}),d.aaSorting=N})}),Y("search()",function(r,a,d,g){var N=this.context;return r===M?N.length!==0?N[0].oPreviousSearch.sSearch:M:this.iterator("table",function(L){L.oFeatures.bFilter&&xn(L,p.extend({},L.oPreviousSearch,{sSearch:r+"",bRegex:a!==null&&a,bSmart:d===null||d,bCaseInsensitive:g===null||g}),1)})}),ce("columns().search()","column().search()",function(r,a,d,g){return this.iterator("column",function(N,L){var I=N.aoPreSearchCols;if(r===M)return I[L].sSearch;N.oFeatures.bFilter&&(p.extend(I[L],{sSearch:r+"",bRegex:a!==null&&a,bSmart:d===null||d,bCaseInsensitive:g===null||g}),xn(N,N.oPreviousSearch,1))})}),Y("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Y("state.clear()",function(){return this.iterator("table",function(r){r.fnStateSaveCallback.call(r.oInstance,r,{})})}),Y("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Y("state.save()",function(){return this.iterator("table",function(r){Fn(r)})}),K.versionCheck=K.fnVersionCheck=function(r){for(var a,d,g=K.version.split("."),N=r.split("."),L=0,I=N.length;L<I;L++)if((a=parseInt(g[L],10)||0)!==(d=parseInt(N[L],10)||0))return a>d;return!0},K.isDataTable=K.fnIsDataTable=function(r){var a=p(r).get(0),d=!1;return r instanceof K.Api||(p.each(K.settings,function(g,N){var L=N.nScrollHead?p("table",N.nScrollHead)[0]:null,I=N.nScrollFoot?p("table",N.nScrollFoot)[0]:null;N.nTable!==a&&L!==a&&I!==a||(d=!0)}),d)},K.tables=K.fnTables=function(r){var a=!1;p.isPlainObject(r)&&(a=r.api,r=r.visible);var d=p.map(K.settings,function(g){if(!r||r&&p(g.nTable).is(":visible"))return g.nTable});return a?new x(d):d},K.camelToHungarian=Tt,Y("$()",function(r,a){var d=this.rows(a).nodes(),g=p(d);return p([].concat(g.filter(r).toArray(),g.find(r).toArray()))}),p.each(["on","one","off"],function(r,a){Y(a+"()",function(){var d=Array.prototype.slice.call(arguments);d[0]=p.map(d[0].split(/\s/),function(N){return N.match(/\.dt\b/)?N:N+".dt"}).join(" ");var g=p(this.tables().nodes());return g[a].apply(g,d),this})}),Y("clear()",function(){return this.iterator("table",function(r){on(r)})}),Y("settings()",function(){return new x(this.context,this.context)}),Y("init()",function(){var r=this.context;return r.length?r[0].oInit:null}),Y("data()",function(){return this.iterator("table",function(r){return me(r.aoData,"_aData")}).flatten()}),Y("destroy()",function(r){return r=r||!1,this.iterator("table",function(a){var d,g=a.nTableWrapper.parentNode,N=a.oClasses,L=a.nTable,I=a.nTBody,$=a.nTHead,pe=a.nTFoot,We=p(L),_e=p(I),n=p(a.nTableWrapper),c=p.map(a.aoData,function(W){return W.nTr});a.bDestroying=!0,ct(a,"aoDestroyCallback","destroy",[a]),r||new x(a).columns().visible(!0),n.off(".DT").find(":not(tbody *)").off(".DT"),p(G).off(".DT-"+a.sInstance),L!=$.parentNode&&(We.children("thead").detach(),We.append($)),pe&&L!=pe.parentNode&&(We.children("tfoot").detach(),We.append(pe)),a.aaSorting=[],a.aaSortingFixed=[],ar(a),p(c).removeClass(a.asStripeClasses.join(" ")),p("th, td",$).removeClass(N.sSortable+" "+N.sSortableAsc+" "+N.sSortableDesc+" "+N.sSortableNone),_e.children().detach(),_e.append(c);var E=r?"remove":"detach";We[E](),n[E](),!r&&g&&(g.insertBefore(L,a.nTableReinsertBefore),We.css("width",a.sDestroyWidth).removeClass(N.sTable),(d=a.asDestroyStripes.length)&&_e.children().each(function(W){p(this).addClass(a.asDestroyStripes[W%d])}));var T=p.inArray(a,K.settings);T!==-1&&K.settings.splice(T,1)})}),p.each(["column","row","cell"],function(r,a){Y(a+"s().every()",function(d){var g=this.selector.opts,N=this;return this.iterator(a,function(L,I,$,pe,We){d.call(N[a](I,a==="cell"?$:g,a==="cell"?g:M),I,$,pe,We)})})}),Y("i18n()",function(r,a,d){var g=this.context[0],N=gr(r)(g.oLanguage);return N===M&&(N=a),d!==M&&p.isPlainObject(N)&&(N=N[d]!==M?N[d]:N._),N.replace("%d",d)}),K.version="1.10.24",K.settings=[],K.models={},K.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},K.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},K.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},K.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(r){return r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(r){try{return JSON.parse((r.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+r.sInstance+"_"+location.pathname))}catch{return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(r,a){try{(r.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+r.sInstance+"_"+location.pathname,JSON.stringify(a))}catch{}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:p.extend({},K.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},dt(K.defaults),K.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},dt(K.defaults.column),K.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:M,oAjaxData:M,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return k(this)=="ssp"?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return k(this)=="ssp"?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var r=this._iDisplayLength,a=this._iDisplayStart,d=a+r,g=this.aiDisplay.length,N=this.oFeatures,L=N.bPaginate;return N.bServerSide?L===!1||r===-1?a+g:Math.min(a+r,this._iRecordsDisplay):!L||d>g||r===-1?g:d},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},K.ext=ue={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:K.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:K.version},p.extend(ue,{afnFiltering:ue.search,aTypes:ue.type.detect,ofnSearch:ue.type.search,oSort:ue.type.order,afnSortData:ue.order,aoFeatures:ue.feature,oApi:ue.internal,oStdClasses:ue.classes,oPagination:ue.pager}),p.extend(K.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var un=K.ext.pager;function Zr(r,a){var d=[],g=un.numbers_length,N=Math.floor(g/2);return a<=g?d=D(0,a):r<=N?((d=D(0,g-2)).push("ellipsis"),d.push(a-1)):r>=a-1-N?((d=D(a-(g-2),a)).splice(0,0,"ellipsis"),d.splice(0,0,0)):((d=D(r-N+2,r+N-1)).push("ellipsis"),d.push(a-1),d.splice(0,0,"ellipsis"),d.splice(0,0,0)),d.DT_el="span",d}p.extend(un,{simple:function(r,a){return["previous","next"]},full:function(r,a){return["first","previous","next","last"]},numbers:function(r,a){return[Zr(r,a)]},simple_numbers:function(r,a){return["previous",Zr(r,a),"next"]},full_numbers:function(r,a){return["first","previous",Zr(r,a),"next","last"]},first_last_numbers:function(r,a){return["first",Zr(r,a),"last"]},_numbers:Zr,numbers_length:7}),p.extend(!0,K.ext.renderer,{pageButton:{_:function(r,a,d,g,N,L){var I,$,pe,We=r.oClasses,_e=r.oLanguage.oPaginate,n=r.oLanguage.oAria.paginate||{},c=0,E=function(T,W){var V,fe,Pe,He,et=We.sPageButtonDisabled,Et=function(St){Rr(r,St.data.action,!0)};for(V=0,fe=W.length;V<fe;V++)if(Pe=W[V],Array.isArray(Pe)){var Dt=p("<"+(Pe.DT_el||"div")+"/>").appendTo(T);E(Dt,Pe)}else{switch(I=null,$=Pe,He=r.iTabIndex,Pe){case"ellipsis":T.append('<span class="ellipsis">&#x2026;</span>');break;case"first":I=_e.sFirst,N===0&&(He=-1,$+=" "+et);break;case"previous":I=_e.sPrevious,N===0&&(He=-1,$+=" "+et);break;case"next":I=_e.sNext,L!==0&&N!==L-1||(He=-1,$+=" "+et);break;case"last":I=_e.sLast,L!==0&&N!==L-1||(He=-1,$+=" "+et);break;default:I=r.fnFormatNumber(Pe+1),$=N===Pe?We.sPageButtonActive:""}I!==null&&(Se(p("<a>",{class:We.sPageButton+" "+$,"aria-controls":r.sTableId,"aria-label":n[Pe],"data-dt-idx":c,tabindex:He,id:d===0&&typeof Pe=="string"?r.sTableId+"_"+Pe:null}).html(I).appendTo(T),{action:Pe},Et),c++)}};try{pe=p(a).find(C.activeElement).data("dt-idx")}catch{}E(p(a).empty(),g),pe!==M&&p(a).find("[data-dt-idx="+pe+"]").trigger("focus")}}}),p.extend(K.ext.type.detect,[function(r,a){var d=a.oLanguage.sDecimal;return ne(r,d)?"num"+d:null},function(r,a){if(r&&!(r instanceof Date)&&!S.test(r))return null;var d=Date.parse(r);return d!==null&&!isNaN(d)||te(r)?"date":null},function(r,a){var d=a.oLanguage.sDecimal;return ne(r,d,!0)?"num-fmt"+d:null},function(r,a){var d=a.oLanguage.sDecimal;return Ge(r,d)?"html-num"+d:null},function(r,a){var d=a.oLanguage.sDecimal;return Ge(r,d,!0)?"html-num-fmt"+d:null},function(r,a){return te(r)||typeof r=="string"&&r.indexOf("<")!==-1?"html":null}]),p.extend(K.ext.type.search,{html:function(r){return te(r)?r:typeof r=="string"?r.replace(ie," ").replace(m,""):""},string:function(r){return te(r)?r:typeof r=="string"?r.replace(ie," "):r}});var Hn=function(r,a,d,g){return r===0||r&&r!=="-"?(a&&(r=h(r,a)),r.replace&&(d&&(r=r.replace(d,"")),g&&(r=r.replace(g,""))),1*r):-1/0};function An(r){p.each({num:function(a){return Hn(a,r)},"num-fmt":function(a){return Hn(a,r,q)},"html-num":function(a){return Hn(a,r,m)},"html-num-fmt":function(a){return Hn(a,r,m,q)}},function(a,d){ue.type.order[a+r+"-pre"]=d,a.match(/^html\-/)&&(ue.type.search[a+r]=ue.type.search.html)})}p.extend(ue.type.order,{"date-pre":function(r){var a=Date.parse(r);return isNaN(a)?-1/0:a},"html-pre":function(r){return te(r)?"":r.replace?r.replace(/<.*?>/g,"").toLowerCase():r+""},"string-pre":function(r){return te(r)?"":typeof r=="string"?r.toLowerCase():r.toString?r.toString():""},"string-asc":function(r,a){return r<a?-1:r>a?1:0},"string-desc":function(r,a){return r<a?1:r>a?-1:0}}),An(""),p.extend(!0,K.ext.renderer,{header:{_:function(r,a,d,g){p(r.nTable).on("order.dt.DT",function(N,L,I,$){if(r===L){var pe=d.idx;a.removeClass(g.sSortAsc+" "+g.sSortDesc).addClass($[pe]=="asc"?g.sSortAsc:$[pe]=="desc"?g.sSortDesc:d.sSortingClass)}})},jqueryui:function(r,a,d,g){p("<div/>").addClass(g.sSortJUIWrapper).append(a.contents()).append(p("<span/>").addClass(g.sSortIcon+" "+d.sSortingClassJUI)).appendTo(a),p(r.nTable).on("order.dt.DT",function(N,L,I,$){if(r===L){var pe=d.idx;a.removeClass(g.sSortAsc+" "+g.sSortDesc).addClass($[pe]=="asc"?g.sSortAsc:$[pe]=="desc"?g.sSortDesc:d.sSortingClass),a.find("span."+g.sSortIcon).removeClass(g.sSortJUIAsc+" "+g.sSortJUIDesc+" "+g.sSortJUI+" "+g.sSortJUIAscAllowed+" "+g.sSortJUIDescAllowed).addClass($[pe]=="asc"?g.sSortJUIAsc:$[pe]=="desc"?g.sSortJUIDesc:d.sSortingClassJUI)}})}}});var Re=function(r){return typeof r=="string"?r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):r};function Ae(r){return function(){var a=[ye(this[K.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return K.ext.internal[r].apply(this,a)}}return K.render={number:function(r,a,d,g,N){return{display:function(L){if(typeof L!="number"&&typeof L!="string")return L;var I=L<0?"-":"",$=parseFloat(L);if(isNaN($))return Re(L);$=$.toFixed(d),L=Math.abs($);var pe=parseInt(L,10),We=d?a+(L-pe).toFixed(d).substring(2):"";return I+(g||"")+pe.toString().replace(/\B(?=(\d{3})+(?!\d))/g,r)+We+(N||"")}}},text:function(){return{display:Re,filter:Re}}},p.extend(K.ext.internal,{_fnExternApiFunc:Ae,_fnBuildAjax:Yr,_fnAjaxUpdate:kr,_fnAjaxParameters:Wn,_fnAjaxUpdateDraw:Jn,_fnAjaxDataSrc:ln,_fnAddColumn:at,_fnColumnOptions:Ft,_fnAdjustColumnSizing:B,_fnVisibleToColumnIndex:X,_fnColumnIndexToVisible:he,_fnVisbleColumns:De,_fnGetColumns:Ve,_fnColumnTypes:Be,_fnApplyColumnDefs:ze,_fnHungarianMap:dt,_fnCamelToHungarian:Tt,_fnLanguageCompat:ft,_fnBrowserDetect:yt,_fnAddData:lt,_fnAddTr:Ze,_fnNodeToDataIndex:function(r,a){return a._DT_RowIndex!==M?a._DT_RowIndex:null},_fnNodeToColumnIndex:Pt,_fnGetCellData:jt,_fnSetCellData:nr,_fnSplitObjNotation:Pr,_fnGetObjectDataFn:gr,_fnSetObjectDataFn:Cr,_fnGetDataMaster:qr,_fnClearTable:on,_fnDeleteIndex:Er,_fnInvalidate:cn,_fnGetRowElements:Vr,_fnCreateTr:dn,_fnBuildHead:lr,_fnDrawHead:gn,_fnDraw:Dr,_fnReDraw:br,_fnAddOptionsHtml:hn,_fnDetectHeader:sn,_fnGetUniqueThs:Sr,_fnFeatureHtmlFilter:Zn,_fnFilterComplete:xn,_fnFilterCustom:Cn,_fnFilterColumn:Sn,_fnFilter:mn,_fnFilterCreateSearch:je,_fnEscapeRegex:Fe,_fnFilterData:Te,_fnFeatureHtmlInfo:wt,_fnUpdateInfo:Ot,_fnInfoMacros:Rt,_fnInitialise:tr,_fnInitComplete:cr,_fnLengthChange:mr,_fnFeatureHtmlLength:Wr,_fnFeatureHtmlPaginate:Br,_fnPageChange:Rr,_fnFeatureHtmlProcessing:tn,_fnProcessingDisplay:yr,_fnFeatureHtmlTable:Kt,_fnScrollDraw:pn,_fnApplyToChildren:ge,_fnCalculateColumnWidths:pt,_fnThrottle:it,_fnConvertToWidth:Qt,_fnGetWidestNode:ur,_fnGetMaxLenString:gt,_fnStringToCss:Ht,_fnSortFlatten:Ut,_fnSort:Gr,_fnSortAria:Ur,_fnSortListener:Un,_fnSortAttachListener:ei,_fnSortingClasses:ar,_fnSortData:Lr,_fnSaveState:Fn,_fnLoadState:Ye,_fnSettingsFromNode:ye,_fnLog:Le,_fnMap:J,_fnBindAction:Se,_fnCallbackReg:Qe,_fnCallbackFire:ct,_fnLengthOverflow:Lt,_fnRenderer:w,_fnDataSource:k,_fnRowAttributes:vr,_fnExtend:H,_fnCalculateEnd:function(){}}),p.fn.dataTable=K,K.$=p,p.fn.dataTableSettings=K.settings,p.fn.dataTableExt=K.ext,p.fn.DataTable=function(r){return p(this).dataTable(r).api()},p.each(K,function(r,a){p.fn.DataTable[r]=a}),p.fn.dataTable}(R,window,document)}).apply(de,A))===void 0||(ke.exports=_)})()},function(ke,de,b){var A;A=function(){return function(_){var U={};function R(p){if(U[p])return U[p].exports;var G=U[p]={i:p,l:!1,exports:{}};return _[p].call(G.exports,G,G.exports,R),G.l=!0,G.exports}return R.m=_,R.c=U,R.d=function(p,G,C){R.o(p,G)||Object.defineProperty(p,G,{enumerable:!0,get:C})},R.r=function(p){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},R.t=function(p,G){if(1&G&&(p=R(p)),8&G||4&G&&typeof p=="object"&&p&&p.__esModule)return p;var C=Object.create(null);if(R.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:p}),2&G&&typeof p!="string")for(var M in p)R.d(C,M,(function(ue){return p[ue]}).bind(null,M));return C},R.n=function(p){var G=p&&p.__esModule?function(){return p.default}:function(){return p};return R.d(G,"a",G),G},R.o=function(p,G){return Object.prototype.hasOwnProperty.call(p,G)},R.p="/",R(R.s=1)}([function(_,U,R){_.exports=function(p){for(var G=5381,C=p.length;C;)G=33*G^p.charCodeAt(--C);return G>>>0}},function(_,U,R){R.r(U),R.d(U,"default",function(){return Y});var p=R(0),G=R.n(p);function C(ce,K){if(!(ce instanceof K))throw new TypeError("Cannot call a class as a function")}function M(ce,K,oe){return K in ce?Object.defineProperty(ce,K,{value:oe,enumerable:!0,configurable:!0,writable:!0}):ce[K]=oe,ce}var ue,x=(ue=0,function(){return ue++}),Y=function ce(K){var oe=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C(this,ce),M(this,"ID","id"),M(this,"PX","px"),M(this,"RESIZABLE","grip-resizable"),M(this,"FLEX","grip-flex"),M(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),M(this,"reset",function(m){return oe.init(m)}),M(this,"onResize",function(){var m=oe.tb;if(m.classList.remove(oe.RESIZABLE),m.opt.fixed){m.tableWidth=Number(window.getComputedStyle(m).width.replace(/px/,"")).valueOf();for(var S=0,P=0;P<m.columnCnt;P++)S+=m.columns[P].w;for(var q=0;q<m.columnCnt;q++)m.columns[q].style.width=Math.round(1e3*m.columns[q].w/S)/10+"%",m.columns[q].locked=!0}else oe.applyBounds(),m.opt.resizeMode==="flex"&&m.opt.serialize&&oe.serializeStore();m.classList.add(oe.RESIZABLE),oe.syncGrips()}),M(this,"onGripMouseDown",function(m){var S=m.target.parentNode.data,P=oe.tb,q=P.grips[S.i],te=m.touches;if(q.ox=te?te[0].pageX:m.pageX,q.l=q.offsetLeft,q.x=q.l,oe.createStyle(document.querySelector("head"),"*{cursor:"+P.opt.dragCursor+"!important}"),document.addEventListener("touchmove",oe.onGripDrag),document.addEventListener("mousemove",oe.onGripDrag),document.addEventListener("touchend",oe.onGripDragOver),document.addEventListener("mouseup",oe.onGripDragOver),q.classList.add(P.opt.draggingClass),oe.grip=q,P.columns[S.i].locked)for(var Z,h=0;h<P.columnCnt;h++)(Z=P.columns[h]).locked=!1,Z.w=Number(window.getComputedStyle(Z).width.replace(/px/,"")).valueOf();m.preventDefault()}),M(this,"onGripDrag",function(m){var S=oe.grip;if(S){var P=S.t,q=m.touches,te=(q?q[0].pageX:m.pageX)-S.ox+S.l,Z=P.opt.minWidth,h=S.i,ne=1.5*P.cellSpace+Z+P.borderSpace,Ge=h===P.columnCnt-1,me=h?P.grips[h-1].offsetLeft+P.cellSpace+Z:ne,xe=P.opt.fixed?h===P.columnCnt-1?P.tableWidth-ne:P.grips[h+1].offsetLeft-P.cellSpace-Z:1/0;if(te=Math.max(me,Math.min(xe,te)),S.x=te,S.style.left=te+oe.PX,Ge&&(S.w=P.columns[h].w+te-S.l),P.opt.liveDrag){Ge?(P.columns[h].style.width=S.w+oe.PX,!P.opt.fixed&&P.opt.overflow?P.style.minWidth=P.tableWidth+te-S.l+oe.PX:P.tableWidth=Number(window.getComputedStyle(P).width.replace(/px/,"")).valueOf()):oe.syncCols(P,h,!1,P.opt),oe.syncGrips();var D=P.opt.onDrag;D&&D(m)}m.preventDefault()}}),M(this,"onGripDragOver",function(m){var S=oe.grip;document.removeEventListener("touchend",oe.onGripDragOver),document.removeEventListener("mouseup",oe.onGripDragOver),document.removeEventListener("touchmove",oe.onGripDrag),document.removeEventListener("mousemove",oe.onGripDrag);var P=document.querySelector("head").lastChild;if(P.parentNode.removeChild(P),S){if(S.classList.remove(S.t.opt.draggingClass),S.x-S.l!=0){var q=S.t,te=q.opt.onResize,Z=S.i;if(Z===q.columnCnt-1){var h=q.columns[Z];h.style.width=S.w+oe.PX,h.w=S.w}else oe.syncCols(q,Z,!0,q.opt);q.opt.fixed||oe.applyBounds(),oe.syncGrips(),te&&te(m),q.opt.serialize&&oe.serializeStore()}oe.grip=null}}),M(this,"init",function(m){if(m.disable)return oe.destroy();var S=oe.tb,P=S.getAttribute(oe.ID)||oe.RESIZABLE+x();if(!S.matches("table")||S.extended&&!m.partialRefresh)return null;var q=document.querySelector("head");if(oe.createStyle(q," .grip-resizable{table-layout:fixed;} .grip-resizable > tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black;	} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),m.hoverCursor&&m.hoverCursor!=="col-resize"){var te=".grip-handle .grip-resizable:hover{cursor:"+m.hoverCursor+"!important}";oe.createStyle(q,te)}S.setAttribute(oe.ID,P);var Z=S.opt;S.opt=oe.extendOptions(m);var h=oe.getTableHeaders(S);if(oe.extendTable(h),m.remoteTable&&m.remoteTable.matches("table")){var ne=oe.getTableHeaders(S.opt.remoteTable);h.length===ne.length?oe.extendRemoteTable(S.opt.remoteTable,ne,S):console.warn("column count for remote table did not match")}return Z}),M(this,"applyBounds",function(){var m=oe.tb,S=m.columns.map(function(P){return window.getComputedStyle(P).width});m.style.width=window.getComputedStyle(m).width,m.tableWidth=Number(m.style.width.replace(/px/,"")).valueOf(),m.classList.remove(oe.FLEX),m.columns.forEach(function(P,q){P.style.width=S[q],P.w=Number(S[q].replace(/px/,"")).valueOf()}),m.classList.add(oe.FLEX)}),M(this,"serializeStore",function(){var m=oe.store,S=oe.tb;m[S.getAttribute(oe.ID)]="";for(var P=0,q=0;q<S.columns.length;q++){var te=window.getComputedStyle(S.columns[q]).width.replace(/px/,"");m[S.getAttribute(oe.ID)]+=te+";",P+=Number(te).valueOf()}m[S.getAttribute(oe.ID)]+=P.toString(),S.opt.fixed||(m[S.getAttribute(oe.ID)]+=";"+window.getComputedStyle(S).width.replace(/px/,""))}),M(this,"syncGrips",function(){var m=oe.tb;m.gripContainer.style.width=m.tableWidth+oe.PX;for(var S=0;S<m.columnCnt;S++){var P=m.columns[S],q=P.getBoundingClientRect(),te=m.getBoundingClientRect();m.grips[S].style.left=q.left-te.left+P.offsetWidth+m.cellSpace/2+oe.PX,m.grips[S].style.height=(m.opt.headerOnly?m.columns[0].offsetHeight:m.offsetHeight)+oe.PX}}),M(this,"destroy",function(){var m=oe.tb,S=m.getAttribute(oe.ID);return S?(oe.store[S]="",m.classList.remove(oe.RESIZABLE),m.classList.remove(oe.FLEX),m.remote&&(m.remote.classList.remove(oe.RESIZABLE),m.remote.classList.remove(oe.FLEX)),m.gripContainer&&m.gripContainer.parentNode&&m.gripContainer.parentNode.removeChild(m.gripContainer),delete m.extended,m.opt):null}),M(this,"createStyle",function(m,S){var P=G()(S).toString(),q=m.querySelectorAll("style");if(!Array.from(q).filter(function(Z){return Z.gripid===P}).length){var te=document.createElement("style");te.type="text/css",te.gripid=P,te.styleSheet?te.styleSheet.cssText=S:te.appendChild(document.createTextNode(S)),m.appendChild(te)}}),M(this,"extendOptions",function(m){var S=Object.assign({},ce.DEFAULTS,m);switch(S.fixed=!0,S.overflow=!1,S.resizeMode){case"flex":S.fixed=!1;break;case"overflow":S.fixed=!1,S.overflow=!0}return S}),M(this,"getTableHeaders",function(m){var S="#"+m.id,P=Array.from(m.querySelectorAll(S+">thead>tr:nth-of-type(1)>th"));return(P=P.concat(Array.from(m.querySelectorAll(S+">thead>tr:nth-of-type(1)>td")))).length||(P=(P=(P=(P=Array.from(m.querySelectorAll(S+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(m.querySelectorAll(S+">tr:nth-of-type(1)>th")))).concat(Array.from(m.querySelectorAll(S+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(m.querySelectorAll(S+">tr:nth-of-type(1)>td")))),oe.filterInvisible(P,!1)}),M(this,"filterInvisible",function(m,S){return m.filter(function(P){var q=S?-1:P.offsetWidth,te=S?-1:P.offsetHeight;return!(q===0&&te===0||P.style&&P.style.display&&window.getComputedStyle(P).display==="none")})}),M(this,"extendTable",function(m){var S=oe.tb;S.opt.removePadding&&S.classList.add("grip-padding"),S.classList.add(oe.RESIZABLE),S.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),S.grips=[],S.columns=[],S.tableWidth=Number(window.getComputedStyle(S).width.replace(/px/,"")).valueOf(),S.gripContainer=S.previousElementSibling,S.opt.marginLeft&&(S.gripContainer.style.marginLeft=S.opt.marginLeft),S.opt.marginRight&&(S.gripContainer.style.marginRight=S.opt.marginRight),S.cellSpace=parseInt(oe.legacyIE?S.cellSpacing||S.currentStyle.borderSpacing:window.getComputedStyle(S).borderSpacing.split(" ")[0].replace(/px/,""))||2,S.borderSpace=parseInt(oe.legacyIE?S.border||S.currentStyle.borderLeftWidth:window.getComputedStyle(S).borderLeftWidth.replace(/px/,""))||1,S.extended=!0,oe.createGrips(m)}),M(this,"extendRemoteTable",function(m,S,P){P.opt.removePadding&&m.classList.add("grip-padding"),m.classList.add(oe.RESIZABLE),m.getAttribute(oe.ID)||m.setAttribute(oe.ID,P.getAttribute(oe.ID)+"remote"),m.columns=[],S.forEach(function(te,Z){var h=S[Z];h.w=P.columns[Z].w,h.style.width=h.w+oe.PX,h.removeAttribute("width"),m.columns.push(h)}),m.tableWidth=P.tableWidth,m.cellSpace=P.cellSpace,m.borderSpace=P.borderSpace;var q=Array.from(m.querySelectorAll("col"));m.columnGrp=oe.filterInvisible(q,!0),m.columnGrp.forEach(function(te,Z){te.removeAttribute("width"),te.style.width=P.columnGrp[Z].style.width}),P.remote=m}),M(this,"createGrips",function(m){var S=oe.tb;S.columnGrp=oe.filterInvisible(Array.from(S.querySelectorAll("col")),!0),S.columnGrp.forEach(function(te){te.removeAttribute("width")}),S.columnCnt=m.length;var P=!1;oe.store[S.getAttribute(oe.ID)]&&(oe.deserializeStore(m),P=!0),S.opt.widths||(S.opt.widths=[]),m.forEach(function(te,Z){var h=m[Z],ne=S.opt.disabledColumns.indexOf(Z)!==-1;oe.createDiv(S.gripContainer,"grip-handle");var Ge=S.gripContainer.lastChild;!ne&&S.opt.gripInnerHtml&&(Ge.innerHTML=S.opt.gripInnerHtml),oe.createDiv(Ge,oe.RESIZABLE),Z===S.columnCnt-1&&(Ge.classList.add("grip-lastgrip"),S.opt.fixed&&(Ge.innerHTML="")),Ge.addEventListener("touchstart",oe.onGripMouseDown,{capture:!0,passive:!0}),Ge.addEventListener("mousedown",oe.onGripMouseDown,!0),ne?Ge.classList.add("grip-disabledgrip"):(Ge.classList.remove("grip-disabledgrip"),Ge.addEventListener("touchstart",oe.onGripMouseDown,{capture:!0,passive:!0}),Ge.addEventListener("mousedown",oe.onGripMouseDown,!0)),Ge.t=S,Ge.i=Z,S.opt.widths[Z]?h.w=S.opt.widths[Z]:h.w=P?Number(h.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(h).width.replace(/px/,"")).valueOf(),h.style.width=h.w+oe.PX,h.removeAttribute("width"),Ge.data={i:Z,t:S.getAttribute(oe.ID),last:Z===S.columnCnt-1},S.grips.push(Ge),S.columns.push(h)});var q=Array.from(S.querySelectorAll("td"));q.concat(Array.from(S.querySelectorAll("th"))),(q=(q=q.filter(function(te){for(var Z=0;Z<m.length;Z++)if(m[Z]===te)return!1;return!0})).filter(function(te){return!(te.querySelectorAll("table th").length||te.querySelectorAll("table td").length)})).forEach(function(te){te.removeAttribute("width")}),S.opt.fixed||(S.removeAttribute("width"),S.classList.add(oe.FLEX)),oe.syncGrips()}),M(this,"deserializeStore",function(m){var S=oe.tb;if(S.columnGrp.forEach(function(Z){Z.removeAttribute("width")}),S.opt.flush)oe.store[S.getAttribute(oe.ID)]="";else{var P=oe.store[S.getAttribute(oe.ID)].split(";"),q=P[S.columnCnt+1];!S.opt.fixed&&q&&(S.style.width=q+oe.PX,S.opt.overflow&&(S.style.minWidth=q+oe.PX,S.tableWidth=Number(q).valueOf()));for(var te=0;te<S.columnCnt;te++)m[te].style.width=P[te]+oe.PX,S.columnGrp[te]&&(S.columnGrp[te].style.width=100*Number(P[te]).valueOf()/Number(P[S.columnCnt]).valueOf()+"%")}}),M(this,"createDiv",function(m,S,P){var q=document.createElement("div");q.classList.add(S),P&&(q.innerHTML=P),m.appendChild(q)}),M(this,"syncCols",function(m,S,P,q){var te=m.remote,Z=oe.grip.x-oe.grip.l,h=m.columns[S],ne=m.columns[S+1];if(h&&ne){var Ge=h.w+Z,me=ne.w-Z,xe=Ge+oe.PX;if(h.style.width=xe,m.columnGrp[S]&&m.columnGrp[S].style.width&&(m.columnGrp[S].style.width=xe),te&&(te.columns[S].style.width=xe,te.columnGrp[S]&&te.columnGrp[S].style.width&&(te.columnGrp[S].style.width=xe)),q.fixed){var D=me+oe.PX;ne.style.width=D,m.columnGrp[S+1]&&m.columnGrp[S+1].style.width&&(m.columnGrp[S+1].style.width=D),te&&(te.columns[S+1].style.width=D,te.columnGrp[S+1]&&te.columnGrp[S+1].style.width&&(te.columnGrp[S+1].style.width=D))}else q.overflow&&(m.style.minWidth=m.tableWidth+Z+oe.PX);P&&(h.w=Ge,ne.w=q.fixed?me:ne.w,te&&(te.columns[S].w=Ge,te.columns[S+1].w=q.fixed?me:ne.w))}});try{this.store=sessionStorage}catch{this.store={}}this.grip=null,this.tb=K,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(ie)};Y.DEFAULTS={resizeMode:"fit",draggingClass:"grip-drag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"col-resize",dragCursor:"col-resize",flush:!1,marginLeft:null,marginRight:null,remoteTable:null,disable:!1,partialRefresh:!1,disabledColumns:[],removePadding:!0,widths:[],serialize:!0,onDrag:null,onResize:null}}])},ke.exports=A()},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){(function(A){var _={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},U={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};A.defineMode("xml",function(R,p){var G,C,M=R.indentUnit,ue={},x=p.htmlMode?_:U;for(var Y in x)ue[Y]=x[Y];for(var Y in p)ue[Y]=p[Y];function ce(D,se){function re($e){return se.tokenize=$e,$e(D,se)}var be=D.next();return be=="<"?D.eat("!")?D.eat("[")?D.match("CDATA[")?re(oe("atom","]]>")):null:D.match("--")?re(oe("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),re(function $e(dt){return function(Tt,ft){for(var Ke;(Ke=Tt.next())!=null;){if(Ke=="<")return ft.tokenize=$e(dt+1),ft.tokenize(Tt,ft);if(Ke==">"){if(dt==1){ft.tokenize=ce;break}return ft.tokenize=$e(dt-1),ft.tokenize(Tt,ft)}}return"meta"}}(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),se.tokenize=oe("meta","?>"),"meta"):(G=D.eat("/")?"closeTag":"openTag",se.tokenize=K,"tag bracket"):be=="&"?(D.eat("#")?D.eat("x")?D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):D.eatWhile(/[\d]/)&&D.eat(";"):D.eatWhile(/[\w\.\-:]/)&&D.eat(";"))?"atom":"error":(D.eatWhile(/[^&<]/),null)}function K(D,se){var re,be,$e=D.next();if($e==">"||$e=="/"&&D.eat(">"))return se.tokenize=ce,G=$e==">"?"endTag":"selfcloseTag","tag bracket";if($e=="=")return G="equals",null;if($e=="<"){se.tokenize=ce,se.state=P,se.tagName=se.tagStart=null;var dt=se.tokenize(D,se);return dt?dt+" tag error":"tag error"}return/[\'\"]/.test($e)?(se.tokenize=(re=$e,(be=function(Tt,ft){for(;!Tt.eol();)if(Tt.next()==re){ft.tokenize=K;break}return"string"}).isInAttribute=!0,be),se.stringStartCol=D.column(),se.tokenize(D,se)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function oe(D,se){return function(re,be){for(;!re.eol();){if(re.match(se)){be.tokenize=ce;break}re.next()}return D}}function ie(D,se,re){this.prev=D.context,this.tagName=se,this.indent=D.indented,this.startOfLine=re,(ue.doNotIndent.hasOwnProperty(se)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function m(D){D.context&&(D.context=D.context.prev)}function S(D,se){for(var re;;){if(!D.context||(re=D.context.tagName,!ue.contextGrabbers.hasOwnProperty(re)||!ue.contextGrabbers[re].hasOwnProperty(se)))return;m(D)}}function P(D,se,re){return D=="openTag"?(re.tagStart=se.column(),q):D=="closeTag"?te:P}function q(D,se,re){return D=="word"?(re.tagName=se.current(),C="tag",ne):ue.allowMissingTagName&&D=="endTag"?(C="tag bracket",ne(D,0,re)):(C="error",q)}function te(D,se,re){if(D=="word"){var be=se.current();return re.context&&re.context.tagName!=be&&ue.implicitlyClosed.hasOwnProperty(re.context.tagName)&&m(re),re.context&&re.context.tagName==be||ue.matchClosing===!1?(C="tag",Z):(C="tag error",h)}return ue.allowMissingTagName&&D=="endTag"?(C="tag bracket",Z(D,0,re)):(C="error",h)}function Z(D,se,re){return D!="endTag"?(C="error",Z):(m(re),P)}function h(D,se,re){return C="error",Z(D,0,re)}function ne(D,se,re){if(D=="word")return C="attribute",Ge;if(D=="endTag"||D=="selfcloseTag"){var be=re.tagName,$e=re.tagStart;return re.tagName=re.tagStart=null,D=="selfcloseTag"||ue.autoSelfClosers.hasOwnProperty(be)?S(re,be):(S(re,be),re.context=new ie(re,be,$e==re.indented)),P}return C="error",ne}function Ge(D,se,re){return D=="equals"?me:(ue.allowMissing||(C="error"),ne(D,0,re))}function me(D,se,re){return D=="string"?xe:D=="word"&&ue.allowUnquoted?(C="string",ne):(C="error",ne(D,0,re))}function xe(D,se,re){return D=="string"?xe:ne(D,0,re)}return ce.isInText=!0,{startState:function(D){var se={tokenize:ce,state:P,indented:D||0,tagName:null,tagStart:null,context:null};return D!=null&&(se.baseIndent=D),se},token:function(D,se){if(!se.tagName&&D.sol()&&(se.indented=D.indentation()),D.eatSpace())return null;G=null;var re=se.tokenize(D,se);return(re||G)&&re!="comment"&&(C=null,se.state=se.state(G||re,D,se),C&&(re=C=="error"?re+" error":C)),re},indent:function(D,se,re){var be=D.context;if(D.tokenize.isInAttribute)return D.tagStart==D.indented?D.stringStartCol+1:D.indented+M;if(be&&be.noIndent)return A.Pass;if(D.tokenize!=K&&D.tokenize!=ce)return re?re.match(/^(\s*)/)[0].length:0;if(D.tagName)return ue.multilineTagIndentPastTag!==!1?D.tagStart+D.tagName.length+2:D.tagStart+M*(ue.multilineTagIndentFactor||1);if(ue.alignCDATA&&/<!\[CDATA\[/.test(se))return 0;var $e=se&&/^<(\/)?([\w_:\.-]*)/.exec(se);if($e&&$e[1])for(;be;){if(be.tagName==$e[2]){be=be.prev;break}if(!ue.implicitlyClosed.hasOwnProperty(be.tagName))break;be=be.prev}else if($e)for(;be;){var dt=ue.contextGrabbers[be.tagName];if(!dt||!dt.hasOwnProperty($e[2]))break;be=be.prev}for(;be&&be.prev&&!be.startOfLine;)be=be.prev;return be?be.indent+M:D.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ue.htmlMode?"html":"xml",helperType:ue.htmlMode?"html":"xml",skipAttribute:function(D){D.state==me&&(D.state=ne)},xmlCurrentTag:function(D){return D.tagName?{name:D.tagName,close:D.type=="closeTag"}:null},xmlCurrentContext:function(D){for(var se=[],re=D.context;re;re=re.prev)re.tagName&&se.push(re.tagName);return se.reverse()}}}),A.defineMIME("text/xml","xml"),A.defineMIME("application/xml","xml"),A.mimeModes.hasOwnProperty("text/html")||A.defineMIME("text/html",{name:"xml",htmlMode:!0})})(b(7))},function(ke,de,b){(function(A){A.defineMode("javascript",function(_,U){var R,p,G=_.indentUnit,C=U.statementIndent,M=U.jsonld,ue=U.json||M,x=U.typescript,Y=U.wordCharacters||/[\w$\xa1-\uffff]/,ce=function(){function ge(Ht){return{type:Ht,style:"keyword"}}var Ue=ge("keyword a"),pt=ge("keyword b"),it=ge("keyword c"),Qt=ge("keyword d"),ur=ge("operator"),gt={type:"atom",style:"atom"};return{if:ge("if"),while:Ue,with:Ue,else:pt,do:pt,try:pt,finally:pt,return:Qt,break:Qt,continue:Qt,new:ge("new"),delete:it,void:it,throw:it,debugger:ge("debugger"),var:ge("var"),const:ge("var"),let:ge("var"),function:ge("function"),catch:ge("catch"),for:ge("for"),switch:ge("switch"),case:ge("case"),default:ge("default"),in:ur,typeof:ur,instanceof:ur,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:ge("this"),class:ge("class"),super:ge("atom"),yield:it,export:ge("export"),import:ge("import"),extends:it,await:it}}(),K=/[+\-*&%=<>!?|~^@]/,oe=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function ie(ge,Ue,pt){return R=ge,p=pt,Ue}function m(ge,Ue){var pt,it=ge.next();if(it=='"'||it=="'")return Ue.tokenize=(pt=it,function(gt,Ht){var Ut,Gr=!1;if(M&&gt.peek()=="@"&&gt.match(oe))return Ht.tokenize=m,ie("jsonld-keyword","meta");for(;(Ut=gt.next())!=null&&(Ut!=pt||Gr);)Gr=!Gr&&Ut=="\\";return Gr||(Ht.tokenize=m),ie("string","string")}),Ue.tokenize(ge,Ue);if(it=="."&&ge.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ie("number","number");if(it=="."&&ge.match(".."))return ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(it))return ie(it);if(it=="="&&ge.eat(">"))return ie("=>","operator");if(it=="0"&&ge.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ie("number","number");if(/\d/.test(it))return ge.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ie("number","number");if(it=="/")return ge.eat("*")?(Ue.tokenize=S,S(ge,Ue)):ge.eat("/")?(ge.skipToEnd(),ie("comment","comment")):pn(ge,Ue,1)?(function(gt){for(var Ht,Ut=!1,Gr=!1;(Ht=gt.next())!=null;){if(!Ut){if(Ht=="/"&&!Gr)return;Ht=="["?Gr=!0:Gr&&Ht=="]"&&(Gr=!1)}Ut=!Ut&&Ht=="\\"}}(ge),ge.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ie("regexp","string-2")):(ge.eat("="),ie("operator","operator",ge.current()));if(it=="`")return Ue.tokenize=P,P(ge,Ue);if(it=="#"&&ge.peek()=="!")return ge.skipToEnd(),ie("meta","meta");if(it=="#"&&ge.eatWhile(Y))return ie("variable","property");if(it=="<"&&ge.match("!--")||it=="-"&&ge.match("->")&&!/\S/.test(ge.string.slice(0,ge.start)))return ge.skipToEnd(),ie("comment","comment");if(K.test(it))return it==">"&&Ue.lexical&&Ue.lexical.type==">"||(ge.eat("=")?it!="!"&&it!="="||ge.eat("="):/[<>*+\-]/.test(it)&&(ge.eat(it),it==">"&&ge.eat(it))),it=="?"&&ge.eat(".")?ie("."):ie("operator","operator",ge.current());if(Y.test(it)){ge.eatWhile(Y);var Qt=ge.current();if(Ue.lastType!="."){if(ce.propertyIsEnumerable(Qt)){var ur=ce[Qt];return ie(ur.type,ur.style,Qt)}if(Qt=="async"&&ge.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return ie("async","keyword",Qt)}return ie("variable","variable",Qt)}}function S(ge,Ue){for(var pt,it=!1;pt=ge.next();){if(pt=="/"&&it){Ue.tokenize=m;break}it=pt=="*"}return ie("comment","comment")}function P(ge,Ue){for(var pt,it=!1;(pt=ge.next())!=null;){if(!it&&(pt=="`"||pt=="$"&&ge.eat("{"))){Ue.tokenize=m;break}it=!it&&pt=="\\"}return ie("quasi","string-2",ge.current())}function q(ge,Ue){Ue.fatArrowAt&&(Ue.fatArrowAt=null);var pt=ge.string.indexOf("=>",ge.start);if(!(pt<0)){if(x){var it=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ge.string.slice(ge.start,pt));it&&(pt=it.index)}for(var Qt=0,ur=!1,gt=pt-1;gt>=0;--gt){var Ht=ge.string.charAt(gt),Ut="([{}])".indexOf(Ht);if(Ut>=0&&Ut<3){if(!Qt){++gt;break}if(--Qt==0){Ht=="("&&(ur=!0);break}}else if(Ut>=3&&Ut<6)++Qt;else if(Y.test(Ht))ur=!0;else if(/["'\/`]/.test(Ht))for(;;--gt){if(gt==0)return;if(ge.string.charAt(gt-1)==Ht&&ge.string.charAt(gt-2)!="\\"){gt--;break}}else if(ur&&!Qt){++gt;break}}ur&&!Qt&&(Ue.fatArrowAt=gt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function Z(ge,Ue,pt,it,Qt,ur){this.indented=ge,this.column=Ue,this.type=pt,this.prev=Qt,this.info=ur,it!=null&&(this.align=it)}function h(ge,Ue){for(var pt=ge.localVars;pt;pt=pt.next)if(pt.name==Ue)return!0;for(var it=ge.context;it;it=it.prev)for(pt=it.vars;pt;pt=pt.next)if(pt.name==Ue)return!0}var ne={state:null,column:null,marked:null,cc:null};function Ge(){for(var ge=arguments.length-1;ge>=0;ge--)ne.cc.push(arguments[ge])}function me(){return Ge.apply(null,arguments),!0}function xe(ge,Ue){for(var pt=Ue;pt;pt=pt.next)if(pt.name==ge)return!0;return!1}function D(ge){var Ue=ne.state;if(ne.marked="def",Ue.context){if(Ue.lexical.info=="var"&&Ue.context&&Ue.context.block){var pt=function it(Qt,ur){if(ur){if(ur.block){var gt=it(Qt,ur.prev);return gt?gt==ur.prev?ur:new re(gt,ur.vars,!0):null}return xe(Qt,ur.vars)?ur:new re(ur.prev,new be(Qt,ur.vars),!1)}return null}(ge,Ue.context);if(pt!=null)return void(Ue.context=pt)}else if(!xe(ge,Ue.localVars))return void(Ue.localVars=new be(ge,Ue.localVars))}U.globalVars&&!xe(ge,Ue.globalVars)&&(Ue.globalVars=new be(ge,Ue.globalVars))}function se(ge){return ge=="public"||ge=="private"||ge=="protected"||ge=="abstract"||ge=="readonly"}function re(ge,Ue,pt){this.prev=ge,this.vars=Ue,this.block=pt}function be(ge,Ue){this.name=ge,this.next=Ue}var $e=new be("this",new be("arguments",null));function dt(){ne.state.context=new re(ne.state.context,ne.state.localVars,!1),ne.state.localVars=$e}function Tt(){ne.state.context=new re(ne.state.context,ne.state.localVars,!0),ne.state.localVars=null}function ft(){ne.state.localVars=ne.state.context.vars,ne.state.context=ne.state.context.prev}function Ke(ge,Ue){var pt=function(){var it=ne.state,Qt=it.indented;if(it.lexical.type=="stat")Qt=it.lexical.indented;else for(var ur=it.lexical;ur&&ur.type==")"&&ur.align;ur=ur.prev)Qt=ur.indented;it.lexical=new Z(Qt,ne.stream.column(),ge,null,it.lexical,Ue)};return pt.lex=!0,pt}function nt(){var ge=ne.state;ge.lexical.prev&&(ge.lexical.type==")"&&(ge.indented=ge.lexical.indented),ge.lexical=ge.lexical.prev)}function mt(ge){return function Ue(pt){return pt==ge?me():ge==";"||pt=="}"||pt==")"||pt=="]"?Ge():me(Ue)}}function yt(ge,Ue){return ge=="var"?me(Ke("vardef",Ue),Yr,mt(";"),nt):ge=="keyword a"?me(Ke("form"),B,yt,nt):ge=="keyword b"?me(Ke("form"),yt,nt):ge=="keyword d"?ne.stream.match(/^\s*$/,!1)?me():me(Ke("stat"),he,mt(";"),nt):ge=="debugger"?me(mt(";")):ge=="{"?me(Ke("}"),Tt,on,nt,ft):ge==";"?me():ge=="if"?(ne.state.lexical.info=="else"&&ne.state.cc[ne.state.cc.length-1]==nt&&ne.state.cc.pop()(),me(Ke("form"),B,yt,nt,xn)):ge=="function"?me(je):ge=="for"?me(Ke("form"),Cn,yt,nt):ge=="class"||x&&Ue=="interface"?(ne.marked="keyword",me(Ke("form",ge=="class"?ge:Ue),Je,nt)):ge=="variable"?x&&Ue=="declare"?(ne.marked="keyword",me(yt)):x&&(Ue=="module"||Ue=="enum"||Ue=="type")&&ne.stream.match(/^\s*\w/,!1)?(ne.marked="keyword",Ue=="enum"?me(yr):Ue=="type"?me(Ie,mt("operator"),vr,mt(";")):me(Ke("form"),kr,mt("{"),Ke("}"),on,nt,nt)):x&&Ue=="namespace"?(ne.marked="keyword",me(Ke("form"),at,yt,nt)):x&&Ue=="abstract"?(ne.marked="keyword",me(yt)):me(Ke("stat"),nr):ge=="switch"?me(Ke("form"),B,mt("{"),Ke("}","switch"),Tt,on,nt,nt,ft):ge=="case"?me(at,mt(":")):ge=="default"?me(mt(":")):ge=="catch"?me(Ke("form"),dt,Nt,yt,nt,ft):ge=="export"?me(Ke("stat"),Rt,nt):ge=="import"?me(Ke("stat"),cr,nt):ge=="async"?me(yt):Ue=="@"?me(at,yt):Ge(Ke("stat"),at,mt(";"),nt)}function Nt(ge){if(ge=="(")return me(Ee,mt(")"))}function at(ge,Ue){return X(ge,Ue,!1)}function Ft(ge,Ue){return X(ge,Ue,!0)}function B(ge){return ge!="("?Ge():me(Ke(")"),he,mt(")"),nt)}function X(ge,Ue,pt){if(ne.state.fatArrowAt==ne.stream.start){var it=pt?Ze:lt;if(ge=="(")return me(dt,Ke(")"),Cr(Ee,")"),nt,mt("=>"),it,ft);if(ge=="variable")return Ge(dt,kr,mt("=>"),it,ft)}var Qt=pt?Ve:De;return te.hasOwnProperty(ge)?me(Qt):ge=="function"?me(je,Qt):ge=="class"||x&&Ue=="interface"?(ne.marked="keyword",me(Ke("form"),Te,nt)):ge=="keyword c"||ge=="async"?me(pt?Ft:at):ge=="("?me(Ke(")"),he,mt(")"),nt,Qt):ge=="operator"||ge=="spread"?me(pt?Ft:at):ge=="["?me(Ke("]"),tn,nt,Qt):ge=="{"?qr(xr,"}",null,Qt):ge=="quasi"?Ge(Be,Qt):ge=="new"?me(function(ur){return function(gt){return gt=="."?me(ur?jt:Pt):gt=="variable"&&x?me(hn,ur?Ve:De):Ge(ur?Ft:at)}}(pt)):ge=="import"?me(at):me()}function he(ge){return ge.match(/[;\}\)\],]/)?Ge():Ge(at)}function De(ge,Ue){return ge==","?me(he):Ve(ge,Ue,!1)}function Ve(ge,Ue,pt){var it=pt==0?De:Ve,Qt=pt==0?at:Ft;return ge=="=>"?me(dt,pt?Ze:lt,ft):ge=="operator"?/\+\+|--/.test(Ue)||x&&Ue=="!"?me(it):x&&Ue=="<"&&ne.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?me(Ke(">"),Cr(vr,">"),nt,it):Ue=="?"?me(at,mt(":"),Qt):me(Qt):ge=="quasi"?Ge(Be,it):ge!=";"?ge=="("?qr(Ft,")","call",it):ge=="."?me(Bt,it):ge=="["?me(Ke("]"),he,mt("]"),nt,it):x&&Ue=="as"?(ne.marked="keyword",me(vr,it)):ge=="regexp"?(ne.state.lastType=ne.marked="operator",ne.stream.backUp(ne.stream.pos-ne.stream.start-1),me(Qt)):void 0:void 0}function Be(ge,Ue){return ge!="quasi"?Ge():Ue.slice(Ue.length-2)!="${"?me(Be):me(at,ze)}function ze(ge){if(ge=="}")return ne.marked="string-2",ne.state.tokenize=P,me(Be)}function lt(ge){return q(ne.stream,ne.state),Ge(ge=="{"?yt:at)}function Ze(ge){return q(ne.stream,ne.state),Ge(ge=="{"?yt:Ft)}function Pt(ge,Ue){if(Ue=="target")return ne.marked="keyword",me(De)}function jt(ge,Ue){if(Ue=="target")return ne.marked="keyword",me(Ve)}function nr(ge){return ge==":"?me(nt,yt):Ge(De,mt(";"),nt)}function Bt(ge){if(ge=="variable")return ne.marked="property",me()}function xr(ge,Ue){return ge=="async"?(ne.marked="property",me(xr)):ge=="variable"||ne.style=="keyword"?(ne.marked="property",Ue=="get"||Ue=="set"?me(Pr):(x&&ne.state.fatArrowAt==ne.stream.start&&(pt=ne.stream.match(/^\s*:\s*/,!1))&&(ne.state.fatArrowAt=ne.stream.pos+pt[0].length),me(gr))):ge=="number"||ge=="string"?(ne.marked=M?"property":ne.style+" property",me(gr)):ge=="jsonld-keyword"?me(gr):x&&se(Ue)?(ne.marked="keyword",me(xr)):ge=="["?me(at,Er,mt("]"),gr):ge=="spread"?me(Ft,gr):Ue=="*"?(ne.marked="keyword",me(xr)):ge==":"?Ge(gr):void 0;var pt}function Pr(ge){return ge!="variable"?Ge(gr):(ne.marked="property",me(je))}function gr(ge){return ge==":"?me(Ft):ge=="("?Ge(je):void 0}function Cr(ge,Ue,pt){function it(Qt,ur){if(pt?pt.indexOf(Qt)>-1:Qt==","){var gt=ne.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),me(function(Ht,Ut){return Ht==Ue||Ut==Ue?Ge():Ge(ge)},it)}return Qt==Ue||ur==Ue?me():pt&&pt.indexOf(";")>-1?Ge(ge):me(mt(Ue))}return function(Qt,ur){return Qt==Ue||ur==Ue?me():Ge(ge,it)}}function qr(ge,Ue,pt){for(var it=3;it<arguments.length;it++)ne.cc.push(arguments[it]);return me(Ke(Ue,pt),Cr(ge,Ue),nt)}function on(ge){return ge=="}"?me():Ge(yt,on)}function Er(ge,Ue){if(x){if(ge==":")return me(vr);if(Ue=="?")return me(Er)}}function cn(ge,Ue){if(x&&(ge==":"||Ue=="in"))return me(vr)}function Vr(ge){if(x&&ge==":")return ne.stream.match(/^\s*\w+\s+is\b/,!1)?me(at,dn,vr):me(vr)}function dn(ge,Ue){if(Ue=="is")return ne.marked="keyword",me()}function vr(ge,Ue){return Ue=="keyof"||Ue=="typeof"||Ue=="infer"?(ne.marked="keyword",me(Ue=="typeof"?Ft:vr)):ge=="variable"||Ue=="void"?(ne.marked="type",me(br)):Ue=="|"||Ue=="&"?me(vr):ge=="string"||ge=="number"||ge=="atom"?me(br):ge=="["?me(Ke("]"),Cr(vr,"]",","),nt,br):ge=="{"?me(Ke("}"),Cr(gn,"}",",;"),nt,br):ge=="("?me(Cr(Dr,")"),lr,br):ge=="<"?me(Cr(vr,">"),vr):void 0}function lr(ge){if(ge=="=>")return me(vr)}function gn(ge,Ue){return ge=="variable"||ne.style=="keyword"?(ne.marked="property",me(gn)):Ue=="?"||ge=="number"||ge=="string"?me(gn):ge==":"?me(vr):ge=="["?me(mt("variable"),cn,mt("]"),gn):ge=="("?Ge(Fe,gn):void 0}function Dr(ge,Ue){return ge=="variable"&&ne.stream.match(/^\s*[?:]/,!1)||Ue=="?"?me(Dr):ge==":"?me(vr):ge=="spread"?me(Dr):Ge(vr)}function br(ge,Ue){return Ue=="<"?me(Ke(">"),Cr(vr,">"),nt,br):Ue=="|"||ge=="."||Ue=="&"?me(vr):ge=="["?me(vr,mt("]"),br):Ue=="extends"||Ue=="implements"?(ne.marked="keyword",me(vr)):Ue=="?"?me(vr,mt(":"),vr):void 0}function hn(ge,Ue){if(Ue=="<")return me(Ke(">"),Cr(vr,">"),nt,br)}function sn(){return Ge(vr,Sr)}function Sr(ge,Ue){if(Ue=="=")return me(vr)}function Yr(ge,Ue){return Ue=="enum"?(ne.marked="keyword",me(yr)):Ge(kr,Er,ln,Zn)}function kr(ge,Ue){return x&&se(Ue)?(ne.marked="keyword",me(kr)):ge=="variable"?(D(Ue),me()):ge=="spread"?me(kr):ge=="["?qr(Jn,"]"):ge=="{"?qr(Wn,"}"):void 0}function Wn(ge,Ue){return ge!="variable"||ne.stream.match(/^\s*:/,!1)?(ge=="variable"&&(ne.marked="property"),ge=="spread"?me(kr):ge=="}"?Ge():ge=="["?me(at,mt("]"),mt(":"),Wn):me(mt(":"),kr,ln)):(D(Ue),me(ln))}function Jn(){return Ge(kr,ln)}function ln(ge,Ue){if(Ue=="=")return me(Ft)}function Zn(ge){if(ge==",")return me(Yr)}function xn(ge,Ue){if(ge=="keyword b"&&Ue=="else")return me(Ke("form","else"),yt,nt)}function Cn(ge,Ue){return Ue=="await"?me(Cn):ge=="("?me(Ke(")"),Sn,nt):void 0}function Sn(ge){return ge=="var"?me(Yr,mn):ge=="variable"?me(mn):Ge(mn)}function mn(ge,Ue){return ge==")"?me():ge==";"?me(mn):Ue=="in"||Ue=="of"?(ne.marked="keyword",me(at,mn)):Ge(at,mn)}function je(ge,Ue){return Ue=="*"?(ne.marked="keyword",me(je)):ge=="variable"?(D(Ue),me(je)):ge=="("?me(dt,Ke(")"),Cr(Ee,")"),nt,Vr,yt,ft):x&&Ue=="<"?me(Ke(">"),Cr(sn,">"),nt,je):void 0}function Fe(ge,Ue){return Ue=="*"?(ne.marked="keyword",me(Fe)):ge=="variable"?(D(Ue),me(Fe)):ge=="("?me(dt,Ke(")"),Cr(Ee,")"),nt,Vr,ft):x&&Ue=="<"?me(Ke(">"),Cr(sn,">"),nt,Fe):void 0}function Ie(ge,Ue){return ge=="keyword"||ge=="variable"?(ne.marked="type",me(Ie)):Ue=="<"?me(Ke(">"),Cr(sn,">"),nt):void 0}function Ee(ge,Ue){return Ue=="@"&&me(at,Ee),ge=="spread"?me(Ee):x&&se(Ue)?(ne.marked="keyword",me(Ee)):x&&ge=="this"?me(Er,ln):Ge(kr,Er,ln)}function Te(ge,Ue){return ge=="variable"?Je(ge,Ue):It(ge,Ue)}function Je(ge,Ue){if(ge=="variable")return D(Ue),me(It)}function It(ge,Ue){return Ue=="<"?me(Ke(">"),Cr(sn,">"),nt,It):Ue=="extends"||Ue=="implements"||x&&ge==","?(Ue=="implements"&&(ne.marked="keyword"),me(x?vr:at,It)):ge=="{"?me(Ke("}"),wt,nt):void 0}function wt(ge,Ue){return ge=="async"||ge=="variable"&&(Ue=="static"||Ue=="get"||Ue=="set"||x&&se(Ue))&&ne.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(ne.marked="keyword",me(wt)):ge=="variable"||ne.style=="keyword"?(ne.marked="property",me(Ot,wt)):ge=="number"||ge=="string"?me(Ot,wt):ge=="["?me(at,Er,mt("]"),Ot,wt):Ue=="*"?(ne.marked="keyword",me(wt)):x&&ge=="("?Ge(Fe,wt):ge==";"||ge==","?me(wt):ge=="}"?me():Ue=="@"?me(at,wt):void 0}function Ot(ge,Ue){if(Ue=="?")return me(Ot);if(ge==":")return me(vr,ln);if(Ue=="=")return me(Ft);var pt=ne.state.lexical.prev;return Ge(pt&&pt.info=="interface"?Fe:je)}function Rt(ge,Ue){return Ue=="*"?(ne.marked="keyword",me(Rr,mt(";"))):Ue=="default"?(ne.marked="keyword",me(at,mt(";"))):ge=="{"?me(Cr(tr,"}"),Rr,mt(";")):Ge(yt)}function tr(ge,Ue){return Ue=="as"?(ne.marked="keyword",me(mt("variable"))):ge=="variable"?Ge(Ft,tr):void 0}function cr(ge){return ge=="string"?me():ge=="("?Ge(at):Ge(mr,Wr,Rr)}function mr(ge,Ue){return ge=="{"?qr(mr,"}"):(ge=="variable"&&D(Ue),Ue=="*"&&(ne.marked="keyword"),me(Br))}function Wr(ge){if(ge==",")return me(mr,Wr)}function Br(ge,Ue){if(Ue=="as")return ne.marked="keyword",me(mr)}function Rr(ge,Ue){if(Ue=="from")return ne.marked="keyword",me(at)}function tn(ge){return ge=="]"?me():Ge(Cr(Ft,"]"))}function yr(){return Ge(Ke("form"),kr,mt("{"),Ke("}"),Cr(Kt,"}"),nt,nt)}function Kt(){return Ge(kr,ln)}function pn(ge,Ue,pt){return Ue.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ue.lastType)||Ue.lastType=="quasi"&&/\{\s*$/.test(ge.string.slice(0,ge.pos-(pt||0)))}return ft.lex=!0,nt.lex=!0,{startState:function(ge){var Ue={tokenize:m,lastType:"sof",cc:[],lexical:new Z((ge||0)-G,0,"block",!1),localVars:U.localVars,context:U.localVars&&new re(null,null,!1),indented:ge||0};return U.globalVars&&typeof U.globalVars=="object"&&(Ue.globalVars=U.globalVars),Ue},token:function(ge,Ue){if(ge.sol()&&(Ue.lexical.hasOwnProperty("align")||(Ue.lexical.align=!1),Ue.indented=ge.indentation(),q(ge,Ue)),Ue.tokenize!=S&&ge.eatSpace())return null;var pt=Ue.tokenize(ge,Ue);return R=="comment"?pt:(Ue.lastType=R!="operator"||p!="++"&&p!="--"?R:"incdec",function(it,Qt,ur,gt,Ht){var Ut=it.cc;for(ne.state=it,ne.stream=Ht,ne.marked=null,ne.cc=Ut,ne.style=Qt,it.lexical.hasOwnProperty("align")||(it.lexical.align=!0);;)if((Ut.length?Ut.pop():ue?at:yt)(ur,gt)){for(;Ut.length&&Ut[Ut.length-1].lex;)Ut.pop()();return ne.marked?ne.marked:ur=="variable"&&h(it,gt)?"variable-2":Qt}}(Ue,pt,R,p,ge))},indent:function(ge,Ue){if(ge.tokenize==S)return A.Pass;if(ge.tokenize!=m)return 0;var pt,it=Ue&&Ue.charAt(0),Qt=ge.lexical;if(!/^\s*else\b/.test(Ue))for(var ur=ge.cc.length-1;ur>=0;--ur){var gt=ge.cc[ur];if(gt==nt)Qt=Qt.prev;else if(gt!=xn)break}for(;(Qt.type=="stat"||Qt.type=="form")&&(it=="}"||(pt=ge.cc[ge.cc.length-1])&&(pt==De||pt==Ve)&&!/^[,\.=+\-*:?[\(]/.test(Ue));)Qt=Qt.prev;C&&Qt.type==")"&&Qt.prev.type=="stat"&&(Qt=Qt.prev);var Ht=Qt.type,Ut=it==Ht;return Ht=="vardef"?Qt.indented+(ge.lastType=="operator"||ge.lastType==","?Qt.info.length+1:0):Ht=="form"&&it=="{"?Qt.indented:Ht=="form"?Qt.indented+G:Ht=="stat"?Qt.indented+(function(Gr,Ur){return Gr.lastType=="operator"||Gr.lastType==","||K.test(Ur.charAt(0))||/[,.]/.test(Ur.charAt(0))}(ge,Ue)?C||G:0):Qt.info!="switch"||Ut||U.doubleIndentSwitch==0?Qt.align?Qt.column+(Ut?0:1):Qt.indented+(Ut?0:G):Qt.indented+(/^(?:case|default)\b/.test(Ue)?G:2*G)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:ue?null:"/*",blockCommentEnd:ue?null:"*/",blockCommentContinue:ue?null:" * ",lineComment:ue?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:ue?"json":"javascript",jsonldMode:M,jsonMode:ue,expressionAllowed:pn,skipExpression:function(ge){var Ue=ge.cc[ge.cc.length-1];Ue!=at&&Ue!=Ft||ge.cc.pop()}}}),A.registerHelper("wordChars","javascript",/[\w$]/),A.defineMIME("text/javascript","javascript"),A.defineMIME("text/ecmascript","javascript"),A.defineMIME("application/javascript","javascript"),A.defineMIME("application/x-javascript","javascript"),A.defineMIME("application/ecmascript","javascript"),A.defineMIME("application/json",{name:"javascript",json:!0}),A.defineMIME("application/x-json",{name:"javascript",json:!0}),A.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),A.defineMIME("text/typescript",{name:"javascript",typescript:!0}),A.defineMIME("application/typescript",{name:"javascript",typescript:!0})})(b(7))},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){function A(_){if(_)return function(U){for(var R in A.prototype)U[R]=A.prototype[R];return U}(_)}ke.exports=A,A.prototype.on=A.prototype.addEventListener=function(_,U){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_]=this._callbacks["$"+_]||[]).push(U),this},A.prototype.once=function(_,U){function R(){this.off(_,R),U.apply(this,arguments)}return R.fn=U,this.on(_,R),this},A.prototype.off=A.prototype.removeListener=A.prototype.removeAllListeners=A.prototype.removeEventListener=function(_,U){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var R,p=this._callbacks["$"+_];if(!p)return this;if(arguments.length==1)return delete this._callbacks["$"+_],this;for(var G=0;G<p.length;G++)if((R=p[G])===U||R.fn===U){p.splice(G,1);break}return p.length===0&&delete this._callbacks["$"+_],this},A.prototype.emit=function(_){this._callbacks=this._callbacks||{};for(var U=new Array(arguments.length-1),R=this._callbacks["$"+_],p=1;p<arguments.length;p++)U[p-1]=arguments[p];if(R){p=0;for(var G=(R=R.slice(0)).length;p<G;++p)R[p].apply(this,U)}return this},A.prototype.listeners=function(_){return this._callbacks=this._callbacks||{},this._callbacks["$"+_]||[]},A.prototype.hasListeners=function(_){return!!this.listeners(_).length}},function(ke,de){ke.exports=_,_.default=_,_.stable=R,_.stableStringify=R;var b=[],A=[];function _(G,C,M){var ue;for(function Y(ce,K,oe,ie){var m;if(typeof ce=="object"&&ce!==null){for(m=0;m<oe.length;m++)if(oe[m]===ce){var S=Object.getOwnPropertyDescriptor(ie,K);return void(S.get!==void 0?S.configurable?(Object.defineProperty(ie,K,{value:"[Circular]"}),b.push([ie,K,ce,S])):A.push([ce,K]):(ie[K]="[Circular]",b.push([ie,K,ce])))}if(oe.push(ce),Array.isArray(ce))for(m=0;m<ce.length;m++)Y(ce[m],m,oe,ce);else{var P=Object.keys(ce);for(m=0;m<P.length;m++){var q=P[m];Y(ce[q],q,oe,ce)}}oe.pop()}}(G,"",[],void 0),ue=A.length===0?JSON.stringify(G,C,M):JSON.stringify(G,p(C),M);b.length!==0;){var x=b.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}return ue}function U(G,C){return G<C?-1:G>C?1:0}function R(G,C,M){var ue,x=function ce(K,oe,ie,m){var S;if(typeof K=="object"&&K!==null){for(S=0;S<ie.length;S++)if(ie[S]===K){var P=Object.getOwnPropertyDescriptor(m,oe);return void(P.get!==void 0?P.configurable?(Object.defineProperty(m,oe,{value:"[Circular]"}),b.push([m,oe,K,P])):A.push([K,oe]):(m[oe]="[Circular]",b.push([m,oe,K])))}if(typeof K.toJSON=="function")return;if(ie.push(K),Array.isArray(K))for(S=0;S<K.length;S++)ce(K[S],S,ie,K);else{var q={},te=Object.keys(K).sort(U);for(S=0;S<te.length;S++){var Z=te[S];ce(K[Z],Z,ie,K),q[Z]=K[Z]}if(m===void 0)return q;b.push([m,oe,K]),m[oe]=q}ie.pop()}}(G,"",[],void 0)||G;for(ue=A.length===0?JSON.stringify(x,C,M):JSON.stringify(x,p(C),M);b.length!==0;){var Y=b.pop();Y.length===4?Object.defineProperty(Y[0],Y[1],Y[3]):Y[0][Y[1]]=Y[2]}return ue}function p(G){return G=G!==void 0?G:function(C,M){return M},function(C,M){if(A.length>0)for(var ue=0;ue<A.length;ue++){var x=A[ue];if(x[1]===C&&x[0]===M){M="[Circular]",A.splice(ue,1);break}}return G.call(this,C,M)}}},function(ke,de,b){function A(p){return(A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(p)}var _=b(121);function U(p){if(p)return function(G){for(var C in U.prototype)Object.prototype.hasOwnProperty.call(U.prototype,C)&&(G[C]=U.prototype[C]);return G}(p)}ke.exports=U,U.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},U.prototype.parse=function(p){return this._parser=p,this},U.prototype.responseType=function(p){return this._responseType=p,this},U.prototype.serialize=function(p){return this._serializer=p,this},U.prototype.timeout=function(p){if(!p||A(p)!=="object")return this._timeout=p,this._responseTimeout=0,this._uploadTimeout=0,this;for(var G in p)if(Object.prototype.hasOwnProperty.call(p,G))switch(G){case"deadline":this._timeout=p.deadline;break;case"response":this._responseTimeout=p.response;break;case"upload":this._uploadTimeout=p.upload;break;default:console.warn("Unknown timeout option",G)}return this},U.prototype.retry=function(p,G){return arguments.length!==0&&p!==!0||(p=1),p<=0&&(p=0),this._maxRetries=p,this._retries=0,this._retryCallback=G,this};var R=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];U.prototype._shouldRetry=function(p,G){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var C=this._retryCallback(p,G);if(C===!0)return!0;if(C===!1)return!1}catch(M){console.error(M)}return!!(G&&G.status&&G.status>=500&&G.status!==501||p&&(p.code&&R.includes(p.code)||p.timeout&&p.code==="ECONNABORTED"||p.crossDomain))},U.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},U.prototype.then=function(p,G){var C=this;if(!this._fullfilledPromise){var M=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(ue,x){M.on("abort",function(){if(!(C._maxRetries&&C._maxRetries>C._retries))if(C.timedout&&C.timedoutError)x(C.timedoutError);else{var Y=new Error("Aborted");Y.code="ABORTED",Y.status=C.status,Y.method=C.method,Y.url=C.url,x(Y)}}),M.end(function(Y,ce){Y?x(Y):ue(ce)})})}return this._fullfilledPromise.then(p,G)},U.prototype.catch=function(p){return this.then(void 0,p)},U.prototype.use=function(p){return p(this),this},U.prototype.ok=function(p){if(typeof p!="function")throw new Error("Callback required");return this._okCallback=p,this},U.prototype._isResponseOK=function(p){return!!p&&(this._okCallback?this._okCallback(p):p.status>=200&&p.status<300)},U.prototype.get=function(p){return this._header[p.toLowerCase()]},U.prototype.getHeader=U.prototype.get,U.prototype.set=function(p,G){if(_(p)){for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&this.set(C,p[C]);return this}return this._header[p.toLowerCase()]=G,this.header[p]=G,this},U.prototype.unset=function(p){return delete this._header[p.toLowerCase()],delete this.header[p],this},U.prototype.field=function(p,G){if(p==null)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(_(p)){for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&this.field(C,p[C]);return this}if(Array.isArray(G)){for(var M in G)Object.prototype.hasOwnProperty.call(G,M)&&this.field(p,G[M]);return this}if(G==null)throw new Error(".field(name, val) val can not be empty");return typeof G=="boolean"&&(G=String(G)),this._getFormData().append(p,G),this},U.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},U.prototype._auth=function(p,G,C,M){switch(C.type){case"basic":this.set("Authorization","Basic ".concat(M("".concat(p,":").concat(G))));break;case"auto":this.username=p,this.password=G;break;case"bearer":this.set("Authorization","Bearer ".concat(p))}return this},U.prototype.withCredentials=function(p){return p===void 0&&(p=!0),this._withCredentials=p,this},U.prototype.redirects=function(p){return this._maxRedirects=p,this},U.prototype.maxResponseSize=function(p){if(typeof p!="number")throw new TypeError("Invalid argument");return this._maxResponseSize=p,this},U.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},U.prototype.send=function(p){var G=_(p),C=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(G&&!this._data)Array.isArray(p)?this._data=[]:this._isHost(p)||(this._data={});else if(p&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(G&&_(this._data))for(var M in p)Object.prototype.hasOwnProperty.call(p,M)&&(this._data[M]=p[M]);else typeof p=="string"?(C||this.type("form"),C=this._header["content-type"],this._data=C==="application/x-www-form-urlencoded"?this._data?"".concat(this._data,"&").concat(p):p:(this._data||"")+p):this._data=p;return!G||this._isHost(p)||C||this.type("json"),this},U.prototype.sortQuery=function(p){return this._sort=p===void 0||p,this},U.prototype._finalizeQueryString=function(){var p=this._query.join("&");if(p&&(this.url+=(this.url.includes("?")?"&":"?")+p),this._query.length=0,this._sort){var G=this.url.indexOf("?");if(G>=0){var C=this.url.slice(G+1).split("&");typeof this._sort=="function"?C.sort(this._sort):C.sort(),this.url=this.url.slice(0,G)+"?"+C.join("&")}}},U.prototype._appendQueryString=function(){console.warn("Unsupported")},U.prototype._timeoutError=function(p,G,C){if(!this._aborted){var M=new Error("".concat(p+G,"ms exceeded"));M.timeout=G,M.code="ECONNABORTED",M.errno=C,this.timedout=!0,this.timedoutError=M,this.abort(),this.callback(M)}},U.prototype._setTimeouts=function(){var p=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){p._timeoutError("Timeout of ",p._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){p._timeoutError("Response timeout of ",p._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(ke,de,b){var A=b(155);function _(U){if(U)return function(R){for(var p in _.prototype)Object.prototype.hasOwnProperty.call(_.prototype,p)&&(R[p]=_.prototype[p]);return R}(U)}ke.exports=_,_.prototype.get=function(U){return this.header[U.toLowerCase()]},_.prototype._setHeaderProperties=function(U){var R=U["content-type"]||"";this.type=A.type(R);var p=A.params(R);for(var G in p)Object.prototype.hasOwnProperty.call(p,G)&&(this[G]=p[G]);this.links={};try{U.link&&(this.links=A.parseLinks(U.link))}catch{}},_.prototype._setStatusProperties=function(U){var R=U/100|0;this.statusCode=U,this.status=this.statusCode,this.statusType=R,this.info=R===1,this.ok=R===2,this.redirect=R===3,this.clientError=R===4,this.serverError=R===5,this.error=(R===4||R===5)&&this.toError(),this.created=U===201,this.accepted=U===202,this.noContent=U===204,this.badRequest=U===400,this.unauthorized=U===401,this.notAcceptable=U===406,this.forbidden=U===403,this.notFound=U===404,this.unprocessableEntity=U===422}},function(ke,de,b){de.type=function(A){return A.split(/ *; */).shift()},de.params=function(A){return A.split(/ *; */).reduce(function(_,U){var R=U.split(/ *= */),p=R.shift(),G=R.shift();return p&&G&&(_[p]=G),_},{})},de.parseLinks=function(A){return A.split(/ *, */).reduce(function(_,U){var R=U.split(/ *; */),p=R[0].slice(1,-1);return _[R[1].split(/ *= */)[1].slice(1,-1)]=p,_},{})},de.cleanHeader=function(A,_){return delete A["content-type"],delete A["content-length"],delete A["transfer-encoding"],delete A.host,_&&(delete A.authorization,delete A.cookie),A}},function(ke,de,b){function A(R){return function(p){if(Array.isArray(p))return _(p)}(R)||function(p){if(typeof Symbol<"u"&&Symbol.iterator in Object(p))return Array.from(p)}(R)||function(p,G){if(p){if(typeof p=="string")return _(p,G);var C=Object.prototype.toString.call(p).slice(8,-1);if(C==="Object"&&p.constructor&&(C=p.constructor.name),C==="Map"||C==="Set")return Array.from(p);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return _(p,G)}}(R)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(R,p){(p==null||p>R.length)&&(p=R.length);for(var G=0,C=new Array(p);G<p;G++)C[G]=R[G];return C}function U(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(R){U.prototype[R]=function(){for(var p=arguments.length,G=new Array(p),C=0;C<p;C++)G[C]=arguments[C];return this._defaults.push({fn:R,args:G}),this}}),U.prototype._setDefaults=function(R){this._defaults.forEach(function(p){R[p.fn].apply(R,A(p.args))})},ke.exports=U},function(ke,de,b){ke.exports=function(A){return encodeURIComponent(A).replace(/[!'()*]/g,function(_){return"%"+_.charCodeAt(0).toString(16).toUpperCase()})}},function(ke,de,b){var A=new RegExp("%[a-f0-9]{2}","gi"),_=new RegExp("(%[a-f0-9]{2})+","gi");function U(p,G){try{return decodeURIComponent(p.join(""))}catch{}if(p.length===1)return p;G=G||1;var C=p.slice(0,G),M=p.slice(G);return Array.prototype.concat.call([],U(C),U(M))}function R(p){try{return decodeURIComponent(p)}catch{for(var G=p.match(A),C=1;C<G.length;C++)G=(p=U(G,C).join("")).match(A);return p}}ke.exports=function(p){if(typeof p!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof p+"`");try{return p=p.replace(/\+/g," "),decodeURIComponent(p)}catch{return function(C){for(var M={"%FE%FF":"��","%FF%FE":"��"},ue=_.exec(C);ue;){try{M[ue[0]]=decodeURIComponent(ue[0])}catch{var x=R(ue[0]);x!==ue[0]&&(M[ue[0]]=x)}ue=_.exec(C)}M["%C2"]="�";for(var Y=Object.keys(M),ce=0;ce<Y.length;ce++){var K=Y[ce];C=C.replace(new RegExp(K,"g"),M[K])}return C}(p)}}},function(ke,de,b){ke.exports=function(A,_){if(typeof A!="string"||typeof _!="string")throw new TypeError("Expected the arguments to be of type `string`");if(_==="")return[A];var U=A.indexOf(_);return U===-1?[A]:[A.slice(0,U),A.slice(U+_.length)]}},function(ke,de,b){},function(ke,de){ke.exports={table:{"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],UCASE:[],LCASE:[],ENCODE_FOR_URI:[],CONTAINS:[],STRSTARTS:[],STRENDS:[],STRBEFORE:[],STRAFTER:[],YEAR:[],MONTH:[],DAY:[],HOURS:[],MINUTES:[],SECONDS:[],TIMEZONE:[],TZ:[],NOW:[],UUID:[],STRUUID:[],MD5:[],SHA1:[],SHA256:[],SHA384:[],SHA512:[],COALESCE:[],IF:[],STRLANG:[],STRDT:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},keywords:/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|UCASE|LCASE|ENCODE_FOR_URI|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|NOW|UUID|STRUUID|MD5|SHA1|SHA256|SHA384|SHA512|COALESCE|IF|STRLANG|STRDT|ISNUMERIC|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,punct:/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,startSymbol:"sparql11",acceptEmpty:!0}},function(ke,de,b){(function(A){function _(x,Y){this.cm=x,this.options=Y,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;var ce=this;x.on("cursorActivity",this.activityFunc=function(){ce.cursorActivity()})}A.showHint=function(x,Y,ce){if(!Y)return x.showHint(ce);ce&&ce.async&&(Y.async=!0);var K={hint:Y};if(ce)for(var oe in ce)K[oe]=ce[oe];return x.showHint(K)},A.defineExtension("showHint",function(x){x=function(oe,ie,m){var S=oe.options.hintOptions,P={};for(var q in ue)P[q]=ue[q];if(S)for(var q in S)S[q]!==void 0&&(P[q]=S[q]);if(m)for(var q in m)m[q]!==void 0&&(P[q]=m[q]);return P.hint.resolve&&(P.hint=P.hint.resolve(oe,ie)),P}(this,this.getCursor("start"),x);var Y=this.listSelections();if(!(Y.length>1)){if(this.somethingSelected()){if(!x.hint.supportsSelection)return;for(var ce=0;ce<Y.length;ce++)if(Y[ce].head.line!=Y[ce].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var K=this.state.completionActive=new _(this,x);K.options.hint&&(A.signal(this,"startCompletion",this),K.update(!0))}}),A.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var U=window.requestAnimationFrame||function(x){return setTimeout(x,1e3/60)},R=window.cancelAnimationFrame||clearTimeout;function p(x){return typeof x=="string"?x:x.text}function G(x,Y){for(;Y&&Y!=x;){if(Y.nodeName.toUpperCase()==="LI"&&Y.parentNode==x)return Y;Y=Y.parentNode}}function C(x,Y){this.completion=x,this.data=Y,this.picked=!1;var ce=this,K=x.cm,oe=K.getInputField().ownerDocument,ie=oe.defaultView||oe.parentWindow,m=this.hints=oe.createElement("ul"),S=x.cm.options.theme;m.className="CodeMirror-hints "+S,this.selectedHint=Y.selectedHint||0;for(var P=Y.list,q=0;q<P.length;++q){var te=m.appendChild(oe.createElement("li")),Z=P[q],h="CodeMirror-hint"+(q!=this.selectedHint?"":" CodeMirror-hint-active");Z.className!=null&&(h=Z.className+" "+h),te.className=h,Z.render?Z.render(te,Y,Z):te.appendChild(oe.createTextNode(Z.displayText||p(Z))),te.hintId=q}var ne=x.options.container||oe.body,Ge=K.cursorCoords(x.options.alignWithWord?Y.from:null),me=Ge.left,xe=Ge.bottom,D=!0,se=0,re=0;if(ne!==oe.body){var be=["absolute","relative","fixed"].indexOf(ie.getComputedStyle(ne).position)!==-1?ne:ne.offsetParent,$e=be.getBoundingClientRect(),dt=oe.body.getBoundingClientRect();se=$e.left-dt.left-be.scrollLeft,re=$e.top-dt.top-be.scrollTop}m.style.left=me-se+"px",m.style.top=xe-re+"px";var Tt=ie.innerWidth||Math.max(oe.body.offsetWidth,oe.documentElement.offsetWidth),ft=ie.innerHeight||Math.max(oe.body.offsetHeight,oe.documentElement.offsetHeight);ne.appendChild(m);var Ke=m.getBoundingClientRect(),nt=Ke.bottom-ft,mt=m.scrollHeight>m.clientHeight+1,yt=K.getScrollInfo();if(nt>0){var Nt=Ke.bottom-Ke.top;if(Ge.top-(Ge.bottom-Ke.top)-Nt>0)m.style.top=(xe=Ge.top-Nt-re)+"px",D=!1;else if(Nt>ft){m.style.height=ft-5+"px",m.style.top=(xe=Ge.bottom-Ke.top-re)+"px";var at=K.getCursor();Y.from.ch!=at.ch&&(Ge=K.cursorCoords(at),m.style.left=(me=Ge.left-se)+"px",Ke=m.getBoundingClientRect())}}var Ft,B=Ke.right-Tt;if(B>0&&(Ke.right-Ke.left>Tt&&(m.style.width=Tt-5+"px",B-=Ke.right-Ke.left-Tt),m.style.left=(me=Ge.left-B-se)+"px"),mt)for(var X=m.firstChild;X;X=X.nextSibling)X.style.paddingRight=K.display.nativeBarWidth+"px";return K.addKeyMap(this.keyMap=function(he,De){var Ve={Up:function(){De.moveFocus(-1)},Down:function(){De.moveFocus(1)},PageUp:function(){De.moveFocus(1-De.menuSize(),!0)},PageDown:function(){De.moveFocus(De.menuSize()-1,!0)},Home:function(){De.setFocus(0)},End:function(){De.setFocus(De.length-1)},Enter:De.pick,Tab:De.pick,Esc:De.close};/Mac/.test(navigator.platform)&&(Ve["Ctrl-P"]=function(){De.moveFocus(-1)},Ve["Ctrl-N"]=function(){De.moveFocus(1)});var Be=he.options.customKeys,ze=Be?{}:Ve;function lt(jt,nr){var Bt;Bt=typeof nr!="string"?function(xr){return nr(xr,De)}:Ve.hasOwnProperty(nr)?Ve[nr]:nr,ze[jt]=Bt}if(Be)for(var Ze in Be)Be.hasOwnProperty(Ze)&&lt(Ze,Be[Ze]);var Pt=he.options.extraKeys;if(Pt)for(var Ze in Pt)Pt.hasOwnProperty(Ze)&&lt(Ze,Pt[Ze]);return ze}(x,{moveFocus:function(he,De){ce.changeActive(ce.selectedHint+he,De)},setFocus:function(he){ce.changeActive(he)},menuSize:function(){return ce.screenAmount()},length:P.length,close:function(){x.close()},pick:function(){ce.pick()},data:Y})),x.options.closeOnUnfocus&&(K.on("blur",this.onBlur=function(){Ft=setTimeout(function(){x.close()},100)}),K.on("focus",this.onFocus=function(){clearTimeout(Ft)})),K.on("scroll",this.onScroll=function(){var he=K.getScrollInfo(),De=K.getWrapperElement().getBoundingClientRect(),Ve=xe+yt.top-he.top,Be=Ve-(ie.pageYOffset||(oe.documentElement||oe.body).scrollTop);if(D||(Be+=m.offsetHeight),Be<=De.top||Be>=De.bottom)return x.close();m.style.top=Ve+"px",m.style.left=me+yt.left-he.left+"px"}),A.on(m,"dblclick",function(he){var De=G(m,he.target||he.srcElement);De&&De.hintId!=null&&(ce.changeActive(De.hintId),ce.pick())}),A.on(m,"click",function(he){var De=G(m,he.target||he.srcElement);De&&De.hintId!=null&&(ce.changeActive(De.hintId),x.options.completeOnSingleClick&&ce.pick())}),A.on(m,"mousedown",function(){setTimeout(function(){K.focus()},20)}),this.scrollToActive(),A.signal(Y,"select",P[this.selectedHint],m.childNodes[this.selectedHint]),!0}function M(x,Y,ce,K){if(x.async)x(Y,K,ce);else{var oe=x(Y,ce);oe&&oe.then?oe.then(K):K(oe)}}_.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&A.signal(this.data,"close"),this.widget&&this.widget.close(),A.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(x,Y){var ce=x.list[Y],K=this;this.cm.operation(function(){ce.hint?ce.hint(K.cm,x,ce):K.cm.replaceRange(p(ce),ce.from||x.from,ce.to||x.to,"complete"),A.signal(x,"pick",ce),K.cm.scrollIntoView()}),this.close()},cursorActivity:function(){this.debounce&&(R(this.debounce),this.debounce=0);var x=this.startPos;this.data&&(x=this.data.from);var Y=this.cm.getCursor(),ce=this.cm.getLine(Y.line);if(Y.line!=this.startPos.line||ce.length-Y.ch!=this.startLen-this.startPos.ch||Y.ch<x.ch||this.cm.somethingSelected()||!Y.ch||this.options.closeCharacters.test(ce.charAt(Y.ch-1)))this.close();else{var K=this;this.debounce=U(function(){K.update()}),this.widget&&this.widget.disable()}},update:function(x){if(this.tick!=null){var Y=this,ce=++this.tick;M(this.options.hint,this.cm,this.options,function(K){Y.tick==ce&&Y.finishUpdate(K,x)})}},finishUpdate:function(x,Y){this.data&&A.signal(this.data,"update");var ce=this.widget&&this.widget.picked||Y&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=x,x&&x.list.length&&(ce&&x.list.length==1?this.pick(x,0):(this.widget=new C(this,x),A.signal(x,"shown")))}},C.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var x=this.completion.cm;this.completion.options.closeOnUnfocus&&(x.off("blur",this.onBlur),x.off("focus",this.onFocus)),x.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var x=this;this.keyMap={Enter:function(){x.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(x,Y){if(x>=this.data.list.length?x=Y?this.data.list.length-1:0:x<0&&(x=Y?0:this.data.list.length-1),this.selectedHint!=x){var ce=this.hints.childNodes[this.selectedHint];ce&&(ce.className=ce.className.replace(" CodeMirror-hint-active","")),(ce=this.hints.childNodes[this.selectedHint=x]).className+=" CodeMirror-hint-active",this.scrollToActive(),A.signal(this.data,"select",this.data.list[this.selectedHint],ce)}},scrollToActive:function(){var x=this.hints.childNodes[this.selectedHint],Y=this.hints.firstChild;x.offsetTop<this.hints.scrollTop?this.hints.scrollTop=x.offsetTop-Y.offsetTop:x.offsetTop+x.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=x.offsetTop+x.offsetHeight-this.hints.clientHeight+Y.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},A.registerHelper("hint","auto",{resolve:function(x,Y){var ce,K=x.getHelpers(Y,"hint");if(K.length){var oe=function(ie,m,S){var P=function(q,te){if(!q.somethingSelected())return te;for(var Z=[],h=0;h<te.length;h++)te[h].supportsSelection&&Z.push(te[h]);return Z}(ie,K);(function q(te){if(te==P.length)return m(null);M(P[te],ie,S,function(Z){Z&&Z.list.length>0?m(Z):q(te+1)})})(0)};return oe.async=!0,oe.supportsSelection=!0,oe}return(ce=x.getHelper(x.getCursor(),"hintWords"))?function(ie){return A.hint.fromList(ie,{words:ce})}:A.hint.anyword?function(ie,m){return A.hint.anyword(ie,m)}:function(){}}}),A.registerHelper("hint","fromList",function(x,Y){var ce,K=x.getCursor(),oe=x.getTokenAt(K),ie=A.Pos(K.line,oe.start),m=K;oe.start<K.ch&&/\w/.test(oe.string.charAt(K.ch-oe.start-1))?ce=oe.string.substr(0,K.ch-oe.start):(ce="",ie=K);for(var S=[],P=0;P<Y.words.length;P++){var q=Y.words[P];q.slice(0,ce.length)==ce&&S.push(q)}if(S.length)return{list:S,from:ie,to:m}}),A.commands.autocomplete=A.showHint;var ue={hint:A.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};A.defineOption("hintOptions",null)})(b(7))},function(ke,de,b){(function(A){var _={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function U(x){for(var Y in this.options={},_)this.options[Y]=(x&&x.hasOwnProperty(Y)?x:_)[Y];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function R(x){var Y=x.state.matchHighlighter;(Y.active||x.hasFocus())&&G(x,Y)}function p(x){var Y=x.state.matchHighlighter;Y.active||(Y.active=!0,G(x,Y))}function G(x,Y){clearTimeout(Y.timeout),Y.timeout=setTimeout(function(){ue(x)},Y.options.delay)}function C(x,Y,ce,K){var oe=x.state.matchHighlighter;if(x.addOverlay(oe.overlay=function(m,S,P){return{token:function(q){if(q.match(m)&&(!S||function(te,Z){return!(te.start&&Z.test(te.string.charAt(te.start-1))||te.pos!=te.string.length&&Z.test(te.string.charAt(te.pos)))}(q,S)))return P;q.next(),q.skipTo(m.charAt(0))||q.skipToEnd()}}}(Y,ce,K)),oe.options.annotateScrollbar&&x.showMatchesOnScrollbar){var ie=ce?new RegExp((/\w/.test(Y.charAt(0))?"\\b":"")+Y.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(Y.charAt(Y.length-1))?"\\b":"")):Y;oe.matchesonscroll=x.showMatchesOnScrollbar(ie,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function M(x){var Y=x.state.matchHighlighter;Y.overlay&&(x.removeOverlay(Y.overlay),Y.overlay=null,Y.matchesonscroll&&(Y.matchesonscroll.clear(),Y.matchesonscroll=null))}function ue(x){x.operation(function(){var Y=x.state.matchHighlighter;if(M(x),x.somethingSelected()||!Y.options.showToken){var ce=x.getCursor("from"),K=x.getCursor("to");if(ce.line==K.line&&(!Y.options.wordsOnly||function(te,Z,h){if(te.getRange(Z,h).match(/^\w+$/)!==null){if(Z.ch>0){var ne={line:Z.line,ch:Z.ch-1};if(te.getRange(ne,Z).match(/\W/)===null)return!1}return!(h.ch<te.getLine(Z.line).length&&(ne={line:h.line,ch:h.ch+1},te.getRange(h,ne).match(/\W/)===null))}return!1}(x,ce,K))){var oe=x.getRange(ce,K);Y.options.trim&&(oe=oe.replace(/^\s+|\s+$/g,"")),oe.length>=Y.options.minChars&&C(x,oe,!1,Y.options.style)}}else{for(var ie=Y.options.showToken===!0?/[\w$]/:Y.options.showToken,m=x.getCursor(),S=x.getLine(m.line),P=m.ch,q=P;P&&ie.test(S.charAt(P-1));)--P;for(;q<S.length&&ie.test(S.charAt(q));)++q;P<q&&C(x,S.slice(P,q),ie,Y.options.style)}})}A.defineOption("highlightSelectionMatches",!1,function(x,Y,ce){if(ce&&ce!=A.Init&&(M(x),clearTimeout(x.state.matchHighlighter.timeout),x.state.matchHighlighter=null,x.off("cursorActivity",R),x.off("focus",p)),Y){var K=x.state.matchHighlighter=new U(Y);x.hasFocus()?(K.active=!0,ue(x)):x.on("focus",p),x.on("cursorActivity",R)}})})(b(7),b(164))},function(ke,de,b){(function(A){function _(R,p,G,C){this.cm=R,this.options=C;var M={listenForChanges:!1};for(var ue in C)M[ue]=C[ue];M.className||(M.className="CodeMirror-search-match"),this.annotation=R.annotateScrollbar(M),this.query=p,this.caseFold=G,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(Y,ce){x.onChange(ce)})}function U(R,p,G){return R<=p?R:Math.max(p,R+G)}A.defineExtension("showMatchesOnScrollbar",function(R,p,G){return typeof G=="string"&&(G={className:G}),G||(G={}),new _(this,R,p,G)}),_.prototype.findMatches=function(){if(this.gap){for(var R=0;R<this.matches.length&&!((C=this.matches[R]).from.line>=this.gap.to);R++)C.to.line>=this.gap.from&&this.matches.splice(R--,1);for(var p=this.cm.getSearchCursor(this.query,A.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),G=this.options&&this.options.maxMatches||1e3;p.findNext();){var C;if((C={from:p.from(),to:p.to()}).from.line>=this.gap.to||(this.matches.splice(R++,0,C),this.matches.length>G))break}this.gap=null}},_.prototype.onChange=function(R){var p=R.from.line,G=A.changeEnd(R).line,C=G-R.to.line;if(this.gap?(this.gap.from=Math.min(U(this.gap.from,p,C),R.from.line),this.gap.to=Math.max(U(this.gap.to,p,C),R.from.line)):this.gap={from:R.from.line,to:G+1},C)for(var M=0;M<this.matches.length;M++){var ue=this.matches[M],x=U(ue.from.line,p,C);x!=ue.from.line&&(ue.from=A.Pos(x,ue.from.ch));var Y=U(ue.to.line,p,C);Y!=ue.to.line&&(ue.to=A.Pos(Y,ue.to.ch))}clearTimeout(this.update);var ce=this;this.update=setTimeout(function(){ce.updateAfterChange()},250)},_.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},_.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})(b(7),b(122),b(165))},function(ke,de,b){(function(A){function _(U,R){function p(C){clearTimeout(G.doRedraw),G.doRedraw=setTimeout(function(){G.redraw()},C)}this.cm=U,this.options=R,this.buttonHeight=R.scrollButtonHeight||U.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=U.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var G=this;U.on("refresh",this.resizeHandler=function(){clearTimeout(G.doUpdate),G.doUpdate=setTimeout(function(){G.computeScale()&&p(20)},100)}),U.on("markerAdded",this.resizeHandler),U.on("markerCleared",this.resizeHandler),R.listenForChanges!==!1&&U.on("changes",this.changeHandler=function(){p(250)})}A.defineExtension("annotateScrollbar",function(U){return typeof U=="string"&&(U={className:U}),new _(this,U)}),A.defineOption("scrollButtonHeight",0),_.prototype.computeScale=function(){var U=this.cm,R=(U.getWrapperElement().clientHeight-U.display.barHeight-2*this.buttonHeight)/U.getScrollerElement().scrollHeight;if(R!=this.hScale)return this.hScale=R,!0},_.prototype.update=function(U){this.annotations=U,this.redraw()},_.prototype.redraw=function(U){U!==!1&&this.computeScale();var R=this.cm,p=this.hScale,G=document.createDocumentFragment(),C=this.annotations,M=R.getOption("lineWrapping"),ue=M&&1.5*R.defaultTextHeight(),x=null,Y=null;function ce(Z,h){return x!=Z.line&&(x=Z.line,Y=R.getLineHandle(x)),Y.widgets&&Y.widgets.length||M&&Y.height>ue?R.charCoords(Z,"local")[h?"top":"bottom"]:R.heightAtLine(Y,"local")+(h?0:Y.height)}var K=R.lastLine();if(R.display.barWidth)for(var oe,ie=0;ie<C.length;ie++){var m=C[ie];if(!(m.to.line>K)){for(var S=oe||ce(m.from,!0)*p,P=ce(m.to,!1)*p;ie<C.length-1&&!(C[ie+1].to.line>K)&&!((oe=ce(C[ie+1].from,!0)*p)>P+.9);)P=ce((m=C[++ie]).to,!1)*p;if(P!=S){var q=Math.max(P-S,3),te=G.appendChild(document.createElement("div"));te.style.cssText="position: absolute; right: 0px; width: "+Math.max(R.display.barWidth-1,2)+"px; top: "+(S+this.buttonHeight)+"px; height: "+q+"px",te.className=this.options.className,m.id&&te.setAttribute("annotation-id",m.id)}}}this.div.textContent="",this.div.appendChild(G)},_.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)}})(b(7))},function(ke,de,b){(function(A){A.runMode=function(_,U,R,p){var G=A.getMode(A.defaults,U),C=p&&p.tabSize||A.defaults.tabSize;if(R.appendChild){var M=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<9),ue=R,x=0;ue.innerHTML="",R=function(S,P){if(S==`
`)return ue.appendChild(document.createTextNode(M?"\r":S)),void(x=0);for(var q="",te=0;;){var Z=S.indexOf("	",te);if(Z==-1){q+=S.slice(te),x+=S.length-te;break}x+=Z-te,q+=S.slice(te,Z);var h=C-x%C;x+=h;for(var ne=0;ne<h;++ne)q+=" ";te=Z+1}if(P){var Ge=ue.appendChild(document.createElement("span"));Ge.className="cm-"+P.replace(/ +/g," cm-"),Ge.appendChild(document.createTextNode(q))}else ue.appendChild(document.createTextNode(q))}}for(var Y=A.splitLines(_),ce=p&&p.state||A.startState(G),K=0,oe=Y.length;K<oe;++K){K&&R(`
`);var ie=new A.StringStream(Y[K],null,{lookAhead:function(S){return Y[K+S]},baseToken:function(){}});for(!ie.string&&G.blankLine&&G.blankLine(ce);!ie.eol();){var m=G.token(ie,ce);R(ie.current(),m,K,ie.start,ce),ie.start=ie.pos}}}})(b(7))},function(ke,de,b){},function(ke,de,b){},function(ke,de){ke.exports=function(b,A){var _=[];return A.length===0?_.push({text:b,highlight:!1}):A[0][0]>0&&_.push({text:b.slice(0,A[0][0]),highlight:!1}),A.forEach(function(U,R){var p=U[0],G=U[1];_.push({text:b.slice(p,G),highlight:!0}),R===A.length-1?G<b.length&&_.push({text:b.slice(G,b.length),highlight:!1}):G<A[R+1][0]&&_.push({text:b.slice(G,A[R+1][0]),highlight:!1})}),_}},function(ke,de,b){var A=b(87),_=b(85),U=Object(_.a)(function(R,p,G){Object(A.a)(R,p,G)});de.a=U},function(ke,de,b){var A=b(64),_=Object(A.a)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),U=b(27),R=/[&<>"']/g,p=RegExp(R.source);de.a=function(G){return(G=Object(U.a)(G))&&p.test(G)?G.replace(R,_):G}},function(ke,de,b){var A;A=function(){function _(ie,m){for(var S=0;S<m.length;S++){var P=m[S];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(ie,P.key,P)}}function U(ie){return ie.innerHTML=""}function R(ie,m,S,P,q,te){P({event:ie,query:m instanceof HTMLInputElement?m.value:m.innerHTML,matches:q.matches,results:q.list.map(function(Z){return Z.value}),selection:q.list.find(function(Z){return ie.keyCode===M?Z.index===Number(te.getAttribute(G)):ie.type==="mousedown"?Z.index===Number(ie.currentTarget.getAttribute(G)):void 0})}),U(S)}function p(ie,m){m=m||{bubbles:!1,cancelable:!1,detail:void 0};var S=document.createEvent("CustomEvent");return S.initCustomEvent(ie,m.bubbles,m.cancelable,m.detail),S}var G="data-id",C="autoComplete_selected",M=13,ue=function(ie){return typeof ie=="string"?document.querySelector(ie):ie()},x=function(ie){var m=document.createElement(ie.element);return m.setAttribute("id","autoComplete_list"),ie.container&&ie.container(m),ie.destination.insertAdjacentElement(ie.position,m),m},Y=function(ie){return"<span class=".concat("autoComplete_highlighted",">").concat(ie,"</span>")},ce=function(ie,m,S){var P=document.createDocumentFragment();m.forEach(function(q,te){var Z=document.createElement(S.element),h=m[te].index;Z.setAttribute(G,h),Z.setAttribute("class","autoComplete_result"),S.content?S.content(q,Z):Z.innerHTML=q.match||q,P.appendChild(Z)}),ie.appendChild(P)},K=U;p.prototype=window.Event.prototype;var oe={CustomEventWrapper:typeof window.CustomEvent=="function"&&window.CustomEvent||p,initElementClosestPolyfill:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(ie){var m=this;do{if(m.matches(ie))return m;m=m.parentElement||m.parentNode}while(m!==null&&m.nodeType===1);return null})}};return function(){function ie(m){(function(Vr,dn){if(!(Vr instanceof dn))throw new TypeError("Cannot call a class as a function")})(this,ie);var S=m.selector,P=S===void 0?"#autoComplete":S,q=m.data,te=q.key,Z=q.src,h=q.cache,ne=h===void 0||h,Ge=m.query,me=m.trigger,xe=(me=me===void 0?{}:me).event,D=xe===void 0?["input"]:xe,se=me.condition,re=se!==void 0&&se,be=m.searchEngine,$e=be===void 0?"strict":be,dt=m.threshold,Tt=dt===void 0?0:dt,ft=m.debounce,Ke=ft===void 0?0:ft,nt=m.resultsList,mt=(nt=nt===void 0?{}:nt).render,yt=mt!==void 0&&mt,Nt=nt.container,at=Nt!==void 0&&Nt,Ft=nt.destination,B=nt.position,X=B===void 0?"afterend":B,he=nt.element,De=he===void 0?"ul":he,Ve=nt.navigation,Be=Ve!==void 0&&Ve,ze=m.sort,lt=ze!==void 0&&ze,Ze=m.placeHolder,Pt=m.maxResults,jt=Pt===void 0?5:Pt,nr=m.resultItem,Bt=(nr=nr===void 0?{}:nr).content,xr=Bt!==void 0&&Bt,Pr=nr.element,gr=Pr===void 0?"li":Pr,Cr=m.noResults,qr=m.highlight,on=qr!==void 0&&qr,Er=m.onSelection,cn=yt?x({container:at,destination:Ft||ue(P),position:X,element:De}):null;this.selector=P,this.data={src:function(){return typeof Z=="function"?Z():Z},key:te,cache:ne},this.query=Ge,this.trigger={event:D,condition:re},this.searchEngine=$e==="loose"?"loose":typeof $e=="function"?$e:"strict",this.threshold=Tt,this.debounce=Ke,this.resultsList={render:yt,view:cn,navigation:Be},this.sort=lt,this.placeHolder=Ze,this.maxResults=jt,this.resultItem={content:xr,element:gr},this.noResults=Cr,this.highlight=on,this.onSelection=Er,this.init()}return function(m,S,P){S&&_(m.prototype,S)}(ie,[{key:"search",value:function(m,S){var P=S.toLowerCase();if(this.searchEngine==="loose"){m=m.replace(/ /g,"");for(var q=[],te=0,Z=0;Z<P.length;Z++){var h=S[Z];te<m.length&&P[Z]===m[te]&&(h=this.highlight?Y(h):h,te++),q.push(h)}return te===m.length&&q.join("")}if(P.includes(m))return m=new RegExp("".concat(m),"i").exec(S),this.highlight?S.replace(m,Y(m)):S}},{key:"listMatchedResults",value:function(m){var S=this;return new Promise(function(P){var q=[];m.filter(function(Z,h){function ne(re){var be=re?Z[re]:Z;if(be){var $e=typeof S.searchEngine=="function"?S.searchEngine(S.queryValue,be):S.search(S.queryValue,be);$e&&re?q.push({key:re,index:h,match:$e,value:Z}):$e&&!re&&q.push({index:h,match:$e,value:Z})}}if(S.data.key){var Ge=!0,me=!1,xe=void 0;try{for(var D,se=S.data.key[Symbol.iterator]();!(Ge=(D=se.next()).done);Ge=!0)ne(D.value)}catch(re){me=!0,xe=re}finally{try{Ge||se.return==null||se.return()}finally{if(me)throw xe}}}else ne()});var te=S.sort?q.sort(S.sort).slice(0,S.maxResults):q.slice(0,S.maxResults);return P({matches:q.length,list:te})})}},{key:"ignite",value:function(){var m=this,S=ue(this.selector);function P(q){Promise.resolve(m.data.cache?m.dataStream:m.data.src()).then(function(te){m.dataStream=te,function(Z){function h(se,re){S.dispatchEvent(new oe.CustomEventWrapper("autoComplete",{bubbles:!0,detail:{event:se,input:ne,query:Ge,matches:re?re.matches:null,results:re?re.list:null},cancelable:!0}))}var ne=S instanceof HTMLInputElement||S instanceof HTMLTextAreaElement?S.value.toLowerCase():S.innerHTML.toLowerCase(),Ge=m.queryValue=m.query&&m.query.manipulate?m.query.manipulate(ne):ne,me=m.resultsList.render,xe=m.trigger.condition?m.trigger.condition(Ge):Ge.length>m.threshold&&Ge.replace(/ /g,"").length;if(me){var D=m.resultsList.view;K(D),xe?m.listMatchedResults(m.dataStream,Z).then(function(se){h(Z,se),m.resultsList.render&&(se.list.length===0&&m.noResults?m.noResults():(ce(D,se.list,m.resultItem),m.onSelection&&(m.resultsList.navigation?m.resultsList.navigation(Z,S,D,m.onSelection,se):function(re,be,$e,dt){function Tt(Nt){yt.classList.remove(C),Ke=Nt===1?yt.nextSibling:yt.previousSibling}function ft(Nt){(yt=Nt).classList.add(C)}var Ke,nt=be.childNodes,mt=nt.length-1,yt=void 0;re.onkeydown=function(Nt){if(0<nt.length)switch(Nt.keyCode){case 38:yt?(Tt(0),ft(Ke||nt[mt])):ft(nt[mt]);break;case 40:yt?(Tt(1),ft(Ke||nt[0])):ft(nt[0]);break;case M:yt&&R(Nt,re,be,$e,dt,yt)}},nt.forEach(function(Nt){Nt.onmousedown=function(at){return R(at,re,be,$e,dt)}})}(S,D,m.onSelection,se))))}):h(Z)}else!me&&xe&&m.listMatchedResults(m.dataStream,Z).then(function(se){h(Z,se)})}(q)})}this.placeHolder&&S.setAttribute("placeholder",this.placeHolder),this.trigger.event.forEach(function(q){S.addEventListener(q,function(te,Z){var h;return function(){var ne=this,Ge=arguments;clearTimeout(h),h=setTimeout(function(){return te.apply(ne,Ge)},Z)}}(function(te){return P(te)},m.debounce))})}},{key:"init",value:function(){var m=this;this.data.cache?Promise.resolve(this.data.src()).then(function(S){m.dataStream=S,m.ignite()}):this.ignite(),oe.initElementClosestPolyfill()}}]),ie}()},ke.exports=A()},,function(ke,de,b){ke.exports=b(185)},function(ke,de,b){var A=b(31),_=b(66),U=b(52);de.a=function(R,p){var G={};return p=Object(U.a)(p,3),Object(_.a)(R,function(C,M,ue){Object(A.a)(G,M,p(C,M,ue))}),G}},function(ke,de,b){},function(ke,de,b){var A;(function(_){var U={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function R(C){return C&&(C=C.toString().replace(U.pluses,"%20"),C=decodeURIComponent(C)),C}function p(C){var M,ue,x,Y,ce,K,oe,ie=[];if(C==null||C==="")return ie;for(C.indexOf("?")===0&&(C=C.substring(1)),M=0,oe=(ue=C.toString().split(U.query_separator)).length;M<oe;M++)(Y=(x=ue[M]).indexOf("="))!==0&&(ce=R(x.substring(0,Y)),K=R(x.substring(Y+1)),ie.push(Y===-1?[x,null]:[ce,K]));return ie}function G(C){this.uriParts=function(M){var ue=U.uri_parser.exec(M||""),x={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach(function(Y,ce){x[Y]=ue[ce]||""}),x}(C),this.queryPairs=p(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(C,M){var ue,x;if(this==null)throw new TypeError(" this is null or not defined");var Y=Object(this),ce=Y.length>>>0;if(typeof C!="function")throw new TypeError(C+" is not a function");for(arguments.length>1&&(ue=M),x=0;x<ce;){var K;x in Y&&(K=Y[x],C.call(ue,K,x,Y)),x++}}),["protocol","userInfo","host","port","path","anchor"].forEach(function(C){G.prototype[C]=function(M){return M!==void 0&&(this.uriParts[C]=M),this.uriParts[C]}}),G.prototype.hasAuthorityPrefix=function(C){return C!==void 0&&(this.hasAuthorityPrefixUserPref=C),this.hasAuthorityPrefixUserPref===null?this.uriParts.source.indexOf("//")!==-1:this.hasAuthorityPrefixUserPref},G.prototype.isColonUri=function(C){if(C===void 0)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!C},G.prototype.query=function(C){var M,ue,x,Y="";for(C!==void 0&&(this.queryPairs=p(C)),M=0,x=this.queryPairs.length;M<x;M++)ue=this.queryPairs[M],Y.length>0&&(Y+="&"),ue[1]===null?Y+=ue[0]:(Y+=ue[0],Y+="=",ue[1]!==void 0&&(Y+=encodeURIComponent(ue[1])));return Y.length>0?"?"+Y:Y},G.prototype.getQueryParamValue=function(C){var M,ue,x;for(ue=0,x=this.queryPairs.length;ue<x;ue++)if(C===(M=this.queryPairs[ue])[0])return M[1]},G.prototype.getQueryParamValues=function(C){var M,ue,x,Y=[];for(M=0,x=this.queryPairs.length;M<x;M++)C===(ue=this.queryPairs[M])[0]&&Y.push(ue[1]);return Y},G.prototype.deleteQueryParam=function(C,M){var ue,x,Y,ce,K,oe=[];for(ue=0,K=this.queryPairs.length;ue<K;ue++)Y=R((x=this.queryPairs[ue])[0])===R(C),ce=x[1]===M,(arguments.length!==1||Y)&&(arguments.length!==2||Y&&ce)||oe.push(x);return this.queryPairs=oe,this},G.prototype.addQueryParam=function(C,M,ue){return arguments.length===3&&ue!==-1?(ue=Math.min(ue,this.queryPairs.length),this.queryPairs.splice(ue,0,[C,M])):arguments.length>0&&this.queryPairs.push([C,M]),this},G.prototype.hasQueryParam=function(C){var M,ue=this.queryPairs.length;for(M=0;M<ue;M++)if(this.queryPairs[M][0]==C)return!0;return!1},G.prototype.replaceQueryParam=function(C,M,ue){var x,Y,ce=-1,K=this.queryPairs.length;if(arguments.length===3){for(x=0;x<K;x++)if(R((Y=this.queryPairs[x])[0])===R(C)&&decodeURIComponent(Y[1])===R(ue)){ce=x;break}ce>=0&&this.deleteQueryParam(C,R(ue)).addQueryParam(C,M,ce)}else{for(x=0;x<K;x++)if(R((Y=this.queryPairs[x])[0])===R(C)){ce=x;break}this.deleteQueryParam(C),this.addQueryParam(C,M,ce)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach(function(C){var M="set"+C.charAt(0).toUpperCase()+C.slice(1);G.prototype[M]=function(ue){return this[C](ue),this}}),G.prototype.scheme=function(){var C="";return this.protocol()?(C+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(C+=":"),C+="//"):this.hasAuthorityPrefix()&&this.host()&&(C+="//"),C},G.prototype.origin=function(){var C=this.scheme();return this.userInfo()&&this.host()&&(C+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(C+="@")),this.host()&&(C+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(C+=":"+this.port())),C},G.prototype.addTrailingSlash=function(){var C=this.path()||"";return C.substr(-1)!=="/"&&this.path(C+"/"),this},G.prototype.toString=function(){var C,M=this.origin();return this.isColonUri()?this.path()&&(M+=":"+this.path()):this.path()?(C=this.path(),U.ends_with_slashes.test(M)||U.starts_with_slashes.test(C)?(M&&M.replace(U.ends_with_slashes,"/"),C=C.replace(U.starts_with_slashes,"/")):M+="/",M+=C):this.host()&&(this.query().toString()||this.anchor())&&(M+="/"),this.query().toString()&&(M+=this.query().toString()),this.anchor()&&(this.anchor().indexOf("#")!==0&&(M+="#"),M+=this.anchor()),M},G.prototype.clone=function(){return new G(this.toString())},(A=(function(){return G}).call(de,b,de,ke))===void 0||(ke.exports=A)})()},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){function A(w){return(A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function _(w,k,ae){return k in w?Object.defineProperty(w,k,{value:ae,enumerable:!0,configurable:!0,writable:!0}):w[k]=ae,w}function U(){return(U=Object.assign||function(w){for(var k=1;k<arguments.length;k++){var ae=arguments[k];for(var Oe in ae)Object.prototype.hasOwnProperty.call(ae,Oe)&&(w[Oe]=ae[Oe])}return w}).apply(this,arguments)}function R(w){for(var k=1;k<arguments.length;k++){var ae=arguments[k]!=null?arguments[k]:{},Oe=Object.keys(ae);typeof Object.getOwnPropertySymbols=="function"&&(Oe=Oe.concat(Object.getOwnPropertySymbols(ae).filter(function(qe){return Object.getOwnPropertyDescriptor(ae,qe).enumerable}))),Oe.forEach(function(qe){_(w,qe,ae[qe])})}return w}function p(w,k){if(w==null)return{};var ae,Oe,qe=function(Ct,kt){if(Ct==null)return{};var Vt,rr,ir={},sr=Object.keys(Ct);for(rr=0;rr<sr.length;rr++)Vt=sr[rr],kt.indexOf(Vt)>=0||(ir[Vt]=Ct[Vt]);return ir}(w,k);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(w);for(Oe=0;Oe<st.length;Oe++)ae=st[Oe],k.indexOf(ae)>=0||Object.prototype.propertyIsEnumerable.call(w,ae)&&(qe[ae]=w[ae])}return qe}function G(w){return function(k){if(Array.isArray(k)){for(var ae=0,Oe=new Array(k.length);ae<k.length;ae++)Oe[ae]=k[ae];return Oe}}(w)||function(k){if(Symbol.iterator in Object(k)||Object.prototype.toString.call(k)==="[object Arguments]")return Array.from(k)}(w)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}b.r(de),b.d(de,"MultiDrag",function(){return Qe}),b.d(de,"Sortable",function(){return Rt}),b.d(de,"Swap",function(){return Un});function C(w){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(w)}var M=C(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ue=C(/Edge/i),x=C(/firefox/i),Y=C(/safari/i)&&!C(/chrome/i)&&!C(/android/i),ce=C(/iP(ad|od|hone)/i),K=C(/chrome/i)&&C(/android/i),oe={capture:!1,passive:!1};function ie(w,k,ae){w.addEventListener(k,ae,!M&&oe)}function m(w,k,ae){w.removeEventListener(k,ae,!M&&oe)}function S(w,k){if(k){if(k[0]===">"&&(k=k.substring(1)),w)try{if(w.matches)return w.matches(k);if(w.msMatchesSelector)return w.msMatchesSelector(k);if(w.webkitMatchesSelector)return w.webkitMatchesSelector(k)}catch{return!1}return!1}}function P(w){return w.host&&w!==document&&w.host.nodeType?w.host:w.parentNode}function q(w,k,ae,Oe){if(w){ae=ae||document;do{if(k!=null&&(k[0]===">"?w.parentNode===ae&&S(w,k):S(w,k))||Oe&&w===ae)return w;if(w===ae)break}while(w=P(w))}return null}var te,Z=/\s+/g;function h(w,k,ae){if(w&&k)if(w.classList)w.classList[ae?"add":"remove"](k);else{var Oe=(" "+w.className+" ").replace(Z," ").replace(" "+k+" "," ");w.className=(Oe+(ae?" "+k:"")).replace(Z," ")}}function ne(w,k,ae){var Oe=w&&w.style;if(Oe){if(ae===void 0)return document.defaultView&&document.defaultView.getComputedStyle?ae=document.defaultView.getComputedStyle(w,""):w.currentStyle&&(ae=w.currentStyle),k===void 0?ae:ae[k];k in Oe||k.indexOf("webkit")!==-1||(k="-webkit-"+k),Oe[k]=ae+(typeof ae=="string"?"":"px")}}function Ge(w,k){var ae="";if(typeof w=="string")ae=w;else do{var Oe=ne(w,"transform");Oe&&Oe!=="none"&&(ae=Oe+" "+ae)}while(!k&&(w=w.parentNode));var qe=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return qe&&new qe(ae)}function me(w,k,ae){if(w){var Oe=w.getElementsByTagName(k),qe=0,st=Oe.length;if(ae)for(;qe<st;qe++)ae(Oe[qe],qe);return Oe}return[]}function xe(){var w=document.scrollingElement;return w||document.documentElement}function D(w,k,ae,Oe,qe){if(w.getBoundingClientRect||w===window){var st,Ct,kt,Vt,rr,ir,sr;if(w!==window&&w!==xe()?(Ct=(st=w.getBoundingClientRect()).top,kt=st.left,Vt=st.bottom,rr=st.right,ir=st.height,sr=st.width):(Ct=0,kt=0,Vt=window.innerHeight,rr=window.innerWidth,ir=window.innerHeight,sr=window.innerWidth),(k||ae)&&w!==window&&(qe=qe||w.parentNode,!M))do if(qe&&qe.getBoundingClientRect&&(ne(qe,"transform")!=="none"||ae&&ne(qe,"position")!=="static")){var Mr=qe.getBoundingClientRect();Ct-=Mr.top+parseInt(ne(qe,"border-top-width")),kt-=Mr.left+parseInt(ne(qe,"border-left-width")),Vt=Ct+st.height,rr=kt+st.width;break}while(qe=qe.parentNode);if(Oe&&w!==window){var Ir=Ge(qe||w),wn=Ir&&Ir.a,un=Ir&&Ir.d;Ir&&(Vt=(Ct/=un)+(ir/=un),rr=(kt/=wn)+(sr/=wn))}return{top:Ct,left:kt,bottom:Vt,right:rr,width:sr,height:ir}}}function se(w,k,ae){for(var Oe=Tt(w,!0),qe=D(w)[k];Oe;){var st=D(Oe)[ae];if(!(qe>=st))return Oe;if(Oe===xe())break;Oe=Tt(Oe,!1)}return!1}function re(w,k,ae){for(var Oe=0,qe=0,st=w.children;qe<st.length;){if(st[qe].style.display!=="none"&&st[qe]!==Rt.ghost&&st[qe]!==Rt.dragged&&q(st[qe],ae.draggable,w,!1)){if(Oe===k)return st[qe];Oe++}qe++}return null}function be(w,k){for(var ae=w.lastElementChild;ae&&(ae===Rt.ghost||ne(ae,"display")==="none"||k&&!S(ae,k));)ae=ae.previousElementSibling;return ae||null}function $e(w,k){var ae=0;if(!w||!w.parentNode)return-1;for(;w=w.previousElementSibling;)w.nodeName.toUpperCase()==="TEMPLATE"||w===Rt.clone||k&&!S(w,k)||ae++;return ae}function dt(w){var k=0,ae=0,Oe=xe();if(w)do{var qe=Ge(w),st=qe.a,Ct=qe.d;k+=w.scrollLeft*st,ae+=w.scrollTop*Ct}while(w!==Oe&&(w=w.parentNode));return[k,ae]}function Tt(w,k){if(!w||!w.getBoundingClientRect)return xe();var ae=w,Oe=!1;do if(ae.clientWidth<ae.scrollWidth||ae.clientHeight<ae.scrollHeight){var qe=ne(ae);if(ae.clientWidth<ae.scrollWidth&&(qe.overflowX=="auto"||qe.overflowX=="scroll")||ae.clientHeight<ae.scrollHeight&&(qe.overflowY=="auto"||qe.overflowY=="scroll")){if(!ae.getBoundingClientRect||ae===document.body)return xe();if(Oe||k)return ae;Oe=!0}}while(ae=ae.parentNode);return xe()}function ft(w,k){return Math.round(w.top)===Math.round(k.top)&&Math.round(w.left)===Math.round(k.left)&&Math.round(w.height)===Math.round(k.height)&&Math.round(w.width)===Math.round(k.width)}function Ke(w,k){return function(){if(!te){var ae=arguments,Oe=this;ae.length===1?w.call(Oe,ae[0]):w.apply(Oe,ae),te=setTimeout(function(){te=void 0},k)}}}function nt(w,k,ae){w.scrollLeft+=k,w.scrollTop+=ae}function mt(w){var k=window.Polymer,ae=window.jQuery||window.Zepto;return k&&k.dom?k.dom(w).cloneNode(!0):ae?ae(w).clone(!0)[0]:w.cloneNode(!0)}function yt(w,k){ne(w,"position","absolute"),ne(w,"top",k.top),ne(w,"left",k.left),ne(w,"width",k.width),ne(w,"height",k.height)}function Nt(w){ne(w,"position",""),ne(w,"top",""),ne(w,"left",""),ne(w,"width",""),ne(w,"height","")}var at="Sortable"+new Date().getTime();function Ft(){var w,k=[];return{captureAnimationState:function(){k=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(ae){if(ne(ae,"display")!=="none"&&ae!==Rt.ghost){k.push({target:ae,rect:D(ae)});var Oe=R({},k[k.length-1].rect);if(ae.thisAnimationDuration){var qe=Ge(ae,!0);qe&&(Oe.top-=qe.f,Oe.left-=qe.e)}ae.fromRect=Oe}})},addAnimationState:function(ae){k.push(ae)},removeAnimationState:function(ae){k.splice(function(Oe,qe){for(var st in Oe)if(Oe.hasOwnProperty(st)){for(var Ct in qe)if(qe.hasOwnProperty(Ct)&&qe[Ct]===Oe[st][Ct])return Number(st)}return-1}(k,{target:ae}),1)},animateAll:function(ae){var Oe=this;if(!this.options.animation)return clearTimeout(w),void(typeof ae=="function"&&ae());var qe=!1,st=0;k.forEach(function(Ct){var kt=0,Vt=Ct.target,rr=Vt.fromRect,ir=D(Vt),sr=Vt.prevFromRect,Mr=Vt.prevToRect,Ir=Ct.rect,wn=Ge(Vt,!0);wn&&(ir.top-=wn.f,ir.left-=wn.e),Vt.toRect=ir,Vt.thisAnimationDuration&&ft(sr,ir)&&!ft(rr,ir)&&(Ir.top-ir.top)/(Ir.left-ir.left)==(rr.top-ir.top)/(rr.left-ir.left)&&(kt=function(un,Zr,Hn,An){return Math.sqrt(Math.pow(Zr.top-un.top,2)+Math.pow(Zr.left-un.left,2))/Math.sqrt(Math.pow(Zr.top-Hn.top,2)+Math.pow(Zr.left-Hn.left,2))*An.animation}(Ir,sr,Mr,Oe.options)),ft(ir,rr)||(Vt.prevFromRect=rr,Vt.prevToRect=ir,kt||(kt=Oe.options.animation),Oe.animate(Vt,Ir,ir,kt)),kt&&(qe=!0,st=Math.max(st,kt),clearTimeout(Vt.animationResetTimer),Vt.animationResetTimer=setTimeout(function(){Vt.animationTime=0,Vt.prevFromRect=null,Vt.fromRect=null,Vt.prevToRect=null,Vt.thisAnimationDuration=null},kt),Vt.thisAnimationDuration=kt)}),clearTimeout(w),qe?w=setTimeout(function(){typeof ae=="function"&&ae()},st):typeof ae=="function"&&ae(),k=[]},animate:function(ae,Oe,qe,st){if(st){ne(ae,"transition",""),ne(ae,"transform","");var Ct=Ge(this.el),kt=Ct&&Ct.a,Vt=Ct&&Ct.d,rr=(Oe.left-qe.left)/(kt||1),ir=(Oe.top-qe.top)/(Vt||1);ae.animatingX=!!rr,ae.animatingY=!!ir,ne(ae,"transform","translate3d("+rr+"px,"+ir+"px,0)"),function(sr){sr.offsetWidth}(ae),ne(ae,"transition","transform "+st+"ms"+(this.options.easing?" "+this.options.easing:"")),ne(ae,"transform","translate3d(0,0,0)"),typeof ae.animated=="number"&&clearTimeout(ae.animated),ae.animated=setTimeout(function(){ne(ae,"transition",""),ne(ae,"transform",""),ae.animated=!1,ae.animatingX=!1,ae.animatingY=!1},st)}}}}var B=[],X={initializeByDefault:!0},he={mount:function(w){for(var k in X)X.hasOwnProperty(k)&&!(k in w)&&(w[k]=X[k]);B.push(w)},pluginEvent:function(w,k,ae){var Oe=this;this.eventCanceled=!1,ae.cancel=function(){Oe.eventCanceled=!0};var qe=w+"Global";B.forEach(function(st){k[st.pluginName]&&(k[st.pluginName][qe]&&k[st.pluginName][qe](R({sortable:k},ae)),k.options[st.pluginName]&&k[st.pluginName][w]&&k[st.pluginName][w](R({sortable:k},ae)))})},initializePlugins:function(w,k,ae,Oe){for(var qe in B.forEach(function(Ct){var kt=Ct.pluginName;if(w.options[kt]||Ct.initializeByDefault){var Vt=new Ct(w,k,w.options);Vt.sortable=w,Vt.options=w.options,w[kt]=Vt,U(ae,Vt.defaults)}}),w.options)if(w.options.hasOwnProperty(qe)){var st=this.modifyOption(w,qe,w.options[qe]);st!==void 0&&(w.options[qe]=st)}},getEventProperties:function(w,k){var ae={};return B.forEach(function(Oe){typeof Oe.eventProperties=="function"&&U(ae,Oe.eventProperties.call(k[Oe.pluginName],w))}),ae},modifyOption:function(w,k,ae){var Oe;return B.forEach(function(qe){w[qe.pluginName]&&qe.optionListeners&&typeof qe.optionListeners[k]=="function"&&(Oe=qe.optionListeners[k].call(w[qe.pluginName],ae))}),Oe}};function De(w){var k=w.sortable,ae=w.rootEl,Oe=w.name,qe=w.targetEl,st=w.cloneEl,Ct=w.toEl,kt=w.fromEl,Vt=w.oldIndex,rr=w.newIndex,ir=w.oldDraggableIndex,sr=w.newDraggableIndex,Mr=w.originalEvent,Ir=w.putSortable,wn=w.extraEventProperties;if(k=k||ae&&ae[at]){var un,Zr=k.options,Hn="on"+Oe.charAt(0).toUpperCase()+Oe.substr(1);!window.CustomEvent||M||ue?(un=document.createEvent("Event")).initEvent(Oe,!0,!0):un=new CustomEvent(Oe,{bubbles:!0,cancelable:!0}),un.to=Ct||ae,un.from=kt||ae,un.item=qe||ae,un.clone=st,un.oldIndex=Vt,un.newIndex=rr,un.oldDraggableIndex=ir,un.newDraggableIndex=sr,un.originalEvent=Mr,un.pullMode=Ir?Ir.lastPutMode:void 0;var An=R({},wn,he.getEventProperties(Oe,k));for(var Re in An)un[Re]=An[Re];ae&&ae.dispatchEvent(un),Zr[Hn]&&Zr[Hn].call(k,un)}}var Ve=function(w,k){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Oe=ae.evt,qe=p(ae,["evt"]);he.pluginEvent.bind(Rt)(w,k,R({dragEl:ze,parentEl:lt,ghostEl:Ze,rootEl:Pt,nextEl:jt,lastDownEl:nr,cloneEl:Bt,cloneHidden:xr,dragStarted:Dr,putSortable:Er,activeSortable:Rt.active,originalEvent:Oe,oldIndex:Pr,oldDraggableIndex:Cr,newIndex:gr,newDraggableIndex:qr,hideGhostForTarget:Je,unhideGhostForTarget:It,cloneNowHidden:function(){xr=!0},cloneNowShown:function(){xr=!1},dispatchSortableEvent:function(st){Be({sortable:k,name:st,originalEvent:Oe})}},qe))};function Be(w){De(R({putSortable:Er,cloneEl:Bt,targetEl:ze,rootEl:Pt,oldIndex:Pr,oldDraggableIndex:Cr,newIndex:gr,newDraggableIndex:qr},w))}var ze,lt,Ze,Pt,jt,nr,Bt,xr,Pr,gr,Cr,qr,on,Er,cn,Vr,dn,vr,lr,gn,Dr,br,hn,sn,Sr,Yr=!1,kr=!1,Wn=[],Jn=!1,ln=!1,Zn=[],xn=!1,Cn=[],Sn=typeof document<"u",mn=ce,je=ue||M?"cssFloat":"float",Fe=Sn&&!K&&!ce&&"draggable"in document.createElement("div"),Ie=function(){if(Sn){if(M)return!1;var w=document.createElement("x");return w.style.cssText="pointer-events:auto",w.style.pointerEvents==="auto"}}(),Ee=function(w,k){var ae=ne(w),Oe=parseInt(ae.width)-parseInt(ae.paddingLeft)-parseInt(ae.paddingRight)-parseInt(ae.borderLeftWidth)-parseInt(ae.borderRightWidth),qe=re(w,0,k),st=re(w,1,k),Ct=qe&&ne(qe),kt=st&&ne(st),Vt=Ct&&parseInt(Ct.marginLeft)+parseInt(Ct.marginRight)+D(qe).width,rr=kt&&parseInt(kt.marginLeft)+parseInt(kt.marginRight)+D(st).width;if(ae.display==="flex")return ae.flexDirection==="column"||ae.flexDirection==="column-reverse"?"vertical":"horizontal";if(ae.display==="grid")return ae.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(qe&&Ct.float&&Ct.float!=="none"){var ir=Ct.float==="left"?"left":"right";return!st||kt.clear!=="both"&&kt.clear!==ir?"horizontal":"vertical"}return qe&&(Ct.display==="block"||Ct.display==="flex"||Ct.display==="table"||Ct.display==="grid"||Vt>=Oe&&ae[je]==="none"||st&&ae[je]==="none"&&Vt+rr>Oe)?"vertical":"horizontal"},Te=function(w){function k(qe,st){return function(Ct,kt,Vt,rr){var ir=Ct.options.group.name&&kt.options.group.name&&Ct.options.group.name===kt.options.group.name;if(qe==null&&(st||ir))return!0;if(qe==null||qe===!1)return!1;if(st&&qe==="clone")return qe;if(typeof qe=="function")return k(qe(Ct,kt,Vt,rr),st)(Ct,kt,Vt,rr);var sr=(st?Ct:kt).options.group.name;return qe===!0||typeof qe=="string"&&qe===sr||qe.join&&qe.indexOf(sr)>-1}}var ae={},Oe=w.group;Oe&&A(Oe)=="object"||(Oe={name:Oe}),ae.name=Oe.name,ae.checkPull=k(Oe.pull,!0),ae.checkPut=k(Oe.put),ae.revertClone=Oe.revertClone,w.group=ae},Je=function(){!Ie&&Ze&&ne(Ze,"display","none")},It=function(){!Ie&&Ze&&ne(Ze,"display","")};Sn&&document.addEventListener("click",function(w){if(kr)return w.preventDefault(),w.stopPropagation&&w.stopPropagation(),w.stopImmediatePropagation&&w.stopImmediatePropagation(),kr=!1,!1},!0);var wt=function(w){if(ze){w=w.touches?w.touches[0]:w;var k=(qe=w.clientX,st=w.clientY,Wn.some(function(kt){if(!be(kt)){var Vt=D(kt),rr=kt[at].options.emptyInsertThreshold,ir=qe>=Vt.left-rr&&qe<=Vt.right+rr,sr=st>=Vt.top-rr&&st<=Vt.bottom+rr;return rr&&ir&&sr?Ct=kt:void 0}}),Ct);if(k){var ae={};for(var Oe in w)w.hasOwnProperty(Oe)&&(ae[Oe]=w[Oe]);ae.target=ae.rootEl=k,ae.preventDefault=void 0,ae.stopPropagation=void 0,k[at]._onDragOver(ae)}}var qe,st,Ct},Ot=function(w){ze&&ze.parentNode[at]._isOutsideThisEl(w.target)};function Rt(w,k){if(!w||!w.nodeType||w.nodeType!==1)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(w));this.el=w,this.options=k=U({},k),w[at]=this;var ae={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(w.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ee(w,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(st,Ct){st.setData("Text",Ct.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Rt.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};for(var Oe in he.initializePlugins(this,w,ae),ae)!(Oe in k)&&(k[Oe]=ae[Oe]);for(var qe in Te(k),this)qe.charAt(0)==="_"&&typeof this[qe]=="function"&&(this[qe]=this[qe].bind(this));this.nativeDraggable=!k.forceFallback&&Fe,this.nativeDraggable&&(this.options.touchStartThreshold=1),k.supportPointer?ie(w,"pointerdown",this._onTapStart):(ie(w,"mousedown",this._onTapStart),ie(w,"touchstart",this._onTapStart)),this.nativeDraggable&&(ie(w,"dragover",this),ie(w,"dragenter",this)),Wn.push(this.el),k.store&&k.store.get&&this.sort(k.store.get(this)||[]),U(this,Ft())}function tr(w,k,ae,Oe,qe,st,Ct,kt){var Vt,rr,ir=w[at],sr=ir.options.onMove;return!window.CustomEvent||M||ue?(Vt=document.createEvent("Event")).initEvent("move",!0,!0):Vt=new CustomEvent("move",{bubbles:!0,cancelable:!0}),Vt.to=k,Vt.from=w,Vt.dragged=ae,Vt.draggedRect=Oe,Vt.related=qe||k,Vt.relatedRect=st||D(k),Vt.willInsertAfter=kt,Vt.originalEvent=Ct,w.dispatchEvent(Vt),sr&&(rr=sr.call(ir,Vt,Ct)),rr}function cr(w){w.draggable=!1}function mr(){xn=!1}function Wr(w){for(var k=w.tagName+w.className+w.src+w.href+w.textContent,ae=k.length,Oe=0;ae--;)Oe+=k.charCodeAt(ae);return Oe.toString(36)}function Br(w){return setTimeout(w,0)}function Rr(w){return clearTimeout(w)}Rt.prototype={constructor:Rt,_isOutsideThisEl:function(w){this.el.contains(w)||w===this.el||(br=null)},_getDirection:function(w,k){return typeof this.options.direction=="function"?this.options.direction.call(this,w,k,ze):this.options.direction},_onTapStart:function(w){if(w.cancelable){var k=this,ae=this.el,Oe=this.options,qe=Oe.preventOnFilter,st=w.type,Ct=w.touches&&w.touches[0]||w.pointerType&&w.pointerType==="touch"&&w,kt=(Ct||w).target,Vt=w.target.shadowRoot&&(w.path&&w.path[0]||w.composedPath&&w.composedPath()[0])||kt,rr=Oe.filter;if(function(ir){Cn.length=0;for(var sr=ir.getElementsByTagName("input"),Mr=sr.length;Mr--;){var Ir=sr[Mr];Ir.checked&&Cn.push(Ir)}}(ae),!ze&&!(/mousedown|pointerdown/.test(st)&&w.button!==0||Oe.disabled||Vt.isContentEditable||(kt=q(kt,Oe.draggable,ae,!1))&&kt.animated||nr===kt)){if(Pr=$e(kt),Cr=$e(kt,Oe.draggable),typeof rr=="function"){if(rr.call(this,w,kt,this))return Be({sortable:k,rootEl:Vt,name:"filter",targetEl:kt,toEl:ae,fromEl:ae}),Ve("filter",k,{evt:w}),void(qe&&w.cancelable&&w.preventDefault())}else if(rr&&(rr=rr.split(",").some(function(ir){if(ir=q(Vt,ir.trim(),ae,!1))return Be({sortable:k,rootEl:ir,name:"filter",targetEl:kt,fromEl:ae,toEl:ae}),Ve("filter",k,{evt:w}),!0})))return void(qe&&w.cancelable&&w.preventDefault());Oe.handle&&!q(Vt,Oe.handle,ae,!1)||this._prepareDragStart(w,Ct,kt)}}},_prepareDragStart:function(w,k,ae){var Oe,qe=this,st=qe.el,Ct=qe.options,kt=st.ownerDocument;if(ae&&!ze&&ae.parentNode===st){var Vt=D(ae);if(Pt=st,lt=(ze=ae).parentNode,jt=ze.nextSibling,nr=ae,on=Ct.group,Rt.dragged=ze,cn={target:ze,clientX:(k||w).clientX,clientY:(k||w).clientY},lr=cn.clientX-Vt.left,gn=cn.clientY-Vt.top,this._lastX=(k||w).clientX,this._lastY=(k||w).clientY,ze.style["will-change"]="all",Oe=function(){Ve("delayEnded",qe,{evt:w}),Rt.eventCanceled?qe._onDrop():(qe._disableDelayedDragEvents(),!x&&qe.nativeDraggable&&(ze.draggable=!0),qe._triggerDragStart(w,k),Be({sortable:qe,name:"choose",originalEvent:w}),h(ze,Ct.chosenClass,!0))},Ct.ignore.split(",").forEach(function(rr){me(ze,rr.trim(),cr)}),ie(kt,"dragover",wt),ie(kt,"mousemove",wt),ie(kt,"touchmove",wt),ie(kt,"mouseup",qe._onDrop),ie(kt,"touchend",qe._onDrop),ie(kt,"touchcancel",qe._onDrop),x&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ze.draggable=!0),Ve("delayStart",this,{evt:w}),!Ct.delay||Ct.delayOnTouchOnly&&!k||this.nativeDraggable&&(ue||M))Oe();else{if(Rt.eventCanceled)return void this._onDrop();ie(kt,"mouseup",qe._disableDelayedDrag),ie(kt,"touchend",qe._disableDelayedDrag),ie(kt,"touchcancel",qe._disableDelayedDrag),ie(kt,"mousemove",qe._delayedDragTouchMoveHandler),ie(kt,"touchmove",qe._delayedDragTouchMoveHandler),Ct.supportPointer&&ie(kt,"pointermove",qe._delayedDragTouchMoveHandler),qe._dragStartTimer=setTimeout(Oe,Ct.delay)}}},_delayedDragTouchMoveHandler:function(w){var k=w.touches?w.touches[0]:w;Math.max(Math.abs(k.clientX-this._lastX),Math.abs(k.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ze&&cr(ze),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var w=this.el.ownerDocument;m(w,"mouseup",this._disableDelayedDrag),m(w,"touchend",this._disableDelayedDrag),m(w,"touchcancel",this._disableDelayedDrag),m(w,"mousemove",this._delayedDragTouchMoveHandler),m(w,"touchmove",this._delayedDragTouchMoveHandler),m(w,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(w,k){k=k||w.pointerType=="touch"&&w,!this.nativeDraggable||k?this.options.supportPointer?ie(document,"pointermove",this._onTouchMove):ie(document,k?"touchmove":"mousemove",this._onTouchMove):(ie(ze,"dragend",this),ie(Pt,"dragstart",this._onDragStart));try{document.selection?Br(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(w,k){if(Yr=!1,Pt&&ze){Ve("dragStarted",this,{evt:k}),this.nativeDraggable&&ie(document,"dragover",Ot);var ae=this.options;!w&&h(ze,ae.dragClass,!1),h(ze,ae.ghostClass,!0),Rt.active=this,w&&this._appendGhost(),Be({sortable:this,name:"start",originalEvent:k})}else this._nulling()},_emulateDragOver:function(){if(Vr){this._lastX=Vr.clientX,this._lastY=Vr.clientY,Je();for(var w=document.elementFromPoint(Vr.clientX,Vr.clientY),k=w;w&&w.shadowRoot&&(w=w.shadowRoot.elementFromPoint(Vr.clientX,Vr.clientY))!==k;)k=w;if(ze.parentNode[at]._isOutsideThisEl(w),k)do{if(k[at]&&k[at]._onDragOver({clientX:Vr.clientX,clientY:Vr.clientY,target:w,rootEl:k})&&!this.options.dragoverBubble)break;w=k}while(k=k.parentNode);It()}},_onTouchMove:function(w){if(cn){var k=this.options,ae=k.fallbackTolerance,Oe=k.fallbackOffset,qe=w.touches?w.touches[0]:w,st=Ze&&Ge(Ze,!0),Ct=Ze&&st&&st.a,kt=Ze&&st&&st.d,Vt=mn&&Sr&&dt(Sr),rr=(qe.clientX-cn.clientX+Oe.x)/(Ct||1)+(Vt?Vt[0]-Zn[0]:0)/(Ct||1),ir=(qe.clientY-cn.clientY+Oe.y)/(kt||1)+(Vt?Vt[1]-Zn[1]:0)/(kt||1);if(!Rt.active&&!Yr){if(ae&&Math.max(Math.abs(qe.clientX-this._lastX),Math.abs(qe.clientY-this._lastY))<ae)return;this._onDragStart(w,!0)}if(Ze){st?(st.e+=rr-(dn||0),st.f+=ir-(vr||0)):st={a:1,b:0,c:0,d:1,e:rr,f:ir};var sr="matrix(".concat(st.a,",").concat(st.b,",").concat(st.c,",").concat(st.d,",").concat(st.e,",").concat(st.f,")");ne(Ze,"webkitTransform",sr),ne(Ze,"mozTransform",sr),ne(Ze,"msTransform",sr),ne(Ze,"transform",sr),dn=rr,vr=ir,Vr=qe}w.cancelable&&w.preventDefault()}},_appendGhost:function(){if(!Ze){var w=this.options.fallbackOnBody?document.body:Pt,k=D(ze,!0,mn,!0,w),ae=this.options;if(mn){for(Sr=w;ne(Sr,"position")==="static"&&ne(Sr,"transform")==="none"&&Sr!==document;)Sr=Sr.parentNode;Sr!==document.body&&Sr!==document.documentElement?(Sr===document&&(Sr=xe()),k.top+=Sr.scrollTop,k.left+=Sr.scrollLeft):Sr=xe(),Zn=dt(Sr)}h(Ze=ze.cloneNode(!0),ae.ghostClass,!1),h(Ze,ae.fallbackClass,!0),h(Ze,ae.dragClass,!0),ne(Ze,"transition",""),ne(Ze,"transform",""),ne(Ze,"box-sizing","border-box"),ne(Ze,"margin",0),ne(Ze,"top",k.top),ne(Ze,"left",k.left),ne(Ze,"width",k.width),ne(Ze,"height",k.height),ne(Ze,"opacity","0.8"),ne(Ze,"position",mn?"absolute":"fixed"),ne(Ze,"zIndex","100000"),ne(Ze,"pointerEvents","none"),Rt.ghost=Ze,w.appendChild(Ze),ne(Ze,"transform-origin",lr/parseInt(Ze.style.width)*100+"% "+gn/parseInt(Ze.style.height)*100+"%")}},_onDragStart:function(w,k){var ae=this,Oe=w.dataTransfer,qe=ae.options;Ve("dragStart",this,{evt:w}),Rt.eventCanceled?this._onDrop():(Ve("setupClone",this),Rt.eventCanceled||((Bt=mt(ze)).draggable=!1,Bt.style["will-change"]="",this._hideClone(),h(Bt,this.options.chosenClass,!1),Rt.clone=Bt),ae.cloneId=Br(function(){Ve("clone",ae),Rt.eventCanceled||(ae.options.removeCloneOnHide||Pt.insertBefore(Bt,ze),ae._hideClone(),Be({sortable:ae,name:"clone"}))}),!k&&h(ze,qe.dragClass,!0),k?(kr=!0,ae._loopId=setInterval(ae._emulateDragOver,50)):(m(document,"mouseup",ae._onDrop),m(document,"touchend",ae._onDrop),m(document,"touchcancel",ae._onDrop),Oe&&(Oe.effectAllowed="move",qe.setData&&qe.setData.call(ae,Oe,ze)),ie(document,"drop",ae),ne(ze,"transform","translateZ(0)")),Yr=!0,ae._dragStartId=Br(ae._dragStarted.bind(ae,k,w)),ie(document,"selectstart",ae),Dr=!0,Y&&ne(document.body,"user-select","none"))},_onDragOver:function(w){var k,ae,Oe,qe,st=this.el,Ct=w.target,kt=this.options,Vt=kt.group,rr=Rt.active,ir=on===Vt,sr=kt.sort,Mr=Er||rr,Ir=this,wn=!1;if(!xn){if(w.preventDefault!==void 0&&w.cancelable&&w.preventDefault(),Ct=q(Ct,kt.draggable,st,!0),$("dragOver"),Rt.eventCanceled)return wn;if(ze.contains(w.target)||Ct.animated&&Ct.animatingX&&Ct.animatingY||Ir._ignoreWhileAnimating===Ct)return We(!1);if(kr=!1,rr&&!kt.disabled&&(ir?sr||(Oe=!Pt.contains(ze)):Er===this||(this.lastPutMode=on.checkPull(this,rr,ze,w))&&Vt.checkPut(this,rr,ze,w))){if(qe=this._getDirection(w,Ct)==="vertical",k=D(ze),$("dragOverValid"),Rt.eventCanceled)return wn;if(Oe)return lt=Pt,pe(),this._hideClone(),$("revert"),Rt.eventCanceled||(jt?Pt.insertBefore(ze,jt):Pt.appendChild(ze)),We(!0);var un=be(st,kt.draggable);if(!un||function(n,c,E){var T=D(be(E.el,E.options.draggable));return c?n.clientX>T.right+10||n.clientX<=T.right&&n.clientY>T.bottom&&n.clientX>=T.left:n.clientX>T.right&&n.clientY>T.top||n.clientX<=T.right&&n.clientY>T.bottom+10}(w,qe,this)&&!un.animated){if(un===ze)return We(!1);if(un&&st===w.target&&(Ct=un),Ct&&(ae=D(Ct)),tr(Pt,st,ze,k,Ct,ae,w,!!Ct)!==!1)return pe(),st.appendChild(ze),lt=st,_e(),We(!0)}else if(Ct.parentNode===st){ae=D(Ct);var Zr,Hn,An,Re=ze.parentNode!==st,Ae=!function(n,c,E){var T=E?n.left:n.top,W=E?n.right:n.bottom,V=E?n.width:n.height,fe=E?c.left:c.top,Pe=E?c.right:c.bottom,He=E?c.width:c.height;return T===fe||W===Pe||T+V/2===fe+He/2}(ze.animated&&ze.toRect||k,Ct.animated&&Ct.toRect||ae,qe),r=qe?"top":"left",a=se(Ct,"top","top")||se(ze,"top","top"),d=a?a.scrollTop:void 0;if(br!==Ct&&(Hn=ae[r],Jn=!1,ln=!Ae&&kt.invertSwap||Re),(Zr=function(n,c,E,T,W,V,fe,Pe){var He=T?n.clientY:n.clientX,et=T?E.height:E.width,Et=T?E.top:E.left,Dt=T?E.bottom:E.right,St=!1;if(!fe){if(Pe&&sn<et*W){if(!Jn&&(hn===1?He>Et+et*V/2:He<Dt-et*V/2)&&(Jn=!0),Jn)St=!0;else if(hn===1?He<Et+sn:He>Dt-sn)return-hn}else if(He>Et+et*(1-W)/2&&He<Dt-et*(1-W)/2)return function(At){return $e(ze)<$e(At)?1:-1}(c)}return(St=St||fe)&&(He<Et+et*V/2||He>Dt-et*V/2)?He>Et+et/2?1:-1:0}(w,Ct,ae,qe,Ae?1:kt.swapThreshold,kt.invertedSwapThreshold==null?kt.swapThreshold:kt.invertedSwapThreshold,ln,br===Ct))!==0){var g=$e(ze);do g-=Zr,An=lt.children[g];while(An&&(ne(An,"display")==="none"||An===Ze))}if(Zr===0||An===Ct)return We(!1);br=Ct,hn=Zr;var N=Ct.nextElementSibling,L=!1,I=tr(Pt,st,ze,k,Ct,ae,w,L=Zr===1);if(I!==!1)return I!==1&&I!==-1||(L=I===1),xn=!0,setTimeout(mr,30),pe(),L&&!N?st.appendChild(ze):Ct.parentNode.insertBefore(ze,L?N:Ct),a&&nt(a,0,d-a.scrollTop),lt=ze.parentNode,Hn===void 0||ln||(sn=Math.abs(Hn-D(Ct)[r])),_e(),We(!0)}if(st.contains(ze))return We(!1)}return!1}function $(n,c){Ve(n,Ir,R({evt:w,isOwner:ir,axis:qe?"vertical":"horizontal",revert:Oe,dragRect:k,targetRect:ae,canSort:sr,fromSortable:Mr,target:Ct,completed:We,onMove:function(E,T){return tr(Pt,st,ze,k,E,D(E),w,T)},changed:_e},c))}function pe(){$("dragOverAnimationCapture"),Ir.captureAnimationState(),Ir!==Mr&&Mr.captureAnimationState()}function We(n){return $("dragOverCompleted",{insertion:n}),n&&(ir?rr._hideClone():rr._showClone(Ir),Ir!==Mr&&(h(ze,Er?Er.options.ghostClass:rr.options.ghostClass,!1),h(ze,kt.ghostClass,!0)),Er!==Ir&&Ir!==Rt.active?Er=Ir:Ir===Rt.active&&Er&&(Er=null),Mr===Ir&&(Ir._ignoreWhileAnimating=Ct),Ir.animateAll(function(){$("dragOverAnimationComplete"),Ir._ignoreWhileAnimating=null}),Ir!==Mr&&(Mr.animateAll(),Mr._ignoreWhileAnimating=null)),(Ct===ze&&!ze.animated||Ct===st&&!Ct.animated)&&(br=null),kt.dragoverBubble||w.rootEl||Ct===document||(ze.parentNode[at]._isOutsideThisEl(w.target),!n&&wt(w)),!kt.dragoverBubble&&w.stopPropagation&&w.stopPropagation(),wn=!0}function _e(){gr=$e(ze),qr=$e(ze,kt.draggable),Be({sortable:Ir,name:"change",toEl:st,newIndex:gr,newDraggableIndex:qr,originalEvent:w})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",wt),m(document,"mousemove",wt),m(document,"touchmove",wt)},_offUpEvents:function(){var w=this.el.ownerDocument;m(w,"mouseup",this._onDrop),m(w,"touchend",this._onDrop),m(w,"pointerup",this._onDrop),m(w,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(w){var k=this.el,ae=this.options;gr=$e(ze),qr=$e(ze,ae.draggable),Ve("drop",this,{evt:w}),lt=ze&&ze.parentNode,gr=$e(ze),qr=$e(ze,ae.draggable),Rt.eventCanceled||(Yr=!1,ln=!1,Jn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Rr(this.cloneId),Rr(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(k,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Y&&ne(document.body,"user-select",""),ne(ze,"transform",""),w&&(Dr&&(w.cancelable&&w.preventDefault(),!ae.dropBubble&&w.stopPropagation()),Ze&&Ze.parentNode&&Ze.parentNode.removeChild(Ze),(Pt===lt||Er&&Er.lastPutMode!=="clone")&&Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),ze&&(this.nativeDraggable&&m(ze,"dragend",this),cr(ze),ze.style["will-change"]="",Dr&&!Yr&&h(ze,Er?Er.options.ghostClass:this.options.ghostClass,!1),h(ze,this.options.chosenClass,!1),Be({sortable:this,name:"unchoose",toEl:lt,newIndex:null,newDraggableIndex:null,originalEvent:w}),Pt!==lt?(gr>=0&&(Be({rootEl:lt,name:"add",toEl:lt,fromEl:Pt,originalEvent:w}),Be({sortable:this,name:"remove",toEl:lt,originalEvent:w}),Be({rootEl:lt,name:"sort",toEl:lt,fromEl:Pt,originalEvent:w}),Be({sortable:this,name:"sort",toEl:lt,originalEvent:w})),Er&&Er.save()):gr!==Pr&&gr>=0&&(Be({sortable:this,name:"update",toEl:lt,originalEvent:w}),Be({sortable:this,name:"sort",toEl:lt,originalEvent:w})),Rt.active&&(gr!=null&&gr!==-1||(gr=Pr,qr=Cr),Be({sortable:this,name:"end",toEl:lt,originalEvent:w}),this.save())))),this._nulling()},_nulling:function(){Ve("nulling",this),Pt=ze=lt=Ze=jt=Bt=nr=xr=cn=Vr=Dr=gr=qr=Pr=Cr=br=hn=Er=on=Rt.dragged=Rt.ghost=Rt.clone=Rt.active=null,Cn.forEach(function(w){w.checked=!0}),Cn.length=dn=vr=0},handleEvent:function(w){switch(w.type){case"drop":case"dragend":this._onDrop(w);break;case"dragenter":case"dragover":ze&&(this._onDragOver(w),function(k){k.dataTransfer&&(k.dataTransfer.dropEffect="move"),k.cancelable&&k.preventDefault()}(w));break;case"selectstart":w.preventDefault()}},toArray:function(){for(var w,k=[],ae=this.el.children,Oe=0,qe=ae.length,st=this.options;Oe<qe;Oe++)q(w=ae[Oe],st.draggable,this.el,!1)&&k.push(w.getAttribute(st.dataIdAttr)||Wr(w));return k},sort:function(w){var k={},ae=this.el;this.toArray().forEach(function(Oe,qe){var st=ae.children[qe];q(st,this.options.draggable,ae,!1)&&(k[Oe]=st)},this),w.forEach(function(Oe){k[Oe]&&(ae.removeChild(k[Oe]),ae.appendChild(k[Oe]))})},save:function(){var w=this.options.store;w&&w.set&&w.set(this)},closest:function(w,k){return q(w,k||this.options.draggable,this.el,!1)},option:function(w,k){var ae=this.options;if(k===void 0)return ae[w];var Oe=he.modifyOption(this,w,k);ae[w]=Oe!==void 0?Oe:k,w==="group"&&Te(ae)},destroy:function(){Ve("destroy",this);var w=this.el;w[at]=null,m(w,"mousedown",this._onTapStart),m(w,"touchstart",this._onTapStart),m(w,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(w,"dragover",this),m(w,"dragenter",this)),Array.prototype.forEach.call(w.querySelectorAll("[draggable]"),function(k){k.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Wn.splice(Wn.indexOf(this.el),1),this.el=w=null},_hideClone:function(){if(!xr){if(Ve("hideClone",this),Rt.eventCanceled)return;ne(Bt,"display","none"),this.options.removeCloneOnHide&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),xr=!0}},_showClone:function(w){if(w.lastPutMode==="clone"){if(xr){if(Ve("showClone",this),Rt.eventCanceled)return;Pt.contains(ze)&&!this.options.group.revertClone?Pt.insertBefore(Bt,ze):jt?Pt.insertBefore(Bt,jt):Pt.appendChild(Bt),this.options.group.revertClone&&this.animate(ze,Bt),ne(Bt,"display",""),xr=!1}}else this._hideClone()}},Sn&&ie(document,"touchmove",function(w){(Rt.active||Yr)&&w.cancelable&&w.preventDefault()}),Rt.utils={on:ie,off:m,css:ne,find:me,is:function(w,k){return!!q(w,k,w,!1)},extend:function(w,k){if(w&&k)for(var ae in k)k.hasOwnProperty(ae)&&(w[ae]=k[ae]);return w},throttle:Ke,closest:q,toggleClass:h,clone:mt,index:$e,nextTick:Br,cancelNextTick:Rr,detectDirection:Ee,getChild:re},Rt.get=function(w){return w[at]},Rt.mount=function(){for(var w=arguments.length,k=new Array(w),ae=0;ae<w;ae++)k[ae]=arguments[ae];k[0].constructor===Array&&(k=k[0]),k.forEach(function(Oe){if(!Oe.prototype||!Oe.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(Oe));Oe.utils&&(Rt.utils=R({},Rt.utils,Oe.utils)),he.mount(Oe)})},Rt.create=function(w,k){return new Rt(w,k)},Rt.version="1.10.2";var tn,yr,Kt,pn,ge,Ue,pt=[],it=!1;function Qt(){pt.forEach(function(w){clearInterval(w.pid)}),pt=[]}function ur(){clearInterval(Ue)}var gt,Ht=Ke(function(w,k,ae,Oe){if(k.scroll){var qe,st=(w.touches?w.touches[0]:w).clientX,Ct=(w.touches?w.touches[0]:w).clientY,kt=k.scrollSensitivity,Vt=k.scrollSpeed,rr=xe(),ir=!1;yr!==ae&&(yr=ae,Qt(),tn=k.scroll,qe=k.scrollFn,tn===!0&&(tn=Tt(ae,!0)));var sr=0,Mr=tn;do{var Ir=Mr,wn=D(Ir),un=wn.top,Zr=wn.bottom,Hn=wn.left,An=wn.right,Re=wn.width,Ae=wn.height,r=void 0,a=void 0,d=Ir.scrollWidth,g=Ir.scrollHeight,N=ne(Ir),L=Ir.scrollLeft,I=Ir.scrollTop;Ir===rr?(r=Re<d&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),a=Ae<g&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(r=Re<d&&(N.overflowX==="auto"||N.overflowX==="scroll"),a=Ae<g&&(N.overflowY==="auto"||N.overflowY==="scroll"));var $=r&&(Math.abs(An-st)<=kt&&L+Re<d)-(Math.abs(Hn-st)<=kt&&!!L),pe=a&&(Math.abs(Zr-Ct)<=kt&&I+Ae<g)-(Math.abs(un-Ct)<=kt&&!!I);if(!pt[sr])for(var We=0;We<=sr;We++)pt[We]||(pt[We]={});pt[sr].vx==$&&pt[sr].vy==pe&&pt[sr].el===Ir||(pt[sr].el=Ir,pt[sr].vx=$,pt[sr].vy=pe,clearInterval(pt[sr].pid),$==0&&pe==0||(ir=!0,pt[sr].pid=setInterval((function(){Oe&&this.layer===0&&Rt.active._onTouchMove(ge);var _e=pt[this.layer].vy?pt[this.layer].vy*Vt:0,n=pt[this.layer].vx?pt[this.layer].vx*Vt:0;typeof qe=="function"&&qe.call(Rt.dragged.parentNode[at],n,_e,w,ge,pt[this.layer].el)!=="continue"||nt(pt[this.layer].el,n,_e)}).bind({layer:sr}),24))),sr++}while(k.bubbleScroll&&Mr!==rr&&(Mr=Tt(Mr,!1)));it=ir}},30),Ut=function(w){var k=w.originalEvent,ae=w.putSortable,Oe=w.dragEl,qe=w.activeSortable,st=w.dispatchSortableEvent,Ct=w.hideGhostForTarget,kt=w.unhideGhostForTarget;if(k){var Vt=ae||qe;Ct();var rr=k.changedTouches&&k.changedTouches.length?k.changedTouches[0]:k,ir=document.elementFromPoint(rr.clientX,rr.clientY);kt(),Vt&&!Vt.el.contains(ir)&&(st("spill"),this.onSpill({dragEl:Oe,putSortable:ae}))}};function Gr(){}function Ur(){}function Un(){function w(){this.defaults={swapClass:"sortable-swap-highlight"}}return w.prototype={dragStart:function(k){var ae=k.dragEl;gt=ae},dragOverValid:function(k){var ae=k.completed,Oe=k.target,qe=k.onMove,st=k.activeSortable,Ct=k.changed,kt=k.cancel;if(st.options.swap){var Vt=this.sortable.el,rr=this.options;if(Oe&&Oe!==Vt){var ir=gt;qe(Oe)!==!1?(h(Oe,rr.swapClass,!0),gt=Oe):gt=null,ir&&ir!==gt&&h(ir,rr.swapClass,!1)}Ct(),ae(!0),kt()}},drop:function(k){var ae=k.activeSortable,Oe=k.putSortable,qe=k.dragEl,st=Oe||this.sortable,Ct=this.options;gt&&h(gt,Ct.swapClass,!1),gt&&(Ct.swap||Oe&&Oe.options.swap)&&qe!==gt&&(st.captureAnimationState(),st!==ae&&ae.captureAnimationState(),function(kt,Vt){var rr,ir,sr=kt.parentNode,Mr=Vt.parentNode;!sr||!Mr||sr.isEqualNode(Vt)||Mr.isEqualNode(kt)||(rr=$e(kt),ir=$e(Vt),sr.isEqualNode(Mr)&&rr<ir&&ir++,sr.insertBefore(Vt,sr.children[rr]),Mr.insertBefore(kt,Mr.children[ir]))}(qe,gt),st.animateAll(),st!==ae&&ae.animateAll())},nulling:function(){gt=null}},U(w,{pluginName:"swap",eventProperties:function(){return{swapItem:gt}}})}Gr.prototype={startIndex:null,dragStart:function(w){var k=w.oldDraggableIndex;this.startIndex=k},onSpill:function(w){var k=w.dragEl,ae=w.putSortable;this.sortable.captureAnimationState(),ae&&ae.captureAnimationState();var Oe=re(this.sortable.el,this.startIndex,this.options);Oe?this.sortable.el.insertBefore(k,Oe):this.sortable.el.appendChild(k),this.sortable.animateAll(),ae&&ae.animateAll()},drop:Ut},U(Gr,{pluginName:"revertOnSpill"}),Ur.prototype={onSpill:function(w){var k=w.dragEl,ae=w.putSortable||this.sortable;ae.captureAnimationState(),k.parentNode&&k.parentNode.removeChild(k),ae.animateAll()},drop:Ut},U(Ur,{pluginName:"removeOnSpill"});var ei,ar,Lr,Fn,Ye,ye=[],Le=[],J=!1,H=!1,Se=!1;function Qe(){function w(k){for(var ae in this)ae.charAt(0)==="_"&&typeof this[ae]=="function"&&(this[ae]=this[ae].bind(this));k.options.supportPointer?ie(document,"pointerup",this._deselectMultiDrag):(ie(document,"mouseup",this._deselectMultiDrag),ie(document,"touchend",this._deselectMultiDrag)),ie(document,"keydown",this._checkKeyDown),ie(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(Oe,qe){var st="";ye.length&&ar===k?ye.forEach(function(Ct,kt){st+=(kt?", ":"")+Ct.textContent}):st=qe.textContent,Oe.setData("Text",st)}}}return w.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(k){var ae=k.dragEl;Lr=ae},delayEnded:function(){this.isMultiDrag=~ye.indexOf(Lr)},setupClone:function(k){var ae=k.sortable,Oe=k.cancel;if(this.isMultiDrag){for(var qe=0;qe<ye.length;qe++)Le.push(mt(ye[qe])),Le[qe].sortableIndex=ye[qe].sortableIndex,Le[qe].draggable=!1,Le[qe].style["will-change"]="",h(Le[qe],this.options.selectedClass,!1),ye[qe]===Lr&&h(Le[qe],this.options.chosenClass,!1);ae._hideClone(),Oe()}},clone:function(k){var ae=k.sortable,Oe=k.rootEl,qe=k.dispatchSortableEvent,st=k.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ye.length&&ar===ae&&(ct(!0,Oe),qe("clone"),st()))},showClone:function(k){var ae=k.cloneNowShown,Oe=k.rootEl,qe=k.cancel;this.isMultiDrag&&(ct(!1,Oe),Le.forEach(function(st){ne(st,"display","")}),ae(),Ye=!1,qe())},hideClone:function(k){var ae=this,Oe=(k.sortable,k.cloneNowHidden),qe=k.cancel;this.isMultiDrag&&(Le.forEach(function(st){ne(st,"display","none"),ae.options.removeCloneOnHide&&st.parentNode&&st.parentNode.removeChild(st)}),Oe(),Ye=!0,qe())},dragStartGlobal:function(k){k.sortable,!this.isMultiDrag&&ar&&ar.multiDrag._deselectMultiDrag(),ye.forEach(function(ae){ae.sortableIndex=$e(ae)}),ye=ye.sort(function(ae,Oe){return ae.sortableIndex-Oe.sortableIndex}),Se=!0},dragStarted:function(k){var ae=this,Oe=k.sortable;if(this.isMultiDrag){if(this.options.sort&&(Oe.captureAnimationState(),this.options.animation)){ye.forEach(function(st){st!==Lr&&ne(st,"position","absolute")});var qe=D(Lr,!1,!0,!0);ye.forEach(function(st){st!==Lr&&yt(st,qe)}),H=!0,J=!0}Oe.animateAll(function(){H=!1,J=!1,ae.options.animation&&ye.forEach(function(st){Nt(st)}),ae.options.sort&&Lt()})}},dragOver:function(k){var ae=k.target,Oe=k.completed,qe=k.cancel;H&&~ye.indexOf(ae)&&(Oe(!1),qe())},revert:function(k){var ae=k.fromSortable,Oe=k.rootEl,qe=k.sortable,st=k.dragRect;ye.length>1&&(ye.forEach(function(Ct){qe.addAnimationState({target:Ct,rect:H?D(Ct):st}),Nt(Ct),Ct.fromRect=st,ae.removeAnimationState(Ct)}),H=!1,function(Ct,kt){ye.forEach(function(Vt,rr){var ir=kt.children[Vt.sortableIndex+(Ct?Number(rr):0)];ir?kt.insertBefore(Vt,ir):kt.appendChild(Vt)})}(!this.options.removeCloneOnHide,Oe))},dragOverCompleted:function(k){var ae=k.sortable,Oe=k.isOwner,qe=k.insertion,st=k.activeSortable,Ct=k.parentEl,kt=k.putSortable,Vt=this.options;if(qe){if(Oe&&st._hideClone(),J=!1,Vt.animation&&ye.length>1&&(H||!Oe&&!st.options.sort&&!kt)){var rr=D(Lr,!1,!0,!0);ye.forEach(function(sr){sr!==Lr&&(yt(sr,rr),Ct.appendChild(sr))}),H=!0}if(!Oe)if(H||Lt(),ye.length>1){var ir=Ye;st._showClone(ae),st.options.animation&&!Ye&&ir&&Le.forEach(function(sr){st.addAnimationState({target:sr,rect:Fn}),sr.fromRect=Fn,sr.thisAnimationDuration=null})}else st._showClone(ae)}},dragOverAnimationCapture:function(k){var ae=k.dragRect,Oe=k.isOwner,qe=k.activeSortable;if(ye.forEach(function(Ct){Ct.thisAnimationDuration=null}),qe.options.animation&&!Oe&&qe.multiDrag.isMultiDrag){Fn=U({},ae);var st=Ge(Lr,!0);Fn.top-=st.f,Fn.left-=st.e}},dragOverAnimationComplete:function(){H&&(H=!1,Lt())},drop:function(k){var ae=k.originalEvent,Oe=k.rootEl,qe=k.parentEl,st=k.sortable,Ct=k.dispatchSortableEvent,kt=k.oldIndex,Vt=k.putSortable,rr=Vt||this.sortable;if(ae){var ir=this.options,sr=qe.children;if(!Se)if(ir.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),h(Lr,ir.selectedClass,!~ye.indexOf(Lr)),~ye.indexOf(Lr))ye.splice(ye.indexOf(Lr),1),ei=null,De({sortable:st,rootEl:Oe,name:"deselect",targetEl:Lr,originalEvt:ae});else{if(ye.push(Lr),De({sortable:st,rootEl:Oe,name:"select",targetEl:Lr,originalEvt:ae}),ae.shiftKey&&ei&&st.el.contains(ei)){var Mr,Ir,wn=$e(ei),un=$e(Lr);if(~wn&&~un&&wn!==un)for(un>wn?(Ir=wn,Mr=un):(Ir=un,Mr=wn+1);Ir<Mr;Ir++)~ye.indexOf(sr[Ir])||(h(sr[Ir],ir.selectedClass,!0),ye.push(sr[Ir]),De({sortable:st,rootEl:Oe,name:"select",targetEl:sr[Ir],originalEvt:ae}))}else ei=Lr;ar=rr}if(Se&&this.isMultiDrag){if((qe[at].options.sort||qe!==Oe)&&ye.length>1){var Zr=D(Lr),Hn=$e(Lr,":not(."+this.options.selectedClass+")");if(!J&&ir.animation&&(Lr.thisAnimationDuration=null),rr.captureAnimationState(),!J&&(ir.animation&&(Lr.fromRect=Zr,ye.forEach(function(Re){if(Re.thisAnimationDuration=null,Re!==Lr){var Ae=H?D(Re):Zr;Re.fromRect=Ae,rr.addAnimationState({target:Re,rect:Ae})}})),Lt(),ye.forEach(function(Re){sr[Hn]?qe.insertBefore(Re,sr[Hn]):qe.appendChild(Re),Hn++}),kt===$e(Lr))){var An=!1;ye.forEach(function(Re){Re.sortableIndex===$e(Re)||(An=!0)}),An&&Ct("update")}ye.forEach(function(Re){Nt(Re)}),rr.animateAll()}ar=rr}(Oe===qe||Vt&&Vt.lastPutMode!=="clone")&&Le.forEach(function(Re){Re.parentNode&&Re.parentNode.removeChild(Re)})}},nullingGlobal:function(){this.isMultiDrag=Se=!1,Le.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(k){if(!(Se!==void 0&&Se||ar!==this.sortable||k&&q(k.target,this.options.draggable,this.sortable.el,!1)||k&&k.button!==0))for(;ye.length;){var ae=ye[0];h(ae,this.options.selectedClass,!1),ye.shift(),De({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:ae,originalEvt:k})}},_checkKeyDown:function(k){k.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(k){k.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},U(w,{pluginName:"multiDrag",utils:{select:function(k){var ae=k.parentNode[at];ae&&ae.options.multiDrag&&!~ye.indexOf(k)&&(ar&&ar!==ae&&(ar.multiDrag._deselectMultiDrag(),ar=ae),h(k,ae.options.selectedClass,!0),ye.push(k))},deselect:function(k){var ae=k.parentNode[at],Oe=ye.indexOf(k);ae&&ae.options.multiDrag&&~Oe&&(h(k,ae.options.selectedClass,!1),ye.splice(Oe,1))}},eventProperties:function(){var k=this,ae=[],Oe=[];return ye.forEach(function(qe){var st;ae.push({multiDragElement:qe,index:qe.sortableIndex}),st=H&&qe!==Lr?-1:H?$e(qe,":not(."+k.options.selectedClass+")"):$e(qe),Oe.push({multiDragElement:qe,index:st})}),{items:G(ye),clones:[].concat(Le),oldIndicies:ae,newIndicies:Oe}},optionListeners:{multiDragKey:function(k){return(k=k.toLowerCase())==="ctrl"?k="Control":k.length>1&&(k=k.charAt(0).toUpperCase()+k.substr(1)),k}}})}function ct(w,k){Le.forEach(function(ae,Oe){var qe=k.children[ae.sortableIndex+(w?Number(Oe):0)];qe?k.insertBefore(ae,qe):k.appendChild(ae)})}function Lt(){ye.forEach(function(w){w!==Lr&&w.parentNode&&w.parentNode.removeChild(w)})}Rt.mount(new function(){function w(){for(var k in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)k.charAt(0)==="_"&&typeof this[k]=="function"&&(this[k]=this[k].bind(this))}return w.prototype={dragStarted:function(k){var ae=k.originalEvent;this.sortable.nativeDraggable?ie(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ie(document,"pointermove",this._handleFallbackAutoScroll):ae.touches?ie(document,"touchmove",this._handleFallbackAutoScroll):ie(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(k){var ae=k.originalEvent;this.options.dragOverBubble||ae.rootEl||this._handleAutoScroll(ae)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),ur(),Qt(),clearTimeout(te),te=void 0},nulling:function(){ge=yr=tn=it=Ue=Kt=pn=null,pt.length=0},_handleFallbackAutoScroll:function(k){this._handleAutoScroll(k,!0)},_handleAutoScroll:function(k,ae){var Oe=this,qe=(k.touches?k.touches[0]:k).clientX,st=(k.touches?k.touches[0]:k).clientY,Ct=document.elementFromPoint(qe,st);if(ge=k,ae||ue||M||Y){Ht(k,this.options,Ct,ae);var kt=Tt(Ct,!0);!it||Ue&&qe===Kt&&st===pn||(Ue&&ur(),Ue=setInterval(function(){var Vt=Tt(document.elementFromPoint(qe,st),!0);Vt!==kt&&(kt=Vt,Qt()),Ht(k,Oe.options,Vt,ae)},10),Kt=qe,pn=st)}else{if(!this.options.bubbleScroll||Tt(Ct,!0)===xe())return void Qt();Ht(k,this.options,Tt(Ct,!1),!1)}}},U(w,{pluginName:"scroll",initializeByDefault:!0})}),Rt.mount(Ur,Gr),de.default=Rt},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){},function(ke,de,b){b.r(de),b.d(de,"Yasgui",function(){return Zr}),b.d(de,"getRandomId",function(){return Hn});var A={};b.r(A),b.d(A,"appendArgsToUrl",function(){return pn}),b.d(A,"createShareLink",function(){return ge}),b.d(A,"createShareConfig",function(){return Ue}),b.d(A,"getConfigFromUrl",function(){return pt}),b.d(A,"queryCatalogConfigToTabConfig",function(){return it});var _=b(4),U=b.n(_),R=b(5),p=b.n(R),G=b(16),C=b.n(G),M=b(41),ue=b.n(M),x=b(42),Y=b.n(x),ce=b(21),K=b.n(ce),oe=b(54),ie=b(170),m=b(52),S=b(10),P=b(13),q=function(Re){return function(Ae,r,a){var d=Object(Ae);if(!Object(S.a)(Ae)){var g=Object(m.a)(r,3);Ae=Object(P.a)(Ae),r=function(L){return g(d[L],L,d)}}var N=Re(Ae,r,a);return N>-1?d[g?Ae[N]:N]:void 0}},te=function(Re,Ae,r,a){for(var d=Re.length,g=r+-1;++g<d;)if(Ae(Re[g],g,Re))return g;return-1},Z=b(96),h=Math.max,ne=q(function(Re,Ae,r){var a=Re==null?0:Re.length;if(!a)return-1;var d=r==null?0:Object(Z.a)(r);return d<0&&(d=h(a+d,0)),te(Re,Object(m.a)(Ae,3),d)}),Ge=b(59),me=function(Re,Ae){return Object(Ge.a)(Re,Ae)},xe=b(62),D=b(82),se=b(0),re=function(){function Re(Ae){U()(this,Re),this.yasgui=Ae,this.storageId=this.yasgui.getStorageId(this.yasgui.config.persistenceLabelConfig),this.storage=new se.a("triply"),this.fromStorage(),this.registerListeners()}return p()(Re,[{key:"setActive",value:function(Ae){this.persistedJson.active=Ae,this.toStorage()}},{key:"getActiveId",value:function(){return this.persistedJson.active}},{key:"addToTabList",value:function(Ae,r){r!==void 0&&this.persistedJson.tabs.length>r?this.persistedJson.tabs.splice(r,0,Ae):this.persistedJson.tabs.push(Ae),this.toStorage()}},{key:"setTabOrder",value:function(Ae){this.persistedJson.tabs=Ae,this.toStorage()}},{key:"getEndpointHistory",value:function(){return this.persistedJson.endpointHistory}},{key:"retrieveLastClosedTab",value:function(){var Ae=this.persistedJson.lastClosedTab;return Ae===void 0||(this.persistedJson.lastClosedTab=void 0),Ae}},{key:"hasLastClosedTab",value:function(){return!!this.persistedJson.lastClosedTab}},{key:"deleteTab",value:function(Ae){var r=this.persistedJson.tabs.indexOf(Ae);r>-1&&this.persistedJson.tabs.splice(r,1),this.tabIsActive(Ae)&&(this.persistedJson.active=void 0),this.persistedJson.lastClosedTab={index:r,tab:this.persistedJson.tabConfig[Ae]},delete this.persistedJson.tabConfig[Ae],this.toStorage()}},{key:"registerListeners",value:function(){var Ae=this;this.yasgui.on("tabChange",function(r,a){Ae.persistedJson.tabConfig[a.getId()]=a.getPersistedJson(),Ae.toStorage()}),this.yasgui.on("endpointHistoryChange",function(r,a){Ae.persistedJson.endpointHistory=a,Ae.toStorage()})}},{key:"toStorage",value:function(){this.storage.set(this.storageId,this.persistedJson,this.yasgui.config.persistencyExpire,this.handleLocalStorageQuotaFull)}},{key:"fromStorage",value:function(){return this.persistedJson=this.storage.get(this.storageId)||{endpointHistory:[],tabs:[],active:void 0,tabConfig:{},lastClosedTab:void 0},this.persistedJson.endpointHistory||(this.persistedJson.endpointHistory=[]),this.persistedJson}},{key:"handleLocalStorageQuotaFull",value:function(Ae){console.warn("Localstorage quota exceeded. Clearing all YASGUI configurations"),Re.clear()}},{key:"getTabs",value:function(){return this.persistedJson.tabs}},{key:"getTab",value:function(Ae){return this.persistedJson.tabConfig[Ae]}},{key:"setTab",value:function(Ae,r){this.persistedJson.tabs.push(Ae),this.persistedJson.tabConfig[Ae]=r,this.persistedJson.active=Ae}},{key:"tabIsActive",value:function(Ae){return Ae===this.persistedJson.active}},{key:"currentId",value:function(){return this.persistedJson.active}}],[{key:"clear",value:function(){new se.a("triply").removeNamespace()}}]),Re}(),be=b(19),$e=b.n(be),dt=b(36),Tt=b.n(dt),ft=b(71),Ke=b.n(ft),nt=(b(176),b(60)),mt=function(Re,Ae){return Object(nt.a)(Ae,function(r){return[r,Re[r]]})},yt=b(20),Nt=b(84),at=function(Re){var Ae=-1,r=Array(Re.size);return Re.forEach(function(a){r[++Ae]=[a,a]}),r},Ft=function(Re){return function(Ae){var r=Object(yt.a)(Ae);return r=="[object Map]"?Object(Nt.a)(Ae):r=="[object Set]"?at(Ae):mt(Ae,Re(Ae))}}(P.a),B=function(Re){for(var Ae=-1,r=Re==null?0:Re.length,a={};++Ae<r;){var d=Re[Ae];a[d[0]]=d[1]}return a};function X(Re,Ae){var r;if(typeof Symbol>"u"||Re[Symbol.iterator]==null){if(Array.isArray(Re)||(r=function(I,$){if(I){if(typeof I=="string")return he(I,$);var pe=Object.prototype.toString.call(I).slice(8,-1);if(pe==="Object"&&I.constructor&&(pe=I.constructor.name),pe==="Map"||pe==="Set")return Array.from(I);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return he(I,$)}}(Re))||Ae){r&&(Re=r);var a=0,d=function(){};return{s:d,n:function(){return a>=Re.length?{done:!0}:{done:!1,value:Re[a++]}},e:function(I){throw I},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,N=!0,L=!1;return{s:function(){r=Re[Symbol.iterator]()},n:function(){var I=r.next();return N=I.done,I},e:function(I){L=!0,g=I},f:function(){try{N||r.return==null||r.return()}finally{if(L)throw g}}}}function he(Re,Ae){(Ae==null||Ae>Re.length)&&(Ae=Re.length);for(var r=0,a=new Array(Ae);r<Ae;r++)a[r]=Re[r];return a}var De=[{key:"JSON",value:"application/sparql-results+json"},{key:"XML",value:"application/sparql-results+xml"},{key:"CSV",value:"text/csv"},{key:"TSV",value:"text/tab-separated-values"}],Ve=[{key:"Turtle",value:"text/turtle"},{key:"JSON",value:"application/rdf+json"},{key:"RDF/XML",value:"application/rdf+xml"},{key:"TriG",value:"application/trig"},{key:"N-Triples",value:"application/n-triples"},{key:"N-Quads",value:"application/n-quads"},{key:"CSV",value:"text/csv"},{key:"TSV",value:"text/tab-separated-values"}],Be=function(){function Re(Ae,r,a){U()(this,Re),this.tab=Ae,this.rootEl=r,this.isOpen=!1,this.init(a)}return p()(Re,[{key:"init",value:function(Ae){var r=this;this.settingsButton=document.createElement("button"),this.toggleAriaSettings(),this.settingsButton.appendChild(Object(se.d)(`<svg width="100.06" height="100.05" data-name="Layer 1" version="1.1" viewBox="0 0 100.06 100.05" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
        <metadata>
         <rdf:RDF>
          <cc:Work rdf:about="">
           <dc:format>image/svg+xml</dc:format>
           <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
           <dc:title>Settings</dc:title>
          </cc:Work>
         </rdf:RDF>
        </metadata>
        <title>Settings</title>
        <path d="m95.868 58.018-3-3.24a42.5 42.5 0 0 0 0-9.43l3-3.22c1.79-1.91 5-4.44 4-6.85l-4.11-10c-1-2.41-5.08-1.91-7.69-2l-4.43-0.16a43.24 43.24 0 0 0-6.64-6.66l-0.14-4.43c-0.08-2.6 0.43-6.69-2-7.69l-10-4.15c-2.4-1-4.95 2.25-6.85 4l-3.23 3a42.49 42.49 0 0 0-9.44 0l-3.21-3c-1.9-1.78-4.44-5-6.85-4l-10 4.11c-2.41 1-1.9 5.09-2 7.69l-0.16 4.42a43.24 43.24 0 0 0-6.67 6.65l-4.42 0.14c-2.6 0.08-6.69-0.43-7.69 2l-4.15 10c-1 2.4 2.25 4.94 4 6.84l3 3.23a42.49 42.49 0 0 0 0 9.44l-3 3.22c-1.78 1.9-5 4.43-4 6.84l4.11 10c1 2.41 5.09 1.91 7.7 2l4.41 0.15a43.24 43.24 0 0 0 6.66 6.68l0.13 4.41c0.08 2.6-0.43 6.7 2 7.7l10 4.15c2.4 1 4.94-2.25 6.84-4l3.24-3a42.5 42.5 0 0 0 9.42 0l3.22 3c1.91 1.79 4.43 5 6.84 4l10-4.11c2.41-1 1.91-5.08 2-7.7l0.15-4.42a43.24 43.24 0 0 0 6.68-6.65l4.42-0.14c2.6-0.08 6.7 0.43 7.7-2l4.15-10c1.04-2.36-2.22-4.9-3.99-6.82zm-45.74 15.7c-12.66 0-22.91-10.61-22.91-23.7s10.25-23.7 22.91-23.7 22.91 10.61 22.91 23.7-10.25 23.7-22.91 23.7z"/>
       </svg>`)),Object(se.b)(this.settingsButton,"tabContextButton"),Ae.appendChild(this.settingsButton),this.settingsButton.onclick=function(a){r.open(a)},this.menuElement=document.createElement("div"),Object(se.b)(this.menuElement,"tabMenu"),Ae.appendChild(this.menuElement),this.menuElement.onclick=function(a){return a.stopImmediatePropagation(),!1},this.drawBody()}},{key:"updateBody",value:function(){var Ae=this.tab.getRequestConfig();typeof Ae.method!="function"&&this.setRequestMethod(Ae.method),this.setAcceptHeader_select(Ae.acceptHeaderSelect),this.setAcceptHeader_graph(Ae.acceptHeaderGraph),typeof Ae.args!="function"&&this.setArguments(Tt()(Ae.args)||[]),typeof Ae.headers!="function"&&this.setHeaders(Ft(Ae.headers).map(function(r){var a=Ke()(r,2);return{name:a[0],value:a[1]}})),typeof Ae.defaultGraphs!="function"&&this.setDefaultGraphs(Tt()(Ae.defaultGraphs)||[]),typeof Ae.namedGraphs!="function"&&this.setNamedGraphs(Tt()(Ae.namedGraphs)||[])}},{key:"open",value:function(Ae){var r=this;this.isOpen||(this.updateBody(),this.isOpen=!0,Object(se.b)(this.menuElement,"open"),this.toggleAriaSettings(),document.addEventListener("click",function a(d){for(var g=d.target;window.MSInputMethodContext&&document.documentMode&&g.parentElement;){if(g.className.indexOf("tabMenu")!==-1)return!1;g=g.parentElement}return r.close(d),document.removeEventListener("click",a,!0),!1},{once:!0}),Ae.stopImmediatePropagation())}},{key:"close",value:function(Ae){this.isOpen&&(this.isOpen=!1,Object(se.g)(this.menuElement,"open"),this.toggleAriaSettings())}},{key:"toggleAriaSettings",value:function(){this.settingsButton.setAttribute("aria-label",this.isOpen?"Close settings":"Open settings"),this.settingsButton.setAttribute("aria-expanded","".concat(this.isOpen))}},{key:"drawRequestMethodSelector",value:function(){var Ae=this,r=document.createElement("div");Object(se.b)(r,"requestConfigWrapper"),Ze("Request method",r);var a=document.createElement("button");Object(se.b)(a,"selectorButton"),a.innerText="GET";var d=document.createElement("button");Object(se.b)(d,"selectorButton"),d.innerText="POST",Object(se.b)(this.tab.getRequestConfig().method==="GET"?a:d,"selected"),this.setRequestMethod=function(g){g==="GET"?(Object(se.b)(a,"selected"),Object(se.g)(d,"selected")):g==="POST"&&(Object(se.b)(d,"selected"),Object(se.g)(a,"selected"))},a.onclick=function(){Ae.tab.setRequestConfig({method:"GET"}),Ae.setRequestMethod("GET")},d.onclick=function(){Ae.tab.setRequestConfig({method:"POST"}),Ae.setRequestMethod("POST")},r.appendChild(a),r.appendChild(d),this.menuElement.appendChild(r)}},{key:"drawAcceptSelector",value:function(){var Ae=this,r=document.createElement("div");Object(se.b)(r,"requestConfigWrapper","acceptWrapper"),Ze("Accept Headers",r),this.setAcceptHeader_select=ze(De,function(a){Ae.tab.setRequestConfig({acceptHeaderSelect:a.target.value})},"Ask / Select",r),this.setAcceptHeader_graph=ze(Ve,function(a){Ae.tab.setRequestConfig({acceptHeaderGraph:a.target.value})},"Construct / Describe",r),this.menuElement.appendChild(r)}},{key:"drawArgumentsInput",value:function(){var Ae=this,r=function(){var d=[];a.querySelectorAll(".textRow").forEach(function(g){var N=Ke()(g.children,2),L=N[0],I=N[1];L instanceof HTMLInputElement&&I instanceof HTMLInputElement&&L.value.length&&d.push({name:L.value,value:I.value})}),Ae.tab.setRequestConfig({args:d})},a=document.createElement("div");Object(se.b)(a,"requestConfigWrapper","textSetting"),Ze("Arguments",a),this.menuElement.appendChild(a),this.setArguments=function(d){a.querySelectorAll(".textRow").forEach(function(L){a.removeChild(L)});for(var g=function(L){jt(function(){d.splice(L,1),Ae.tab.setRequestConfig({args:d}),Ae.setArguments(d)},Pr(a,L,d,r))},N=0;N<d.length;N++)g(N);xr(a,d,r)}}},{key:"drawHeaderInput",value:function(){var Ae=this,r=function(){var g={};a.querySelectorAll(".textRow").forEach(function(N){var L=Ke()(N.children,2),I=L[0],$=L[1];I instanceof HTMLInputElement&&$ instanceof HTMLInputElement&&I.value.length&&(g[I.value]=$.value)}),Ae.tab.setRequestConfig({headers:g})},a=document.createElement("div");Object(se.b)(a,"requestConfigWrapper","textSetting");var d=Ze("Header Arguments");a.appendChild(d),this.menuElement.appendChild(a),this.setHeaders=function(g){a.querySelectorAll(".textRow").forEach(function(I){a.removeChild(I)});for(var N=function(I){jt(function(){g.splice(I,1),Ae.tab.setRequestConfig({headers:B(g.map(function($){return[$.name,$.value]}))}),Ae.setHeaders(g)},Pr(a,I,g,r))},L=0;L<g.length;L++)N(L);xr(a,g,r)}}},{key:"drawDefaultGraphInput",value:function(){var Ae=this,r=document.createElement("div");Object(se.b)(r,"requestConfigWrapper","textSetting");var a=Ze("Default Graphs");r.appendChild(a),this.menuElement.appendChild(r);var d=function(){var g=[];r.querySelectorAll(".graphInput").forEach(function(N){var L=Ke()(N.children,1)[0];L instanceof HTMLInputElement&&L.value.length&&g.push(L.value)}),Ae.tab.setRequestConfig({defaultGraphs:g})};this.setDefaultGraphs=function(g){r.querySelectorAll(".graphInput").forEach(function(I){r.removeChild(I)});for(var N=function(I){jt(function(){return g[I]=void 0},Bt(r,I,g,d))},L=0;L<g.length;L++)N(L);nr(r,g,d)}}},{key:"drawNamedGraphInput",value:function(){var Ae=this,r=document.createElement("div");Object(se.b)(r,"requestConfigWrapper","textSetting");var a=Ze("Named Graphs");r.appendChild(a),this.menuElement.appendChild(r);var d=function(){var g=[];r.querySelectorAll(".graphInput").forEach(function(N){var L=Ke()(N.children,1)[0];L instanceof HTMLInputElement&&L.value.length&&g.push(L.value)}),Ae.tab.setRequestConfig({namedGraphs:g})};this.setNamedGraphs=function(g){r.querySelectorAll(".graphInput").forEach(function(I){r.removeChild(I)});for(var N=function(I){jt(function(){return g[I]=void 0},Bt(r,I,g,d))},L=0;L<g.length;L++)N(L);nr(r,g,d)}}},{key:"drawBody",value:function(){this.drawRequestMethodSelector(),this.drawAcceptSelector(),this.drawArgumentsInput(),this.drawHeaderInput(),this.drawDefaultGraphInput(),this.drawNamedGraphInput()}},{key:"destroy",value:function(){for(this.settingsButton.onclick=null,this.menuElement.onclick=null;this.menuElement.firstChild;)this.menuElement.firstChild.remove();this.menuElement.remove()}}]),Re}();function ze(Re,Ae,r,a){var d=document.createElement("div");Object(se.b)(d,"selector");var g=Ze(r,d);Object(se.b)(g,"selectorLabel");var N=document.createElement("select");N.onchange=Ae,d.appendChild(N);var L=Re.map(function(I){return function($,pe){var We=document.createElement("option");return We.textContent=$.key,We.value=$.value,pe.appendChild(We),We}(I,N)});return a.appendChild(d),function(I){if(typeof I=="string"){var $,pe=X(L);try{for(pe.s();!($=pe.n()).done;){var We=$.value;We.selected=We.value===I}}catch(_e){pe.e(_e)}finally{pe.f()}}}}function lt(Re){var Ae,r=[],a=X(Re.getElementsByTagName("input"));try{for(a.s();!(Ae=a.n()).done;){var d=Ae.value;r.push(d.value)}}catch(g){a.e(g)}finally{a.f()}return r}function Ze(Re,Ae){var r=document.createElement("label");return Object(se.b)(r,"label"),r.innerText=Re,Ae&&Ae.appendChild(r),r}function Pt(Re,Ae){var r=document.createElement("input");return r.type="text",r.value=Re||"",Ae&&Ae.appendChild(r),r}function jt(Re,Ae){var r=document.createElement("button");return r.textContent="X",Object(se.b)(r,"removeButton"),Ae&&Ae.appendChild(r),r.onclick=function(a){var d;Re(),(d=a.target.parentElement)===null||d===void 0||d.remove()},r}function nr(Re,Ae,r){var a=Re.querySelector(".graphInput:last-of-type");if(!a||lt(a)[0]!==""||a.getElementsByTagName("button").length!==0){var d=Ae.length;Bt(Re,d,Ae,r),a&&a.getElementsByTagName("button").length===0&&jt(function(){return Ae[d-1]=void 0},a)}}function Bt(Re,Ae,r,a){var d=document.createElement("div");return Object(se.b)(d,"graphInput"),Pt(r[Ae]||"",d).onkeyup=function(g){var N=g.target;r[Ae]?r[Ae]=N.value:r.push(N.value),nr(Re,r,a)},d.onblur=a,Re.appendChild(d),d}function xr(Re,Ae,r){var a=Re.querySelector(".textRow:last-of-type");if(!a||lt(a).filter(function(g){return g}).length!==0){var d=Ae.length;Pr(Re,d,Ae,r),a&&a.getElementsByTagName("button").length===0&&jt(function(){return Ae[d-1]=void 0},a)}}function Pr(Re,Ae,r,a){var d=document.createElement("div");Object(se.b)(d,"textRow");var g=r[Ae],N=Pt(g?g.name:"",d),L=Pt(g?g.value:"",d);return N.onkeyup=function(I){var $=r[Ae];$?$.name=I.target.value:r.push({name:I.target.value,value:""}),xr(Re,r,a)},N.onblur=a,L.onkeyup=function(I){var $=r[Ae];$?$.value=I.target.value:r.push({value:I.target.value,name:""}),xr(Re,r,a)},L.onblur=a,Re.appendChild(d),d}var gr=b(12),Cr=b(87),qr=b(85),on=Object(qr.a)(function(Re,Ae,r,a){Object(Cr.a)(Re,Ae,r,a)}),Er=b(86),cn=b(66),Vr=function(Re,Ae,r,a){return Object(cn.a)(Re,function(d,g,N){Ae(a,r(d),g,N)}),a},dn=function(Re,Ae){return function(r,a){return Vr(r,Re,Ae(a),{})}},vr=b(25),lr=Object.prototype.toString,gn=dn(function(Re,Ae,r){Ae!=null&&typeof Ae.toString!="function"&&(Ae=lr.call(Ae)),Re[Ae]=r},Object(Er.a)(vr.a)),Dr=b(175),br=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hn=function(Re){return Re.match(br)||[]},sn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sr=function(Re){return sn.test(Re)},Yr=b(27),kr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wn="["+kr+"]",Jn="\\d+",ln="[\\u2700-\\u27bf]",Zn="[a-z\\xdf-\\xf6\\xf8-\\xff]",xn="[^\\ud800-\\udfff"+kr+Jn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Cn="(?:\\ud83c[\\udde6-\\uddff]){2}",Sn="[\\ud800-\\udbff][\\udc00-\\udfff]",mn="[A-Z\\xc0-\\xd6\\xd8-\\xde]",je="(?:"+Zn+"|"+xn+")",Fe="(?:"+mn+"|"+xn+")",Ie="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Ee="[\\ufe0e\\ufe0f]?"+Ie+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Cn,Sn].join("|")+")[\\ufe0e\\ufe0f]?"+Ie+")*"),Te="(?:"+[ln,Cn,Sn].join("|")+")"+Ee,Je=RegExp([mn+"?"+Zn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Wn,mn,"$"].join("|")+")",Fe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Wn,mn+je,"$"].join("|")+")",mn+"?"+je+"+(?:['’](?:d|ll|m|re|s|t|ve))?",mn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jn,Te].join("|"),"g"),It=function(Re){return Re.match(Je)||[]},wt=function(Re,Ae,r){return Re=Object(Yr.a)(Re),(Ae=Ae)===void 0?Sr(Re)?It(Re):hn(Re):Re.match(Ae)||[]},Ot=b(64),Rt=Object(Ot.a)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),mr=function(Re){return(Re=Object(Yr.a)(Re))&&Re.replace(tr,Rt).replace(cr,"")},Wr=b(49),Br=b.n(Wr);function Rr(Re,Ae){var r;if(typeof Symbol>"u"||Re[Symbol.iterator]==null){if(Array.isArray(Re)||(r=function(I,$){if(I){if(typeof I=="string")return tn(I,$);var pe=Object.prototype.toString.call(I).slice(8,-1);if(pe==="Object"&&I.constructor&&(pe=I.constructor.name),pe==="Map"||pe==="Set")return Array.from(I);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return tn(I,$)}}(Re))||Ae){r&&(Re=r);var a=0,d=function(){};return{s:d,n:function(){return a>=Re.length?{done:!0}:{done:!1,value:Re[a++]}},e:function(I){throw I},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,N=!0,L=!1;return{s:function(){r=Re[Symbol.iterator]()},n:function(){var I=r.next();return N=I.done,I},e:function(I){L=!0,g=I},f:function(){try{N||r.return==null||r.return()}finally{if(L)throw g}}}}function tn(Re,Ae){(Ae==null||Ae>Re.length)&&(Ae=Re.length);for(var r=0,a=new Array(Ae);r<Ae;r++)a[r]=Re[r];return a}var yr=b(177),Kt=function(Re){var Ae=!1;Re||(Re=window.location.href,Ae=!0);var r=new yr(Re);return r.anchor().length>0&&(r.query(r.anchor()),Ae&&(window.location.hash="")),r};function pn(Re,Ae){var r=new yr(Re);for(var a in Ae){var d=Ae[a];if(Array.isArray(d)){var g,N=Rr(d);try{for(N.s();!(g=N.n()).done;){var L=g.value;r.addQueryParam(a,L)}}catch(I){N.e(I)}finally{N.f()}}else r.addQueryParam(a,d)}return r.toString()}function ge(Re,Ae){var r,a=new yr(Re),d=new yr,g=Ue(Ae);for(r in g)g.hasOwnProperty(r)&&(r==="namedGraphs"?g.namedGraphs.forEach(function(N){return d.addQueryParam("namedGraph",N)}):r==="defaultGraphs"?g.defaultGraphs.forEach(function(N){return d.addQueryParam("defaultGraph",N)}):r==="args"?Object(se.e)(g.args,Ae.yasgui).forEach(function(N){return d.addQueryParam(N.name,N.value)}):Br()(g[r])==="object"?g[r]&&d.addQueryParam(r,JSON.stringify(g[r])):g[r]&&d.addQueryParam(r,g[r]));return Kt(Re).queryPairs.forEach(function(N){d.hasQueryParam(N[0])||d.addQueryParam(N[0],N[1])}),a.anchor(d.query().substr(1)),a.toString()}function Ue(Re){var Ae=Re.yasgui,r=Re.getRequestConfig(),a=Re.getPersistedJson().yasr.settings;return{query:Re.getQuery(),endpoint:Re.getEndpoint(),requestMethod:Object(se.e)(r.method,Ae),tabTitle:Re.getName(),headers:Object(se.e)(r.headers,Ae),contentTypeConstruct:Object(se.e)(r.acceptHeaderGraph,Ae),contentTypeSelect:Object(se.e)(r.acceptHeaderSelect,Ae),args:Object(se.e)(r.args,Ae),namedGraphs:Object(se.e)(r.namedGraphs,Ae),defaultGraphs:Object(se.e)(r.defaultGraphs,Ae),outputFormat:a.selectedPlugin,outputSettings:a.pluginsConfig&&a.selectedPlugin?a.pluginsConfig[a.selectedPlugin]:void 0}}function pt(Re,Ae){var r,a=Re,d=Kt(Ae),g=!1;if(d.queryPairs.forEach(function(N){var L=Ke()(N,2),I=L[0],$=L[1];I==="query"?(g=!0,a.yasqe.value=$):I==="outputFormat"&&$.length?xe.default.plugins[$]?a.yasr.settings.selectedPlugin=$:console.warn('Output format plugin "'.concat($,'" not found')):I=="outputSettings"?r=JSON.parse($):I=="contentTypeConstruct"?a.requestConfig.acceptHeaderGraph=$:I=="contentTypeSelect"?a.requestConfig.acceptHeaderSelect=$:I=="endpoint"?a.requestConfig.endpoint=$:I=="requestMethod"?a.requestConfig.method=$:I=="tabTitle"?a.name=$:I=="namedGraph"?(Array.isArray(a.requestConfig.namedGraphs)||(a.requestConfig.namedGraphs=[]),a.requestConfig.namedGraphs.push($)):I=="defaultGraph"?(Array.isArray(a.requestConfig.defaultGraphs)||(a.requestConfig.defaultGraphs=[]),a.requestConfig.defaultGraphs.push($)):I=="headers"?(a.requestConfig.headers||(a.requestConfig.headers={}),a.requestConfig.headers=JSON.parse($)):(a.requestConfig.args||(a.requestConfig.args=[]),a.requestConfig.args.push({name:I,value:$}))}),r&&a.yasr.settings.selectedPlugin&&a.yasr.settings.pluginsConfig&&(a.yasr.settings.pluginsConfig[a.yasr.settings.selectedPlugin]=r),g)return a}function it(Re,Ae){var r=Ae||Ct.getDefaults();return Re.service&&(r.requestConfig.endpoint=Re.service),Re.requestConfig&&(Re.requestConfig.payload&&(Re.requestConfig.payload.query&&(r.yasqe.value=Re.requestConfig.payload.query),Re.requestConfig.payload["default-graph-uri"]&&(r.requestConfig.defaultGraphs=Array.isArray(Re.requestConfig.payload["default-graph-uri"])?Re.requestConfig.payload["default-graph-uri"]:[Re.requestConfig.payload["default-graph-uri"]]),Re.requestConfig.payload["named-graph-uri"]&&(r.requestConfig.namedGraphs=Array.isArray(Re.requestConfig.payload["named-graph-uri"])?Re.requestConfig.payload["named-graph-uri"]:[Re.requestConfig.payload["named-graph-uri"]])),Re.requestConfig.headers&&(r.requestConfig.headers=Re.requestConfig.headers)),Re.renderConfig&&(Re.renderConfig.output&&(xe.default.plugins[Re.renderConfig.output]?r.yasr.settings.selectedPlugin=Re.renderConfig.output:console.warn('Output format plugin "'.concat(Re.renderConfig.output,'" not found'))),Re.renderConfig.settings&&(xe.default.plugins[Re.renderConfig.output]&&r.yasr.settings.pluginsConfig?r.yasr.settings.pluginsConfig[Re.renderConfig.output]=Re.renderConfig.settings:console.warn('Output format plugin "'.concat(Re.renderConfig.output,'" not found, cannot apply settings')))),Re.name&&(r.name=Re.name),r}var Qt=b(172),ur=b.n(Qt),gt=b(55),Ht=b(67),Ut=b(53),Gr=b(37),Ur=b(2),Un=b(24),ei=function(Re,Ae,r,a){if(!Object(Ur.a)(Re))return Re;for(var d=-1,g=(Ae=Object(Ut.a)(Ae,Re)).length,N=g-1,L=Re;L!=null&&++d<g;){var I=Object(Un.a)(Ae[d]),$=r;if(d!=N){var pe=L[I];($=void 0)==void 0&&($=Object(Ur.a)(pe)?pe:Object(Gr.a)(Ae[d+1])?[]:{})}Object(Ht.a)(L,I,$),L=L[I]}return Re},ar=function(Re,Ae,r){for(var a=-1,d=Ae.length,g={};++a<d;){var N=Ae[a],L=Object(gt.a)(Re,N);r(L,N)&&ei(g,Object(Ut.a)(N,Re),L)}return g},Lr=b(88),Fn=function(Re,Ae){return ar(Re,Ae,function(r,a){return Object(Lr.a)(Re,a)})},Ye=b(97),ye=function(Re){return Re!=null&&Re.length?Object(Ye.a)(Re,1):[]},Le=b(91),J=b(89),H=function(Re){return Object(J.a)(Object(Le.a)(Re,void 0,ye),Re+"")}(function(Re,Ae){return Re==null?{}:Fn(Re,Ae)}),Se=b(169),Qe=b.n(Se);function ct(Re){var Ae=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var r,a=K()(Re);if(Ae){var d=K()(this).constructor;r=Reflect.construct(a,arguments,d)}else r=a.apply(this,arguments);return Y()(this,r)}}var Lt=function(Re,Ae,r,a){return new(r||(r=Promise))(function(d,g){function N($){try{I(a.next($))}catch(pe){g(pe)}}function L($){try{I(a.throw($))}catch(pe){g(pe)}}function I($){var pe;$.done?d($.value):(pe=$.value,pe instanceof r?pe:new r(function(We){We(pe)})).then(N,L)}I((a=a.apply(Re,[])).next())})};function w(Re){return Re.match(/\S+/g)||[]}function k(Re,Ae){return w(Ae).reduce(function(r,a){if(!a.length)return r;var d=a.length,g=Re.indexOf(a);return g>-1&&(r.push([g,g+d]),Re=Re.slice(0,g)+new Array(d+1).join(" ")+Re.slice(g+d)),r},[]).sort(function(r,a){return r[0]-a[0]})}b(178);var ae=function(Re){ue()(r,Re);var Ae=ct(r);function r(a,d,g,N){var L;return U()(this,r),(L=Ae.call(this)).clearListSuggestionList=function(){var I=L.container.querySelector(".autocompleteList");I&&(I.innerHTML="")},L.container=d,L.options=g,L.value=a,L.history=N.map(function(I){return{endpoint:I,type:"history"}}),L.options.keys.indexOf("endpoint")<=0&&L.options.keys.push("endpoint"),L.draw(),L}return p()(r,[{key:"draw",value:function(){var a=this,d=document.createElement("div");Object(se.b)(d,"autocompleteWrapper"),this.container.appendChild(d),this.inputField=document.createElement("input"),Object(se.b)(this.inputField,"autocomplete"),this.inputField.value=this.value,d.appendChild(this.inputField),new ur.a({placeholder:"Search or add an endpoint",highlight:!1,maxResults:100,trigger:{event:["input","focusin"],condition:function(){return!0}},searchEngine:function(g,N){return!g||g.trim().length===0||w(g).every(function(L){return N.indexOf(L)>=0})},data:{src:function(){return Lt(a,void 0,void 0,$e.a.mark(function g(){var N=this;return $e.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",[].concat(Tt()(this.history),Tt()(this.options.getData())).map(function(I){return Object.assign(Object.assign({},I),{all:Object.values(H(I,["endpoint"].concat(Tt()(N.options.keys)))).join(" ")})}));case 1:case"end":return L.stop()}},g,this)}))},key:["all"],cache:!1},selector:function(){return a.inputField},resultsList:{render:!0,destination:this.inputField,container:function(g){g.id="",Object(se.b)(g,"autocompleteList")}},resultItem:{content:function(g,N){if(g.value.type&&g.value.type==="history"){var L=document.createElement("div");L.innerHTML=Qe()(g.value.endpoint,k(g.value.endpoint,a.inputField.value)).reduce(function(c,E){return E.highlight?c+E.text.bold():c+E.text},""),N.append(L);var I=document.createElement("button");I.textContent="✖",Object(se.b)(I,"removeItem"),I.addEventListener("mousedown",function(c){a.history=a.history.filter(function(E){return E.endpoint!==g.value.endpoint}),a.emit("remove",a.value,a.history.map(function(E){return E.endpoint})),N.remove(),c.stopPropagation()}),N.appendChild(I)}else{for(var $={matches:{}},pe=0,We=Tt()(a.options.keys);pe<We.length;pe++){var _e=We[pe],n=g.value[_e];n&&($.matches[_e]=Qe()(n,k(n,a.inputField.value)))}a.options.renderItem(Object.assign(Object.assign({},g),$),N)}},element:"li"},onSelection:function(g){var N=g.selection.value;a.value=N.endpoint,a.inputField.value=a.value,a.emit("select",a.value,a.history.map(function(L){return L.endpoint}))},noResults:function(){var g=a.container.querySelector(".autocompleteList");if(g){var N=document.createElement("div");Object(se.b)(N,"noResults"),N.innerText='Press "enter" to add this endpoint',g.appendChild(N)}}}),this.inputField.addEventListener("keyup",function(g){var N=g.target;if(g.keyCode===13){if(a.value===N.value||!N.value||!N.value.trim())return a.clearListSuggestionList(),void a.inputField.blur();if(a.options.getData().find(function(I){return I.endpoint===a.inputField.value})||a.history.find(function(I){return I.endpoint===a.inputField.value}))return a.value=N.value,a.clearListSuggestionList(),a.emit("select",a.value,a.history.map(function(I){return I.endpoint})),void a.inputField.blur();a.value=N.value,a.history.push({endpoint:N.value,type:"history"}),a.emit("select",a.value,a.history.map(function(I){return I.endpoint})),a.clearListSuggestionList(),a.inputField.blur()}if(g.keyCode===27&&(a.inputField.blur(),a.inputField.value=a.value,a.clearListSuggestionList()),g.keyCode===38||g.keyCode===40){g.stopPropagation();var L=a.container.querySelector(".autocompleteList .autoComplete_result.autoComplete_selected");L&&!function(I){var $=I.getBoundingClientRect(),pe=$.top,We=$.bottom;if(We<0||pe>document.documentElement.clientHeight)return!1;var _e=I.parentNode.getBoundingClientRect();return We<=_e.bottom&&!(pe<=_e.top)}(L)&&L.scrollIntoView(!1)}}),this.inputField.addEventListener("blur",function(g){g.target.className===a.inputField.className&&g.relatedTarget&&(a.clearListSuggestionList(),a.inputField.value=a.value)}),document.addEventListener("mousedown",function(g){if(g.button!==2){var N=g.target;if(N.className==="removeItem"||N.className==="autoComplete_result"||N.className==="autocomplete")return;a.clearListSuggestionList(),a.inputField.value=a.value}})}},{key:"setEndpoint",value:function(a,d){this.value=a,d&&(this.history=d.map(function(g){return{endpoint:g,type:"history"}})),this.inputField===document.activeElement?this.inputField.focus():this.inputField.value=a}},{key:"destroy",value:function(){this.removeAllListeners(),this.inputField.remove()}}]),r}(oe.EventEmitter),Oe=b(39);function qe(Re){var Ae=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var r,a=K()(Re);if(Ae){var d=K()(this).constructor;r=Reflect.construct(a,arguments,d)}else r=a.apply(this,arguments);return Y()(this,r)}}var st=function(Re,Ae,r,a){return new(r||(r=Promise))(function(d,g){function N($){try{I(a.next($))}catch(pe){g(pe)}}function L($){try{I(a.throw($))}catch(pe){g(pe)}}function I($){var pe;$.done?d($.value):(pe=$.value,pe instanceof r?pe:new r(function(We){We(pe)})).then(N,L)}I((a=a.apply(Re,[])).next())})};b(179);var Ct=function(Re){ue()(r,Re);var Ae=qe(r);function r(a,d){var g;if(U()(this,r),(g=Ae.call(this)).handleYasqeBlur=function(N){g.persistentJson.yasqe.value=N.getValue(),g.emit("change",C()(g),g.persistentJson)},g.handleYasqeQuery=function(N){N.getValue()!==g.persistentJson.yasqe.value&&(g.persistentJson.yasqe.value=N.getValue(),g.emit("change",C()(g),g.persistentJson)),g.emit("query",C()(g))},g.handleYasqeQueryAbort=function(){g.emit("queryAbort",C()(g))},g.handleYasqeResize=function(N,L){g.persistentJson.yasqe.editorHeight=L,g.emit("change",C()(g),g.persistentJson)},g.handleAutocompletionShown=function(N,L){g.emit("autocompletionShown",C()(g),L)},g.handleAutocompletionClose=function(N){g.emit("autocompletionClose",C()(g))},g.handleQueryResponse=function(N,L,I){if(g.emit("queryResponse",C()(g)),!g.yasr)throw new Error("Resultset visualizer not initialized. Cannot draw results");g.yasr.setResponse(L,I),g.yasr.results&&(g.yasr.results.hasError()?g.persistentJson.yasr.response=void 0:g.persistentJson.yasr.response=g.yasr.results.getAsStoreObject(g.yasgui.config.yasr.maxPersistentResponseSize),g.emit("change",C()(g),g.persistentJson))},!d||d.id===void 0)throw new Error("Expected a valid configuration to initialize tab with");return g.yasgui=a,g.persistentJson=d,g}return p()(r,[{key:"name",value:function(){return this.persistentJson.name}},{key:"getPersistedJson",value:function(){return this.persistentJson}},{key:"getId",value:function(){return this.persistentJson.id}},{key:"draw",value:function(){if(!this.rootEl){this.rootEl=document.createElement("div"),this.rootEl.className="tabPanel",this.rootEl.id=this.persistentJson.id,this.rootEl.setAttribute("role","tabpanel"),this.rootEl.setAttribute("aria-labelledby","tab-"+this.persistentJson.id);var a=document.createElement("div");this.controlBarEl=document.createElement("div"),this.controlBarEl.className="controlbar",a.appendChild(this.controlBarEl),this.yasqeWrapperEl=document.createElement("div"),a.appendChild(this.yasqeWrapperEl),this.yasrWrapperEl=document.createElement("div"),a.appendChild(this.yasrWrapperEl),this.initTabSettingsMenu(),this.rootEl.appendChild(a),this.initControlbar(),this.initYasqe(),this.initYasr(),this.yasgui._setPanel(this.persistentJson.id,this.rootEl)}}},{key:"hide",value:function(){Object(se.g)(this.rootEl,"active")}},{key:"show",value:function(){this.draw(),Object(se.b)(this.rootEl,"active"),this.yasgui.tabElements.selectTab(this.persistentJson.id),this.yasqe&&(this.yasqe.refresh(),this.yasgui.config.autofocus&&this.yasqe.focus()),this.yasr&&this.yasr.refresh(),this.setEndpoint(this.getEndpoint(),this.yasgui.persistentConfig.getEndpointHistory())}},{key:"select",value:function(){this.yasgui.selectTabId(this.persistentJson.id)}},{key:"close",value:function(){if(this.yasqe&&this.yasqe.abortQuery(),this.yasgui.getTab()===this){var a=this.yasgui.persistentConfig.getTabs(),d=a.indexOf(this.persistentJson.id);d>-1&&this.yasgui.selectTabId(a[d===a.length-1?d-1:d+1])}this.yasgui._removePanel(this.rootEl),this.yasgui.persistentConfig.deleteTab(this.persistentJson.id),this.yasgui.emit("tabClose",this.yasgui,this),this.emit("close",this),this.yasgui.tabElements.get(this.persistentJson.id).delete(),delete this.yasgui._tabs[this.persistentJson.id]}},{key:"getQuery",value:function(){var a;if(!this.yasqe)throw new Error("Cannot get value from uninitialized editor");return(a=this.yasqe)===null||a===void 0?void 0:a.getValue()}},{key:"setQuery",value:function(a){if(!this.yasqe)throw new Error("Cannot set value for uninitialized editor");return this.yasqe.setValue(a),this.persistentJson.yasqe.value=a,this.emit("change",this,this.persistentJson),this}},{key:"getRequestConfig",value:function(){return this.persistentJson.requestConfig}},{key:"initControlbar",value:function(){this.initEndpointSelectField(),this.yasgui.config.endpointInfo&&this.controlBarEl&&this.controlBarEl.appendChild(this.yasgui.config.endpointInfo())}},{key:"getYasqe",value:function(){return this.yasqe}},{key:"getYasr",value:function(){return this.yasr}},{key:"initTabSettingsMenu",value:function(){if(!this.rootEl||!this.controlBarEl)throw new Error("Need to initialize wrapper elements before drawing tab pabel");this.tabPanel=new Be(this,this.rootEl,this.controlBarEl)}},{key:"initEndpointSelectField",value:function(){var a=this;if(!this.controlBarEl)throw new Error("Need to initialize wrapper elements before drawing endpoint field");this.endpointSelect=new ae(this.getEndpoint(),this.controlBarEl,this.yasgui.config.endpointCatalogueOptions,this.yasgui.persistentConfig.getEndpointHistory()),this.endpointSelect.on("select",function(d,g){a.setEndpoint(d,g)}),this.endpointSelect.on("remove",function(d,g){a.setEndpoint(d,g)})}},{key:"checkEndpointForCors",value:function(a){this.yasgui.config.corsProxy&&!(a in An.corsEnabled)&&Oe.get(a).query({query:"ASK {?x ?y ?z}"}).then(function(){An.corsEnabled[a]=!0},function(d){An.corsEnabled[a]=d.status>0})}},{key:"setEndpoint",value:function(a,d){return a&&(a=a.trim()),d&&!Object(gr.a)(d,this.yasgui.persistentConfig.getEndpointHistory())&&this.yasgui.emit("endpointHistoryChange",this.yasgui,d),this.checkEndpointForCors(a),this.persistentJson.requestConfig.endpoint!==a&&(this.persistentJson.requestConfig.endpoint=a,this.emit("change",this,this.persistentJson),this.emit("endpointChange",this,a)),this.endpointSelect instanceof ae&&this.endpointSelect.setEndpoint(a,d),this}},{key:"getEndpoint",value:function(){return Object(se.e)(this.persistentJson.requestConfig.endpoint,this.yasgui)}},{key:"updateContextMenu",value:function(){this.getTabListEl().redrawContextMenu()}},{key:"getShareableLink",value:function(a){return ge(a||window.location.href,this)}},{key:"getShareObject",value:function(){return Ue(this)}},{key:"getTabListEl",value:function(){return this.yasgui.tabElements.get(this.persistentJson.id)}},{key:"setName",value:function(a){return this.getTabListEl().rename(a),this.persistentJson.name=a,this.emit("change",this,this.persistentJson),this}},{key:"hasResults",value:function(){var a;return!!(!((a=this.yasr)===null||a===void 0)&&a.results)}},{key:"getName",value:function(){return this.persistentJson.name}},{key:"query",value:function(){return this.yasqe?this.yasqe.query():Promise.reject(new Error("No yasqe editor initialized"))}},{key:"setRequestConfig",value:function(a){this.persistentJson.requestConfig=Object.assign(Object.assign({},this.persistentJson.requestConfig),a),this.emit("change",this,this.persistentJson)}},{key:"getStaticRequestConfig",value:function(){var a,d={};for(a in this.yasgui.config.requestConfig)if(a!=="adjustQueryBeforeRequest"){var g=this.yasgui.config.requestConfig[a];typeof g=="function"&&(d[a]=g(this.yasgui))}return d}},{key:"initYasqe",value:function(){var a=this,d=Object.assign(Object.assign({},this.yasgui.config.yasqe),{value:this.persistentJson.yasqe.value,editorHeight:this.persistentJson.yasqe.editorHeight?this.persistentJson.yasqe.editorHeight:void 0,persistenceId:null,consumeShareLink:null,createShareableLink:function(){return a.getShareableLink()},requestConfig:function(){var g=Object.assign(Object.assign({acceptHeaderGraph:"text/turtle",acceptHeaderSelect:"application/sparql-results+json"},on({},a.persistentJson.requestConfig,a.getStaticRequestConfig(),function(N,L){if(Array.isArray(N)||Array.isArray(L))return[].concat(Tt()(N||[]),Tt()(L||[]))})),{adjustQueryBeforeRequest:a.yasgui.config.requestConfig.adjustQueryBeforeRequest});return a.yasgui.config.corsProxy&&!An.corsEnabled[a.getEndpoint()]?Object.assign(Object.assign({},g),{args:[].concat(Tt()(Array.isArray(g.args)?g.args:[]),[{name:"endpoint",value:a.getEndpoint()},{name:"method",value:a.persistentJson.requestConfig.method}]),method:"POST",endpoint:a.yasgui.config.corsProxy}):g}});if(d.hintConfig||(d.hintConfig={}),d.hintConfig.container||(d.hintConfig.container=this.yasgui.rootEl),!this.yasqeWrapperEl)throw new Error("Expected a wrapper element before instantiating yasqe");this.yasqe=new D.default(this.yasqeWrapperEl,d),this.yasqe.on("blur",this.handleYasqeBlur),this.yasqe.on("query",this.handleYasqeQuery),this.yasqe.on("queryAbort",this.handleYasqeQueryAbort),this.yasqe.on("resize",this.handleYasqeResize),this.yasqe.on("autocompletionShown",this.handleAutocompletionShown),this.yasqe.on("autocompletionClose",this.handleAutocompletionClose),this.yasqe.on("queryResponse",this.handleQueryResponse)}},{key:"destroyYasqe",value:function(){var a,d,g,N,L,I,$,pe;(a=this.yasqe)===null||a===void 0||a.off("blur",this.handleYasqeBlur),(d=this.yasqe)===null||d===void 0||d.off("query",this.handleYasqeQuery),(g=this.yasqe)===null||g===void 0||g.off("queryAbort",this.handleYasqeQueryAbort),(N=this.yasqe)===null||N===void 0||N.off("resize",this.handleYasqeResize),(L=this.yasqe)===null||L===void 0||L.off("autocompletionShown",this.handleAutocompletionShown),(I=this.yasqe)===null||I===void 0||I.off("autocompletionClose",this.handleAutocompletionClose),($=this.yasqe)===null||$===void 0||$.off("queryResponse",this.handleQueryResponse),(pe=this.yasqe)===null||pe===void 0||pe.destroy(),this.yasqe=void 0}},{key:"initYasr",value:function(){var a=this;if(!this.yasrWrapperEl)throw new Error("Wrapper for yasr does not exist");var d={persistenceId:null,prefixes:function(g){var N,L=typeof a.yasgui.config.yasr.prefixes=="function"?a.yasgui.config.yasr.prefixes(g):a.yasgui.config.yasr.prefixes,I=(N=a.yasqe)===null||N===void 0?void 0:N.getPrefixesFromQuery();return gn(gn(Object.assign(Object.assign({},L),I)))},defaultPlugin:this.persistentJson.yasr.settings.selectedPlugin,getPlainQueryLinkToEndpoint:function(){if(a.yasqe)return pn(a.getEndpoint(),D.default.Sparql.getUrlArguments(a.yasqe,a.persistentJson.requestConfig))},plugins:Object(Dr.a)(this.persistentJson.yasr.settings.pluginsConfig,function(g){return{dynamicConfig:g}}),errorRenderers:[kt(this)].concat(Tt()(xe.default.defaults.errorRenderers||[]))};d.getDownloadFileName===void 0&&(d.getDownloadFileName=function(){return wt(mr(a.getName())).join("-")}),this.yasr=new xe.default(this.yasrWrapperEl,d,this.persistentJson.yasr.response),this.persistentJson.yasr.settings=this.yasr.getPersistentConfig(),this.yasr.on("change",function(){a.yasr&&(a.persistentJson.yasr.settings=a.yasr.getPersistentConfig()),a.emit("change",a,a.persistentJson)})}},{key:"destroy",value:function(){var a,d,g;this.removeAllListeners(),(a=this.tabPanel)===null||a===void 0||a.destroy(),(d=this.endpointSelect)===null||d===void 0||d.destroy(),this.endpointSelect=void 0,(g=this.yasr)===null||g===void 0||g.destroy(),this.yasr=void 0,this.destroyYasqe()}}],[{key:"getDefaults",value:function(a){return{yasqe:{value:a?a.config.yasqe.value:An.defaults.yasqe.value},yasr:{response:void 0,settings:{selectedPlugin:a?a.config.yasr.defaultPlugin:"table",pluginsConfig:{}}},requestConfig:a?a.config.requestConfig:Object.assign({},An.defaults.requestConfig),id:Hn(),name:a?a.createTabName():An.defaults.tabName}}}]),r}(oe.EventEmitter);function kt(Re){var Ae=this;return function(r){return st(Ae,void 0,void 0,$e.a.mark(function a(){var d,g,N;return $e.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(r.status){L.next=9;break}if(!(new URL(Re.getEndpoint()).protocol==="http:"&&window.location.protocol==="https:")){L.next=9;break}return d=document.createElement("div"),(g=document.createElement("p")).innerHTML='You are trying to query an HTTP endpoint (<a href="'.concat(Re.getEndpoint(),'" target="_blank" rel="noopener noreferrer">').concat(Re.getEndpoint(),'</a>) from an HTTP<strong>S</strong> website (<a href="').concat(window.location.href,'">').concat(window.location.href,'</a>).<br>This is not allowed in modern browsers, see <a target="_blank" rel="noopener noreferrer" href="https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy">https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy</a>.'),Re.yasgui.config.nonSslDomain&&((N=document.createElement("p")).innerHTML='As a workaround, you can use the HTTP version of Yasgui instead: <a href="'.concat(Re.getShareableLink(Re.yasgui.config.nonSslDomain),'" target="_blank">').concat(Re.yasgui.config.nonSslDomain,"</a>"),g.appendChild(N)),d.appendChild(g),L.abrupt("return",d);case 9:case"end":return L.stop()}},a)}))}}var Vt=b(186);b(180);var rr=function(){function Re(Ae,r){var a=this;U()(this,Re),this.handleContextClick=function(d){d.button!==2||d.target!==a.contextEl?a.closeConfigMenu():d.stopImmediatePropagation()},this.closeConfigMenu=function(){a.tabRef=void 0,a.contextEl&&a.contextEl.remove()},this.yasgui=Ae,this.rootEl=r,document.addEventListener("click",this.handleContextClick),document.addEventListener("keyup",this.closeConfigMenu)}return p()(Re,[{key:"getMenuItemEl",value:function(Ae){var r=document.createElement("li");return Object(se.b)(r,"context-menu-item"),r.addEventListener("contextmenu",function(a){a.stopPropagation()}),Ae!==void 0&&(r.innerText=Ae),r}},{key:"draw",value:function(Ae){var r=this;this.contextEl=document.createElement("div");var a=document.createElement("ul");Object(se.b)(a,"context-menu-list"),this.newTabEl=this.getMenuItemEl("New Tab"),this.newTabEl.onclick=function(){return r.yasgui.addTab(!0)},this.renameTabEl=this.getMenuItemEl("Rename Tab"),this.copyTabEl=this.getMenuItemEl("Copy Tab"),this.closeTabEl=this.getMenuItemEl("Close Tab"),this.closeOtherTabsEl=this.getMenuItemEl("Close other tabs"),this.reOpenOldTab=this.getMenuItemEl("Undo close Tab"),a.appendChild(this.newTabEl),a.appendChild(this.renameTabEl),a.appendChild(this.copyTabEl),a.appendChild(document.createElement("hr")),a.appendChild(this.closeTabEl),a.appendChild(this.closeOtherTabsEl),a.appendChild(this.reOpenOldTab),this.contextEl.appendChild(a),Object(se.b)(this.contextEl,"yasgui","context-menu"),Ae.appendChild(this.contextEl)}},{key:"redraw",value:function(){var Ae;if(this.contextEl&&(!((Ae=this.tabRef)===null||Ae===void 0)&&Ae.tabEl)){var r=this.tabRef.tabEl.getBoundingClientRect();this.contextEl.style.top="".concat(window.pageYOffset+r.bottom,"px")}}},{key:"openConfigMenu",value:function(Ae,r,a){var d=this;if(r.tabEl){this.draw(this.rootEl),this.tabRef=r;var g=this.yasgui.getTab(Ae),N=r.tabEl.getBoundingClientRect();this.contextEl.style.left="".concat(window.pageXOffset+N.left,"px"),this.contextEl.style.top="".concat(window.pageYOffset+N.bottom,"px"),a.stopPropagation(),this.renameTabEl.onclick=function(){return r.startRename()},this.copyTabEl.onclick=function(){if(g){var L=Object(Vt.a)(g.getPersistedJson());L.id=Hn(),d.yasgui.addTab(!0,L)}},this.closeTabEl.onclick=function(){return g==null?void 0:g.close()},Object.keys(this.yasgui._tabs).length===1?Object(se.b)(this.closeOtherTabsEl,"disabled"):this.closeOtherTabsEl.onclick=function(){for(var L=0,I=Object.keys(d.yasgui._tabs);L<I.length;L++){var $=I[L];$!==Ae&&d.yasgui.getTab($).close()}},this.yasgui.persistentConfig&&this.yasgui.persistentConfig.hasLastClosedTab()?this.reOpenOldTab.onclick=function(){return d.yasgui.restoreLastTab()}:Object(se.b)(this.reOpenOldTab,"disabled")}}},{key:"unregisterEventListeners",value:function(){document.removeEventListener("click",this.handleContextClick),document.removeEventListener("keyup",this.closeConfigMenu)}},{key:"destroy",value:function(){this.unregisterEventListeners()}}],[{key:"get",value:function(Ae,r){return new Re(Ae,r)}}]),Re}(),ir=b(181);b(182);var sr=function(){function Re(Ae,r,a){U()(this,Re),this.tabList=r,this.yasgui=Ae,this.tabId=a}return p()(Re,[{key:"delete",value:function(){var Ae;this.tabEl&&((Ae=this.tabList._tabsListEl)===null||Ae===void 0||Ae.removeChild(this.tabEl),delete this.tabList._tabs[this.tabId])}},{key:"startRename",value:function(){if(this.renameEl){var Ae=this.yasgui.getTab(this.tabId);Ae&&(this.renameEl.value=Ae.name(),Object(se.b)(this.tabEl,"renaming"),this.renameEl.focus())}}},{key:"active",value:function(Ae){this.tabEl&&(Ae?(Object(se.b)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","true"),this.tabEl.children[0].setAttribute("tabindex","0")):(Object(se.g)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","false"),this.tabEl.children[0].setAttribute("tabindex","-1")))}},{key:"rename",value:function(Ae){this.nameEl&&(this.nameEl.textContent=Ae)}},{key:"setAsQuerying",value:function(Ae){Ae?Object(se.b)(this.tabEl,"querying"):Object(se.g)(this.tabEl,"querying")}},{key:"draw",value:function(Ae){var r=this;this.tabEl=document.createElement("div"),this.tabEl.setAttribute("role","presentation"),this.tabEl.ondblclick=function(){r.startRename()},Object(se.b)(this.tabEl,"tab"),this.tabEl.addEventListener("keydown",function(I){I.code==="Delete"&&a()});var a=function(I){var $;I==null||I.preventDefault(),($=r.yasgui.getTab(r.tabId))===null||$===void 0||$.close()},d=document.createElement("a");d.setAttribute("role","tab"),d.href="#"+this.tabId,d.id="tab-"+this.tabId,d.setAttribute("aria-controls",this.tabId),d.addEventListener("blur",function(){r.tabEl&&(r.tabEl.classList.contains("active")?d.setAttribute("tabindex","0"):d.setAttribute("tabindex","-1"))}),d.addEventListener("focus",function(){if(r.tabEl&&r.tabEl.classList.contains("active")){var I=Object.keys(r.tabList._tabs).indexOf(r.tabId);r.tabList.tabEntryIndex=I}}),d.addEventListener("click",function(I){I.preventDefault(),r.yasgui.selectTabId(r.tabId)}),this.nameEl=document.createElement("span"),this.nameEl.textContent=Ae,d.appendChild(this.nameEl);var g=document.createElement("div");g.innerHTML="&#x2716;",g.title="Close tab",g.setAttribute("tabindex","-1"),g.setAttribute("aria-hidden","true"),Object(se.b)(g,"closeTab"),g.addEventListener("click",a),d.appendChild(g);var N=this.renameEl=document.createElement("input");N.type="text",N.value=Ae,N.onkeyup=function(I){var $;I.key==="Enter"&&(($=r.yasgui.getTab(r.tabId))===null||$===void 0||$.setName(N.value),Object(se.g)(r.tabEl,"renaming"))},N.onblur=function(){var I;(I=r.yasgui.getTab(r.tabId))===null||I===void 0||I.setName(N.value),Object(se.g)(r.tabEl,"renaming")},d.appendChild(this.renameEl),d.oncontextmenu=function(I){var $;($=r.tabList.tabContextMenu)===null||$===void 0||$.closeConfigMenu(),r.openTabConfigMenu(I),I.preventDefault(),I.stopPropagation()},this.tabEl.appendChild(d);var L=document.createElement("div");return Object(se.b)(L,"loader"),this.tabEl.appendChild(L),this.tabEl}},{key:"openTabConfigMenu",value:function(Ae){var r;(r=this.tabList.tabContextMenu)===null||r===void 0||r.openConfigMenu(this.tabId,this,Ae)}},{key:"redrawContextMenu",value:function(){var Ae;(Ae=this.tabList.tabContextMenu)===null||Ae===void 0||Ae.redraw()}}]),Re}(),Mr=function(){function Re(Ae){var r=this;U()(this,Re),this._tabs={},this.handleKeydownArrowKeys=function(a){if(a.code==="ArrowLeft"||a.code==="ArrowRight"){if(!r._tabsListEl)return;var d=r._tabsListEl.childElementCount;if(typeof r.tabEntryIndex!="number")return;var g=r._tabsListEl.children[r.tabEntryIndex];g.classList.contains("active")||g.children[0].setAttribute("tabindex","-1"),a.code==="ArrowLeft"&&(r.tabEntryIndex--,r.tabEntryIndex<0&&(r.tabEntryIndex=d-1)),a.code==="ArrowRight"&&(r.tabEntryIndex++,r.tabEntryIndex>=d&&(r.tabEntryIndex=0));var N=r._tabsListEl.children[r.tabEntryIndex];N.children[0].setAttribute("tabindex","0"),N.children[0].focus()}},this.handleAddNewTab=function(a){a.preventDefault(),r.yasgui.addTab(!0)},this.yasgui=Ae,this.registerListeners(),this.tabEntryIndex=this.getActiveIndex()}return p()(Re,[{key:"get",value:function(Ae){return this._tabs[Ae]}},{key:"registerListeners",value:function(){var Ae=this;this.yasgui.on("query",function(r,a){var d=a.getId();Ae._tabs[d]&&Ae._tabs[d].setAsQuerying(!0)}),this.yasgui.on("queryResponse",function(r,a){var d=a.getId();Ae._tabs[d]&&Ae._tabs[d].setAsQuerying(!1)}),this.yasgui.on("queryAbort",function(r,a){var d=a.getId();Ae._tabs[d]&&Ae._tabs[d].setAsQuerying(!1)})}},{key:"getActiveIndex",value:function(){if(this._selectedTab)return Object.keys(this._tabs).indexOf(this._selectedTab)}},{key:"drawTabsList",value:function(){var Ae=this;this._tabsListEl=document.createElement("div"),Object(se.b)(this._tabsListEl,"tabsList"),this._tabsListEl.setAttribute("role","tablist"),this._tabsListEl.addEventListener("keydown",this.handleKeydownArrowKeys),ir.default.create(this._tabsListEl,{group:"tabList",animation:100,onUpdate:function(a){var d=Ae.deriveTabOrderFromEls();Ae.yasgui.emit("tabOrderChanged",Ae.yasgui,d),Ae.yasgui.persistentConfig.setTabOrder(d)},filter:".addTab",onMove:function(a,d){return Object(se.f)(a.related,"tab")}}),this.addTabEl=document.createElement("div"),this.addTabEl.setAttribute("role","presentation");var r=document.createElement("button");return r.className="addTab",r.textContent="+",r.title="Add tab",r.setAttribute("aria-label","Add a new tab"),r.addEventListener("click",this.handleAddNewTab),r.addEventListener("focus",function(){Ae._tabsListEl&&(Ae.tabEntryIndex=Ae._tabsListEl.childElementCount-1)}),r.addEventListener("blur",function(){r.setAttribute("tabindex","0")}),this.addTabEl.appendChild(r),this._tabsListEl.appendChild(this.addTabEl),this.tabContextMenu=rr.get(this.yasgui,this.yasgui.config.contextMenuContainer?this.yasgui.config.contextMenuContainer:this._tabsListEl),this._tabsListEl}},{key:"addTab",value:function(Ae,r){return this.drawTab(Ae,r)}},{key:"deriveTabOrderFromEls",value:function(){var Ae=[];if(this._tabsListEl)for(var r=0;r<this._tabsListEl.children.length;r++){var a=this._tabsListEl.children[r].children[0];if(a){var d=a.href;d&&d.indexOf("#")>=0&&Ae.push(d.substr(d.indexOf("#")+1))}}return Ae}},{key:"selectTab",value:function(Ae){for(var r in this._selectedTab=Ae,this._tabs)this._tabs[r].active(this._selectedTab===r)}},{key:"drawTab",value:function(Ae,r){var a,d;this._tabs[Ae]=new sr(this.yasgui,this,Ae);var g=this.yasgui.persistentConfig.getTab(Ae);r!==void 0&&r<this.yasgui.persistentConfig.getTabs().length-1?(a=this._tabsListEl)===null||a===void 0||a.insertBefore(this._tabs[Ae].draw(g.name),this._tabs[this.yasgui.persistentConfig.getTabs()[r+1]].tabEl||null):(d=this._tabsListEl)===null||d===void 0||d.insertBefore(this._tabs[Ae].draw(g.name),this.addTabEl||null)}},{key:"destroy",value:function(){var Ae,r;for(var a in this._tabs)this._tabs[a].delete();this._tabs={},(Ae=this.tabContextMenu)===null||Ae===void 0||Ae.destroy(),(r=this._tabsListEl)===null||r===void 0||r.remove(),this._tabsListEl=void 0}}]),Re}();function Ir(Re,Ae){var r;if(typeof Symbol>"u"||Re[Symbol.iterator]==null){if(Array.isArray(Re)||(r=function(I,$){if(I){if(typeof I=="string")return wn(I,$);var pe=Object.prototype.toString.call(I).slice(8,-1);if(pe==="Object"&&I.constructor&&(pe=I.constructor.name),pe==="Map"||pe==="Set")return Array.from(I);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return wn(I,$)}}(Re))||Ae){r&&(Re=r);var a=0,d=function(){};return{s:d,n:function(){return a>=Re.length?{done:!0}:{done:!1,value:Re[a++]}},e:function(I){throw I},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,N=!0,L=!1;return{s:function(){r=Re[Symbol.iterator]()},n:function(){var I=r.next();return N=I.done,I},e:function(I){L=!0,g=I},f:function(){try{N||r.return==null||r.return()}finally{if(L)throw g}}}}function wn(Re,Ae){(Ae==null||Ae>Re.length)&&(Ae=Re.length);for(var r=0,a=new Array(Ae);r<Ae;r++)a[r]=Re[r];return a}function un(Re){var Ae=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var r,a=K()(Re);if(Ae){var d=K()(this).constructor;r=Reflect.construct(a,arguments,d)}else r=a.apply(this,arguments);return Y()(this,r)}}b(183),b(184),window&&(D.default&&(window.Yasqe=D.default),xe.default&&(window.Yasr=xe.default));var Zr=function(Re){ue()(r,Re);var Ae=un(r);function r(a,d){var g,N,L;if(U()(this,r),(g=Ae.call(this))._tabs={},g.rootEl=document.createElement("div"),Object(se.b)(g.rootEl,"yasgui"),a.appendChild(g.rootEl),g.config=Object(ie.a)({},r.defaults,d),g.persistentConfig=new re(C()(g)),g.tabElements=new Mr(C()(g)),g.tabPanelsEl=document.createElement("div"),g.rootEl.appendChild(g.tabElements.drawTabsList()),g.rootEl.appendChild(g.tabPanelsEl),g.config.populateFromUrl&&(L=pt(Ct.getDefaults(C()(g))))){var I=g.findTabIdForConfig(L);if(I){var $=g.persistentConfig.getTab(I).yasr;g.persistentConfig.getTab(I).yasr={settings:L.yasr.settings,response:$.response},g.persistentConfig.setActive(I),$.response||(N=I)}else g.persistentConfig.setTab(L.id,typeof g.config.populateFromUrl=="function"?g.config.populateFromUrl(L):L),N=L.id}var pe=g.persistentConfig.getTabs();if(!pe.length&&g.config.autoAddOnInit){var We=g.addTab(!0);g.persistentConfig.setActive(We.getId()),g.emit("tabChange",C()(g),We)}else{var _e,n=Ir(pe);try{for(n.s();!(_e=n.n()).done;){var c=_e.value;g._tabs[c]=new Ct(C()(g),g.persistentConfig.getTab(c)),g._registerTabListeners(g._tabs[c]),g.tabElements.drawTab(c)}}catch(T){n.e(T)}finally{n.f()}var E=g.persistentConfig.getActiveId();E&&(g.markTabSelected(E),N&&N===E&&g.getTab(E).query().catch(function(){}))}return g}return p()(r,[{key:"hasFullscreen",value:function(a){a?(this.emit("fullscreen-enter",this),Object(se.b)(this.rootEl,"hasFullscreen")):(this.emit("fullscreen-leave",this),Object(se.g)(this.rootEl,"hasFullscreen"))}},{key:"getStorageId",value:function(a,d){var g=d||this.config.persistenceId;if(g)return typeof g=="string"?g+"_"+a:g(this)+"_"+a}},{key:"createTabName",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;a||(a=this.config.tabName);var g=a+(d>0?" "+d:"");return this.tabNameTaken(g)&&(g=this.createTabName(a,d+1)),g}},{key:"tabNameTaken",value:function(a){return ne(this._tabs,function(d){return d.getName()===a})}},{key:"getTab",value:function(a){if(a)return this._tabs[a];var d=this.persistentConfig.currentId();return d?this._tabs[d]:void 0}},{key:"markTabSelected",value:function(a){if(!this.persistentConfig.getTab(a))return!1;for(var d in this.tabElements.selectTab(a),this._tabs[a]||(this._tabs[a]=new Ct(this,Ct.getDefaults(this))),this._tabs[a].show(),this._tabs)d!==a&&this._tabs[d].hide();return!0}},{key:"selectTabId",value:function(a){var d=this.getTab();return d&&d.getId()!==a&&this.markTabSelected(a)&&(this.emit("tabSelect",this,a),this.persistentConfig.setActive(a)),d}},{key:"tabConfigEquals",value:function(a,d){var g,N,L,I,$,pe=!0;for($ in a.requestConfig)a.requestConfig[$]&&(me(d.requestConfig[$],a.requestConfig[$])||(pe=!1));return pe&&(pe=["endpoint","value"].every(function(We){return a.yasqe[We]===d.yasqe[We]})),pe&&(pe=a.yasr.settings.selectedPlugin===d.yasr.settings.selectedPlugin&&me((g=a.yasr.settings.pluginsConfig)===null||g===void 0?void 0:g[((N=a.yasr.settings)===null||N===void 0?void 0:N.selectedPlugin)||""],(L=d.yasr.settings.pluginsConfig)===null||L===void 0?void 0:L[((I=d.yasr.settings)===null||I===void 0?void 0:I.selectedPlugin)||""])),pe&&a.name===d.name}},{key:"findTabIdForConfig",value:function(a){var d=this;return this.persistentConfig.getTabs().find(function(g){var N=d.persistentConfig.getTab(g);return d.tabConfigEquals(N,a)})}},{key:"_registerTabListeners",value:function(a){var d=this;a.on("change",function(g){return d.emit("tabChange",d,g)}),a.on("query",function(g){return d.emit("query",d,g)}),a.on("queryAbort",function(g){return d.emit("queryAbort",d,g)}),a.on("queryResponse",function(g){return d.emit("queryResponse",d,g)}),a.on("autocompletionShown",function(g,N){return d.emit("autocompletionShown",d,g,N)}),a.on("autocompletionClose",function(g){return d.emit("autocompletionClose",d,g)})}},{key:"_setPanel",value:function(a,d){for(var g in this._tabs)g!==a&&this._tabs[g].hide();this.tabPanelsEl.appendChild(d)}},{key:"_removePanel",value:function(a){a&&this.tabPanelsEl.removeChild(a)}},{key:"addTab",value:function(a,d){var g,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=Object(ie.a)({},Ct.getDefaults(this),d);if(L.id&&this.getTab(L.id))throw new Error("Duplicate tab ID");if(this.config.copyEndpointOnNewTab&&!(!((g=d==null?void 0:d.requestConfig)===null||g===void 0)&&g.endpoint)){var I=this.getTab();I&&(L.requestConfig.endpoint=I.getEndpoint())}if(N.avoidDuplicateTabs){var $=this.findTabIdForConfig(L);if($)return this.selectTabId($)}var pe=L.id,We=N.atIndex;return this.persistentConfig.addToTabList(pe,We),this.emit("tabAdd",this,pe),this._tabs[pe]=new Ct(this,L),this.emit("tabChange",this,this._tabs[pe]),this.tabElements.addTab(pe,We),this._registerTabListeners(this._tabs[pe]),a&&(this.persistentConfig.setActive(pe),this._tabs[pe].show()),this._tabs[pe]}},{key:"restoreLastTab",value:function(){var a=this.persistentConfig.retrieveLastClosedTab();a&&this.addTab(!0,a.tab,{atIndex:a.index})}},{key:"destroy",value:function(){for(var a in this.removeAllListeners(),this.tabElements.destroy(),this._tabs)this._tabs[a].destroy();for(this._tabs={};this.rootEl.firstChild;)this.rootEl.firstChild.remove()}}]),r}(oe.EventEmitter);function Hn(){return Math.random().toString(36).substring(7)}Zr.Tab=Ct,Zr.linkUtils=A,Zr.Yasr=xe.default,Zr.Yasqe=D.default,Zr.defaults={autofocus:!0,endpointInfo:void 0,persistenceId:function(Re){var Ae="",r=Re.rootEl;for(r.id&&(Ae=r.id);r&&r!==document;r=r.parentNode)if(r){r.id&&(Ae=r.id);break}return"yagui_"+Ae},tabName:"Query",corsProxy:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",yasqe:D.default.defaults,yasr:xe.default.defaults,endpointCatalogueOptions:{getData:function(){return[{endpoint:"https://dbpedia.org/sparql"},{endpoint:"https://query.wikidata.org/bigdata/namespace/wdq/sparql"}]},keys:[],renderItem:function(Re,Ae){var r,a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column";var d=document.createElement("span");d.innerHTML=((r=Re.matches.endpoint)===null||r===void 0?void 0:r.reduce(function(g,N){return N.highlight?g+N.text.bold():g+N.text},""))||"",a.appendChild(d),Ae.appendChild(a)}},copyEndpointOnNewTab:!0,populateFromUrl:!0,autoAddOnInit:!0,requestConfig:D.default.defaults.requestConfig,contextMenuContainer:void 0},Zr.corsEnabled={};var An=de.default=Zr},function(ke,de,b){var A=b(18),_=function(yt,Nt){for(var at=-1,Ft=yt==null?0:yt.length;++at<Ft&&Nt(yt[at],at,yt)!==!1;);return yt},U=b(67);b(32),b(13),b(38);var R=b(77);b(76);var p=b(57),G=b(56),C=b(51),M=b(74);Object.getOwnPropertySymbols||M.a;var ue=b(61);b(73);var x=b(20),Y=Object.prototype.hasOwnProperty,ce=function(yt){var Nt=yt.length,at=new yt.constructor(Nt);return Nt&&typeof yt[0]=="string"&&Y.call(yt,"index")&&(at.index=yt.index,at.input=yt.input),at},K=b(58),oe=function(yt,Nt){var at=Object(K.a)(yt.buffer);return new yt.constructor(at,yt.byteOffset,yt.byteLength)},ie=/\w*$/,m=function(yt){var Nt=new yt.constructor(yt.source,ie.exec(yt));return Nt.lastIndex=yt.lastIndex,Nt},S=b(8),P=S.a?S.a.prototype:void 0,q=P?P.valueOf:void 0,te=function(yt){return q?Object(q.call(yt)):{}},Z=b(78),h=function(yt,Nt,at){var Ft=yt.constructor;switch(Nt){case"[object ArrayBuffer]":return Object(K.a)(yt);case"[object Boolean]":case"[object Date]":return new Ft(+yt);case"[object DataView]":return oe(yt);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(Z.a)(yt,at);case"[object Map]":return new Ft;case"[object Number]":case"[object String]":return new Ft(yt);case"[object RegExp]":return m(yt);case"[object Set]":return new Ft;case"[object Symbol]":return te(yt)}},ne=b(81),Ge=b(1),me=b(14),xe=b(6),D=function(yt){return Object(xe.a)(yt)&&Object(x.a)(yt)=="[object Map]"},se=b(45),re=b(35),be=re.a&&re.a.isMap,$e=be?Object(se.a)(be):D,dt=b(2),Tt=function(yt){return Object(xe.a)(yt)&&Object(x.a)(yt)=="[object Set]"},ft=re.a&&re.a.isSet,Ke=ft?Object(se.a)(ft):Tt,nt={};nt["[object Arguments]"]=nt["[object Array]"]=nt["[object ArrayBuffer]"]=nt["[object DataView]"]=nt["[object Boolean]"]=nt["[object Date]"]=nt["[object Float32Array]"]=nt["[object Float64Array]"]=nt["[object Int8Array]"]=nt["[object Int16Array]"]=nt["[object Int32Array]"]=nt["[object Map]"]=nt["[object Number]"]=nt["[object Object]"]=nt["[object RegExp]"]=nt["[object Set]"]=nt["[object String]"]=nt["[object Symbol]"]=nt["[object Uint8Array]"]=nt["[object Uint8ClampedArray]"]=nt["[object Uint16Array]"]=nt["[object Uint32Array]"]=!0,nt["[object Error]"]=nt["[object Function]"]=nt["[object WeakMap]"]=!1;var mt=function yt(Nt,at,Ft,B,X,he){var De,Ve=1&at;if(De!==void 0)return De;if(!Object(dt.a)(Nt))return Nt;var Be=Object(Ge.a)(Nt);if(Be)De=ce(Nt);else{var ze=Object(x.a)(Nt),lt=ze=="[object Function]"||ze=="[object GeneratorFunction]";if(Object(me.a)(Nt))return Object(R.a)(Nt,Ve);if(ze=="[object Object]"||ze=="[object Arguments]"||lt&&!X)De=lt?{}:Object(ne.a)(Nt);else{if(!nt[ze])return X?Nt:{};De=h(Nt,ze,Ve)}}he||(he=new A.a);var Ze=he.get(Nt);if(Ze)return Ze;he.set(Nt,De),Ke(Nt)?Nt.forEach(function(nr){De.add(yt(nr,at,Ft,nr,Nt,he))}):$e(Nt)&&Nt.forEach(function(nr,Bt){De.set(Bt,yt(nr,at,Ft,Bt,Nt,he))});var Pt=ue.a,jt=Be?void 0:Pt(Nt);return _(jt||Nt,function(nr,Bt){jt&&(nr=Nt[Bt=nr]),Object(U.a)(De,Bt,yt(nr,at,Ft,Bt,Nt,he))}),De};de.a=function(yt){return mt(yt,5)}}]).default})})(yasgui_min,yasgui_min.exports);var yasgui_minExports=yasgui_min.exports;const Yasgui=getDefaultExportFromCjs(yasgui_minExports),_withScopeId=ke=>(pushScopeId("data-v-fabad80b"),ke=ke(),popScopeId(),ke),_hoisted_1={key:0},_hoisted_2=_withScopeId(()=>createBaseVNode("span",{style:{"user-select":"none","white-space":"pre"}},"SPARQL-Endpoint: ",-1)),_hoisted_3=_withScopeId(()=>createBaseVNode("div",{id:"yasgui"},null,-1)),_sfc_main={__name:"SparqlInterface",setup(ke){const de=ref();let b;const A=[{name:"Alle Objekte",query:`BASE <https://db.antiquitatum-thesaurus.eu>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT * WHERE {
 ?s a crm:E24_Physical_Human-Made_Thing .
}`},{name:"Alle Sachbegriffe",query:`BASE <https://db.antiquitatum-thesaurus.eu>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT DISTINCT ?typelabel ?type WHERE {
	?s crm:P2_has_type ?type .
	?type crm:P2_has_type <type/object_type> .
	?type rdfs:label ?typelabel .
}`},{name:"Alle Klassifikationen",query:`BASE <https://db.antiquitatum-thesaurus.eu>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT DISTINCT ?classification_label ?classification WHERE {
	?s crm:P2_has_type ?classification .
	?classification crm:P2_has_type <type/classification> .
	?classification rdfs:label ?classification_label .
}`},{name:"Alle Orte",query:`BASE <https://db.antiquitatum-thesaurus.eu>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT * WHERE {?s a crm:E53_Place .}`},{name:"Vorlagen für Montfaucon 1719 (L'antiquité, 1. Aufl.)",query:`BASE <https://db.antiquitatum-thesaurus.eu>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT ?title (COUNT(?related_object) as ?count) WHERE {
   <object/1313701> crm:P46_is_composed_of+ ?s .
   ?s crm:P108i_was_produced_by / crm:P01i_is_domain_of ?relation .
   ?relation crm:P16.1_mode_of_use <type/original> .
   ?relation crm:P02_has_range ?related_object .
   ?base_related_object crm:P46_is_composed_of+ ?related_object .
   FILTER NOT EXISTS {?x crm:P46_is_composed_of ?base_related_object}
   ?base_related_object crm:P1_is_identified_by ?title_obj .
   ?title_obj crm:P2_has_type <type/preferred_title> .
   ?title_obj crm:P190_has_symbolic_content ?title .
} GROUP BY ?base_related_object ?title ?count ORDER BY DESC(?count)
`}],_=computed(()=>"https://db.antiquitatum-thesaurus.eu/triplestore/sparql"),U=()=>{b=new Yasgui(document.getElementById("yasgui"),{requestConfig:{endpoint:"/triplestore/sparql",method:"GET"}}),b.on("queryResponse",p),b.getTab().yasqe.options.persistencyExpire=0,b.getTab().yasr.config.persistencyExpire=0,b.getTab().yasqe.setValue(A[0].query)},R=ref([]),p=()=>{let C=b.getTab().yasqe.getValue(),M={query:C,name:new Date().toJSON()};R.value.map(ue=>ue.query).includes(C)||(R.value.length==100&&R.value.shift(),R.value.push(M),localStorage.setItem("stored_sparql_queries",JSON.stringify(R.value)))},G=C=>{R.value.splice(R.value.length-C-1,1),localStorage.setItem("stored_sparql_queries",JSON.stringify(R.value))};return onMounted(()=>{R.value=JSON.parse(localStorage.getItem("stored_sparql_queries")||"[]"),U()}),(C,M)=>(openBlock(),createBlock(MainContainer,{class:"mt-4"},{default:withCtx(()=>[createVNode(VRow,{"no-gutters":""},{default:withCtx(()=>[createVNode(VCol,{cols:"12",lg:"3",class:"ma-0 pa-0"},{default:withCtx(()=>[createVNode(VSheet,{elevation:"0",class:"mx-2 pa-2"},{default:withCtx(()=>[createVNode(VTabs,{modelValue:de.value,"onUpdate:modelValue":M[0]||(M[0]=ue=>de.value=ue)},{default:withCtx(()=>[createVNode(VTab,null,{default:withCtx(()=>[createTextVNode("Beispiele")]),_:1}),R.value.length?(openBlock(),createBlock(VTab,{key:0},{default:withCtx(()=>[createTextVNode(" Verlauf ("+toDisplayString(R.value.length)+") ",1)]),_:1})):createCommentVNode("",!0)]),_:1},8,["modelValue"]),createVNode(VWindow,{modelValue:de.value,"onUpdate:modelValue":M[1]||(M[1]=ue=>de.value=ue),class:"py-2"},{default:withCtx(()=>[createVNode(VWindowItem,null,{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(A,(ue,x)=>createVNode(VRow,{key:x,class:"pa-0 ma-0"},{default:withCtx(()=>[createVNode(VChip,{label:"",filter:"",link:"",ripple:!1,variant:"outlined",class:"query-box ma-1 pa-2",onClick:Y=>unref(b).getTab().yasqe.setValue(ue.query)},{default:withCtx(()=>[createTextVNode(toDisplayString(ue.name),1)]),_:2},1032,["onClick"])]),_:2},1024)),64))]),_:1}),createVNode(VWindowItem,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(R.value.slice().reverse(),(ue,x)=>(openBlock(),createBlock(VRow,{key:x,class:"pa-0 ma-0"},{default:withCtx(()=>[createVNode(VChip,{label:"",closable:"",link:"",ripple:!1,variant:"outlined",class:"query-box ma-1 pa-2",onClick:Y=>unref(b).getTab().yasqe.setValue(ue.query),"onClick:close":Y=>G(x)},{default:withCtx(()=>[createTextVNode(toDisplayString(ue.name),1)]),_:2},1032,["onClick","onClick:close"])]),_:2},1024))),128))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),C.$vuetify.display.lg?(openBlock(),createElementBlock("div",_hoisted_1,[createVNode(VDivider,{thickness:1,vertical:"",style:{height:"100%"}})])):createCommentVNode("",!0),createVNode(VCol,{cols:"12",lg:"9",class:"ma-0 pa-0"},{default:withCtx(()=>[createVNode(VSheet,{elevation:"0",class:"mx-2 pa-2"},{default:withCtx(()=>[createVNode(VCard,{variant:"outlined",class:"mb-2",style:{"margin-top":"2px",border:"1px solid #d1d1d1"},color:"#f7f7f7"},{default:withCtx(()=>[createVNode(VCardTitle,{class:"ma-0 pa-2 text-high-emphasis",style:{"font-weight":"400"}},{default:withCtx(()=>[_hoisted_2,createBaseVNode("span",null,toDisplayString(_.value),1)]),_:1})]),_:1}),_hoisted_3]),_:1})]),_:1})]),_:1})]),_:1}))}},SparqlInterface=_export_sfc(_sfc_main,[["__scopeId","data-v-fabad80b"]]);export{SparqlInterface as default};